@dylanpiercey/work 0.0.150 → 0.0.152
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 +832 -859
- package/dist/public/assets/_6bjslMCo.js +1 -0
- package/dist/public/assets/_7OM0gEFe.js +1 -0
- package/dist/public/assets/_B5GCUzkm.js +1 -0
- package/dist/public/assets/_BIqX7mdw.js +1 -0
- package/dist/public/assets/_BJFm6aTk.js +1 -0
- package/dist/public/assets/{_CsmfAHEZ.js → _BLdF76o0.js} +1 -1
- package/dist/public/assets/_BLdF76o0.js.br +0 -0
- package/dist/public/assets/_BQ2APVBH.js +1 -0
- package/dist/public/assets/_BahIZDTs.js +1 -0
- package/dist/public/assets/_BnK79bub.js +1 -0
- package/dist/public/assets/_BwrIxY27.js +1 -0
- package/dist/public/assets/_CEZ1v7Rd.js +1 -0
- package/dist/public/assets/_CNaGRPUI.js +1 -0
- package/dist/public/assets/_ChvyKiAv.js +1 -0
- package/dist/public/assets/_Cp9PlZG3.js +1 -0
- package/dist/public/assets/_CxfMhDVP.js +1 -0
- package/dist/public/assets/_DGeZFFYZ.js +1 -0
- package/dist/public/assets/_DQE1lrGw.js +1 -0
- package/dist/public/assets/_DhtFbze4.js +1 -0
- package/dist/public/assets/_DiibF_xX.js +83 -0
- package/dist/public/assets/_DiibF_xX.js.br +0 -0
- package/dist/public/assets/{_BPgEgKxN.js → _OdTWXLKV.js} +4 -4
- package/dist/public/assets/_OdTWXLKV.js.br +0 -0
- package/dist/public/assets/_XyFIlyKJ.js +1 -0
- package/dist/public/assets/_yd7Qi39Y.js +1 -0
- package/dist/public/assets/app-page-BtKzAvm_.css +1 -0
- package/dist/public/assets/app-page-BtKzAvm_.css.br +0 -0
- package/dist/public/assets/diff-view-BH0fBbPD.css +1 -0
- package/dist/public/assets/diff-view-BH0fBbPD.css.br +0 -0
- package/dist/public/assets/diff-view-JxteEV2A.js +2 -0
- package/dist/public/assets/{icon-arrow-down-xgf_MG89.css → icon-arrow-down-D1GHVHSZ.css} +1 -1
- package/dist/public/assets/icon-arrow-down-D1GHVHSZ.css.br +0 -0
- package/dist/public/assets/new-CCu-v7-K.js +1 -0
- package/dist/public/assets/settings-CCu-v7-K.js +1 -0
- package/dist/public/assets/w-CCu-v7-K.js +1 -0
- package/dist/public/assets/w._-CCu-v7-K.js +1 -0
- package/dist/public/assets/w._-CSLiTL2U.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: "_bI",
|
|
6937
|
+
warn: "_bJ",
|
|
6938
|
+
info: "_bK"
|
|
6938
6939
|
};
|
|
6939
6940
|
var toastTitle = {
|
|
6940
|
-
error: "
|
|
6941
|
-
warn: "
|
|
6942
|
-
info: "
|
|
6941
|
+
error: "_bL",
|
|
6942
|
+
warn: "_bM",
|
|
6943
|
+
info: "_bN"
|
|
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: "_bG",
|
|
6990
|
+
inline: "_bH"
|
|
6990
6991
|
}[placement];
|
|
6991
6992
|
_html(`<div${_attr_class([
|
|
6992
|
-
"
|
|
6993
|
+
"_bF",
|
|
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("_bO")}>`);
|
|
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("_bP")}>`);
|
|
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(["_bQ", action && "_bR"])}>`);
|
|
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, "_bS"])} 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 = "_cH _cj _ck";
|
|
7249
|
+
var agentGrid = "_cK _bt";
|
|
7250
|
+
var toolGrid = "_cU _cE";
|
|
7251
|
+
var toolRow = "_cV _cF";
|
|
7252
|
+
var themeSeg = "_di _be";
|
|
7253
|
+
var checkList = "_dO _bt";
|
|
7254
|
+
var flatCardRow = "_cG _cF";
|
|
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("_cl")}>`);
|
|
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, "_f_"])}${_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, "_f_"])}${_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("_cn")}><h1${_attr("id", input.titleId)}${_attr_class("_cm")}>${_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("_co")}>`);
|
|
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("_cp")}>`);
|
|
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 = "_fb _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(["_e6", { ["_e7"]: input.hideName }])}><div${_attr_class("_e8")}>`);
|
|
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("_fq")}>${_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("_e9")}>${_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("_e_")}${_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(["_fa", { ["_fr"]: 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 ? "_fj" : win.used_percent >= 70 ? "_fi" : win.used_percent >= 40 ? "_fh" : "_fg";
|
|
7466
|
+
const pctClass = win.used_percent >= 90 ? "_fo" : win.used_percent >= 70 ? "_fn" : win.used_percent >= 40 ? "_fm" : "_fl";
|
|
7467
|
+
_html(`<div${_attr_class("_fc")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_fd")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_fe")}><span${_attr_class(["_ff", 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(["_fk", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_fp")}>`);
|
|
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(["_fs", 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("_ft")}><span${_attr_class("_fv")}><span${_attr_class("_fw")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_fx", "_fy"])} 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, "_fz"])}${_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(["_ft", "_fA"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_fB")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_fC")}>${_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(["_ft", "_fA"])}><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(["_ft", "_fD"])}>${_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(["_ft", "_fu"])}><span${_attr_class("_fv")}><span${_attr_class("_fw")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_fx")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_fz"])}${_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 = "_fJ _fF";
|
|
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(["_fE", 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("_fH")}>`);
|
|
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("_fI")}>`);
|
|
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("_fI")}>`);
|
|
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("_fG")}${_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("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><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("_cJ")}>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("_dm")} role=status><div${_attr_class("_dn")}>`);
|
|
8586
8587
|
_if(() => {
|
|
8587
8588
|
if (selfUpdating) {
|
|
8588
8589
|
const $scope79_id = _scope_id();
|
|
8589
|
-
_html(`<span${_attr_class("
|
|
8590
|
+
_html(`<span${_attr_class("_do")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dp")}>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("_do")}>Update available</span><span${_attr_class("_dp")}>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("_cM")}><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", "_cN"])} 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", "_cL"])}><div${_attr_class(["_cO", { ["_cR"]: 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("_cI")}><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(["_cT", { ["_cR"]: 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(["_cP", { ["_cR"]: !inst.enabled }])}><div${_attr_class("_cQ")}>`);
|
|
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(["_cS", "_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", "_cL"])}>`);
|
|
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, "_c2"])} 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
|
+
"_c2",
|
|
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
|
+
"_c1"
|
|
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", "_cq"])}>`);
|
|
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(["_cr", "_c3"])}><div${_attr_class("_c4")}>`);
|
|
8834
8835
|
icon_github_default({
|
|
8835
8836
|
size: 18,
|
|
8836
|
-
class: "
|
|
8837
|
+
class: "_c5"
|
|
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", "_c6"])}><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", "_c6"])}>`);
|
|
8857
8858
|
icon_check_default({
|
|
8858
8859
|
size: 12,
|
|
8859
|
-
class: "
|
|
8860
|
+
class: "_c7"
|
|
8860
8861
|
});
|
|
8861
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8862
|
+
_html(` Signed in as <strong${_attr_class("_c9")}>${_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
|
+
"_c6",
|
|
8870
|
+
"_c8"
|
|
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", "_c6"])}>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("_c_")}><span${_attr_class("_da")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dc")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_db")}>${_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: ["_cr", "_dd"],
|
|
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", "_cq"])}><div${_attr_class(["_cr", "_cv"])}><div${_attr_class(["_cw", { ["_cx"]: skillsOpen }])}><button${_attr_class("_cy")} 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: ["_cC", { ["_cD"]: skillsOpen }]
|
|
8999
9000
|
});
|
|
9000
|
-
_html(`<span${_attr_class("
|
|
9001
|
+
_html(`<span${_attr_class("_cz")}>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("_cA")}>${_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(["_cX", "_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("_cI")}><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(["_cX", "_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("_cI")}><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("_cB")}>`);
|
|
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(["_cr", "_cv"])}><div${_attr_class(["_cw", { ["_cx"]: machineOpen }])}><button${_attr_class("_cy")} 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: ["_cC", { ["_cD"]: machineOpen }]
|
|
9273
9274
|
});
|
|
9274
|
-
_html(`<span${_attr_class("
|
|
9275
|
+
_html(`<span${_attr_class("_cz")}>Tools</span><span${_attr_class("_cA")}>${_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(["_cX", "_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("_cI")}><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("_cB")}>`);
|
|
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(["_cX", "_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("_cI")}><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, "_c0"])}${_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, { ["_cW"]: !t.installed }])}><span${_attr_class(["_cX", "_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("_cI")}><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(["_cZ", "_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("_cY")}>${_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, "_c0"])}${_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(["_cZ", "_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", "_de"])}><div${_attr_class("_dq")}><img${_attr_class("_dr")}${_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("_ds")}><span${_attr_class("_dt")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_du")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_df")}><span${_attr_class("_dg")}>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", "_dh"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_df")}><span${_attr_class("_dg")}>Theme</span><span${_attr_class("_dj")}><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
|
+
"_dv",
|
|
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", "_dk"])}>`);
|
|
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", "_dl"])} 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("_df")}><span${_attr_class("_dg")}>Accent</span><span${_attr_class("_dw")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9678
|
+
"_dx",
|
|
9679
|
+
"_dA",
|
|
9680
|
+
{ ["_dy"]: !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: "_dz"
|
|
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(["_dx", { ["_dy"]: 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: "_dz"
|
|
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
|
+
"_dx",
|
|
9716
|
+
"_dB",
|
|
9717
|
+
{ ["_dy"]: 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("_dC")} 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: "_dz"
|
|
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", "_cq"])}><div${_attr_class("_cr")}><div${_attr_class("_dD")}><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("_cI")}><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("_dF")}><p${_attr_class("_dG")}>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("_dG")}>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("_dH")}>`);
|
|
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("_dI")}><span${_attr_class("_bx")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dH")}>`);
|
|
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("_dJ")}><span${_attr_class("_dK")}><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("_dL")}>`);
|
|
9808
9809
|
_for_of(r.modified, (f) => {
|
|
9809
9810
|
const $scope141_id = _scope_id();
|
|
9810
|
-
_html(`<li${_attr_class("
|
|
9811
|
+
_html(`<li${_attr_class("_dM")}><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("_dM")}><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("_dM")}><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(["_dM", "_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("_dN")}><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("_cr")}><div${_attr_class("_dD")}><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("_cI")}><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("_dE")} 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("_dF")}><p${_attr_class("_dG")}>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(["_dP", { ["_dR"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dQ")} 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(["_dP", { ["_dR"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dQ")} 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("_dN")}><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 = "_bW _l";
|
|
10252
|
+
var settingsDot = "_bX _bc";
|
|
10253
|
+
var navToggle = "_b1 _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 = "_et _l";
|
|
10297
|
+
var wsBtn = "_ey _I";
|
|
10298
|
+
var rowIcon = "_eB _4 _l";
|
|
10299
|
+
var close = "_eC _7 _l _8";
|
|
10300
|
+
var sessRename$1 = "_eO _J";
|
|
10301
|
+
var sessBtn$1 = "_eQ _I";
|
|
10301
10302
|
//#endregion
|
|
10302
10303
|
//#region src/styles/session-pop.css.ts
|
|
10303
|
-
var sessionPop = "
|
|
10304
|
-
var sessionPopBtn = "
|
|
10304
|
+
var sessionPop = "_ep __";
|
|
10305
|
+
var sessionPopBtn = "_eq _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
|
+
"_hJ",
|
|
10372
10373
|
input.class,
|
|
10373
|
-
{ ["
|
|
10374
|
+
{ ["_hK"]: 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("_hL")}>`);
|
|
10378
10379
|
_if(() => {
|
|
10379
10380
|
if (i) {
|
|
10380
10381
|
const $scope3_id = _scope_id();
|
|
10381
|
-
_html(`<span${_attr_class("
|
|
10382
|
+
_html(`<span${_attr_class("_hO")} 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("_hM")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hN", win$1.used_percent >= 90 ? "_fo" : win$1.used_percent >= 70 ? "_fn" : win$1.used_percent >= 40 ? "_fm" : "_fl"])}>${_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 = "_hR _u _hQ";
|
|
10419
|
+
var portChip = "_hS _u _hQ";
|
|
10419
10420
|
var prState = {
|
|
10420
|
-
open: "
|
|
10421
|
-
merged: "
|
|
10422
|
-
closed: "
|
|
10421
|
+
open: "_hW",
|
|
10422
|
+
merged: "_hX",
|
|
10423
|
+
closed: "_hY"
|
|
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("_hP")}>`);
|
|
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(["_hT", { ["_h1"]: !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(["_hT", "_hU"])}${_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
|
+
"_hT",
|
|
10526
|
+
"_hU",
|
|
10527
|
+
"_hV"
|
|
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(["_hT", "_hZ"])}${_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(["_hT", "_h0"])}${_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
|
+
"_hT",
|
|
10568
|
+
"_hU",
|
|
10569
|
+
"_hV",
|
|
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, { ["_er"]: 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
|
+
"_ev",
|
|
10703
|
+
"_eS",
|
|
10703
10704
|
{
|
|
10704
|
-
["
|
|
10705
|
-
["
|
|
10705
|
+
["_ew"]: input.railPop,
|
|
10706
|
+
["_eu"]: 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("_ex")}><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: "_eU"
|
|
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", "_eT"])}></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("_eE")}><span${_attr_class("_eF")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_eW")}${_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("_eV")}><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(["_ev", {
|
|
10750
|
+
["_er"]: input.current,
|
|
10750
10751
|
["_bd"]: input.current,
|
|
10751
|
-
["
|
|
10752
|
-
["
|
|
10753
|
-
}])}><div${_attr_class("
|
|
10752
|
+
["_ew"]: input.railPop,
|
|
10753
|
+
["_eu"]: input.page
|
|
10754
|
+
}])}><div${_attr_class("_ex")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10754
10755
|
"_A",
|
|
10755
10756
|
phase[dot$1],
|
|
10756
|
-
"
|
|
10757
|
+
"_eK"
|
|
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: "_eD"
|
|
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("_eE")}><span${_attr_class("_eF")}>${_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("_eI")}>${_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
|
+
"_eJ"
|
|
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("_ez")}>`);
|
|
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, { ["_es"]: 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("_eP")}>`);
|
|
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: "_eG"
|
|
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(["_eA", { ["_er"]: 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
|
+
"_eN"
|
|
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: "_eR"
|
|
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: "_eR"
|
|
10924
10925
|
});
|
|
10925
|
-
_html(`<span${_attr_class("
|
|
10926
|
+
_html(`<span${_attr_class("_eL")}>${_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("_eM")}><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: "_eH"
|
|
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(["_b0", {
|
|
11179
|
+
["_bY"]: !navOpen,
|
|
11180
|
+
["_bZ"]: 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("_b3")}><div${_attr_class("_cb")}>`);
|
|
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("_b9")} title="This work server (Settings → Appearance)"><img${_attr_class("_b_")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ca")}>${_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("_b4")}>Workspaces</h1></div><div${_attr_class("_b5")}>`);
|
|
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
|
+
"_b6",
|
|
11199
|
+
{ ["_bV"]: 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("_b9")} title="This work server (Settings → Appearance)"><img${_attr_class("_b_")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ca")}>${_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("_cc")}>`);
|
|
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", "_b7"])}>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", "_b7"])}>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("_cd")}>`);
|
|
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(["__", "_cg"])}${_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("_ce")}>`);
|
|
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
|
+
"_b8"
|
|
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", "_cf"])}></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, { ["_bV"]: 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, { ["_bV"]: 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 = "_fN _5 _l";
|
|
11865
|
+
var pageTitle = "_fU _cm";
|
|
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("_ie")}><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("_if")}><button type=button${_attr_class(["_r", "_ig"])}${_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("_ih")} 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 = "_h4 _n";
|
|
13402
|
+
var findIconBtn = "_h7 _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(["_h3", !open && "_h2"])} 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("_h6")}>${_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 = "_iF _y";
|
|
13595
|
+
var repoTitle = "_iL _x";
|
|
13596
|
+
var path$1 = "_i2 _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("_iB")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iC", { ["_iD"]: 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("_iE")} 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
|
+
"_iZ",
|
|
13738
|
+
!input.collapsed && "_i0",
|
|
13739
|
+
input.expanding && "_i1"
|
|
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("_iM")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_iN"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_iP"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_iO"])}>${_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
|
+
"_iQ"
|
|
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
|
+
"_iR"
|
|
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", "_iR"])}${_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", "_iR"])}${_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("_iG")}><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("_iH")}>+${_text_resume($scope15_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iI")}>−${_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(["_iK", { ["_iJ"]: 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("_iT")}${_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
|
+
"_iU",
|
|
13857
|
+
forceNear && "_iV",
|
|
13858
|
+
input.findHit?.key === file$2.key && "_iz"
|
|
13859
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_iX")}><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 && "_iA"])}${_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", "_iS"])} 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
|
+
"_i4",
|
|
13884
|
+
{ ["_i5"]: 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(["_i3", "_iW"])}>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(["_i3", "_iW"])}>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(["_i3", "_iW"])}>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("_iY")}></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: "_iW",
|
|
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("_iq")}><button type=button${_attr_class(["_ir", { ["_ii"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_iy")}>`);
|
|
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("_is")}>${_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(["_iu", { ["_it"]: 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("_iv")}>${_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", "_iw"])} 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("_ix")}>`);
|
|
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(["_ij", { ["_ii"]: input.open === false }])}><div${_attr_class("_ik")}>`);
|
|
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("_il")}>`);
|
|
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("_im")}>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("_in")}><button type=button${_attr_class(["_io", { ["_ii"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_iy")}>`);
|
|
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("_is")}>${_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("_ip")}${_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 = "_hD _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("_hu")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_hv")} role=dialog aria-label="Jump to file"><div${_attr_class("_hw")}><strong${_attr_class("_ht")}>Files</strong><span${_attr_class("_hx")}>${_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, "_hs"])} 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("_hF")}>`);
|
|
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("_hy")}>`);
|
|
14448
14449
|
_for_of(groups, (group) => {
|
|
14449
14450
|
const $scope2_id = _scope_id();
|
|
14450
|
-
_html(`<div${_attr_class("
|
|
14451
|
+
_html(`<div${_attr_class("_hz")}><div${_attr_class("_hA")}>${_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("_hB")}>`);
|
|
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(["_hC", "_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("_hE")}><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", "_hH"])} 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: "_hI"
|
|
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("_hG")}>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("_fK")}><div${_attr_class("_fP")}><div${_attr_class("_fQ")}><div${_attr_class(["_f0", { ["_fZ"]: !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, "_fR"])} 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("_fT")}>${_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("_fS")}>`);
|
|
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("_fO")}>`);
|
|
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
|
+
"_fM",
|
|
15087
|
+
{ ["_fL"]: 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, "_fM"])} 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", "_f9"])} 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", "_f1"])}>`);
|
|
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", "_f2"])} 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(["_fX", { ["_fW"]: !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
|
+
"_fV",
|
|
15141
|
+
"_fM"
|
|
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("_fY")} 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("_f4")} aria-hidden=true><div${_attr_class(["_f5", "_f6"])}></div><div${_attr_class(["_f5", "_f7"])}></div><div${_attr_class(["_f5", "_f8"])}></div><div${_attr_class(["_f5", "_f7"])}></div><div${_attr_class(["_f5", "_f8"])}></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 = "_ga _cj";
|
|
15576
|
+
var pageMeta = "_gb _co";
|
|
15577
|
+
var pathMeta = "_ge _y";
|
|
15578
|
+
var skillRow = "_gk _gf";
|
|
15579
|
+
var skillName = "_gm _gg";
|
|
15580
|
+
var skillDesc = "_gp _gh";
|
|
15581
|
+
var skillEnd = "_gq _gi";
|
|
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 = "_hg _I";
|
|
15600
|
+
var resultBranch = "_hi _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("_hk")}>`);
|
|
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" : "_ha", {
|
|
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("_hb")}>`);
|
|
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 : "_hc"])}${_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("_hb")}>`);
|
|
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("_hd")}><li><div${_attr_class(["_hf", "_he"])}><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: "_hm"
|
|
15784
15792
|
});
|
|
15785
|
-
_html(`<span${_attr_class("
|
|
15793
|
+
_html(`<span${_attr_class("_hn")}>${_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(["_hj", { ["_hh"]: 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, { ["_hh"]: 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("_hd")}>`);
|
|
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(["_hf", { ["_he"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15848
15856
|
icon_plus_default({
|
|
15849
15857
|
size: 12,
|
|
15850
|
-
class: "
|
|
15858
|
+
class: "_hm"
|
|
15851
15859
|
});
|
|
15852
|
-
_html(`<span${_attr_class("
|
|
15860
|
+
_html(`<span${_attr_class("_hn")}>${_text_resume($scope5_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_hh"]: 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,16 +15961,18 @@ 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
|
-
const $wsSkills_length__closures = /* @__PURE__ */ new Set();
|
|
15958
|
-
const $skills__closures = /* @__PURE__ */ new Set();
|
|
15959
15969
|
const $confirmingSkill__closures = /* @__PURE__ */ new Set();
|
|
15960
|
-
const $
|
|
15961
|
-
const $
|
|
15970
|
+
const $skillBusy__closures = /* @__PURE__ */ new Set();
|
|
15971
|
+
const $skills__closures = /* @__PURE__ */ new Set();
|
|
15962
15972
|
let catalogRefreshing = false;
|
|
15963
15973
|
let procs = lastData.get(`procs:${input.workspace.id}`) || null;
|
|
15964
15974
|
let busy = /* @__PURE__ */ new Set();
|
|
15975
|
+
let skillBusy = /* @__PURE__ */ new Set();
|
|
15965
15976
|
let error = null;
|
|
15966
15977
|
let pendingAction = null;
|
|
15967
15978
|
let confirmingDelete = false;
|
|
@@ -16016,10 +16027,16 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16016
16027
|
else next.delete(name);
|
|
16017
16028
|
busy = next;
|
|
16018
16029
|
}, "q4", $scope0_id);
|
|
16030
|
+
const setSkillBusy = _resume((id, on) => {
|
|
16031
|
+
const next = new Set(skillBusy);
|
|
16032
|
+
if (on) next.add(id);
|
|
16033
|
+
else next.delete(id);
|
|
16034
|
+
skillBusy = next;
|
|
16035
|
+
}, "q5", $scope0_id);
|
|
16019
16036
|
const runSkill = _resume(async (key, body) => {
|
|
16020
|
-
if (
|
|
16037
|
+
if (skillBusy.has(key)) return;
|
|
16021
16038
|
error = null;
|
|
16022
|
-
|
|
16039
|
+
setSkillBusy(key, true);
|
|
16023
16040
|
const seq = ++skillSeq.issued;
|
|
16024
16041
|
try {
|
|
16025
16042
|
applySkills(await api$4(`/api/workspaces/${ws.id}/skills`, {
|
|
@@ -16030,9 +16047,9 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16030
16047
|
} catch (err) {
|
|
16031
16048
|
error = String(err.message || err);
|
|
16032
16049
|
} finally {
|
|
16033
|
-
|
|
16050
|
+
setSkillBusy(key, false);
|
|
16034
16051
|
}
|
|
16035
|
-
}, "
|
|
16052
|
+
}, "q6", $scope0_id);
|
|
16036
16053
|
const addRepo = _resume(async (name, baseBranch, fork) => {
|
|
16037
16054
|
if (!name || busy.has(name)) return;
|
|
16038
16055
|
error = null;
|
|
@@ -16051,7 +16068,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16051
16068
|
error = String(err.message || err);
|
|
16052
16069
|
}
|
|
16053
16070
|
setBusy(name, false);
|
|
16054
|
-
}, "
|
|
16071
|
+
}, "q7", $scope0_id);
|
|
16055
16072
|
const removeRepo = _resume(async (row) => {
|
|
16056
16073
|
if (busy.has(row.full_name)) return;
|
|
16057
16074
|
error = null;
|
|
@@ -16066,7 +16083,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16066
16083
|
error = String(err.message || err);
|
|
16067
16084
|
}
|
|
16068
16085
|
setBusy(row.full_name, false);
|
|
16069
|
-
}, "
|
|
16086
|
+
}, "q8", $scope0_id);
|
|
16070
16087
|
const runAction = _resume(async (action) => {
|
|
16071
16088
|
error = null;
|
|
16072
16089
|
pendingAction = action;
|
|
@@ -16088,36 +16105,14 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16088
16105
|
pendingAction = null;
|
|
16089
16106
|
actionStep = null;
|
|
16090
16107
|
}
|
|
16091
|
-
}, "
|
|
16108
|
+
}, "q9", $scope0_id);
|
|
16092
16109
|
const killProc = _resume(async (pid) => {
|
|
16093
16110
|
await fetch(`/api/procs/${pid}`, { method: "DELETE" });
|
|
16094
16111
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16095
|
-
}, "
|
|
16112
|
+
}, "q10", $scope0_id);
|
|
16096
16113
|
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) });
|
|
16114
|
+
_html(`<div${_attr_class("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><div${_attr_class(content$1)}>`);
|
|
16115
|
+
_set_serialize_reason(30);
|
|
16121
16116
|
const $childScope = _peek_scope_id();
|
|
16122
16117
|
page_head_default({
|
|
16123
16118
|
title: "Manage",
|
|
@@ -16125,96 +16120,128 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16125
16120
|
backHref: `/w/${ws.id}`,
|
|
16126
16121
|
onBack: _resume(function() {
|
|
16127
16122
|
input.onExit?.();
|
|
16128
|
-
}, "
|
|
16129
|
-
|
|
16130
|
-
meta: attrTag({ content: _content("q16", () => {
|
|
16123
|
+
}, "q11", $scope0_id),
|
|
16124
|
+
meta: attrTag({ content: _content("q20", () => {
|
|
16131
16125
|
_scope_reason();
|
|
16132
|
-
const $
|
|
16133
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16126
|
+
const $scope13_id = _scope_id();
|
|
16127
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_gc")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
16134
16128
|
_if(() => {
|
|
16135
16129
|
if (ws.status !== "active") {
|
|
16136
|
-
const $
|
|
16130
|
+
const $scope17_id = _scope_id();
|
|
16137
16131
|
_html(`<span${_attr_class(["_N", "_P"])}>Archived</span>`);
|
|
16138
|
-
writeScope($
|
|
16132
|
+
writeScope($scope17_id, {});
|
|
16139
16133
|
return 0;
|
|
16140
16134
|
}
|
|
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
|
-
|
|
16135
|
+
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
16136
|
+
_html(`<span${_attr_class("_gd")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
16137
|
+
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
16138
|
+
_: _scope_with_id($scope0_id),
|
|
16139
|
+
Ccf: 1
|
|
16140
|
+
})))));
|
|
16141
|
+
_resume_branch($scope13_id);
|
|
16142
|
+
}, $scope0_id) }),
|
|
16143
|
+
actions: attrTag({ content: _content("q21", () => {
|
|
16144
|
+
_scope_reason();
|
|
16145
|
+
const $scope6_id = _scope_id();
|
|
16146
|
+
_if(() => {
|
|
16147
|
+
if (ws.repos.length) {
|
|
16148
|
+
const $scope12_id = _scope_id();
|
|
16149
|
+
_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">`);
|
|
16150
|
+
_if(() => {
|
|
16151
|
+
if (copied) {
|
|
16152
|
+
const $scope18_id = _scope_id();
|
|
16153
|
+
icon_check_default({ size: 14 });
|
|
16154
|
+
writeScope($scope18_id, {});
|
|
16155
|
+
return 0;
|
|
16156
|
+
} else {
|
|
16157
|
+
const $scope19_id = _scope_id();
|
|
16158
|
+
icon_clipboard_default({ size: 14 });
|
|
16159
|
+
writeScope($scope19_id, {});
|
|
16160
|
+
return 1;
|
|
16161
|
+
}
|
|
16162
|
+
}, $scope12_id, "a", 1, 1, 1, "</button>", 1);
|
|
16163
|
+
_script($scope12_id, "q16");
|
|
16164
|
+
_subscribe($ws_branch__closures, _subscribe($ws_origin_branch__closures, _subscribe($copied__closures, writeScope($scope12_id, {}))));
|
|
16165
|
+
return 0;
|
|
16166
|
+
}
|
|
16167
|
+
}, $scope6_id, "a", 1, 1, 1, 0, 1);
|
|
16168
|
+
_if(() => {
|
|
16169
|
+
if (ws.status === "active") {
|
|
16170
|
+
const $scope7_id = _scope_id();
|
|
16171
|
+
_html(`<button type=button${_attr_class(btnSm)} title="Hide from the list. Worktrees stay on disk."${_attr("disabled", !!pendingAction)}>${_text_resume($scope7_id, "b", pendingAction === "archive" ? "Archiving…" : "Archive")}</button>${_el_resume($scope7_id, "a")}`);
|
|
16172
|
+
_script($scope7_id, "q17");
|
|
16173
|
+
_subscribe($pendingAction__closures, writeScope($scope7_id, { Cc3: 1 }));
|
|
16174
|
+
return 0;
|
|
16175
|
+
} else {
|
|
16176
|
+
const $scope8_id = _scope_id();
|
|
16177
|
+
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Archived and hidden from the list. Bring it back."${_attr("disabled", !!pendingAction)}>${_text_resume($scope8_id, "b", pendingAction === "restore" ? "Restoring…" : "Restore")}</button>${_el_resume($scope8_id, "a")}`);
|
|
16178
|
+
_script($scope8_id, "q18");
|
|
16179
|
+
_subscribe($pendingAction__closures, writeScope($scope8_id, { Cc3: 2 }));
|
|
16180
|
+
return 1;
|
|
16181
|
+
}
|
|
16182
|
+
}, $scope6_id, "b", 1, 1, 1, 0, 1);
|
|
16183
|
+
_html(`<button type=button${_attr_class([
|
|
16184
|
+
btnSm,
|
|
16185
|
+
"_t",
|
|
16186
|
+
{ ["_s"]: confirmingDelete }
|
|
16187
|
+
])} title="Remove the workspace and its worktrees. Branches on origin stay."${_attr("disabled", !!pendingAction)}>${_text_resume($scope6_id, "d", pendingAction === "delete" ? "Deleting…" : "Delete")}</button>${_el_resume($scope6_id, "c")}`);
|
|
16188
|
+
_script($scope6_id, "q19");
|
|
16189
|
+
_subscribe($ws_repos_length__closures, _subscribe($ws_status__closures, _subscribe($confirmingDelete__closures, _subscribe($pendingAction__closures, writeScope($scope6_id, { _: _scope_with_id($scope0_id) })))));
|
|
16190
|
+
_resume_branch($scope6_id);
|
|
16145
16191
|
}, $scope0_id) })
|
|
16146
16192
|
});
|
|
16147
16193
|
_if(() => {
|
|
16148
16194
|
if (error) {
|
|
16149
|
-
const $
|
|
16195
|
+
const $scope4_id = _scope_id();
|
|
16150
16196
|
toast_default({
|
|
16151
16197
|
placement: "inline",
|
|
16152
16198
|
onDismiss: _resume(function() {
|
|
16153
16199
|
error = null;
|
|
16154
|
-
}, "
|
|
16155
|
-
content: _content("
|
|
16200
|
+
}, "q12", $scope4_id),
|
|
16201
|
+
content: _content("q22", () => {
|
|
16156
16202
|
_scope_reason();
|
|
16157
|
-
const $
|
|
16158
|
-
_html(_text_resume($
|
|
16159
|
-
_subscribe($error__closures, writeScope($
|
|
16160
|
-
_resume_branch($
|
|
16161
|
-
}, $
|
|
16203
|
+
const $scope5_id = _scope_id();
|
|
16204
|
+
_html(_text_resume($scope5_id, "a", error));
|
|
16205
|
+
_subscribe($error__closures, writeScope($scope5_id, { _: _scope_with_id($scope4_id) }));
|
|
16206
|
+
_resume_branch($scope5_id);
|
|
16207
|
+
}, $scope4_id)
|
|
16162
16208
|
});
|
|
16163
|
-
writeScope($
|
|
16209
|
+
writeScope($scope4_id, {});
|
|
16164
16210
|
return 0;
|
|
16165
16211
|
}
|
|
16166
16212
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
16167
16213
|
_if(() => {
|
|
16168
16214
|
if (pendingAction && actionStep) {
|
|
16169
|
-
const $
|
|
16170
|
-
_html(`<p${_attr_class("
|
|
16171
|
-
writeScope($
|
|
16215
|
+
const $scope10_id = _scope_id();
|
|
16216
|
+
_html(`<p${_attr_class("_bp")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
16217
|
+
writeScope($scope10_id, {});
|
|
16172
16218
|
return 0;
|
|
16173
16219
|
}
|
|
16174
16220
|
}, $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)}>`);
|
|
16221
|
+
_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, "_gt"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16196
16222
|
icon_plus_default({ size: 16 });
|
|
16197
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
16198
|
-
_set_serialize_reason(
|
|
16223
|
+
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16224
|
+
_set_serialize_reason(14);
|
|
16199
16225
|
const $childScope2 = _peek_scope_id();
|
|
16200
16226
|
let refreshCatalog = repo_picker_default({
|
|
16201
16227
|
compact: true,
|
|
16228
|
+
pinned: true,
|
|
16202
16229
|
open: addingRepo,
|
|
16203
16230
|
exclude: inWorkspace,
|
|
16204
16231
|
onClose: _resume(function() {
|
|
16205
16232
|
addingRepo = false;
|
|
16206
|
-
}, "
|
|
16233
|
+
}, "q13", $scope0_id),
|
|
16207
16234
|
onPick: _resume(function(name, baseBranch, fork) {
|
|
16208
16235
|
addRepo(name, baseBranch, fork);
|
|
16209
|
-
}, "
|
|
16236
|
+
}, "q14", $scope0_id),
|
|
16210
16237
|
onError: _resume(function(message) {
|
|
16211
16238
|
error = message;
|
|
16212
|
-
}, "
|
|
16239
|
+
}, "q15", $scope0_id),
|
|
16213
16240
|
refreshingChange: function(busy) {
|
|
16214
16241
|
catalogRefreshing = busy;
|
|
16215
16242
|
}
|
|
16216
16243
|
});
|
|
16217
|
-
_var($scope0_id, "
|
|
16244
|
+
_var($scope0_id, "p", $childScope2, "q23");
|
|
16218
16245
|
_html(`<button${_attr_class(iconBtn$1)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
16219
16246
|
_set_serialize_reason(1);
|
|
16220
16247
|
const $childScope3 = _peek_scope_id();
|
|
@@ -16222,54 +16249,54 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16222
16249
|
size: 14,
|
|
16223
16250
|
class: catalogRefreshing && "_F"
|
|
16224
16251
|
});
|
|
16225
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
16226
|
-
"
|
|
16227
|
-
"
|
|
16228
|
-
"
|
|
16252
|
+
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class([
|
|
16253
|
+
"_bv",
|
|
16254
|
+
"_cq",
|
|
16255
|
+
"_cE"
|
|
16229
16256
|
])}>`);
|
|
16230
16257
|
_for_of(ws.repos, (row) => {
|
|
16231
16258
|
const $scope1_id = _scope_id();
|
|
16232
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16259
|
+
_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
16260
|
_if(() => {
|
|
16234
16261
|
if (row.base_branch !== row.default_branch) {
|
|
16235
|
-
const $
|
|
16262
|
+
const $scope20_id = _scope_id();
|
|
16236
16263
|
_html(`<span${_attr_class(["_N", "_y"])} title="Base branch">`);
|
|
16237
16264
|
icon_branch_default({ size: 12 });
|
|
16238
|
-
_html(` ${_text_resume($
|
|
16239
|
-
writeScope($
|
|
16265
|
+
_html(` ${_text_resume($scope20_id, "c", row.base_branch, 2)}</span>`);
|
|
16266
|
+
writeScope($scope20_id, {});
|
|
16240
16267
|
return 0;
|
|
16241
16268
|
}
|
|
16242
16269
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
16243
16270
|
_html("</span></div>");
|
|
16244
16271
|
_if(() => {
|
|
16245
16272
|
if (busy.has(row.full_name)) {
|
|
16246
|
-
const $
|
|
16273
|
+
const $scope21_id = _scope_id();
|
|
16247
16274
|
_html(`<span${_attr_class("_G")}></span>`);
|
|
16248
|
-
writeScope($
|
|
16275
|
+
writeScope($scope21_id, {});
|
|
16249
16276
|
return 0;
|
|
16250
16277
|
} else {
|
|
16251
|
-
const $
|
|
16278
|
+
const $scope9_id = _scope_id();
|
|
16252
16279
|
_html(`<button${_attr_class([
|
|
16253
|
-
"
|
|
16280
|
+
"_bA",
|
|
16254
16281
|
"_8",
|
|
16255
16282
|
"_9",
|
|
16256
16283
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
16257
16284
|
])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
|
|
16258
16285
|
_if(() => {
|
|
16259
16286
|
if (confirmingRemove === row.full_name) {
|
|
16260
|
-
const $
|
|
16287
|
+
const $scope22_id = _scope_id();
|
|
16261
16288
|
_html("Remove?");
|
|
16262
|
-
writeScope($
|
|
16289
|
+
writeScope($scope22_id, {});
|
|
16263
16290
|
return 0;
|
|
16264
16291
|
} else {
|
|
16265
|
-
const $
|
|
16266
|
-
icon_xmark_default({ size:
|
|
16267
|
-
writeScope($
|
|
16292
|
+
const $scope23_id = _scope_id();
|
|
16293
|
+
icon_xmark_default({ size: 14 });
|
|
16294
|
+
writeScope($scope23_id, {});
|
|
16268
16295
|
return 1;
|
|
16269
16296
|
}
|
|
16270
|
-
}, $
|
|
16271
|
-
_script($
|
|
16272
|
-
_subscribe($confirmingRemove__closures, writeScope($
|
|
16297
|
+
}, $scope9_id, "a", 1, 1, 1, "</button>");
|
|
16298
|
+
_script($scope9_id, "q24");
|
|
16299
|
+
_subscribe($confirmingRemove__closures, writeScope($scope9_id, {}));
|
|
16273
16300
|
return 1;
|
|
16274
16301
|
}
|
|
16275
16302
|
}, $scope1_id, "i", 1, 1, 1, 0, 1);
|
|
@@ -16280,312 +16307,258 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16280
16307
|
m: row?.full_name,
|
|
16281
16308
|
o: row?.base_branch
|
|
16282
16309
|
});
|
|
16283
|
-
}, "full_name", $scope0_id, "
|
|
16310
|
+
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
16284
16311
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16285
|
-
const $
|
|
16286
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16287
|
-
writeScope($
|
|
16288
|
-
}, (n) => n, $scope0_id, "
|
|
16312
|
+
const $scope24_id = _scope_id();
|
|
16313
|
+
_html(`<li${_attr_class([flatCardRow, "_bu"])}><span${_attr_class("_G")}></span><div${_attr_class("_bw")}><span${_attr_class("_bz")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
|
|
16314
|
+
writeScope($scope24_id, {});
|
|
16315
|
+
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
16289
16316
|
_if(() => {
|
|
16290
16317
|
if (!ws.repos.length && !busy.size) {
|
|
16291
|
-
const $
|
|
16292
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16293
|
-
writeScope($
|
|
16318
|
+
const $scope25_id = _scope_id();
|
|
16319
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_bz")}>No repos yet. Add one to start.</span></li>`);
|
|
16320
|
+
writeScope($scope25_id, {});
|
|
16294
16321
|
return 0;
|
|
16295
16322
|
}
|
|
16296
|
-
}, $scope0_id, "
|
|
16323
|
+
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
16297
16324
|
const wsSkills = skills?.workspace || [];
|
|
16298
16325
|
const repoSkills = (skills?.repo || []).filter((s) => !wsSkills.some((w) => w.id === s.id));
|
|
16326
|
+
const allSkills = [...wsSkills.map((s) => ({
|
|
16327
|
+
s,
|
|
16328
|
+
linked: true
|
|
16329
|
+
})), ...repoSkills.map((s) => ({
|
|
16330
|
+
s,
|
|
16331
|
+
linked: false
|
|
16332
|
+
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
16299
16333
|
_html("</ul></section>");
|
|
16300
16334
|
_if(() => {
|
|
16301
|
-
if (
|
|
16335
|
+
if (allSkills.length) {
|
|
16302
16336
|
const $scope2_id = _scope_id();
|
|
16303
|
-
_html(`<section${_attr_class("
|
|
16304
|
-
|
|
16305
|
-
|
|
16306
|
-
|
|
16307
|
-
|
|
16308
|
-
|
|
16309
|
-
return 0;
|
|
16310
|
-
}
|
|
16311
|
-
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
16312
|
-
_html(`</div><ul${_attr_class("_cq")}>`);
|
|
16313
|
-
_for_of(wsSkills, (s) => {
|
|
16337
|
+
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Skills</h2><span${_attr_class(sectionCount)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class([
|
|
16338
|
+
"_bv",
|
|
16339
|
+
"_cq",
|
|
16340
|
+
"_cE"
|
|
16341
|
+
])}>`);
|
|
16342
|
+
_for_of(allSkills, ({ s, linked }) => {
|
|
16314
16343
|
const $scope3_id = _scope_id();
|
|
16315
|
-
const
|
|
16316
|
-
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
-
|
|
16321
|
-
|
|
16322
|
-
|
|
16323
|
-
|
|
16324
|
-
|
|
16325
|
-
|
|
16326
|
-
|
|
16327
|
-
|
|
16328
|
-
|
|
16329
|
-
|
|
16330
|
-
|
|
16331
|
-
|
|
16332
|
-
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16336
|
-
|
|
16337
|
-
|
|
16338
|
-
|
|
16339
|
-
|
|
16340
|
-
|
|
16341
|
-
|
|
16342
|
-
|
|
16343
|
-
|
|
16344
|
-
|
|
16345
|
-
|
|
16346
|
-
|
|
16347
|
-
|
|
16348
|
-
|
|
16349
|
-
|
|
16350
|
-
|
|
16351
|
-
|
|
16352
|
-
|
|
16353
|
-
|
|
16354
|
-
|
|
16355
|
-
|
|
16356
|
-
|
|
16357
|
-
|
|
16358
|
-
}
|
|
16359
|
-
|
|
16360
|
-
|
|
16361
|
-
|
|
16362
|
-
|
|
16363
|
-
|
|
16364
|
-
|
|
16365
|
-
|
|
16366
|
-
}, $
|
|
16367
|
-
|
|
16368
|
-
|
|
16369
|
-
}
|
|
16370
|
-
|
|
16371
|
-
|
|
16372
|
-
|
|
16344
|
+
const isBusy = skillBusy.has(s.id);
|
|
16345
|
+
_html(`<li${_attr_class([skillRow, { ["_gl"]: !linked }])}><span${_attr_class("_gn")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16346
|
+
_if(() => {
|
|
16347
|
+
if (s.worktree && !s.broken) {
|
|
16348
|
+
const $scope26_id = _scope_id();
|
|
16349
|
+
_html(`<span${_attr_class([
|
|
16350
|
+
"_N",
|
|
16351
|
+
"_y",
|
|
16352
|
+
"_go"
|
|
16353
|
+
])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope26_id, "b", s.worktree)}/</span>${_el_resume($scope26_id, "a")}`);
|
|
16354
|
+
writeScope($scope26_id, {});
|
|
16355
|
+
return 0;
|
|
16356
|
+
}
|
|
16357
|
+
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
16358
|
+
_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)}>`);
|
|
16359
|
+
_if(() => {
|
|
16360
|
+
if (s.broken) {
|
|
16361
|
+
const $scope27_id = _scope_id();
|
|
16362
|
+
_html(`<span${_attr_class([
|
|
16363
|
+
"_N",
|
|
16364
|
+
"_P",
|
|
16365
|
+
tone.danger
|
|
16366
|
+
])}${_attr("title", `Points into ${s.worktree || "a repo"} that is no longer here`)}>broken link</span>${_el_resume($scope27_id, "a")}`);
|
|
16367
|
+
writeScope($scope27_id, {});
|
|
16368
|
+
return 0;
|
|
16369
|
+
} else if (linked && s.sourceUrl) {
|
|
16370
|
+
const $scope28_id = _scope_id();
|
|
16371
|
+
_html(`<a${_attr_class(["_N", "_K"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Installed from ${s.source}`)}>${_text_resume($scope28_id, "b", s.source)}</a>${_el_resume($scope28_id, "a")}`);
|
|
16372
|
+
writeScope($scope28_id, {});
|
|
16373
|
+
return 1;
|
|
16374
|
+
}
|
|
16375
|
+
}, $scope3_id, "i", 1, 1, 1, 0, 1);
|
|
16376
|
+
_if(() => {
|
|
16377
|
+
if (linked && s.shadows === "global") {
|
|
16378
|
+
const $scope31_id = _scope_id();
|
|
16379
|
+
_html(`<span${_attr_class("_N")} title="Used instead of the system skill of the same name">overrides system</span>`);
|
|
16380
|
+
writeScope($scope31_id, {});
|
|
16381
|
+
return 0;
|
|
16382
|
+
}
|
|
16383
|
+
}, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
16384
|
+
_if(() => {
|
|
16385
|
+
if (!linked && s.shadows) {
|
|
16386
|
+
const $scope29_id = _scope_id();
|
|
16387
|
+
_html(`<span${_attr_class("_N")}${_attr("title", `A ${s.shadows} skill of the same name already exists`)}>name taken</span>${_el_resume($scope29_id, "a")}`);
|
|
16388
|
+
writeScope($scope29_id, {});
|
|
16389
|
+
return 0;
|
|
16390
|
+
}
|
|
16391
|
+
}, $scope3_id, "k", 1, 1, 1, 0, 1);
|
|
16392
|
+
_if(() => {
|
|
16393
|
+
if (linked && skills && s.agents.length < skills.agents.length) {
|
|
16394
|
+
const $scope30_id = _scope_id();
|
|
16395
|
+
_html(`<span${_attr_class("_N")}${_attr("title", `Only for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope30_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope30_id, "a")}`);
|
|
16396
|
+
writeScope($scope30_id, {});
|
|
16397
|
+
return 0;
|
|
16398
|
+
}
|
|
16399
|
+
}, $scope3_id, "l", 1, 1, 1, 0, 1);
|
|
16400
|
+
_if(() => {
|
|
16401
|
+
if (linked) {
|
|
16402
|
+
const $scope11_id = _scope_id();
|
|
16373
16403
|
_html(`<button${_attr_class([
|
|
16374
|
-
|
|
16404
|
+
"_bA",
|
|
16375
16405
|
"_8",
|
|
16376
16406
|
"_9",
|
|
16407
|
+
"_gr",
|
|
16377
16408
|
{ ["_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}`)}>`);
|
|
16409
|
+
])} type=button${_attr("disabled", isBusy)}${isBusy ? " aria-busy=true" : ""}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
16379
16410
|
_if(() => {
|
|
16380
16411
|
if (confirmingSkill === s.id) {
|
|
16381
|
-
const $
|
|
16412
|
+
const $scope32_id = _scope_id();
|
|
16382
16413
|
_html("Remove?");
|
|
16383
|
-
writeScope($
|
|
16414
|
+
writeScope($scope32_id, {});
|
|
16384
16415
|
return 0;
|
|
16385
16416
|
} else {
|
|
16386
|
-
const $
|
|
16387
|
-
icon_xmark_default({ size:
|
|
16388
|
-
writeScope($
|
|
16417
|
+
const $scope33_id = _scope_id();
|
|
16418
|
+
icon_xmark_default({ size: 14 });
|
|
16419
|
+
writeScope($scope33_id, {});
|
|
16389
16420
|
return 1;
|
|
16390
16421
|
}
|
|
16391
|
-
}, $
|
|
16392
|
-
_script($
|
|
16393
|
-
_subscribe($
|
|
16394
|
-
|
|
16395
|
-
}
|
|
16396
|
-
|
|
16397
|
-
|
|
16398
|
-
|
|
16399
|
-
|
|
16400
|
-
|
|
16401
|
-
|
|
16402
|
-
|
|
16403
|
-
|
|
16404
|
-
|
|
16405
|
-
|
|
16406
|
-
s:
|
|
16407
|
-
|
|
16408
|
-
|
|
16409
|
-
|
|
16410
|
-
|
|
16411
|
-
|
|
16412
|
-
|
|
16413
|
-
|
|
16414
|
-
|
|
16415
|
-
}));
|
|
16416
|
-
},
|
|
16417
|
-
_if(() => {
|
|
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);
|
|
16422
|
+
}, $scope11_id, "a", 1, 1, 1, "</button>");
|
|
16423
|
+
_script($scope11_id, "q25");
|
|
16424
|
+
_subscribe($confirmingSkill__closures, writeScope($scope11_id, {}));
|
|
16425
|
+
return 0;
|
|
16426
|
+
} else if (!s.shadows) {
|
|
16427
|
+
const $scope14_id = _scope_id();
|
|
16428
|
+
_html(`<button${_attr_class(btnSm)}${_attr("disabled", isBusy)}${isBusy ? " aria-busy=true" : ""}${_attr("title", `Link ${s.name} into this workspace so every agent here sees it`)}>Link</button>${_el_resume($scope14_id, "a")}`);
|
|
16429
|
+
_script($scope14_id, "q26");
|
|
16430
|
+
writeScope($scope14_id, {});
|
|
16431
|
+
return 1;
|
|
16432
|
+
}
|
|
16433
|
+
}, $scope3_id, "m", 1, 1, 1, 0, 1);
|
|
16434
|
+
_html(`</span></li>${_el_resume($scope3_id, "a")}`);
|
|
16435
|
+
_subscribe($skills__closures, _subscribe($skillBusy__closures, writeScope($scope3_id, {
|
|
16436
|
+
q: s?.id,
|
|
16437
|
+
s: s?.name,
|
|
16438
|
+
t: s?.worktree,
|
|
16439
|
+
x: s?.sourceUrl,
|
|
16440
|
+
y: s?.source,
|
|
16441
|
+
z: s?.shadows,
|
|
16442
|
+
a0: s?.agents,
|
|
16443
|
+
a2: s?.linked,
|
|
16444
|
+
a3: linked,
|
|
16445
|
+
a7: isBusy
|
|
16446
|
+
})));
|
|
16447
|
+
}, (x) => x.s.id, $scope2_id, "g", 1, 1, 1, "</ul>", 1);
|
|
16467
16448
|
_html("</section>");
|
|
16468
16449
|
writeScope($scope2_id, {});
|
|
16469
16450
|
return 0;
|
|
16470
16451
|
}
|
|
16471
|
-
}, $scope0_id, "
|
|
16452
|
+
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
16472
16453
|
const running = procs || [];
|
|
16473
16454
|
_if(() => {
|
|
16474
16455
|
if (running.length) {
|
|
16475
|
-
const $
|
|
16476
|
-
_html(`<section${_attr_class("
|
|
16477
|
-
"
|
|
16478
|
-
"
|
|
16479
|
-
"
|
|
16456
|
+
const $scope15_id = _scope_id();
|
|
16457
|
+
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class([
|
|
16458
|
+
"_bv",
|
|
16459
|
+
"_cq",
|
|
16460
|
+
"_cE"
|
|
16480
16461
|
])}>`);
|
|
16481
16462
|
_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}`)}>`);
|
|
16463
|
+
const $scope16_id = _scope_id();
|
|
16464
|
+
_html(`<li${_attr_class("_gf")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_gg"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_gh"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_gi")}>`);
|
|
16465
|
+
_for_of(p.ports, (port) => {
|
|
16466
|
+
const $scope34_id = _scope_id();
|
|
16467
|
+
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
16468
|
+
_script($scope34_id, "q27");
|
|
16469
|
+
writeScope($scope34_id, { d: port });
|
|
16470
|
+
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
16471
|
+
_html(`<span${_attr_class(["_y", "_gj"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
16472
|
+
"_bA",
|
|
16473
|
+
"_8",
|
|
16474
|
+
"_gs"
|
|
16475
|
+
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16503
16476
|
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);
|
|
16477
|
+
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
16478
|
+
_script($scope16_id, "q28");
|
|
16479
|
+
writeScope($scope16_id, { r: p?.pid });
|
|
16480
|
+
}, "pid", $scope15_id, "f", 1, 1, 1, "</ul>", 1);
|
|
16511
16481
|
_html("</section>");
|
|
16512
|
-
writeScope($
|
|
16482
|
+
writeScope($scope15_id, {});
|
|
16513
16483
|
return 0;
|
|
16514
16484
|
}
|
|
16515
|
-
}, $scope0_id, "
|
|
16485
|
+
}, $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
16516
16486
|
_html("</div></div></div>");
|
|
16517
|
-
_script($scope0_id, "
|
|
16518
|
-
_script($scope0_id, "
|
|
16487
|
+
_script($scope0_id, "q29");
|
|
16488
|
+
_script($scope0_id, "q30");
|
|
16519
16489
|
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
|
-
cf: $
|
|
16568
|
-
|
|
16490
|
+
a0: _serialize_if($scope0_reason, 1) && input.workspace,
|
|
16491
|
+
a2: _serialize_if($scope0_reason, 0) && input.workspaceChange,
|
|
16492
|
+
a4: input.onDeleted,
|
|
16493
|
+
a5: input.onExit,
|
|
16494
|
+
a8: busy,
|
|
16495
|
+
a9: busy?.size,
|
|
16496
|
+
aa: skillBusy,
|
|
16497
|
+
ab: skillBusy?.size,
|
|
16498
|
+
ac: error,
|
|
16499
|
+
ad: pendingAction,
|
|
16500
|
+
ae: confirmingDelete,
|
|
16501
|
+
ag: confirmingRemove,
|
|
16502
|
+
ah: actionStep,
|
|
16503
|
+
aj: skills,
|
|
16504
|
+
am: confirmingSkill,
|
|
16505
|
+
an: copied,
|
|
16506
|
+
ap: copyTimer.id,
|
|
16507
|
+
aq: workspace,
|
|
16508
|
+
at: workspace?.origin_branch,
|
|
16509
|
+
au: workspace?.branch,
|
|
16510
|
+
aw: workspace?.id,
|
|
16511
|
+
b0: workspace?.repos?.length,
|
|
16512
|
+
b1: invite,
|
|
16513
|
+
b2: copyInvite,
|
|
16514
|
+
b4: skillSeq.applied,
|
|
16515
|
+
b5: skillSeq.issued,
|
|
16516
|
+
b6: applySkills,
|
|
16517
|
+
b7: loadSkills,
|
|
16518
|
+
b8: loadProcs,
|
|
16519
|
+
b9: inWorkspace,
|
|
16520
|
+
ba: setBusy,
|
|
16521
|
+
bb: setSkillBusy,
|
|
16522
|
+
bc: runSkill,
|
|
16523
|
+
bd: addRepo,
|
|
16524
|
+
be: removeRepo,
|
|
16525
|
+
bf: runAction,
|
|
16526
|
+
bg: killProc,
|
|
16527
|
+
bi: refreshCatalog,
|
|
16528
|
+
bk: wsSkills.length,
|
|
16529
|
+
bm: allSkills,
|
|
16530
|
+
bn: allSkills?.length,
|
|
16531
|
+
bo: running,
|
|
16532
|
+
bp: running.length,
|
|
16533
|
+
ar: input.workspaceChange || void 0,
|
|
16534
|
+
ca: $ws_name__closures,
|
|
16535
|
+
cd: $ws_display_path__closures,
|
|
16536
|
+
ce: $ws_path__closures,
|
|
16537
|
+
cf: $ws_status__closures,
|
|
16538
|
+
c9: $copied__closures,
|
|
16539
|
+
cb: $ws_origin_branch__closures,
|
|
16540
|
+
cc: $ws_branch__closures,
|
|
16541
|
+
c3: $pendingAction__closures,
|
|
16542
|
+
c4: $confirmingDelete__closures,
|
|
16543
|
+
cg: $ws_repos_length__closures,
|
|
16569
16544
|
d: _existing_scope($childScope),
|
|
16570
|
-
|
|
16571
|
-
|
|
16572
|
-
|
|
16573
|
-
|
|
16574
|
-
|
|
16575
|
-
|
|
16576
|
-
|
|
16577
|
-
c6: $busy__closures,
|
|
16578
|
-
cm: $repoSkills__closures
|
|
16545
|
+
c2: $error__closures,
|
|
16546
|
+
o: _existing_scope($childScope2),
|
|
16547
|
+
r: _existing_scope($childScope3),
|
|
16548
|
+
c5: $confirmingRemove__closures,
|
|
16549
|
+
c8: $confirmingSkill__closures,
|
|
16550
|
+
c1: $skillBusy__closures,
|
|
16551
|
+
c7: $skills__closures
|
|
16579
16552
|
});
|
|
16580
16553
|
_resume_branch($scope0_id);
|
|
16581
16554
|
});
|
|
16582
16555
|
//#endregion
|
|
16583
16556
|
//#region src/tags/new-workspace.css.ts
|
|
16584
|
-
var content = "
|
|
16585
|
-
var curBase = "
|
|
16586
|
-
var archived = "
|
|
16587
|
-
var archivedHint = "
|
|
16588
|
-
var archivedCard = "
|
|
16557
|
+
var content = "_d9 _cj";
|
|
16558
|
+
var curBase = "_eg _Y _X";
|
|
16559
|
+
var archived = "_el _bq";
|
|
16560
|
+
var archivedHint = "_em _X";
|
|
16561
|
+
var archivedCard = "_en _bv";
|
|
16589
16562
|
//#endregion
|
|
16590
16563
|
//#region src/tags/icons/icon-group.marko
|
|
16591
16564
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -16605,8 +16578,8 @@ var icon_group_default = _template("eb", (input) => {
|
|
|
16605
16578
|
});
|
|
16606
16579
|
//#endregion
|
|
16607
16580
|
//#region src/tags/join-dialog.css.ts
|
|
16608
|
-
var dlg = "
|
|
16609
|
-
var hint = "
|
|
16581
|
+
var dlg = "_gZ _fF";
|
|
16582
|
+
var hint = "_g0 _X";
|
|
16610
16583
|
//#endregion
|
|
16611
16584
|
//#region src/tags/join-dialog.marko
|
|
16612
16585
|
var api$3;
|
|
@@ -16735,26 +16708,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16735
16708
|
content: _content("o12", () => {
|
|
16736
16709
|
_scope_reason();
|
|
16737
16710
|
const $scope1_id = _scope_id();
|
|
16738
|
-
_html(`<h2${_attr_class("
|
|
16711
|
+
_html(`<h2${_attr_class("_fG")}${_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
16712
|
"_Z",
|
|
16740
16713
|
"_y",
|
|
16741
|
-
"
|
|
16714
|
+
"_g2"
|
|
16742
16715
|
])} 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
16716
|
_if(() => {
|
|
16744
16717
|
if (parsed.error) {
|
|
16745
16718
|
const $scope8_id = _scope_id();
|
|
16746
|
-
_html(`<p${_attr_class([hint, "
|
|
16719
|
+
_html(`<p${_attr_class([hint, "_g1"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16747
16720
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16748
16721
|
return 0;
|
|
16749
16722
|
} else if (parsed.ok) {
|
|
16750
16723
|
const $scope3_id = _scope_id();
|
|
16751
|
-
_html(`<ul${_attr_class("
|
|
16724
|
+
_html(`<ul${_attr_class("_g3")}>`);
|
|
16752
16725
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16753
16726
|
const $scope9_id = _scope_id();
|
|
16754
|
-
_html(`<li${_attr_class("
|
|
16727
|
+
_html(`<li${_attr_class("_g4")}><span${_attr_class("_g5")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16755
16728
|
writeScope($scope9_id, {});
|
|
16756
16729
|
}, (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("
|
|
16730
|
+
_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("_g6")}><span${_attr_class("_bE")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16758
16731
|
name = _new_name;
|
|
16759
16732
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16760
16733
|
_script($scope3_id, "o8");
|
|
@@ -16791,10 +16764,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16791
16764
|
_if(() => {
|
|
16792
16765
|
if (busy && steps$2.length) {
|
|
16793
16766
|
const $scope6_id = _scope_id();
|
|
16794
|
-
_html(`<ul${_attr_class("
|
|
16767
|
+
_html(`<ul${_attr_class("_g7")}>`);
|
|
16795
16768
|
_for_of(steps$2, (step$2, i) => {
|
|
16796
16769
|
const $scope7_id = _scope_id();
|
|
16797
|
-
_html(`<li${_attr_class(["
|
|
16770
|
+
_html(`<li${_attr_class(["_g9", { ["_g8"]: i === steps$2.length - 1 }])}>`);
|
|
16798
16771
|
_if(() => {
|
|
16799
16772
|
if (i === steps$2.length - 1) {
|
|
16800
16773
|
const $scope10_id = _scope_id();
|
|
@@ -16803,7 +16776,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16803
16776
|
return 0;
|
|
16804
16777
|
} else {
|
|
16805
16778
|
const $scope11_id = _scope_id();
|
|
16806
|
-
_html(`<span${_attr_class("
|
|
16779
|
+
_html(`<span${_attr_class("_g_")}>`);
|
|
16807
16780
|
icon_check_default({ size: 14 });
|
|
16808
16781
|
_html("</span>");
|
|
16809
16782
|
writeScope($scope11_id, {});
|
|
@@ -16960,7 +16933,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16960
16933
|
}
|
|
16961
16934
|
}, "s6", $scope0_id);
|
|
16962
16935
|
const titleId = _id();
|
|
16963
|
-
_html(`<div${_attr_class("
|
|
16936
|
+
_html(`<div${_attr_class("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><div${_attr_class(content)}>`);
|
|
16964
16937
|
_set_serialize_reason({
|
|
16965
16938
|
0: _serialize_guard($scope0_reason, 2),
|
|
16966
16939
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17009,23 +16982,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17009
16982
|
return 0;
|
|
17010
16983
|
}
|
|
17011
16984
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17012
|
-
_html(`<label${_attr_class("
|
|
16985
|
+
_html(`<label${_attr_class("_eb")}><span${_attr_class("_bE")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17013
16986
|
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("
|
|
16987
|
+
}, "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("_ec")}><h2${_attr_class("_bE")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17015
16988
|
_set_serialize_reason(1);
|
|
17016
16989
|
const $childScope2 = _peek_scope_id();
|
|
17017
16990
|
icon_refresh_default({
|
|
17018
16991
|
size: 14,
|
|
17019
16992
|
class: catalogRefreshing && "_F"
|
|
17020
16993
|
});
|
|
17021
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
16994
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_ed")}>`);
|
|
17022
16995
|
_for_of(selected, (repo) => {
|
|
17023
16996
|
const $scope4_id = _scope_id();
|
|
17024
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
16997
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_ee")}>${_text_resume($scope4_id, "c", repoLabel(repo.fullName))}</span>`);
|
|
17025
16998
|
_if(() => {
|
|
17026
16999
|
if (repo.fork !== void 0) {
|
|
17027
17000
|
const $scope5_id = _scope_id();
|
|
17028
|
-
_html(`<button${_attr_class(["
|
|
17001
|
+
_html(`<button${_attr_class(["_eh", { ["_ef"]: 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
17002
|
_if(() => {
|
|
17030
17003
|
if (repo.fork) {
|
|
17031
17004
|
const $scope14_id = _scope_id();
|
|
@@ -17048,7 +17021,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17048
17021
|
_html(`<button${_attr_class([
|
|
17049
17022
|
curBase,
|
|
17050
17023
|
"_y",
|
|
17051
|
-
{ ["
|
|
17024
|
+
{ ["_ef"]: branchesFor === repo.fullName }
|
|
17052
17025
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17053
17026
|
icon_branch_default({ size: 12 });
|
|
17054
17027
|
_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 +17057,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17084
17057
|
_if(() => {
|
|
17085
17058
|
if (!selected.length) {
|
|
17086
17059
|
const $scope16_id = _scope_id();
|
|
17087
|
-
_html(`<li${_attr_class("
|
|
17060
|
+
_html(`<li${_attr_class("_bB")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
17088
17061
|
writeScope($scope16_id, {});
|
|
17089
17062
|
return 0;
|
|
17090
17063
|
}
|
|
@@ -17109,10 +17082,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17109
17082
|
_if(() => {
|
|
17110
17083
|
if (busy && steps.length) {
|
|
17111
17084
|
const $scope11_id = _scope_id();
|
|
17112
|
-
_html(`<ul${_attr_class("
|
|
17085
|
+
_html(`<ul${_attr_class("_ei")}>`);
|
|
17113
17086
|
_for_of(steps, (step, i) => {
|
|
17114
17087
|
const $scope12_id = _scope_id();
|
|
17115
|
-
_html(`<li${_attr_class(["
|
|
17088
|
+
_html(`<li${_attr_class(["_eo", { ["_ej"]: i === steps.length - 1 }])}>`);
|
|
17116
17089
|
_if(() => {
|
|
17117
17090
|
if (i === steps.length - 1) {
|
|
17118
17091
|
const $scope17_id = _scope_id();
|
|
@@ -17121,7 +17094,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17121
17094
|
return 0;
|
|
17122
17095
|
} else {
|
|
17123
17096
|
const $scope18_id = _scope_id();
|
|
17124
|
-
_html(`<span${_attr_class("
|
|
17097
|
+
_html(`<span${_attr_class("_ek")}>`);
|
|
17125
17098
|
icon_check_default({ size: 14 });
|
|
17126
17099
|
_html("</span>");
|
|
17127
17100
|
writeScope($scope18_id, {});
|
|
@@ -17135,7 +17108,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17135
17108
|
return 0;
|
|
17136
17109
|
}
|
|
17137
17110
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
17138
|
-
_html(`<div${_attr_class("
|
|
17111
|
+
_html(`<div${_attr_class("_d_")}>`);
|
|
17139
17112
|
_if(() => {
|
|
17140
17113
|
if (input.onExit || busy) {
|
|
17141
17114
|
const $scope1_id = _scope_id();
|
|
@@ -17148,15 +17121,15 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17148
17121
|
_html(`<button type=button${_attr_class([
|
|
17149
17122
|
btnLg,
|
|
17150
17123
|
"_r",
|
|
17151
|
-
"
|
|
17124
|
+
"_ea"
|
|
17152
17125
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
17153
17126
|
_if(() => {
|
|
17154
17127
|
if (archived$1.length) {
|
|
17155
17128
|
const $scope6_id = _scope_id();
|
|
17156
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17129
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_ec")}><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
17130
|
_for_of(archived$1, (ws) => {
|
|
17158
17131
|
const $scope7_id = _scope_id();
|
|
17159
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
17132
|
+
_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
17133
|
_if(() => {
|
|
17161
17134
|
if (restoring === ws.id) {
|
|
17162
17135
|
const $scope19_id = _scope_id();
|
|
@@ -17236,12 +17209,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17236
17209
|
});
|
|
17237
17210
|
_resume_branch($scope0_id);
|
|
17238
17211
|
});
|
|
17239
|
-
var kbtn = "
|
|
17240
|
-
var sessOpen = "
|
|
17241
|
-
var sessRename = "
|
|
17242
|
-
var dpadPaste = "
|
|
17243
|
-
var repeat = "
|
|
17244
|
-
var dpadEsc = "
|
|
17212
|
+
var kbtn = "_e5 _6 _l";
|
|
17213
|
+
var sessOpen = "_gI _I";
|
|
17214
|
+
var sessRename = "_gM _J";
|
|
17215
|
+
var dpadPaste = "_gU _gT";
|
|
17216
|
+
var repeat = "_gV _gT";
|
|
17217
|
+
var dpadEsc = "_gX _gT";
|
|
17245
17218
|
//#endregion
|
|
17246
17219
|
//#region src/tags/term-find.marko
|
|
17247
17220
|
var term_find_default = _template("D", (input) => {
|
|
@@ -17278,19 +17251,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
17278
17251
|
const canStep = hasQuery && open;
|
|
17279
17252
|
const keybar = input.placement === "keybar";
|
|
17280
17253
|
_html(`<div${_attr_class([
|
|
17281
|
-
"
|
|
17282
|
-
keybar ? "
|
|
17283
|
-
!open && "
|
|
17284
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17254
|
+
"_h8",
|
|
17255
|
+
keybar ? "_h_" : "_h9",
|
|
17256
|
+
!open && "_ib"
|
|
17257
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_h3", keybar ? "_ia" : "_h5"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17285
17258
|
if (!open) return;
|
|
17286
17259
|
query = v;
|
|
17287
17260
|
live.query = v;
|
|
17288
17261
|
run(0);
|
|
17289
|
-
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17262
|
+
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "_ic"])} 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 && "_id"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17290
17263
|
icon_arrow_up_default({ size: 14 });
|
|
17291
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17264
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_id"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17292
17265
|
icon_arrow_down_default({ size: 14 });
|
|
17293
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17266
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_id"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17294
17267
|
icon_xmark_default({ size: 14 });
|
|
17295
17268
|
_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
17269
|
const $return = focusInput;
|
|
@@ -17711,7 +17684,7 @@ var term_default = _template("E", (input) => {
|
|
|
17711
17684
|
trapOpen = true;
|
|
17712
17685
|
}
|
|
17713
17686
|
}, "E13", $scope0_id);
|
|
17714
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17687
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_gu")}><div${_attr_class("_gv")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17715
17688
|
_if(() => {
|
|
17716
17689
|
if (findOpen) {
|
|
17717
17690
|
const $scope12_id = _scope_id();
|
|
@@ -17741,7 +17714,7 @@ var term_default = _template("E", (input) => {
|
|
|
17741
17714
|
_if(() => {
|
|
17742
17715
|
if (uploading) {
|
|
17743
17716
|
const $scope21_id = _scope_id();
|
|
17744
|
-
_html(`<div${_attr_class("
|
|
17717
|
+
_html(`<div${_attr_class("_gB")}>uploading…</div>`);
|
|
17745
17718
|
writeScope($scope21_id, {});
|
|
17746
17719
|
return 0;
|
|
17747
17720
|
}
|
|
@@ -17749,7 +17722,7 @@ var term_default = _template("E", (input) => {
|
|
|
17749
17722
|
_if(() => {
|
|
17750
17723
|
if (copiedFlash) {
|
|
17751
17724
|
const $scope22_id = _scope_id();
|
|
17752
|
-
_html(`<div${_attr_class("
|
|
17725
|
+
_html(`<div${_attr_class("_gA")}>Copied</div>`);
|
|
17753
17726
|
writeScope($scope22_id, {});
|
|
17754
17727
|
return 0;
|
|
17755
17728
|
}
|
|
@@ -17758,7 +17731,7 @@ var term_default = _template("E", (input) => {
|
|
|
17758
17731
|
_if(() => {
|
|
17759
17732
|
if (trapOpen) {
|
|
17760
17733
|
const $scope11_id = _scope_id();
|
|
17761
|
-
_html(`<div${_attr_class("
|
|
17734
|
+
_html(`<div${_attr_class("_gC")}><div${_attr_class("_gD")}><p${_attr_class("_gY")}>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
17735
|
_script($scope11_id, "E28");
|
|
17763
17736
|
_script($scope11_id, "E29");
|
|
17764
17737
|
writeScope($scope11_id, {});
|
|
@@ -17836,7 +17809,7 @@ var term_default = _template("E", (input) => {
|
|
|
17836
17809
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
17837
17810
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
17838
17811
|
}, "E19", $scope4_id);
|
|
17839
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17812
|
+
_html(`<button${_attr_class([kbtn, "_gE"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
17840
17813
|
_set_serialize_reason({
|
|
17841
17814
|
1: $sg__input_agent__OR__input_sessionState,
|
|
17842
17815
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -17850,7 +17823,7 @@ var term_default = _template("E", (input) => {
|
|
|
17850
17823
|
"_A",
|
|
17851
17824
|
"_bc",
|
|
17852
17825
|
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(["__", "
|
|
17826
|
+
])}></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(["__", "_gF"])}>`);
|
|
17854
17827
|
_if(() => {
|
|
17855
17828
|
if ((input.sessions || []).length > 0) {
|
|
17856
17829
|
const $scope5_id = _scope_id();
|
|
@@ -17866,7 +17839,7 @@ var term_default = _template("E", (input) => {
|
|
|
17866
17839
|
const $scope6_id = _scope_id();
|
|
17867
17840
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17868
17841
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
17869
|
-
_html(`<div${_attr_class(["
|
|
17842
|
+
_html(`<div${_attr_class(["_gH", { ["_gG"]: s.id === input.sessionId }])}>`);
|
|
17870
17843
|
_if(() => {
|
|
17871
17844
|
if (renamingId === s.id) {
|
|
17872
17845
|
const $scope24_id = _scope_id();
|
|
@@ -17898,7 +17871,7 @@ var term_default = _template("E", (input) => {
|
|
|
17898
17871
|
agent: activeAgent(s),
|
|
17899
17872
|
size: 14
|
|
17900
17873
|
});
|
|
17901
|
-
_html(`<span${_attr_class("
|
|
17874
|
+
_html(`<span${_attr_class("_gJ")}><span${_attr_class("_gL")}>${_text_resume($scope7_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17902
17875
|
_if(() => {
|
|
17903
17876
|
if (s.id === input.sessionId) {
|
|
17904
17877
|
const $scope23_id = _scope_id();
|
|
@@ -17910,7 +17883,7 @@ var term_default = _template("E", (input) => {
|
|
|
17910
17883
|
const $childScope6 = _peek_scope_id();
|
|
17911
17884
|
usage_pcts_default({
|
|
17912
17885
|
agent: plan,
|
|
17913
|
-
class: "
|
|
17886
|
+
class: "_gK"
|
|
17914
17887
|
});
|
|
17915
17888
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
17916
17889
|
return 0;
|
|
@@ -17927,7 +17900,7 @@ var term_default = _template("E", (input) => {
|
|
|
17927
17900
|
_if(() => {
|
|
17928
17901
|
if (input.onRenameSession) {
|
|
17929
17902
|
const $scope25_id = _scope_id();
|
|
17930
|
-
_html(`<button${_attr_class(["
|
|
17903
|
+
_html(`<button${_attr_class(["_gN", "_gO"])} title="Rename session">`);
|
|
17931
17904
|
icon_edit_default({ size: 12 });
|
|
17932
17905
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
17933
17906
|
_script($scope25_id, "E32");
|
|
@@ -17939,11 +17912,11 @@ var term_default = _template("E", (input) => {
|
|
|
17939
17912
|
if (input.onCloseSession) {
|
|
17940
17913
|
const $scope8_id = _scope_id();
|
|
17941
17914
|
_html(`<button${_attr_class([
|
|
17942
|
-
"
|
|
17915
|
+
"_gN",
|
|
17943
17916
|
"_8",
|
|
17944
17917
|
{ ["_s"]: armedClose === s.id }
|
|
17945
17918
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
17946
|
-
icon_xmark_default({ size:
|
|
17919
|
+
icon_xmark_default({ size: 14 });
|
|
17947
17920
|
_html(`</button>${_el_resume($scope8_id, "a")}`);
|
|
17948
17921
|
_script($scope8_id, "E33");
|
|
17949
17922
|
_subscribe($si__input_sessions && $for_content__s_id__closures, _subscribe($if_content3__armedClose__closures, writeScope($scope8_id, { _: _scope_with_id($scope7_id) })));
|
|
@@ -17981,7 +17954,7 @@ var term_default = _template("E", (input) => {
|
|
|
17981
17954
|
return 0;
|
|
17982
17955
|
}
|
|
17983
17956
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
17984
|
-
_html(`<div${_attr_class("
|
|
17957
|
+
_html(`<div${_attr_class("_gP")}><span${_attr_class("_gQ")}>New session</span><div${_attr_class("_gR")}>`);
|
|
17985
17958
|
_for_of(["shell", ...input.agents || []], (agent) => {
|
|
17986
17959
|
const $scope9_id = _scope_id();
|
|
17987
17960
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -18026,9 +17999,9 @@ var term_default = _template("E", (input) => {
|
|
|
18026
17999
|
const dpadOpenBox = { open: false };
|
|
18027
18000
|
_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
18001
|
icon_dpad_default({ size: 16 });
|
|
18029
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
18002
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_e4"]: 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
18003
|
icon_search_default({ size: 16 });
|
|
18031
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
18004
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_e4"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
18032
18005
|
icon_keyboard_default({ size: 16 });
|
|
18033
18006
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
18034
18007
|
_script($scope10_id, "E38");
|
|
@@ -18044,7 +18017,7 @@ var term_default = _template("E", (input) => {
|
|
|
18044
18017
|
overlay: attrTag({ content: _content_resume("E49", () => {
|
|
18045
18018
|
_scope_reason();
|
|
18046
18019
|
const $scope15_id = _scope_id();
|
|
18047
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
18020
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_gS")}>`);
|
|
18048
18021
|
forOf(DPAD, (row) => {
|
|
18049
18022
|
const $scope16_id = _scope_id();
|
|
18050
18023
|
forOf(row, (cell) => {
|
|
@@ -18064,7 +18037,7 @@ var term_default = _template("E", (input) => {
|
|
|
18064
18037
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
18065
18038
|
} else {
|
|
18066
18039
|
const $scope19_id = _scope_id();
|
|
18067
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
18040
|
+
_html(`<button${_attr_class([repeat, { ["_gW"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
18068
18041
|
if (cell.icon === "arrow-up") {
|
|
18069
18042
|
_scope_id();
|
|
18070
18043
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -18393,10 +18366,10 @@ var work_view_default = _template("I", (input) => {
|
|
|
18393
18366
|
toggleDiff();
|
|
18394
18367
|
}
|
|
18395
18368
|
}, "I14", $scope0_id);
|
|
18396
|
-
_html(`<div${_attr_class(["
|
|
18397
|
-
["
|
|
18398
|
-
["
|
|
18399
|
-
}])}><div${_attr_class("
|
|
18369
|
+
_html(`<div${_attr_class(["_bj", {
|
|
18370
|
+
["_bh"]: view === "nav",
|
|
18371
|
+
["_bi"]: !input.active
|
|
18372
|
+
}])}><div${_attr_class("_bk")}>`);
|
|
18400
18373
|
_if(() => {
|
|
18401
18374
|
if (error) {
|
|
18402
18375
|
const $scope9_id = _scope_id();
|
|
@@ -18419,7 +18392,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18419
18392
|
_if(() => {
|
|
18420
18393
|
if (diffMounted && ws) {
|
|
18421
18394
|
const $scope1_id = _scope_id();
|
|
18422
|
-
_html(`<div${_attr_class("
|
|
18395
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
18423
18396
|
_set_serialize_reason({
|
|
18424
18397
|
0: $sg__input_workspace,
|
|
18425
18398
|
1: $sg__input_workspace,
|
|
@@ -18476,7 +18449,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18476
18449
|
_if(() => {
|
|
18477
18450
|
if (manageMounted && ws) {
|
|
18478
18451
|
const $scope2_id = _scope_id();
|
|
18479
|
-
_html(`<div${_attr_class("
|
|
18452
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
18480
18453
|
_set_serialize_reason({
|
|
18481
18454
|
0: $sg__input_workspace,
|
|
18482
18455
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -18502,7 +18475,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18502
18475
|
_if(() => {
|
|
18503
18476
|
if (settingsMounted) {
|
|
18504
18477
|
const $scope3_id = _scope_id();
|
|
18505
|
-
_html(`<div${_attr_class("
|
|
18478
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
18506
18479
|
_set_serialize_reason({
|
|
18507
18480
|
0: _serialize_guard($scope0_reason, 0),
|
|
18508
18481
|
1: $sg__input_workspace,
|
|
@@ -18544,7 +18517,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18544
18517
|
_if(() => {
|
|
18545
18518
|
if (newMounted) {
|
|
18546
18519
|
const $scope4_id = _scope_id();
|
|
18547
|
-
_html(`<div${_attr_class("
|
|
18520
|
+
_html(`<div${_attr_class("_bl")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18548
18521
|
_set_serialize_reason({
|
|
18549
18522
|
0: 1,
|
|
18550
18523
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -18569,13 +18542,13 @@ var work_view_default = _template("I", (input) => {
|
|
|
18569
18542
|
return 0;
|
|
18570
18543
|
}
|
|
18571
18544
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
18572
|
-
_html(`<div${_attr_class(["
|
|
18545
|
+
_html(`<div${_attr_class(["_bn", { ["_bm"]: view !== "term" }])}>`);
|
|
18573
18546
|
_if(() => {
|
|
18574
18547
|
if (ws && shownSessions) {
|
|
18575
18548
|
const $scope5_id = _scope_id();
|
|
18576
18549
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18577
18550
|
const $scope6_id = _scope_id();
|
|
18578
|
-
_html(`<div${_attr_class("
|
|
18551
|
+
_html(`<div${_attr_class("_bo")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18579
18552
|
_set_serialize_reason({
|
|
18580
18553
|
0: 1,
|
|
18581
18554
|
1: 1,
|
|
@@ -18636,7 +18609,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18636
18609
|
_if(() => {
|
|
18637
18610
|
if (!shownSessions.length && view === "term") {
|
|
18638
18611
|
const $scope7_id = _scope_id();
|
|
18639
|
-
_html(`<div${_attr_class("
|
|
18612
|
+
_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
18613
|
_script($scope7_id, "I43");
|
|
18641
18614
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
18642
18615
|
return 0;
|
|
@@ -18646,7 +18619,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18646
18619
|
return 0;
|
|
18647
18620
|
} else if (ws) {
|
|
18648
18621
|
const $scope11_id = _scope_id();
|
|
18649
|
-
_html(`<p${_attr_class("
|
|
18622
|
+
_html(`<p${_attr_class("_bC")}>Loading sessions…</p>`);
|
|
18650
18623
|
writeScope($scope11_id, {});
|
|
18651
18624
|
return 1;
|
|
18652
18625
|
}
|
|
@@ -27501,4 +27474,4 @@ server.listen(port, () => {
|
|
|
27501
27474
|
//#endregion
|
|
27502
27475
|
export {};
|
|
27503
27476
|
|
|
27504
|
-
;var __MARKO_MANIFEST__={"
|
|
27477
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-D1GHVHSZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D1GHVHSZ.css\"",">",2,"stylesheet#/assets/app-page-BtKzAvm_.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BtKzAvm_.css\"",">"],"defer":[2,"/assets/new-CCu-v7-K.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CCu-v7-K.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/_BLdF76o0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BLdF76o0.js\"",">",2,"modulepreload#/assets/_DiibF_xX.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiibF_xX.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-D1GHVHSZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D1GHVHSZ.css\"",">",2,"stylesheet#/assets/app-page-BtKzAvm_.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BtKzAvm_.css\"",">"],"defer":[2,"/assets/settings-CCu-v7-K.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CCu-v7-K.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/_BLdF76o0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BLdF76o0.js\"",">",2,"modulepreload#/assets/_DiibF_xX.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiibF_xX.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-D1GHVHSZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D1GHVHSZ.css\"",">",2,"stylesheet#/assets/app-page-BtKzAvm_.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BtKzAvm_.css\"",">"],"defer":[2,"/assets/w-CCu-v7-K.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CCu-v7-K.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/_BLdF76o0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BLdF76o0.js\"",">",2,"modulepreload#/assets/_DiibF_xX.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiibF_xX.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-D1GHVHSZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D1GHVHSZ.css\"",">",2,"stylesheet#/assets/app-page-BtKzAvm_.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BtKzAvm_.css\"",">"],"defer":[2,"/assets/w._-CCu-v7-K.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CCu-v7-K.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/_BLdF76o0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BLdF76o0.js\"",">",2,"modulepreload#/assets/_DiibF_xX.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiibF_xX.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-D1GHVHSZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-D1GHVHSZ.css\"",">",2,"stylesheet#/assets/app-page-BtKzAvm_.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BtKzAvm_.css\"",">"],"defer":[2,"/assets/w._-CSLiTL2U.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CSLiTL2U.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/_BLdF76o0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BLdF76o0.js\"",">",2,"modulepreload#/assets/_DiibF_xX.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiibF_xX.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-BH0fBbPD.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-BH0fBbPD.css\"",">",2,"stylesheet#/assets/icon-arrow-down-D1GHVHSZ.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-D1GHVHSZ.css\"",">"],"defer":[2,"/assets/diff-view-JxteEV2A.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-JxteEV2A.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|