@dylanpiercey/work 0.0.151 → 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 +605 -624
- 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/{_BsfRtSiV.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/{_BzqxRMXE.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-D5qOiCpR.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/_8WQUof_k.js +0 -1
- package/dist/public/assets/_B1cFfpzS.js +0 -1
- package/dist/public/assets/_BLFuD0JQ.js +0 -1
- package/dist/public/assets/_BYV5dJfc.js +0 -1
- package/dist/public/assets/_BbcbH62W.js +0 -1
- package/dist/public/assets/_BnMxmXCs.js +0 -1
- package/dist/public/assets/_BovGqIGN.js +0 -1
- package/dist/public/assets/_BphNmFmX.js +0 -1
- package/dist/public/assets/_BsfRtSiV.js.br +0 -0
- package/dist/public/assets/_BvU8GwLR.js +0 -1
- package/dist/public/assets/_BzqxRMXE.js.br +0 -0
- package/dist/public/assets/_C6wL9S_0.js +0 -1
- package/dist/public/assets/_C7bv6wyP.js +0 -1
- package/dist/public/assets/_CJ9Wzzbm.js +0 -1
- package/dist/public/assets/_CUjBnNSF.js +0 -83
- package/dist/public/assets/_CUjBnNSF.js.br +0 -0
- package/dist/public/assets/_CvsivVIw.js +0 -1
- package/dist/public/assets/_Cykj0g_Z.js +0 -1
- package/dist/public/assets/_DjgOeHnF.js +0 -1
- package/dist/public/assets/_Ds0Mn9q6.js +0 -1
- package/dist/public/assets/_DyKArmgy.js +0 -1
- package/dist/public/assets/_P0FnQjCW.js +0 -1
- package/dist/public/assets/_XpyNnjiC.js +0 -1
- package/dist/public/assets/app-page-BOW-YrEi.css +0 -1
- package/dist/public/assets/app-page-BOW-YrEi.css.br +0 -0
- package/dist/public/assets/diff-view-BemcbKA3.js +0 -2
- package/dist/public/assets/diff-view-w6cnq_W8.css +0 -1
- package/dist/public/assets/diff-view-w6cnq_W8.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-D5qOiCpR.css.br +0 -0
- package/dist/public/assets/new-Cm_YcSJD.js +0 -1
- package/dist/public/assets/settings-Cm_YcSJD.js +0 -1
- package/dist/public/assets/w-Cm_YcSJD.js +0 -1
- package/dist/public/assets/w._-Cm_YcSJD.js +0 -1
- package/dist/public/assets/w._-YRmcsnu6.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6933,14 +6933,14 @@ function repoLabel(fullName) {
|
|
|
6933
6933
|
return fullName;
|
|
6934
6934
|
}
|
|
6935
6935
|
var toastKind = {
|
|
6936
|
-
error: "
|
|
6937
|
-
warn: "
|
|
6938
|
-
info: "
|
|
6936
|
+
error: "_bI",
|
|
6937
|
+
warn: "_bJ",
|
|
6938
|
+
info: "_bK"
|
|
6939
6939
|
};
|
|
6940
6940
|
var toastTitle = {
|
|
6941
|
-
error: "
|
|
6942
|
-
warn: "
|
|
6943
|
-
info: "
|
|
6941
|
+
error: "_bL",
|
|
6942
|
+
warn: "_bM",
|
|
6943
|
+
info: "_bN"
|
|
6944
6944
|
};
|
|
6945
6945
|
//#endregion
|
|
6946
6946
|
//#region src/styles/tokens.css.ts
|
|
@@ -6986,18 +6986,18 @@ var toast_default = _template("F", (input) => {
|
|
|
6986
6986
|
const kind = inputKind || "error";
|
|
6987
6987
|
const placement = inputPlacement || "float";
|
|
6988
6988
|
const placementClass = {
|
|
6989
|
-
float: "
|
|
6990
|
-
inline: "
|
|
6989
|
+
float: "_bG",
|
|
6990
|
+
inline: "_bH"
|
|
6991
6991
|
}[placement];
|
|
6992
6992
|
_html(`<div${_attr_class([
|
|
6993
|
-
"
|
|
6993
|
+
"_bF",
|
|
6994
6994
|
toastKind[kind],
|
|
6995
6995
|
placementClass,
|
|
6996
6996
|
inputClass
|
|
6997
6997
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
6998
6998
|
class: 1,
|
|
6999
6999
|
role: 1
|
|
7000
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
7000
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_bO")}>`);
|
|
7001
7001
|
_if(() => {
|
|
7002
7002
|
if (title) {
|
|
7003
7003
|
const $scope1_id = _scope_id();
|
|
@@ -7009,7 +7009,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7009
7009
|
_if(() => {
|
|
7010
7010
|
if (content) {
|
|
7011
7011
|
const $scope2_id = _scope_id();
|
|
7012
|
-
_html(`<div${_attr_class("
|
|
7012
|
+
_html(`<div${_attr_class("_bP")}>`);
|
|
7013
7013
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
7014
7014
|
_html("</div>");
|
|
7015
7015
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7020,7 +7020,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7020
7020
|
_if(() => {
|
|
7021
7021
|
if (action || onDismiss) {
|
|
7022
7022
|
const $scope3_id = _scope_id();
|
|
7023
|
-
_html(`<div${_attr_class(["
|
|
7023
|
+
_html(`<div${_attr_class(["_bQ", action && "_bR"])}>`);
|
|
7024
7024
|
_if(() => {
|
|
7025
7025
|
if (action) {
|
|
7026
7026
|
const $scope4_id = _scope_id();
|
|
@@ -7032,7 +7032,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7032
7032
|
_if(() => {
|
|
7033
7033
|
if (onDismiss) {
|
|
7034
7034
|
const $scope5_id = _scope_id();
|
|
7035
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7035
|
+
_html(`<button${_attr_class([iconBtnRow, "_bS"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
7036
7036
|
icon_xmark_default({ size: 14 });
|
|
7037
7037
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
7038
7038
|
_script($scope5_id, "F0");
|
|
@@ -7245,13 +7245,13 @@ function applyInstance(inst) {
|
|
|
7245
7245
|
}
|
|
7246
7246
|
//#endregion
|
|
7247
7247
|
//#region src/tags/settings-page.css.ts
|
|
7248
|
-
var content$2 = "
|
|
7249
|
-
var agentGrid = "
|
|
7250
|
-
var toolGrid = "
|
|
7251
|
-
var toolRow = "
|
|
7252
|
-
var themeSeg = "
|
|
7253
|
-
var checkList = "
|
|
7254
|
-
var flatCardRow = "
|
|
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
7255
|
var pop$1 = "_dY __";
|
|
7256
7256
|
var spinner = "_d1 _2 _G";
|
|
7257
7257
|
var busy = "_d5 _d4";
|
|
@@ -7298,18 +7298,18 @@ var icon_back_default = _template("O", (input) => {
|
|
|
7298
7298
|
var page_head_default = _template("t", (input) => {
|
|
7299
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);
|
|
7300
7300
|
const $scope0_id = _scope_id();
|
|
7301
|
-
_html(`<header${_attr_class("
|
|
7301
|
+
_html(`<header${_attr_class("_cl")}>`);
|
|
7302
7302
|
_if(() => {
|
|
7303
7303
|
if (input.backHref) {
|
|
7304
7304
|
const $scope1_id = _scope_id();
|
|
7305
|
-
_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")}>`);
|
|
7306
7306
|
icon_back_default({ size: 16 });
|
|
7307
7307
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7308
7308
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7309
7309
|
return 0;
|
|
7310
7310
|
} else if (input.onBack) {
|
|
7311
7311
|
const $scope2_id = _scope_id();
|
|
7312
|
-
_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")}>`);
|
|
7313
7313
|
icon_back_default({ size: 16 });
|
|
7314
7314
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7315
7315
|
_script($scope2_id, "t0");
|
|
@@ -7317,11 +7317,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7317
7317
|
return 1;
|
|
7318
7318
|
}
|
|
7319
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);
|
|
7320
|
-
_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))}`);
|
|
7321
7321
|
_if(() => {
|
|
7322
7322
|
if (input.meta) {
|
|
7323
7323
|
const $scope3_id = _scope_id();
|
|
7324
|
-
_html(`<p${_attr_class("
|
|
7324
|
+
_html(`<p${_attr_class("_co")}>`);
|
|
7325
7325
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7326
7326
|
_html("</p>");
|
|
7327
7327
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7332,7 +7332,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7332
7332
|
_if(() => {
|
|
7333
7333
|
if (input.actions) {
|
|
7334
7334
|
const $scope4_id = _scope_id();
|
|
7335
|
-
_html(`<div${_attr_class("
|
|
7335
|
+
_html(`<div${_attr_class("_cp")}>`);
|
|
7336
7336
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7337
7337
|
_html("</div>");
|
|
7338
7338
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7400,7 +7400,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7400
7400
|
n: $badge__closures
|
|
7401
7401
|
});
|
|
7402
7402
|
});
|
|
7403
|
-
var usageNote = "
|
|
7403
|
+
var usageNote = "_fb _X";
|
|
7404
7404
|
//#endregion
|
|
7405
7405
|
//#region src/tags/icons/icon-warning.marko
|
|
7406
7406
|
var icon_warning_default = _template("rb", (input) => {
|
|
@@ -7430,11 +7430,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7430
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);
|
|
7431
7431
|
const $scope0_id = _scope_id();
|
|
7432
7432
|
const agent = input.agent;
|
|
7433
|
-
_html(`<div${_attr_class(["
|
|
7433
|
+
_html(`<div${_attr_class(["_e6", { ["_e7"]: input.hideName }])}><div${_attr_class("_e8")}>`);
|
|
7434
7434
|
_if(() => {
|
|
7435
7435
|
if (!input.hideName) {
|
|
7436
7436
|
const $scope1_id = _scope_id();
|
|
7437
|
-
_html(`<strong${_attr_class("
|
|
7437
|
+
_html(`<strong${_attr_class("_fq")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7438
7438
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7439
7439
|
return 0;
|
|
7440
7440
|
}
|
|
@@ -7442,7 +7442,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7442
7442
|
_if(() => {
|
|
7443
7443
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7444
7444
|
const $scope2_id = _scope_id();
|
|
7445
|
-
_html(`<span${_attr_class("
|
|
7445
|
+
_html(`<span${_attr_class("_e9")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7446
7446
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7447
7447
|
return 0;
|
|
7448
7448
|
}
|
|
@@ -7450,21 +7450,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7450
7450
|
_if(() => {
|
|
7451
7451
|
if (agent.stale_seconds != null) {
|
|
7452
7452
|
const $scope3_id = _scope_id();
|
|
7453
|
-
_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`)}>`);
|
|
7454
7454
|
icon_warning_default({ size: 12 });
|
|
7455
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)}`);
|
|
7456
7456
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7457
7457
|
return 0;
|
|
7458
7458
|
}
|
|
7459
7459
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7460
|
-
_html(`</div><div${_attr_class(["
|
|
7460
|
+
_html(`</div><div${_attr_class(["_fa", { ["_fr"]: agent.stale_seconds != null }])}>`);
|
|
7461
7461
|
_for_of(agent.windows || [], (win) => {
|
|
7462
7462
|
const $scope4_id = _scope_id();
|
|
7463
7463
|
const pct = pctText(win.used_percent);
|
|
7464
7464
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7465
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7466
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7467
|
-
_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")}>`);
|
|
7468
7468
|
_if(() => {
|
|
7469
7469
|
if (label) {
|
|
7470
7470
|
const $scope6_id = _scope_id();
|
|
@@ -7581,14 +7581,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7581
7581
|
localCode = null;
|
|
7582
7582
|
}
|
|
7583
7583
|
}, "C0", $scope0_id);
|
|
7584
|
-
_html(`<div${_attr_class(["
|
|
7584
|
+
_html(`<div${_attr_class(["_fs", input.class])}>`);
|
|
7585
7585
|
_for_of(input.items, (s) => {
|
|
7586
7586
|
const $scope1_id = _scope_id();
|
|
7587
|
-
_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>`);
|
|
7588
7588
|
_if(() => {
|
|
7589
7589
|
if (!busy) {
|
|
7590
7590
|
const $scope2_id = _scope_id();
|
|
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, "
|
|
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")}`);
|
|
7592
7592
|
_script($scope2_id, "C1");
|
|
7593
7593
|
writeScope($scope2_id, {});
|
|
7594
7594
|
return 0;
|
|
@@ -7603,13 +7603,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7603
7603
|
_if(() => {
|
|
7604
7604
|
if (localBusy && localCode) {
|
|
7605
7605
|
const $scope4_id = _scope_id();
|
|
7606
|
-
_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>`);
|
|
7607
7607
|
_script($scope4_id, "C2");
|
|
7608
7608
|
writeScope($scope4_id, {});
|
|
7609
7609
|
return 0;
|
|
7610
7610
|
} else if (localBusy) {
|
|
7611
7611
|
const $scope6_id = _scope_id();
|
|
7612
|
-
_html(`<div${_attr_class(["
|
|
7612
|
+
_html(`<div${_attr_class(["_ft", "_fA"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7613
7613
|
writeScope($scope6_id, {});
|
|
7614
7614
|
return 1;
|
|
7615
7615
|
}
|
|
@@ -7617,14 +7617,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7617
7617
|
_if(() => {
|
|
7618
7618
|
if (localError) {
|
|
7619
7619
|
const $scope5_id = _scope_id();
|
|
7620
|
-
_html(`<p${_attr_class(["
|
|
7620
|
+
_html(`<p${_attr_class(["_ft", "_fD"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7621
7621
|
writeScope($scope5_id, {});
|
|
7622
7622
|
return 0;
|
|
7623
7623
|
}
|
|
7624
7624
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7625
7625
|
_for_of(skipped, (s) => {
|
|
7626
7626
|
const $scope3_id = _scope_id();
|
|
7627
|
-
_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>`);
|
|
7628
7628
|
_script($scope3_id, "C3");
|
|
7629
7629
|
writeScope($scope3_id, {
|
|
7630
7630
|
i: s?.org,
|
|
@@ -7865,7 +7865,7 @@ var icon_moon_default = _template("ib", (input) => {
|
|
|
7865
7865
|
});
|
|
7866
7866
|
//#endregion
|
|
7867
7867
|
//#region src/tags/prompt-dialog.css.ts
|
|
7868
|
-
var promptDlg = "
|
|
7868
|
+
var promptDlg = "_fJ _fF";
|
|
7869
7869
|
//#endregion
|
|
7870
7870
|
//#region src/tags/dialog-close.marko
|
|
7871
7871
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7889,7 +7889,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7889
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;
|
|
7890
7890
|
const dismissable = input.dismissable !== false;
|
|
7891
7891
|
let open = input.open;
|
|
7892
|
-
_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({
|
|
7893
7893
|
...htmlInput,
|
|
7894
7894
|
open: null
|
|
7895
7895
|
}, {
|
|
@@ -7899,20 +7899,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7899
7899
|
closedby: 1,
|
|
7900
7900
|
"on-cancel": 1,
|
|
7901
7901
|
"on-close": 1
|
|
7902
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7902
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_fH")}>`);
|
|
7903
7903
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7904
7904
|
_html("</div>");
|
|
7905
7905
|
_if(() => {
|
|
7906
7906
|
if (footer) {
|
|
7907
7907
|
const $scope1_id = _scope_id();
|
|
7908
|
-
_html(`<form method=dialog${_attr_class("
|
|
7908
|
+
_html(`<form method=dialog${_attr_class("_fI")}>`);
|
|
7909
7909
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7910
7910
|
_html("</form>");
|
|
7911
7911
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7912
7912
|
return 0;
|
|
7913
7913
|
} else if (input.openChange) {
|
|
7914
7914
|
const $scope2_id = _scope_id();
|
|
7915
|
-
_html(`<form method=dialog${_attr_class("
|
|
7915
|
+
_html(`<form method=dialog${_attr_class("_fI")}>`);
|
|
7916
7916
|
dialog_close_default({
|
|
7917
7917
|
class: ["_q", "_r"],
|
|
7918
7918
|
content: _content("r0", () => {
|
|
@@ -7996,7 +7996,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
7996
7996
|
content: _content("u7", () => {
|
|
7997
7997
|
_scope_reason();
|
|
7998
7998
|
const $scope2_id = _scope_id();
|
|
7999
|
-
_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) => {
|
|
8000
8000
|
value = _new_value;
|
|
8001
8001
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8002
8002
|
_script($scope2_id, "u5");
|
|
@@ -8518,7 +8518,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8518
8518
|
const githubId = _id();
|
|
8519
8519
|
const backupId = _id();
|
|
8520
8520
|
const machineId = _id();
|
|
8521
|
-
_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)}>`);
|
|
8522
8522
|
_set_serialize_reason({
|
|
8523
8523
|
0: _serialize_guard($scope0_reason, 4),
|
|
8524
8524
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8530,7 +8530,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8530
8530
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x44", () => {
|
|
8531
8531
|
_scope_reason();
|
|
8532
8532
|
const $scope4_id = _scope_id();
|
|
8533
|
-
_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)}.`);
|
|
8534
8534
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8535
8535
|
_resume_branch($scope4_id);
|
|
8536
8536
|
}, $scope0_id) });
|
|
@@ -8583,16 +8583,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8583
8583
|
_if(() => {
|
|
8584
8584
|
if (selfUpdatePending || selfUpdating) {
|
|
8585
8585
|
const $scope44_id = _scope_id();
|
|
8586
|
-
_html(`<div${_attr_class("
|
|
8586
|
+
_html(`<div${_attr_class("_dm")} role=status><div${_attr_class("_dn")}>`);
|
|
8587
8587
|
_if(() => {
|
|
8588
8588
|
if (selfUpdating) {
|
|
8589
8589
|
const $scope79_id = _scope_id();
|
|
8590
|
-
_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>`);
|
|
8591
8591
|
writeScope($scope79_id, {});
|
|
8592
8592
|
return 0;
|
|
8593
8593
|
} else {
|
|
8594
8594
|
const $scope45_id = _scope_id();
|
|
8595
|
-
_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>`);
|
|
8596
8596
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8597
8597
|
return 1;
|
|
8598
8598
|
}
|
|
@@ -8611,11 +8611,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8611
8611
|
return 0;
|
|
8612
8612
|
}
|
|
8613
8613
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
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("
|
|
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")}>`);
|
|
8615
8615
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8616
8616
|
setPreferred(v);
|
|
8617
8617
|
}, "x2", $scope0_id), () => {
|
|
8618
|
-
_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">`);
|
|
8619
8619
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8620
8620
|
const $scope80_id = _scope_id();
|
|
8621
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)}`);
|
|
@@ -8629,7 +8629,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8629
8629
|
const rows = lone ? [] : a.instances;
|
|
8630
8630
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8631
8631
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8632
|
-
_html(`<li${_attr_class(["_bv", "
|
|
8632
|
+
_html(`<li${_attr_class(["_bv", "_cL"])}><div${_attr_class(["_cO", { ["_cR"]: lone && !lone.enabled }])}>`);
|
|
8633
8633
|
_set_serialize_reason(12);
|
|
8634
8634
|
const $childScope3 = _peek_scope_id();
|
|
8635
8635
|
icon_agent_default({
|
|
@@ -8649,7 +8649,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8649
8649
|
_if(() => {
|
|
8650
8650
|
if (active.has(a.id)) {
|
|
8651
8651
|
const $scope12_id = _scope_id();
|
|
8652
|
-
_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>`);
|
|
8653
8653
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8654
8654
|
return 0;
|
|
8655
8655
|
} else if (!a.installed) {
|
|
@@ -8682,15 +8682,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8682
8682
|
_if(() => {
|
|
8683
8683
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8684
8684
|
const $scope2_id = _scope_id();
|
|
8685
|
-
_html(`<ul${_attr_class(["
|
|
8685
|
+
_html(`<ul${_attr_class(["_cT", { ["_cR"]: lone && !lone.enabled }])}>`);
|
|
8686
8686
|
_for_of(rows, (inst) => {
|
|
8687
8687
|
const $scope3_id = _scope_id();
|
|
8688
8688
|
const accounts = accountsFor(inst.id);
|
|
8689
|
-
_html(`<li${_attr_class(["
|
|
8689
|
+
_html(`<li${_attr_class(["_cP", { ["_cR"]: !inst.enabled }])}><div${_attr_class("_cQ")}>`);
|
|
8690
8690
|
_set_serialize_reason(12);
|
|
8691
8691
|
const $childScope4 = _peek_scope_id();
|
|
8692
8692
|
icon_agent_default({ agent: inst.id });
|
|
8693
|
-
_html(`<span${_attr_class(["
|
|
8693
|
+
_html(`<span${_attr_class(["_cS", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8694
8694
|
_if(() => {
|
|
8695
8695
|
if (input$3.preferred === inst.id) {
|
|
8696
8696
|
const $scope83_id = _scope_id();
|
|
@@ -8761,7 +8761,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8761
8761
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8762
8762
|
_for_of(otherUsage, (u) => {
|
|
8763
8763
|
const $scope87_id = _scope_id();
|
|
8764
|
-
_html(`<li${_attr_class(["_bv", "
|
|
8764
|
+
_html(`<li${_attr_class(["_bv", "_cL"])}>`);
|
|
8765
8765
|
_set_serialize_reason(6);
|
|
8766
8766
|
const $childScope8 = _peek_scope_id();
|
|
8767
8767
|
usage_meters_default({ agent: u });
|
|
@@ -8786,7 +8786,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8786
8786
|
_if(() => {
|
|
8787
8787
|
if (setup && !addingHost) {
|
|
8788
8788
|
const $scope42_id = _scope_id();
|
|
8789
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8789
|
+
_html(`<button${_attr_class([iconBtnRow, "_c2"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8790
8790
|
icon_plus_default({ size: 16 });
|
|
8791
8791
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8792
8792
|
_script($scope42_id, "x51");
|
|
@@ -8799,7 +8799,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8799
8799
|
const $scope41_id = _scope_id();
|
|
8800
8800
|
_html(`<form${_attr_class([
|
|
8801
8801
|
"_dS",
|
|
8802
|
-
"
|
|
8802
|
+
"_c2",
|
|
8803
8803
|
{ ["_dT"]: !addingHost }
|
|
8804
8804
|
])}><label${_attr_class(["_1", "_dV"])}>`);
|
|
8805
8805
|
icon_github_default({
|
|
@@ -8815,7 +8815,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8815
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([
|
|
8816
8816
|
btnSm,
|
|
8817
8817
|
"_r",
|
|
8818
|
-
"
|
|
8818
|
+
"_c1"
|
|
8819
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
8820
|
icon_xmark_default({ size: 14 });
|
|
8821
8821
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
@@ -8824,17 +8824,17 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8824
8824
|
return 0;
|
|
8825
8825
|
}
|
|
8826
8826
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8827
|
-
_html(`</div><div${_attr_class(["_bv", "
|
|
8827
|
+
_html(`</div><div${_attr_class(["_bv", "_cq"])}>`);
|
|
8828
8828
|
_for_of(setup?.github || [], (h) => {
|
|
8829
8829
|
const $scope6_id = _scope_id();
|
|
8830
8830
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8831
8831
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8832
8832
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8833
8833
|
const busy = active.has(h.host);
|
|
8834
|
-
_html(`<div${_attr_class(["
|
|
8834
|
+
_html(`<div${_attr_class(["_cr", "_c3"])}><div${_attr_class("_c4")}>`);
|
|
8835
8835
|
icon_github_default({
|
|
8836
8836
|
size: 18,
|
|
8837
|
-
class: "
|
|
8837
|
+
class: "_c5"
|
|
8838
8838
|
});
|
|
8839
8839
|
_html(`<div${_attr_class("_bw")}><span${_attr_class("_by")}><span${_attr_class("_bx")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8840
8840
|
_if(() => {
|
|
@@ -8849,25 +8849,25 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8849
8849
|
_if(() => {
|
|
8850
8850
|
if (busy) {
|
|
8851
8851
|
const $scope13_id = _scope_id();
|
|
8852
|
-
_html(`<span${_attr_class(["_bz", "
|
|
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>`);
|
|
8853
8853
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8854
8854
|
return 0;
|
|
8855
8855
|
} else if (h.authed) {
|
|
8856
8856
|
const $scope89_id = _scope_id();
|
|
8857
|
-
_html(`<span${_attr_class(["_bz", "
|
|
8857
|
+
_html(`<span${_attr_class(["_bz", "_c6"])}>`);
|
|
8858
8858
|
icon_check_default({
|
|
8859
8859
|
size: 12,
|
|
8860
|
-
class: "
|
|
8860
|
+
class: "_c7"
|
|
8861
8861
|
});
|
|
8862
|
-
_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>`);
|
|
8863
8863
|
writeScope($scope89_id, {});
|
|
8864
8864
|
return 1;
|
|
8865
8865
|
} else if (h.error) {
|
|
8866
8866
|
const $scope90_id = _scope_id();
|
|
8867
8867
|
_html(`<span${_attr_class([
|
|
8868
8868
|
"_bz",
|
|
8869
|
-
"
|
|
8870
|
-
"
|
|
8869
|
+
"_c6",
|
|
8870
|
+
"_c8"
|
|
8871
8871
|
])}>`);
|
|
8872
8872
|
icon_warning_default({ size: 12 });
|
|
8873
8873
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8875,7 +8875,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8875
8875
|
return 2;
|
|
8876
8876
|
} else {
|
|
8877
8877
|
const $scope92_id = _scope_id();
|
|
8878
|
-
_html(`<span${_attr_class(["_bz", "
|
|
8878
|
+
_html(`<span${_attr_class(["_bz", "_c6"])}>Not signed in</span>`);
|
|
8879
8879
|
writeScope($scope92_id, {});
|
|
8880
8880
|
return 3;
|
|
8881
8881
|
}
|
|
@@ -8940,7 +8940,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8940
8940
|
_if(() => {
|
|
8941
8941
|
if (busy && authCodes.has(h.host)) {
|
|
8942
8942
|
const $scope30_id = _scope_id();
|
|
8943
|
-
_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>`);
|
|
8944
8944
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8945
8945
|
return 0;
|
|
8946
8946
|
}
|
|
@@ -8952,7 +8952,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8952
8952
|
_set_serialize_reason(30);
|
|
8953
8953
|
const $childScope9 = _peek_scope_id();
|
|
8954
8954
|
sso_auth_default({
|
|
8955
|
-
class: ["
|
|
8955
|
+
class: ["_cr", "_dd"],
|
|
8956
8956
|
items: hostSso$1,
|
|
8957
8957
|
skipped: skippedSso,
|
|
8958
8958
|
busy,
|
|
@@ -8991,18 +8991,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8991
8991
|
return 0;
|
|
8992
8992
|
}
|
|
8993
8993
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
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", "
|
|
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>`);
|
|
8995
8995
|
_set_serialize_reason(1);
|
|
8996
8996
|
const $childScope10 = _peek_scope_id();
|
|
8997
8997
|
icon_chevron_right_default({
|
|
8998
8998
|
size: 12,
|
|
8999
|
-
class: ["
|
|
8999
|
+
class: ["_cC", { ["_cD"]: skillsOpen }]
|
|
9000
9000
|
});
|
|
9001
|
-
_html(`<span${_attr_class("
|
|
9001
|
+
_html(`<span${_attr_class("_cz")}>Skills</span>`);
|
|
9002
9002
|
_if(() => {
|
|
9003
9003
|
if (skills?.global.length) {
|
|
9004
9004
|
const $scope51_id = _scope_id();
|
|
9005
|
-
_html(`<span${_attr_class("
|
|
9005
|
+
_html(`<span${_attr_class("_cA")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9006
9006
|
writeScope($scope51_id, {});
|
|
9007
9007
|
return 0;
|
|
9008
9008
|
}
|
|
@@ -9057,11 +9057,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9057
9057
|
_if(() => {
|
|
9058
9058
|
if (looksLikeSource(skillQuery)) {
|
|
9059
9059
|
const $scope15_id = _scope_id();
|
|
9060
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bw")}><span${_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>`);
|
|
9061
9061
|
_if(() => {
|
|
9062
9062
|
if (active.has(skillQuery.trim())) {
|
|
9063
9063
|
const $scope16_id = _scope_id();
|
|
9064
|
-
_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>`);
|
|
9065
9065
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9066
9066
|
Ch2: 3,
|
|
9067
9067
|
Chr: 1
|
|
@@ -9092,11 +9092,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9092
9092
|
_for_of(skillHits || [], (h) => {
|
|
9093
9093
|
const $scope17_id = _scope_id();
|
|
9094
9094
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9095
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bw")}><span${_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>`);
|
|
9096
9096
|
_if(() => {
|
|
9097
9097
|
if (active.has(h.skillId)) {
|
|
9098
9098
|
const $scope18_id = _scope_id();
|
|
9099
|
-
_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>`);
|
|
9100
9100
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9101
9101
|
return 0;
|
|
9102
9102
|
} else {
|
|
@@ -9164,7 +9164,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9164
9164
|
_if(() => {
|
|
9165
9165
|
{
|
|
9166
9166
|
const $scope19_id = _scope_id();
|
|
9167
|
-
_html(`<div${_attr_class("
|
|
9167
|
+
_html(`<div${_attr_class("_cB")}>`);
|
|
9168
9168
|
_if(() => {
|
|
9169
9169
|
if (skills && !skills.agents.length) {
|
|
9170
9170
|
const $scope103_id = _scope_id();
|
|
@@ -9265,14 +9265,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9265
9265
|
return 0;
|
|
9266
9266
|
}
|
|
9267
9267
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9268
|
-
_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"}>`);
|
|
9269
9269
|
_set_serialize_reason(1);
|
|
9270
9270
|
const $childScope12 = _peek_scope_id();
|
|
9271
9271
|
icon_chevron_right_default({
|
|
9272
9272
|
size: 12,
|
|
9273
|
-
class: ["
|
|
9273
|
+
class: ["_cC", { ["_cD"]: machineOpen }]
|
|
9274
9274
|
});
|
|
9275
|
-
_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")}`);
|
|
9276
9276
|
_if(() => {
|
|
9277
9277
|
if (outdatedIds.length > 1) {
|
|
9278
9278
|
const $scope22_id = _scope_id();
|
|
@@ -9347,11 +9347,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9347
9347
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9348
9348
|
_for_of(hits || [], (h) => {
|
|
9349
9349
|
const $scope25_id = _scope_id();
|
|
9350
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bw")}><span${_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>`);
|
|
9351
9351
|
_if(() => {
|
|
9352
9352
|
if (active.has(h.name)) {
|
|
9353
9353
|
const $scope26_id = _scope_id();
|
|
9354
|
-
_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>`);
|
|
9355
9355
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9356
9356
|
return 0;
|
|
9357
9357
|
} else if (h.description) {
|
|
@@ -9401,7 +9401,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9401
9401
|
_if(() => {
|
|
9402
9402
|
if (machineOpen) {
|
|
9403
9403
|
const $scope5_id = _scope_id();
|
|
9404
|
-
_html(`<div${_attr_class("
|
|
9404
|
+
_html(`<div${_attr_class("_cB")}>`);
|
|
9405
9405
|
_if(() => {
|
|
9406
9406
|
if (setup && !setup.mise.installed) {
|
|
9407
9407
|
const $scope27_id = _scope_id();
|
|
@@ -9415,11 +9415,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9415
9415
|
_if(() => {
|
|
9416
9416
|
if (self) {
|
|
9417
9417
|
const $scope47_id = _scope_id();
|
|
9418
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9418
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_cX", "_y"])}>work</span>`);
|
|
9419
9419
|
_if(() => {
|
|
9420
9420
|
if (selfUpdating) {
|
|
9421
9421
|
const $scope114_id = _scope_id();
|
|
9422
|
-
_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>`);
|
|
9423
9423
|
writeScope($scope114_id, {});
|
|
9424
9424
|
return 0;
|
|
9425
9425
|
} else {
|
|
@@ -9433,7 +9433,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9433
9433
|
return 0;
|
|
9434
9434
|
} else if (self.latest && self.latest !== self.version) {
|
|
9435
9435
|
const $scope49_id = _scope_id();
|
|
9436
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9436
|
+
_html(`<button${_attr_class([btnSm, "_c0"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9437
9437
|
icon_arrow_up_default({ size: 12 });
|
|
9438
9438
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9439
9439
|
_script($scope49_id, "x72");
|
|
@@ -9477,11 +9477,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9477
9477
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9478
9478
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9479
9479
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9480
|
-
_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>`);
|
|
9481
9481
|
_if(() => {
|
|
9482
9482
|
if (active.has(t.id)) {
|
|
9483
9483
|
const $scope29_id = _scope_id();
|
|
9484
|
-
_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>`);
|
|
9485
9485
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9486
9486
|
return 0;
|
|
9487
9487
|
} else if (t.installed) {
|
|
@@ -9489,11 +9489,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9489
9489
|
_if(() => {
|
|
9490
9490
|
if (t.version) {
|
|
9491
9491
|
const $scope40_id = _scope_id();
|
|
9492
|
-
_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)}`);
|
|
9493
9493
|
_if(() => {
|
|
9494
9494
|
if (aliasPin(t)) {
|
|
9495
9495
|
const $scope118_id = _scope_id();
|
|
9496
|
-
_html(`<span${_attr_class("
|
|
9496
|
+
_html(`<span${_attr_class("_cY")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9497
9497
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9498
9498
|
return 0;
|
|
9499
9499
|
}
|
|
@@ -9512,7 +9512,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9512
9512
|
_if(() => {
|
|
9513
9513
|
if (outdated(t)) {
|
|
9514
9514
|
const $scope59_id = _scope_id();
|
|
9515
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9515
|
+
_html(`<button${_attr_class([btnSm, "_c0"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9516
9516
|
icon_arrow_up_default({ size: 12 });
|
|
9517
9517
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9518
9518
|
_script($scope59_id, "x74");
|
|
@@ -9520,7 +9520,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9520
9520
|
return 0;
|
|
9521
9521
|
} else if (t.newest) {
|
|
9522
9522
|
const $scope60_id = _scope_id();
|
|
9523
|
-
_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")}`);
|
|
9524
9524
|
_script($scope60_id, "x75");
|
|
9525
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, {
|
|
9526
9526
|
Cw: 1,
|
|
@@ -9636,14 +9636,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9636
9636
|
label: "Dark"
|
|
9637
9637
|
}
|
|
9638
9638
|
];
|
|
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", "
|
|
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) {
|
|
9640
9640
|
setInstance({ name: v });
|
|
9641
|
-
}, "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">`);
|
|
9642
9642
|
_for_of(themeOpts, (opt) => {
|
|
9643
9643
|
const $scope50_id = _scope_id();
|
|
9644
9644
|
_html(`<button type=button${_attr_class([
|
|
9645
9645
|
"_bg",
|
|
9646
|
-
"
|
|
9646
|
+
"_dv",
|
|
9647
9647
|
{ ["_bf"]: themeMode === opt.id }
|
|
9648
9648
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9649
9649
|
if (opt.id === "system") {
|
|
@@ -9663,28 +9663,28 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9663
9663
|
_: _scope_with_id($scope0_id)
|
|
9664
9664
|
});
|
|
9665
9665
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9666
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9666
|
+
_html(`</span><span${_attr_class(["_o", "_dk"])}>`);
|
|
9667
9667
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9668
9668
|
setThemeMode(v);
|
|
9669
9669
|
}, "x5", $scope0_id), () => {
|
|
9670
|
-
_html(`<select${_attr_class(["_p", "
|
|
9670
|
+
_html(`<select${_attr_class(["_p", "_dl"])} aria-label="Color theme">`);
|
|
9671
9671
|
forOf(themeOpts, (opt) => {
|
|
9672
9672
|
_scope_id();
|
|
9673
9673
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9674
9674
|
});
|
|
9675
9675
|
_html("</select>");
|
|
9676
9676
|
});
|
|
9677
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9678
|
-
"
|
|
9679
|
-
"
|
|
9680
|
-
{ ["
|
|
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 }
|
|
9681
9681
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9682
9682
|
_if(() => {
|
|
9683
9683
|
if (!accent) {
|
|
9684
9684
|
const $scope129_id = _scope_id();
|
|
9685
9685
|
icon_check_default({
|
|
9686
9686
|
size: 12,
|
|
9687
|
-
class: "
|
|
9687
|
+
class: "_dz"
|
|
9688
9688
|
});
|
|
9689
9689
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9690
9690
|
return 0;
|
|
@@ -9692,13 +9692,13 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9692
9692
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9693
9693
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9694
9694
|
const $scope77_id = _scope_id();
|
|
9695
|
-
_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)}>`);
|
|
9696
9696
|
_if(() => {
|
|
9697
9697
|
if (accent === p.value) {
|
|
9698
9698
|
const $scope130_id = _scope_id();
|
|
9699
9699
|
icon_check_default({
|
|
9700
9700
|
size: 12,
|
|
9701
|
-
class: "
|
|
9701
|
+
class: "_dz"
|
|
9702
9702
|
});
|
|
9703
9703
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9704
9704
|
return 0;
|
|
@@ -9712,18 +9712,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9712
9712
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9713
9713
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9714
9714
|
_html(`<label${_attr_class([
|
|
9715
|
-
"
|
|
9716
|
-
"
|
|
9717
|
-
{ ["
|
|
9715
|
+
"_dx",
|
|
9716
|
+
"_dB",
|
|
9717
|
+
{ ["_dy"]: customOn }
|
|
9718
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) {
|
|
9719
9719
|
setInstance({ accent: v });
|
|
9720
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
9720
|
+
}, "x6", $scope0_id))}${_attr_class("_dC")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9721
9721
|
_if(() => {
|
|
9722
9722
|
if (customOn) {
|
|
9723
9723
|
const $scope131_id = _scope_id();
|
|
9724
9724
|
icon_check_default({
|
|
9725
9725
|
size: 12,
|
|
9726
|
-
class: "
|
|
9726
|
+
class: "_dz"
|
|
9727
9727
|
});
|
|
9728
9728
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9729
9729
|
return 0;
|
|
@@ -9734,11 +9734,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9734
9734
|
return 1;
|
|
9735
9735
|
}
|
|
9736
9736
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
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", "
|
|
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")}>`);
|
|
9738
9738
|
_if(() => {
|
|
9739
9739
|
if (backupBusy === "preflight") {
|
|
9740
9740
|
const $scope65_id = _scope_id();
|
|
9741
|
-
_html(`<span${_attr_class("
|
|
9741
|
+
_html(`<span${_attr_class("_cI")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9742
9742
|
writeScope($scope65_id, {});
|
|
9743
9743
|
return 0;
|
|
9744
9744
|
} else {
|
|
@@ -9761,7 +9761,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9761
9761
|
_if(() => {
|
|
9762
9762
|
if (preflight && !backupBusy) {
|
|
9763
9763
|
const $scope67_id = _scope_id();
|
|
9764
|
-
_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: `);
|
|
9765
9765
|
_if(() => {
|
|
9766
9766
|
if (preflight.unpushed) {
|
|
9767
9767
|
const $scope68_id = _scope_id();
|
|
@@ -9778,15 +9778,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9778
9778
|
return 0;
|
|
9779
9779
|
}
|
|
9780
9780
|
}, $scope67_id, "m");
|
|
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("
|
|
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")}>`);
|
|
9782
9782
|
_for_of(preflight.workspaces, (w) => {
|
|
9783
9783
|
const $scope135_id = _scope_id();
|
|
9784
9784
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9785
|
-
_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")}>`);
|
|
9786
9786
|
_for_of(w.repos, (r) => {
|
|
9787
9787
|
const $scope136_id = _scope_id();
|
|
9788
9788
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9789
|
-
_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>`);
|
|
9790
9790
|
_for_of(r.unpushed, (b) => {
|
|
9791
9791
|
const $scope137_id = _scope_id();
|
|
9792
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 `);
|
|
@@ -9805,10 +9805,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9805
9805
|
_if(() => {
|
|
9806
9806
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9807
9807
|
const $scope138_id = _scope_id();
|
|
9808
|
-
_html(`<ul${_attr_class("
|
|
9808
|
+
_html(`<ul${_attr_class("_dL")}>`);
|
|
9809
9809
|
_for_of(r.modified, (f) => {
|
|
9810
9810
|
const $scope141_id = _scope_id();
|
|
9811
|
-
_html(`<li${_attr_class("
|
|
9811
|
+
_html(`<li${_attr_class("_dM")}><span${_attr_class([
|
|
9812
9812
|
"_N",
|
|
9813
9813
|
"_P",
|
|
9814
9814
|
tone.warn
|
|
@@ -9817,18 +9817,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9817
9817
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9818
9818
|
_for_of(r.untracked, (f) => {
|
|
9819
9819
|
const $scope142_id = _scope_id();
|
|
9820
|
-
_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>`);
|
|
9821
9821
|
writeScope($scope142_id, {});
|
|
9822
9822
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9823
9823
|
_for_of(r.ignored, (f) => {
|
|
9824
9824
|
const $scope143_id = _scope_id();
|
|
9825
|
-
_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>`);
|
|
9826
9826
|
writeScope($scope143_id, {});
|
|
9827
9827
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9828
9828
|
_if(() => {
|
|
9829
9829
|
if (r.more) {
|
|
9830
9830
|
const $scope139_id = _scope_id();
|
|
9831
|
-
_html(`<li${_attr_class(["
|
|
9831
|
+
_html(`<li${_attr_class(["_dM", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9832
9832
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9833
9833
|
return 0;
|
|
9834
9834
|
}
|
|
@@ -9853,17 +9853,17 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9853
9853
|
i: $for_content18__w_name__closures
|
|
9854
9854
|
});
|
|
9855
9855
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9856
|
-
_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>`);
|
|
9857
9857
|
_script($scope67_id, "x81");
|
|
9858
9858
|
writeScope($scope67_id, {});
|
|
9859
9859
|
return 0;
|
|
9860
9860
|
}
|
|
9861
9861
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9862
|
-
_html(`</div><div${_attr_class("
|
|
9862
|
+
_html(`</div><div${_attr_class("_cr")}><div${_attr_class("_dD")}><div${_attr_class("_bw")}>`);
|
|
9863
9863
|
_if(() => {
|
|
9864
9864
|
if (backupBusy === "restore") {
|
|
9865
9865
|
const $scope66_id = _scope_id();
|
|
9866
|
-
_html(`<span${_attr_class("
|
|
9866
|
+
_html(`<span${_attr_class("_cI")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9867
9867
|
writeScope($scope66_id, {});
|
|
9868
9868
|
return 0;
|
|
9869
9869
|
} else if (restoreDone) {
|
|
@@ -9881,7 +9881,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9881
9881
|
_if(() => {
|
|
9882
9882
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9883
9883
|
const $scope76_id = _scope_id();
|
|
9884
|
-
_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>`);
|
|
9885
9885
|
_script($scope76_id, "x82");
|
|
9886
9886
|
writeScope($scope76_id, {});
|
|
9887
9887
|
return 0;
|
|
@@ -9892,14 +9892,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9892
9892
|
if (restorePreview && backupBusy !== "restore") {
|
|
9893
9893
|
const $scope69_id = _scope_id();
|
|
9894
9894
|
const { preview } = restorePreview;
|
|
9895
|
-
_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>`);
|
|
9896
9896
|
_if(() => {
|
|
9897
9897
|
if (preview.workspaces.length) {
|
|
9898
9898
|
const $scope70_id = _scope_id();
|
|
9899
9899
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9900
9900
|
_for_of(preview.workspaces, (w) => {
|
|
9901
9901
|
const $scope71_id = _scope_id();
|
|
9902
|
-
_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>`);
|
|
9903
9903
|
_if(() => {
|
|
9904
9904
|
if (w.status === "archived") {
|
|
9905
9905
|
const $scope148_id = _scope_id();
|
|
@@ -9972,7 +9972,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9972
9972
|
_if(() => {
|
|
9973
9973
|
if (p.total) {
|
|
9974
9974
|
const $scope73_id = _scope_id();
|
|
9975
|
-
_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")}>`);
|
|
9976
9976
|
_if(() => {
|
|
9977
9977
|
if (p.key === "settings") {
|
|
9978
9978
|
const $scope145_id = _scope_id();
|
|
@@ -10019,7 +10019,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
10019
10019
|
i: $for_content10__p_total__closures
|
|
10020
10020
|
});
|
|
10021
10021
|
}, "key", $scope69_id, "h");
|
|
10022
|
-
_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>`);
|
|
10023
10023
|
_script($scope69_id, "x85");
|
|
10024
10024
|
writeScope($scope69_id, {});
|
|
10025
10025
|
return 0;
|
|
@@ -10248,9 +10248,9 @@ function vapidKey(base64) {
|
|
|
10248
10248
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10249
10249
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10250
10250
|
}
|
|
10251
|
-
var iconBtn = "
|
|
10252
|
-
var settingsDot = "
|
|
10253
|
-
var navToggle = "
|
|
10251
|
+
var iconBtn = "_bW _l";
|
|
10252
|
+
var settingsDot = "_bX _bc";
|
|
10253
|
+
var navToggle = "_b1 _l";
|
|
10254
10254
|
_template("Q", (input) => {
|
|
10255
10255
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10256
10256
|
const $scope0_id = _scope_id();
|
|
@@ -10293,16 +10293,16 @@ var ARM_MS = 3500;
|
|
|
10293
10293
|
function disarmLater(fn) {
|
|
10294
10294
|
return setTimeout(fn, ARM_MS);
|
|
10295
10295
|
}
|
|
10296
|
-
var railBtn = "
|
|
10297
|
-
var wsBtn = "
|
|
10298
|
-
var rowIcon = "
|
|
10299
|
-
var close = "
|
|
10300
|
-
var sessRename$1 = "
|
|
10301
|
-
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";
|
|
10302
10302
|
//#endregion
|
|
10303
10303
|
//#region src/styles/session-pop.css.ts
|
|
10304
|
-
var sessionPop = "
|
|
10305
|
-
var sessionPopBtn = "
|
|
10304
|
+
var sessionPop = "_ep __";
|
|
10305
|
+
var sessionPopBtn = "_eq _I";
|
|
10306
10306
|
//#endregion
|
|
10307
10307
|
//#region src/client/status.ts
|
|
10308
10308
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -10369,22 +10369,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
10369
10369
|
if (windows.length) {
|
|
10370
10370
|
const $scope1_id = _scope_id();
|
|
10371
10371
|
_html(`<span${_attr_class([
|
|
10372
|
-
"
|
|
10372
|
+
"_hJ",
|
|
10373
10373
|
input.class,
|
|
10374
|
-
{ ["
|
|
10374
|
+
{ ["_hK"]: agent.stale_seconds != null }
|
|
10375
10375
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10376
10376
|
_for_of(windows, (win$1, i) => {
|
|
10377
10377
|
const $scope2_id = _scope_id();
|
|
10378
|
-
_html(`<span${_attr_class("
|
|
10378
|
+
_html(`<span${_attr_class("_hL")}>`);
|
|
10379
10379
|
_if(() => {
|
|
10380
10380
|
if (i) {
|
|
10381
10381
|
const $scope3_id = _scope_id();
|
|
10382
|
-
_html(`<span${_attr_class("
|
|
10382
|
+
_html(`<span${_attr_class("_hO")} aria-hidden=true>·</span>`);
|
|
10383
10383
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10384
10384
|
return 0;
|
|
10385
10385
|
}
|
|
10386
10386
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10387
|
-
_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>`);
|
|
10388
10388
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10389
10389
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10390
10390
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10415,12 +10415,12 @@ var icon_edit_default = _template("$", (input) => {
|
|
|
10415
10415
|
});
|
|
10416
10416
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
10417
10417
|
});
|
|
10418
|
-
var prChip = "
|
|
10419
|
-
var portChip = "
|
|
10418
|
+
var prChip = "_hR _u _hQ";
|
|
10419
|
+
var portChip = "_hS _u _hQ";
|
|
10420
10420
|
var prState = {
|
|
10421
|
-
open: "
|
|
10422
|
-
merged: "
|
|
10423
|
-
closed: "
|
|
10421
|
+
open: "_hW",
|
|
10422
|
+
merged: "_hX",
|
|
10423
|
+
closed: "_hY"
|
|
10424
10424
|
};
|
|
10425
10425
|
//#endregion
|
|
10426
10426
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -10494,7 +10494,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10494
10494
|
const name = repo.full_name.split("/").at(-1);
|
|
10495
10495
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10496
10496
|
}, "y4", $scope1_id);
|
|
10497
|
-
_html(`<div${_attr_class("
|
|
10497
|
+
_html(`<div${_attr_class("_hP")}>`);
|
|
10498
10498
|
_for_of(repos, (repo) => {
|
|
10499
10499
|
const $scope2_id = _scope_id();
|
|
10500
10500
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10510,11 +10510,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10510
10510
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10511
10511
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10512
10512
|
}
|
|
10513
|
-
])}${_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")}`);
|
|
10514
10514
|
_if(() => {
|
|
10515
10515
|
if (open) {
|
|
10516
10516
|
const $scope4_id = _scope_id();
|
|
10517
|
-
_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`)}>`);
|
|
10518
10518
|
icon_diff_default({ size: 12 });
|
|
10519
10519
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10520
10520
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10522,9 +10522,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10522
10522
|
} else {
|
|
10523
10523
|
const $scope6_id = _scope_id();
|
|
10524
10524
|
_html(`<button type=button${_attr_class([
|
|
10525
|
-
"
|
|
10526
|
-
"
|
|
10527
|
-
"
|
|
10525
|
+
"_hT",
|
|
10526
|
+
"_hU",
|
|
10527
|
+
"_hV"
|
|
10528
10528
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10529
10529
|
icon_xmark_default({ size: 12 });
|
|
10530
10530
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10552,21 +10552,21 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10552
10552
|
_if(() => {
|
|
10553
10553
|
if (dead.has(p.port)) {
|
|
10554
10554
|
const $scope7_id = _scope_id();
|
|
10555
|
-
_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")}`);
|
|
10556
10556
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10557
10557
|
return 0;
|
|
10558
10558
|
} else {
|
|
10559
10559
|
const $scope8_id = _scope_id();
|
|
10560
|
-
_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")}`);
|
|
10561
10561
|
_script($scope8_id, "y6");
|
|
10562
10562
|
writeScope($scope8_id, {});
|
|
10563
10563
|
return 1;
|
|
10564
10564
|
}
|
|
10565
10565
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10566
10566
|
_html(`<button type=button${_attr_class([
|
|
10567
|
-
"
|
|
10568
|
-
"
|
|
10569
|
-
"
|
|
10567
|
+
"_hT",
|
|
10568
|
+
"_hU",
|
|
10569
|
+
"_hV",
|
|
10570
10570
|
{ ["_s"]: armedPid === p.pid }
|
|
10571
10571
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10572
10572
|
icon_xmark_default({ size: 12 });
|
|
@@ -10689,7 +10689,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10689
10689
|
_if(() => {
|
|
10690
10690
|
if (input.rail) {
|
|
10691
10691
|
const $scope2_id = _scope_id();
|
|
10692
|
-
_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([
|
|
10693
10693
|
"_A",
|
|
10694
10694
|
phase[dot$1],
|
|
10695
10695
|
"_bc"
|
|
@@ -10699,34 +10699,34 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10699
10699
|
} else if (ws$1.pending) {
|
|
10700
10700
|
const $scope3_id = _scope_id();
|
|
10701
10701
|
_html(`<section${_attr_class([
|
|
10702
|
-
"
|
|
10703
|
-
"
|
|
10702
|
+
"_ev",
|
|
10703
|
+
"_eS",
|
|
10704
10704
|
{
|
|
10705
|
-
["
|
|
10706
|
-
["
|
|
10705
|
+
["_ew"]: input.railPop,
|
|
10706
|
+
["_eu"]: input.page
|
|
10707
10707
|
}
|
|
10708
|
-
])} 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)}>`);
|
|
10709
10709
|
_if(() => {
|
|
10710
10710
|
if (ws$1.pending_error) {
|
|
10711
10711
|
const $scope16_id = _scope_id();
|
|
10712
10712
|
icon_warning_default({
|
|
10713
10713
|
size: 12,
|
|
10714
|
-
class: "
|
|
10714
|
+
class: "_eU"
|
|
10715
10715
|
});
|
|
10716
10716
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10717
10717
|
return 0;
|
|
10718
10718
|
} else {
|
|
10719
10719
|
const $scope17_id = _scope_id();
|
|
10720
|
-
_html(`<span${_attr_class(["_G", "
|
|
10720
|
+
_html(`<span${_attr_class(["_G", "_eT"])}></span>`);
|
|
10721
10721
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10722
10722
|
return 1;
|
|
10723
10723
|
}
|
|
10724
10724
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10725
|
-
_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>`);
|
|
10726
10726
|
_if(() => {
|
|
10727
10727
|
if (ws$1.pending_error && !retrying) {
|
|
10728
10728
|
const $scope15_id = _scope_id();
|
|
10729
|
-
_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([
|
|
10730
10730
|
"_q",
|
|
10731
10731
|
btnSm,
|
|
10732
10732
|
{ ["_s"]: armedDelete }
|
|
@@ -10746,15 +10746,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10746
10746
|
const $scope4_id = _scope_id();
|
|
10747
10747
|
const sessions$1 = input.sessions || [];
|
|
10748
10748
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10749
|
-
_html(`<section${_attr_class(["
|
|
10750
|
-
["
|
|
10749
|
+
_html(`<section${_attr_class(["_ev", {
|
|
10750
|
+
["_er"]: input.current,
|
|
10751
10751
|
["_bd"]: input.current,
|
|
10752
|
-
["
|
|
10753
|
-
["
|
|
10754
|
-
}])}><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([
|
|
10755
10755
|
"_A",
|
|
10756
10756
|
phase[dot$1],
|
|
10757
|
-
"
|
|
10757
|
+
"_eK"
|
|
10758
10758
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10759
10759
|
_if(() => {
|
|
10760
10760
|
if (sessions$1.length === 1) {
|
|
@@ -10767,7 +10767,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10767
10767
|
icon_agent_default({
|
|
10768
10768
|
agent: activeAgent(sessions$1[0]),
|
|
10769
10769
|
size: 12,
|
|
10770
|
-
class: "
|
|
10770
|
+
class: "_eD"
|
|
10771
10771
|
});
|
|
10772
10772
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10773
10773
|
_: _scope_with_id($scope4_id),
|
|
@@ -10777,11 +10777,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10777
10777
|
}
|
|
10778
10778
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10779
10779
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10780
|
-
_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>`);
|
|
10781
10781
|
_if(() => {
|
|
10782
10782
|
if (input.page && metaText) {
|
|
10783
10783
|
const $scope19_id = _scope_id();
|
|
10784
|
-
_html(`<span${_attr_class("
|
|
10784
|
+
_html(`<span${_attr_class("_eI")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10785
10785
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10786
10786
|
return 0;
|
|
10787
10787
|
}
|
|
@@ -10794,7 +10794,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10794
10794
|
"_N",
|
|
10795
10795
|
"_W",
|
|
10796
10796
|
"_P",
|
|
10797
|
-
"
|
|
10797
|
+
"_eJ"
|
|
10798
10798
|
])}>${_text_resume($scope5_id, "b", input.current ? "Open" : "", _serialize_guard($scope0_reason, 20))}</span>`);
|
|
10799
10799
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspace && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
10800
10800
|
_: _scope_with_id($scope4_id),
|
|
@@ -10807,7 +10807,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10807
10807
|
_if(() => {
|
|
10808
10808
|
if (!input.page) {
|
|
10809
10809
|
const $scope6_id = _scope_id();
|
|
10810
|
-
_html(`<div${_attr_class("
|
|
10810
|
+
_html(`<div${_attr_class("_ez")}>`);
|
|
10811
10811
|
_if(() => {
|
|
10812
10812
|
if (input.onNewSession) {
|
|
10813
10813
|
const $scope7_id = _scope_id();
|
|
@@ -10856,7 +10856,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10856
10856
|
return 0;
|
|
10857
10857
|
}
|
|
10858
10858
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10859
|
-
_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" : ""}>`);
|
|
10860
10860
|
icon_manage_default({ size: 12 });
|
|
10861
10861
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10862
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, {
|
|
@@ -10866,7 +10866,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10866
10866
|
return 0;
|
|
10867
10867
|
}
|
|
10868
10868
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10869
|
-
_html(`</div><div${_attr_class("
|
|
10869
|
+
_html(`</div><div${_attr_class("_eP")}>`);
|
|
10870
10870
|
_if(() => {
|
|
10871
10871
|
if (sessions$1.length === 1 && openPlan) {
|
|
10872
10872
|
const $scope12_id = _scope_id();
|
|
@@ -10874,7 +10874,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10874
10874
|
const $childScope3 = _peek_scope_id();
|
|
10875
10875
|
usage_pcts_default({
|
|
10876
10876
|
agent: openPlan,
|
|
10877
|
-
class: "
|
|
10877
|
+
class: "_eG"
|
|
10878
10878
|
});
|
|
10879
10879
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10880
10880
|
a: _existing_scope($childScope3),
|
|
@@ -10885,14 +10885,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10885
10885
|
}, $scope4_id, "m");
|
|
10886
10886
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10887
10887
|
const $scope9_id = _scope_id();
|
|
10888
|
-
_html(`<div${_attr_class(["
|
|
10888
|
+
_html(`<div${_attr_class(["_eA", { ["_er"]: s.id === input.currentTab }])}>`);
|
|
10889
10889
|
_if(() => {
|
|
10890
10890
|
if (renamingId === s.id) {
|
|
10891
10891
|
const $scope11_id = _scope_id();
|
|
10892
10892
|
_html(`<span${_attr_class([
|
|
10893
10893
|
"_A",
|
|
10894
10894
|
phase[sessionPhase(s.state)],
|
|
10895
|
-
"
|
|
10895
|
+
"_eN"
|
|
10896
10896
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10897
10897
|
_set_serialize_reason({
|
|
10898
10898
|
1: $sg__input_sessions,
|
|
@@ -10902,7 +10902,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10902
10902
|
icon_agent_default({
|
|
10903
10903
|
agent: activeAgent(s),
|
|
10904
10904
|
size: 12,
|
|
10905
|
-
class: "
|
|
10905
|
+
class: "_eR"
|
|
10906
10906
|
});
|
|
10907
10907
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10908
10908
|
renameValue = _new_renameValue;
|
|
@@ -10921,9 +10921,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10921
10921
|
icon_agent_default({
|
|
10922
10922
|
agent: activeAgent(s),
|
|
10923
10923
|
size: 12,
|
|
10924
|
-
class: "
|
|
10924
|
+
class: "_eR"
|
|
10925
10925
|
});
|
|
10926
|
-
_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">`);
|
|
10927
10927
|
icon_edit_default({ size: 12 });
|
|
10928
10928
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10929
10929
|
icon_xmark_default({ size: 12 });
|
|
@@ -10935,7 +10935,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10935
10935
|
const $childScope6 = _peek_scope_id();
|
|
10936
10936
|
usage_pcts_default({
|
|
10937
10937
|
agent: openPlan,
|
|
10938
|
-
class: "
|
|
10938
|
+
class: "_eH"
|
|
10939
10939
|
});
|
|
10940
10940
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10941
10941
|
a: _existing_scope($childScope6),
|
|
@@ -11175,28 +11175,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11175
11175
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11176
11176
|
const otherIds = itemIds.filter((id) => id !== ws?.id);
|
|
11177
11177
|
const listIds = isPage && ws ? [ws.id, ...otherIds] : itemIds;
|
|
11178
|
-
_html(`<aside${_attr_class(["
|
|
11179
|
-
["
|
|
11180
|
-
["
|
|
11178
|
+
_html(`<aside${_attr_class(["_b0", {
|
|
11179
|
+
["_bY"]: !navOpen,
|
|
11180
|
+
["_bZ"]: isPage
|
|
11181
11181
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11182
11182
|
_if(() => {
|
|
11183
11183
|
if (isPage) {
|
|
11184
11184
|
const $scope1_id = _scope_id();
|
|
11185
|
-
_html(`<header${_attr_class("
|
|
11185
|
+
_html(`<header${_attr_class("_b3")}><div${_attr_class("_cb")}>`);
|
|
11186
11186
|
_if(() => {
|
|
11187
11187
|
if (input.instanceName) {
|
|
11188
11188
|
const $scope2_id = _scope_id();
|
|
11189
|
-
_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>`);
|
|
11190
11190
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11191
11191
|
return 0;
|
|
11192
11192
|
}
|
|
11193
11193
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11194
|
-
_html(`<h1${_attr_class("
|
|
11194
|
+
_html(`<h1${_attr_class("_b4")}>Workspaces</h1></div><div${_attr_class("_b5")}>`);
|
|
11195
11195
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11196
11196
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11197
11197
|
iconBtn,
|
|
11198
|
-
"
|
|
11199
|
-
{ ["
|
|
11198
|
+
"_b6",
|
|
11199
|
+
{ ["_bV"]: view === "settings" }
|
|
11200
11200
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11201
11201
|
icon_settings_default({ size: 16 });
|
|
11202
11202
|
_if(() => {
|
|
@@ -11215,7 +11215,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11215
11215
|
_if(() => {
|
|
11216
11216
|
if (!isPage && input.instanceName) {
|
|
11217
11217
|
const $scope3_id = _scope_id();
|
|
11218
|
-
_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>`);
|
|
11219
11219
|
writeScope($scope3_id, {});
|
|
11220
11220
|
return 0;
|
|
11221
11221
|
}
|
|
@@ -11223,13 +11223,13 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11223
11223
|
_if(() => {
|
|
11224
11224
|
if (navOpen || isPage) {
|
|
11225
11225
|
const $scope4_id = _scope_id();
|
|
11226
|
-
_html(`<div${_attr_class("
|
|
11226
|
+
_html(`<div${_attr_class("_cc")}>`);
|
|
11227
11227
|
_for_of(listIds, (wsId) => {
|
|
11228
11228
|
const $scope5_id = _scope_id();
|
|
11229
11229
|
_if(() => {
|
|
11230
11230
|
if (isPage && wsId === ws?.id) {
|
|
11231
11231
|
const $scope14_id = _scope_id();
|
|
11232
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
11232
|
+
_html(`<h2${_attr_class(["_bE", "_b7"])}>Current</h2>`);
|
|
11233
11233
|
writeScope($scope14_id, {});
|
|
11234
11234
|
return 0;
|
|
11235
11235
|
}
|
|
@@ -11237,7 +11237,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11237
11237
|
_if(() => {
|
|
11238
11238
|
if (isPage && ws && wsId !== ws.id && wsId === otherIds[0]) {
|
|
11239
11239
|
const $scope15_id = _scope_id();
|
|
11240
|
-
_html(`<h2${_attr_class(["_bE", "
|
|
11240
|
+
_html(`<h2${_attr_class(["_bE", "_b7"])}>Other workspaces</h2>`);
|
|
11241
11241
|
writeScope($scope15_id, {});
|
|
11242
11242
|
return 0;
|
|
11243
11243
|
}
|
|
@@ -11326,7 +11326,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11326
11326
|
railHover = null;
|
|
11327
11327
|
}, 150);
|
|
11328
11328
|
}, "A6", $scope6_id);
|
|
11329
|
-
_html(`<div${_attr_class("
|
|
11329
|
+
_html(`<div${_attr_class("_cd")}>`);
|
|
11330
11330
|
_for_of(itemIds, (wsId, i) => {
|
|
11331
11331
|
const $scope7_id = _scope_id();
|
|
11332
11332
|
_html("<span>");
|
|
@@ -11384,7 +11384,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11384
11384
|
if (railHover) {
|
|
11385
11385
|
const $scope8_id = _scope_id();
|
|
11386
11386
|
const hoverId = railHover.id;
|
|
11387
|
-
_html(`<div${_attr_class(["__", "
|
|
11387
|
+
_html(`<div${_attr_class(["__", "_cg"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11388
11388
|
_set_serialize_reason({
|
|
11389
11389
|
0: 1,
|
|
11390
11390
|
1: 1,
|
|
@@ -11479,7 +11479,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11479
11479
|
return 0;
|
|
11480
11480
|
}
|
|
11481
11481
|
}, $scope0_id, "e");
|
|
11482
|
-
_html(`<div${_attr_class("
|
|
11482
|
+
_html(`<div${_attr_class("_ce")}>`);
|
|
11483
11483
|
_if(() => {
|
|
11484
11484
|
if (isPage) {
|
|
11485
11485
|
const $scope10_id = _scope_id();
|
|
@@ -11487,7 +11487,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11487
11487
|
"_q",
|
|
11488
11488
|
"_r",
|
|
11489
11489
|
btnLg,
|
|
11490
|
-
"
|
|
11490
|
+
"_b8"
|
|
11491
11491
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11492
11492
|
icon_folder_plus_default({ size: 16 });
|
|
11493
11493
|
_html(` New workspace</a>${_el_resume($scope10_id, "a")}`);
|
|
@@ -11509,9 +11509,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11509
11509
|
return 1;
|
|
11510
11510
|
}
|
|
11511
11511
|
}, $scope9_id, "a", 1, 1, 1, "</button>", 1);
|
|
11512
|
-
_html(`<div${_attr_class(["_z", "
|
|
11512
|
+
_html(`<div${_attr_class(["_z", "_cf"])}></div>`);
|
|
11513
11513
|
_if(() => {}, $scope9_id, "c", 1, 1, 1, 0, 1);
|
|
11514
|
-
_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" : ""}>`);
|
|
11515
11515
|
icon_settings_default({});
|
|
11516
11516
|
_if(() => {
|
|
11517
11517
|
if (input.setupReady === false) {
|
|
@@ -11521,7 +11521,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11521
11521
|
return 0;
|
|
11522
11522
|
}
|
|
11523
11523
|
}, $scope9_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11524
|
-
_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" : ""}>`);
|
|
11525
11525
|
icon_folder_plus_default({ size: 16 });
|
|
11526
11526
|
_html(`</a>${_el_resume($scope9_id, "g")}`);
|
|
11527
11527
|
_script($scope9_id, "A15");
|
|
@@ -11861,8 +11861,8 @@ function treeDirs(files) {
|
|
|
11861
11861
|
};
|
|
11862
11862
|
return build(root, "", "", -1);
|
|
11863
11863
|
}
|
|
11864
|
-
var treeToggle = "
|
|
11865
|
-
var pageTitle = "
|
|
11864
|
+
var treeToggle = "_fN _5 _l";
|
|
11865
|
+
var pageTitle = "_fU _cm";
|
|
11866
11866
|
//#endregion
|
|
11867
11867
|
//#region src/tags/diff-send.marko
|
|
11868
11868
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -11872,7 +11872,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11872
11872
|
let sendTarget = null;
|
|
11873
11873
|
const sessions = input.sessions || [];
|
|
11874
11874
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
11875
|
-
_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")}`);
|
|
11876
11876
|
_if(() => {
|
|
11877
11877
|
if (sessions.length === 1) {
|
|
11878
11878
|
const $scope1_id = _scope_id();
|
|
@@ -11882,11 +11882,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11882
11882
|
return 0;
|
|
11883
11883
|
} else if (sessions.length) {
|
|
11884
11884
|
const $scope2_id = _scope_id();
|
|
11885
|
-
_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")}`);
|
|
11886
11886
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
11887
11887
|
sendTarget = _new_sendTarget;
|
|
11888
11888
|
}, "j0", $scope2_id), () => {
|
|
11889
|
-
_html(`<select${_attr_class("
|
|
11889
|
+
_html(`<select${_attr_class("_ih")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
11890
11890
|
_for_of(sessions, (s) => {
|
|
11891
11891
|
const $scope3_id = _scope_id();
|
|
11892
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)}`);
|
|
@@ -13398,8 +13398,8 @@ function clip(line, at, len) {
|
|
|
13398
13398
|
const end = Math.min(line.length, at + len + pad);
|
|
13399
13399
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13400
13400
|
}
|
|
13401
|
-
var findInput = "
|
|
13402
|
-
var findIconBtn = "
|
|
13401
|
+
var findInput = "_h4 _n";
|
|
13402
|
+
var findIconBtn = "_h7 _l";
|
|
13403
13403
|
//#endregion
|
|
13404
13404
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13405
13405
|
var icon_arrow_down_default = _template("K", (input) => {
|
|
@@ -13487,9 +13487,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13487
13487
|
el.select();
|
|
13488
13488
|
}, 0);
|
|
13489
13489
|
}, "i0", $scope0_id);
|
|
13490
|
-
_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) {
|
|
13491
13491
|
type(v);
|
|
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("
|
|
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"}>`);
|
|
13493
13493
|
icon_arrow_up_default({ size: 14 });
|
|
13494
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"}>`);
|
|
13495
13495
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13591,9 +13591,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13591
13591
|
}
|
|
13592
13592
|
return shortHeadFallback(head);
|
|
13593
13593
|
}
|
|
13594
|
-
var repoWorktree = "
|
|
13595
|
-
var repoTitle = "
|
|
13596
|
-
var path$1 = "
|
|
13594
|
+
var repoWorktree = "_iF _y";
|
|
13595
|
+
var repoTitle = "_iL _x";
|
|
13596
|
+
var path$1 = "_i2 _bb";
|
|
13597
13597
|
//#endregion
|
|
13598
13598
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13599
13599
|
var icon_chevron_down_default = _template("T", (input) => {
|
|
@@ -13729,14 +13729,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13729
13729
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
13730
13730
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13731
13731
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
13732
|
-
_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 }])}>`);
|
|
13733
13733
|
_if(() => {
|
|
13734
13734
|
if (input.collapsible) {
|
|
13735
13735
|
const $scope1_id = _scope_id();
|
|
13736
|
-
_html(`<button type=button${_attr_class("
|
|
13737
|
-
"
|
|
13738
|
-
!input.collapsed && "
|
|
13739
|
-
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"
|
|
13740
13740
|
])} aria-hidden=true>`);
|
|
13741
13741
|
_if(() => {
|
|
13742
13742
|
if (input.collapsed) {
|
|
@@ -13775,14 +13775,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13775
13775
|
return 1;
|
|
13776
13776
|
}
|
|
13777
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);
|
|
13778
|
-
_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>`);
|
|
13779
13779
|
_if(() => {
|
|
13780
13780
|
if (compare$1.topic) {
|
|
13781
13781
|
const $scope16_id = _scope_id();
|
|
13782
13782
|
_html(`<span${_attr_class([
|
|
13783
13783
|
"_N",
|
|
13784
13784
|
tone.accent,
|
|
13785
|
-
"
|
|
13785
|
+
"_iQ"
|
|
13786
13786
|
])}>${_text_resume($scope16_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13787
13787
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
13788
13788
|
return 0;
|
|
@@ -13795,7 +13795,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13795
13795
|
_html(`<button type=button${_attr_class([
|
|
13796
13796
|
"_N",
|
|
13797
13797
|
tone.warn,
|
|
13798
|
-
"
|
|
13798
|
+
"_iR"
|
|
13799
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")}`);
|
|
13800
13800
|
_script($scope2_id, "w10");
|
|
13801
13801
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13805,7 +13805,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13805
13805
|
_if(() => {
|
|
13806
13806
|
if (repo.contained && input.files.length) {
|
|
13807
13807
|
const $scope13_id = _scope_id();
|
|
13808
|
-
_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)}`);
|
|
13809
13809
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13810
13810
|
return 0;
|
|
13811
13811
|
}
|
|
@@ -13813,16 +13813,16 @@ var review_section_default = _template("w", (input) => {
|
|
|
13813
13813
|
_if(() => {
|
|
13814
13814
|
if (input.localDiffers) {
|
|
13815
13815
|
const $scope3_id = _scope_id();
|
|
13816
|
-
_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)}`);
|
|
13817
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) });
|
|
13818
13818
|
return 0;
|
|
13819
13819
|
}
|
|
13820
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);
|
|
13821
|
-
_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>`);
|
|
13822
13822
|
_if(() => {
|
|
13823
13823
|
if (stats.additions || stats.deletions) {
|
|
13824
13824
|
const $scope15_id = _scope_id();
|
|
13825
|
-
_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>`);
|
|
13826
13826
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
13827
13827
|
return 0;
|
|
13828
13828
|
}
|
|
@@ -13830,7 +13830,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13830
13830
|
_if(() => {
|
|
13831
13831
|
if (newCount || input.onlyNew) {
|
|
13832
13832
|
const $scope4_id = _scope_id();
|
|
13833
|
-
_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")}`);
|
|
13834
13834
|
_script($scope4_id, "w11");
|
|
13835
13835
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13836
13836
|
return 0;
|
|
@@ -13840,7 +13840,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13840
13840
|
_if(() => {
|
|
13841
13841
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
13842
13842
|
const $scope5_id = _scope_id();
|
|
13843
|
-
_html(`<div${_attr_class("
|
|
13843
|
+
_html(`<div${_attr_class("_iT")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
13844
13844
|
_for_of(input.files, (file$2) => {
|
|
13845
13845
|
const $scope6_id = _scope_id();
|
|
13846
13846
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -13853,14 +13853,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13853
13853
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
13854
13854
|
input.onFileToggle(file$2.key, open);
|
|
13855
13855
|
}, "w0", $scope6_id))}${_attr_class([
|
|
13856
|
-
"
|
|
13857
|
-
forceNear && "
|
|
13858
|
-
input.findHit?.key === file$2.key && "
|
|
13859
|
-
])}${_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))}`);
|
|
13860
13860
|
_if(() => {
|
|
13861
13861
|
if (file$2.changedSince) {
|
|
13862
13862
|
const $scope20_id = _scope_id();
|
|
13863
|
-
_html(`<span${_attr_class(["_A", "
|
|
13863
|
+
_html(`<span${_attr_class(["_A", "_iS"])} title="Changed since your last visit"></span>`);
|
|
13864
13864
|
$si__input_files && writeScope($scope20_id, {});
|
|
13865
13865
|
return 0;
|
|
13866
13866
|
}
|
|
@@ -13880,8 +13880,8 @@ var review_section_default = _template("w", (input) => {
|
|
|
13880
13880
|
const $scope14_id = _scope_id();
|
|
13881
13881
|
_html(`<button type=button${_attr_class([
|
|
13882
13882
|
iconBtnXs,
|
|
13883
|
-
"
|
|
13884
|
-
{ ["
|
|
13883
|
+
"_i4",
|
|
13884
|
+
{ ["_i5"]: wholeFiles.has(file$2.key) }
|
|
13885
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"}>`);
|
|
13886
13886
|
_if(() => {
|
|
13887
13887
|
if (wholeFiles.has(file$2.key)) {
|
|
@@ -13908,17 +13908,17 @@ var review_section_default = _template("w", (input) => {
|
|
|
13908
13908
|
_if(() => {
|
|
13909
13909
|
if (file$2.binary) {
|
|
13910
13910
|
const $scope23_id = _scope_id();
|
|
13911
|
-
_html(`<p${_attr_class(["
|
|
13911
|
+
_html(`<p${_attr_class(["_i3", "_iW"])}>binary file</p>`);
|
|
13912
13912
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
13913
13913
|
return 0;
|
|
13914
13914
|
} else if (file$2.tooLarge) {
|
|
13915
13915
|
const $scope24_id = _scope_id();
|
|
13916
|
-
_html(`<p${_attr_class(["
|
|
13916
|
+
_html(`<p${_attr_class(["_i3", "_iW"])}>file too large to display</p>`);
|
|
13917
13917
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
13918
13918
|
return 1;
|
|
13919
13919
|
} else if (file$2.old == null && file$2.new == null) {
|
|
13920
13920
|
const $scope25_id = _scope_id();
|
|
13921
|
-
_html(`<p${_attr_class(["
|
|
13921
|
+
_html(`<p${_attr_class(["_i3", "_iW"])}>file could not be read</p>`);
|
|
13922
13922
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
13923
13923
|
return 2;
|
|
13924
13924
|
} else if (expanded) {
|
|
@@ -13926,7 +13926,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13926
13926
|
_if(() => {
|
|
13927
13927
|
if (!forceNear) {
|
|
13928
13928
|
const $scope8_id = _scope_id();
|
|
13929
|
-
_html(`<div${_attr_class("
|
|
13929
|
+
_html(`<div${_attr_class("_iY")}></div>${_el_resume($scope8_id, "a")}`);
|
|
13930
13930
|
_script($scope8_id, "w13");
|
|
13931
13931
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
13932
13932
|
return 0;
|
|
@@ -13934,7 +13934,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13934
13934
|
const $scope9_id = _scope_id();
|
|
13935
13935
|
const $childScope = _peek_scope_id();
|
|
13936
13936
|
diff_file_default({
|
|
13937
|
-
class: "
|
|
13937
|
+
class: "_iW",
|
|
13938
13938
|
file: file$2,
|
|
13939
13939
|
comments: fileComments,
|
|
13940
13940
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -14138,7 +14138,7 @@ var $content = (input) => {
|
|
|
14138
14138
|
_for_of(dir.dirs, (child) => {
|
|
14139
14139
|
const $scope1_id = _scope_id();
|
|
14140
14140
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14141
|
-
_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")}>`);
|
|
14142
14142
|
_if(() => {
|
|
14143
14143
|
if (shut) {
|
|
14144
14144
|
const $scope4_id = _scope_id();
|
|
@@ -14152,7 +14152,7 @@ var $content = (input) => {
|
|
|
14152
14152
|
return 1;
|
|
14153
14153
|
}
|
|
14154
14154
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14155
|
-
_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")}`);
|
|
14156
14156
|
_if(() => {
|
|
14157
14157
|
if (!shut) {
|
|
14158
14158
|
const $scope2_id = _scope_id();
|
|
@@ -14199,11 +14199,11 @@ var $content = (input) => {
|
|
|
14199
14199
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14200
14200
|
_for_of(dir.files, ({ file, name }) => {
|
|
14201
14201
|
const $scope3_id = _scope_id();
|
|
14202
|
-
_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>`);
|
|
14203
14203
|
_if(() => {
|
|
14204
14204
|
if (input.newKeys.has(file.key)) {
|
|
14205
14205
|
const $scope6_id = _scope_id();
|
|
14206
|
-
_html(`<span${_attr_class(["_A", "
|
|
14206
|
+
_html(`<span${_attr_class(["_A", "_iw"])} title="Changed since your last visit"></span>`);
|
|
14207
14207
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14208
14208
|
return 0;
|
|
14209
14209
|
}
|
|
@@ -14211,7 +14211,7 @@ var $content = (input) => {
|
|
|
14211
14211
|
_if(() => {
|
|
14212
14212
|
if (input.commentKeys.has(file.key)) {
|
|
14213
14213
|
const $scope7_id = _scope_id();
|
|
14214
|
-
_html(`<span${_attr_class("
|
|
14214
|
+
_html(`<span${_attr_class("_ix")}>`);
|
|
14215
14215
|
icon_comment_default({ size: 12 });
|
|
14216
14216
|
_html("</span>");
|
|
14217
14217
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14269,7 +14269,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14269
14269
|
scope: input.scope ?? null,
|
|
14270
14270
|
file: key
|
|
14271
14271
|
}), "l0", $scope0_id);
|
|
14272
|
-
_html(`<aside${_attr_class(["
|
|
14272
|
+
_html(`<aside${_attr_class(["_ij", { ["_ii"]: input.open === false }])}><div${_attr_class("_ik")}>`);
|
|
14273
14273
|
_set_serialize_reason(2);
|
|
14274
14274
|
const $childScope = _peek_scope_id();
|
|
14275
14275
|
file_filter_default({
|
|
@@ -14278,18 +14278,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14278
14278
|
filter = _new_filter;
|
|
14279
14279
|
}, "l1", $scope0_id)
|
|
14280
14280
|
});
|
|
14281
|
-
_html(`</div><div${_attr_class("
|
|
14281
|
+
_html(`</div><div${_attr_class("_il")}>`);
|
|
14282
14282
|
_if(() => {
|
|
14283
14283
|
if (!input.sections.length && filter) {
|
|
14284
14284
|
const $scope3_id = _scope_id();
|
|
14285
|
-
_html(`<p${_attr_class("
|
|
14285
|
+
_html(`<p${_attr_class("_im")}>No files match.</p>`);
|
|
14286
14286
|
writeScope($scope3_id, {});
|
|
14287
14287
|
return 0;
|
|
14288
14288
|
}
|
|
14289
14289
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14290
14290
|
_for_of(input.sections, (section) => {
|
|
14291
14291
|
const $scope1_id = _scope_id();
|
|
14292
|
-
_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")}>`);
|
|
14293
14293
|
_if(() => {
|
|
14294
14294
|
if (collapsedRepos.has(section.id)) {
|
|
14295
14295
|
const $scope4_id = _scope_id();
|
|
@@ -14303,12 +14303,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14303
14303
|
return 1;
|
|
14304
14304
|
}
|
|
14305
14305
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14306
|
-
_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")}`);
|
|
14307
14307
|
_if(() => {
|
|
14308
14308
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14309
14309
|
const $scope2_id = _scope_id();
|
|
14310
14310
|
const root = treeDirs(section.files);
|
|
14311
|
-
_html(`<div${_attr_class("
|
|
14311
|
+
_html(`<div${_attr_class("_ip")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14312
14312
|
_set_serialize_reason(1);
|
|
14313
14313
|
const $childScope2 = _peek_scope_id();
|
|
14314
14314
|
diff_tree_dir_default({
|
|
@@ -14378,7 +14378,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14378
14378
|
});
|
|
14379
14379
|
_resume_branch($scope0_id);
|
|
14380
14380
|
});
|
|
14381
|
-
var sheetDir = "
|
|
14381
|
+
var sheetDir = "_hD _bb";
|
|
14382
14382
|
//#endregion
|
|
14383
14383
|
//#region src/tags/diff-file-sheet.marko
|
|
14384
14384
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14434,9 +14434,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14434
14434
|
_if(() => {
|
|
14435
14435
|
if (open) {
|
|
14436
14436
|
const $scope1_id = _scope_id();
|
|
14437
|
-
_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>`);
|
|
14438
14438
|
icon_xmark_default({ size: 16 });
|
|
14439
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14439
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_hF")}>`);
|
|
14440
14440
|
_set_serialize_reason(2);
|
|
14441
14441
|
const $childScope = _peek_scope_id();
|
|
14442
14442
|
file_filter_default({
|
|
@@ -14445,13 +14445,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14445
14445
|
filter = _new_filter;
|
|
14446
14446
|
}, "g1", $scope1_id)
|
|
14447
14447
|
});
|
|
14448
|
-
_html(`</div><div${_attr_class("
|
|
14448
|
+
_html(`</div><div${_attr_class("_hy")}>`);
|
|
14449
14449
|
_for_of(groups, (group) => {
|
|
14450
14450
|
const $scope2_id = _scope_id();
|
|
14451
|
-
_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>`);
|
|
14452
14452
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14453
14453
|
const $scope3_id = _scope_id();
|
|
14454
|
-
_html(`<div${_attr_class("
|
|
14454
|
+
_html(`<div${_attr_class("_hB")}>`);
|
|
14455
14455
|
_if(() => {
|
|
14456
14456
|
if (dir) {
|
|
14457
14457
|
const $scope5_id = _scope_id();
|
|
@@ -14462,11 +14462,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14462
14462
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14463
14463
|
_for_of(files, ({ file, name }) => {
|
|
14464
14464
|
const $scope4_id = _scope_id();
|
|
14465
|
-
_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>`);
|
|
14466
14466
|
_if(() => {
|
|
14467
14467
|
if (newKeys.has(file.key)) {
|
|
14468
14468
|
const $scope6_id = _scope_id();
|
|
14469
|
-
_html(`<span${_attr_class(["_A", "
|
|
14469
|
+
_html(`<span${_attr_class(["_A", "_hH"])} title="Changed since your last visit"></span>`);
|
|
14470
14470
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14471
14471
|
return 0;
|
|
14472
14472
|
}
|
|
@@ -14476,7 +14476,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14476
14476
|
const $scope7_id = _scope_id();
|
|
14477
14477
|
icon_comment_default({
|
|
14478
14478
|
size: 12,
|
|
14479
|
-
class: "
|
|
14479
|
+
class: "_hI"
|
|
14480
14480
|
});
|
|
14481
14481
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14482
14482
|
return 0;
|
|
@@ -14501,7 +14501,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14501
14501
|
_if(() => {
|
|
14502
14502
|
if (!input.files.length) {
|
|
14503
14503
|
const $scope8_id = _scope_id();
|
|
14504
|
-
_html(`<p${_attr_class("
|
|
14504
|
+
_html(`<p${_attr_class("_hG")}>No files match.</p>`);
|
|
14505
14505
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14506
14506
|
return 0;
|
|
14507
14507
|
}
|
|
@@ -15041,11 +15041,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15041
15041
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
15042
15042
|
}
|
|
15043
15043
|
}, "m33", $scope0_id);
|
|
15044
|
-
_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 }])}>`);
|
|
15045
15045
|
_if(() => {
|
|
15046
15046
|
if (input.onExit) {
|
|
15047
15047
|
const $scope1_id = _scope_id();
|
|
15048
|
-
_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)">`);
|
|
15049
15049
|
icon_back_default({ size: 14 });
|
|
15050
15050
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
15051
15051
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -15056,7 +15056,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15056
15056
|
_if(() => {
|
|
15057
15057
|
if (comments.length) {
|
|
15058
15058
|
const $scope5_id = _scope_id();
|
|
15059
|
-
_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>`);
|
|
15060
15060
|
writeScope($scope5_id, {});
|
|
15061
15061
|
return 0;
|
|
15062
15062
|
}
|
|
@@ -15064,7 +15064,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15064
15064
|
_if(() => {
|
|
15065
15065
|
if (comments.length) {
|
|
15066
15066
|
const $scope2_id = _scope_id();
|
|
15067
|
-
_html(`<span${_attr_class("
|
|
15067
|
+
_html(`<span${_attr_class("_fS")}>`);
|
|
15068
15068
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
15069
15069
|
const $childScope = _peek_scope_id();
|
|
15070
15070
|
diff_send_default({
|
|
@@ -15077,14 +15077,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15077
15077
|
return 0;
|
|
15078
15078
|
}
|
|
15079
15079
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
15080
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15080
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_fO")}>`);
|
|
15081
15081
|
_if(() => {
|
|
15082
15082
|
if (hasFiles) {
|
|
15083
15083
|
const $scope12_id = _scope_id();
|
|
15084
15084
|
_html(`<button${_attr_class([
|
|
15085
15085
|
treeToggle,
|
|
15086
|
-
"
|
|
15087
|
-
{ ["
|
|
15086
|
+
"_fM",
|
|
15087
|
+
{ ["_fL"]: treeOpen }
|
|
15088
15088
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
15089
15089
|
icon_sidebar_default({ size: 14 });
|
|
15090
15090
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -15093,7 +15093,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15093
15093
|
return 0;
|
|
15094
15094
|
}
|
|
15095
15095
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15096
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15096
|
+
_html(`<button${_attr_class([iconBtnRow, "_fM"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
15097
15097
|
_set_serialize_reason(1);
|
|
15098
15098
|
const $childScope2 = _peek_scope_id();
|
|
15099
15099
|
icon_refresh_default({
|
|
@@ -15104,19 +15104,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15104
15104
|
_if(() => {
|
|
15105
15105
|
if (hasFiles) {
|
|
15106
15106
|
const $scope13_id = _scope_id();
|
|
15107
|
-
_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")}`);
|
|
15108
15108
|
_script($scope13_id, "m53");
|
|
15109
15109
|
writeScope($scope13_id, {});
|
|
15110
15110
|
return 0;
|
|
15111
15111
|
}
|
|
15112
15112
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15113
|
-
_html(`<span${_attr_class(["_o", "
|
|
15113
|
+
_html(`<span${_attr_class(["_o", "_f1"])}>`);
|
|
15114
15114
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15115
15115
|
setScope(v);
|
|
15116
15116
|
}, "m0", $scope0_id), () => {
|
|
15117
|
-
_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>`);
|
|
15118
15118
|
});
|
|
15119
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15119
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_fX", { ["_fW"]: !findOpen }])}>`);
|
|
15120
15120
|
_set_serialize_reason(2);
|
|
15121
15121
|
const $childScope3 = _peek_scope_id();
|
|
15122
15122
|
let findFocus = diff_find_default({
|
|
@@ -15137,8 +15137,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15137
15137
|
const $scope14_id = _scope_id();
|
|
15138
15138
|
_html(`<button${_attr_class([
|
|
15139
15139
|
iconBtnRow,
|
|
15140
|
-
"
|
|
15141
|
-
"
|
|
15140
|
+
"_fV",
|
|
15141
|
+
"_fM"
|
|
15142
15142
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15143
15143
|
icon_search_default({ size: 14 });
|
|
15144
15144
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15147,7 +15147,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15147
15147
|
return 0;
|
|
15148
15148
|
}
|
|
15149
15149
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15150
|
-
_html(`</div></div><div${_attr_class("
|
|
15150
|
+
_html(`</div></div><div${_attr_class("_fY")} data-diff-main>`);
|
|
15151
15151
|
_if(() => {
|
|
15152
15152
|
if (error) {
|
|
15153
15153
|
const $scope6_id = _scope_id();
|
|
@@ -15170,7 +15170,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15170
15170
|
_if(() => {
|
|
15171
15171
|
if (!repos && loading) {
|
|
15172
15172
|
const $scope15_id = _scope_id();
|
|
15173
|
-
_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>`);
|
|
15174
15174
|
writeScope($scope15_id, {});
|
|
15175
15175
|
return 0;
|
|
15176
15176
|
}
|
|
@@ -15572,13 +15572,13 @@ function parseInvite(text) {
|
|
|
15572
15572
|
}
|
|
15573
15573
|
//#endregion
|
|
15574
15574
|
//#region src/tags/manage-workspace.css.ts
|
|
15575
|
-
var content$1 = "
|
|
15576
|
-
var pageMeta = "
|
|
15577
|
-
var pathMeta = "
|
|
15578
|
-
var skillRow = "
|
|
15579
|
-
var skillName = "
|
|
15580
|
-
var skillDesc = "
|
|
15581
|
-
var skillEnd = "
|
|
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";
|
|
15582
15582
|
//#endregion
|
|
15583
15583
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15584
15584
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -15596,8 +15596,8 @@ var icon_clipboard_default = _template("V", (input) => {
|
|
|
15596
15596
|
});
|
|
15597
15597
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15598
15598
|
});
|
|
15599
|
-
var resultRow = "
|
|
15600
|
-
var resultBranch = "
|
|
15599
|
+
var resultRow = "_hg _I";
|
|
15600
|
+
var resultBranch = "_hi _4 _l";
|
|
15601
15601
|
//#endregion
|
|
15602
15602
|
//#region src/tags/icons/icon-branch.marko
|
|
15603
15603
|
var icon_branch_default = _template("R", (input) => {
|
|
@@ -15627,7 +15627,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15627
15627
|
let branchFilter = "";
|
|
15628
15628
|
let reloadTick = 0;
|
|
15629
15629
|
let refreshing = false;
|
|
15630
|
-
_html(`<div${_attr_class("
|
|
15630
|
+
_html(`<div${_attr_class("_hk")}>`);
|
|
15631
15631
|
_if(() => {
|
|
15632
15632
|
{
|
|
15633
15633
|
const $scope4_id = _scope_id();
|
|
@@ -15732,14 +15732,14 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15732
15732
|
_resume_branch($scope8_id);
|
|
15733
15733
|
}, $scope0_id) };
|
|
15734
15734
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
15735
|
-
_html(`<div${_attr_class([compact ? "_dS" : "
|
|
15735
|
+
_html(`<div${_attr_class([compact ? "_dS" : "_ha", {
|
|
15736
15736
|
["_dT"]: compact && !input$2.open,
|
|
15737
15737
|
["_dU"]: input$2.pinned
|
|
15738
15738
|
}])}>`);
|
|
15739
15739
|
_if(() => {
|
|
15740
15740
|
if (!compact && ssoPending.length) {
|
|
15741
15741
|
const $scope10_id = _scope_id();
|
|
15742
|
-
_html(`<div${_attr_class("
|
|
15742
|
+
_html(`<div${_attr_class("_hb")}>`);
|
|
15743
15743
|
ssoBlock.content({});
|
|
15744
15744
|
_html("</div>");
|
|
15745
15745
|
writeScope($scope10_id, {});
|
|
@@ -15771,11 +15771,11 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15771
15771
|
return 0;
|
|
15772
15772
|
}
|
|
15773
15773
|
}, $scope0_id, "f", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
15774
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
15774
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hc"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
15775
15775
|
_if(() => {
|
|
15776
15776
|
if (compact && ssoPending.length) {
|
|
15777
15777
|
const $scope11_id = _scope_id();
|
|
15778
|
-
_html(`<div${_attr_class("
|
|
15778
|
+
_html(`<div${_attr_class("_hb")}>`);
|
|
15779
15779
|
ssoBlock.content({});
|
|
15780
15780
|
_html("</div>");
|
|
15781
15781
|
writeScope($scope11_id, {});
|
|
@@ -15785,16 +15785,16 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15785
15785
|
_if(() => {
|
|
15786
15786
|
if (pasted) {
|
|
15787
15787
|
const $scope2_id = _scope_id();
|
|
15788
|
-
_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)`)}>`);
|
|
15789
15789
|
icon_plus_default({
|
|
15790
15790
|
size: 12,
|
|
15791
|
-
class: "
|
|
15791
|
+
class: "_hm"
|
|
15792
15792
|
});
|
|
15793
|
-
_html(`<span${_attr_class("
|
|
15793
|
+
_html(`<span${_attr_class("_hn")}>${_text_resume($scope2_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
15794
15794
|
_if(() => {
|
|
15795
15795
|
if (pastedForkable) {
|
|
15796
15796
|
const $scope9_id = _scope_id();
|
|
15797
|
-
_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"}>`);
|
|
15798
15798
|
_if(() => {
|
|
15799
15799
|
if (pasteWillFork) {
|
|
15800
15800
|
const $scope13_id = _scope_id();
|
|
@@ -15814,7 +15814,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15814
15814
|
return 0;
|
|
15815
15815
|
}
|
|
15816
15816
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
15817
|
-
_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}`)}>`);
|
|
15818
15818
|
icon_branch_default({ size: 12 });
|
|
15819
15819
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
15820
15820
|
_if(() => {
|
|
@@ -15849,15 +15849,15 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15849
15849
|
_if(() => {
|
|
15850
15850
|
if (results.length) {
|
|
15851
15851
|
const $scope4_id = _scope_id();
|
|
15852
|
-
_html(`<ul${_attr_class("
|
|
15852
|
+
_html(`<ul${_attr_class("_hd")}>`);
|
|
15853
15853
|
_for_of(results, (repo, i) => {
|
|
15854
15854
|
const $scope5_id = _scope_id();
|
|
15855
|
-
_html(`<li><div${_attr_class(["
|
|
15855
|
+
_html(`<li><div${_attr_class(["_hf", { ["_he"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15856
15856
|
icon_plus_default({
|
|
15857
15857
|
size: 12,
|
|
15858
|
-
class: "
|
|
15858
|
+
class: "_hm"
|
|
15859
15859
|
});
|
|
15860
|
-
_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}`)}>`);
|
|
15861
15861
|
icon_branch_default({ size: 12 });
|
|
15862
15862
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
15863
15863
|
_if(() => {
|
|
@@ -15966,13 +15966,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15966
15966
|
const $ws_repos_length__closures = /* @__PURE__ */ new Set();
|
|
15967
15967
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
15968
15968
|
const $confirmingRemove__closures = /* @__PURE__ */ new Set();
|
|
15969
|
-
const $wsSkills_length__closures = /* @__PURE__ */ new Set();
|
|
15970
15969
|
const $confirmingSkill__closures = /* @__PURE__ */ new Set();
|
|
15971
|
-
const $
|
|
15970
|
+
const $skillBusy__closures = /* @__PURE__ */ new Set();
|
|
15972
15971
|
const $skills__closures = /* @__PURE__ */ new Set();
|
|
15973
15972
|
let catalogRefreshing = false;
|
|
15974
15973
|
let procs = lastData.get(`procs:${input.workspace.id}`) || null;
|
|
15975
15974
|
let busy = /* @__PURE__ */ new Set();
|
|
15975
|
+
let skillBusy = /* @__PURE__ */ new Set();
|
|
15976
15976
|
let error = null;
|
|
15977
15977
|
let pendingAction = null;
|
|
15978
15978
|
let confirmingDelete = false;
|
|
@@ -16027,10 +16027,16 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16027
16027
|
else next.delete(name);
|
|
16028
16028
|
busy = next;
|
|
16029
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);
|
|
16030
16036
|
const runSkill = _resume(async (key, body) => {
|
|
16031
|
-
if (
|
|
16037
|
+
if (skillBusy.has(key)) return;
|
|
16032
16038
|
error = null;
|
|
16033
|
-
|
|
16039
|
+
setSkillBusy(key, true);
|
|
16034
16040
|
const seq = ++skillSeq.issued;
|
|
16035
16041
|
try {
|
|
16036
16042
|
applySkills(await api$4(`/api/workspaces/${ws.id}/skills`, {
|
|
@@ -16041,9 +16047,9 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16041
16047
|
} catch (err) {
|
|
16042
16048
|
error = String(err.message || err);
|
|
16043
16049
|
} finally {
|
|
16044
|
-
|
|
16050
|
+
setSkillBusy(key, false);
|
|
16045
16051
|
}
|
|
16046
|
-
}, "
|
|
16052
|
+
}, "q6", $scope0_id);
|
|
16047
16053
|
const addRepo = _resume(async (name, baseBranch, fork) => {
|
|
16048
16054
|
if (!name || busy.has(name)) return;
|
|
16049
16055
|
error = null;
|
|
@@ -16062,7 +16068,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16062
16068
|
error = String(err.message || err);
|
|
16063
16069
|
}
|
|
16064
16070
|
setBusy(name, false);
|
|
16065
|
-
}, "
|
|
16071
|
+
}, "q7", $scope0_id);
|
|
16066
16072
|
const removeRepo = _resume(async (row) => {
|
|
16067
16073
|
if (busy.has(row.full_name)) return;
|
|
16068
16074
|
error = null;
|
|
@@ -16077,7 +16083,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16077
16083
|
error = String(err.message || err);
|
|
16078
16084
|
}
|
|
16079
16085
|
setBusy(row.full_name, false);
|
|
16080
|
-
}, "
|
|
16086
|
+
}, "q8", $scope0_id);
|
|
16081
16087
|
const runAction = _resume(async (action) => {
|
|
16082
16088
|
error = null;
|
|
16083
16089
|
pendingAction = action;
|
|
@@ -16099,13 +16105,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16099
16105
|
pendingAction = null;
|
|
16100
16106
|
actionStep = null;
|
|
16101
16107
|
}
|
|
16102
|
-
}, "
|
|
16108
|
+
}, "q9", $scope0_id);
|
|
16103
16109
|
const killProc = _resume(async (pid) => {
|
|
16104
16110
|
await fetch(`/api/procs/${pid}`, { method: "DELETE" });
|
|
16105
16111
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16106
|
-
}, "
|
|
16112
|
+
}, "q10", $scope0_id);
|
|
16107
16113
|
const titleId = _id();
|
|
16108
|
-
_html(`<div${_attr_class("
|
|
16114
|
+
_html(`<div${_attr_class("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><div${_attr_class(content$1)}>`);
|
|
16109
16115
|
_set_serialize_reason(30);
|
|
16110
16116
|
const $childScope = _peek_scope_id();
|
|
16111
16117
|
page_head_default({
|
|
@@ -16114,105 +16120,105 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16114
16120
|
backHref: `/w/${ws.id}`,
|
|
16115
16121
|
onBack: _resume(function() {
|
|
16116
16122
|
input.onExit?.();
|
|
16117
|
-
}, "
|
|
16118
|
-
meta: attrTag({ content: _content("
|
|
16123
|
+
}, "q11", $scope0_id),
|
|
16124
|
+
meta: attrTag({ content: _content("q20", () => {
|
|
16119
16125
|
_scope_reason();
|
|
16120
|
-
const $
|
|
16121
|
-
_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>`);
|
|
16122
16128
|
_if(() => {
|
|
16123
16129
|
if (ws.status !== "active") {
|
|
16124
|
-
const $
|
|
16130
|
+
const $scope17_id = _scope_id();
|
|
16125
16131
|
_html(`<span${_attr_class(["_N", "_P"])}>Archived</span>`);
|
|
16126
|
-
writeScope($
|
|
16132
|
+
writeScope($scope17_id, {});
|
|
16127
16133
|
return 0;
|
|
16128
16134
|
}
|
|
16129
|
-
}, $
|
|
16130
|
-
_html(`<span${_attr_class("
|
|
16131
|
-
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($
|
|
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, {
|
|
16132
16138
|
_: _scope_with_id($scope0_id),
|
|
16133
|
-
|
|
16139
|
+
Ccf: 1
|
|
16134
16140
|
})))));
|
|
16135
|
-
_resume_branch($
|
|
16141
|
+
_resume_branch($scope13_id);
|
|
16136
16142
|
}, $scope0_id) }),
|
|
16137
|
-
actions: attrTag({ content: _content("
|
|
16143
|
+
actions: attrTag({ content: _content("q21", () => {
|
|
16138
16144
|
_scope_reason();
|
|
16139
|
-
const $
|
|
16145
|
+
const $scope6_id = _scope_id();
|
|
16140
16146
|
_if(() => {
|
|
16141
16147
|
if (ws.repos.length) {
|
|
16142
|
-
const $
|
|
16148
|
+
const $scope12_id = _scope_id();
|
|
16143
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">`);
|
|
16144
16150
|
_if(() => {
|
|
16145
16151
|
if (copied) {
|
|
16146
|
-
const $
|
|
16152
|
+
const $scope18_id = _scope_id();
|
|
16147
16153
|
icon_check_default({ size: 14 });
|
|
16148
|
-
writeScope($
|
|
16154
|
+
writeScope($scope18_id, {});
|
|
16149
16155
|
return 0;
|
|
16150
16156
|
} else {
|
|
16151
|
-
const $
|
|
16157
|
+
const $scope19_id = _scope_id();
|
|
16152
16158
|
icon_clipboard_default({ size: 14 });
|
|
16153
|
-
writeScope($
|
|
16159
|
+
writeScope($scope19_id, {});
|
|
16154
16160
|
return 1;
|
|
16155
16161
|
}
|
|
16156
|
-
}, $
|
|
16157
|
-
_script($
|
|
16158
|
-
_subscribe($ws_branch__closures, _subscribe($ws_origin_branch__closures, _subscribe($copied__closures, writeScope($
|
|
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, {}))));
|
|
16159
16165
|
return 0;
|
|
16160
16166
|
}
|
|
16161
|
-
}, $
|
|
16167
|
+
}, $scope6_id, "a", 1, 1, 1, 0, 1);
|
|
16162
16168
|
_if(() => {
|
|
16163
16169
|
if (ws.status === "active") {
|
|
16164
|
-
const $
|
|
16165
|
-
_html(`<button type=button${_attr_class(btnSm)} title="Hide from the list. Worktrees stay on disk."${_attr("disabled", !!pendingAction)}>${_text_resume($
|
|
16166
|
-
_script($
|
|
16167
|
-
_subscribe($pendingAction__closures, writeScope($
|
|
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 }));
|
|
16168
16174
|
return 0;
|
|
16169
16175
|
} else {
|
|
16170
|
-
const $
|
|
16171
|
-
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Archived and hidden from the list. Bring it back."${_attr("disabled", !!pendingAction)}>${_text_resume($
|
|
16172
|
-
_script($
|
|
16173
|
-
_subscribe($pendingAction__closures, writeScope($
|
|
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 }));
|
|
16174
16180
|
return 1;
|
|
16175
16181
|
}
|
|
16176
|
-
}, $
|
|
16182
|
+
}, $scope6_id, "b", 1, 1, 1, 0, 1);
|
|
16177
16183
|
_html(`<button type=button${_attr_class([
|
|
16178
16184
|
btnSm,
|
|
16179
16185
|
"_t",
|
|
16180
16186
|
{ ["_s"]: confirmingDelete }
|
|
16181
|
-
])} title="Remove the workspace and its worktrees. Branches on origin stay."${_attr("disabled", !!pendingAction)}>${_text_resume($
|
|
16182
|
-
_script($
|
|
16183
|
-
_subscribe($ws_repos_length__closures, _subscribe($ws_status__closures, _subscribe($confirmingDelete__closures, _subscribe($pendingAction__closures, writeScope($
|
|
16184
|
-
_resume_branch($
|
|
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);
|
|
16185
16191
|
}, $scope0_id) })
|
|
16186
16192
|
});
|
|
16187
16193
|
_if(() => {
|
|
16188
16194
|
if (error) {
|
|
16189
|
-
const $
|
|
16195
|
+
const $scope4_id = _scope_id();
|
|
16190
16196
|
toast_default({
|
|
16191
16197
|
placement: "inline",
|
|
16192
16198
|
onDismiss: _resume(function() {
|
|
16193
16199
|
error = null;
|
|
16194
|
-
}, "
|
|
16195
|
-
content: _content("
|
|
16200
|
+
}, "q12", $scope4_id),
|
|
16201
|
+
content: _content("q22", () => {
|
|
16196
16202
|
_scope_reason();
|
|
16197
|
-
const $
|
|
16198
|
-
_html(_text_resume($
|
|
16199
|
-
_subscribe($error__closures, writeScope($
|
|
16200
|
-
_resume_branch($
|
|
16201
|
-
}, $
|
|
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)
|
|
16202
16208
|
});
|
|
16203
|
-
writeScope($
|
|
16209
|
+
writeScope($scope4_id, {});
|
|
16204
16210
|
return 0;
|
|
16205
16211
|
}
|
|
16206
16212
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
16207
16213
|
_if(() => {
|
|
16208
16214
|
if (pendingAction && actionStep) {
|
|
16209
|
-
const $
|
|
16210
|
-
_html(`<p${_attr_class("_bp")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
16211
|
-
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, {});
|
|
16212
16218
|
return 0;
|
|
16213
16219
|
}
|
|
16214
16220
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16215
|
-
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "
|
|
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)}>`);
|
|
16216
16222
|
icon_plus_default({ size: 16 });
|
|
16217
16223
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16218
16224
|
_set_serialize_reason(14);
|
|
@@ -16224,18 +16230,18 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16224
16230
|
exclude: inWorkspace,
|
|
16225
16231
|
onClose: _resume(function() {
|
|
16226
16232
|
addingRepo = false;
|
|
16227
|
-
}, "
|
|
16233
|
+
}, "q13", $scope0_id),
|
|
16228
16234
|
onPick: _resume(function(name, baseBranch, fork) {
|
|
16229
16235
|
addRepo(name, baseBranch, fork);
|
|
16230
|
-
}, "
|
|
16236
|
+
}, "q14", $scope0_id),
|
|
16231
16237
|
onError: _resume(function(message) {
|
|
16232
16238
|
error = message;
|
|
16233
|
-
}, "
|
|
16239
|
+
}, "q15", $scope0_id),
|
|
16234
16240
|
refreshingChange: function(busy) {
|
|
16235
16241
|
catalogRefreshing = busy;
|
|
16236
16242
|
}
|
|
16237
16243
|
});
|
|
16238
|
-
_var($scope0_id, "p", $childScope2, "
|
|
16244
|
+
_var($scope0_id, "p", $childScope2, "q23");
|
|
16239
16245
|
_html(`<button${_attr_class(iconBtn$1)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
16240
16246
|
_set_serialize_reason(1);
|
|
16241
16247
|
const $childScope3 = _peek_scope_id();
|
|
@@ -16245,31 +16251,31 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16245
16251
|
});
|
|
16246
16252
|
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class([
|
|
16247
16253
|
"_bv",
|
|
16248
|
-
"
|
|
16249
|
-
"
|
|
16254
|
+
"_cq",
|
|
16255
|
+
"_cE"
|
|
16250
16256
|
])}>`);
|
|
16251
16257
|
_for_of(ws.repos, (row) => {
|
|
16252
16258
|
const $scope1_id = _scope_id();
|
|
16253
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")}`);
|
|
16254
16260
|
_if(() => {
|
|
16255
16261
|
if (row.base_branch !== row.default_branch) {
|
|
16256
|
-
const $
|
|
16262
|
+
const $scope20_id = _scope_id();
|
|
16257
16263
|
_html(`<span${_attr_class(["_N", "_y"])} title="Base branch">`);
|
|
16258
16264
|
icon_branch_default({ size: 12 });
|
|
16259
|
-
_html(` ${_text_resume($
|
|
16260
|
-
writeScope($
|
|
16265
|
+
_html(` ${_text_resume($scope20_id, "c", row.base_branch, 2)}</span>`);
|
|
16266
|
+
writeScope($scope20_id, {});
|
|
16261
16267
|
return 0;
|
|
16262
16268
|
}
|
|
16263
16269
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
16264
16270
|
_html("</span></div>");
|
|
16265
16271
|
_if(() => {
|
|
16266
16272
|
if (busy.has(row.full_name)) {
|
|
16267
|
-
const $
|
|
16273
|
+
const $scope21_id = _scope_id();
|
|
16268
16274
|
_html(`<span${_attr_class("_G")}></span>`);
|
|
16269
|
-
writeScope($
|
|
16275
|
+
writeScope($scope21_id, {});
|
|
16270
16276
|
return 0;
|
|
16271
16277
|
} else {
|
|
16272
|
-
const $
|
|
16278
|
+
const $scope9_id = _scope_id();
|
|
16273
16279
|
_html(`<button${_attr_class([
|
|
16274
16280
|
"_bA",
|
|
16275
16281
|
"_8",
|
|
@@ -16278,19 +16284,19 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16278
16284
|
])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
|
|
16279
16285
|
_if(() => {
|
|
16280
16286
|
if (confirmingRemove === row.full_name) {
|
|
16281
|
-
const $
|
|
16287
|
+
const $scope22_id = _scope_id();
|
|
16282
16288
|
_html("Remove?");
|
|
16283
|
-
writeScope($
|
|
16289
|
+
writeScope($scope22_id, {});
|
|
16284
16290
|
return 0;
|
|
16285
16291
|
} else {
|
|
16286
|
-
const $
|
|
16292
|
+
const $scope23_id = _scope_id();
|
|
16287
16293
|
icon_xmark_default({ size: 14 });
|
|
16288
|
-
writeScope($
|
|
16294
|
+
writeScope($scope23_id, {});
|
|
16289
16295
|
return 1;
|
|
16290
16296
|
}
|
|
16291
|
-
}, $
|
|
16292
|
-
_script($
|
|
16293
|
-
_subscribe($confirmingRemove__closures, writeScope($
|
|
16297
|
+
}, $scope9_id, "a", 1, 1, 1, "</button>");
|
|
16298
|
+
_script($scope9_id, "q24");
|
|
16299
|
+
_subscribe($confirmingRemove__closures, writeScope($scope9_id, {}));
|
|
16294
16300
|
return 1;
|
|
16295
16301
|
}
|
|
16296
16302
|
}, $scope1_id, "i", 1, 1, 1, 0, 1);
|
|
@@ -16303,170 +16309,143 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16303
16309
|
});
|
|
16304
16310
|
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
16305
16311
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16306
|
-
const $
|
|
16307
|
-
_html(`<li${_attr_class([flatCardRow, "_bu"])}><span${_attr_class("_G")}></span><div${_attr_class("_bw")}><span${_attr_class("_bz")}>Adding ${_text_resume($
|
|
16308
|
-
writeScope($
|
|
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, {});
|
|
16309
16315
|
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
16310
16316
|
_if(() => {
|
|
16311
16317
|
if (!ws.repos.length && !busy.size) {
|
|
16312
|
-
const $
|
|
16318
|
+
const $scope25_id = _scope_id();
|
|
16313
16319
|
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_bz")}>No repos yet. Add one to start.</span></li>`);
|
|
16314
|
-
writeScope($
|
|
16320
|
+
writeScope($scope25_id, {});
|
|
16315
16321
|
return 0;
|
|
16316
16322
|
}
|
|
16317
16323
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
16318
16324
|
const wsSkills = skills?.workspace || [];
|
|
16319
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));
|
|
16320
16333
|
_html("</ul></section>");
|
|
16321
16334
|
_if(() => {
|
|
16322
|
-
if (
|
|
16335
|
+
if (allSkills.length) {
|
|
16323
16336
|
const $scope2_id = _scope_id();
|
|
16324
|
-
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Skills</h2
|
|
16325
|
-
_if(() => {
|
|
16326
|
-
if (wsSkills.length) {
|
|
16327
|
-
const $scope27_id = _scope_id();
|
|
16328
|
-
_html(`<span${_attr_class(sectionCount)}>${_text_resume($scope27_id, "b", wsSkills.length)}</span>`);
|
|
16329
|
-
_subscribe($wsSkills_length__closures, writeScope($scope27_id, {}));
|
|
16330
|
-
return 0;
|
|
16331
|
-
}
|
|
16332
|
-
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
16333
|
-
_html(`</div><ul${_attr_class([
|
|
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([
|
|
16334
16338
|
"_bv",
|
|
16335
|
-
"
|
|
16336
|
-
"
|
|
16339
|
+
"_cq",
|
|
16340
|
+
"_cE"
|
|
16337
16341
|
])}>`);
|
|
16338
|
-
_for_of(
|
|
16342
|
+
_for_of(allSkills, ({ s, linked }) => {
|
|
16339
16343
|
const $scope3_id = _scope_id();
|
|
16340
|
-
|
|
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>`);
|
|
16341
16346
|
_if(() => {
|
|
16342
16347
|
if (s.worktree && !s.broken) {
|
|
16343
|
-
const $
|
|
16348
|
+
const $scope26_id = _scope_id();
|
|
16344
16349
|
_html(`<span${_attr_class([
|
|
16345
16350
|
"_N",
|
|
16346
16351
|
"_y",
|
|
16347
|
-
"
|
|
16348
|
-
])}${_attr("title", `Linked from ${s.worktree}/ in this workspace`)}>${_text_resume($
|
|
16349
|
-
writeScope($
|
|
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, {});
|
|
16350
16355
|
return 0;
|
|
16351
16356
|
}
|
|
16352
16357
|
}, $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
16353
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)}>`);
|
|
16354
16359
|
_if(() => {
|
|
16355
16360
|
if (s.broken) {
|
|
16356
|
-
const $
|
|
16361
|
+
const $scope27_id = _scope_id();
|
|
16357
16362
|
_html(`<span${_attr_class([
|
|
16358
16363
|
"_N",
|
|
16359
16364
|
"_P",
|
|
16360
16365
|
tone.danger
|
|
16361
|
-
])}${_attr("title", `Points into ${s.worktree || "a repo"} that is no longer here`)}>broken link</span>${_el_resume($
|
|
16362
|
-
writeScope($
|
|
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, {});
|
|
16363
16368
|
return 0;
|
|
16364
|
-
} else if (s.sourceUrl) {
|
|
16365
|
-
const $
|
|
16366
|
-
_html(`<a${_attr_class(["_N", "_K"])}${_attr("href", s.sourceUrl)} target=_blank rel=noopener${_attr("title", `Installed from ${s.source}`)}>${_text_resume($
|
|
16367
|
-
writeScope($
|
|
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, {});
|
|
16368
16373
|
return 1;
|
|
16369
16374
|
}
|
|
16370
16375
|
}, $scope3_id, "i", 1, 1, 1, 0, 1);
|
|
16371
16376
|
_if(() => {
|
|
16372
|
-
if (s.shadows === "global") {
|
|
16373
|
-
const $
|
|
16377
|
+
if (linked && s.shadows === "global") {
|
|
16378
|
+
const $scope31_id = _scope_id();
|
|
16374
16379
|
_html(`<span${_attr_class("_N")} title="Used instead of the system skill of the same name">overrides system</span>`);
|
|
16375
|
-
writeScope($
|
|
16380
|
+
writeScope($scope31_id, {});
|
|
16376
16381
|
return 0;
|
|
16377
16382
|
}
|
|
16378
16383
|
}, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
16379
16384
|
_if(() => {
|
|
16380
|
-
if (
|
|
16381
|
-
const $
|
|
16382
|
-
_html(`<span${_attr_class("_N")}${_attr("title", `
|
|
16383
|
-
writeScope($
|
|
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, {});
|
|
16384
16389
|
return 0;
|
|
16385
16390
|
}
|
|
16386
16391
|
}, $scope3_id, "k", 1, 1, 1, 0, 1);
|
|
16387
16392
|
_if(() => {
|
|
16388
|
-
if (
|
|
16389
|
-
const $
|
|
16390
|
-
_html(`<span${_attr_class("
|
|
16391
|
-
writeScope($
|
|
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, {});
|
|
16392
16397
|
return 0;
|
|
16393
|
-
}
|
|
16394
|
-
|
|
16398
|
+
}
|
|
16399
|
+
}, $scope3_id, "l", 1, 1, 1, 0, 1);
|
|
16400
|
+
_if(() => {
|
|
16401
|
+
if (linked) {
|
|
16402
|
+
const $scope11_id = _scope_id();
|
|
16395
16403
|
_html(`<button${_attr_class([
|
|
16396
16404
|
"_bA",
|
|
16397
16405
|
"_8",
|
|
16398
16406
|
"_9",
|
|
16399
|
-
"
|
|
16407
|
+
"_gr",
|
|
16400
16408
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16401
|
-
])} type=button${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
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}`)}>`);
|
|
16402
16410
|
_if(() => {
|
|
16403
16411
|
if (confirmingSkill === s.id) {
|
|
16404
|
-
const $
|
|
16412
|
+
const $scope32_id = _scope_id();
|
|
16405
16413
|
_html("Remove?");
|
|
16406
|
-
writeScope($
|
|
16414
|
+
writeScope($scope32_id, {});
|
|
16407
16415
|
return 0;
|
|
16408
16416
|
} else {
|
|
16409
|
-
const $
|
|
16417
|
+
const $scope33_id = _scope_id();
|
|
16410
16418
|
icon_xmark_default({ size: 14 });
|
|
16411
|
-
writeScope($
|
|
16419
|
+
writeScope($scope33_id, {});
|
|
16412
16420
|
return 1;
|
|
16413
16421
|
}
|
|
16414
|
-
}, $
|
|
16415
|
-
_script($
|
|
16416
|
-
_subscribe($confirmingSkill__closures, writeScope($
|
|
16417
|
-
return 1;
|
|
16418
|
-
}
|
|
16419
|
-
}, $scope3_id, "l", 1, 1, 1, 0, 1);
|
|
16420
|
-
_html("</span></li>");
|
|
16421
|
-
_subscribe($skills__closures, _subscribe($busy__closures, writeScope($scope3_id, {
|
|
16422
|
-
o: s?.name,
|
|
16423
|
-
p: s?.worktree,
|
|
16424
|
-
t: s?.sourceUrl,
|
|
16425
|
-
v: s?.source,
|
|
16426
|
-
x: s?.agents,
|
|
16427
|
-
a0: s?.id,
|
|
16428
|
-
a2: s?.linked
|
|
16429
|
-
})));
|
|
16430
|
-
}, "id", $scope2_id, "f", 1, 1, 1, 0, 1);
|
|
16431
|
-
_for_of(repoSkills, (s) => {
|
|
16432
|
-
const $scope4_id = _scope_id();
|
|
16433
|
-
_html(`<li${_attr_class([skillRow, "_es"])}><span${_attr_class("_eu")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope4_id, "d", s.name)}</span><span${_attr_class([
|
|
16434
|
-
"_N",
|
|
16435
|
-
"_y",
|
|
16436
|
-
"_ev"
|
|
16437
|
-
])}${_attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope4_id, "f", s.worktree)}/</span>${_el_resume($scope4_id, "e")}</span><span${_attr_class(skillDesc)}${_attr_or("title", s.description, "")}>${_text_resume($scope4_id, "h", s.description || "")}</span>${_el_resume($scope4_id, "g")}<span${_attr_class(skillEnd)}>`);
|
|
16438
|
-
_if(() => {
|
|
16439
|
-
if (s.shadows) {
|
|
16440
|
-
const $scope36_id = _scope_id();
|
|
16441
|
-
_html(`<span${_attr_class("_N")}${_attr("title", `A ${s.shadows} skill of the same name already exists`)}>name taken</span>${_el_resume($scope36_id, "a")}`);
|
|
16442
|
-
writeScope($scope36_id, {});
|
|
16443
|
-
return 0;
|
|
16444
|
-
}
|
|
16445
|
-
}, $scope4_id, "j", 1, 1, 1, 0, 1);
|
|
16446
|
-
_if(() => {
|
|
16447
|
-
if (busy.has(s.id)) {
|
|
16448
|
-
const $scope37_id = _scope_id();
|
|
16449
|
-
_html(`<span${_attr_class("_G")}></span>`);
|
|
16450
|
-
writeScope($scope37_id, {});
|
|
16422
|
+
}, $scope11_id, "a", 1, 1, 1, "</button>");
|
|
16423
|
+
_script($scope11_id, "q25");
|
|
16424
|
+
_subscribe($confirmingSkill__closures, writeScope($scope11_id, {}));
|
|
16451
16425
|
return 0;
|
|
16452
16426
|
} else if (!s.shadows) {
|
|
16453
|
-
const $
|
|
16454
|
-
_html(`<button${_attr_class(btnSm)}${_attr("title", `Link ${s.name} into this workspace so every agent here sees it`)}>Link</button>${_el_resume($
|
|
16455
|
-
_script($
|
|
16456
|
-
writeScope($
|
|
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, {});
|
|
16457
16431
|
return 1;
|
|
16458
16432
|
}
|
|
16459
|
-
}, $
|
|
16460
|
-
_html(
|
|
16461
|
-
_subscribe($
|
|
16462
|
-
|
|
16463
|
-
|
|
16464
|
-
|
|
16465
|
-
|
|
16466
|
-
|
|
16467
|
-
|
|
16468
|
-
|
|
16469
|
-
|
|
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);
|
|
16448
|
+
_html("</section>");
|
|
16470
16449
|
writeScope($scope2_id, {});
|
|
16471
16450
|
return 0;
|
|
16472
16451
|
}
|
|
@@ -16474,39 +16453,39 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16474
16453
|
const running = procs || [];
|
|
16475
16454
|
_if(() => {
|
|
16476
16455
|
if (running.length) {
|
|
16477
|
-
const $
|
|
16478
|
-
_html(`<section${_attr_class("_bq")}><div${_attr_class("_br")}><h2${_attr_class("_bE")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($
|
|
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([
|
|
16479
16458
|
"_bv",
|
|
16480
|
-
"
|
|
16481
|
-
"
|
|
16459
|
+
"_cq",
|
|
16460
|
+
"_cE"
|
|
16482
16461
|
])}>`);
|
|
16483
16462
|
_for_of(running, (p) => {
|
|
16484
|
-
const $
|
|
16485
|
-
_html(`<li${_attr_class("
|
|
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")}>`);
|
|
16486
16465
|
_for_of(p.ports, (port) => {
|
|
16487
|
-
const $
|
|
16488
|
-
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($
|
|
16489
|
-
_script($
|
|
16490
|
-
writeScope($
|
|
16491
|
-
}, (x) => String(x), $
|
|
16492
|
-
_html(`<span${_attr_class(["_y", "
|
|
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([
|
|
16493
16472
|
"_bA",
|
|
16494
16473
|
"_8",
|
|
16495
|
-
"
|
|
16474
|
+
"_gs"
|
|
16496
16475
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16497
16476
|
icon_xmark_default({ size: 14 });
|
|
16498
|
-
_html(`</button>${_el_resume($
|
|
16499
|
-
_script($
|
|
16500
|
-
writeScope($
|
|
16501
|
-
}, "pid", $
|
|
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);
|
|
16502
16481
|
_html("</section>");
|
|
16503
|
-
writeScope($
|
|
16482
|
+
writeScope($scope15_id, {});
|
|
16504
16483
|
return 0;
|
|
16505
16484
|
}
|
|
16506
16485
|
}, $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
16507
16486
|
_html("</div></div></div>");
|
|
16508
|
-
_script($scope0_id, "q28");
|
|
16509
16487
|
_script($scope0_id, "q29");
|
|
16488
|
+
_script($scope0_id, "q30");
|
|
16510
16489
|
writeScope($scope0_id, {
|
|
16511
16490
|
a0: _serialize_if($scope0_reason, 1) && input.workspace,
|
|
16512
16491
|
a2: _serialize_if($scope0_reason, 0) && input.workspaceChange,
|
|
@@ -16514,70 +16493,72 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16514
16493
|
a5: input.onExit,
|
|
16515
16494
|
a8: busy,
|
|
16516
16495
|
a9: busy?.size,
|
|
16517
|
-
aa:
|
|
16518
|
-
ab:
|
|
16519
|
-
ac:
|
|
16520
|
-
|
|
16521
|
-
|
|
16522
|
-
|
|
16523
|
-
|
|
16524
|
-
|
|
16525
|
-
|
|
16526
|
-
|
|
16527
|
-
|
|
16528
|
-
|
|
16529
|
-
|
|
16530
|
-
|
|
16531
|
-
|
|
16532
|
-
b0:
|
|
16533
|
-
|
|
16534
|
-
|
|
16535
|
-
b4:
|
|
16536
|
-
b5:
|
|
16537
|
-
b6:
|
|
16538
|
-
b7:
|
|
16539
|
-
b8:
|
|
16540
|
-
b9:
|
|
16541
|
-
ba:
|
|
16542
|
-
bb:
|
|
16543
|
-
bc:
|
|
16544
|
-
bd:
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
bi:
|
|
16549
|
-
bk:
|
|
16550
|
-
|
|
16551
|
-
|
|
16552
|
-
|
|
16553
|
-
|
|
16554
|
-
|
|
16555
|
-
ca: $
|
|
16556
|
-
|
|
16557
|
-
|
|
16558
|
-
|
|
16559
|
-
|
|
16560
|
-
|
|
16561
|
-
|
|
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,
|
|
16562
16544
|
d: _existing_scope($childScope),
|
|
16563
|
-
|
|
16545
|
+
c2: $error__closures,
|
|
16564
16546
|
o: _existing_scope($childScope2),
|
|
16565
16547
|
r: _existing_scope($childScope3),
|
|
16566
|
-
|
|
16567
|
-
|
|
16568
|
-
|
|
16569
|
-
|
|
16570
|
-
c2: $skills__closures
|
|
16548
|
+
c5: $confirmingRemove__closures,
|
|
16549
|
+
c8: $confirmingSkill__closures,
|
|
16550
|
+
c1: $skillBusy__closures,
|
|
16551
|
+
c7: $skills__closures
|
|
16571
16552
|
});
|
|
16572
16553
|
_resume_branch($scope0_id);
|
|
16573
16554
|
});
|
|
16574
16555
|
//#endregion
|
|
16575
16556
|
//#region src/tags/new-workspace.css.ts
|
|
16576
|
-
var content = "
|
|
16577
|
-
var curBase = "
|
|
16578
|
-
var archived = "
|
|
16579
|
-
var archivedHint = "
|
|
16580
|
-
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";
|
|
16581
16562
|
//#endregion
|
|
16582
16563
|
//#region src/tags/icons/icon-group.marko
|
|
16583
16564
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -16597,8 +16578,8 @@ var icon_group_default = _template("eb", (input) => {
|
|
|
16597
16578
|
});
|
|
16598
16579
|
//#endregion
|
|
16599
16580
|
//#region src/tags/join-dialog.css.ts
|
|
16600
|
-
var dlg = "
|
|
16601
|
-
var hint = "
|
|
16581
|
+
var dlg = "_gZ _fF";
|
|
16582
|
+
var hint = "_g0 _X";
|
|
16602
16583
|
//#endregion
|
|
16603
16584
|
//#region src/tags/join-dialog.marko
|
|
16604
16585
|
var api$3;
|
|
@@ -16727,26 +16708,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16727
16708
|
content: _content("o12", () => {
|
|
16728
16709
|
_scope_reason();
|
|
16729
16710
|
const $scope1_id = _scope_id();
|
|
16730
|
-
_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([
|
|
16731
16712
|
"_Z",
|
|
16732
16713
|
"_y",
|
|
16733
|
-
"
|
|
16714
|
+
"_g2"
|
|
16734
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")}`);
|
|
16735
16716
|
_if(() => {
|
|
16736
16717
|
if (parsed.error) {
|
|
16737
16718
|
const $scope8_id = _scope_id();
|
|
16738
|
-
_html(`<p${_attr_class([hint, "
|
|
16719
|
+
_html(`<p${_attr_class([hint, "_g1"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16739
16720
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16740
16721
|
return 0;
|
|
16741
16722
|
} else if (parsed.ok) {
|
|
16742
16723
|
const $scope3_id = _scope_id();
|
|
16743
|
-
_html(`<ul${_attr_class("
|
|
16724
|
+
_html(`<ul${_attr_class("_g3")}>`);
|
|
16744
16725
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16745
16726
|
const $scope9_id = _scope_id();
|
|
16746
|
-
_html(`<li${_attr_class("
|
|
16727
|
+
_html(`<li${_attr_class("_g4")}><span${_attr_class("_g5")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16747
16728
|
writeScope($scope9_id, {});
|
|
16748
16729
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16749
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
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) => {
|
|
16750
16731
|
name = _new_name;
|
|
16751
16732
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16752
16733
|
_script($scope3_id, "o8");
|
|
@@ -16783,10 +16764,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16783
16764
|
_if(() => {
|
|
16784
16765
|
if (busy && steps$2.length) {
|
|
16785
16766
|
const $scope6_id = _scope_id();
|
|
16786
|
-
_html(`<ul${_attr_class("
|
|
16767
|
+
_html(`<ul${_attr_class("_g7")}>`);
|
|
16787
16768
|
_for_of(steps$2, (step$2, i) => {
|
|
16788
16769
|
const $scope7_id = _scope_id();
|
|
16789
|
-
_html(`<li${_attr_class(["
|
|
16770
|
+
_html(`<li${_attr_class(["_g9", { ["_g8"]: i === steps$2.length - 1 }])}>`);
|
|
16790
16771
|
_if(() => {
|
|
16791
16772
|
if (i === steps$2.length - 1) {
|
|
16792
16773
|
const $scope10_id = _scope_id();
|
|
@@ -16795,7 +16776,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16795
16776
|
return 0;
|
|
16796
16777
|
} else {
|
|
16797
16778
|
const $scope11_id = _scope_id();
|
|
16798
|
-
_html(`<span${_attr_class("
|
|
16779
|
+
_html(`<span${_attr_class("_g_")}>`);
|
|
16799
16780
|
icon_check_default({ size: 14 });
|
|
16800
16781
|
_html("</span>");
|
|
16801
16782
|
writeScope($scope11_id, {});
|
|
@@ -16952,7 +16933,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16952
16933
|
}
|
|
16953
16934
|
}, "s6", $scope0_id);
|
|
16954
16935
|
const titleId = _id();
|
|
16955
|
-
_html(`<div${_attr_class("
|
|
16936
|
+
_html(`<div${_attr_class("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><div${_attr_class(content)}>`);
|
|
16956
16937
|
_set_serialize_reason({
|
|
16957
16938
|
0: _serialize_guard($scope0_reason, 2),
|
|
16958
16939
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17001,23 +16982,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17001
16982
|
return 0;
|
|
17002
16983
|
}
|
|
17003
16984
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17004
|
-
_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) => {
|
|
17005
16986
|
name = _new_name;
|
|
17006
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bq")}><div${_attr_class("
|
|
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)}>`);
|
|
17007
16988
|
_set_serialize_reason(1);
|
|
17008
16989
|
const $childScope2 = _peek_scope_id();
|
|
17009
16990
|
icon_refresh_default({
|
|
17010
16991
|
size: 14,
|
|
17011
16992
|
class: catalogRefreshing && "_F"
|
|
17012
16993
|
});
|
|
17013
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
16994
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_ed")}>`);
|
|
17014
16995
|
_for_of(selected, (repo) => {
|
|
17015
16996
|
const $scope4_id = _scope_id();
|
|
17016
|
-
_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>`);
|
|
17017
16998
|
_if(() => {
|
|
17018
16999
|
if (repo.fork !== void 0) {
|
|
17019
17000
|
const $scope5_id = _scope_id();
|
|
17020
|
-
_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)}>`);
|
|
17021
17002
|
_if(() => {
|
|
17022
17003
|
if (repo.fork) {
|
|
17023
17004
|
const $scope14_id = _scope_id();
|
|
@@ -17040,7 +17021,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17040
17021
|
_html(`<button${_attr_class([
|
|
17041
17022
|
curBase,
|
|
17042
17023
|
"_y",
|
|
17043
|
-
{ ["
|
|
17024
|
+
{ ["_ef"]: branchesFor === repo.fullName }
|
|
17044
17025
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17045
17026
|
icon_branch_default({ size: 12 });
|
|
17046
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)}>`);
|
|
@@ -17101,10 +17082,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17101
17082
|
_if(() => {
|
|
17102
17083
|
if (busy && steps.length) {
|
|
17103
17084
|
const $scope11_id = _scope_id();
|
|
17104
|
-
_html(`<ul${_attr_class("
|
|
17085
|
+
_html(`<ul${_attr_class("_ei")}>`);
|
|
17105
17086
|
_for_of(steps, (step, i) => {
|
|
17106
17087
|
const $scope12_id = _scope_id();
|
|
17107
|
-
_html(`<li${_attr_class(["
|
|
17088
|
+
_html(`<li${_attr_class(["_eo", { ["_ej"]: i === steps.length - 1 }])}>`);
|
|
17108
17089
|
_if(() => {
|
|
17109
17090
|
if (i === steps.length - 1) {
|
|
17110
17091
|
const $scope17_id = _scope_id();
|
|
@@ -17113,7 +17094,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17113
17094
|
return 0;
|
|
17114
17095
|
} else {
|
|
17115
17096
|
const $scope18_id = _scope_id();
|
|
17116
|
-
_html(`<span${_attr_class("
|
|
17097
|
+
_html(`<span${_attr_class("_ek")}>`);
|
|
17117
17098
|
icon_check_default({ size: 14 });
|
|
17118
17099
|
_html("</span>");
|
|
17119
17100
|
writeScope($scope18_id, {});
|
|
@@ -17127,7 +17108,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17127
17108
|
return 0;
|
|
17128
17109
|
}
|
|
17129
17110
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
17130
|
-
_html(`<div${_attr_class("
|
|
17111
|
+
_html(`<div${_attr_class("_d_")}>`);
|
|
17131
17112
|
_if(() => {
|
|
17132
17113
|
if (input.onExit || busy) {
|
|
17133
17114
|
const $scope1_id = _scope_id();
|
|
@@ -17140,12 +17121,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17140
17121
|
_html(`<button type=button${_attr_class([
|
|
17141
17122
|
btnLg,
|
|
17142
17123
|
"_r",
|
|
17143
|
-
"
|
|
17124
|
+
"_ea"
|
|
17144
17125
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
17145
17126
|
_if(() => {
|
|
17146
17127
|
if (archived$1.length) {
|
|
17147
17128
|
const $scope6_id = _scope_id();
|
|
17148
|
-
_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")}>`);
|
|
17149
17130
|
_for_of(archived$1, (ws) => {
|
|
17150
17131
|
const $scope7_id = _scope_id();
|
|
17151
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)}>`);
|
|
@@ -17228,12 +17209,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17228
17209
|
});
|
|
17229
17210
|
_resume_branch($scope0_id);
|
|
17230
17211
|
});
|
|
17231
|
-
var kbtn = "
|
|
17232
|
-
var sessOpen = "
|
|
17233
|
-
var sessRename = "
|
|
17234
|
-
var dpadPaste = "
|
|
17235
|
-
var repeat = "
|
|
17236
|
-
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";
|
|
17237
17218
|
//#endregion
|
|
17238
17219
|
//#region src/tags/term-find.marko
|
|
17239
17220
|
var term_find_default = _template("D", (input) => {
|
|
@@ -17270,19 +17251,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
17270
17251
|
const canStep = hasQuery && open;
|
|
17271
17252
|
const keybar = input.placement === "keybar";
|
|
17272
17253
|
_html(`<div${_attr_class([
|
|
17273
|
-
"
|
|
17274
|
-
keybar ? "
|
|
17275
|
-
!open && "
|
|
17276
|
-
])} 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) {
|
|
17277
17258
|
if (!open) return;
|
|
17278
17259
|
query = v;
|
|
17279
17260
|
live.query = v;
|
|
17280
17261
|
run(0);
|
|
17281
|
-
}, "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"}>`);
|
|
17282
17263
|
icon_arrow_up_default({ size: 14 });
|
|
17283
|
-
_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"}>`);
|
|
17284
17265
|
icon_arrow_down_default({ size: 14 });
|
|
17285
|
-
_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"}>`);
|
|
17286
17267
|
icon_xmark_default({ size: 14 });
|
|
17287
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")}`);
|
|
17288
17269
|
const $return = focusInput;
|
|
@@ -17703,7 +17684,7 @@ var term_default = _template("E", (input) => {
|
|
|
17703
17684
|
trapOpen = true;
|
|
17704
17685
|
}
|
|
17705
17686
|
}, "E13", $scope0_id);
|
|
17706
|
-
_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")}`);
|
|
17707
17688
|
_if(() => {
|
|
17708
17689
|
if (findOpen) {
|
|
17709
17690
|
const $scope12_id = _scope_id();
|
|
@@ -17733,7 +17714,7 @@ var term_default = _template("E", (input) => {
|
|
|
17733
17714
|
_if(() => {
|
|
17734
17715
|
if (uploading) {
|
|
17735
17716
|
const $scope21_id = _scope_id();
|
|
17736
|
-
_html(`<div${_attr_class("
|
|
17717
|
+
_html(`<div${_attr_class("_gB")}>uploading…</div>`);
|
|
17737
17718
|
writeScope($scope21_id, {});
|
|
17738
17719
|
return 0;
|
|
17739
17720
|
}
|
|
@@ -17741,7 +17722,7 @@ var term_default = _template("E", (input) => {
|
|
|
17741
17722
|
_if(() => {
|
|
17742
17723
|
if (copiedFlash) {
|
|
17743
17724
|
const $scope22_id = _scope_id();
|
|
17744
|
-
_html(`<div${_attr_class("
|
|
17725
|
+
_html(`<div${_attr_class("_gA")}>Copied</div>`);
|
|
17745
17726
|
writeScope($scope22_id, {});
|
|
17746
17727
|
return 0;
|
|
17747
17728
|
}
|
|
@@ -17750,7 +17731,7 @@ var term_default = _template("E", (input) => {
|
|
|
17750
17731
|
_if(() => {
|
|
17751
17732
|
if (trapOpen) {
|
|
17752
17733
|
const $scope11_id = _scope_id();
|
|
17753
|
-
_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")}`);
|
|
17754
17735
|
_script($scope11_id, "E28");
|
|
17755
17736
|
_script($scope11_id, "E29");
|
|
17756
17737
|
writeScope($scope11_id, {});
|
|
@@ -17828,7 +17809,7 @@ var term_default = _template("E", (input) => {
|
|
|
17828
17809
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
17829
17810
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
17830
17811
|
}, "E19", $scope4_id);
|
|
17831
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17812
|
+
_html(`<button${_attr_class([kbtn, "_gE"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
17832
17813
|
_set_serialize_reason({
|
|
17833
17814
|
1: $sg__input_agent__OR__input_sessionState,
|
|
17834
17815
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -17842,7 +17823,7 @@ var term_default = _template("E", (input) => {
|
|
|
17842
17823
|
"_A",
|
|
17843
17824
|
"_bc",
|
|
17844
17825
|
phase[sessionPhase(input.sessionState)]
|
|
17845
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 6))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["__", "
|
|
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"])}>`);
|
|
17846
17827
|
_if(() => {
|
|
17847
17828
|
if ((input.sessions || []).length > 0) {
|
|
17848
17829
|
const $scope5_id = _scope_id();
|
|
@@ -17858,7 +17839,7 @@ var term_default = _template("E", (input) => {
|
|
|
17858
17839
|
const $scope6_id = _scope_id();
|
|
17859
17840
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17860
17841
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
17861
|
-
_html(`<div${_attr_class(["
|
|
17842
|
+
_html(`<div${_attr_class(["_gH", { ["_gG"]: s.id === input.sessionId }])}>`);
|
|
17862
17843
|
_if(() => {
|
|
17863
17844
|
if (renamingId === s.id) {
|
|
17864
17845
|
const $scope24_id = _scope_id();
|
|
@@ -17890,7 +17871,7 @@ var term_default = _template("E", (input) => {
|
|
|
17890
17871
|
agent: activeAgent(s),
|
|
17891
17872
|
size: 14
|
|
17892
17873
|
});
|
|
17893
|
-
_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>`);
|
|
17894
17875
|
_if(() => {
|
|
17895
17876
|
if (s.id === input.sessionId) {
|
|
17896
17877
|
const $scope23_id = _scope_id();
|
|
@@ -17902,7 +17883,7 @@ var term_default = _template("E", (input) => {
|
|
|
17902
17883
|
const $childScope6 = _peek_scope_id();
|
|
17903
17884
|
usage_pcts_default({
|
|
17904
17885
|
agent: plan,
|
|
17905
|
-
class: "
|
|
17886
|
+
class: "_gK"
|
|
17906
17887
|
});
|
|
17907
17888
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
17908
17889
|
return 0;
|
|
@@ -17919,7 +17900,7 @@ var term_default = _template("E", (input) => {
|
|
|
17919
17900
|
_if(() => {
|
|
17920
17901
|
if (input.onRenameSession) {
|
|
17921
17902
|
const $scope25_id = _scope_id();
|
|
17922
|
-
_html(`<button${_attr_class(["
|
|
17903
|
+
_html(`<button${_attr_class(["_gN", "_gO"])} title="Rename session">`);
|
|
17923
17904
|
icon_edit_default({ size: 12 });
|
|
17924
17905
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
17925
17906
|
_script($scope25_id, "E32");
|
|
@@ -17931,7 +17912,7 @@ var term_default = _template("E", (input) => {
|
|
|
17931
17912
|
if (input.onCloseSession) {
|
|
17932
17913
|
const $scope8_id = _scope_id();
|
|
17933
17914
|
_html(`<button${_attr_class([
|
|
17934
|
-
"
|
|
17915
|
+
"_gN",
|
|
17935
17916
|
"_8",
|
|
17936
17917
|
{ ["_s"]: armedClose === s.id }
|
|
17937
17918
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -17973,7 +17954,7 @@ var term_default = _template("E", (input) => {
|
|
|
17973
17954
|
return 0;
|
|
17974
17955
|
}
|
|
17975
17956
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
17976
|
-
_html(`<div${_attr_class("
|
|
17957
|
+
_html(`<div${_attr_class("_gP")}><span${_attr_class("_gQ")}>New session</span><div${_attr_class("_gR")}>`);
|
|
17977
17958
|
_for_of(["shell", ...input.agents || []], (agent) => {
|
|
17978
17959
|
const $scope9_id = _scope_id();
|
|
17979
17960
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -18018,9 +17999,9 @@ var term_default = _template("E", (input) => {
|
|
|
18018
17999
|
const dpadOpenBox = { open: false };
|
|
18019
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)}>`);
|
|
18020
18001
|
icon_dpad_default({ size: 16 });
|
|
18021
|
-
_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)}>`);
|
|
18022
18003
|
icon_search_default({ size: 16 });
|
|
18023
|
-
_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)}>`);
|
|
18024
18005
|
icon_keyboard_default({ size: 16 });
|
|
18025
18006
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
18026
18007
|
_script($scope10_id, "E38");
|
|
@@ -18036,7 +18017,7 @@ var term_default = _template("E", (input) => {
|
|
|
18036
18017
|
overlay: attrTag({ content: _content_resume("E49", () => {
|
|
18037
18018
|
_scope_reason();
|
|
18038
18019
|
const $scope15_id = _scope_id();
|
|
18039
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
18020
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_gS")}>`);
|
|
18040
18021
|
forOf(DPAD, (row) => {
|
|
18041
18022
|
const $scope16_id = _scope_id();
|
|
18042
18023
|
forOf(row, (cell) => {
|
|
@@ -18056,7 +18037,7 @@ var term_default = _template("E", (input) => {
|
|
|
18056
18037
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
18057
18038
|
} else {
|
|
18058
18039
|
const $scope19_id = _scope_id();
|
|
18059
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
18040
|
+
_html(`<button${_attr_class([repeat, { ["_gW"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
18060
18041
|
if (cell.icon === "arrow-up") {
|
|
18061
18042
|
_scope_id();
|
|
18062
18043
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -27493,4 +27474,4 @@ server.listen(port, () => {
|
|
|
27493
27474
|
//#endregion
|
|
27494
27475
|
export {};
|
|
27495
27476
|
|
|
27496
|
-
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-
|
|
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\"",">"]}};
|