@dylanpiercey/work 0.0.150 → 0.0.151
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 +824 -832
- package/dist/public/assets/_8WQUof_k.js +1 -0
- package/dist/public/assets/_B1cFfpzS.js +1 -0
- package/dist/public/assets/_BLFuD0JQ.js +1 -0
- package/dist/public/assets/_BYV5dJfc.js +1 -0
- package/dist/public/assets/_BbcbH62W.js +1 -0
- package/dist/public/assets/_BnMxmXCs.js +1 -0
- package/dist/public/assets/_BovGqIGN.js +1 -0
- package/dist/public/assets/_BphNmFmX.js +1 -0
- package/dist/public/assets/{_CsmfAHEZ.js → _BsfRtSiV.js} +1 -1
- package/dist/public/assets/_BsfRtSiV.js.br +0 -0
- package/dist/public/assets/_BvU8GwLR.js +1 -0
- package/dist/public/assets/{_BPgEgKxN.js → _BzqxRMXE.js} +4 -4
- package/dist/public/assets/_BzqxRMXE.js.br +0 -0
- package/dist/public/assets/_C6wL9S_0.js +1 -0
- package/dist/public/assets/_C7bv6wyP.js +1 -0
- package/dist/public/assets/_CJ9Wzzbm.js +1 -0
- package/dist/public/assets/_CUjBnNSF.js +83 -0
- package/dist/public/assets/_CUjBnNSF.js.br +0 -0
- package/dist/public/assets/_CvsivVIw.js +1 -0
- package/dist/public/assets/_Cykj0g_Z.js +1 -0
- package/dist/public/assets/_DjgOeHnF.js +1 -0
- package/dist/public/assets/_Ds0Mn9q6.js +1 -0
- package/dist/public/assets/_DyKArmgy.js +1 -0
- package/dist/public/assets/_P0FnQjCW.js +1 -0
- package/dist/public/assets/_XpyNnjiC.js +1 -0
- package/dist/public/assets/app-page-BOW-YrEi.css +1 -0
- package/dist/public/assets/app-page-BOW-YrEi.css.br +0 -0
- package/dist/public/assets/diff-view-BemcbKA3.js +2 -0
- package/dist/public/assets/diff-view-w6cnq_W8.css +1 -0
- package/dist/public/assets/diff-view-w6cnq_W8.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-xgf_MG89.css → icon-arrow-down-D5qOiCpR.css} +1 -1
- package/dist/public/assets/icon-arrow-down-D5qOiCpR.css.br +0 -0
- package/dist/public/assets/new-Cm_YcSJD.js +1 -0
- package/dist/public/assets/settings-Cm_YcSJD.js +1 -0
- package/dist/public/assets/w-Cm_YcSJD.js +1 -0
- package/dist/public/assets/w._-Cm_YcSJD.js +1 -0
- package/dist/public/assets/w._-YRmcsnu6.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_B3Mpy99p.js +0 -1
- package/dist/public/assets/_B48Ci00O.js +0 -1
- package/dist/public/assets/_BMg1xJCp.js +0 -1
- package/dist/public/assets/_BMt7KRfG.js +0 -1
- package/dist/public/assets/_BPgEgKxN.js.br +0 -0
- package/dist/public/assets/_BTzBmbsD.js +0 -1
- package/dist/public/assets/_BajmTGoh.js +0 -83
- package/dist/public/assets/_BajmTGoh.js.br +0 -0
- package/dist/public/assets/_BwU8ErEl.js +0 -1
- package/dist/public/assets/_CCxrJXLp.js +0 -1
- package/dist/public/assets/_CSo62uWy.js +0 -1
- package/dist/public/assets/_C_w5P4t0.js +0 -1
- package/dist/public/assets/_Coa6AtBv.js +0 -1
- package/dist/public/assets/_CsmfAHEZ.js.br +0 -0
- package/dist/public/assets/_D5eULR2D.js +0 -1
- package/dist/public/assets/_D8gCm9nZ.js +0 -1
- package/dist/public/assets/_DAb5Vh3Q.js +0 -1
- package/dist/public/assets/_DK2SfOGa.js +0 -1
- package/dist/public/assets/_D_kL3Re7.js +0 -1
- package/dist/public/assets/_DjjyTnsF.js +0 -1
- package/dist/public/assets/_DoVPAuRS.js +0 -1
- package/dist/public/assets/_DzfCADzH.js +0 -1
- package/dist/public/assets/_Q736gZrY.js +0 -1
- package/dist/public/assets/app-page-B9ipmZIq.css +0 -1
- package/dist/public/assets/app-page-B9ipmZIq.css.br +0 -0
- package/dist/public/assets/diff-view-Blay1rPU.css +0 -1
- package/dist/public/assets/diff-view-Blay1rPU.css.br +0 -0
- package/dist/public/assets/diff-view-DhhhLA0Q.js +0 -2
- package/dist/public/assets/icon-arrow-down-xgf_MG89.css.br +0 -0
- package/dist/public/assets/new-CFr4Ctz3.js +0 -1
- package/dist/public/assets/settings-CFr4Ctz3.js +0 -1
- package/dist/public/assets/w-CFr4Ctz3.js +0 -1
- package/dist/public/assets/w._-CFr4Ctz3.js +0 -1
- package/dist/public/assets/w._-CySgOtR7.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2788,7 +2788,7 @@ async function workspaceProcs(wsPath) {
|
|
|
2788
2788
|
for (const { port, pid } of ports) portsByPid.set(pid, [...portsByPid.get(pid) || [], port]);
|
|
2789
2789
|
const procs = [];
|
|
2790
2790
|
const inWs = [...cwds].filter(([, cwd]) => inside(cwd, wsPath));
|
|
2791
|
-
const argvOf = await mapLimit$1(inWs, PROC_SWEEP_CONCURRENCY, ([pid]) => argv ? Promise.resolve(argv.get(pid) || []) : procArgs(pid));
|
|
2791
|
+
const argvOf = await mapLimit$1(inWs, PROC_SWEEP_CONCURRENCY, ([pid]) => argv ? Promise.resolve(argv.get(pid) || []) : procArgs$1(pid));
|
|
2792
2792
|
for (const [i, [pid, cwd]] of inWs.entries()) {
|
|
2793
2793
|
const parts = argvOf[i];
|
|
2794
2794
|
if (!parts.length) continue;
|
|
@@ -2926,9 +2926,10 @@ async function processArgsNow() {
|
|
|
2926
2926
|
}
|
|
2927
2927
|
/** A process's argv on Linux (best-effort; empty when it died or is
|
|
2928
2928
|
* unreadable). */
|
|
2929
|
-
async function procArgs(pid) {
|
|
2929
|
+
async function procArgs$1(pid) {
|
|
2930
2930
|
try {
|
|
2931
|
-
|
|
2931
|
+
const parts = (await fs$1.readFile(`/proc/${pid}/cmdline`, "utf8")).split("\0").filter(Boolean);
|
|
2932
|
+
return parts.length === 1 ? parts[0].split(/\s+/).filter(Boolean) : parts;
|
|
2932
2933
|
} catch {
|
|
2933
2934
|
return [];
|
|
2934
2935
|
}
|
|
@@ -6932,14 +6933,14 @@ function repoLabel(fullName) {
|
|
|
6932
6933
|
return fullName;
|
|
6933
6934
|
}
|
|
6934
6935
|
var toastKind = {
|
|
6935
|
-
error: "
|
|
6936
|
-
warn: "
|
|
6937
|
-
info: "
|
|
6936
|
+
error: "_dH",
|
|
6937
|
+
warn: "_dI",
|
|
6938
|
+
info: "_dJ"
|
|
6938
6939
|
};
|
|
6939
6940
|
var toastTitle = {
|
|
6940
|
-
error: "
|
|
6941
|
-
warn: "
|
|
6942
|
-
info: "
|
|
6941
|
+
error: "_dK",
|
|
6942
|
+
warn: "_dL",
|
|
6943
|
+
info: "_dM"
|
|
6943
6944
|
};
|
|
6944
6945
|
//#endregion
|
|
6945
6946
|
//#region src/styles/tokens.css.ts
|
|
@@ -6985,18 +6986,18 @@ var toast_default = _template("F", (input) => {
|
|
|
6985
6986
|
const kind = inputKind || "error";
|
|
6986
6987
|
const placement = inputPlacement || "float";
|
|
6987
6988
|
const placementClass = {
|
|
6988
|
-
float: "
|
|
6989
|
-
inline: "
|
|
6989
|
+
float: "_dF",
|
|
6990
|
+
inline: "_dG"
|
|
6990
6991
|
}[placement];
|
|
6991
6992
|
_html(`<div${_attr_class([
|
|
6992
|
-
"
|
|
6993
|
+
"_dE",
|
|
6993
6994
|
toastKind[kind],
|
|
6994
6995
|
placementClass,
|
|
6995
6996
|
inputClass
|
|
6996
6997
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
6997
6998
|
class: 1,
|
|
6998
6999
|
role: 1
|
|
6999
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
7000
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_dN")}>`);
|
|
7000
7001
|
_if(() => {
|
|
7001
7002
|
if (title) {
|
|
7002
7003
|
const $scope1_id = _scope_id();
|
|
@@ -7008,7 +7009,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7008
7009
|
_if(() => {
|
|
7009
7010
|
if (content) {
|
|
7010
7011
|
const $scope2_id = _scope_id();
|
|
7011
|
-
_html(`<div${_attr_class("
|
|
7012
|
+
_html(`<div${_attr_class("_dO")}>`);
|
|
7012
7013
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
7013
7014
|
_html("</div>");
|
|
7014
7015
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7019,7 +7020,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7019
7020
|
_if(() => {
|
|
7020
7021
|
if (action || onDismiss) {
|
|
7021
7022
|
const $scope3_id = _scope_id();
|
|
7022
|
-
_html(`<div${_attr_class(["
|
|
7023
|
+
_html(`<div${_attr_class(["_dP", action && "_dQ"])}>`);
|
|
7023
7024
|
_if(() => {
|
|
7024
7025
|
if (action) {
|
|
7025
7026
|
const $scope4_id = _scope_id();
|
|
@@ -7031,7 +7032,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7031
7032
|
_if(() => {
|
|
7032
7033
|
if (onDismiss) {
|
|
7033
7034
|
const $scope5_id = _scope_id();
|
|
7034
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7035
|
+
_html(`<button${_attr_class([iconBtnRow, "_dR"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
7035
7036
|
icon_xmark_default({ size: 14 });
|
|
7036
7037
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
7037
7038
|
_script($scope5_id, "F0");
|
|
@@ -7244,19 +7245,19 @@ function applyInstance(inst) {
|
|
|
7244
7245
|
}
|
|
7245
7246
|
//#endregion
|
|
7246
7247
|
//#region src/tags/settings-page.css.ts
|
|
7247
|
-
var content$2 = "
|
|
7248
|
-
var agentGrid = "
|
|
7249
|
-
var toolGrid = "
|
|
7250
|
-
var toolRow = "
|
|
7251
|
-
var themeSeg = "
|
|
7252
|
-
var checkList = "
|
|
7253
|
-
var flatCardRow = "
|
|
7254
|
-
var pop$1 = "
|
|
7255
|
-
var spinner = "
|
|
7256
|
-
var busy = "
|
|
7257
|
-
var pop = "
|
|
7258
|
-
var sectionCount = "
|
|
7259
|
-
var row = "
|
|
7248
|
+
var content$2 = "_ct _b6 _b7";
|
|
7249
|
+
var agentGrid = "_cw _bt";
|
|
7250
|
+
var toolGrid = "_cG _cq";
|
|
7251
|
+
var toolRow = "_cH _cr";
|
|
7252
|
+
var themeSeg = "_c5 _be";
|
|
7253
|
+
var checkList = "_dA _bt";
|
|
7254
|
+
var flatCardRow = "_cs _cr";
|
|
7255
|
+
var pop$1 = "_dY __";
|
|
7256
|
+
var spinner = "_d1 _2 _G";
|
|
7257
|
+
var busy = "_d5 _d4";
|
|
7258
|
+
var pop = "_d7 __";
|
|
7259
|
+
var sectionCount = "_bs _N _O";
|
|
7260
|
+
var row = "_bD _bv";
|
|
7260
7261
|
var iconBtn$1 = "_5 _l";
|
|
7261
7262
|
//#endregion
|
|
7262
7263
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7297,18 +7298,18 @@ var icon_back_default = _template("O", (input) => {
|
|
|
7297
7298
|
var page_head_default = _template("t", (input) => {
|
|
7298
7299
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
7299
7300
|
const $scope0_id = _scope_id();
|
|
7300
|
-
_html(`<header${_attr_class("
|
|
7301
|
+
_html(`<header${_attr_class("_b8")}>`);
|
|
7301
7302
|
_if(() => {
|
|
7302
7303
|
if (input.backHref) {
|
|
7303
7304
|
const $scope1_id = _scope_id();
|
|
7304
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7305
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_g9"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7305
7306
|
icon_back_default({ size: 16 });
|
|
7306
7307
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7307
7308
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7308
7309
|
return 0;
|
|
7309
7310
|
} else if (input.onBack) {
|
|
7310
7311
|
const $scope2_id = _scope_id();
|
|
7311
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7312
|
+
_html(`<button${_attr_class([iconBtnRow, "_g9"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7312
7313
|
icon_back_default({ size: 16 });
|
|
7313
7314
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7314
7315
|
_script($scope2_id, "t0");
|
|
@@ -7316,11 +7317,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7316
7317
|
return 1;
|
|
7317
7318
|
}
|
|
7318
7319
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
7319
|
-
_html(`<div${_attr_class("
|
|
7320
|
+
_html(`<div${_attr_class("_b_")}><h1${_attr("id", input.titleId)}${_attr_class("_b9")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7320
7321
|
_if(() => {
|
|
7321
7322
|
if (input.meta) {
|
|
7322
7323
|
const $scope3_id = _scope_id();
|
|
7323
|
-
_html(`<p${_attr_class("
|
|
7324
|
+
_html(`<p${_attr_class("_ca")}>`);
|
|
7324
7325
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7325
7326
|
_html("</p>");
|
|
7326
7327
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7331,7 +7332,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7331
7332
|
_if(() => {
|
|
7332
7333
|
if (input.actions) {
|
|
7333
7334
|
const $scope4_id = _scope_id();
|
|
7334
|
-
_html(`<div${_attr_class("
|
|
7335
|
+
_html(`<div${_attr_class("_cb")}>`);
|
|
7335
7336
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7336
7337
|
_html("</div>");
|
|
7337
7338
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7399,7 +7400,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7399
7400
|
n: $badge__closures
|
|
7400
7401
|
});
|
|
7401
7402
|
});
|
|
7402
|
-
var usageNote = "
|
|
7403
|
+
var usageNote = "_gp _X";
|
|
7403
7404
|
//#endregion
|
|
7404
7405
|
//#region src/tags/icons/icon-warning.marko
|
|
7405
7406
|
var icon_warning_default = _template("rb", (input) => {
|
|
@@ -7429,11 +7430,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7429
7430
|
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);
|
|
7430
7431
|
const $scope0_id = _scope_id();
|
|
7431
7432
|
const agent = input.agent;
|
|
7432
|
-
_html(`<div${_attr_class(["
|
|
7433
|
+
_html(`<div${_attr_class(["_gj", { ["_gk"]: input.hideName }])}><div${_attr_class("_gl")}>`);
|
|
7433
7434
|
_if(() => {
|
|
7434
7435
|
if (!input.hideName) {
|
|
7435
7436
|
const $scope1_id = _scope_id();
|
|
7436
|
-
_html(`<strong${_attr_class("
|
|
7437
|
+
_html(`<strong${_attr_class("_gE")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7437
7438
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7438
7439
|
return 0;
|
|
7439
7440
|
}
|
|
@@ -7441,7 +7442,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7441
7442
|
_if(() => {
|
|
7442
7443
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7443
7444
|
const $scope2_id = _scope_id();
|
|
7444
|
-
_html(`<span${_attr_class("
|
|
7445
|
+
_html(`<span${_attr_class("_gm")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7445
7446
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7446
7447
|
return 0;
|
|
7447
7448
|
}
|
|
@@ -7449,21 +7450,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7449
7450
|
_if(() => {
|
|
7450
7451
|
if (agent.stale_seconds != null) {
|
|
7451
7452
|
const $scope3_id = _scope_id();
|
|
7452
|
-
_html(`<span${_attr_class("
|
|
7453
|
+
_html(`<span${_attr_class("_gn")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7453
7454
|
icon_warning_default({ size: 12 });
|
|
7454
7455
|
_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)}`);
|
|
7455
7456
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7456
7457
|
return 0;
|
|
7457
7458
|
}
|
|
7458
7459
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7459
|
-
_html(`</div><div${_attr_class(["
|
|
7460
|
+
_html(`</div><div${_attr_class(["_go", { ["_gF"]: agent.stale_seconds != null }])}>`);
|
|
7460
7461
|
_for_of(agent.windows || [], (win) => {
|
|
7461
7462
|
const $scope4_id = _scope_id();
|
|
7462
7463
|
const pct = pctText(win.used_percent);
|
|
7463
7464
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7464
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7465
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7466
|
-
_html(`<div${_attr_class("
|
|
7465
|
+
const fillClass = win.used_percent >= 90 ? "_gx" : win.used_percent >= 70 ? "_gw" : win.used_percent >= 40 ? "_gv" : "_gu";
|
|
7466
|
+
const pctClass = win.used_percent >= 90 ? "_gC" : win.used_percent >= 70 ? "_gB" : win.used_percent >= 40 ? "_gA" : "_gz";
|
|
7467
|
+
_html(`<div${_attr_class("_gq")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_gr")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_gs")}><span${_attr_class(["_gt", 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(["_gy", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_gD")}>`);
|
|
7467
7468
|
_if(() => {
|
|
7468
7469
|
if (label) {
|
|
7469
7470
|
const $scope6_id = _scope_id();
|
|
@@ -7580,14 +7581,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7580
7581
|
localCode = null;
|
|
7581
7582
|
}
|
|
7582
7583
|
}, "C0", $scope0_id);
|
|
7583
|
-
_html(`<div${_attr_class(["
|
|
7584
|
+
_html(`<div${_attr_class(["_gG", input.class])}>`);
|
|
7584
7585
|
_for_of(input.items, (s) => {
|
|
7585
7586
|
const $scope1_id = _scope_id();
|
|
7586
|
-
_html(`<div${_attr_class("
|
|
7587
|
+
_html(`<div${_attr_class("_gH")}><span${_attr_class("_gJ")}><span${_attr_class("_gK")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gL", "_gM"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7587
7588
|
_if(() => {
|
|
7588
7589
|
if (!busy) {
|
|
7589
7590
|
const $scope2_id = _scope_id();
|
|
7590
|
-
_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, "
|
|
7591
|
+
_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, "_gN"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7591
7592
|
_script($scope2_id, "C1");
|
|
7592
7593
|
writeScope($scope2_id, {});
|
|
7593
7594
|
return 0;
|
|
@@ -7602,13 +7603,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7602
7603
|
_if(() => {
|
|
7603
7604
|
if (localBusy && localCode) {
|
|
7604
7605
|
const $scope4_id = _scope_id();
|
|
7605
|
-
_html(`<div${_attr_class(["
|
|
7606
|
+
_html(`<div${_attr_class(["_gH", "_gO"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gP")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gQ")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7606
7607
|
_script($scope4_id, "C2");
|
|
7607
7608
|
writeScope($scope4_id, {});
|
|
7608
7609
|
return 0;
|
|
7609
7610
|
} else if (localBusy) {
|
|
7610
7611
|
const $scope6_id = _scope_id();
|
|
7611
|
-
_html(`<div${_attr_class(["
|
|
7612
|
+
_html(`<div${_attr_class(["_gH", "_gO"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7612
7613
|
writeScope($scope6_id, {});
|
|
7613
7614
|
return 1;
|
|
7614
7615
|
}
|
|
@@ -7616,14 +7617,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7616
7617
|
_if(() => {
|
|
7617
7618
|
if (localError) {
|
|
7618
7619
|
const $scope5_id = _scope_id();
|
|
7619
|
-
_html(`<p${_attr_class(["
|
|
7620
|
+
_html(`<p${_attr_class(["_gH", "_gR"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7620
7621
|
writeScope($scope5_id, {});
|
|
7621
7622
|
return 0;
|
|
7622
7623
|
}
|
|
7623
7624
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7624
7625
|
_for_of(skipped, (s) => {
|
|
7625
7626
|
const $scope3_id = _scope_id();
|
|
7626
|
-
_html(`<div${_attr_class(["
|
|
7627
|
+
_html(`<div${_attr_class(["_gH", "_gI"])}><span${_attr_class("_gJ")}><span${_attr_class("_gK")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gL")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gN"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7627
7628
|
_script($scope3_id, "C3");
|
|
7628
7629
|
writeScope($scope3_id, {
|
|
7629
7630
|
i: s?.org,
|
|
@@ -7691,7 +7692,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7691
7692
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7692
7693
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7693
7694
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7694
|
-
_html(`<li${_attr_class("
|
|
7695
|
+
_html(`<li${_attr_class("_d3")}>`);
|
|
7695
7696
|
_if(() => {
|
|
7696
7697
|
if (input.busy != null) {
|
|
7697
7698
|
const $scope1_id = _scope_id();
|
|
@@ -7701,20 +7702,20 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7701
7702
|
} else {
|
|
7702
7703
|
const $scope2_id = _scope_id();
|
|
7703
7704
|
const popId = _id();
|
|
7704
|
-
_html(`<button${_attr_class("
|
|
7705
|
+
_html(`<button${_attr_class("_d4")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7705
7706
|
_if(() => {
|
|
7706
7707
|
if (input.hint) {
|
|
7707
7708
|
const $scope3_id = _scope_id();
|
|
7708
|
-
_html(`<span${_attr_class("
|
|
7709
|
+
_html(`<span${_attr_class("_d6")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7709
7710
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7710
7711
|
return 0;
|
|
7711
7712
|
}
|
|
7712
7713
|
}, $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);
|
|
7713
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7714
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_bx", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7714
7715
|
_if(() => {
|
|
7715
7716
|
if (input.description) {
|
|
7716
7717
|
const $scope4_id = _scope_id();
|
|
7717
|
-
_html(`<span${_attr_class("
|
|
7718
|
+
_html(`<span${_attr_class("_bz")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7718
7719
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7719
7720
|
return 0;
|
|
7720
7721
|
}
|
|
@@ -7722,12 +7723,12 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7722
7723
|
_if(() => {
|
|
7723
7724
|
if (input.sourceUrl) {
|
|
7724
7725
|
const $scope5_id = _scope_id();
|
|
7725
|
-
_html(`<a${_attr_class(["
|
|
7726
|
+
_html(`<a${_attr_class(["_bz", "_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))}`);
|
|
7726
7727
|
$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) })));
|
|
7727
7728
|
return 0;
|
|
7728
7729
|
} else if (input.source) {
|
|
7729
7730
|
const $scope6_id = _scope_id();
|
|
7730
|
-
_html(`<span${_attr_class("
|
|
7731
|
+
_html(`<span${_attr_class("_bz")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7731
7732
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7732
7733
|
_: _scope_with_id($scope2_id),
|
|
7733
7734
|
Cs: $si__input_source && 1
|
|
@@ -7735,7 +7736,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7735
7736
|
return 1;
|
|
7736
7737
|
} else if (input.noteLocal) {
|
|
7737
7738
|
const $scope10_id = _scope_id();
|
|
7738
|
-
_html(`<span${_attr_class(["
|
|
7739
|
+
_html(`<span${_attr_class(["_bz", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7739
7740
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7740
7741
|
return 2;
|
|
7741
7742
|
}
|
|
@@ -7743,7 +7744,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7743
7744
|
_if(() => {
|
|
7744
7745
|
if (input.tags) {
|
|
7745
7746
|
const $scope7_id = _scope_id();
|
|
7746
|
-
_html(`<span${_attr_class("
|
|
7747
|
+
_html(`<span${_attr_class("_by")}>`);
|
|
7747
7748
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7748
7749
|
_html("</span>");
|
|
7749
7750
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7753,7 +7754,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7753
7754
|
_if(() => {
|
|
7754
7755
|
if (input.actions) {
|
|
7755
7756
|
const $scope8_id = _scope_id();
|
|
7756
|
-
_html(`<div${_attr_class("
|
|
7757
|
+
_html(`<div${_attr_class("_d8")}>`);
|
|
7757
7758
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7758
7759
|
_html("</div>");
|
|
7759
7760
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7864,7 +7865,7 @@ var icon_moon_default = _template("ib", (input) => {
|
|
|
7864
7865
|
});
|
|
7865
7866
|
//#endregion
|
|
7866
7867
|
//#region src/tags/prompt-dialog.css.ts
|
|
7867
|
-
var promptDlg = "
|
|
7868
|
+
var promptDlg = "_hr _gT";
|
|
7868
7869
|
//#endregion
|
|
7869
7870
|
//#region src/tags/dialog-close.marko
|
|
7870
7871
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7888,7 +7889,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7888
7889
|
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;
|
|
7889
7890
|
const dismissable = input.dismissable !== false;
|
|
7890
7891
|
let open = input.open;
|
|
7891
|
-
_html(`<dialog${_attr_class(["
|
|
7892
|
+
_html(`<dialog${_attr_class(["_gS", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7892
7893
|
...htmlInput,
|
|
7893
7894
|
open: null
|
|
7894
7895
|
}, {
|
|
@@ -7898,20 +7899,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7898
7899
|
closedby: 1,
|
|
7899
7900
|
"on-cancel": 1,
|
|
7900
7901
|
"on-close": 1
|
|
7901
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7902
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_gV")}>`);
|
|
7902
7903
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7903
7904
|
_html("</div>");
|
|
7904
7905
|
_if(() => {
|
|
7905
7906
|
if (footer) {
|
|
7906
7907
|
const $scope1_id = _scope_id();
|
|
7907
|
-
_html(`<form method=dialog${_attr_class("
|
|
7908
|
+
_html(`<form method=dialog${_attr_class("_gW")}>`);
|
|
7908
7909
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7909
7910
|
_html("</form>");
|
|
7910
7911
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7911
7912
|
return 0;
|
|
7912
7913
|
} else if (input.openChange) {
|
|
7913
7914
|
const $scope2_id = _scope_id();
|
|
7914
|
-
_html(`<form method=dialog${_attr_class("
|
|
7915
|
+
_html(`<form method=dialog${_attr_class("_gW")}>`);
|
|
7915
7916
|
dialog_close_default({
|
|
7916
7917
|
class: ["_q", "_r"],
|
|
7917
7918
|
content: _content("r0", () => {
|
|
@@ -7995,7 +7996,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
7995
7996
|
content: _content("u7", () => {
|
|
7996
7997
|
_scope_reason();
|
|
7997
7998
|
const $scope2_id = _scope_id();
|
|
7998
|
-
_html(`<h2${_attr_class("
|
|
7999
|
+
_html(`<h2${_attr_class("_gU")}${_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) => {
|
|
7999
8000
|
value = _new_value;
|
|
8000
8001
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8001
8002
|
_script($scope2_id, "u5");
|
|
@@ -8517,7 +8518,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8517
8518
|
const githubId = _id();
|
|
8518
8519
|
const backupId = _id();
|
|
8519
8520
|
const machineId = _id();
|
|
8520
|
-
_html(`<div${_attr_class("
|
|
8521
|
+
_html(`<div${_attr_class("_b4")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_b5")}><div${_attr_class(content$2)}>`);
|
|
8521
8522
|
_set_serialize_reason({
|
|
8522
8523
|
0: _serialize_guard($scope0_reason, 4),
|
|
8523
8524
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8529,7 +8530,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8529
8530
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x44", () => {
|
|
8530
8531
|
_scope_reason();
|
|
8531
8532
|
const $scope4_id = _scope_id();
|
|
8532
|
-
_html(`<span${_attr_class("
|
|
8533
|
+
_html(`<span${_attr_class("_cv")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8533
8534
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8534
8535
|
_resume_branch($scope4_id);
|
|
8535
8536
|
}, $scope0_id) });
|
|
@@ -8582,16 +8583,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8582
8583
|
_if(() => {
|
|
8583
8584
|
if (selfUpdatePending || selfUpdating) {
|
|
8584
8585
|
const $scope44_id = _scope_id();
|
|
8585
|
-
_html(`<div${_attr_class("
|
|
8586
|
+
_html(`<div${_attr_class("_c9")} role=status><div${_attr_class("_c_")}>`);
|
|
8586
8587
|
_if(() => {
|
|
8587
8588
|
if (selfUpdating) {
|
|
8588
8589
|
const $scope79_id = _scope_id();
|
|
8589
|
-
_html(`<span${_attr_class("
|
|
8590
|
+
_html(`<span${_attr_class("_da")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_db")}>The app restarts and reloads when it is done.</span>`);
|
|
8590
8591
|
writeScope($scope79_id, {});
|
|
8591
8592
|
return 0;
|
|
8592
8593
|
} else {
|
|
8593
8594
|
const $scope45_id = _scope_id();
|
|
8594
|
-
_html(`<span${_attr_class("
|
|
8595
|
+
_html(`<span${_attr_class("_da")}>Update available</span><span${_attr_class("_db")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8595
8596
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8596
8597
|
return 1;
|
|
8597
8598
|
}
|
|
@@ -8610,11 +8611,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8610
8611
|
return 0;
|
|
8611
8612
|
}
|
|
8612
8613
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8613
|
-
_html(`<section${_attr_class("
|
|
8614
|
+
_html(`<section${_attr_class("_bq")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_br")}><h2${_attr("id", agentsId)}${_attr_class("_bE")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_cy")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8614
8615
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8615
8616
|
setPreferred(v);
|
|
8616
8617
|
}, "x2", $scope0_id), () => {
|
|
8617
|
-
_html(`<select${_attr_class(["_p", "
|
|
8618
|
+
_html(`<select${_attr_class(["_p", "_cz"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8618
8619
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8619
8620
|
const $scope80_id = _scope_id();
|
|
8620
8621
|
_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)}`);
|
|
@@ -8628,14 +8629,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8628
8629
|
const rows = lone ? [] : a.instances;
|
|
8629
8630
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8630
8631
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8631
|
-
_html(`<li${_attr_class(["
|
|
8632
|
+
_html(`<li${_attr_class(["_bv", "_cx"])}><div${_attr_class(["_cA", { ["_cD"]: lone && !lone.enabled }])}>`);
|
|
8632
8633
|
_set_serialize_reason(12);
|
|
8633
8634
|
const $childScope3 = _peek_scope_id();
|
|
8634
8635
|
icon_agent_default({
|
|
8635
8636
|
agent: a.id,
|
|
8636
8637
|
size: 18
|
|
8637
8638
|
});
|
|
8638
|
-
_html(`<div${_attr_class("
|
|
8639
|
+
_html(`<div${_attr_class("_bw")}><span${_attr_class("_by")}><span${_attr_class("_bx")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8639
8640
|
_if(() => {
|
|
8640
8641
|
if (lone && input$3.preferred === lone.id) {
|
|
8641
8642
|
const $scope81_id = _scope_id();
|
|
@@ -8648,12 +8649,12 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8648
8649
|
_if(() => {
|
|
8649
8650
|
if (active.has(a.id)) {
|
|
8650
8651
|
const $scope12_id = _scope_id();
|
|
8651
|
-
_html(`<span${_attr_class("
|
|
8652
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8652
8653
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8653
8654
|
return 0;
|
|
8654
8655
|
} else if (!a.installed) {
|
|
8655
8656
|
const $scope82_id = _scope_id();
|
|
8656
|
-
_html(`<span${_attr_class("
|
|
8657
|
+
_html(`<span${_attr_class("_bz")}>Not installed</span>`);
|
|
8657
8658
|
writeScope($scope82_id, {});
|
|
8658
8659
|
return 1;
|
|
8659
8660
|
}
|
|
@@ -8681,15 +8682,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8681
8682
|
_if(() => {
|
|
8682
8683
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8683
8684
|
const $scope2_id = _scope_id();
|
|
8684
|
-
_html(`<ul${_attr_class(["
|
|
8685
|
+
_html(`<ul${_attr_class(["_cF", { ["_cD"]: lone && !lone.enabled }])}>`);
|
|
8685
8686
|
_for_of(rows, (inst) => {
|
|
8686
8687
|
const $scope3_id = _scope_id();
|
|
8687
8688
|
const accounts = accountsFor(inst.id);
|
|
8688
|
-
_html(`<li${_attr_class(["
|
|
8689
|
+
_html(`<li${_attr_class(["_cB", { ["_cD"]: !inst.enabled }])}><div${_attr_class("_cC")}>`);
|
|
8689
8690
|
_set_serialize_reason(12);
|
|
8690
8691
|
const $childScope4 = _peek_scope_id();
|
|
8691
8692
|
icon_agent_default({ agent: inst.id });
|
|
8692
|
-
_html(`<span${_attr_class(["
|
|
8693
|
+
_html(`<span${_attr_class(["_cE", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8693
8694
|
_if(() => {
|
|
8694
8695
|
if (input$3.preferred === inst.id) {
|
|
8695
8696
|
const $scope83_id = _scope_id();
|
|
@@ -8760,7 +8761,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8760
8761
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8761
8762
|
_for_of(otherUsage, (u) => {
|
|
8762
8763
|
const $scope87_id = _scope_id();
|
|
8763
|
-
_html(`<li${_attr_class(["
|
|
8764
|
+
_html(`<li${_attr_class(["_bv", "_cx"])}>`);
|
|
8764
8765
|
_set_serialize_reason(6);
|
|
8765
8766
|
const $childScope8 = _peek_scope_id();
|
|
8766
8767
|
usage_meters_default({ agent: u });
|
|
@@ -8771,21 +8772,21 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8771
8772
|
_if(() => {
|
|
8772
8773
|
if (!usage && families.length) {
|
|
8773
8774
|
const $scope88_id = _scope_id();
|
|
8774
|
-
_html(`<p${_attr_class("
|
|
8775
|
+
_html(`<p${_attr_class("_bB")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8775
8776
|
writeScope($scope88_id, {});
|
|
8776
8777
|
return 0;
|
|
8777
8778
|
} else if (usage?.error) {
|
|
8778
8779
|
const $scope8_id = _scope_id();
|
|
8779
|
-
_html(`<p${_attr_class("
|
|
8780
|
+
_html(`<p${_attr_class("_bB")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8780
8781
|
writeScope($scope8_id, {});
|
|
8781
8782
|
return 1;
|
|
8782
8783
|
}
|
|
8783
8784
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8784
|
-
_html(`</section><section${_attr_class("
|
|
8785
|
+
_html(`</section><section${_attr_class("_bq")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_br")}><h2${_attr("id", githubId)}${_attr_class("_bE")}>GitHub</h2>`);
|
|
8785
8786
|
_if(() => {
|
|
8786
8787
|
if (setup && !addingHost) {
|
|
8787
8788
|
const $scope42_id = _scope_id();
|
|
8788
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8789
|
+
_html(`<button${_attr_class([iconBtnRow, "_cO"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8789
8790
|
icon_plus_default({ size: 16 });
|
|
8790
8791
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8791
8792
|
_script($scope42_id, "x51");
|
|
@@ -8797,10 +8798,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8797
8798
|
if (setup) {
|
|
8798
8799
|
const $scope41_id = _scope_id();
|
|
8799
8800
|
_html(`<form${_attr_class([
|
|
8800
|
-
"
|
|
8801
|
-
"
|
|
8802
|
-
{ ["
|
|
8803
|
-
])}><label${_attr_class(["_1", "
|
|
8801
|
+
"_dS",
|
|
8802
|
+
"_cO",
|
|
8803
|
+
{ ["_dT"]: !addingHost }
|
|
8804
|
+
])}><label${_attr_class(["_1", "_dV"])}>`);
|
|
8804
8805
|
icon_github_default({
|
|
8805
8806
|
size: 14,
|
|
8806
8807
|
class: "_2"
|
|
@@ -8810,32 +8811,32 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8810
8811
|
}, "x3", $scope41_id))}${_attr_class([
|
|
8811
8812
|
"_Z",
|
|
8812
8813
|
"_3",
|
|
8813
|
-
"
|
|
8814
|
+
"_dW"
|
|
8814
8815
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8815
8816
|
btnSm,
|
|
8816
8817
|
"_r",
|
|
8817
|
-
"
|
|
8818
|
-
])} 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, "
|
|
8819
|
-
icon_xmark_default({ size:
|
|
8818
|
+
"_cN"
|
|
8819
|
+
])} 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, "_dX"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8820
|
+
icon_xmark_default({ size: 14 });
|
|
8820
8821
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8821
8822
|
_script($scope41_id, "x52");
|
|
8822
8823
|
writeScope($scope41_id, {});
|
|
8823
8824
|
return 0;
|
|
8824
8825
|
}
|
|
8825
8826
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8826
|
-
_html(`</div><div${_attr_class(["
|
|
8827
|
+
_html(`</div><div${_attr_class(["_bv", "_cc"])}>`);
|
|
8827
8828
|
_for_of(setup?.github || [], (h) => {
|
|
8828
8829
|
const $scope6_id = _scope_id();
|
|
8829
8830
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8830
8831
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8831
8832
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8832
8833
|
const busy = active.has(h.host);
|
|
8833
|
-
_html(`<div${_attr_class(["
|
|
8834
|
+
_html(`<div${_attr_class(["_cd", "_cP"])}><div${_attr_class("_cQ")}>`);
|
|
8834
8835
|
icon_github_default({
|
|
8835
8836
|
size: 18,
|
|
8836
|
-
class: "
|
|
8837
|
+
class: "_cR"
|
|
8837
8838
|
});
|
|
8838
|
-
_html(`<div${_attr_class("
|
|
8839
|
+
_html(`<div${_attr_class("_bw")}><span${_attr_class("_by")}><span${_attr_class("_bx")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8839
8840
|
_if(() => {
|
|
8840
8841
|
if (h.isEnterprise) {
|
|
8841
8842
|
const $scope91_id = _scope_id();
|
|
@@ -8848,25 +8849,25 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8848
8849
|
_if(() => {
|
|
8849
8850
|
if (busy) {
|
|
8850
8851
|
const $scope13_id = _scope_id();
|
|
8851
|
-
_html(`<span${_attr_class(["
|
|
8852
|
+
_html(`<span${_attr_class(["_bz", "_cS"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8852
8853
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8853
8854
|
return 0;
|
|
8854
8855
|
} else if (h.authed) {
|
|
8855
8856
|
const $scope89_id = _scope_id();
|
|
8856
|
-
_html(`<span${_attr_class(["
|
|
8857
|
+
_html(`<span${_attr_class(["_bz", "_cS"])}>`);
|
|
8857
8858
|
icon_check_default({
|
|
8858
8859
|
size: 12,
|
|
8859
|
-
class: "
|
|
8860
|
+
class: "_cT"
|
|
8860
8861
|
});
|
|
8861
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8862
|
+
_html(` Signed in as <strong${_attr_class("_cV")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8862
8863
|
writeScope($scope89_id, {});
|
|
8863
8864
|
return 1;
|
|
8864
8865
|
} else if (h.error) {
|
|
8865
8866
|
const $scope90_id = _scope_id();
|
|
8866
8867
|
_html(`<span${_attr_class([
|
|
8867
|
-
"
|
|
8868
|
-
"
|
|
8869
|
-
"
|
|
8868
|
+
"_bz",
|
|
8869
|
+
"_cS",
|
|
8870
|
+
"_cU"
|
|
8870
8871
|
])}>`);
|
|
8871
8872
|
icon_warning_default({ size: 12 });
|
|
8872
8873
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8874,7 +8875,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8874
8875
|
return 2;
|
|
8875
8876
|
} else {
|
|
8876
8877
|
const $scope92_id = _scope_id();
|
|
8877
|
-
_html(`<span${_attr_class(["
|
|
8878
|
+
_html(`<span${_attr_class(["_bz", "_cS"])}>Not signed in</span>`);
|
|
8878
8879
|
writeScope($scope92_id, {});
|
|
8879
8880
|
return 3;
|
|
8880
8881
|
}
|
|
@@ -8905,7 +8906,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8905
8906
|
if (h.isEnterprise) {
|
|
8906
8907
|
const $scope33_id = _scope_id();
|
|
8907
8908
|
_html(`<button${_attr_class([
|
|
8908
|
-
"
|
|
8909
|
+
"_bA",
|
|
8909
8910
|
"_8",
|
|
8910
8911
|
"_9",
|
|
8911
8912
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8918,7 +8919,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8918
8919
|
return 0;
|
|
8919
8920
|
} else {
|
|
8920
8921
|
const $scope94_id = _scope_id();
|
|
8921
|
-
icon_xmark_default({ size:
|
|
8922
|
+
icon_xmark_default({ size: 14 });
|
|
8922
8923
|
writeScope($scope94_id, {});
|
|
8923
8924
|
return 1;
|
|
8924
8925
|
}
|
|
@@ -8939,7 +8940,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8939
8940
|
_if(() => {
|
|
8940
8941
|
if (busy && authCodes.has(h.host)) {
|
|
8941
8942
|
const $scope30_id = _scope_id();
|
|
8942
|
-
_html(`<div${_attr_class("
|
|
8943
|
+
_html(`<div${_attr_class("_cW")}><span${_attr_class("_cX")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cZ")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_cY")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8943
8944
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8944
8945
|
return 0;
|
|
8945
8946
|
}
|
|
@@ -8951,7 +8952,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8951
8952
|
_set_serialize_reason(30);
|
|
8952
8953
|
const $childScope9 = _peek_scope_id();
|
|
8953
8954
|
sso_auth_default({
|
|
8954
|
-
class: ["
|
|
8955
|
+
class: ["_cd", "_c0"],
|
|
8955
8956
|
items: hostSso$1,
|
|
8956
8957
|
skipped: skippedSso,
|
|
8957
8958
|
busy,
|
|
@@ -8985,23 +8986,23 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8985
8986
|
_if(() => {
|
|
8986
8987
|
if (setup && !setup.github.length) {
|
|
8987
8988
|
const $scope95_id = _scope_id();
|
|
8988
|
-
_html(`<p${_attr_class("
|
|
8989
|
+
_html(`<p${_attr_class("_bB")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8989
8990
|
writeScope($scope95_id, {});
|
|
8990
8991
|
return 0;
|
|
8991
8992
|
}
|
|
8992
8993
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8993
|
-
_html(`</section><section${_attr_class("
|
|
8994
|
+
_html(`</section><section${_attr_class("_bq")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_br")}><h2${_attr("id", machineId)}${_attr_class("_bE")}>Machine</h2></div><div${_attr_class(["_bv", "_cc"])}><div${_attr_class(["_cd", "_ch"])}><div${_attr_class(["_ci", { ["_cj"]: skillsOpen }])}><button${_attr_class("_ck")} aria-expanded=true>`);
|
|
8994
8995
|
_set_serialize_reason(1);
|
|
8995
8996
|
const $childScope10 = _peek_scope_id();
|
|
8996
8997
|
icon_chevron_right_default({
|
|
8997
8998
|
size: 12,
|
|
8998
|
-
class: ["
|
|
8999
|
+
class: ["_co", { ["_cp"]: skillsOpen }]
|
|
8999
9000
|
});
|
|
9000
|
-
_html(`<span${_attr_class("
|
|
9001
|
+
_html(`<span${_attr_class("_cl")}>Skills</span>`);
|
|
9001
9002
|
_if(() => {
|
|
9002
9003
|
if (skills?.global.length) {
|
|
9003
9004
|
const $scope51_id = _scope_id();
|
|
9004
|
-
_html(`<span${_attr_class("
|
|
9005
|
+
_html(`<span${_attr_class("_cm")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9005
9006
|
writeScope($scope51_id, {});
|
|
9006
9007
|
return 0;
|
|
9007
9008
|
}
|
|
@@ -9021,7 +9022,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9021
9022
|
_if(() => {
|
|
9022
9023
|
if (skills?.available && skills.agents.length) {
|
|
9023
9024
|
const $scope14_id = _scope_id();
|
|
9024
|
-
_html(`<div${_attr_class(["
|
|
9025
|
+
_html(`<div${_attr_class(["_dS", { ["_dT"]: true }])}><label${_attr_class(["_1", "_dV"])}>`);
|
|
9025
9026
|
_if(() => {
|
|
9026
9027
|
if (skillSearching) {
|
|
9027
9028
|
const $scope96_id = _scope_id();
|
|
@@ -9041,14 +9042,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9041
9042
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9042
9043
|
"_Z",
|
|
9043
9044
|
"_3",
|
|
9044
|
-
"
|
|
9045
|
-
])} 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, "
|
|
9046
|
-
icon_xmark_default({ size:
|
|
9047
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9045
|
+
"_dW"
|
|
9046
|
+
])} 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, "_dX"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9047
|
+
icon_xmark_default({ size: 14 });
|
|
9048
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_dZ"])}${_attr("hidden", true)}>`);
|
|
9048
9049
|
_if(() => {
|
|
9049
9050
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9050
9051
|
const $scope98_id = _scope_id();
|
|
9051
|
-
_html(`<li${_attr_class("
|
|
9052
|
+
_html(`<li${_attr_class("_d0")}>Searching skills.sh…</li>`);
|
|
9052
9053
|
writeScope($scope98_id, {});
|
|
9053
9054
|
return 0;
|
|
9054
9055
|
}
|
|
@@ -9056,11 +9057,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9056
9057
|
_if(() => {
|
|
9057
9058
|
if (looksLikeSource(skillQuery)) {
|
|
9058
9059
|
const $scope15_id = _scope_id();
|
|
9059
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9060
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bw")}><span${_attr_class(["_cJ", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9060
9061
|
_if(() => {
|
|
9061
9062
|
if (active.has(skillQuery.trim())) {
|
|
9062
9063
|
const $scope16_id = _scope_id();
|
|
9063
|
-
_html(`<span${_attr_class("
|
|
9064
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9064
9065
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9065
9066
|
Ch2: 3,
|
|
9066
9067
|
Chr: 1
|
|
@@ -9068,7 +9069,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9068
9069
|
return 0;
|
|
9069
9070
|
} else {
|
|
9070
9071
|
const $scope99_id = _scope_id();
|
|
9071
|
-
_html(`<span${_attr_class("
|
|
9072
|
+
_html(`<span${_attr_class("_bz")}>Add straight from this source</span>`);
|
|
9072
9073
|
writeScope($scope99_id, {});
|
|
9073
9074
|
return 1;
|
|
9074
9075
|
}
|
|
@@ -9091,16 +9092,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9091
9092
|
_for_of(skillHits || [], (h) => {
|
|
9092
9093
|
const $scope17_id = _scope_id();
|
|
9093
9094
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9094
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9095
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bw")}><span${_attr_class(["_cJ", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9095
9096
|
_if(() => {
|
|
9096
9097
|
if (active.has(h.skillId)) {
|
|
9097
9098
|
const $scope18_id = _scope_id();
|
|
9098
|
-
_html(`<span${_attr_class("
|
|
9099
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9099
9100
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9100
9101
|
return 0;
|
|
9101
9102
|
} else {
|
|
9102
9103
|
const $scope100_id = _scope_id();
|
|
9103
|
-
_html(`<span${_attr_class("
|
|
9104
|
+
_html(`<span${_attr_class("_bz")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9104
9105
|
writeScope($scope100_id, {});
|
|
9105
9106
|
return 1;
|
|
9106
9107
|
}
|
|
@@ -9148,7 +9149,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9148
9149
|
_if(() => {
|
|
9149
9150
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9150
9151
|
const $scope53_id = _scope_id();
|
|
9151
|
-
_html(`<li${_attr_class("
|
|
9152
|
+
_html(`<li${_attr_class("_d0")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9152
9153
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9153
9154
|
return 0;
|
|
9154
9155
|
}
|
|
@@ -9163,22 +9164,22 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9163
9164
|
_if(() => {
|
|
9164
9165
|
{
|
|
9165
9166
|
const $scope19_id = _scope_id();
|
|
9166
|
-
_html(`<div${_attr_class("
|
|
9167
|
+
_html(`<div${_attr_class("_cn")}>`);
|
|
9167
9168
|
_if(() => {
|
|
9168
9169
|
if (skills && !skills.agents.length) {
|
|
9169
9170
|
const $scope103_id = _scope_id();
|
|
9170
|
-
_html(`<p${_attr_class("
|
|
9171
|
+
_html(`<p${_attr_class("_bB")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9171
9172
|
writeScope($scope103_id, {});
|
|
9172
9173
|
return 0;
|
|
9173
9174
|
} else if (skills && !skills.available) {
|
|
9174
9175
|
const $scope20_id = _scope_id();
|
|
9175
|
-
_html(`<p${_attr_class("
|
|
9176
|
+
_html(`<p${_attr_class("_bB")}>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>`);
|
|
9176
9177
|
_script($scope20_id, "x60");
|
|
9177
9178
|
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9178
9179
|
return 1;
|
|
9179
9180
|
}
|
|
9180
9181
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9181
|
-
_html(`<ul${_attr_class("
|
|
9182
|
+
_html(`<ul${_attr_class("_d2")}>`);
|
|
9182
9183
|
_for_of(skills?.global || [], (s) => {
|
|
9183
9184
|
const $scope21_id = _scope_id();
|
|
9184
9185
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9254,7 +9255,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9254
9255
|
_if(() => {
|
|
9255
9256
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9256
9257
|
const $scope108_id = _scope_id();
|
|
9257
|
-
_html(`<p${_attr_class("
|
|
9258
|
+
_html(`<p${_attr_class("_bB")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9258
9259
|
writeScope($scope108_id, {});
|
|
9259
9260
|
return 0;
|
|
9260
9261
|
}
|
|
@@ -9264,14 +9265,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9264
9265
|
return 0;
|
|
9265
9266
|
}
|
|
9266
9267
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9267
|
-
_html(`</div><div${_attr_class(["
|
|
9268
|
+
_html(`</div><div${_attr_class(["_cd", "_ch"])}><div${_attr_class(["_ci", { ["_cj"]: machineOpen }])}><button${_attr_class("_ck")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9268
9269
|
_set_serialize_reason(1);
|
|
9269
9270
|
const $childScope12 = _peek_scope_id();
|
|
9270
9271
|
icon_chevron_right_default({
|
|
9271
9272
|
size: 12,
|
|
9272
|
-
class: ["
|
|
9273
|
+
class: ["_co", { ["_cp"]: machineOpen }]
|
|
9273
9274
|
});
|
|
9274
|
-
_html(`<span${_attr_class("
|
|
9275
|
+
_html(`<span${_attr_class("_cl")}>Tools</span><span${_attr_class("_cm")}>${_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")}`);
|
|
9275
9276
|
_if(() => {
|
|
9276
9277
|
if (outdatedIds.length > 1) {
|
|
9277
9278
|
const $scope22_id = _scope_id();
|
|
@@ -9304,7 +9305,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9304
9305
|
_if(() => {
|
|
9305
9306
|
if (setup && setup.mise.installed) {
|
|
9306
9307
|
const $scope24_id = _scope_id();
|
|
9307
|
-
_html(`<div${_attr_class(["
|
|
9308
|
+
_html(`<div${_attr_class(["_dS", { ["_dT"]: true }])}><label${_attr_class(["_1", "_dV"])}>`);
|
|
9308
9309
|
_if(() => {
|
|
9309
9310
|
if (searching) {
|
|
9310
9311
|
const $scope109_id = _scope_id();
|
|
@@ -9324,14 +9325,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9324
9325
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9325
9326
|
"_Z",
|
|
9326
9327
|
"_3",
|
|
9327
|
-
"
|
|
9328
|
-
])} 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, "
|
|
9329
|
-
icon_xmark_default({ size:
|
|
9330
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9328
|
+
"_dW"
|
|
9329
|
+
])} 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, "_dX"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9330
|
+
icon_xmark_default({ size: 14 });
|
|
9331
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_dZ"])}${_attr("hidden", true)}>`);
|
|
9331
9332
|
_if(() => {
|
|
9332
9333
|
if (searching && !hits?.length) {
|
|
9333
9334
|
const $scope111_id = _scope_id();
|
|
9334
|
-
_html(`<li${_attr_class("
|
|
9335
|
+
_html(`<li${_attr_class("_d0")}>Searching the mise registry…</li>`);
|
|
9335
9336
|
writeScope($scope111_id, {});
|
|
9336
9337
|
return 0;
|
|
9337
9338
|
}
|
|
@@ -9339,23 +9340,23 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9339
9340
|
_if(() => {
|
|
9340
9341
|
if (hits && !hits.length && !searching) {
|
|
9341
9342
|
const $scope43_id = _scope_id();
|
|
9342
|
-
_html(`<li${_attr_class("
|
|
9343
|
+
_html(`<li${_attr_class("_d0")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9343
9344
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9344
9345
|
return 0;
|
|
9345
9346
|
}
|
|
9346
9347
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9347
9348
|
_for_of(hits || [], (h) => {
|
|
9348
9349
|
const $scope25_id = _scope_id();
|
|
9349
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9350
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bw")}><span${_attr_class(["_cJ", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9350
9351
|
_if(() => {
|
|
9351
9352
|
if (active.has(h.name)) {
|
|
9352
9353
|
const $scope26_id = _scope_id();
|
|
9353
|
-
_html(`<span${_attr_class("
|
|
9354
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9354
9355
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9355
9356
|
return 0;
|
|
9356
9357
|
} else if (h.description) {
|
|
9357
9358
|
const $scope112_id = _scope_id();
|
|
9358
|
-
_html(`<span${_attr_class("
|
|
9359
|
+
_html(`<span${_attr_class("_bz")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9359
9360
|
writeScope($scope112_id, {});
|
|
9360
9361
|
return 1;
|
|
9361
9362
|
}
|
|
@@ -9400,11 +9401,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9400
9401
|
_if(() => {
|
|
9401
9402
|
if (machineOpen) {
|
|
9402
9403
|
const $scope5_id = _scope_id();
|
|
9403
|
-
_html(`<div${_attr_class("
|
|
9404
|
+
_html(`<div${_attr_class("_cn")}>`);
|
|
9404
9405
|
_if(() => {
|
|
9405
9406
|
if (setup && !setup.mise.installed) {
|
|
9406
9407
|
const $scope27_id = _scope_id();
|
|
9407
|
-
_html(`<p${_attr_class("
|
|
9408
|
+
_html(`<p${_attr_class("_bB")}>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>`);
|
|
9408
9409
|
_script($scope27_id, "x71");
|
|
9409
9410
|
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9410
9411
|
return 0;
|
|
@@ -9414,11 +9415,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9414
9415
|
_if(() => {
|
|
9415
9416
|
if (self) {
|
|
9416
9417
|
const $scope47_id = _scope_id();
|
|
9417
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9418
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_cJ", "_y"])}>work</span>`);
|
|
9418
9419
|
_if(() => {
|
|
9419
9420
|
if (selfUpdating) {
|
|
9420
9421
|
const $scope114_id = _scope_id();
|
|
9421
|
-
_html(`<span${_attr_class("
|
|
9422
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9422
9423
|
writeScope($scope114_id, {});
|
|
9423
9424
|
return 0;
|
|
9424
9425
|
} else {
|
|
@@ -9432,7 +9433,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9432
9433
|
return 0;
|
|
9433
9434
|
} else if (self.latest && self.latest !== self.version) {
|
|
9434
9435
|
const $scope49_id = _scope_id();
|
|
9435
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9436
|
+
_html(`<button${_attr_class([btnSm, "_cM"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9436
9437
|
icon_arrow_up_default({ size: 12 });
|
|
9437
9438
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9438
9439
|
_script($scope49_id, "x72");
|
|
@@ -9476,11 +9477,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9476
9477
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9477
9478
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9478
9479
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9479
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9480
|
+
_html(`<li${_attr_class([toolRow, { ["_cI"]: !t.installed }])}><span${_attr_class(["_cJ", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9480
9481
|
_if(() => {
|
|
9481
9482
|
if (active.has(t.id)) {
|
|
9482
9483
|
const $scope29_id = _scope_id();
|
|
9483
|
-
_html(`<span${_attr_class("
|
|
9484
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9484
9485
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9485
9486
|
return 0;
|
|
9486
9487
|
} else if (t.installed) {
|
|
@@ -9488,11 +9489,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9488
9489
|
_if(() => {
|
|
9489
9490
|
if (t.version) {
|
|
9490
9491
|
const $scope40_id = _scope_id();
|
|
9491
|
-
_html(`<button${_attr_class(["
|
|
9492
|
+
_html(`<button${_attr_class(["_cL", "_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)}`);
|
|
9492
9493
|
_if(() => {
|
|
9493
9494
|
if (aliasPin(t)) {
|
|
9494
9495
|
const $scope118_id = _scope_id();
|
|
9495
|
-
_html(`<span${_attr_class("
|
|
9496
|
+
_html(`<span${_attr_class("_cK")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9496
9497
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9497
9498
|
return 0;
|
|
9498
9499
|
}
|
|
@@ -9511,7 +9512,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9511
9512
|
_if(() => {
|
|
9512
9513
|
if (outdated(t)) {
|
|
9513
9514
|
const $scope59_id = _scope_id();
|
|
9514
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9515
|
+
_html(`<button${_attr_class([btnSm, "_cM"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9515
9516
|
icon_arrow_up_default({ size: 12 });
|
|
9516
9517
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9517
9518
|
_script($scope59_id, "x74");
|
|
@@ -9519,7 +9520,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9519
9520
|
return 0;
|
|
9520
9521
|
} else if (t.newest) {
|
|
9521
9522
|
const $scope60_id = _scope_id();
|
|
9522
|
-
_html(`<button${_attr_class(["
|
|
9523
|
+
_html(`<button${_attr_class(["_cL", "_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")}`);
|
|
9523
9524
|
_script($scope60_id, "x75");
|
|
9524
9525
|
_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, {
|
|
9525
9526
|
Cw: 1,
|
|
@@ -9635,14 +9636,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9635
9636
|
label: "Dark"
|
|
9636
9637
|
}
|
|
9637
9638
|
];
|
|
9638
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9639
|
+
_html(`</div></div></section><section${_attr_class("_bq")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_br")}><h2${_attr("id", appearanceId)}${_attr_class("_bE")}>Appearance</h2></div><div${_attr_class(["_bv", "_c1"])}><div${_attr_class("_dc")}><img${_attr_class("_dd")}${_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("_de")}><span${_attr_class("_df")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dg")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_c2")}><span${_attr_class("_c3")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9639
9640
|
setInstance({ name: v });
|
|
9640
|
-
}, "x4", $scope0_id))}${_attr_class(["_Z", "
|
|
9641
|
+
}, "x4", $scope0_id))}${_attr_class(["_Z", "_c4"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_c2")}><span${_attr_class("_c3")}>Theme</span><span${_attr_class("_c6")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9641
9642
|
_for_of(themeOpts, (opt) => {
|
|
9642
9643
|
const $scope50_id = _scope_id();
|
|
9643
9644
|
_html(`<button type=button${_attr_class([
|
|
9644
9645
|
"_bg",
|
|
9645
|
-
"
|
|
9646
|
+
"_dh",
|
|
9646
9647
|
{ ["_bf"]: themeMode === opt.id }
|
|
9647
9648
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9648
9649
|
if (opt.id === "system") {
|
|
@@ -9662,28 +9663,28 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9662
9663
|
_: _scope_with_id($scope0_id)
|
|
9663
9664
|
});
|
|
9664
9665
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9665
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9666
|
+
_html(`</span><span${_attr_class(["_o", "_c7"])}>`);
|
|
9666
9667
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9667
9668
|
setThemeMode(v);
|
|
9668
9669
|
}, "x5", $scope0_id), () => {
|
|
9669
|
-
_html(`<select${_attr_class(["_p", "
|
|
9670
|
+
_html(`<select${_attr_class(["_p", "_c8"])} aria-label="Color theme">`);
|
|
9670
9671
|
forOf(themeOpts, (opt) => {
|
|
9671
9672
|
_scope_id();
|
|
9672
9673
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9673
9674
|
});
|
|
9674
9675
|
_html("</select>");
|
|
9675
9676
|
});
|
|
9676
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9677
|
-
"
|
|
9678
|
-
"
|
|
9679
|
-
{ ["
|
|
9677
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_c2")}><span${_attr_class("_c3")}>Accent</span><span${_attr_class("_di")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9678
|
+
"_dj",
|
|
9679
|
+
"_dm",
|
|
9680
|
+
{ ["_dk"]: !accent }
|
|
9680
9681
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9681
9682
|
_if(() => {
|
|
9682
9683
|
if (!accent) {
|
|
9683
9684
|
const $scope129_id = _scope_id();
|
|
9684
9685
|
icon_check_default({
|
|
9685
9686
|
size: 12,
|
|
9686
|
-
class: "
|
|
9687
|
+
class: "_dl"
|
|
9687
9688
|
});
|
|
9688
9689
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9689
9690
|
return 0;
|
|
@@ -9691,13 +9692,13 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9691
9692
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9692
9693
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9693
9694
|
const $scope77_id = _scope_id();
|
|
9694
|
-
_html(`<button type=button${_attr_class(["
|
|
9695
|
+
_html(`<button type=button${_attr_class(["_dj", { ["_dk"]: 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)}>`);
|
|
9695
9696
|
_if(() => {
|
|
9696
9697
|
if (accent === p.value) {
|
|
9697
9698
|
const $scope130_id = _scope_id();
|
|
9698
9699
|
icon_check_default({
|
|
9699
9700
|
size: 12,
|
|
9700
|
-
class: "
|
|
9701
|
+
class: "_dl"
|
|
9701
9702
|
});
|
|
9702
9703
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9703
9704
|
return 0;
|
|
@@ -9711,18 +9712,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9711
9712
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9712
9713
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9713
9714
|
_html(`<label${_attr_class([
|
|
9714
|
-
"
|
|
9715
|
-
"
|
|
9716
|
-
{ ["
|
|
9715
|
+
"_dj",
|
|
9716
|
+
"_dn",
|
|
9717
|
+
{ ["_dk"]: customOn }
|
|
9717
9718
|
])}${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) {
|
|
9718
9719
|
setInstance({ accent: v });
|
|
9719
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
9720
|
+
}, "x6", $scope0_id))}${_attr_class("_do")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9720
9721
|
_if(() => {
|
|
9721
9722
|
if (customOn) {
|
|
9722
9723
|
const $scope131_id = _scope_id();
|
|
9723
9724
|
icon_check_default({
|
|
9724
9725
|
size: 12,
|
|
9725
|
-
class: "
|
|
9726
|
+
class: "_dl"
|
|
9726
9727
|
});
|
|
9727
9728
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9728
9729
|
return 0;
|
|
@@ -9733,16 +9734,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9733
9734
|
return 1;
|
|
9734
9735
|
}
|
|
9735
9736
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9736
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9737
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bq")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_br")}><h2${_attr("id", backupId)}${_attr_class("_bE")}>Backup</h2></div><div${_attr_class(["_bv", "_cc"])}><div${_attr_class("_cd")}><div${_attr_class("_dp")}><div${_attr_class("_bw")}>`);
|
|
9737
9738
|
_if(() => {
|
|
9738
9739
|
if (backupBusy === "preflight") {
|
|
9739
9740
|
const $scope65_id = _scope_id();
|
|
9740
|
-
_html(`<span${_attr_class("
|
|
9741
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9741
9742
|
writeScope($scope65_id, {});
|
|
9742
9743
|
return 0;
|
|
9743
9744
|
} else {
|
|
9744
9745
|
const $scope133_id = _scope_id();
|
|
9745
|
-
_html(`<span${_attr_class("
|
|
9746
|
+
_html(`<span${_attr_class("_bz")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9746
9747
|
writeScope($scope133_id, {});
|
|
9747
9748
|
return 1;
|
|
9748
9749
|
}
|
|
@@ -9760,7 +9761,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9760
9761
|
_if(() => {
|
|
9761
9762
|
if (preflight && !backupBusy) {
|
|
9762
9763
|
const $scope67_id = _scope_id();
|
|
9763
|
-
_html(`<div${_attr_class("
|
|
9764
|
+
_html(`<div${_attr_class("_dr")}><p${_attr_class("_ds")}>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("_ds")}>Not in the file: `);
|
|
9764
9765
|
_if(() => {
|
|
9765
9766
|
if (preflight.unpushed) {
|
|
9766
9767
|
const $scope68_id = _scope_id();
|
|
@@ -9777,15 +9778,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9777
9778
|
return 0;
|
|
9778
9779
|
}
|
|
9779
9780
|
}, $scope67_id, "m");
|
|
9780
|
-
_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("
|
|
9781
|
+
_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("_dt")}>`);
|
|
9781
9782
|
_for_of(preflight.workspaces, (w) => {
|
|
9782
9783
|
const $scope135_id = _scope_id();
|
|
9783
9784
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9784
|
-
_html(`<li${_attr_class("
|
|
9785
|
+
_html(`<li${_attr_class("_du")}><span${_attr_class("_bx")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dt")}>`);
|
|
9785
9786
|
_for_of(w.repos, (r) => {
|
|
9786
9787
|
const $scope136_id = _scope_id();
|
|
9787
9788
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9788
|
-
_html(`<li${_attr_class("
|
|
9789
|
+
_html(`<li${_attr_class("_dv")}><span${_attr_class("_dw")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9789
9790
|
_for_of(r.unpushed, (b) => {
|
|
9790
9791
|
const $scope137_id = _scope_id();
|
|
9791
9792
|
_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 `);
|
|
@@ -9804,10 +9805,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9804
9805
|
_if(() => {
|
|
9805
9806
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9806
9807
|
const $scope138_id = _scope_id();
|
|
9807
|
-
_html(`<ul${_attr_class("
|
|
9808
|
+
_html(`<ul${_attr_class("_dx")}>`);
|
|
9808
9809
|
_for_of(r.modified, (f) => {
|
|
9809
9810
|
const $scope141_id = _scope_id();
|
|
9810
|
-
_html(`<li${_attr_class("
|
|
9811
|
+
_html(`<li${_attr_class("_dy")}><span${_attr_class([
|
|
9811
9812
|
"_N",
|
|
9812
9813
|
"_P",
|
|
9813
9814
|
tone.warn
|
|
@@ -9816,18 +9817,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9816
9817
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9817
9818
|
_for_of(r.untracked, (f) => {
|
|
9818
9819
|
const $scope142_id = _scope_id();
|
|
9819
|
-
_html(`<li${_attr_class("
|
|
9820
|
+
_html(`<li${_attr_class("_dy")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9820
9821
|
writeScope($scope142_id, {});
|
|
9821
9822
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9822
9823
|
_for_of(r.ignored, (f) => {
|
|
9823
9824
|
const $scope143_id = _scope_id();
|
|
9824
|
-
_html(`<li${_attr_class("
|
|
9825
|
+
_html(`<li${_attr_class("_dy")}><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>`);
|
|
9825
9826
|
writeScope($scope143_id, {});
|
|
9826
9827
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9827
9828
|
_if(() => {
|
|
9828
9829
|
if (r.more) {
|
|
9829
9830
|
const $scope139_id = _scope_id();
|
|
9830
|
-
_html(`<li${_attr_class(["
|
|
9831
|
+
_html(`<li${_attr_class(["_dy", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9831
9832
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9832
9833
|
return 0;
|
|
9833
9834
|
}
|
|
@@ -9852,27 +9853,27 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9852
9853
|
i: $for_content18__w_name__closures
|
|
9853
9854
|
});
|
|
9854
9855
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9855
|
-
_html(`<div${_attr_class("
|
|
9856
|
+
_html(`<div${_attr_class("_dz")}><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>`);
|
|
9856
9857
|
_script($scope67_id, "x81");
|
|
9857
9858
|
writeScope($scope67_id, {});
|
|
9858
9859
|
return 0;
|
|
9859
9860
|
}
|
|
9860
9861
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9861
|
-
_html(`</div><div${_attr_class("
|
|
9862
|
+
_html(`</div><div${_attr_class("_cd")}><div${_attr_class("_dp")}><div${_attr_class("_bw")}>`);
|
|
9862
9863
|
_if(() => {
|
|
9863
9864
|
if (backupBusy === "restore") {
|
|
9864
9865
|
const $scope66_id = _scope_id();
|
|
9865
|
-
_html(`<span${_attr_class("
|
|
9866
|
+
_html(`<span${_attr_class("_cu")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9866
9867
|
writeScope($scope66_id, {});
|
|
9867
9868
|
return 0;
|
|
9868
9869
|
} else if (restoreDone) {
|
|
9869
9870
|
const $scope74_id = _scope_id();
|
|
9870
|
-
_html(`<span${_attr_class("
|
|
9871
|
+
_html(`<span${_attr_class("_bz")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9871
9872
|
writeScope($scope74_id, {});
|
|
9872
9873
|
return 1;
|
|
9873
9874
|
} else {
|
|
9874
9875
|
const $scope144_id = _scope_id();
|
|
9875
|
-
_html(`<span${_attr_class("
|
|
9876
|
+
_html(`<span${_attr_class("_bz")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9876
9877
|
writeScope($scope144_id, {});
|
|
9877
9878
|
return 2;
|
|
9878
9879
|
}
|
|
@@ -9880,7 +9881,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9880
9881
|
_if(() => {
|
|
9881
9882
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9882
9883
|
const $scope76_id = _scope_id();
|
|
9883
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9884
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dq")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9884
9885
|
_script($scope76_id, "x82");
|
|
9885
9886
|
writeScope($scope76_id, {});
|
|
9886
9887
|
return 0;
|
|
@@ -9891,14 +9892,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9891
9892
|
if (restorePreview && backupBusy !== "restore") {
|
|
9892
9893
|
const $scope69_id = _scope_id();
|
|
9893
9894
|
const { preview } = restorePreview;
|
|
9894
|
-
_html(`<div${_attr_class("
|
|
9895
|
+
_html(`<div${_attr_class("_dr")}><p${_attr_class("_ds")}>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>`);
|
|
9895
9896
|
_if(() => {
|
|
9896
9897
|
if (preview.workspaces.length) {
|
|
9897
9898
|
const $scope70_id = _scope_id();
|
|
9898
9899
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9899
9900
|
_for_of(preview.workspaces, (w) => {
|
|
9900
9901
|
const $scope71_id = _scope_id();
|
|
9901
|
-
_html(`<li><label${_attr_class(["
|
|
9902
|
+
_html(`<li><label${_attr_class(["_dB", { ["_dD"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dC")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_bw")}><span${_attr_class("_by")}><span${_attr_class("_bx")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9902
9903
|
_if(() => {
|
|
9903
9904
|
if (w.status === "archived") {
|
|
9904
9905
|
const $scope148_id = _scope_id();
|
|
@@ -9920,7 +9921,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9920
9921
|
return 1;
|
|
9921
9922
|
}
|
|
9922
9923
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
9923
|
-
_html(`</span><span${_attr_class("
|
|
9924
|
+
_html(`</span><span${_attr_class("_bz")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9924
9925
|
_script($scope71_id, "x83");
|
|
9925
9926
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
9926
9927
|
n: w?.unknownHost,
|
|
@@ -9931,7 +9932,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9931
9932
|
return 0;
|
|
9932
9933
|
} else {
|
|
9933
9934
|
const $scope146_id = _scope_id();
|
|
9934
|
-
_html(`<p${_attr_class("
|
|
9935
|
+
_html(`<p${_attr_class("_bB")}>No workspaces in this file.</p>`);
|
|
9935
9936
|
writeScope($scope146_id, {});
|
|
9936
9937
|
return 1;
|
|
9937
9938
|
}
|
|
@@ -9971,7 +9972,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9971
9972
|
_if(() => {
|
|
9972
9973
|
if (p.total) {
|
|
9973
9974
|
const $scope73_id = _scope_id();
|
|
9974
|
-
_html(`<li><label${_attr_class(["
|
|
9975
|
+
_html(`<li><label${_attr_class(["_dB", { ["_dD"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dC")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_bw")}><span${_attr_class("_bx")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_bz")}>`);
|
|
9975
9976
|
_if(() => {
|
|
9976
9977
|
if (p.key === "settings") {
|
|
9977
9978
|
const $scope145_id = _scope_id();
|
|
@@ -10018,7 +10019,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
10018
10019
|
i: $for_content10__p_total__closures
|
|
10019
10020
|
});
|
|
10020
10021
|
}, "key", $scope69_id, "h");
|
|
10021
|
-
_html(`</ul><div${_attr_class("
|
|
10022
|
+
_html(`</ul><div${_attr_class("_dz")}><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>`);
|
|
10022
10023
|
_script($scope69_id, "x85");
|
|
10023
10024
|
writeScope($scope69_id, {});
|
|
10024
10025
|
return 0;
|
|
@@ -10247,9 +10248,9 @@ function vapidKey(base64) {
|
|
|
10247
10248
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10248
10249
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10249
10250
|
}
|
|
10250
|
-
var iconBtn = "
|
|
10251
|
-
var settingsDot = "
|
|
10252
|
-
var navToggle = "
|
|
10251
|
+
var iconBtn = "_bI _l";
|
|
10252
|
+
var settingsDot = "_bJ _bc";
|
|
10253
|
+
var navToggle = "_bN _l";
|
|
10253
10254
|
_template("Q", (input) => {
|
|
10254
10255
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10255
10256
|
const $scope0_id = _scope_id();
|
|
@@ -10292,16 +10293,16 @@ var ARM_MS = 3500;
|
|
|
10292
10293
|
function disarmLater(fn) {
|
|
10293
10294
|
return setTimeout(fn, ARM_MS);
|
|
10294
10295
|
}
|
|
10295
|
-
var railBtn = "
|
|
10296
|
-
var wsBtn = "
|
|
10297
|
-
var rowIcon = "
|
|
10298
|
-
var close = "
|
|
10299
|
-
var sessRename$1 = "
|
|
10300
|
-
var sessBtn$1 = "
|
|
10296
|
+
var railBtn = "_fQ _l";
|
|
10297
|
+
var wsBtn = "_fV _I";
|
|
10298
|
+
var rowIcon = "_fY _4 _l";
|
|
10299
|
+
var close = "_fZ _7 _l _8";
|
|
10300
|
+
var sessRename$1 = "_ga _J";
|
|
10301
|
+
var sessBtn$1 = "_gc _I";
|
|
10301
10302
|
//#endregion
|
|
10302
10303
|
//#region src/styles/session-pop.css.ts
|
|
10303
|
-
var sessionPop = "
|
|
10304
|
-
var sessionPopBtn = "
|
|
10304
|
+
var sessionPop = "_fm __";
|
|
10305
|
+
var sessionPopBtn = "_fn _I";
|
|
10305
10306
|
//#endregion
|
|
10306
10307
|
//#region src/client/status.ts
|
|
10307
10308
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -10368,22 +10369,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
10368
10369
|
if (windows.length) {
|
|
10369
10370
|
const $scope1_id = _scope_id();
|
|
10370
10371
|
_html(`<span${_attr_class([
|
|
10371
|
-
"
|
|
10372
|
+
"_i0",
|
|
10372
10373
|
input.class,
|
|
10373
|
-
{ ["
|
|
10374
|
+
{ ["_i1"]: agent.stale_seconds != null }
|
|
10374
10375
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10375
10376
|
_for_of(windows, (win$1, i) => {
|
|
10376
10377
|
const $scope2_id = _scope_id();
|
|
10377
|
-
_html(`<span${_attr_class("
|
|
10378
|
+
_html(`<span${_attr_class("_i2")}>`);
|
|
10378
10379
|
_if(() => {
|
|
10379
10380
|
if (i) {
|
|
10380
10381
|
const $scope3_id = _scope_id();
|
|
10381
|
-
_html(`<span${_attr_class("
|
|
10382
|
+
_html(`<span${_attr_class("_i5")} aria-hidden=true>·</span>`);
|
|
10382
10383
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10383
10384
|
return 0;
|
|
10384
10385
|
}
|
|
10385
10386
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10386
|
-
_html(`<span${_attr_class("
|
|
10387
|
+
_html(`<span${_attr_class("_i3")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_i4", win$1.used_percent >= 90 ? "_gC" : win$1.used_percent >= 70 ? "_gB" : win$1.used_percent >= 40 ? "_gA" : "_gz"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10387
10388
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10388
10389
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10389
10390
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10414,12 +10415,12 @@ var icon_edit_default = _template("$", (input) => {
|
|
|
10414
10415
|
});
|
|
10415
10416
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
10416
10417
|
});
|
|
10417
|
-
var prChip = "
|
|
10418
|
-
var portChip = "
|
|
10418
|
+
var prChip = "_hL _u _hK";
|
|
10419
|
+
var portChip = "_hM _u _hK";
|
|
10419
10420
|
var prState = {
|
|
10420
|
-
open: "
|
|
10421
|
-
merged: "
|
|
10422
|
-
closed: "
|
|
10421
|
+
open: "_hQ",
|
|
10422
|
+
merged: "_hR",
|
|
10423
|
+
closed: "_hS"
|
|
10423
10424
|
};
|
|
10424
10425
|
//#endregion
|
|
10425
10426
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -10493,7 +10494,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10493
10494
|
const name = repo.full_name.split("/").at(-1);
|
|
10494
10495
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10495
10496
|
}, "y4", $scope1_id);
|
|
10496
|
-
_html(`<div${_attr_class("
|
|
10497
|
+
_html(`<div${_attr_class("_hJ")}>`);
|
|
10497
10498
|
_for_of(repos, (repo) => {
|
|
10498
10499
|
const $scope2_id = _scope_id();
|
|
10499
10500
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10509,11 +10510,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10509
10510
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10510
10511
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10511
10512
|
}
|
|
10512
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10513
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_hN", { ["_hV"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10513
10514
|
_if(() => {
|
|
10514
10515
|
if (open) {
|
|
10515
10516
|
const $scope4_id = _scope_id();
|
|
10516
|
-
_html(`<a${_attr_class(["
|
|
10517
|
+
_html(`<a${_attr_class(["_hN", "_hO"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10517
10518
|
icon_diff_default({ size: 12 });
|
|
10518
10519
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10519
10520
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10521,9 +10522,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10521
10522
|
} else {
|
|
10522
10523
|
const $scope6_id = _scope_id();
|
|
10523
10524
|
_html(`<button type=button${_attr_class([
|
|
10524
|
-
"
|
|
10525
|
-
"
|
|
10526
|
-
"
|
|
10525
|
+
"_hN",
|
|
10526
|
+
"_hO",
|
|
10527
|
+
"_hP"
|
|
10527
10528
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10528
10529
|
icon_xmark_default({ size: 12 });
|
|
10529
10530
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10551,21 +10552,21 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10551
10552
|
_if(() => {
|
|
10552
10553
|
if (dead.has(p.port)) {
|
|
10553
10554
|
const $scope7_id = _scope_id();
|
|
10554
|
-
_html(`<span${_attr_class(["
|
|
10555
|
+
_html(`<span${_attr_class(["_hN", "_hT"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10555
10556
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10556
10557
|
return 0;
|
|
10557
10558
|
} else {
|
|
10558
10559
|
const $scope8_id = _scope_id();
|
|
10559
|
-
_html(`<button type=button${_attr_class(["
|
|
10560
|
+
_html(`<button type=button${_attr_class(["_hN", "_hU"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10560
10561
|
_script($scope8_id, "y6");
|
|
10561
10562
|
writeScope($scope8_id, {});
|
|
10562
10563
|
return 1;
|
|
10563
10564
|
}
|
|
10564
10565
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10565
10566
|
_html(`<button type=button${_attr_class([
|
|
10566
|
-
"
|
|
10567
|
-
"
|
|
10568
|
-
"
|
|
10567
|
+
"_hN",
|
|
10568
|
+
"_hO",
|
|
10569
|
+
"_hP",
|
|
10569
10570
|
{ ["_s"]: armedPid === p.pid }
|
|
10570
10571
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10571
10572
|
icon_xmark_default({ size: 12 });
|
|
@@ -10688,7 +10689,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10688
10689
|
_if(() => {
|
|
10689
10690
|
if (input.rail) {
|
|
10690
10691
|
const $scope2_id = _scope_id();
|
|
10691
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10692
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fO"]: 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([
|
|
10692
10693
|
"_A",
|
|
10693
10694
|
phase[dot$1],
|
|
10694
10695
|
"_bc"
|
|
@@ -10698,34 +10699,34 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10698
10699
|
} else if (ws$1.pending) {
|
|
10699
10700
|
const $scope3_id = _scope_id();
|
|
10700
10701
|
_html(`<section${_attr_class([
|
|
10701
|
-
"
|
|
10702
|
-
"
|
|
10702
|
+
"_fS",
|
|
10703
|
+
"_ge",
|
|
10703
10704
|
{
|
|
10704
|
-
["
|
|
10705
|
-
["
|
|
10705
|
+
["_fT"]: input.railPop,
|
|
10706
|
+
["_fR"]: input.page
|
|
10706
10707
|
}
|
|
10707
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10708
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fU")}><div${_attr_class(wsBtn)}>`);
|
|
10708
10709
|
_if(() => {
|
|
10709
10710
|
if (ws$1.pending_error) {
|
|
10710
10711
|
const $scope16_id = _scope_id();
|
|
10711
10712
|
icon_warning_default({
|
|
10712
10713
|
size: 12,
|
|
10713
|
-
class: "
|
|
10714
|
+
class: "_gg"
|
|
10714
10715
|
});
|
|
10715
10716
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10716
10717
|
return 0;
|
|
10717
10718
|
} else {
|
|
10718
10719
|
const $scope17_id = _scope_id();
|
|
10719
|
-
_html(`<span${_attr_class(["_G", "
|
|
10720
|
+
_html(`<span${_attr_class(["_G", "_gf"])}></span>`);
|
|
10720
10721
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10721
10722
|
return 1;
|
|
10722
10723
|
}
|
|
10723
10724
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10724
|
-
_html(`<span${_attr_class("
|
|
10725
|
+
_html(`<span${_attr_class("_f1")}><span${_attr_class("_f2")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_gi")}${_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>`);
|
|
10725
10726
|
_if(() => {
|
|
10726
10727
|
if (ws$1.pending_error && !retrying) {
|
|
10727
10728
|
const $scope15_id = _scope_id();
|
|
10728
|
-
_html(`<div${_attr_class("
|
|
10729
|
+
_html(`<div${_attr_class("_gh")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope15_id, "b")}<button type=button${_attr_class([
|
|
10729
10730
|
"_q",
|
|
10730
10731
|
btnSm,
|
|
10731
10732
|
{ ["_s"]: armedDelete }
|
|
@@ -10745,15 +10746,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10745
10746
|
const $scope4_id = _scope_id();
|
|
10746
10747
|
const sessions$1 = input.sessions || [];
|
|
10747
10748
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10748
|
-
_html(`<section${_attr_class(["
|
|
10749
|
-
["
|
|
10749
|
+
_html(`<section${_attr_class(["_fS", {
|
|
10750
|
+
["_fO"]: input.current,
|
|
10750
10751
|
["_bd"]: input.current,
|
|
10751
|
-
["
|
|
10752
|
-
["
|
|
10753
|
-
}])}><div${_attr_class("
|
|
10752
|
+
["_fT"]: input.railPop,
|
|
10753
|
+
["_fR"]: input.page
|
|
10754
|
+
}])}><div${_attr_class("_fU")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10754
10755
|
"_A",
|
|
10755
10756
|
phase[dot$1],
|
|
10756
|
-
"
|
|
10757
|
+
"_f7"
|
|
10757
10758
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10758
10759
|
_if(() => {
|
|
10759
10760
|
if (sessions$1.length === 1) {
|
|
@@ -10766,7 +10767,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10766
10767
|
icon_agent_default({
|
|
10767
10768
|
agent: activeAgent(sessions$1[0]),
|
|
10768
10769
|
size: 12,
|
|
10769
|
-
class: "
|
|
10770
|
+
class: "_f0"
|
|
10770
10771
|
});
|
|
10771
10772
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10772
10773
|
_: _scope_with_id($scope4_id),
|
|
@@ -10776,11 +10777,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10776
10777
|
}
|
|
10777
10778
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10778
10779
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10779
|
-
_html(`<span${_attr_class("
|
|
10780
|
+
_html(`<span${_attr_class("_f1")}><span${_attr_class("_f2")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10780
10781
|
_if(() => {
|
|
10781
10782
|
if (input.page && metaText) {
|
|
10782
10783
|
const $scope19_id = _scope_id();
|
|
10783
|
-
_html(`<span${_attr_class("
|
|
10784
|
+
_html(`<span${_attr_class("_f5")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10784
10785
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10785
10786
|
return 0;
|
|
10786
10787
|
}
|
|
@@ -10793,7 +10794,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10793
10794
|
"_N",
|
|
10794
10795
|
"_W",
|
|
10795
10796
|
"_P",
|
|
10796
|
-
"
|
|
10797
|
+
"_f6"
|
|
10797
10798
|
])}>${_text_resume($scope5_id, "b", input.current ? "Open" : "", _serialize_guard($scope0_reason, 20))}</span>`);
|
|
10798
10799
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspace && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
10799
10800
|
_: _scope_with_id($scope4_id),
|
|
@@ -10806,7 +10807,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10806
10807
|
_if(() => {
|
|
10807
10808
|
if (!input.page) {
|
|
10808
10809
|
const $scope6_id = _scope_id();
|
|
10809
|
-
_html(`<div${_attr_class("
|
|
10810
|
+
_html(`<div${_attr_class("_fW")}>`);
|
|
10810
10811
|
_if(() => {
|
|
10811
10812
|
if (input.onNewSession) {
|
|
10812
10813
|
const $scope7_id = _scope_id();
|
|
@@ -10855,7 +10856,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10855
10856
|
return 0;
|
|
10856
10857
|
}
|
|
10857
10858
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10858
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10859
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fP"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10859
10860
|
icon_manage_default({ size: 12 });
|
|
10860
10861
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10861
10862
|
_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($scope6_id, {
|
|
@@ -10865,7 +10866,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10865
10866
|
return 0;
|
|
10866
10867
|
}
|
|
10867
10868
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10868
|
-
_html(`</div><div${_attr_class("
|
|
10869
|
+
_html(`</div><div${_attr_class("_gb")}>`);
|
|
10869
10870
|
_if(() => {
|
|
10870
10871
|
if (sessions$1.length === 1 && openPlan) {
|
|
10871
10872
|
const $scope12_id = _scope_id();
|
|
@@ -10873,7 +10874,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10873
10874
|
const $childScope3 = _peek_scope_id();
|
|
10874
10875
|
usage_pcts_default({
|
|
10875
10876
|
agent: openPlan,
|
|
10876
|
-
class: "
|
|
10877
|
+
class: "_f3"
|
|
10877
10878
|
});
|
|
10878
10879
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10879
10880
|
a: _existing_scope($childScope3),
|
|
@@ -10884,14 +10885,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10884
10885
|
}, $scope4_id, "m");
|
|
10885
10886
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10886
10887
|
const $scope9_id = _scope_id();
|
|
10887
|
-
_html(`<div${_attr_class(["
|
|
10888
|
+
_html(`<div${_attr_class(["_fX", { ["_fO"]: s.id === input.currentTab }])}>`);
|
|
10888
10889
|
_if(() => {
|
|
10889
10890
|
if (renamingId === s.id) {
|
|
10890
10891
|
const $scope11_id = _scope_id();
|
|
10891
10892
|
_html(`<span${_attr_class([
|
|
10892
10893
|
"_A",
|
|
10893
10894
|
phase[sessionPhase(s.state)],
|
|
10894
|
-
"
|
|
10895
|
+
"_f_"
|
|
10895
10896
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10896
10897
|
_set_serialize_reason({
|
|
10897
10898
|
1: $sg__input_sessions,
|
|
@@ -10901,7 +10902,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10901
10902
|
icon_agent_default({
|
|
10902
10903
|
agent: activeAgent(s),
|
|
10903
10904
|
size: 12,
|
|
10904
|
-
class: "
|
|
10905
|
+
class: "_gd"
|
|
10905
10906
|
});
|
|
10906
10907
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10907
10908
|
renameValue = _new_renameValue;
|
|
@@ -10920,9 +10921,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10920
10921
|
icon_agent_default({
|
|
10921
10922
|
agent: activeAgent(s),
|
|
10922
10923
|
size: 12,
|
|
10923
|
-
class: "
|
|
10924
|
+
class: "_gd"
|
|
10924
10925
|
});
|
|
10925
|
-
_html(`<span${_attr_class("
|
|
10926
|
+
_html(`<span${_attr_class("_f8")}>${_text_resume($scope10_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_f9")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10926
10927
|
icon_edit_default({ size: 12 });
|
|
10927
10928
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10928
10929
|
icon_xmark_default({ size: 12 });
|
|
@@ -10934,7 +10935,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10934
10935
|
const $childScope6 = _peek_scope_id();
|
|
10935
10936
|
usage_pcts_default({
|
|
10936
10937
|
agent: openPlan,
|
|
10937
|
-
class: "
|
|
10938
|
+
class: "_f4"
|
|
10938
10939
|
});
|
|
10939
10940
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10940
10941
|
a: _existing_scope($childScope6),
|
|
@@ -11174,28 +11175,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11174
11175
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11175
11176
|
const otherIds = itemIds.filter((id) => id !== ws?.id);
|
|
11176
11177
|
const listIds = isPage && ws ? [ws.id, ...otherIds] : itemIds;
|
|
11177
|
-
_html(`<aside${_attr_class(["
|
|
11178
|
-
["
|
|
11179
|
-
["
|
|
11178
|
+
_html(`<aside${_attr_class(["_bM", {
|
|
11179
|
+
["_bK"]: !navOpen,
|
|
11180
|
+
["_bL"]: isPage
|
|
11180
11181
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11181
11182
|
_if(() => {
|
|
11182
11183
|
if (isPage) {
|
|
11183
11184
|
const $scope1_id = _scope_id();
|
|
11184
|
-
_html(`<header${_attr_class("
|
|
11185
|
+
_html(`<header${_attr_class("_bP")}><div${_attr_class("_bY")}>`);
|
|
11185
11186
|
_if(() => {
|
|
11186
11187
|
if (input.instanceName) {
|
|
11187
11188
|
const $scope2_id = _scope_id();
|
|
11188
|
-
_html(`<div${_attr_class("
|
|
11189
|
+
_html(`<div${_attr_class("_bV")} title="This work server (Settings → Appearance)"><img${_attr_class("_bW")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_bX")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11189
11190
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11190
11191
|
return 0;
|
|
11191
11192
|
}
|
|
11192
11193
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11193
|
-
_html(`<h1${_attr_class("
|
|
11194
|
+
_html(`<h1${_attr_class("_bQ")}>Workspaces</h1></div><div${_attr_class("_bR")}>`);
|
|
11194
11195
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11195
11196
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11196
11197
|
iconBtn,
|
|
11197
|
-
"
|
|
11198
|
-
{ ["
|
|
11198
|
+
"_bS",
|
|
11199
|
+
{ ["_bH"]: view === "settings" }
|
|
11199
11200
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11200
11201
|
icon_settings_default({ size: 16 });
|
|
11201
11202
|
_if(() => {
|
|
@@ -11214,7 +11215,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11214
11215
|
_if(() => {
|
|
11215
11216
|
if (!isPage && input.instanceName) {
|
|
11216
11217
|
const $scope3_id = _scope_id();
|
|
11217
|
-
_html(`<div${_attr_class("
|
|
11218
|
+
_html(`<div${_attr_class("_bV")} title="This work server (Settings → Appearance)"><img${_attr_class("_bW")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_bX")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11218
11219
|
writeScope($scope3_id, {});
|
|
11219
11220
|
return 0;
|
|
11220
11221
|
}
|
|
@@ -11222,13 +11223,13 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11222
11223
|
_if(() => {
|
|
11223
11224
|
if (navOpen || isPage) {
|
|
11224
11225
|
const $scope4_id = _scope_id();
|
|
11225
|
-
_html(`<div${_attr_class("
|
|
11226
|
+
_html(`<div${_attr_class("_bZ")}>`);
|
|
11226
11227
|
_for_of(listIds, (wsId) => {
|
|
11227
11228
|
const $scope5_id = _scope_id();
|
|
11228
11229
|
_if(() => {
|
|
11229
11230
|
if (isPage && wsId === ws?.id) {
|
|
11230
11231
|
const $scope14_id = _scope_id();
|
|
11231
|
-
_html(`<h2${_attr_class(["
|
|
11232
|
+
_html(`<h2${_attr_class(["_bE", "_bT"])}>Current</h2>`);
|
|
11232
11233
|
writeScope($scope14_id, {});
|
|
11233
11234
|
return 0;
|
|
11234
11235
|
}
|
|
@@ -11236,7 +11237,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11236
11237
|
_if(() => {
|
|
11237
11238
|
if (isPage && ws && wsId !== ws.id && wsId === otherIds[0]) {
|
|
11238
11239
|
const $scope15_id = _scope_id();
|
|
11239
|
-
_html(`<h2${_attr_class(["
|
|
11240
|
+
_html(`<h2${_attr_class(["_bE", "_bT"])}>Other workspaces</h2>`);
|
|
11240
11241
|
writeScope($scope15_id, {});
|
|
11241
11242
|
return 0;
|
|
11242
11243
|
}
|
|
@@ -11325,7 +11326,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11325
11326
|
railHover = null;
|
|
11326
11327
|
}, 150);
|
|
11327
11328
|
}, "A6", $scope6_id);
|
|
11328
|
-
_html(`<div${_attr_class("
|
|
11329
|
+
_html(`<div${_attr_class("_b0")}>`);
|
|
11329
11330
|
_for_of(itemIds, (wsId, i) => {
|
|
11330
11331
|
const $scope7_id = _scope_id();
|
|
11331
11332
|
_html("<span>");
|
|
@@ -11383,7 +11384,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11383
11384
|
if (railHover) {
|
|
11384
11385
|
const $scope8_id = _scope_id();
|
|
11385
11386
|
const hoverId = railHover.id;
|
|
11386
|
-
_html(`<div${_attr_class(["__", "
|
|
11387
|
+
_html(`<div${_attr_class(["__", "_b3"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11387
11388
|
_set_serialize_reason({
|
|
11388
11389
|
0: 1,
|
|
11389
11390
|
1: 1,
|
|
@@ -11478,7 +11479,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11478
11479
|
return 0;
|
|
11479
11480
|
}
|
|
11480
11481
|
}, $scope0_id, "e");
|
|
11481
|
-
_html(`<div${_attr_class("
|
|
11482
|
+
_html(`<div${_attr_class("_b1")}>`);
|
|
11482
11483
|
_if(() => {
|
|
11483
11484
|
if (isPage) {
|
|
11484
11485
|
const $scope10_id = _scope_id();
|
|
@@ -11486,7 +11487,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11486
11487
|
"_q",
|
|
11487
11488
|
"_r",
|
|
11488
11489
|
btnLg,
|
|
11489
|
-
"
|
|
11490
|
+
"_bU"
|
|
11490
11491
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11491
11492
|
icon_folder_plus_default({ size: 16 });
|
|
11492
11493
|
_html(` New workspace</a>${_el_resume($scope10_id, "a")}`);
|
|
@@ -11508,9 +11509,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11508
11509
|
return 1;
|
|
11509
11510
|
}
|
|
11510
11511
|
}, $scope9_id, "a", 1, 1, 1, "</button>", 1);
|
|
11511
|
-
_html(`<div${_attr_class(["_z", "
|
|
11512
|
+
_html(`<div${_attr_class(["_z", "_b2"])}></div>`);
|
|
11512
11513
|
_if(() => {}, $scope9_id, "c", 1, 1, 1, 0, 1);
|
|
11513
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11514
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bH"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11514
11515
|
icon_settings_default({});
|
|
11515
11516
|
_if(() => {
|
|
11516
11517
|
if (input.setupReady === false) {
|
|
@@ -11520,7 +11521,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11520
11521
|
return 0;
|
|
11521
11522
|
}
|
|
11522
11523
|
}, $scope9_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11523
|
-
_html(`</a>${_el_resume($scope9_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11524
|
+
_html(`</a>${_el_resume($scope9_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bH"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11524
11525
|
icon_folder_plus_default({ size: 16 });
|
|
11525
11526
|
_html(`</a>${_el_resume($scope9_id, "g")}`);
|
|
11526
11527
|
_script($scope9_id, "A15");
|
|
@@ -11860,8 +11861,8 @@ function treeDirs(files) {
|
|
|
11860
11861
|
};
|
|
11861
11862
|
return build(root, "", "", -1);
|
|
11862
11863
|
}
|
|
11863
|
-
var treeToggle = "
|
|
11864
|
-
var pageTitle = "
|
|
11864
|
+
var treeToggle = "_fr _5 _l";
|
|
11865
|
+
var pageTitle = "_fy _b9";
|
|
11865
11866
|
//#endregion
|
|
11866
11867
|
//#region src/tags/diff-send.marko
|
|
11867
11868
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -11871,7 +11872,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11871
11872
|
let sendTarget = null;
|
|
11872
11873
|
const sessions = input.sessions || [];
|
|
11873
11874
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
11874
|
-
_html(`<span${_attr_class("
|
|
11875
|
+
_html(`<span${_attr_class("_hF")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
11875
11876
|
_if(() => {
|
|
11876
11877
|
if (sessions.length === 1) {
|
|
11877
11878
|
const $scope1_id = _scope_id();
|
|
@@ -11881,11 +11882,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11881
11882
|
return 0;
|
|
11882
11883
|
} else if (sessions.length) {
|
|
11883
11884
|
const $scope2_id = _scope_id();
|
|
11884
|
-
_html(`<span${_attr_class("
|
|
11885
|
+
_html(`<span${_attr_class("_hG")}><button type=button${_attr_class(["_r", "_hH"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
11885
11886
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
11886
11887
|
sendTarget = _new_sendTarget;
|
|
11887
11888
|
}, "j0", $scope2_id), () => {
|
|
11888
|
-
_html(`<select${_attr_class("
|
|
11889
|
+
_html(`<select${_attr_class("_hI")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
11889
11890
|
_for_of(sessions, (s) => {
|
|
11890
11891
|
const $scope3_id = _scope_id();
|
|
11891
11892
|
_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)}`);
|
|
@@ -13397,8 +13398,8 @@ function clip(line, at, len) {
|
|
|
13397
13398
|
const end = Math.min(line.length, at + len + pad);
|
|
13398
13399
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13399
13400
|
}
|
|
13400
|
-
var findInput = "
|
|
13401
|
-
var findIconBtn = "
|
|
13401
|
+
var findInput = "_hu _n";
|
|
13402
|
+
var findIconBtn = "_hx _l";
|
|
13402
13403
|
//#endregion
|
|
13403
13404
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13404
13405
|
var icon_arrow_down_default = _template("K", (input) => {
|
|
@@ -13486,9 +13487,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13486
13487
|
el.select();
|
|
13487
13488
|
}, 0);
|
|
13488
13489
|
}, "i0", $scope0_id);
|
|
13489
|
-
_html(`<div${_attr_class(["
|
|
13490
|
+
_html(`<div${_attr_class(["_ht", !open && "_hs"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13490
13491
|
type(v);
|
|
13491
|
-
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
13492
|
+
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_hw")}>${_text_resume($scope0_id, "d", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13492
13493
|
icon_arrow_up_default({ size: 14 });
|
|
13493
13494
|
_html(`</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13494
13495
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13590,9 +13591,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13590
13591
|
}
|
|
13591
13592
|
return shortHeadFallback(head);
|
|
13592
13593
|
}
|
|
13593
|
-
var repoWorktree = "
|
|
13594
|
-
var repoTitle = "
|
|
13595
|
-
var path$1 = "
|
|
13594
|
+
var repoWorktree = "_iz _y";
|
|
13595
|
+
var repoTitle = "_iF _x";
|
|
13596
|
+
var path$1 = "_iW _bb";
|
|
13596
13597
|
//#endregion
|
|
13597
13598
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13598
13599
|
var icon_chevron_down_default = _template("T", (input) => {
|
|
@@ -13666,7 +13667,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
13666
13667
|
_scope_reason();
|
|
13667
13668
|
const $scope0_id = _scope_id();
|
|
13668
13669
|
_el($scope0_id, "h0");
|
|
13669
|
-
_html(`<div${_attr_class(["
|
|
13670
|
+
_html(`<div${_attr_class(["_i8", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
13670
13671
|
_script($scope0_id, "h1");
|
|
13671
13672
|
writeScope($scope0_id, {
|
|
13672
13673
|
e: input.file,
|
|
@@ -13728,14 +13729,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13728
13729
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
13729
13730
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13730
13731
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
13731
|
-
_html(`<section${_attr_class("
|
|
13732
|
+
_html(`<section${_attr_class("_iv")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iw", { ["_ix"]: input.collapsible && input.collapsed }])}>`);
|
|
13732
13733
|
_if(() => {
|
|
13733
13734
|
if (input.collapsible) {
|
|
13734
13735
|
const $scope1_id = _scope_id();
|
|
13735
|
-
_html(`<button type=button${_attr_class("
|
|
13736
|
-
"
|
|
13737
|
-
!input.collapsed && "
|
|
13738
|
-
input.expanding && "
|
|
13736
|
+
_html(`<button type=button${_attr_class("_iy")} aria-expanded=${!input.collapsed ? "true" : "false"} aria-busy=${input.expanding ? "true" : "false"}${input.collapsed ? _attr("title", `Show ${countLabel} files`) : " title=\"Hide files\""}><span${_attr_class([
|
|
13737
|
+
"_iT",
|
|
13738
|
+
!input.collapsed && "_iU",
|
|
13739
|
+
input.expanding && "_iV"
|
|
13739
13740
|
])} aria-hidden=true>`);
|
|
13740
13741
|
_if(() => {
|
|
13741
13742
|
if (input.collapsed) {
|
|
@@ -13774,14 +13775,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13774
13775
|
return 1;
|
|
13775
13776
|
}
|
|
13776
13777
|
}, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened);
|
|
13777
|
-
_html(`<span${_attr_class("
|
|
13778
|
+
_html(`<span${_attr_class("_iG")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_iH"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_iJ"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_iI"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13778
13779
|
_if(() => {
|
|
13779
13780
|
if (compare$1.topic) {
|
|
13780
13781
|
const $scope16_id = _scope_id();
|
|
13781
13782
|
_html(`<span${_attr_class([
|
|
13782
13783
|
"_N",
|
|
13783
13784
|
tone.accent,
|
|
13784
|
-
"
|
|
13785
|
+
"_iK"
|
|
13785
13786
|
])}>${_text_resume($scope16_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13786
13787
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
13787
13788
|
return 0;
|
|
@@ -13794,7 +13795,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13794
13795
|
_html(`<button type=button${_attr_class([
|
|
13795
13796
|
"_N",
|
|
13796
13797
|
tone.warn,
|
|
13797
|
-
"
|
|
13798
|
+
"_iL"
|
|
13798
13799
|
])}${_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($scope2_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope2_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope2_id, "a")}`);
|
|
13799
13800
|
_script($scope2_id, "w10");
|
|
13800
13801
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13804,7 +13805,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13804
13805
|
_if(() => {
|
|
13805
13806
|
if (repo.contained && input.files.length) {
|
|
13806
13807
|
const $scope13_id = _scope_id();
|
|
13807
|
-
_html(`<span${_attr_class(["_N", "
|
|
13808
|
+
_html(`<span${_attr_class(["_N", "_iL"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope13_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope13_id, "a", $sg__input_repo)}`);
|
|
13808
13809
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13809
13810
|
return 0;
|
|
13810
13811
|
}
|
|
@@ -13812,16 +13813,16 @@ var review_section_default = _template("w", (input) => {
|
|
|
13812
13813
|
_if(() => {
|
|
13813
13814
|
if (input.localDiffers) {
|
|
13814
13815
|
const $scope3_id = _scope_id();
|
|
13815
|
-
_html(`<span${_attr_class(["_N", "
|
|
13816
|
+
_html(`<span${_attr_class(["_N", "_iL"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope3_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
|
|
13816
13817
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope3_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
13817
13818
|
return 0;
|
|
13818
13819
|
}
|
|
13819
13820
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 38), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
13820
|
-
_html(`<span${_attr_class("
|
|
13821
|
+
_html(`<span${_attr_class("_iA")}><span>${_text_resume($scope0_id, "p", countLabel, $sg__input_files__OR__input_shownKeys)} file${_text_resume($scope0_id, "q", countLabel === 1 ? "" : "s", $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
13821
13822
|
_if(() => {
|
|
13822
13823
|
if (stats.additions || stats.deletions) {
|
|
13823
13824
|
const $scope15_id = _scope_id();
|
|
13824
|
-
_html(`<span${_attr_class("
|
|
13825
|
+
_html(`<span${_attr_class("_iB")}>+${_text_resume($scope15_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iC")}>−${_text_resume($scope15_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
13825
13826
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
13826
13827
|
return 0;
|
|
13827
13828
|
}
|
|
@@ -13829,7 +13830,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13829
13830
|
_if(() => {
|
|
13830
13831
|
if (newCount || input.onlyNew) {
|
|
13831
13832
|
const $scope4_id = _scope_id();
|
|
13832
|
-
_html(`<button type=button${_attr_class(["
|
|
13833
|
+
_html(`<button type=button${_attr_class(["_iE", { ["_iD"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope4_id, "b", newCount, $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
|
|
13833
13834
|
_script($scope4_id, "w11");
|
|
13834
13835
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13835
13836
|
return 0;
|
|
@@ -13839,7 +13840,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13839
13840
|
_if(() => {
|
|
13840
13841
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
13841
13842
|
const $scope5_id = _scope_id();
|
|
13842
|
-
_html(`<div${_attr_class("
|
|
13843
|
+
_html(`<div${_attr_class("_iN")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
13843
13844
|
_for_of(input.files, (file$2) => {
|
|
13844
13845
|
const $scope6_id = _scope_id();
|
|
13845
13846
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -13852,14 +13853,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13852
13853
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
13853
13854
|
input.onFileToggle(file$2.key, open);
|
|
13854
13855
|
}, "w0", $scope6_id))}${_attr_class([
|
|
13855
|
-
"
|
|
13856
|
-
forceNear && "
|
|
13857
|
-
input.findHit?.key === file$2.key && "
|
|
13858
|
-
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("
|
|
13856
|
+
"_iO",
|
|
13857
|
+
forceNear && "_iP",
|
|
13858
|
+
input.findHit?.key === file$2.key && "_it"
|
|
13859
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_iR")}><span${_attr_class("_ba")}${_attr("data-status", file$2.status)}>${_text_resume($scope6_id, "d", file$2.status, $sg__input_files)}</span>${_el_resume($scope6_id, "c", $sg__input_files)}<span${_attr_class([path$1, input.findHit?.key === file$2.key && input.findHit.line < 1 && "_iu"])}${_attr("title", file$2.path)}><bdi>${_text_resume($scope6_id, "f", file$2.path, $sg__input_files)}</bdi></span>${_el_resume($scope6_id, "e", _serialize_guard($scope0_reason, 19))}`);
|
|
13859
13860
|
_if(() => {
|
|
13860
13861
|
if (file$2.changedSince) {
|
|
13861
13862
|
const $scope20_id = _scope_id();
|
|
13862
|
-
_html(`<span${_attr_class(["_A", "
|
|
13863
|
+
_html(`<span${_attr_class(["_A", "_iM"])} title="Changed since your last visit"></span>`);
|
|
13863
13864
|
$si__input_files && writeScope($scope20_id, {});
|
|
13864
13865
|
return 0;
|
|
13865
13866
|
}
|
|
@@ -13879,8 +13880,8 @@ var review_section_default = _template("w", (input) => {
|
|
|
13879
13880
|
const $scope14_id = _scope_id();
|
|
13880
13881
|
_html(`<button type=button${_attr_class([
|
|
13881
13882
|
iconBtnXs,
|
|
13882
|
-
"
|
|
13883
|
-
{ ["
|
|
13883
|
+
"_iY",
|
|
13884
|
+
{ ["_iZ"]: wholeFiles.has(file$2.key) }
|
|
13884
13885
|
])} title=${wholeFiles.has(file$2.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-label=${wholeFiles.has(file$2.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-pressed=${wholeFiles.has(file$2.key) ? "true" : "false"}>`);
|
|
13885
13886
|
_if(() => {
|
|
13886
13887
|
if (wholeFiles.has(file$2.key)) {
|
|
@@ -13907,17 +13908,17 @@ var review_section_default = _template("w", (input) => {
|
|
|
13907
13908
|
_if(() => {
|
|
13908
13909
|
if (file$2.binary) {
|
|
13909
13910
|
const $scope23_id = _scope_id();
|
|
13910
|
-
_html(`<p${_attr_class(["
|
|
13911
|
+
_html(`<p${_attr_class(["_iX", "_iQ"])}>binary file</p>`);
|
|
13911
13912
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
13912
13913
|
return 0;
|
|
13913
13914
|
} else if (file$2.tooLarge) {
|
|
13914
13915
|
const $scope24_id = _scope_id();
|
|
13915
|
-
_html(`<p${_attr_class(["
|
|
13916
|
+
_html(`<p${_attr_class(["_iX", "_iQ"])}>file too large to display</p>`);
|
|
13916
13917
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
13917
13918
|
return 1;
|
|
13918
13919
|
} else if (file$2.old == null && file$2.new == null) {
|
|
13919
13920
|
const $scope25_id = _scope_id();
|
|
13920
|
-
_html(`<p${_attr_class(["
|
|
13921
|
+
_html(`<p${_attr_class(["_iX", "_iQ"])}>file could not be read</p>`);
|
|
13921
13922
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
13922
13923
|
return 2;
|
|
13923
13924
|
} else if (expanded) {
|
|
@@ -13925,7 +13926,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13925
13926
|
_if(() => {
|
|
13926
13927
|
if (!forceNear) {
|
|
13927
13928
|
const $scope8_id = _scope_id();
|
|
13928
|
-
_html(`<div${_attr_class("
|
|
13929
|
+
_html(`<div${_attr_class("_iS")}></div>${_el_resume($scope8_id, "a")}`);
|
|
13929
13930
|
_script($scope8_id, "w13");
|
|
13930
13931
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
13931
13932
|
return 0;
|
|
@@ -13933,7 +13934,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13933
13934
|
const $scope9_id = _scope_id();
|
|
13934
13935
|
const $childScope = _peek_scope_id();
|
|
13935
13936
|
diff_file_default({
|
|
13936
|
-
class: "
|
|
13937
|
+
class: "_iQ",
|
|
13937
13938
|
file: file$2,
|
|
13938
13939
|
comments: fileComments,
|
|
13939
13940
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -14074,7 +14075,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
14074
14075
|
});
|
|
14075
14076
|
_resume_branch($scope0_id);
|
|
14076
14077
|
});
|
|
14077
|
-
var fileFilter = "
|
|
14078
|
+
var fileFilter = "_i7 _n";
|
|
14078
14079
|
//#endregion
|
|
14079
14080
|
//#region src/tags/file-filter.marko
|
|
14080
14081
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -14104,7 +14105,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
14104
14105
|
pending = v;
|
|
14105
14106
|
box.timer = setTimeout(flush, 150);
|
|
14106
14107
|
}, "n2", $scope0_id);
|
|
14107
|
-
_html(`<div${_attr_class("
|
|
14108
|
+
_html(`<div${_attr_class("_i6")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
14108
14109
|
type(v);
|
|
14109
14110
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
14110
14111
|
_script($scope0_id, "n3");
|
|
@@ -14137,7 +14138,7 @@ var $content = (input) => {
|
|
|
14137
14138
|
_for_of(dir.dirs, (child) => {
|
|
14138
14139
|
const $scope1_id = _scope_id();
|
|
14139
14140
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14140
|
-
_html(`<div${_attr_class("
|
|
14141
|
+
_html(`<div${_attr_class("_h4")}><button type=button${_attr_class(["_h5", { ["_hW"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_ib")}>`);
|
|
14141
14142
|
_if(() => {
|
|
14142
14143
|
if (shut) {
|
|
14143
14144
|
const $scope4_id = _scope_id();
|
|
@@ -14151,7 +14152,7 @@ var $content = (input) => {
|
|
|
14151
14152
|
return 1;
|
|
14152
14153
|
}
|
|
14153
14154
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14154
|
-
_html(`<span${_attr_class("
|
|
14155
|
+
_html(`<span${_attr_class("_h6")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14155
14156
|
_if(() => {
|
|
14156
14157
|
if (!shut) {
|
|
14157
14158
|
const $scope2_id = _scope_id();
|
|
@@ -14198,11 +14199,11 @@ var $content = (input) => {
|
|
|
14198
14199
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14199
14200
|
_for_of(dir.files, ({ file, name }) => {
|
|
14200
14201
|
const $scope3_id = _scope_id();
|
|
14201
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14202
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_h8", { ["_h7"]: input.collapsedFiles?.has(file.key) }])}${input.collapsedFiles?.has(file.key) ? _attr("title", `${file.path} (folded — click to open)`) : _attr("title", file.path)}${_attr_style(`--depth:${dir.depth + 1}`)}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope3_id, "c", file.status, $sg__input_dir)}</span>${_el_resume($scope3_id, "b", $sg__input_dir)}<span${_attr_class("_h9")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14202
14203
|
_if(() => {
|
|
14203
14204
|
if (input.newKeys.has(file.key)) {
|
|
14204
14205
|
const $scope6_id = _scope_id();
|
|
14205
|
-
_html(`<span${_attr_class(["_A", "
|
|
14206
|
+
_html(`<span${_attr_class(["_A", "_h_"])} title="Changed since your last visit"></span>`);
|
|
14206
14207
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14207
14208
|
return 0;
|
|
14208
14209
|
}
|
|
@@ -14210,7 +14211,7 @@ var $content = (input) => {
|
|
|
14210
14211
|
_if(() => {
|
|
14211
14212
|
if (input.commentKeys.has(file.key)) {
|
|
14212
14213
|
const $scope7_id = _scope_id();
|
|
14213
|
-
_html(`<span${_attr_class("
|
|
14214
|
+
_html(`<span${_attr_class("_ia")}>`);
|
|
14214
14215
|
icon_comment_default({ size: 12 });
|
|
14215
14216
|
_html("</span>");
|
|
14216
14217
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14268,7 +14269,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14268
14269
|
scope: input.scope ?? null,
|
|
14269
14270
|
file: key
|
|
14270
14271
|
}), "l0", $scope0_id);
|
|
14271
|
-
_html(`<aside${_attr_class(["
|
|
14272
|
+
_html(`<aside${_attr_class(["_hX", { ["_hW"]: input.open === false }])}><div${_attr_class("_hY")}>`);
|
|
14272
14273
|
_set_serialize_reason(2);
|
|
14273
14274
|
const $childScope = _peek_scope_id();
|
|
14274
14275
|
file_filter_default({
|
|
@@ -14277,18 +14278,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14277
14278
|
filter = _new_filter;
|
|
14278
14279
|
}, "l1", $scope0_id)
|
|
14279
14280
|
});
|
|
14280
|
-
_html(`</div><div${_attr_class("
|
|
14281
|
+
_html(`</div><div${_attr_class("_hZ")}>`);
|
|
14281
14282
|
_if(() => {
|
|
14282
14283
|
if (!input.sections.length && filter) {
|
|
14283
14284
|
const $scope3_id = _scope_id();
|
|
14284
|
-
_html(`<p${_attr_class("
|
|
14285
|
+
_html(`<p${_attr_class("_h0")}>No files match.</p>`);
|
|
14285
14286
|
writeScope($scope3_id, {});
|
|
14286
14287
|
return 0;
|
|
14287
14288
|
}
|
|
14288
14289
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14289
14290
|
_for_of(input.sections, (section) => {
|
|
14290
14291
|
const $scope1_id = _scope_id();
|
|
14291
|
-
_html(`<div${_attr_class("
|
|
14292
|
+
_html(`<div${_attr_class("_h1")}><button type=button${_attr_class(["_h2", { ["_hW"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_ib")}>`);
|
|
14292
14293
|
_if(() => {
|
|
14293
14294
|
if (collapsedRepos.has(section.id)) {
|
|
14294
14295
|
const $scope4_id = _scope_id();
|
|
@@ -14302,12 +14303,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14302
14303
|
return 1;
|
|
14303
14304
|
}
|
|
14304
14305
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14305
|
-
_html(`<span${_attr_class("
|
|
14306
|
+
_html(`<span${_attr_class("_h6")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14306
14307
|
_if(() => {
|
|
14307
14308
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14308
14309
|
const $scope2_id = _scope_id();
|
|
14309
14310
|
const root = treeDirs(section.files);
|
|
14310
|
-
_html(`<div${_attr_class("
|
|
14311
|
+
_html(`<div${_attr_class("_h3")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14311
14312
|
_set_serialize_reason(1);
|
|
14312
14313
|
const $childScope2 = _peek_scope_id();
|
|
14313
14314
|
diff_tree_dir_default({
|
|
@@ -14377,7 +14378,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14377
14378
|
});
|
|
14378
14379
|
_resume_branch($scope0_id);
|
|
14379
14380
|
});
|
|
14380
|
-
var sheetDir = "
|
|
14381
|
+
var sheetDir = "_in _bb";
|
|
14381
14382
|
//#endregion
|
|
14382
14383
|
//#region src/tags/diff-file-sheet.marko
|
|
14383
14384
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14433,9 +14434,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14433
14434
|
_if(() => {
|
|
14434
14435
|
if (open) {
|
|
14435
14436
|
const $scope1_id = _scope_id();
|
|
14436
|
-
_html(`<div${_attr_class("
|
|
14437
|
+
_html(`<div${_attr_class("_ie")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_if")} role=dialog aria-label="Jump to file"><div${_attr_class("_ig")}><strong${_attr_class("_id")}>Files</strong><span${_attr_class("_ih")}>${_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, "_ic"])} title=Close aria-label=Close>`);
|
|
14437
14438
|
icon_xmark_default({ size: 16 });
|
|
14438
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14439
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_ip")}>`);
|
|
14439
14440
|
_set_serialize_reason(2);
|
|
14440
14441
|
const $childScope = _peek_scope_id();
|
|
14441
14442
|
file_filter_default({
|
|
@@ -14444,13 +14445,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14444
14445
|
filter = _new_filter;
|
|
14445
14446
|
}, "g1", $scope1_id)
|
|
14446
14447
|
});
|
|
14447
|
-
_html(`</div><div${_attr_class("
|
|
14448
|
+
_html(`</div><div${_attr_class("_ii")}>`);
|
|
14448
14449
|
_for_of(groups, (group) => {
|
|
14449
14450
|
const $scope2_id = _scope_id();
|
|
14450
|
-
_html(`<div${_attr_class("
|
|
14451
|
+
_html(`<div${_attr_class("_ij")}><div${_attr_class("_ik")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14451
14452
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14452
14453
|
const $scope3_id = _scope_id();
|
|
14453
|
-
_html(`<div${_attr_class("
|
|
14454
|
+
_html(`<div${_attr_class("_il")}>`);
|
|
14454
14455
|
_if(() => {
|
|
14455
14456
|
if (dir) {
|
|
14456
14457
|
const $scope5_id = _scope_id();
|
|
@@ -14461,11 +14462,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14461
14462
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14462
14463
|
_for_of(files, ({ file, name }) => {
|
|
14463
14464
|
const $scope4_id = _scope_id();
|
|
14464
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14465
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_im", "_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("_io")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14465
14466
|
_if(() => {
|
|
14466
14467
|
if (newKeys.has(file.key)) {
|
|
14467
14468
|
const $scope6_id = _scope_id();
|
|
14468
|
-
_html(`<span${_attr_class(["_A", "
|
|
14469
|
+
_html(`<span${_attr_class(["_A", "_ir"])} title="Changed since your last visit"></span>`);
|
|
14469
14470
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14470
14471
|
return 0;
|
|
14471
14472
|
}
|
|
@@ -14475,7 +14476,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14475
14476
|
const $scope7_id = _scope_id();
|
|
14476
14477
|
icon_comment_default({
|
|
14477
14478
|
size: 12,
|
|
14478
|
-
class: "
|
|
14479
|
+
class: "_is"
|
|
14479
14480
|
});
|
|
14480
14481
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14481
14482
|
return 0;
|
|
@@ -14500,7 +14501,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14500
14501
|
_if(() => {
|
|
14501
14502
|
if (!input.files.length) {
|
|
14502
14503
|
const $scope8_id = _scope_id();
|
|
14503
|
-
_html(`<p${_attr_class("
|
|
14504
|
+
_html(`<p${_attr_class("_iq")}>No files match.</p>`);
|
|
14504
14505
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14505
14506
|
return 0;
|
|
14506
14507
|
}
|
|
@@ -15040,11 +15041,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15040
15041
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
15041
15042
|
}
|
|
15042
15043
|
}, "m33", $scope0_id);
|
|
15043
|
-
_html(`<div${_attr_class("
|
|
15044
|
+
_html(`<div${_attr_class("_fo")}><div${_attr_class("_ft")}><div${_attr_class("_fu")}><div${_attr_class(["_fE", { ["_fD"]: !comments.length }])}>`);
|
|
15044
15045
|
_if(() => {
|
|
15045
15046
|
if (input.onExit) {
|
|
15046
15047
|
const $scope1_id = _scope_id();
|
|
15047
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
15048
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_fv"])} title="Back to terminal (Esc)">`);
|
|
15048
15049
|
icon_back_default({ size: 14 });
|
|
15049
15050
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
15050
15051
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -15055,7 +15056,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15055
15056
|
_if(() => {
|
|
15056
15057
|
if (comments.length) {
|
|
15057
15058
|
const $scope5_id = _scope_id();
|
|
15058
|
-
_html(`<span${_attr_class("
|
|
15059
|
+
_html(`<span${_attr_class("_fx")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
15059
15060
|
writeScope($scope5_id, {});
|
|
15060
15061
|
return 0;
|
|
15061
15062
|
}
|
|
@@ -15063,7 +15064,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15063
15064
|
_if(() => {
|
|
15064
15065
|
if (comments.length) {
|
|
15065
15066
|
const $scope2_id = _scope_id();
|
|
15066
|
-
_html(`<span${_attr_class("
|
|
15067
|
+
_html(`<span${_attr_class("_fw")}>`);
|
|
15067
15068
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
15068
15069
|
const $childScope = _peek_scope_id();
|
|
15069
15070
|
diff_send_default({
|
|
@@ -15076,14 +15077,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15076
15077
|
return 0;
|
|
15077
15078
|
}
|
|
15078
15079
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
15079
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15080
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_fs")}>`);
|
|
15080
15081
|
_if(() => {
|
|
15081
15082
|
if (hasFiles) {
|
|
15082
15083
|
const $scope12_id = _scope_id();
|
|
15083
15084
|
_html(`<button${_attr_class([
|
|
15084
15085
|
treeToggle,
|
|
15085
|
-
"
|
|
15086
|
-
{ ["
|
|
15086
|
+
"_fq",
|
|
15087
|
+
{ ["_fp"]: treeOpen }
|
|
15087
15088
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
15088
15089
|
icon_sidebar_default({ size: 14 });
|
|
15089
15090
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -15092,7 +15093,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15092
15093
|
return 0;
|
|
15093
15094
|
}
|
|
15094
15095
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15095
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15096
|
+
_html(`<button${_attr_class([iconBtnRow, "_fq"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
15096
15097
|
_set_serialize_reason(1);
|
|
15097
15098
|
const $childScope2 = _peek_scope_id();
|
|
15098
15099
|
icon_refresh_default({
|
|
@@ -15103,19 +15104,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15103
15104
|
_if(() => {
|
|
15104
15105
|
if (hasFiles) {
|
|
15105
15106
|
const $scope13_id = _scope_id();
|
|
15106
|
-
_html(`<button${_attr_class(["_q", "
|
|
15107
|
+
_html(`<button${_attr_class(["_q", "_fN"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
15107
15108
|
_script($scope13_id, "m53");
|
|
15108
15109
|
writeScope($scope13_id, {});
|
|
15109
15110
|
return 0;
|
|
15110
15111
|
}
|
|
15111
15112
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15112
|
-
_html(`<span${_attr_class(["_o", "
|
|
15113
|
+
_html(`<span${_attr_class(["_o", "_fF"])}>`);
|
|
15113
15114
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15114
15115
|
setScope(v);
|
|
15115
15116
|
}, "m0", $scope0_id), () => {
|
|
15116
|
-
_html(`<select${_attr_class(["_p", "
|
|
15117
|
+
_html(`<select${_attr_class(["_p", "_fG"])} aria-label="Review scope"${_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></select>`);
|
|
15117
15118
|
});
|
|
15118
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15119
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_fB", { ["_fA"]: !findOpen }])}>`);
|
|
15119
15120
|
_set_serialize_reason(2);
|
|
15120
15121
|
const $childScope3 = _peek_scope_id();
|
|
15121
15122
|
let findFocus = diff_find_default({
|
|
@@ -15136,8 +15137,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15136
15137
|
const $scope14_id = _scope_id();
|
|
15137
15138
|
_html(`<button${_attr_class([
|
|
15138
15139
|
iconBtnRow,
|
|
15139
|
-
"
|
|
15140
|
-
"
|
|
15140
|
+
"_fz",
|
|
15141
|
+
"_fq"
|
|
15141
15142
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15142
15143
|
icon_search_default({ size: 14 });
|
|
15143
15144
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15146,7 +15147,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15146
15147
|
return 0;
|
|
15147
15148
|
}
|
|
15148
15149
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15149
|
-
_html(`</div></div><div${_attr_class("
|
|
15150
|
+
_html(`</div></div><div${_attr_class("_fC")} data-diff-main>`);
|
|
15150
15151
|
_if(() => {
|
|
15151
15152
|
if (error) {
|
|
15152
15153
|
const $scope6_id = _scope_id();
|
|
@@ -15169,7 +15170,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15169
15170
|
_if(() => {
|
|
15170
15171
|
if (!repos && loading) {
|
|
15171
15172
|
const $scope15_id = _scope_id();
|
|
15172
|
-
_html(`<div${_attr_class("
|
|
15173
|
+
_html(`<div${_attr_class("_fI")} aria-hidden=true><div${_attr_class(["_fJ", "_fK"])}></div><div${_attr_class(["_fJ", "_fL"])}></div><div${_attr_class(["_fJ", "_fM"])}></div><div${_attr_class(["_fJ", "_fL"])}></div><div${_attr_class(["_fJ", "_fM"])}></div></div>`);
|
|
15173
15174
|
writeScope($scope15_id, {});
|
|
15174
15175
|
return 0;
|
|
15175
15176
|
}
|
|
@@ -15199,12 +15200,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15199
15200
|
_if(() => {
|
|
15200
15201
|
if (repos && !allFiles.length) {
|
|
15201
15202
|
const $scope11_id = _scope_id();
|
|
15202
|
-
_html(`<p${_attr_class("
|
|
15203
|
+
_html(`<p${_attr_class("_bC")}>${_text_resume($scope11_id, "b", 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>`);
|
|
15203
15204
|
writeScope($scope11_id, {});
|
|
15204
15205
|
return 0;
|
|
15205
15206
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
15206
15207
|
const $scope8_id = _scope_id();
|
|
15207
|
-
_html(`<p${_attr_class("
|
|
15208
|
+
_html(`<p${_attr_class("_bC")}>${_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>`);
|
|
15208
15209
|
writeScope($scope8_id, {});
|
|
15209
15210
|
return 1;
|
|
15210
15211
|
}
|
|
@@ -15571,9 +15572,13 @@ function parseInvite(text) {
|
|
|
15571
15572
|
}
|
|
15572
15573
|
//#endregion
|
|
15573
15574
|
//#region src/tags/manage-workspace.css.ts
|
|
15574
|
-
var content$1 = "
|
|
15575
|
-
var pageMeta = "
|
|
15576
|
-
var pathMeta = "
|
|
15575
|
+
var content$1 = "_eh _b6";
|
|
15576
|
+
var pageMeta = "_ei _ca";
|
|
15577
|
+
var pathMeta = "_el _y";
|
|
15578
|
+
var skillRow = "_er _em";
|
|
15579
|
+
var skillName = "_et _en";
|
|
15580
|
+
var skillDesc = "_ew _eo";
|
|
15581
|
+
var skillEnd = "_ex _ep";
|
|
15577
15582
|
//#endregion
|
|
15578
15583
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15579
15584
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -15591,8 +15596,8 @@ var icon_clipboard_default = _template("V", (input) => {
|
|
|
15591
15596
|
});
|
|
15592
15597
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15593
15598
|
});
|
|
15594
|
-
var resultRow = "
|
|
15595
|
-
var resultBranch = "
|
|
15599
|
+
var resultRow = "_hf _I";
|
|
15600
|
+
var resultBranch = "_hh _4 _l";
|
|
15596
15601
|
//#endregion
|
|
15597
15602
|
//#region src/tags/icons/icon-branch.marko
|
|
15598
15603
|
var icon_branch_default = _template("R", (input) => {
|
|
@@ -15622,11 +15627,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15622
15627
|
let branchFilter = "";
|
|
15623
15628
|
let reloadTick = 0;
|
|
15624
15629
|
let refreshing = false;
|
|
15625
|
-
_html(`<div${_attr_class("
|
|
15630
|
+
_html(`<div${_attr_class("_hj")}>`);
|
|
15626
15631
|
_if(() => {
|
|
15627
15632
|
{
|
|
15628
15633
|
const $scope4_id = _scope_id();
|
|
15629
|
-
_html(`<p${_attr_class("
|
|
15634
|
+
_html(`<p${_attr_class("_bB")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15630
15635
|
writeScope($scope4_id, {});
|
|
15631
15636
|
return 0;
|
|
15632
15637
|
}
|
|
@@ -15652,7 +15657,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15652
15657
|
//#region src/tags/repo-picker.marko
|
|
15653
15658
|
var api$5;
|
|
15654
15659
|
var repo_picker_default = _template("v", (input$2) => {
|
|
15655
|
-
const $scope0_reason = _scope_reason(), $sg__input_compact = _serialize_guard($scope0_reason,
|
|
15660
|
+
const $scope0_reason = _scope_reason(), $sg__input_compact = _serialize_guard($scope0_reason, 6), $si__input_onError = _serialize_if($scope0_reason, 5);
|
|
15656
15661
|
const $scope0_id = _scope_id();
|
|
15657
15662
|
const $loadCatalog2__closures = /* @__PURE__ */ new Set();
|
|
15658
15663
|
const $ssoPending__closures = /* @__PURE__ */ new Set();
|
|
@@ -15727,18 +15732,21 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15727
15732
|
_resume_branch($scope8_id);
|
|
15728
15733
|
}, $scope0_id) };
|
|
15729
15734
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
15730
|
-
_html(`<div${_attr_class([compact ? "
|
|
15735
|
+
_html(`<div${_attr_class([compact ? "_dS" : "_g_", {
|
|
15736
|
+
["_dT"]: compact && !input$2.open,
|
|
15737
|
+
["_dU"]: input$2.pinned
|
|
15738
|
+
}])}>`);
|
|
15731
15739
|
_if(() => {
|
|
15732
15740
|
if (!compact && ssoPending.length) {
|
|
15733
15741
|
const $scope10_id = _scope_id();
|
|
15734
|
-
_html(`<div${_attr_class("
|
|
15742
|
+
_html(`<div${_attr_class("_ha")}>`);
|
|
15735
15743
|
ssoBlock.content({});
|
|
15736
15744
|
_html("</div>");
|
|
15737
15745
|
writeScope($scope10_id, {});
|
|
15738
15746
|
return 0;
|
|
15739
15747
|
}
|
|
15740
15748
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
15741
|
-
_html(`<label${_attr_class(["_1", compact && "
|
|
15749
|
+
_html(`<label${_attr_class(["_1", compact && "_dV"])}>`);
|
|
15742
15750
|
icon_search_default({
|
|
15743
15751
|
size: 14,
|
|
15744
15752
|
class: "_2"
|
|
@@ -15750,24 +15758,24 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15750
15758
|
}, "v0", $scope0_id))}${_attr_class([
|
|
15751
15759
|
compact ? "_Z" : inputLg,
|
|
15752
15760
|
"_3",
|
|
15753
|
-
compact && "
|
|
15761
|
+
compact && "_dW"
|
|
15754
15762
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "e")}</label>${_el_resume($scope0_id, "c", $sg__input_compact)}`);
|
|
15755
15763
|
_if(() => {
|
|
15756
15764
|
if (compact) {
|
|
15757
15765
|
const $scope1_id = _scope_id();
|
|
15758
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15759
|
-
icon_xmark_default({ size:
|
|
15766
|
+
_html(`<button${_attr_class([iconBtnRow, "_dX"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15767
|
+
icon_xmark_default({ size: 14 });
|
|
15760
15768
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
15761
15769
|
_script($scope1_id, "v14");
|
|
15762
15770
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
15763
15771
|
return 0;
|
|
15764
15772
|
}
|
|
15765
|
-
}, $scope0_id, "f", $
|
|
15766
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
15773
|
+
}, $scope0_id, "f", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
15774
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hb"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
15767
15775
|
_if(() => {
|
|
15768
15776
|
if (compact && ssoPending.length) {
|
|
15769
15777
|
const $scope11_id = _scope_id();
|
|
15770
|
-
_html(`<div${_attr_class("
|
|
15778
|
+
_html(`<div${_attr_class("_ha")}>`);
|
|
15771
15779
|
ssoBlock.content({});
|
|
15772
15780
|
_html("</div>");
|
|
15773
15781
|
writeScope($scope11_id, {});
|
|
@@ -15777,16 +15785,16 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15777
15785
|
_if(() => {
|
|
15778
15786
|
if (pasted) {
|
|
15779
15787
|
const $scope2_id = _scope_id();
|
|
15780
|
-
_html(`<ul${_attr_class("
|
|
15788
|
+
_html(`<ul${_attr_class("_hc")}><li><div${_attr_class(["_he", "_hd"])}><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)`)}>`);
|
|
15781
15789
|
icon_plus_default({
|
|
15782
15790
|
size: 12,
|
|
15783
|
-
class: "
|
|
15791
|
+
class: "_hl"
|
|
15784
15792
|
});
|
|
15785
|
-
_html(`<span${_attr_class("
|
|
15793
|
+
_html(`<span${_attr_class("_hm")}>${_text_resume($scope2_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
15786
15794
|
_if(() => {
|
|
15787
15795
|
if (pastedForkable) {
|
|
15788
15796
|
const $scope9_id = _scope_id();
|
|
15789
|
-
_html(`<button${_attr_class(["
|
|
15797
|
+
_html(`<button${_attr_class(["_hi", { ["_hg"]: 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"}>`);
|
|
15790
15798
|
_if(() => {
|
|
15791
15799
|
if (pasteWillFork) {
|
|
15792
15800
|
const $scope13_id = _scope_id();
|
|
@@ -15802,11 +15810,11 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15802
15810
|
}
|
|
15803
15811
|
}, $scope9_id, "a", 1, 1, 1, "</button>");
|
|
15804
15812
|
_script($scope9_id, "v15");
|
|
15805
|
-
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope9_id, {
|
|
15813
|
+
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope9_id, { Cb3: 1 })));
|
|
15806
15814
|
return 0;
|
|
15807
15815
|
}
|
|
15808
15816
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
15809
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15817
|
+
_html(`<button${_attr_class([resultBranch, { ["_hg"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15810
15818
|
icon_branch_default({ size: 12 });
|
|
15811
15819
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
15812
15820
|
_if(() => {
|
|
@@ -15833,7 +15841,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15833
15841
|
return 0;
|
|
15834
15842
|
} else if (filter && !catalog) {
|
|
15835
15843
|
const $scope12_id = _scope_id();
|
|
15836
|
-
_html(`<p${_attr_class("
|
|
15844
|
+
_html(`<p${_attr_class("_bB")}>Loading repos…</p>`);
|
|
15837
15845
|
writeScope($scope12_id, {});
|
|
15838
15846
|
return 1;
|
|
15839
15847
|
}
|
|
@@ -15841,15 +15849,15 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15841
15849
|
_if(() => {
|
|
15842
15850
|
if (results.length) {
|
|
15843
15851
|
const $scope4_id = _scope_id();
|
|
15844
|
-
_html(`<ul${_attr_class("
|
|
15852
|
+
_html(`<ul${_attr_class("_hc")}>`);
|
|
15845
15853
|
_for_of(results, (repo, i) => {
|
|
15846
15854
|
const $scope5_id = _scope_id();
|
|
15847
|
-
_html(`<li><div${_attr_class(["
|
|
15855
|
+
_html(`<li><div${_attr_class(["_he", { ["_hd"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15848
15856
|
icon_plus_default({
|
|
15849
15857
|
size: 12,
|
|
15850
|
-
class: "
|
|
15858
|
+
class: "_hl"
|
|
15851
15859
|
});
|
|
15852
|
-
_html(`<span${_attr_class("
|
|
15860
|
+
_html(`<span${_attr_class("_hm")}>${_text_resume($scope5_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_hg"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15853
15861
|
icon_branch_default({ size: 12 });
|
|
15854
15862
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
15855
15863
|
_if(() => {
|
|
@@ -15868,7 +15876,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15868
15876
|
});
|
|
15869
15877
|
_subscribe($si__input_onError && $input_onError__closures, writeScope($scope6_id, {
|
|
15870
15878
|
a: _existing_scope($childScope3),
|
|
15871
|
-
|
|
15879
|
+
Cax: $si__input_onError && 1
|
|
15872
15880
|
}));
|
|
15873
15881
|
return 0;
|
|
15874
15882
|
}
|
|
@@ -15884,7 +15892,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15884
15892
|
return 0;
|
|
15885
15893
|
} else if (filter && catalog && !pasted) {
|
|
15886
15894
|
const $scope7_id = _scope_id();
|
|
15887
|
-
_html(`<p${_attr_class("
|
|
15895
|
+
_html(`<p${_attr_class("_bB")}>No repos match "${_text_resume($scope7_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
15888
15896
|
writeScope($scope7_id, {});
|
|
15889
15897
|
return 1;
|
|
15890
15898
|
}
|
|
@@ -15893,46 +15901,47 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15893
15901
|
if (action === "focus") ((inputEl) => inputEl())(_el_read_error)?.focus({ preventScroll: true });
|
|
15894
15902
|
else loadCatalog(true);
|
|
15895
15903
|
}, "v1", $scope0_id);
|
|
15896
|
-
_html(`</div>${_el_resume($scope0_id, "g")}</div>${_el_resume($scope0_id, "a", $
|
|
15904
|
+
_html(`</div>${_el_resume($scope0_id, "g")}</div>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 2))}`);
|
|
15897
15905
|
const $return = handle;
|
|
15898
15906
|
_script($scope0_id, "v18");
|
|
15899
15907
|
_script($scope0_id, "v19");
|
|
15900
15908
|
writeScope($scope0_id, {
|
|
15901
|
-
m: _serialize_if($scope0_reason,
|
|
15902
|
-
n: _serialize_if($scope0_reason,
|
|
15909
|
+
m: _serialize_if($scope0_reason, 4) && input$2.refreshing,
|
|
15910
|
+
n: _serialize_if($scope0_reason, 3) && input$2.refreshingChange,
|
|
15903
15911
|
p: input$2.onError,
|
|
15904
15912
|
q: input$2.exclude,
|
|
15905
15913
|
r: input$2.onPick,
|
|
15906
15914
|
t: input$2.open,
|
|
15907
|
-
|
|
15908
|
-
|
|
15909
|
-
z: catalog
|
|
15910
|
-
|
|
15911
|
-
a2:
|
|
15912
|
-
a3:
|
|
15913
|
-
a4:
|
|
15914
|
-
a5:
|
|
15915
|
-
|
|
15916
|
-
a9: results
|
|
15917
|
-
aa:
|
|
15918
|
-
|
|
15919
|
-
af:
|
|
15920
|
-
|
|
15921
|
-
ai:
|
|
15922
|
-
aj:
|
|
15923
|
-
ak:
|
|
15924
|
-
al:
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
|
|
15928
|
-
|
|
15929
|
-
|
|
15930
|
-
|
|
15931
|
-
|
|
15932
|
-
|
|
15933
|
-
|
|
15934
|
-
|
|
15935
|
-
|
|
15915
|
+
u: input$2.pinned,
|
|
15916
|
+
w: input$2.onClose,
|
|
15917
|
+
z: catalog,
|
|
15918
|
+
a0: catalog?.repos,
|
|
15919
|
+
a2: catalog?.sso,
|
|
15920
|
+
a3: filter,
|
|
15921
|
+
a4: highlight,
|
|
15922
|
+
a5: loadCatalog,
|
|
15923
|
+
a6: excluded,
|
|
15924
|
+
a9: results,
|
|
15925
|
+
aa: results?.length,
|
|
15926
|
+
ab: pasted,
|
|
15927
|
+
af: pastedForkable,
|
|
15928
|
+
ag: branchesFor,
|
|
15929
|
+
ai: pasteWillFork,
|
|
15930
|
+
aj: pick,
|
|
15931
|
+
ak: pastedFork,
|
|
15932
|
+
al: toggleBranches,
|
|
15933
|
+
am: compact,
|
|
15934
|
+
ao: ssoIgnoreTick,
|
|
15935
|
+
ar: ssoPending?.length,
|
|
15936
|
+
au: _serialize_if($scope0_reason, 1) && hasBody,
|
|
15937
|
+
y: input$2.refreshingChange || void 0,
|
|
15938
|
+
b1: $si__input_onError && $loadCatalog2__closures,
|
|
15939
|
+
b7: $ssoPending__closures,
|
|
15940
|
+
b3: $pasted__closures,
|
|
15941
|
+
b6: $pasteWillFork__closures,
|
|
15942
|
+
ax: $si__input_onError && $input_onError__closures,
|
|
15943
|
+
b0: $highlight__closures,
|
|
15944
|
+
b5: $branchesFor__closures
|
|
15936
15945
|
});
|
|
15937
15946
|
_resume_branch($scope0_id);
|
|
15938
15947
|
return $return;
|
|
@@ -15952,13 +15961,15 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15952
15961
|
const $copied__closures = /* @__PURE__ */ new Set();
|
|
15953
15962
|
const $ws_origin_branch__closures = /* @__PURE__ */ new Set();
|
|
15954
15963
|
const $ws_branch__closures = /* @__PURE__ */ new Set();
|
|
15964
|
+
const $pendingAction__closures = /* @__PURE__ */ new Set();
|
|
15965
|
+
const $confirmingDelete__closures = /* @__PURE__ */ new Set();
|
|
15966
|
+
const $ws_repos_length__closures = /* @__PURE__ */ new Set();
|
|
15955
15967
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
15956
15968
|
const $confirmingRemove__closures = /* @__PURE__ */ new Set();
|
|
15957
15969
|
const $wsSkills_length__closures = /* @__PURE__ */ new Set();
|
|
15958
|
-
const $skills__closures = /* @__PURE__ */ new Set();
|
|
15959
15970
|
const $confirmingSkill__closures = /* @__PURE__ */ new Set();
|
|
15960
15971
|
const $busy__closures = /* @__PURE__ */ new Set();
|
|
15961
|
-
const $
|
|
15972
|
+
const $skills__closures = /* @__PURE__ */ new Set();
|
|
15962
15973
|
let catalogRefreshing = false;
|
|
15963
15974
|
let procs = lastData.get(`procs:${input.workspace.id}`) || null;
|
|
15964
15975
|
let busy = /* @__PURE__ */ new Set();
|
|
@@ -16094,30 +16105,8 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16094
16105
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16095
16106
|
}, "q9", $scope0_id);
|
|
16096
16107
|
const titleId = _id();
|
|
16097
|
-
_html(`<div${_attr_class("
|
|
16098
|
-
_set_serialize_reason(
|
|
16099
|
-
let $actions;
|
|
16100
|
-
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q17", () => {
|
|
16101
|
-
_scope_reason();
|
|
16102
|
-
const $scope14_id = _scope_id();
|
|
16103
|
-
_html(`<button type=button${_attr_class(iconBtnRow)}${copied ? " title=\"Invite copied\"" : _attr("title", `Copy invite — anyone with it can join from New: the same repos on their own lane of ${ws.origin_branch || ws.branch}`)} aria-label="Copy invite">`);
|
|
16104
|
-
_if(() => {
|
|
16105
|
-
if (copied) {
|
|
16106
|
-
const $scope20_id = _scope_id();
|
|
16107
|
-
icon_check_default({ size: 14 });
|
|
16108
|
-
writeScope($scope20_id, {});
|
|
16109
|
-
return 0;
|
|
16110
|
-
} else {
|
|
16111
|
-
const $scope21_id = _scope_id();
|
|
16112
|
-
icon_clipboard_default({ size: 14 });
|
|
16113
|
-
writeScope($scope21_id, {});
|
|
16114
|
-
return 1;
|
|
16115
|
-
}
|
|
16116
|
-
}, $scope14_id, "a", 1, 1, 1, "</button>", 1);
|
|
16117
|
-
_script($scope14_id, "q15");
|
|
16118
|
-
_subscribe($ws_branch__closures, _subscribe($ws_origin_branch__closures, _subscribe($copied__closures, writeScope($scope14_id, { _: _scope_with_id($scope0_id) }))));
|
|
16119
|
-
_resume_branch($scope14_id);
|
|
16120
|
-
}, $scope0_id) });
|
|
16108
|
+
_html(`<div${_attr_class("_b4")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_b5")}><div${_attr_class(content$1)}>`);
|
|
16109
|
+
_set_serialize_reason(30);
|
|
16121
16110
|
const $childScope = _peek_scope_id();
|
|
16122
16111
|
page_head_default({
|
|
16123
16112
|
title: "Manage",
|
|
@@ -16126,79 +16115,111 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16126
16115
|
onBack: _resume(function() {
|
|
16127
16116
|
input.onExit?.();
|
|
16128
16117
|
}, "q10", $scope0_id),
|
|
16129
|
-
|
|
16130
|
-
meta: attrTag({ content: _content("q16", () => {
|
|
16118
|
+
meta: attrTag({ content: _content("q19", () => {
|
|
16131
16119
|
_scope_reason();
|
|
16132
|
-
const $
|
|
16133
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16120
|
+
const $scope14_id = _scope_id();
|
|
16121
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_ej")}>${_text_resume($scope14_id, "c", ws.name)}</span>`);
|
|
16134
16122
|
_if(() => {
|
|
16135
16123
|
if (ws.status !== "active") {
|
|
16136
|
-
const $
|
|
16124
|
+
const $scope18_id = _scope_id();
|
|
16137
16125
|
_html(`<span${_attr_class(["_N", "_P"])}>Archived</span>`);
|
|
16138
|
-
writeScope($
|
|
16126
|
+
writeScope($scope18_id, {});
|
|
16139
16127
|
return 0;
|
|
16140
16128
|
}
|
|
16141
|
-
}, $
|
|
16142
|
-
_html(`<span${_attr_class("
|
|
16143
|
-
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($
|
|
16144
|
-
|
|
16129
|
+
}, $scope14_id, "d", 1, 1, 1, 0, 1);
|
|
16130
|
+
_html(`<span${_attr_class("_ek")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope14_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope14_id, "a")}`);
|
|
16131
|
+
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope14_id, {
|
|
16132
|
+
_: _scope_with_id($scope0_id),
|
|
16133
|
+
Cca: 1
|
|
16134
|
+
})))));
|
|
16135
|
+
_resume_branch($scope14_id);
|
|
16136
|
+
}, $scope0_id) }),
|
|
16137
|
+
actions: attrTag({ content: _content("q20", () => {
|
|
16138
|
+
_scope_reason();
|
|
16139
|
+
const $scope7_id = _scope_id();
|
|
16140
|
+
_if(() => {
|
|
16141
|
+
if (ws.repos.length) {
|
|
16142
|
+
const $scope13_id = _scope_id();
|
|
16143
|
+
_html(`<button type=button${_attr_class(iconBtnRow)}${copied ? " title=\"Invite copied\"" : _attr("title", `Copy invite — anyone with it can join from New: the same repos on their own lane of ${ws.origin_branch || ws.branch}`)} aria-label="Copy invite">`);
|
|
16144
|
+
_if(() => {
|
|
16145
|
+
if (copied) {
|
|
16146
|
+
const $scope19_id = _scope_id();
|
|
16147
|
+
icon_check_default({ size: 14 });
|
|
16148
|
+
writeScope($scope19_id, {});
|
|
16149
|
+
return 0;
|
|
16150
|
+
} else {
|
|
16151
|
+
const $scope20_id = _scope_id();
|
|
16152
|
+
icon_clipboard_default({ size: 14 });
|
|
16153
|
+
writeScope($scope20_id, {});
|
|
16154
|
+
return 1;
|
|
16155
|
+
}
|
|
16156
|
+
}, $scope13_id, "a", 1, 1, 1, "</button>", 1);
|
|
16157
|
+
_script($scope13_id, "q15");
|
|
16158
|
+
_subscribe($ws_branch__closures, _subscribe($ws_origin_branch__closures, _subscribe($copied__closures, writeScope($scope13_id, {}))));
|
|
16159
|
+
return 0;
|
|
16160
|
+
}
|
|
16161
|
+
}, $scope7_id, "a", 1, 1, 1, 0, 1);
|
|
16162
|
+
_if(() => {
|
|
16163
|
+
if (ws.status === "active") {
|
|
16164
|
+
const $scope8_id = _scope_id();
|
|
16165
|
+
_html(`<button type=button${_attr_class(btnSm)} title="Hide from the list. Worktrees stay on disk."${_attr("disabled", !!pendingAction)}>${_text_resume($scope8_id, "b", pendingAction === "archive" ? "Archiving…" : "Archive")}</button>${_el_resume($scope8_id, "a")}`);
|
|
16166
|
+
_script($scope8_id, "q16");
|
|
16167
|
+
_subscribe($pendingAction__closures, writeScope($scope8_id, { Cby: 1 }));
|
|
16168
|
+
return 0;
|
|
16169
|
+
} else {
|
|
16170
|
+
const $scope9_id = _scope_id();
|
|
16171
|
+
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Archived and hidden from the list. Bring it back."${_attr("disabled", !!pendingAction)}>${_text_resume($scope9_id, "b", pendingAction === "restore" ? "Restoring…" : "Restore")}</button>${_el_resume($scope9_id, "a")}`);
|
|
16172
|
+
_script($scope9_id, "q17");
|
|
16173
|
+
_subscribe($pendingAction__closures, writeScope($scope9_id, { Cby: 2 }));
|
|
16174
|
+
return 1;
|
|
16175
|
+
}
|
|
16176
|
+
}, $scope7_id, "b", 1, 1, 1, 0, 1);
|
|
16177
|
+
_html(`<button type=button${_attr_class([
|
|
16178
|
+
btnSm,
|
|
16179
|
+
"_t",
|
|
16180
|
+
{ ["_s"]: confirmingDelete }
|
|
16181
|
+
])} title="Remove the workspace and its worktrees. Branches on origin stay."${_attr("disabled", !!pendingAction)}>${_text_resume($scope7_id, "d", pendingAction === "delete" ? "Deleting…" : "Delete")}</button>${_el_resume($scope7_id, "c")}`);
|
|
16182
|
+
_script($scope7_id, "q18");
|
|
16183
|
+
_subscribe($ws_repos_length__closures, _subscribe($ws_status__closures, _subscribe($confirmingDelete__closures, _subscribe($pendingAction__closures, writeScope($scope7_id, { _: _scope_with_id($scope0_id) })))));
|
|
16184
|
+
_resume_branch($scope7_id);
|
|
16145
16185
|
}, $scope0_id) })
|
|
16146
16186
|
});
|
|
16147
16187
|
_if(() => {
|
|
16148
16188
|
if (error) {
|
|
16149
|
-
const $
|
|
16189
|
+
const $scope5_id = _scope_id();
|
|
16150
16190
|
toast_default({
|
|
16151
16191
|
placement: "inline",
|
|
16152
16192
|
onDismiss: _resume(function() {
|
|
16153
16193
|
error = null;
|
|
16154
|
-
}, "q11", $
|
|
16155
|
-
content: _content("
|
|
16194
|
+
}, "q11", $scope5_id),
|
|
16195
|
+
content: _content("q21", () => {
|
|
16156
16196
|
_scope_reason();
|
|
16157
|
-
const $
|
|
16158
|
-
_html(_text_resume($
|
|
16159
|
-
_subscribe($error__closures, writeScope($
|
|
16160
|
-
_resume_branch($
|
|
16161
|
-
}, $
|
|
16197
|
+
const $scope6_id = _scope_id();
|
|
16198
|
+
_html(_text_resume($scope6_id, "a", error));
|
|
16199
|
+
_subscribe($error__closures, writeScope($scope6_id, { _: _scope_with_id($scope5_id) }));
|
|
16200
|
+
_resume_branch($scope6_id);
|
|
16201
|
+
}, $scope5_id)
|
|
16162
16202
|
});
|
|
16163
|
-
writeScope($
|
|
16203
|
+
writeScope($scope5_id, {});
|
|
16164
16204
|
return 0;
|
|
16165
16205
|
}
|
|
16166
16206
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
16167
16207
|
_if(() => {
|
|
16168
16208
|
if (pendingAction && actionStep) {
|
|
16169
16209
|
const $scope11_id = _scope_id();
|
|
16170
|
-
_html(`<p${_attr_class("
|
|
16210
|
+
_html(`<p${_attr_class("_bp")}><span${_attr_class("_G")}></span>${_text_resume($scope11_id, "c", actionStep)}</p>`);
|
|
16171
16211
|
writeScope($scope11_id, {});
|
|
16172
16212
|
return 0;
|
|
16173
16213
|
}
|
|
16174
16214
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16175
|
-
_html(`<section${_attr_class("
|
|
16176
|
-
_if(() => {
|
|
16177
|
-
if (ws.status === "active") {
|
|
16178
|
-
const $scope8_id = _scope_id();
|
|
16179
|
-
_html(`<span${_attr_class("_cK")}>Hide from the list. Worktrees stay on disk.</span><button type=button${_attr_class(btnSm)}${_attr("disabled", !!pendingAction)}>${_text_resume($scope8_id, "c", pendingAction === "archive" ? "Archiving…" : "Archive")}</button>${_el_resume($scope8_id, "b")}`);
|
|
16180
|
-
_script($scope8_id, "q19");
|
|
16181
|
-
writeScope($scope8_id, {});
|
|
16182
|
-
return 0;
|
|
16183
|
-
} else {
|
|
16184
|
-
const $scope9_id = _scope_id();
|
|
16185
|
-
_html(`<span${_attr_class("_cK")}>Archived and hidden from the list.</span><button type=button${_attr_class([btnSm, "_r"])}${_attr("disabled", !!pendingAction)}>${_text_resume($scope9_id, "c", pendingAction === "restore" ? "Restoring…" : "Restore")}</button>${_el_resume($scope9_id, "b")}`);
|
|
16186
|
-
_script($scope9_id, "q20");
|
|
16187
|
-
writeScope($scope9_id, {});
|
|
16188
|
-
return 1;
|
|
16189
|
-
}
|
|
16190
|
-
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
16191
|
-
_html(`<div${_attr_class(["_cH", "_cI"])}><span${_attr_class("_cK")}>Remove the workspace and its worktrees. Branches on origin stay.</span><button type=button${_attr_class([
|
|
16192
|
-
btnSm,
|
|
16193
|
-
"_t",
|
|
16194
|
-
{ ["_s"]: confirmingDelete }
|
|
16195
|
-
])}${_attr("disabled", !!pendingAction)}>${_text_resume($scope0_id, "o", pendingAction === "delete" ? "Deleting…" : "Delete")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "t", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class(iconBtnRow)} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16215
|
+
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_eA"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16196
16216
|
icon_plus_default({ size: 16 });
|
|
16197
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
16198
|
-
_set_serialize_reason(
|
|
16217
|
+
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16218
|
+
_set_serialize_reason(14);
|
|
16199
16219
|
const $childScope2 = _peek_scope_id();
|
|
16200
16220
|
let refreshCatalog = repo_picker_default({
|
|
16201
16221
|
compact: true,
|
|
16222
|
+
pinned: true,
|
|
16202
16223
|
open: addingRepo,
|
|
16203
16224
|
exclude: inWorkspace,
|
|
16204
16225
|
onClose: _resume(function() {
|
|
@@ -16214,7 +16235,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16214
16235
|
catalogRefreshing = busy;
|
|
16215
16236
|
}
|
|
16216
16237
|
});
|
|
16217
|
-
_var($scope0_id, "
|
|
16238
|
+
_var($scope0_id, "p", $childScope2, "q22");
|
|
16218
16239
|
_html(`<button${_attr_class(iconBtn$1)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
16219
16240
|
_set_serialize_reason(1);
|
|
16220
16241
|
const $childScope3 = _peek_scope_id();
|
|
@@ -16222,53 +16243,53 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16222
16243
|
size: 14,
|
|
16223
16244
|
class: catalogRefreshing && "_F"
|
|
16224
16245
|
});
|
|
16225
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
16226
|
-
"
|
|
16227
|
-
"
|
|
16228
|
-
"
|
|
16246
|
+
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class([
|
|
16247
|
+
"_bv",
|
|
16248
|
+
"_cc",
|
|
16249
|
+
"_cq"
|
|
16229
16250
|
])}>`);
|
|
16230
16251
|
_for_of(ws.repos, (row) => {
|
|
16231
16252
|
const $scope1_id = _scope_id();
|
|
16232
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16253
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bw")}><span${_attr_class(["_bx", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_by")}><a${_attr_class(["_bz", "_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(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
|
|
16233
16254
|
_if(() => {
|
|
16234
16255
|
if (row.base_branch !== row.default_branch) {
|
|
16235
|
-
const $
|
|
16256
|
+
const $scope21_id = _scope_id();
|
|
16236
16257
|
_html(`<span${_attr_class(["_N", "_y"])} title="Base branch">`);
|
|
16237
16258
|
icon_branch_default({ size: 12 });
|
|
16238
|
-
_html(` ${_text_resume($
|
|
16239
|
-
writeScope($
|
|
16259
|
+
_html(` ${_text_resume($scope21_id, "c", row.base_branch, 2)}</span>`);
|
|
16260
|
+
writeScope($scope21_id, {});
|
|
16240
16261
|
return 0;
|
|
16241
16262
|
}
|
|
16242
16263
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
16243
16264
|
_html("</span></div>");
|
|
16244
16265
|
_if(() => {
|
|
16245
16266
|
if (busy.has(row.full_name)) {
|
|
16246
|
-
const $
|
|
16267
|
+
const $scope22_id = _scope_id();
|
|
16247
16268
|
_html(`<span${_attr_class("_G")}></span>`);
|
|
16248
|
-
writeScope($
|
|
16269
|
+
writeScope($scope22_id, {});
|
|
16249
16270
|
return 0;
|
|
16250
16271
|
} else {
|
|
16251
16272
|
const $scope10_id = _scope_id();
|
|
16252
16273
|
_html(`<button${_attr_class([
|
|
16253
|
-
"
|
|
16274
|
+
"_bA",
|
|
16254
16275
|
"_8",
|
|
16255
16276
|
"_9",
|
|
16256
16277
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
16257
16278
|
])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
|
|
16258
16279
|
_if(() => {
|
|
16259
16280
|
if (confirmingRemove === row.full_name) {
|
|
16260
|
-
const $
|
|
16281
|
+
const $scope23_id = _scope_id();
|
|
16261
16282
|
_html("Remove?");
|
|
16262
|
-
writeScope($
|
|
16283
|
+
writeScope($scope23_id, {});
|
|
16263
16284
|
return 0;
|
|
16264
16285
|
} else {
|
|
16265
|
-
const $
|
|
16266
|
-
icon_xmark_default({ size:
|
|
16267
|
-
writeScope($
|
|
16286
|
+
const $scope24_id = _scope_id();
|
|
16287
|
+
icon_xmark_default({ size: 14 });
|
|
16288
|
+
writeScope($scope24_id, {});
|
|
16268
16289
|
return 1;
|
|
16269
16290
|
}
|
|
16270
16291
|
}, $scope10_id, "a", 1, 1, 1, "</button>");
|
|
16271
|
-
_script($scope10_id, "
|
|
16292
|
+
_script($scope10_id, "q23");
|
|
16272
16293
|
_subscribe($confirmingRemove__closures, writeScope($scope10_id, {}));
|
|
16273
16294
|
return 1;
|
|
16274
16295
|
}
|
|
@@ -16280,312 +16301,283 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16280
16301
|
m: row?.full_name,
|
|
16281
16302
|
o: row?.base_branch
|
|
16282
16303
|
});
|
|
16283
|
-
}, "full_name", $scope0_id, "
|
|
16304
|
+
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
16284
16305
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16285
|
-
const $
|
|
16286
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16287
|
-
writeScope($
|
|
16288
|
-
}, (n) => n, $scope0_id, "
|
|
16306
|
+
const $scope25_id = _scope_id();
|
|
16307
|
+
_html(`<li${_attr_class([flatCardRow, "_bu"])}><span${_attr_class("_G")}></span><div${_attr_class("_bw")}><span${_attr_class("_bz")}>Adding ${_text_resume($scope25_id, "e", name, 2)}…</span></div></li>`);
|
|
16308
|
+
writeScope($scope25_id, {});
|
|
16309
|
+
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
16289
16310
|
_if(() => {
|
|
16290
16311
|
if (!ws.repos.length && !busy.size) {
|
|
16291
|
-
const $
|
|
16292
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16293
|
-
writeScope($
|
|
16312
|
+
const $scope26_id = _scope_id();
|
|
16313
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_bz")}>No repos yet. Add one to start.</span></li>`);
|
|
16314
|
+
writeScope($scope26_id, {});
|
|
16294
16315
|
return 0;
|
|
16295
16316
|
}
|
|
16296
|
-
}, $scope0_id, "
|
|
16317
|
+
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
16297
16318
|
const wsSkills = skills?.workspace || [];
|
|
16298
16319
|
const repoSkills = (skills?.repo || []).filter((s) => !wsSkills.some((w) => w.id === s.id));
|
|
16299
16320
|
_html("</ul></section>");
|
|
16300
16321
|
_if(() => {
|
|
16301
16322
|
if (wsSkills.length || repoSkills.length) {
|
|
16302
16323
|
const $scope2_id = _scope_id();
|
|
16303
|
-
_html(`<section${_attr_class("
|
|
16324
|
+
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Skills</h2>`);
|
|
16304
16325
|
_if(() => {
|
|
16305
16326
|
if (wsSkills.length) {
|
|
16306
|
-
const $
|
|
16307
|
-
_html(`<span${_attr_class(sectionCount)}>${_text_resume($
|
|
16308
|
-
_subscribe($wsSkills_length__closures, writeScope($
|
|
16327
|
+
const $scope27_id = _scope_id();
|
|
16328
|
+
_html(`<span${_attr_class(sectionCount)}>${_text_resume($scope27_id, "b", wsSkills.length)}</span>`);
|
|
16329
|
+
_subscribe($wsSkills_length__closures, writeScope($scope27_id, {}));
|
|
16309
16330
|
return 0;
|
|
16310
16331
|
}
|
|
16311
16332
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
16312
|
-
_html(`</div><ul${_attr_class(
|
|
16333
|
+
_html(`</div><ul${_attr_class([
|
|
16334
|
+
"_bv",
|
|
16335
|
+
"_cc",
|
|
16336
|
+
"_cq"
|
|
16337
|
+
])}>`);
|
|
16313
16338
|
_for_of(wsSkills, (s) => {
|
|
16314
16339
|
const $scope3_id = _scope_id();
|
|
16315
|
-
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16326
|
-
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16340
|
+
_html(`<li${_attr_class(skillRow)}><span${_attr_class("_eu")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16341
|
+
_if(() => {
|
|
16342
|
+
if (s.worktree && !s.broken) {
|
|
16343
|
+
const $scope28_id = _scope_id();
|
|
16344
|
+
_html(`<span${_attr_class([
|
|
16345
|
+
"_N",
|
|
16346
|
+
"_y",
|
|
16347
|
+
"_ev"
|
|
16348
|
+
])}${_attr("title", `Linked from ${s.worktree}/ in this workspace`)}>${_text_resume($scope28_id, "b", s.worktree)}/</span>${_el_resume($scope28_id, "a")}`);
|
|
16349
|
+
writeScope($scope28_id, {});
|
|
16350
|
+
return 0;
|
|
16351
|
+
}
|
|
16352
|
+
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
16353
|
+
_html(`</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope3_id, "g", s.description || "")}</span>${_el_resume($scope3_id, "f")}<span${_attr_class(skillEnd)}>`);
|
|
16354
|
+
_if(() => {
|
|
16355
|
+
if (s.broken) {
|
|
16356
|
+
const $scope29_id = _scope_id();
|
|
16357
|
+
_html(`<span${_attr_class([
|
|
16358
|
+
"_N",
|
|
16359
|
+
"_P",
|
|
16360
|
+
tone.danger
|
|
16361
|
+
])}${_attr("title", `Points into ${s.worktree || "a repo"} that is no longer here`)}>broken link</span>${_el_resume($scope29_id, "a")}`);
|
|
16362
|
+
writeScope($scope29_id, {});
|
|
16363
|
+
return 0;
|
|
16364
|
+
} else if (s.sourceUrl) {
|
|
16365
|
+
const $scope30_id = _scope_id();
|
|
16366
|
+
_html(`<a${_attr_class(["_N", "_K"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Installed from ${s.source}`)}>${_text_resume($scope30_id, "b", s.source)}</a>${_el_resume($scope30_id, "a")}`);
|
|
16367
|
+
writeScope($scope30_id, {});
|
|
16368
|
+
return 1;
|
|
16369
|
+
}
|
|
16370
|
+
}, $scope3_id, "i", 1, 1, 1, 0, 1);
|
|
16371
|
+
_if(() => {
|
|
16372
|
+
if (s.shadows === "global") {
|
|
16373
|
+
const $scope32_id = _scope_id();
|
|
16374
|
+
_html(`<span${_attr_class("_N")} title="Used instead of the system skill of the same name">overrides system</span>`);
|
|
16375
|
+
writeScope($scope32_id, {});
|
|
16376
|
+
return 0;
|
|
16377
|
+
}
|
|
16378
|
+
}, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
16379
|
+
_if(() => {
|
|
16380
|
+
if (skills && s.agents.length < skills.agents.length) {
|
|
16381
|
+
const $scope31_id = _scope_id();
|
|
16382
|
+
_html(`<span${_attr_class("_N")}${_attr("title", `Only for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope31_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope31_id, "a")}`);
|
|
16383
|
+
writeScope($scope31_id, {});
|
|
16384
|
+
return 0;
|
|
16385
|
+
}
|
|
16386
|
+
}, $scope3_id, "k", 1, 1, 1, 0, 1);
|
|
16387
|
+
_if(() => {
|
|
16388
|
+
if (busy.has(s.id)) {
|
|
16389
|
+
const $scope33_id = _scope_id();
|
|
16390
|
+
_html(`<span${_attr_class("_G")}></span>`);
|
|
16391
|
+
writeScope($scope33_id, {});
|
|
16392
|
+
return 0;
|
|
16393
|
+
} else {
|
|
16333
16394
|
const $scope12_id = _scope_id();
|
|
16334
|
-
_if(() => {
|
|
16335
|
-
if (s.broken) {
|
|
16336
|
-
const $scope29_id = _scope_id();
|
|
16337
|
-
_html(`<span${_attr_class([
|
|
16338
|
-
"_N",
|
|
16339
|
-
"_P",
|
|
16340
|
-
tone.danger
|
|
16341
|
-
])}${_attr("title", `Points into ${s.worktree || "a repo"} that is no longer here`)}>broken link</span>${_el_resume($scope29_id, "a")}`);
|
|
16342
|
-
_subscribe($for_content2__s_worktree__closures, writeScope($scope29_id, { Cs: 1 }));
|
|
16343
|
-
return 0;
|
|
16344
|
-
} else if (s.worktree) {
|
|
16345
|
-
const $scope30_id = _scope_id();
|
|
16346
|
-
_html(`<span${_attr_class(["_N", "_y"])}>from ${_text_resume($scope30_id, "b", s.worktree, 2)}/</span>`);
|
|
16347
|
-
_subscribe($for_content2__s_worktree__closures, writeScope($scope30_id, { Cs: 2 }));
|
|
16348
|
-
return 1;
|
|
16349
|
-
}
|
|
16350
|
-
}, $scope12_id, "a", 1, 1, 1, 0, 1);
|
|
16351
|
-
_if(() => {
|
|
16352
|
-
if (s.shadows === "global") {
|
|
16353
|
-
const $scope32_id = _scope_id();
|
|
16354
|
-
_html(`<span${_attr_class("_N")} title="Used instead of the system skill of the same name">overrides system</span>`);
|
|
16355
|
-
writeScope($scope32_id, {});
|
|
16356
|
-
return 0;
|
|
16357
|
-
}
|
|
16358
|
-
}, $scope12_id, "b", 1, 1, 1, 0, 1);
|
|
16359
|
-
_if(() => {
|
|
16360
|
-
if (skills && s.agents.length < skills.agents.length) {
|
|
16361
|
-
const $scope31_id = _scope_id();
|
|
16362
|
-
_html(`<span${_attr_class("_N")}${_attr("title", `Only for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope31_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope31_id, "a")}`);
|
|
16363
|
-
_subscribe($for_content2__s_agents__closures, writeScope($scope31_id, {}));
|
|
16364
|
-
return 0;
|
|
16365
|
-
}
|
|
16366
|
-
}, $scope12_id, "c", 1, 1, 1, 0, 1);
|
|
16367
|
-
_subscribe($for_content2__s_agents_length__closures, _subscribe($for_content2__s_shadows__closures, _subscribe($for_content2__s_worktree__closures, _subscribe($for_content2__s_broken__closures, _subscribe($skills__closures, writeScope($scope12_id, { _: _scope_with_id($scope3_id) }))))));
|
|
16368
|
-
_resume_branch($scope12_id);
|
|
16369
|
-
}, $scope3_id) }),
|
|
16370
|
-
trailing: attrTag({ content: _content_resume("q25", () => {
|
|
16371
|
-
_scope_reason();
|
|
16372
|
-
const $scope13_id = _scope_id();
|
|
16373
16395
|
_html(`<button${_attr_class([
|
|
16374
|
-
|
|
16396
|
+
"_bA",
|
|
16375
16397
|
"_8",
|
|
16376
16398
|
"_9",
|
|
16399
|
+
"_ey",
|
|
16377
16400
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16378
|
-
])}${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}`)}>`);
|
|
16401
|
+
])} type=button${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}`)}>`);
|
|
16379
16402
|
_if(() => {
|
|
16380
16403
|
if (confirmingSkill === s.id) {
|
|
16381
|
-
const $
|
|
16404
|
+
const $scope34_id = _scope_id();
|
|
16382
16405
|
_html("Remove?");
|
|
16383
|
-
writeScope($
|
|
16406
|
+
writeScope($scope34_id, {});
|
|
16384
16407
|
return 0;
|
|
16385
16408
|
} else {
|
|
16386
|
-
const $
|
|
16387
|
-
icon_xmark_default({ size:
|
|
16388
|
-
writeScope($
|
|
16409
|
+
const $scope35_id = _scope_id();
|
|
16410
|
+
icon_xmark_default({ size: 14 });
|
|
16411
|
+
writeScope($scope35_id, {});
|
|
16389
16412
|
return 1;
|
|
16390
16413
|
}
|
|
16391
|
-
}, $
|
|
16392
|
-
_script($
|
|
16393
|
-
_subscribe($
|
|
16394
|
-
|
|
16395
|
-
}
|
|
16396
|
-
});
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16414
|
-
|
|
16414
|
+
}, $scope12_id, "a", 1, 1, 1, "</button>");
|
|
16415
|
+
_script($scope12_id, "q24");
|
|
16416
|
+
_subscribe($confirmingSkill__closures, writeScope($scope12_id, {}));
|
|
16417
|
+
return 1;
|
|
16418
|
+
}
|
|
16419
|
+
}, $scope3_id, "l", 1, 1, 1, 0, 1);
|
|
16420
|
+
_html("</span></li>");
|
|
16421
|
+
_subscribe($skills__closures, _subscribe($busy__closures, writeScope($scope3_id, {
|
|
16422
|
+
o: s?.name,
|
|
16423
|
+
p: s?.worktree,
|
|
16424
|
+
t: s?.sourceUrl,
|
|
16425
|
+
v: s?.source,
|
|
16426
|
+
x: s?.agents,
|
|
16427
|
+
a0: s?.id,
|
|
16428
|
+
a2: s?.linked
|
|
16429
|
+
})));
|
|
16430
|
+
}, "id", $scope2_id, "f", 1, 1, 1, 0, 1);
|
|
16431
|
+
_for_of(repoSkills, (s) => {
|
|
16432
|
+
const $scope4_id = _scope_id();
|
|
16433
|
+
_html(`<li${_attr_class([skillRow, "_es"])}><span${_attr_class("_eu")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope4_id, "d", s.name)}</span><span${_attr_class([
|
|
16434
|
+
"_N",
|
|
16435
|
+
"_y",
|
|
16436
|
+
"_ev"
|
|
16437
|
+
])}${_attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope4_id, "f", s.worktree)}/</span>${_el_resume($scope4_id, "e")}</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope4_id, "h", s.description || "")}</span>${_el_resume($scope4_id, "g")}<span${_attr_class(skillEnd)}>`);
|
|
16438
|
+
_if(() => {
|
|
16439
|
+
if (s.shadows) {
|
|
16440
|
+
const $scope36_id = _scope_id();
|
|
16441
|
+
_html(`<span${_attr_class("_N")}${_attr("title", `A ${s.shadows} skill of the same name already exists`)}>name taken</span>${_el_resume($scope36_id, "a")}`);
|
|
16442
|
+
writeScope($scope36_id, {});
|
|
16443
|
+
return 0;
|
|
16444
|
+
}
|
|
16445
|
+
}, $scope4_id, "j", 1, 1, 1, 0, 1);
|
|
16446
|
+
_if(() => {
|
|
16447
|
+
if (busy.has(s.id)) {
|
|
16448
|
+
const $scope37_id = _scope_id();
|
|
16449
|
+
_html(`<span${_attr_class("_G")}></span>`);
|
|
16450
|
+
writeScope($scope37_id, {});
|
|
16451
|
+
return 0;
|
|
16452
|
+
} else if (!s.shadows) {
|
|
16453
|
+
const $scope15_id = _scope_id();
|
|
16454
|
+
_html(`<button${_attr_class(btnSm)}${_attr("title", `Link ${s.name} into this workspace so every agent here sees it`)}>Link</button>${_el_resume($scope15_id, "a")}`);
|
|
16455
|
+
_script($scope15_id, "q25");
|
|
16456
|
+
writeScope($scope15_id, {});
|
|
16457
|
+
return 1;
|
|
16458
|
+
}
|
|
16459
|
+
}, $scope4_id, "k", 1, 1, 1, 0, 1);
|
|
16460
|
+
_html("</span></li>");
|
|
16461
|
+
_subscribe($busy__closures, writeScope($scope4_id, {
|
|
16462
|
+
n: s?.name,
|
|
16463
|
+
o: s?.worktree,
|
|
16464
|
+
q: s?.shadows,
|
|
16465
|
+
r: s?.id,
|
|
16466
|
+
Cbw: 1
|
|
16415
16467
|
}));
|
|
16416
|
-
},
|
|
16417
|
-
|
|
16418
|
-
if (repoSkills.length) {
|
|
16419
|
-
const $scope4_id = _scope_id();
|
|
16420
|
-
_html(`<ul${_attr_class("_cq")}>`);
|
|
16421
|
-
_for_of(repoSkills, (s) => {
|
|
16422
|
-
const $scope5_id = _scope_id();
|
|
16423
|
-
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
16424
|
-
const $for_content3__s_name__closures = /* @__PURE__ */ new Set();
|
|
16425
|
-
_set_serialize_reason(5504382);
|
|
16426
|
-
let $tags;
|
|
16427
|
-
let $trailing;
|
|
16428
|
-
if (s.shadows) $tags = attrTag({ content: _content_resume("q27", () => {
|
|
16429
|
-
_scope_reason();
|
|
16430
|
-
const $scope35_id = _scope_id();
|
|
16431
|
-
_html(`<span${_attr_class("_N")}${_attr("title", `A ${s.shadows} skill of the same name already exists`)}>name taken</span>${_el_resume($scope35_id, "a")}`);
|
|
16432
|
-
_subscribe($for_content3__s_shadows__closures, writeScope($scope35_id, { _: _scope_with_id($scope5_id) }));
|
|
16433
|
-
_resume_branch($scope35_id);
|
|
16434
|
-
}, $scope5_id) });
|
|
16435
|
-
if (!s.shadows) $trailing = attrTag({ content: _content_resume("q28", () => {
|
|
16436
|
-
_scope_reason();
|
|
16437
|
-
const $scope16_id = _scope_id();
|
|
16438
|
-
_html(`<button${_attr_class(btnSm)}${_attr("title", `Link ${s.name} into this workspace`)}>Use here</button>${_el_resume($scope16_id, "a")}`);
|
|
16439
|
-
_script($scope16_id, "q26");
|
|
16440
|
-
_subscribe($for_content3__s_name__closures, writeScope($scope16_id, { _: _scope_with_id($scope5_id) }));
|
|
16441
|
-
_resume_branch($scope16_id);
|
|
16442
|
-
}, $scope5_id) });
|
|
16443
|
-
const $childScope5 = _peek_scope_id();
|
|
16444
|
-
skill_chip_default({
|
|
16445
|
-
name: s.name,
|
|
16446
|
-
hint: `${s.worktree}/`,
|
|
16447
|
-
description: s.description,
|
|
16448
|
-
busy: busy.has(s.id) ? "" : null,
|
|
16449
|
-
tags: $tags,
|
|
16450
|
-
trailing: $trailing
|
|
16451
|
-
});
|
|
16452
|
-
_subscribe($busy__closures, writeScope($scope5_id, {
|
|
16453
|
-
d: s?.name,
|
|
16454
|
-
e: s?.worktree,
|
|
16455
|
-
g: s?.id,
|
|
16456
|
-
i: s?.shadows,
|
|
16457
|
-
k: $for_content3__s_shadows__closures,
|
|
16458
|
-
j: $for_content3__s_name__closures,
|
|
16459
|
-
a: _existing_scope($childScope5),
|
|
16460
|
-
Cc6: 1
|
|
16461
|
-
}));
|
|
16462
|
-
}, (s) => `${s.worktree}/${s.id}`, $scope4_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16463
|
-
_subscribe($repoSkills__closures, writeScope($scope4_id, {}));
|
|
16464
|
-
return 0;
|
|
16465
|
-
}
|
|
16466
|
-
}, $scope2_id, "f", 1, 1, 1, 0, 1);
|
|
16467
|
-
_html("</section>");
|
|
16468
|
+
}, (s) => `${s.worktree}/${s.id}`, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
16469
|
+
_html("</ul></section>");
|
|
16468
16470
|
writeScope($scope2_id, {});
|
|
16469
16471
|
return 0;
|
|
16470
16472
|
}
|
|
16471
|
-
}, $scope0_id, "
|
|
16473
|
+
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
16472
16474
|
const running = procs || [];
|
|
16473
16475
|
_if(() => {
|
|
16474
16476
|
if (running.length) {
|
|
16475
|
-
const $
|
|
16476
|
-
_html(`<section${_attr_class("
|
|
16477
|
-
"
|
|
16478
|
-
"
|
|
16479
|
-
"
|
|
16477
|
+
const $scope16_id = _scope_id();
|
|
16478
|
+
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope16_id, "e", running.length)}</span></div><ul${_attr_class([
|
|
16479
|
+
"_bv",
|
|
16480
|
+
"_cc",
|
|
16481
|
+
"_cq"
|
|
16480
16482
|
])}>`);
|
|
16481
16483
|
_for_of(running, (p) => {
|
|
16482
|
-
const $
|
|
16483
|
-
_html(`<li${_attr_class(
|
|
16484
|
-
|
|
16485
|
-
|
|
16486
|
-
"
|
|
16487
|
-
|
|
16488
|
-
|
|
16489
|
-
|
|
16490
|
-
|
|
16491
|
-
|
|
16492
|
-
|
|
16493
|
-
|
|
16494
|
-
|
|
16495
|
-
_script($scope37_id, "q29");
|
|
16496
|
-
writeScope($scope37_id, { d: port });
|
|
16497
|
-
}, (x) => String(x), $scope36_id, "a", 1, 1, 1, "</span>", 1);
|
|
16498
|
-
writeScope($scope36_id, {});
|
|
16499
|
-
return 0;
|
|
16500
|
-
}
|
|
16501
|
-
}, $scope18_id, "e", 1, 1, 1, 0, 1);
|
|
16502
|
-
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["_bI", "_8"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16484
|
+
const $scope17_id = _scope_id();
|
|
16485
|
+
_html(`<li${_attr_class("_em")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_en"])}>${_text_resume($scope17_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_eo"])}>${_text_resume($scope17_id, "e", p.args)}</span><span${_attr_class("_ep")}>`);
|
|
16486
|
+
_for_of(p.ports, (port) => {
|
|
16487
|
+
const $scope38_id = _scope_id();
|
|
16488
|
+
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope38_id, "b", port, 2)}</button>${_el_resume($scope38_id, "a")}`);
|
|
16489
|
+
_script($scope38_id, "q26");
|
|
16490
|
+
writeScope($scope38_id, { d: port });
|
|
16491
|
+
}, (x) => String(x), $scope17_id, "g", 1, 1, 1, 0, 1);
|
|
16492
|
+
_html(`<span${_attr_class(["_y", "_eq"])}>${_text_resume($scope17_id, "i", p.pid)}</span><button${_attr_class([
|
|
16493
|
+
"_bA",
|
|
16494
|
+
"_8",
|
|
16495
|
+
"_ez"
|
|
16496
|
+
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16503
16497
|
icon_xmark_default({ size: 14 });
|
|
16504
|
-
_html(`</button>${_el_resume($
|
|
16505
|
-
_script($
|
|
16506
|
-
writeScope($
|
|
16507
|
-
|
|
16508
|
-
n: p?.pid
|
|
16509
|
-
});
|
|
16510
|
-
}, "pid", $scope17_id, "f", 1, 1, 1, "</ul>", 1);
|
|
16498
|
+
_html(`</button>${_el_resume($scope17_id, "j")}</span></li>${_el_resume($scope17_id, "a")}`);
|
|
16499
|
+
_script($scope17_id, "q27");
|
|
16500
|
+
writeScope($scope17_id, { r: p?.pid });
|
|
16501
|
+
}, "pid", $scope16_id, "f", 1, 1, 1, "</ul>", 1);
|
|
16511
16502
|
_html("</section>");
|
|
16512
|
-
writeScope($
|
|
16503
|
+
writeScope($scope16_id, {});
|
|
16513
16504
|
return 0;
|
|
16514
16505
|
}
|
|
16515
|
-
}, $scope0_id, "
|
|
16506
|
+
}, $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
16516
16507
|
_html("</div></div></div>");
|
|
16517
|
-
_script($scope0_id, "
|
|
16518
|
-
_script($scope0_id, "
|
|
16508
|
+
_script($scope0_id, "q28");
|
|
16509
|
+
_script($scope0_id, "q29");
|
|
16519
16510
|
writeScope($scope0_id, {
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
|
|
16536
|
-
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16542
|
-
|
|
16543
|
-
|
|
16544
|
-
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
16562
|
-
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16511
|
+
a0: _serialize_if($scope0_reason, 1) && input.workspace,
|
|
16512
|
+
a2: _serialize_if($scope0_reason, 0) && input.workspaceChange,
|
|
16513
|
+
a4: input.onDeleted,
|
|
16514
|
+
a5: input.onExit,
|
|
16515
|
+
a8: busy,
|
|
16516
|
+
a9: busy?.size,
|
|
16517
|
+
aa: error,
|
|
16518
|
+
ab: pendingAction,
|
|
16519
|
+
ac: confirmingDelete,
|
|
16520
|
+
ae: confirmingRemove,
|
|
16521
|
+
af: actionStep,
|
|
16522
|
+
ah: skills,
|
|
16523
|
+
ak: confirmingSkill,
|
|
16524
|
+
al: copied,
|
|
16525
|
+
an: copyTimer.id,
|
|
16526
|
+
ao: workspace,
|
|
16527
|
+
ar: workspace?.origin_branch,
|
|
16528
|
+
as: workspace?.branch,
|
|
16529
|
+
au: workspace?.id,
|
|
16530
|
+
ay: workspace?.repos?.length,
|
|
16531
|
+
az: invite,
|
|
16532
|
+
b0: copyInvite,
|
|
16533
|
+
b2: skillSeq.applied,
|
|
16534
|
+
b3: skillSeq.issued,
|
|
16535
|
+
b4: applySkills,
|
|
16536
|
+
b5: loadSkills,
|
|
16537
|
+
b6: loadProcs,
|
|
16538
|
+
b7: inWorkspace,
|
|
16539
|
+
b8: setBusy,
|
|
16540
|
+
b9: runSkill,
|
|
16541
|
+
ba: addRepo,
|
|
16542
|
+
bb: removeRepo,
|
|
16543
|
+
bc: runAction,
|
|
16544
|
+
bd: killProc,
|
|
16545
|
+
bf: refreshCatalog,
|
|
16546
|
+
bg: wsSkills,
|
|
16547
|
+
bh: wsSkills.length,
|
|
16548
|
+
bi: repoSkills,
|
|
16549
|
+
bk: running,
|
|
16550
|
+
bl: running.length,
|
|
16551
|
+
ap: input.workspaceChange || void 0,
|
|
16552
|
+
c5: $ws_name__closures,
|
|
16553
|
+
c8: $ws_display_path__closures,
|
|
16554
|
+
c9: $ws_path__closures,
|
|
16555
|
+
ca: $ws_status__closures,
|
|
16556
|
+
c4: $copied__closures,
|
|
16557
|
+
c6: $ws_origin_branch__closures,
|
|
16558
|
+
c7: $ws_branch__closures,
|
|
16559
|
+
by: $pendingAction__closures,
|
|
16560
|
+
bz: $confirmingDelete__closures,
|
|
16561
|
+
cb: $ws_repos_length__closures,
|
|
16569
16562
|
d: _existing_scope($childScope),
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
|
|
16578
|
-
cm: $repoSkills__closures
|
|
16563
|
+
bx: $error__closures,
|
|
16564
|
+
o: _existing_scope($childScope2),
|
|
16565
|
+
r: _existing_scope($childScope3),
|
|
16566
|
+
c0: $confirmingRemove__closures,
|
|
16567
|
+
cd: $wsSkills_length__closures,
|
|
16568
|
+
c3: $confirmingSkill__closures,
|
|
16569
|
+
bw: $busy__closures,
|
|
16570
|
+
c2: $skills__closures
|
|
16579
16571
|
});
|
|
16580
16572
|
_resume_branch($scope0_id);
|
|
16581
16573
|
});
|
|
16582
16574
|
//#endregion
|
|
16583
16575
|
//#region src/tags/new-workspace.css.ts
|
|
16584
|
-
var content = "
|
|
16585
|
-
var curBase = "
|
|
16586
|
-
var archived = "
|
|
16587
|
-
var archivedHint = "
|
|
16588
|
-
var archivedCard = "
|
|
16576
|
+
var content = "_eB _b6";
|
|
16577
|
+
var curBase = "_eJ _Y _X";
|
|
16578
|
+
var archived = "_eO _bq";
|
|
16579
|
+
var archivedHint = "_eP _X";
|
|
16580
|
+
var archivedCard = "_eQ _bv";
|
|
16589
16581
|
//#endregion
|
|
16590
16582
|
//#region src/tags/icons/icon-group.marko
|
|
16591
16583
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -16605,8 +16597,8 @@ var icon_group_default = _template("eb", (input) => {
|
|
|
16605
16597
|
});
|
|
16606
16598
|
//#endregion
|
|
16607
16599
|
//#region src/tags/join-dialog.css.ts
|
|
16608
|
-
var dlg = "
|
|
16609
|
-
var hint = "
|
|
16600
|
+
var dlg = "_gX _gT";
|
|
16601
|
+
var hint = "_gY _X";
|
|
16610
16602
|
//#endregion
|
|
16611
16603
|
//#region src/tags/join-dialog.marko
|
|
16612
16604
|
var api$3;
|
|
@@ -16735,26 +16727,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16735
16727
|
content: _content("o12", () => {
|
|
16736
16728
|
_scope_reason();
|
|
16737
16729
|
const $scope1_id = _scope_id();
|
|
16738
|
-
_html(`<h2${_attr_class("
|
|
16730
|
+
_html(`<h2${_attr_class("_gU")}${_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([
|
|
16739
16731
|
"_Z",
|
|
16740
16732
|
"_y",
|
|
16741
|
-
"
|
|
16733
|
+
"_g0"
|
|
16742
16734
|
])} 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")}`);
|
|
16743
16735
|
_if(() => {
|
|
16744
16736
|
if (parsed.error) {
|
|
16745
16737
|
const $scope8_id = _scope_id();
|
|
16746
|
-
_html(`<p${_attr_class([hint, "
|
|
16738
|
+
_html(`<p${_attr_class([hint, "_gZ"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16747
16739
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16748
16740
|
return 0;
|
|
16749
16741
|
} else if (parsed.ok) {
|
|
16750
16742
|
const $scope3_id = _scope_id();
|
|
16751
|
-
_html(`<ul${_attr_class("
|
|
16743
|
+
_html(`<ul${_attr_class("_g1")}>`);
|
|
16752
16744
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16753
16745
|
const $scope9_id = _scope_id();
|
|
16754
|
-
_html(`<li${_attr_class("
|
|
16746
|
+
_html(`<li${_attr_class("_g2")}><span${_attr_class("_g3")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16755
16747
|
writeScope($scope9_id, {});
|
|
16756
16748
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16757
|
-
_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("
|
|
16749
|
+
_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("_g4")}><span${_attr_class("_bE")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16758
16750
|
name = _new_name;
|
|
16759
16751
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16760
16752
|
_script($scope3_id, "o8");
|
|
@@ -16791,10 +16783,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16791
16783
|
_if(() => {
|
|
16792
16784
|
if (busy && steps$2.length) {
|
|
16793
16785
|
const $scope6_id = _scope_id();
|
|
16794
|
-
_html(`<ul${_attr_class("
|
|
16786
|
+
_html(`<ul${_attr_class("_g5")}>`);
|
|
16795
16787
|
_for_of(steps$2, (step$2, i) => {
|
|
16796
16788
|
const $scope7_id = _scope_id();
|
|
16797
|
-
_html(`<li${_attr_class(["
|
|
16789
|
+
_html(`<li${_attr_class(["_g7", { ["_g6"]: i === steps$2.length - 1 }])}>`);
|
|
16798
16790
|
_if(() => {
|
|
16799
16791
|
if (i === steps$2.length - 1) {
|
|
16800
16792
|
const $scope10_id = _scope_id();
|
|
@@ -16803,7 +16795,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16803
16795
|
return 0;
|
|
16804
16796
|
} else {
|
|
16805
16797
|
const $scope11_id = _scope_id();
|
|
16806
|
-
_html(`<span${_attr_class("
|
|
16798
|
+
_html(`<span${_attr_class("_g8")}>`);
|
|
16807
16799
|
icon_check_default({ size: 14 });
|
|
16808
16800
|
_html("</span>");
|
|
16809
16801
|
writeScope($scope11_id, {});
|
|
@@ -16960,7 +16952,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16960
16952
|
}
|
|
16961
16953
|
}, "s6", $scope0_id);
|
|
16962
16954
|
const titleId = _id();
|
|
16963
|
-
_html(`<div${_attr_class("
|
|
16955
|
+
_html(`<div${_attr_class("_b4")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_b5")}><div${_attr_class(content)}>`);
|
|
16964
16956
|
_set_serialize_reason({
|
|
16965
16957
|
0: _serialize_guard($scope0_reason, 2),
|
|
16966
16958
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17009,23 +17001,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17009
17001
|
return 0;
|
|
17010
17002
|
}
|
|
17011
17003
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17012
|
-
_html(`<label${_attr_class("
|
|
17004
|
+
_html(`<label${_attr_class("_eE")}><span${_attr_class("_bE")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17013
17005
|
name = _new_name;
|
|
17014
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
17006
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bq")}><div${_attr_class("_eF")}><h2${_attr_class("_bE")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17015
17007
|
_set_serialize_reason(1);
|
|
17016
17008
|
const $childScope2 = _peek_scope_id();
|
|
17017
17009
|
icon_refresh_default({
|
|
17018
17010
|
size: 14,
|
|
17019
17011
|
class: catalogRefreshing && "_F"
|
|
17020
17012
|
});
|
|
17021
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
17013
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_eG")}>`);
|
|
17022
17014
|
_for_of(selected, (repo) => {
|
|
17023
17015
|
const $scope4_id = _scope_id();
|
|
17024
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
17016
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_eH")}>${_text_resume($scope4_id, "c", repoLabel(repo.fullName))}</span>`);
|
|
17025
17017
|
_if(() => {
|
|
17026
17018
|
if (repo.fork !== void 0) {
|
|
17027
17019
|
const $scope5_id = _scope_id();
|
|
17028
|
-
_html(`<button${_attr_class(["
|
|
17020
|
+
_html(`<button${_attr_class(["_eK", { ["_eI"]: 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)}>`);
|
|
17029
17021
|
_if(() => {
|
|
17030
17022
|
if (repo.fork) {
|
|
17031
17023
|
const $scope14_id = _scope_id();
|
|
@@ -17048,7 +17040,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17048
17040
|
_html(`<button${_attr_class([
|
|
17049
17041
|
curBase,
|
|
17050
17042
|
"_y",
|
|
17051
|
-
{ ["
|
|
17043
|
+
{ ["_eI"]: branchesFor === repo.fullName }
|
|
17052
17044
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17053
17045
|
icon_branch_default({ size: 12 });
|
|
17054
17046
|
_html(`${_text_resume($scope4_id, "g", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "e")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -17084,7 +17076,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17084
17076
|
_if(() => {
|
|
17085
17077
|
if (!selected.length) {
|
|
17086
17078
|
const $scope16_id = _scope_id();
|
|
17087
|
-
_html(`<li${_attr_class("
|
|
17079
|
+
_html(`<li${_attr_class("_bB")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
17088
17080
|
writeScope($scope16_id, {});
|
|
17089
17081
|
return 0;
|
|
17090
17082
|
}
|
|
@@ -17109,10 +17101,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17109
17101
|
_if(() => {
|
|
17110
17102
|
if (busy && steps.length) {
|
|
17111
17103
|
const $scope11_id = _scope_id();
|
|
17112
|
-
_html(`<ul${_attr_class("
|
|
17104
|
+
_html(`<ul${_attr_class("_eL")}>`);
|
|
17113
17105
|
_for_of(steps, (step, i) => {
|
|
17114
17106
|
const $scope12_id = _scope_id();
|
|
17115
|
-
_html(`<li${_attr_class(["
|
|
17107
|
+
_html(`<li${_attr_class(["_eR", { ["_eM"]: i === steps.length - 1 }])}>`);
|
|
17116
17108
|
_if(() => {
|
|
17117
17109
|
if (i === steps.length - 1) {
|
|
17118
17110
|
const $scope17_id = _scope_id();
|
|
@@ -17121,7 +17113,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17121
17113
|
return 0;
|
|
17122
17114
|
} else {
|
|
17123
17115
|
const $scope18_id = _scope_id();
|
|
17124
|
-
_html(`<span${_attr_class("
|
|
17116
|
+
_html(`<span${_attr_class("_eN")}>`);
|
|
17125
17117
|
icon_check_default({ size: 14 });
|
|
17126
17118
|
_html("</span>");
|
|
17127
17119
|
writeScope($scope18_id, {});
|
|
@@ -17135,7 +17127,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17135
17127
|
return 0;
|
|
17136
17128
|
}
|
|
17137
17129
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
17138
|
-
_html(`<div${_attr_class("
|
|
17130
|
+
_html(`<div${_attr_class("_eC")}>`);
|
|
17139
17131
|
_if(() => {
|
|
17140
17132
|
if (input.onExit || busy) {
|
|
17141
17133
|
const $scope1_id = _scope_id();
|
|
@@ -17148,15 +17140,15 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17148
17140
|
_html(`<button type=button${_attr_class([
|
|
17149
17141
|
btnLg,
|
|
17150
17142
|
"_r",
|
|
17151
|
-
"
|
|
17143
|
+
"_eD"
|
|
17152
17144
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
17153
17145
|
_if(() => {
|
|
17154
17146
|
if (archived$1.length) {
|
|
17155
17147
|
const $scope6_id = _scope_id();
|
|
17156
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17148
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_eF")}><h2${_attr_class("_bE")}>Archived</h2><span${_attr_class(sectionCount)}>${_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("_bt")}>`);
|
|
17157
17149
|
_for_of(archived$1, (ws) => {
|
|
17158
17150
|
const $scope7_id = _scope_id();
|
|
17159
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
17151
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bw")}><span${_attr_class("_bx")}>${_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(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
17160
17152
|
_if(() => {
|
|
17161
17153
|
if (restoring === ws.id) {
|
|
17162
17154
|
const $scope19_id = _scope_id();
|
|
@@ -17236,12 +17228,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17236
17228
|
});
|
|
17237
17229
|
_resume_branch($scope0_id);
|
|
17238
17230
|
});
|
|
17239
|
-
var kbtn = "
|
|
17240
|
-
var sessOpen = "
|
|
17241
|
-
var sessRename = "
|
|
17242
|
-
var dpadPaste = "
|
|
17243
|
-
var repeat = "
|
|
17244
|
-
var dpadEsc = "
|
|
17231
|
+
var kbtn = "_eg _6 _l";
|
|
17232
|
+
var sessOpen = "_e6 _I";
|
|
17233
|
+
var sessRename = "_e_ _J";
|
|
17234
|
+
var dpadPaste = "_fh _fg";
|
|
17235
|
+
var repeat = "_fi _fg";
|
|
17236
|
+
var dpadEsc = "_fk _fg";
|
|
17245
17237
|
//#endregion
|
|
17246
17238
|
//#region src/tags/term-find.marko
|
|
17247
17239
|
var term_find_default = _template("D", (input) => {
|
|
@@ -17278,19 +17270,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
17278
17270
|
const canStep = hasQuery && open;
|
|
17279
17271
|
const keybar = input.placement === "keybar";
|
|
17280
17272
|
_html(`<div${_attr_class([
|
|
17281
|
-
"
|
|
17282
|
-
keybar ? "
|
|
17283
|
-
!open && "
|
|
17284
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17273
|
+
"_hy",
|
|
17274
|
+
keybar ? "_hA" : "_hz",
|
|
17275
|
+
!open && "_hC"
|
|
17276
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_ht", keybar ? "_hB" : "_hv"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17285
17277
|
if (!open) return;
|
|
17286
17278
|
query = v;
|
|
17287
17279
|
live.query = v;
|
|
17288
17280
|
run(0);
|
|
17289
|
-
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17281
|
+
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "_hD"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_hE"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17290
17282
|
icon_arrow_up_default({ size: 14 });
|
|
17291
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17283
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_hE"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17292
17284
|
icon_arrow_down_default({ size: 14 });
|
|
17293
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17285
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_hE"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17294
17286
|
icon_xmark_default({ size: 14 });
|
|
17295
17287
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
17296
17288
|
const $return = focusInput;
|
|
@@ -17711,7 +17703,7 @@ var term_default = _template("E", (input) => {
|
|
|
17711
17703
|
trapOpen = true;
|
|
17712
17704
|
}
|
|
17713
17705
|
}, "E13", $scope0_id);
|
|
17714
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17706
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eS")}><div${_attr_class("_eT")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17715
17707
|
_if(() => {
|
|
17716
17708
|
if (findOpen) {
|
|
17717
17709
|
const $scope12_id = _scope_id();
|
|
@@ -17741,7 +17733,7 @@ var term_default = _template("E", (input) => {
|
|
|
17741
17733
|
_if(() => {
|
|
17742
17734
|
if (uploading) {
|
|
17743
17735
|
const $scope21_id = _scope_id();
|
|
17744
|
-
_html(`<div${_attr_class("
|
|
17736
|
+
_html(`<div${_attr_class("_eZ")}>uploading…</div>`);
|
|
17745
17737
|
writeScope($scope21_id, {});
|
|
17746
17738
|
return 0;
|
|
17747
17739
|
}
|
|
@@ -17749,7 +17741,7 @@ var term_default = _template("E", (input) => {
|
|
|
17749
17741
|
_if(() => {
|
|
17750
17742
|
if (copiedFlash) {
|
|
17751
17743
|
const $scope22_id = _scope_id();
|
|
17752
|
-
_html(`<div${_attr_class("
|
|
17744
|
+
_html(`<div${_attr_class("_eY")}>Copied</div>`);
|
|
17753
17745
|
writeScope($scope22_id, {});
|
|
17754
17746
|
return 0;
|
|
17755
17747
|
}
|
|
@@ -17758,7 +17750,7 @@ var term_default = _template("E", (input) => {
|
|
|
17758
17750
|
_if(() => {
|
|
17759
17751
|
if (trapOpen) {
|
|
17760
17752
|
const $scope11_id = _scope_id();
|
|
17761
|
-
_html(`<div${_attr_class("
|
|
17753
|
+
_html(`<div${_attr_class("_e0")}><div${_attr_class("_e1")}><p${_attr_class("_fl")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
17762
17754
|
_script($scope11_id, "E28");
|
|
17763
17755
|
_script($scope11_id, "E29");
|
|
17764
17756
|
writeScope($scope11_id, {});
|
|
@@ -17836,7 +17828,7 @@ var term_default = _template("E", (input) => {
|
|
|
17836
17828
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
17837
17829
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
17838
17830
|
}, "E19", $scope4_id);
|
|
17839
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17831
|
+
_html(`<button${_attr_class([kbtn, "_e2"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
17840
17832
|
_set_serialize_reason({
|
|
17841
17833
|
1: $sg__input_agent__OR__input_sessionState,
|
|
17842
17834
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -17850,7 +17842,7 @@ var term_default = _template("E", (input) => {
|
|
|
17850
17842
|
"_A",
|
|
17851
17843
|
"_bc",
|
|
17852
17844
|
phase[sessionPhase(input.sessionState)]
|
|
17853
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 6))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["__", "
|
|
17845
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 6))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["__", "_e3"])}>`);
|
|
17854
17846
|
_if(() => {
|
|
17855
17847
|
if ((input.sessions || []).length > 0) {
|
|
17856
17848
|
const $scope5_id = _scope_id();
|
|
@@ -17866,7 +17858,7 @@ var term_default = _template("E", (input) => {
|
|
|
17866
17858
|
const $scope6_id = _scope_id();
|
|
17867
17859
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17868
17860
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
17869
|
-
_html(`<div${_attr_class(["
|
|
17861
|
+
_html(`<div${_attr_class(["_e5", { ["_e4"]: s.id === input.sessionId }])}>`);
|
|
17870
17862
|
_if(() => {
|
|
17871
17863
|
if (renamingId === s.id) {
|
|
17872
17864
|
const $scope24_id = _scope_id();
|
|
@@ -17898,7 +17890,7 @@ var term_default = _template("E", (input) => {
|
|
|
17898
17890
|
agent: activeAgent(s),
|
|
17899
17891
|
size: 14
|
|
17900
17892
|
});
|
|
17901
|
-
_html(`<span${_attr_class("
|
|
17893
|
+
_html(`<span${_attr_class("_e7")}><span${_attr_class("_e9")}>${_text_resume($scope7_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17902
17894
|
_if(() => {
|
|
17903
17895
|
if (s.id === input.sessionId) {
|
|
17904
17896
|
const $scope23_id = _scope_id();
|
|
@@ -17910,7 +17902,7 @@ var term_default = _template("E", (input) => {
|
|
|
17910
17902
|
const $childScope6 = _peek_scope_id();
|
|
17911
17903
|
usage_pcts_default({
|
|
17912
17904
|
agent: plan,
|
|
17913
|
-
class: "
|
|
17905
|
+
class: "_e8"
|
|
17914
17906
|
});
|
|
17915
17907
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
17916
17908
|
return 0;
|
|
@@ -17927,7 +17919,7 @@ var term_default = _template("E", (input) => {
|
|
|
17927
17919
|
_if(() => {
|
|
17928
17920
|
if (input.onRenameSession) {
|
|
17929
17921
|
const $scope25_id = _scope_id();
|
|
17930
|
-
_html(`<button${_attr_class(["
|
|
17922
|
+
_html(`<button${_attr_class(["_fa", "_fb"])} title="Rename session">`);
|
|
17931
17923
|
icon_edit_default({ size: 12 });
|
|
17932
17924
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
17933
17925
|
_script($scope25_id, "E32");
|
|
@@ -17939,11 +17931,11 @@ var term_default = _template("E", (input) => {
|
|
|
17939
17931
|
if (input.onCloseSession) {
|
|
17940
17932
|
const $scope8_id = _scope_id();
|
|
17941
17933
|
_html(`<button${_attr_class([
|
|
17942
|
-
"
|
|
17934
|
+
"_fa",
|
|
17943
17935
|
"_8",
|
|
17944
17936
|
{ ["_s"]: armedClose === s.id }
|
|
17945
17937
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
17946
|
-
icon_xmark_default({ size:
|
|
17938
|
+
icon_xmark_default({ size: 14 });
|
|
17947
17939
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
17948
17940
|
_script($scope8_id, "E33");
|
|
17949
17941
|
_subscribe($si__input_sessions && $for_content__s_id__closures, _subscribe($if_content3__armedClose__closures, writeScope($scope8_id, { _: _scope_with_id($scope7_id) })));
|
|
@@ -17981,7 +17973,7 @@ var term_default = _template("E", (input) => {
|
|
|
17981
17973
|
return 0;
|
|
17982
17974
|
}
|
|
17983
17975
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
17984
|
-
_html(`<div${_attr_class("
|
|
17976
|
+
_html(`<div${_attr_class("_fc")}><span${_attr_class("_fd")}>New session</span><div${_attr_class("_fe")}>`);
|
|
17985
17977
|
_for_of(["shell", ...input.agents || []], (agent) => {
|
|
17986
17978
|
const $scope9_id = _scope_id();
|
|
17987
17979
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -18026,9 +18018,9 @@ var term_default = _template("E", (input) => {
|
|
|
18026
18018
|
const dpadOpenBox = { open: false };
|
|
18027
18019
|
_html(`<button${_attr_class(kbtn)} title=${canKeys ? "\"More keys\"" : "\"Keys unavailable on this page\""} aria-haspopup=dialog${_attr("aria-controls", dpadId)}${_attr("disabled", !canKeys)}>`);
|
|
18028
18020
|
icon_dpad_default({ size: 16 });
|
|
18029
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
18021
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_ef"]: findLit }])}${findLit ? " title=\"Close find\"" : canKeys ? ` title=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " title=\"Find unavailable on this page\""}${findLit ? " aria-label=\"Close find\"" : canKeys ? ` aria-label=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " aria-label=\"Find unavailable on this page\""} aria-pressed=${findLit ? "true" : "false"}${_attr("disabled", !canKeys)}>`);
|
|
18030
18022
|
icon_search_default({ size: 16 });
|
|
18031
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
18023
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_ef"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
18032
18024
|
icon_keyboard_default({ size: 16 });
|
|
18033
18025
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
18034
18026
|
_script($scope10_id, "E38");
|
|
@@ -18044,7 +18036,7 @@ var term_default = _template("E", (input) => {
|
|
|
18044
18036
|
overlay: attrTag({ content: _content_resume("E49", () => {
|
|
18045
18037
|
_scope_reason();
|
|
18046
18038
|
const $scope15_id = _scope_id();
|
|
18047
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
18039
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_ff")}>`);
|
|
18048
18040
|
forOf(DPAD, (row) => {
|
|
18049
18041
|
const $scope16_id = _scope_id();
|
|
18050
18042
|
forOf(row, (cell) => {
|
|
@@ -18064,7 +18056,7 @@ var term_default = _template("E", (input) => {
|
|
|
18064
18056
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
18065
18057
|
} else {
|
|
18066
18058
|
const $scope19_id = _scope_id();
|
|
18067
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
18059
|
+
_html(`<button${_attr_class([repeat, { ["_fj"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
18068
18060
|
if (cell.icon === "arrow-up") {
|
|
18069
18061
|
_scope_id();
|
|
18070
18062
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -18393,10 +18385,10 @@ var work_view_default = _template("I", (input) => {
|
|
|
18393
18385
|
toggleDiff();
|
|
18394
18386
|
}
|
|
18395
18387
|
}, "I14", $scope0_id);
|
|
18396
|
-
_html(`<div${_attr_class(["
|
|
18397
|
-
["
|
|
18398
|
-
["
|
|
18399
|
-
}])}><div${_attr_class("
|
|
18388
|
+
_html(`<div${_attr_class(["_bj", {
|
|
18389
|
+
["_bh"]: view === "nav",
|
|
18390
|
+
["_bi"]: !input.active
|
|
18391
|
+
}])}><div${_attr_class("_bk")}>`);
|
|
18400
18392
|
_if(() => {
|
|
18401
18393
|
if (error) {
|
|
18402
18394
|
const $scope9_id = _scope_id();
|
|
@@ -18419,7 +18411,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18419
18411
|
_if(() => {
|
|
18420
18412
|
if (diffMounted && ws) {
|
|
18421
18413
|
const $scope1_id = _scope_id();
|
|
18422
|
-
_html(`<div${_attr_class("
|
|
18414
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
18423
18415
|
_set_serialize_reason({
|
|
18424
18416
|
0: $sg__input_workspace,
|
|
18425
18417
|
1: $sg__input_workspace,
|
|
@@ -18476,7 +18468,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18476
18468
|
_if(() => {
|
|
18477
18469
|
if (manageMounted && ws) {
|
|
18478
18470
|
const $scope2_id = _scope_id();
|
|
18479
|
-
_html(`<div${_attr_class("
|
|
18471
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
18480
18472
|
_set_serialize_reason({
|
|
18481
18473
|
0: $sg__input_workspace,
|
|
18482
18474
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -18502,7 +18494,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18502
18494
|
_if(() => {
|
|
18503
18495
|
if (settingsMounted) {
|
|
18504
18496
|
const $scope3_id = _scope_id();
|
|
18505
|
-
_html(`<div${_attr_class("
|
|
18497
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
18506
18498
|
_set_serialize_reason({
|
|
18507
18499
|
0: _serialize_guard($scope0_reason, 0),
|
|
18508
18500
|
1: $sg__input_workspace,
|
|
@@ -18544,7 +18536,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18544
18536
|
_if(() => {
|
|
18545
18537
|
if (newMounted) {
|
|
18546
18538
|
const $scope4_id = _scope_id();
|
|
18547
|
-
_html(`<div${_attr_class("
|
|
18539
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18548
18540
|
_set_serialize_reason({
|
|
18549
18541
|
0: 1,
|
|
18550
18542
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -18569,13 +18561,13 @@ var work_view_default = _template("I", (input) => {
|
|
|
18569
18561
|
return 0;
|
|
18570
18562
|
}
|
|
18571
18563
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
18572
|
-
_html(`<div${_attr_class(["
|
|
18564
|
+
_html(`<div${_attr_class(["_bn", { ["_bm"]: view !== "term" }])}>`);
|
|
18573
18565
|
_if(() => {
|
|
18574
18566
|
if (ws && shownSessions) {
|
|
18575
18567
|
const $scope5_id = _scope_id();
|
|
18576
18568
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18577
18569
|
const $scope6_id = _scope_id();
|
|
18578
|
-
_html(`<div${_attr_class("
|
|
18570
|
+
_html(`<div${_attr_class("_bo")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18579
18571
|
_set_serialize_reason({
|
|
18580
18572
|
0: 1,
|
|
18581
18573
|
1: 1,
|
|
@@ -18636,7 +18628,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18636
18628
|
_if(() => {
|
|
18637
18629
|
if (!shownSessions.length && view === "term") {
|
|
18638
18630
|
const $scope7_id = _scope_id();
|
|
18639
|
-
_html(`<div${_attr_class("
|
|
18631
|
+
_html(`<div${_attr_class("_bC")}><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>`);
|
|
18640
18632
|
_script($scope7_id, "I43");
|
|
18641
18633
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
18642
18634
|
return 0;
|
|
@@ -18646,7 +18638,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18646
18638
|
return 0;
|
|
18647
18639
|
} else if (ws) {
|
|
18648
18640
|
const $scope11_id = _scope_id();
|
|
18649
|
-
_html(`<p${_attr_class("
|
|
18641
|
+
_html(`<p${_attr_class("_bC")}>Loading sessions…</p>`);
|
|
18650
18642
|
writeScope($scope11_id, {});
|
|
18651
18643
|
return 1;
|
|
18652
18644
|
}
|
|
@@ -27501,4 +27493,4 @@ server.listen(port, () => {
|
|
|
27501
27493
|
//#endregion
|
|
27502
27494
|
export {};
|
|
27503
27495
|
|
|
27504
|
-
;var __MARKO_MANIFEST__={"
|
|
27496
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-D5qOiCpR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D5qOiCpR.css\"",">",2,"stylesheet#/assets/app-page-BOW-YrEi.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BOW-YrEi.css\"",">"],"defer":[2,"/assets/new-Cm_YcSJD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-Cm_YcSJD.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BsfRtSiV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BsfRtSiV.js\"",">",2,"modulepreload#/assets/_CUjBnNSF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUjBnNSF.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-D5qOiCpR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D5qOiCpR.css\"",">",2,"stylesheet#/assets/app-page-BOW-YrEi.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BOW-YrEi.css\"",">"],"defer":[2,"/assets/settings-Cm_YcSJD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-Cm_YcSJD.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BsfRtSiV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BsfRtSiV.js\"",">",2,"modulepreload#/assets/_CUjBnNSF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUjBnNSF.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-D5qOiCpR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D5qOiCpR.css\"",">",2,"stylesheet#/assets/app-page-BOW-YrEi.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BOW-YrEi.css\"",">"],"defer":[2,"/assets/w-Cm_YcSJD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-Cm_YcSJD.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BsfRtSiV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BsfRtSiV.js\"",">",2,"modulepreload#/assets/_CUjBnNSF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUjBnNSF.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-D5qOiCpR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D5qOiCpR.css\"",">",2,"stylesheet#/assets/app-page-BOW-YrEi.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BOW-YrEi.css\"",">"],"defer":[2,"/assets/w._-Cm_YcSJD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Cm_YcSJD.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BsfRtSiV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BsfRtSiV.js\"",">",2,"modulepreload#/assets/_CUjBnNSF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUjBnNSF.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-D5qOiCpR.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D5qOiCpR.css\"",">",2,"stylesheet#/assets/app-page-BOW-YrEi.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BOW-YrEi.css\"",">"],"defer":[2,"/assets/w._-YRmcsnu6.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-YRmcsnu6.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_BsfRtSiV.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BsfRtSiV.js\"",">",2,"modulepreload#/assets/_CUjBnNSF.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUjBnNSF.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-w6cnq_W8.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-w6cnq_W8.css\"",">",2,"stylesheet#/assets/icon-arrow-down-D5qOiCpR.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-D5qOiCpR.css\"",">"],"defer":[2,"/assets/diff-view-BemcbKA3.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-BemcbKA3.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|