@dylanpiercey/work 0.0.153 → 0.0.155
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 +996 -737
- package/dist/public/assets/_1gUZhn72.js +1 -0
- package/dist/public/assets/_1gUZhn72.js.br +0 -0
- package/dist/public/assets/_3wdC4kjt.js +1 -0
- package/dist/public/assets/_8LoUYieB.js +1 -0
- package/dist/public/assets/_BHkh0C4r.js +1 -0
- package/dist/public/assets/_BxsNwKYs.js +1 -0
- package/dist/public/assets/_C-7E8N0G.js +1 -0
- package/dist/public/assets/_CEMoDLXP.js +83 -0
- package/dist/public/assets/_CEMoDLXP.js.br +0 -0
- package/dist/public/assets/_CH1656a4.js +1 -0
- package/dist/public/assets/_CYNLMVHd.js +1 -0
- package/dist/public/assets/_CZWK2oF5.js +1 -0
- package/dist/public/assets/_C_fb7SlO.js +1 -0
- package/dist/public/assets/_Chgv7FAK.js +1 -0
- package/dist/public/assets/_CsjqksEp.js +1 -0
- package/dist/public/assets/_D0ziDtl8.js +1 -0
- package/dist/public/assets/_DEh3RwEA.js +1 -0
- package/dist/public/assets/_DK2H3WGf.js +1 -0
- package/dist/public/assets/_DyNsNUHj.js +1 -0
- package/dist/public/assets/{_kcU94G2e.js → _RyGFT-OL.js} +7 -7
- package/dist/public/assets/_RyGFT-OL.js.br +0 -0
- package/dist/public/assets/_UNGY8FMp.js +1 -0
- package/dist/public/assets/__Emydtfa.js +1 -0
- package/dist/public/assets/_mywpJcKx.js +1 -0
- package/dist/public/assets/_o6cgOqS_.js +1 -0
- package/dist/public/assets/app-page-CrdRBxBQ.css +1 -0
- package/dist/public/assets/app-page-CrdRBxBQ.css.br +0 -0
- package/dist/public/assets/diff-view-Cr-PefQe.js +2 -0
- package/dist/public/assets/diff-view-CyfjTVs-.css +1 -0
- package/dist/public/assets/diff-view-CyfjTVs-.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-DfdrbjtN.css → icon-arrow-down-Cx-52UZC.css} +1 -1
- package/dist/public/assets/icon-arrow-down-Cx-52UZC.css.br +0 -0
- package/dist/public/assets/new-C_aFgj9M.js +1 -0
- package/dist/public/assets/settings-C_aFgj9M.js +1 -0
- package/dist/public/assets/w-C_aFgj9M.js +1 -0
- package/dist/public/assets/w._-BmFMmeGE.js +1 -0
- package/dist/public/assets/w._-C_aFgj9M.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_3veOokDx.js +0 -1
- package/dist/public/assets/_B-rgI0_E.js +0 -83
- package/dist/public/assets/_B-rgI0_E.js.br +0 -0
- package/dist/public/assets/_B3hhX48X.js +0 -1
- package/dist/public/assets/_BG6h4ZRN.js +0 -1
- package/dist/public/assets/_BGAD6amc.js +0 -1
- package/dist/public/assets/_BVzRdl5M.js +0 -1
- package/dist/public/assets/_BcO9vTqv.js +0 -1
- package/dist/public/assets/_BnRc9Kgb.js +0 -1
- package/dist/public/assets/_C2LSf6w3.js +0 -1
- package/dist/public/assets/_C79L9mhg.js +0 -1
- package/dist/public/assets/_CCZPq_dJ.js +0 -1
- package/dist/public/assets/_CKudVz5Z.js +0 -1
- package/dist/public/assets/_CiuoM4oX.js +0 -1
- package/dist/public/assets/_D1NpX6gH.js +0 -1
- package/dist/public/assets/_D1n07hqw.js +0 -1
- package/dist/public/assets/_D9B_jDta.js +0 -1
- package/dist/public/assets/_DG4SD16v.js +0 -1
- package/dist/public/assets/_DQJM2E35.js +0 -1
- package/dist/public/assets/_Dr7o2LBs.js +0 -1
- package/dist/public/assets/_Dr7o2LBs.js.br +0 -0
- package/dist/public/assets/_h8cBwED4.js +0 -1
- package/dist/public/assets/_kcU94G2e.js.br +0 -0
- package/dist/public/assets/_oiPx7RvB.js +0 -1
- package/dist/public/assets/app-page-HBkev4fB.css +0 -1
- package/dist/public/assets/app-page-HBkev4fB.css.br +0 -0
- package/dist/public/assets/diff-view-DUOYpJcS.js +0 -2
- package/dist/public/assets/diff-view-fBgpEGWE.css +0 -1
- package/dist/public/assets/diff-view-fBgpEGWE.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-DfdrbjtN.css.br +0 -0
- package/dist/public/assets/new-DvHHhECZ.js +0 -1
- package/dist/public/assets/settings-DvHHhECZ.js +0 -1
- package/dist/public/assets/w-DvHHhECZ.js +0 -1
- package/dist/public/assets/w._-DvHHhECZ.js +0 -1
- package/dist/public/assets/w._-NAaVwdnW.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6936,14 +6936,14 @@ function repoLabel(fullName) {
|
|
|
6936
6936
|
return fullName;
|
|
6937
6937
|
}
|
|
6938
6938
|
var toastKind = {
|
|
6939
|
-
error: "
|
|
6940
|
-
warn: "
|
|
6941
|
-
info: "
|
|
6939
|
+
error: "_bm",
|
|
6940
|
+
warn: "_bn",
|
|
6941
|
+
info: "_bo"
|
|
6942
6942
|
};
|
|
6943
6943
|
var toastTitle = {
|
|
6944
|
-
error: "
|
|
6945
|
-
warn: "
|
|
6946
|
-
info: "
|
|
6944
|
+
error: "_bp",
|
|
6945
|
+
warn: "_bq",
|
|
6946
|
+
info: "_br"
|
|
6947
6947
|
};
|
|
6948
6948
|
//#endregion
|
|
6949
6949
|
//#region src/styles/tokens.css.ts
|
|
@@ -6989,18 +6989,18 @@ var toast_default = _template("G", (input) => {
|
|
|
6989
6989
|
const kind = inputKind || "error";
|
|
6990
6990
|
const placement = inputPlacement || "float";
|
|
6991
6991
|
const placementClass = {
|
|
6992
|
-
float: "
|
|
6993
|
-
inline: "
|
|
6992
|
+
float: "_bk",
|
|
6993
|
+
inline: "_bl"
|
|
6994
6994
|
}[placement];
|
|
6995
6995
|
_html(`<div${_attr_class([
|
|
6996
|
-
"
|
|
6996
|
+
"_bj",
|
|
6997
6997
|
toastKind[kind],
|
|
6998
6998
|
placementClass,
|
|
6999
6999
|
inputClass
|
|
7000
7000
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
7001
7001
|
class: 1,
|
|
7002
7002
|
role: 1
|
|
7003
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
7003
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_bs")}>`);
|
|
7004
7004
|
_if(() => {
|
|
7005
7005
|
if (title) {
|
|
7006
7006
|
const $scope1_id = _scope_id();
|
|
@@ -7012,7 +7012,7 @@ var toast_default = _template("G", (input) => {
|
|
|
7012
7012
|
_if(() => {
|
|
7013
7013
|
if (content) {
|
|
7014
7014
|
const $scope2_id = _scope_id();
|
|
7015
|
-
_html(`<div${_attr_class("
|
|
7015
|
+
_html(`<div${_attr_class("_bt")}>`);
|
|
7016
7016
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
7017
7017
|
_html("</div>");
|
|
7018
7018
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7023,7 +7023,7 @@ var toast_default = _template("G", (input) => {
|
|
|
7023
7023
|
_if(() => {
|
|
7024
7024
|
if (action || onDismiss) {
|
|
7025
7025
|
const $scope3_id = _scope_id();
|
|
7026
|
-
_html(`<div${_attr_class(["
|
|
7026
|
+
_html(`<div${_attr_class(["_bu", action && "_bv"])}>`);
|
|
7027
7027
|
_if(() => {
|
|
7028
7028
|
if (action) {
|
|
7029
7029
|
const $scope4_id = _scope_id();
|
|
@@ -7035,7 +7035,7 @@ var toast_default = _template("G", (input) => {
|
|
|
7035
7035
|
_if(() => {
|
|
7036
7036
|
if (onDismiss) {
|
|
7037
7037
|
const $scope5_id = _scope_id();
|
|
7038
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7038
|
+
_html(`<button${_attr_class([iconBtnRow, "_bw"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
7039
7039
|
icon_xmark_default({ size: 14 });
|
|
7040
7040
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
7041
7041
|
_script($scope5_id, "G0");
|
|
@@ -7246,21 +7246,19 @@ function applyInstance(inst) {
|
|
|
7246
7246
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7247
7247
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7248
7248
|
}
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
var
|
|
7252
|
-
var
|
|
7253
|
-
var
|
|
7254
|
-
var
|
|
7255
|
-
var
|
|
7256
|
-
var
|
|
7257
|
-
var
|
|
7258
|
-
var
|
|
7259
|
-
var
|
|
7260
|
-
var
|
|
7261
|
-
var
|
|
7262
|
-
var sectionCount = "_bW _N _O";
|
|
7263
|
-
var row$1 = "_b7 _bZ";
|
|
7249
|
+
var agentList = "_cZ _ce _cM _cX";
|
|
7250
|
+
var agentRow = "_c3 _cN";
|
|
7251
|
+
var toolGrid = "_da _cX";
|
|
7252
|
+
var toolRow = "_db _cY";
|
|
7253
|
+
var themeSeg = "_dz _be";
|
|
7254
|
+
var checkList = "_d5 _cc";
|
|
7255
|
+
var list$2 = "_cZ _ce _cM _cX";
|
|
7256
|
+
var flatCardRow = "_c0 _cY";
|
|
7257
|
+
var pop$1 = "_cI __";
|
|
7258
|
+
var spinner = "_cL _2 _G";
|
|
7259
|
+
var busy = "_cy _cx";
|
|
7260
|
+
var pop = "_cA __";
|
|
7261
|
+
var sectionCount = "_cb _N _O";
|
|
7264
7262
|
var iconBtn$1 = "_5 _l";
|
|
7265
7263
|
//#endregion
|
|
7266
7264
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7301,30 +7299,30 @@ var icon_back_default = _template("R", (input) => {
|
|
|
7301
7299
|
var page_head_default = _template("u", (input) => {
|
|
7302
7300
|
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);
|
|
7303
7301
|
const $scope0_id = _scope_id();
|
|
7304
|
-
_html(`<header${_attr_class("
|
|
7302
|
+
_html(`<header${_attr_class("_eb")}>`);
|
|
7305
7303
|
_if(() => {
|
|
7306
7304
|
if (input.backHref) {
|
|
7307
7305
|
const $scope1_id = _scope_id();
|
|
7308
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7309
|
-
icon_back_default({ size:
|
|
7306
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7307
|
+
icon_back_default({ size: 14 });
|
|
7310
7308
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7311
7309
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7312
7310
|
return 0;
|
|
7313
7311
|
} else if (input.onBack) {
|
|
7314
7312
|
const $scope2_id = _scope_id();
|
|
7315
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7316
|
-
icon_back_default({ size:
|
|
7313
|
+
_html(`<button${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7314
|
+
icon_back_default({ size: 14 });
|
|
7317
7315
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7318
7316
|
_script($scope2_id, "u0");
|
|
7319
7317
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7320
7318
|
return 1;
|
|
7321
7319
|
}
|
|
7322
7320
|
}, $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);
|
|
7323
|
-
_html(`<div${_attr_class("
|
|
7321
|
+
_html(`<div${_attr_class("_ed")}><h1${_attr("id", input.titleId)}${_attr_class("_ec")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7324
7322
|
_if(() => {
|
|
7325
7323
|
if (input.meta) {
|
|
7326
7324
|
const $scope3_id = _scope_id();
|
|
7327
|
-
_html(`<p${_attr_class("
|
|
7325
|
+
_html(`<p${_attr_class("_ee")}>`);
|
|
7328
7326
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7329
7327
|
_html("</p>");
|
|
7330
7328
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7335,7 +7333,7 @@ var page_head_default = _template("u", (input) => {
|
|
|
7335
7333
|
_if(() => {
|
|
7336
7334
|
if (input.actions) {
|
|
7337
7335
|
const $scope4_id = _scope_id();
|
|
7338
|
-
_html(`<div${_attr_class("
|
|
7336
|
+
_html(`<div${_attr_class("_ef")}>`);
|
|
7339
7337
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7340
7338
|
_html("</div>");
|
|
7341
7339
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7403,7 +7401,7 @@ var icon_agent_default = _template("L", (input) => {
|
|
|
7403
7401
|
n: $badge__closures
|
|
7404
7402
|
});
|
|
7405
7403
|
});
|
|
7406
|
-
var usageNote = "
|
|
7404
|
+
var usageNote = "_g9 _X";
|
|
7407
7405
|
//#endregion
|
|
7408
7406
|
//#region src/tags/icons/icon-warning.marko
|
|
7409
7407
|
var icon_warning_default = _template("sb", (input) => {
|
|
@@ -7433,11 +7431,11 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7433
7431
|
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);
|
|
7434
7432
|
const $scope0_id = _scope_id();
|
|
7435
7433
|
const agent = input.agent;
|
|
7436
|
-
_html(`<div${_attr_class(["
|
|
7434
|
+
_html(`<div${_attr_class(["_g3", { ["_g4"]: input.hideName }])}><div${_attr_class("_g5")}>`);
|
|
7437
7435
|
_if(() => {
|
|
7438
7436
|
if (!input.hideName) {
|
|
7439
7437
|
const $scope1_id = _scope_id();
|
|
7440
|
-
_html(`<strong${_attr_class("
|
|
7438
|
+
_html(`<strong${_attr_class("_hn")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7441
7439
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7442
7440
|
return 0;
|
|
7443
7441
|
}
|
|
@@ -7445,7 +7443,7 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7445
7443
|
_if(() => {
|
|
7446
7444
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7447
7445
|
const $scope2_id = _scope_id();
|
|
7448
|
-
_html(`<span${_attr_class("
|
|
7446
|
+
_html(`<span${_attr_class("_g6")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7449
7447
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7450
7448
|
return 0;
|
|
7451
7449
|
}
|
|
@@ -7453,21 +7451,21 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7453
7451
|
_if(() => {
|
|
7454
7452
|
if (agent.stale_seconds != null) {
|
|
7455
7453
|
const $scope3_id = _scope_id();
|
|
7456
|
-
_html(`<span${_attr_class("
|
|
7454
|
+
_html(`<span${_attr_class("_g7")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7457
7455
|
icon_warning_default({ size: 12 });
|
|
7458
7456
|
_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)}`);
|
|
7459
7457
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7460
7458
|
return 0;
|
|
7461
7459
|
}
|
|
7462
7460
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7463
|
-
_html(`</div><div${_attr_class(["
|
|
7461
|
+
_html(`</div><div${_attr_class(["_g8", { ["_ho"]: agent.stale_seconds != null }])}>`);
|
|
7464
7462
|
_for_of(agent.windows || [], (win) => {
|
|
7465
7463
|
const $scope4_id = _scope_id();
|
|
7466
7464
|
const pct = pctText(win.used_percent);
|
|
7467
7465
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7468
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7469
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7470
|
-
_html(`<div${_attr_class("
|
|
7466
|
+
const fillClass = win.used_percent >= 90 ? "_hg" : win.used_percent >= 70 ? "_hf" : win.used_percent >= 40 ? "_he" : "_hd";
|
|
7467
|
+
const pctClass = win.used_percent >= 90 ? "_hl" : win.used_percent >= 70 ? "_hk" : win.used_percent >= 40 ? "_hj" : "_hi";
|
|
7468
|
+
_html(`<div${_attr_class("_g_")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_ha")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hb")}><span${_attr_class(["_hc", 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(["_hh", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hm")}>`);
|
|
7471
7469
|
_if(() => {
|
|
7472
7470
|
if (label) {
|
|
7473
7471
|
const $scope6_id = _scope_id();
|
|
@@ -7584,14 +7582,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7584
7582
|
localCode = null;
|
|
7585
7583
|
}
|
|
7586
7584
|
}, "D0", $scope0_id);
|
|
7587
|
-
_html(`<div${_attr_class(["
|
|
7585
|
+
_html(`<div${_attr_class(["_gL", input.class])}>`);
|
|
7588
7586
|
_for_of(input.items, (s) => {
|
|
7589
7587
|
const $scope1_id = _scope_id();
|
|
7590
|
-
_html(`<div${_attr_class("
|
|
7588
|
+
_html(`<div${_attr_class("_gM")}><span${_attr_class("_gO")}><span${_attr_class("_gP")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gQ", "_gR"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7591
7589
|
_if(() => {
|
|
7592
7590
|
if (!busy) {
|
|
7593
7591
|
const $scope2_id = _scope_id();
|
|
7594
|
-
_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, "
|
|
7592
|
+
_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, "_gS"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7595
7593
|
_script($scope2_id, "D1");
|
|
7596
7594
|
writeScope($scope2_id, {});
|
|
7597
7595
|
return 0;
|
|
@@ -7606,13 +7604,13 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7606
7604
|
_if(() => {
|
|
7607
7605
|
if (localBusy && localCode) {
|
|
7608
7606
|
const $scope4_id = _scope_id();
|
|
7609
|
-
_html(`<div${_attr_class(["
|
|
7607
|
+
_html(`<div${_attr_class(["_gM", "_gT"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gU")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gV")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7610
7608
|
_script($scope4_id, "D2");
|
|
7611
7609
|
writeScope($scope4_id, {});
|
|
7612
7610
|
return 0;
|
|
7613
7611
|
} else if (localBusy) {
|
|
7614
7612
|
const $scope6_id = _scope_id();
|
|
7615
|
-
_html(`<div${_attr_class(["
|
|
7613
|
+
_html(`<div${_attr_class(["_gM", "_gT"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7616
7614
|
writeScope($scope6_id, {});
|
|
7617
7615
|
return 1;
|
|
7618
7616
|
}
|
|
@@ -7620,14 +7618,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7620
7618
|
_if(() => {
|
|
7621
7619
|
if (localError) {
|
|
7622
7620
|
const $scope5_id = _scope_id();
|
|
7623
|
-
_html(`<p${_attr_class(["
|
|
7621
|
+
_html(`<p${_attr_class(["_gM", "_gW"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7624
7622
|
writeScope($scope5_id, {});
|
|
7625
7623
|
return 0;
|
|
7626
7624
|
}
|
|
7627
7625
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7628
7626
|
_for_of(skipped, (s) => {
|
|
7629
7627
|
const $scope3_id = _scope_id();
|
|
7630
|
-
_html(`<div${_attr_class(["
|
|
7628
|
+
_html(`<div${_attr_class(["_gM", "_gN"])}><span${_attr_class("_gO")}><span${_attr_class("_gP")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gQ")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gS"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7631
7629
|
_script($scope3_id, "D3");
|
|
7632
7630
|
writeScope($scope3_id, {
|
|
7633
7631
|
i: s?.org,
|
|
@@ -7695,7 +7693,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7695
7693
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7696
7694
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7697
7695
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7698
|
-
_html(`<li${_attr_class("
|
|
7696
|
+
_html(`<li${_attr_class("_cw")}>`);
|
|
7699
7697
|
_if(() => {
|
|
7700
7698
|
if (input.busy != null) {
|
|
7701
7699
|
const $scope1_id = _scope_id();
|
|
@@ -7705,20 +7703,20 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7705
7703
|
} else {
|
|
7706
7704
|
const $scope2_id = _scope_id();
|
|
7707
7705
|
const popId = _id();
|
|
7708
|
-
_html(`<button${_attr_class("
|
|
7706
|
+
_html(`<button${_attr_class("_cx")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7709
7707
|
_if(() => {
|
|
7710
7708
|
if (input.hint) {
|
|
7711
7709
|
const $scope3_id = _scope_id();
|
|
7712
|
-
_html(`<span${_attr_class("
|
|
7710
|
+
_html(`<span${_attr_class("_cz")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7713
7711
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7714
7712
|
return 0;
|
|
7715
7713
|
}
|
|
7716
7714
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7717
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7715
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_cg", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7718
7716
|
_if(() => {
|
|
7719
7717
|
if (input.description) {
|
|
7720
7718
|
const $scope4_id = _scope_id();
|
|
7721
|
-
_html(`<span${_attr_class("
|
|
7719
|
+
_html(`<span${_attr_class("_ci")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7722
7720
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7723
7721
|
return 0;
|
|
7724
7722
|
}
|
|
@@ -7726,12 +7724,12 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7726
7724
|
_if(() => {
|
|
7727
7725
|
if (input.sourceUrl) {
|
|
7728
7726
|
const $scope5_id = _scope_id();
|
|
7729
|
-
_html(`<a${_attr_class(["
|
|
7727
|
+
_html(`<a${_attr_class(["_ci", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7730
7728
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7731
7729
|
return 0;
|
|
7732
7730
|
} else if (input.source) {
|
|
7733
7731
|
const $scope6_id = _scope_id();
|
|
7734
|
-
_html(`<span${_attr_class("
|
|
7732
|
+
_html(`<span${_attr_class("_ci")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7735
7733
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7736
7734
|
_: _scope_with_id($scope2_id),
|
|
7737
7735
|
Cs: $si__input_source && 1
|
|
@@ -7739,7 +7737,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7739
7737
|
return 1;
|
|
7740
7738
|
} else if (input.noteLocal) {
|
|
7741
7739
|
const $scope10_id = _scope_id();
|
|
7742
|
-
_html(`<span${_attr_class(["
|
|
7740
|
+
_html(`<span${_attr_class(["_ci", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7743
7741
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7744
7742
|
return 2;
|
|
7745
7743
|
}
|
|
@@ -7747,7 +7745,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7747
7745
|
_if(() => {
|
|
7748
7746
|
if (input.tags) {
|
|
7749
7747
|
const $scope7_id = _scope_id();
|
|
7750
|
-
_html(`<span${_attr_class("
|
|
7748
|
+
_html(`<span${_attr_class("_ch")}>`);
|
|
7751
7749
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7752
7750
|
_html("</span>");
|
|
7753
7751
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7757,7 +7755,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7757
7755
|
_if(() => {
|
|
7758
7756
|
if (input.actions) {
|
|
7759
7757
|
const $scope8_id = _scope_id();
|
|
7760
|
-
_html(`<div${_attr_class("
|
|
7758
|
+
_html(`<div${_attr_class("_cB")}>`);
|
|
7761
7759
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7762
7760
|
_html("</div>");
|
|
7763
7761
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7868,7 +7866,7 @@ var icon_moon_default = _template("jb", (input) => {
|
|
|
7868
7866
|
});
|
|
7869
7867
|
//#endregion
|
|
7870
7868
|
//#region src/tags/prompt-dialog.css.ts
|
|
7871
|
-
var promptDlg = "
|
|
7869
|
+
var promptDlg = "_g2 _gY";
|
|
7872
7870
|
//#endregion
|
|
7873
7871
|
//#region src/tags/dialog-close.marko
|
|
7874
7872
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7892,7 +7890,7 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7892
7890
|
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;
|
|
7893
7891
|
const dismissable = input.dismissable !== false;
|
|
7894
7892
|
let open = input.open;
|
|
7895
|
-
_html(`<dialog${_attr_class(["
|
|
7893
|
+
_html(`<dialog${_attr_class(["_gX", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7896
7894
|
...htmlInput,
|
|
7897
7895
|
open: null
|
|
7898
7896
|
}, {
|
|
@@ -7902,20 +7900,20 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7902
7900
|
closedby: 1,
|
|
7903
7901
|
"on-cancel": 1,
|
|
7904
7902
|
"on-close": 1
|
|
7905
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7903
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_g0")}>`);
|
|
7906
7904
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7907
7905
|
_html("</div>");
|
|
7908
7906
|
_if(() => {
|
|
7909
7907
|
if (footer) {
|
|
7910
7908
|
const $scope1_id = _scope_id();
|
|
7911
|
-
_html(`<form method=dialog${_attr_class("
|
|
7909
|
+
_html(`<form method=dialog${_attr_class("_g1")}>`);
|
|
7912
7910
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7913
7911
|
_html("</form>");
|
|
7914
7912
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7915
7913
|
return 0;
|
|
7916
7914
|
} else if (input.openChange) {
|
|
7917
7915
|
const $scope2_id = _scope_id();
|
|
7918
|
-
_html(`<form method=dialog${_attr_class("
|
|
7916
|
+
_html(`<form method=dialog${_attr_class("_g1")}>`);
|
|
7919
7917
|
dialog_close_default({
|
|
7920
7918
|
class: ["_q", "_r"],
|
|
7921
7919
|
content: _content("s0", () => {
|
|
@@ -7999,7 +7997,7 @@ var prompt_dialog_default = _template("v", (input) => {
|
|
|
7999
7997
|
content: _content("v7", () => {
|
|
8000
7998
|
_scope_reason();
|
|
8001
7999
|
const $scope2_id = _scope_id();
|
|
8002
|
-
_html(`<h2${_attr_class("
|
|
8000
|
+
_html(`<h2${_attr_class("_gZ")}${_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) => {
|
|
8003
8001
|
value = _new_value;
|
|
8004
8002
|
}, "v0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8005
8003
|
_script($scope2_id, "v5");
|
|
@@ -8521,7 +8519,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8521
8519
|
const githubId = _id();
|
|
8522
8520
|
const backupId = _id();
|
|
8523
8521
|
const machineId = _id();
|
|
8524
|
-
_html(`<div${_attr_class("
|
|
8522
|
+
_html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
|
|
8525
8523
|
_set_serialize_reason({
|
|
8526
8524
|
0: _serialize_guard($scope0_reason, 4),
|
|
8527
8525
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8533,7 +8531,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8533
8531
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("y44", () => {
|
|
8534
8532
|
_scope_reason();
|
|
8535
8533
|
const $scope4_id = _scope_id();
|
|
8536
|
-
_html(`<span${_attr_class("
|
|
8534
|
+
_html(`<span${_attr_class("_c2")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8537
8535
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8538
8536
|
_resume_branch($scope4_id);
|
|
8539
8537
|
}, $scope0_id) });
|
|
@@ -8586,16 +8584,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8586
8584
|
_if(() => {
|
|
8587
8585
|
if (selfUpdatePending || selfUpdating) {
|
|
8588
8586
|
const $scope44_id = _scope_id();
|
|
8589
|
-
_html(`<div${_attr_class("
|
|
8587
|
+
_html(`<div${_attr_class("_dD")} role=status><div${_attr_class("_dE")}>`);
|
|
8590
8588
|
_if(() => {
|
|
8591
8589
|
if (selfUpdating) {
|
|
8592
8590
|
const $scope79_id = _scope_id();
|
|
8593
|
-
_html(`<span${_attr_class("
|
|
8591
|
+
_html(`<span${_attr_class("_dF")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dG")}>The app restarts and reloads when it is done.</span>`);
|
|
8594
8592
|
writeScope($scope79_id, {});
|
|
8595
8593
|
return 0;
|
|
8596
8594
|
} else {
|
|
8597
8595
|
const $scope45_id = _scope_id();
|
|
8598
|
-
_html(`<span${_attr_class("
|
|
8596
|
+
_html(`<span${_attr_class("_dF")}>Update available</span><span${_attr_class("_dG")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8599
8597
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8600
8598
|
return 1;
|
|
8601
8599
|
}
|
|
@@ -8614,32 +8612,32 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8614
8612
|
return 0;
|
|
8615
8613
|
}
|
|
8616
8614
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8617
|
-
_html(`<section${_attr_class("
|
|
8615
|
+
_html(`<section${_attr_class("_b_")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_ca")}><h2${_attr("id", agentsId)}${_attr_class("_cn")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_c4")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8618
8616
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8619
8617
|
setPreferred(v);
|
|
8620
8618
|
}, "y2", $scope0_id), () => {
|
|
8621
|
-
_html(`<select${_attr_class(["_p", "
|
|
8619
|
+
_html(`<select${_attr_class(["_p", "_c5"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8622
8620
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8623
8621
|
const $scope80_id = _scope_id();
|
|
8624
8622
|
_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)}`);
|
|
8625
8623
|
_serialize_if($scope0_reason, 5) && writeScope($scope80_id, {});
|
|
8626
8624
|
}, (a) => a, $scope0_id, "n", $sg__input_agents, 1, 1, "</select>", 1);
|
|
8627
8625
|
});
|
|
8628
|
-
_html(`</span></label></div><ul${_attr_class(
|
|
8626
|
+
_html(`</span></label></div><ul${_attr_class(agentList)}>`);
|
|
8629
8627
|
_for_of(families, (a) => {
|
|
8630
8628
|
const $scope1_id = _scope_id();
|
|
8631
8629
|
const lone = a.instances.length === 1 && a.instances[0].id === a.id ? a.instances[0] : null;
|
|
8632
8630
|
const rows = lone ? [] : a.instances;
|
|
8633
8631
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8634
8632
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8635
|
-
_html(`<li${_attr_class(
|
|
8633
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_c6", { ["_c8"]: lone && !lone.enabled }])}>`);
|
|
8636
8634
|
_set_serialize_reason(12);
|
|
8637
8635
|
const $childScope3 = _peek_scope_id();
|
|
8638
8636
|
icon_agent_default({
|
|
8639
8637
|
agent: a.id,
|
|
8640
8638
|
size: 18
|
|
8641
8639
|
});
|
|
8642
|
-
_html(`<div${_attr_class("
|
|
8640
|
+
_html(`<div${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8643
8641
|
_if(() => {
|
|
8644
8642
|
if (lone && input$3.preferred === lone.id) {
|
|
8645
8643
|
const $scope81_id = _scope_id();
|
|
@@ -8652,12 +8650,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8652
8650
|
_if(() => {
|
|
8653
8651
|
if (active.has(a.id)) {
|
|
8654
8652
|
const $scope12_id = _scope_id();
|
|
8655
|
-
_html(`<span${_attr_class("
|
|
8653
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8656
8654
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8657
8655
|
return 0;
|
|
8658
8656
|
} else if (!a.installed) {
|
|
8659
8657
|
const $scope82_id = _scope_id();
|
|
8660
|
-
_html(`<span${_attr_class("
|
|
8658
|
+
_html(`<span${_attr_class("_ci")}>Not installed</span>`);
|
|
8661
8659
|
writeScope($scope82_id, {});
|
|
8662
8660
|
return 1;
|
|
8663
8661
|
}
|
|
@@ -8685,15 +8683,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8685
8683
|
_if(() => {
|
|
8686
8684
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8687
8685
|
const $scope2_id = _scope_id();
|
|
8688
|
-
_html(`<ul${_attr_class(["
|
|
8686
|
+
_html(`<ul${_attr_class(["_c_", { ["_c8"]: lone && !lone.enabled }])}>`);
|
|
8689
8687
|
_for_of(rows, (inst) => {
|
|
8690
8688
|
const $scope3_id = _scope_id();
|
|
8691
8689
|
const accounts = accountsFor(inst.id);
|
|
8692
|
-
_html(`<li${_attr_class(["
|
|
8690
|
+
_html(`<li${_attr_class(["_c7", { ["_c8"]: !inst.enabled }])}><div${_attr_class("_c6")}>`);
|
|
8693
8691
|
_set_serialize_reason(12);
|
|
8694
8692
|
const $childScope4 = _peek_scope_id();
|
|
8695
8693
|
icon_agent_default({ agent: inst.id });
|
|
8696
|
-
_html(`<span${_attr_class(["
|
|
8694
|
+
_html(`<span${_attr_class(["_c9", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8697
8695
|
_if(() => {
|
|
8698
8696
|
if (input$3.preferred === inst.id) {
|
|
8699
8697
|
const $scope83_id = _scope_id();
|
|
@@ -8764,7 +8762,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8764
8762
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8765
8763
|
_for_of(otherUsage, (u) => {
|
|
8766
8764
|
const $scope87_id = _scope_id();
|
|
8767
|
-
_html(`<li${_attr_class(
|
|
8765
|
+
_html(`<li${_attr_class(agentRow)}>`);
|
|
8768
8766
|
_set_serialize_reason(6);
|
|
8769
8767
|
const $childScope8 = _peek_scope_id();
|
|
8770
8768
|
usage_meters_default({ agent: u });
|
|
@@ -8775,21 +8773,21 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8775
8773
|
_if(() => {
|
|
8776
8774
|
if (!usage && families.length) {
|
|
8777
8775
|
const $scope88_id = _scope_id();
|
|
8778
|
-
_html(`<p${_attr_class("
|
|
8776
|
+
_html(`<p${_attr_class("_ck")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8779
8777
|
writeScope($scope88_id, {});
|
|
8780
8778
|
return 0;
|
|
8781
8779
|
} else if (usage?.error) {
|
|
8782
8780
|
const $scope8_id = _scope_id();
|
|
8783
|
-
_html(`<p${_attr_class("
|
|
8781
|
+
_html(`<p${_attr_class("_ck")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8784
8782
|
writeScope($scope8_id, {});
|
|
8785
8783
|
return 1;
|
|
8786
8784
|
}
|
|
8787
8785
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8788
|
-
_html(`</section><section${_attr_class("
|
|
8786
|
+
_html(`</section><section${_attr_class("_b_")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ca")}><h2${_attr("id", githubId)}${_attr_class("_cn")}>GitHub</h2>`);
|
|
8789
8787
|
_if(() => {
|
|
8790
8788
|
if (setup && !addingHost) {
|
|
8791
8789
|
const $scope42_id = _scope_id();
|
|
8792
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8790
|
+
_html(`<button${_attr_class([iconBtnRow, "_di"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8793
8791
|
icon_plus_default({ size: 16 });
|
|
8794
8792
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8795
8793
|
_script($scope42_id, "y51");
|
|
@@ -8801,10 +8799,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8801
8799
|
if (setup) {
|
|
8802
8800
|
const $scope41_id = _scope_id();
|
|
8803
8801
|
_html(`<form${_attr_class([
|
|
8804
|
-
"
|
|
8805
|
-
"
|
|
8806
|
-
{ ["
|
|
8807
|
-
])}><label${_attr_class(["_1", "
|
|
8802
|
+
"_cC",
|
|
8803
|
+
"_di",
|
|
8804
|
+
{ ["_cD"]: !addingHost }
|
|
8805
|
+
])}><label${_attr_class(["_1", "_cF"])}>`);
|
|
8808
8806
|
icon_github_default({
|
|
8809
8807
|
size: 14,
|
|
8810
8808
|
class: "_2"
|
|
@@ -8814,12 +8812,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8814
8812
|
}, "y3", $scope41_id))}${_attr_class([
|
|
8815
8813
|
"_Z",
|
|
8816
8814
|
"_3",
|
|
8817
|
-
"
|
|
8815
|
+
"_cG"
|
|
8818
8816
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8819
8817
|
btnSm,
|
|
8820
8818
|
"_r",
|
|
8821
|
-
"
|
|
8822
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
8819
|
+
"_dh"
|
|
8820
|
+
])} 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, "_cH"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8823
8821
|
icon_xmark_default({ size: 14 });
|
|
8824
8822
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8825
8823
|
_script($scope41_id, "y52");
|
|
@@ -8827,19 +8825,19 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8827
8825
|
return 0;
|
|
8828
8826
|
}
|
|
8829
8827
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8830
|
-
_html(`</div><div${_attr_class(["
|
|
8828
|
+
_html(`</div><div${_attr_class(["_ce", "_cM"])}>`);
|
|
8831
8829
|
_for_of(setup?.github || [], (h) => {
|
|
8832
8830
|
const $scope6_id = _scope_id();
|
|
8833
8831
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8834
8832
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8835
8833
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8836
8834
|
const busy = active.has(h.host);
|
|
8837
|
-
_html(`<div${_attr_class(["
|
|
8835
|
+
_html(`<div${_attr_class(["_cN", "_dj"])}><div${_attr_class("_dk")}>`);
|
|
8838
8836
|
icon_github_default({
|
|
8839
8837
|
size: 18,
|
|
8840
|
-
class: "
|
|
8838
|
+
class: "_dl"
|
|
8841
8839
|
});
|
|
8842
|
-
_html(`<div${_attr_class("
|
|
8840
|
+
_html(`<div${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8843
8841
|
_if(() => {
|
|
8844
8842
|
if (h.isEnterprise) {
|
|
8845
8843
|
const $scope91_id = _scope_id();
|
|
@@ -8852,25 +8850,25 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8852
8850
|
_if(() => {
|
|
8853
8851
|
if (busy) {
|
|
8854
8852
|
const $scope13_id = _scope_id();
|
|
8855
|
-
_html(`<span${_attr_class(["
|
|
8853
|
+
_html(`<span${_attr_class(["_ci", "_dm"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8856
8854
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8857
8855
|
return 0;
|
|
8858
8856
|
} else if (h.authed) {
|
|
8859
8857
|
const $scope89_id = _scope_id();
|
|
8860
|
-
_html(`<span${_attr_class(["
|
|
8858
|
+
_html(`<span${_attr_class(["_ci", "_dm"])}>`);
|
|
8861
8859
|
icon_check_default({
|
|
8862
8860
|
size: 12,
|
|
8863
|
-
class: "
|
|
8861
|
+
class: "_dn"
|
|
8864
8862
|
});
|
|
8865
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8863
|
+
_html(` Signed in as <strong${_attr_class("_dp")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8866
8864
|
writeScope($scope89_id, {});
|
|
8867
8865
|
return 1;
|
|
8868
8866
|
} else if (h.error) {
|
|
8869
8867
|
const $scope90_id = _scope_id();
|
|
8870
8868
|
_html(`<span${_attr_class([
|
|
8871
|
-
"
|
|
8872
|
-
"
|
|
8873
|
-
"
|
|
8869
|
+
"_ci",
|
|
8870
|
+
"_dm",
|
|
8871
|
+
"_do"
|
|
8874
8872
|
])}>`);
|
|
8875
8873
|
icon_warning_default({ size: 12 });
|
|
8876
8874
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8878,7 +8876,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8878
8876
|
return 2;
|
|
8879
8877
|
} else {
|
|
8880
8878
|
const $scope92_id = _scope_id();
|
|
8881
|
-
_html(`<span${_attr_class(["
|
|
8879
|
+
_html(`<span${_attr_class(["_ci", "_dm"])}>Not signed in</span>`);
|
|
8882
8880
|
writeScope($scope92_id, {});
|
|
8883
8881
|
return 3;
|
|
8884
8882
|
}
|
|
@@ -8909,7 +8907,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8909
8907
|
if (h.isEnterprise) {
|
|
8910
8908
|
const $scope33_id = _scope_id();
|
|
8911
8909
|
_html(`<button${_attr_class([
|
|
8912
|
-
"
|
|
8910
|
+
"_cj",
|
|
8913
8911
|
"_8",
|
|
8914
8912
|
"_9",
|
|
8915
8913
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8943,7 +8941,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8943
8941
|
_if(() => {
|
|
8944
8942
|
if (busy && authCodes.has(h.host)) {
|
|
8945
8943
|
const $scope30_id = _scope_id();
|
|
8946
|
-
_html(`<div${_attr_class("
|
|
8944
|
+
_html(`<div${_attr_class("_dq")}><span${_attr_class("_dr")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dt")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_ds")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8947
8945
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8948
8946
|
return 0;
|
|
8949
8947
|
}
|
|
@@ -8955,7 +8953,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8955
8953
|
_set_serialize_reason(30);
|
|
8956
8954
|
const $childScope9 = _peek_scope_id();
|
|
8957
8955
|
sso_auth_default({
|
|
8958
|
-
class: ["
|
|
8956
|
+
class: ["_cN", "_du"],
|
|
8959
8957
|
items: hostSso$1,
|
|
8960
8958
|
skipped: skippedSso,
|
|
8961
8959
|
busy,
|
|
@@ -8989,23 +8987,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8989
8987
|
_if(() => {
|
|
8990
8988
|
if (setup && !setup.github.length) {
|
|
8991
8989
|
const $scope95_id = _scope_id();
|
|
8992
|
-
_html(`<p${_attr_class("
|
|
8990
|
+
_html(`<p${_attr_class("_ck")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8993
8991
|
writeScope($scope95_id, {});
|
|
8994
8992
|
return 0;
|
|
8995
8993
|
}
|
|
8996
8994
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8997
|
-
_html(`</section><section${_attr_class("
|
|
8995
|
+
_html(`</section><section${_attr_class("_b_")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_ca")}><h2${_attr("id", machineId)}${_attr_class("_cn")}>Machine</h2></div><div${_attr_class(["_ce", "_cM"])}><div${_attr_class(["_cN", "_cO"])}><div${_attr_class(["_cP", { ["_cQ"]: skillsOpen }])}><button${_attr_class("_cR")} aria-expanded=true>`);
|
|
8998
8996
|
_set_serialize_reason(1);
|
|
8999
8997
|
const $childScope10 = _peek_scope_id();
|
|
9000
8998
|
icon_chevron_right_default({
|
|
9001
8999
|
size: 12,
|
|
9002
|
-
class: ["
|
|
9000
|
+
class: ["_cV", { ["_cW"]: skillsOpen }]
|
|
9003
9001
|
});
|
|
9004
|
-
_html(`<span${_attr_class("
|
|
9002
|
+
_html(`<span${_attr_class("_cS")}>Skills</span>`);
|
|
9005
9003
|
_if(() => {
|
|
9006
9004
|
if (skills?.global.length) {
|
|
9007
9005
|
const $scope51_id = _scope_id();
|
|
9008
|
-
_html(`<span${_attr_class("
|
|
9006
|
+
_html(`<span${_attr_class("_cT")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9009
9007
|
writeScope($scope51_id, {});
|
|
9010
9008
|
return 0;
|
|
9011
9009
|
}
|
|
@@ -9025,7 +9023,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9025
9023
|
_if(() => {
|
|
9026
9024
|
if (skills?.available && skills.agents.length) {
|
|
9027
9025
|
const $scope14_id = _scope_id();
|
|
9028
|
-
_html(`<div${_attr_class(["
|
|
9026
|
+
_html(`<div${_attr_class(["_cC", { ["_cD"]: true }])}><label${_attr_class(["_1", "_cF"])}>`);
|
|
9029
9027
|
_if(() => {
|
|
9030
9028
|
if (skillSearching) {
|
|
9031
9029
|
const $scope96_id = _scope_id();
|
|
@@ -9045,14 +9043,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9045
9043
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9046
9044
|
"_Z",
|
|
9047
9045
|
"_3",
|
|
9048
|
-
"
|
|
9049
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9046
|
+
"_cG"
|
|
9047
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_cH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9050
9048
|
icon_xmark_default({ size: 14 });
|
|
9051
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9049
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_cJ"])}${_attr("hidden", true)}>`);
|
|
9052
9050
|
_if(() => {
|
|
9053
9051
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9054
9052
|
const $scope98_id = _scope_id();
|
|
9055
|
-
_html(`<li${_attr_class("
|
|
9053
|
+
_html(`<li${_attr_class("_cK")}>Searching skills.sh…</li>`);
|
|
9056
9054
|
writeScope($scope98_id, {});
|
|
9057
9055
|
return 0;
|
|
9058
9056
|
}
|
|
@@ -9060,11 +9058,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9060
9058
|
_if(() => {
|
|
9061
9059
|
if (looksLikeSource(skillQuery)) {
|
|
9062
9060
|
const $scope15_id = _scope_id();
|
|
9063
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9061
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9064
9062
|
_if(() => {
|
|
9065
9063
|
if (active.has(skillQuery.trim())) {
|
|
9066
9064
|
const $scope16_id = _scope_id();
|
|
9067
|
-
_html(`<span${_attr_class("
|
|
9065
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9068
9066
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9069
9067
|
Ch2: 3,
|
|
9070
9068
|
Chr: 1
|
|
@@ -9072,7 +9070,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9072
9070
|
return 0;
|
|
9073
9071
|
} else {
|
|
9074
9072
|
const $scope99_id = _scope_id();
|
|
9075
|
-
_html(`<span${_attr_class("
|
|
9073
|
+
_html(`<span${_attr_class("_ci")}>Add straight from this source</span>`);
|
|
9076
9074
|
writeScope($scope99_id, {});
|
|
9077
9075
|
return 1;
|
|
9078
9076
|
}
|
|
@@ -9095,16 +9093,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9095
9093
|
_for_of(skillHits || [], (h) => {
|
|
9096
9094
|
const $scope17_id = _scope_id();
|
|
9097
9095
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9098
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9096
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9099
9097
|
_if(() => {
|
|
9100
9098
|
if (active.has(h.skillId)) {
|
|
9101
9099
|
const $scope18_id = _scope_id();
|
|
9102
|
-
_html(`<span${_attr_class("
|
|
9100
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9103
9101
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9104
9102
|
return 0;
|
|
9105
9103
|
} else {
|
|
9106
9104
|
const $scope100_id = _scope_id();
|
|
9107
|
-
_html(`<span${_attr_class("
|
|
9105
|
+
_html(`<span${_attr_class("_ci")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9108
9106
|
writeScope($scope100_id, {});
|
|
9109
9107
|
return 1;
|
|
9110
9108
|
}
|
|
@@ -9152,7 +9150,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9152
9150
|
_if(() => {
|
|
9153
9151
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9154
9152
|
const $scope53_id = _scope_id();
|
|
9155
|
-
_html(`<li${_attr_class("
|
|
9153
|
+
_html(`<li${_attr_class("_cK")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9156
9154
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9157
9155
|
return 0;
|
|
9158
9156
|
}
|
|
@@ -9167,22 +9165,22 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9167
9165
|
_if(() => {
|
|
9168
9166
|
{
|
|
9169
9167
|
const $scope19_id = _scope_id();
|
|
9170
|
-
_html(`<div${_attr_class("
|
|
9168
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
9171
9169
|
_if(() => {
|
|
9172
9170
|
if (skills && !skills.agents.length) {
|
|
9173
9171
|
const $scope103_id = _scope_id();
|
|
9174
|
-
_html(`<p${_attr_class("
|
|
9172
|
+
_html(`<p${_attr_class("_ck")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9175
9173
|
writeScope($scope103_id, {});
|
|
9176
9174
|
return 0;
|
|
9177
9175
|
} else if (skills && !skills.available) {
|
|
9178
9176
|
const $scope20_id = _scope_id();
|
|
9179
|
-
_html(`<p${_attr_class("
|
|
9177
|
+
_html(`<p${_attr_class("_ck")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope20_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope20_id, "b")}</p>`);
|
|
9180
9178
|
_script($scope20_id, "y60");
|
|
9181
9179
|
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9182
9180
|
return 1;
|
|
9183
9181
|
}
|
|
9184
9182
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9185
|
-
_html(`<ul${_attr_class("
|
|
9183
|
+
_html(`<ul${_attr_class("_cv")}>`);
|
|
9186
9184
|
_for_of(skills?.global || [], (s) => {
|
|
9187
9185
|
const $scope21_id = _scope_id();
|
|
9188
9186
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9258,7 +9256,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9258
9256
|
_if(() => {
|
|
9259
9257
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9260
9258
|
const $scope108_id = _scope_id();
|
|
9261
|
-
_html(`<p${_attr_class("
|
|
9259
|
+
_html(`<p${_attr_class("_ck")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9262
9260
|
writeScope($scope108_id, {});
|
|
9263
9261
|
return 0;
|
|
9264
9262
|
}
|
|
@@ -9268,14 +9266,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9268
9266
|
return 0;
|
|
9269
9267
|
}
|
|
9270
9268
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9271
|
-
_html(`</div><div${_attr_class(["
|
|
9269
|
+
_html(`</div><div${_attr_class(["_cN", "_cO"])}><div${_attr_class(["_cP", { ["_cQ"]: machineOpen }])}><button${_attr_class("_cR")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9272
9270
|
_set_serialize_reason(1);
|
|
9273
9271
|
const $childScope12 = _peek_scope_id();
|
|
9274
9272
|
icon_chevron_right_default({
|
|
9275
9273
|
size: 12,
|
|
9276
|
-
class: ["
|
|
9274
|
+
class: ["_cV", { ["_cW"]: machineOpen }]
|
|
9277
9275
|
});
|
|
9278
|
-
_html(`<span${_attr_class("
|
|
9276
|
+
_html(`<span${_attr_class("_cS")}>Tools</span><span${_attr_class("_cT")}>${_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")}`);
|
|
9279
9277
|
_if(() => {
|
|
9280
9278
|
if (outdatedIds.length > 1) {
|
|
9281
9279
|
const $scope22_id = _scope_id();
|
|
@@ -9308,7 +9306,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9308
9306
|
_if(() => {
|
|
9309
9307
|
if (setup && setup.mise.installed) {
|
|
9310
9308
|
const $scope24_id = _scope_id();
|
|
9311
|
-
_html(`<div${_attr_class(["
|
|
9309
|
+
_html(`<div${_attr_class(["_cC", { ["_cD"]: true }])}><label${_attr_class(["_1", "_cF"])}>`);
|
|
9312
9310
|
_if(() => {
|
|
9313
9311
|
if (searching) {
|
|
9314
9312
|
const $scope109_id = _scope_id();
|
|
@@ -9328,14 +9326,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9328
9326
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9329
9327
|
"_Z",
|
|
9330
9328
|
"_3",
|
|
9331
|
-
"
|
|
9332
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9329
|
+
"_cG"
|
|
9330
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_cH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9333
9331
|
icon_xmark_default({ size: 14 });
|
|
9334
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9332
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_cJ"])}${_attr("hidden", true)}>`);
|
|
9335
9333
|
_if(() => {
|
|
9336
9334
|
if (searching && !hits?.length) {
|
|
9337
9335
|
const $scope111_id = _scope_id();
|
|
9338
|
-
_html(`<li${_attr_class("
|
|
9336
|
+
_html(`<li${_attr_class("_cK")}>Searching the mise registry…</li>`);
|
|
9339
9337
|
writeScope($scope111_id, {});
|
|
9340
9338
|
return 0;
|
|
9341
9339
|
}
|
|
@@ -9343,23 +9341,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9343
9341
|
_if(() => {
|
|
9344
9342
|
if (hits && !hits.length && !searching) {
|
|
9345
9343
|
const $scope43_id = _scope_id();
|
|
9346
|
-
_html(`<li${_attr_class("
|
|
9344
|
+
_html(`<li${_attr_class("_cK")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9347
9345
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9348
9346
|
return 0;
|
|
9349
9347
|
}
|
|
9350
9348
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9351
9349
|
_for_of(hits || [], (h) => {
|
|
9352
9350
|
const $scope25_id = _scope_id();
|
|
9353
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9351
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9354
9352
|
_if(() => {
|
|
9355
9353
|
if (active.has(h.name)) {
|
|
9356
9354
|
const $scope26_id = _scope_id();
|
|
9357
|
-
_html(`<span${_attr_class("
|
|
9355
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9358
9356
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9359
9357
|
return 0;
|
|
9360
9358
|
} else if (h.description) {
|
|
9361
9359
|
const $scope112_id = _scope_id();
|
|
9362
|
-
_html(`<span${_attr_class("
|
|
9360
|
+
_html(`<span${_attr_class("_ci")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9363
9361
|
writeScope($scope112_id, {});
|
|
9364
9362
|
return 1;
|
|
9365
9363
|
}
|
|
@@ -9404,11 +9402,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9404
9402
|
_if(() => {
|
|
9405
9403
|
if (machineOpen) {
|
|
9406
9404
|
const $scope5_id = _scope_id();
|
|
9407
|
-
_html(`<div${_attr_class("
|
|
9405
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
9408
9406
|
_if(() => {
|
|
9409
9407
|
if (setup && !setup.mise.installed) {
|
|
9410
9408
|
const $scope27_id = _scope_id();
|
|
9411
|
-
_html(`<p${_attr_class("
|
|
9409
|
+
_html(`<p${_attr_class("_ck")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope27_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope27_id, "b")}</p>`);
|
|
9412
9410
|
_script($scope27_id, "y71");
|
|
9413
9411
|
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9414
9412
|
return 0;
|
|
@@ -9418,11 +9416,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9418
9416
|
_if(() => {
|
|
9419
9417
|
if (self) {
|
|
9420
9418
|
const $scope47_id = _scope_id();
|
|
9421
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9419
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dd", "_y"])}>work</span>`);
|
|
9422
9420
|
_if(() => {
|
|
9423
9421
|
if (selfUpdating) {
|
|
9424
9422
|
const $scope114_id = _scope_id();
|
|
9425
|
-
_html(`<span${_attr_class("
|
|
9423
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9426
9424
|
writeScope($scope114_id, {});
|
|
9427
9425
|
return 0;
|
|
9428
9426
|
} else {
|
|
@@ -9436,7 +9434,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9436
9434
|
return 0;
|
|
9437
9435
|
} else if (self.latest && self.latest !== self.version) {
|
|
9438
9436
|
const $scope49_id = _scope_id();
|
|
9439
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9437
|
+
_html(`<button${_attr_class([btnSm, "_dg"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9440
9438
|
icon_arrow_up_default({ size: 12 });
|
|
9441
9439
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9442
9440
|
_script($scope49_id, "y72");
|
|
@@ -9480,11 +9478,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9480
9478
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9481
9479
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9482
9480
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9483
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9481
|
+
_html(`<li${_attr_class([toolRow, { ["_dc"]: !t.installed }])}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9484
9482
|
_if(() => {
|
|
9485
9483
|
if (active.has(t.id)) {
|
|
9486
9484
|
const $scope29_id = _scope_id();
|
|
9487
|
-
_html(`<span${_attr_class("
|
|
9485
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9488
9486
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9489
9487
|
return 0;
|
|
9490
9488
|
} else if (t.installed) {
|
|
@@ -9492,11 +9490,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9492
9490
|
_if(() => {
|
|
9493
9491
|
if (t.version) {
|
|
9494
9492
|
const $scope40_id = _scope_id();
|
|
9495
|
-
_html(`<button${_attr_class(["
|
|
9493
|
+
_html(`<button${_attr_class(["_df", "_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)}`);
|
|
9496
9494
|
_if(() => {
|
|
9497
9495
|
if (aliasPin(t)) {
|
|
9498
9496
|
const $scope118_id = _scope_id();
|
|
9499
|
-
_html(`<span${_attr_class("
|
|
9497
|
+
_html(`<span${_attr_class("_de")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9500
9498
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9501
9499
|
return 0;
|
|
9502
9500
|
}
|
|
@@ -9515,7 +9513,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9515
9513
|
_if(() => {
|
|
9516
9514
|
if (outdated(t)) {
|
|
9517
9515
|
const $scope59_id = _scope_id();
|
|
9518
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9516
|
+
_html(`<button${_attr_class([btnSm, "_dg"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9519
9517
|
icon_arrow_up_default({ size: 12 });
|
|
9520
9518
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9521
9519
|
_script($scope59_id, "y74");
|
|
@@ -9523,7 +9521,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9523
9521
|
return 0;
|
|
9524
9522
|
} else if (t.newest) {
|
|
9525
9523
|
const $scope60_id = _scope_id();
|
|
9526
|
-
_html(`<button${_attr_class(["
|
|
9524
|
+
_html(`<button${_attr_class(["_df", "_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")}`);
|
|
9527
9525
|
_script($scope60_id, "y75");
|
|
9528
9526
|
_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, {
|
|
9529
9527
|
Cw: 1,
|
|
@@ -9639,14 +9637,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9639
9637
|
label: "Dark"
|
|
9640
9638
|
}
|
|
9641
9639
|
];
|
|
9642
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9640
|
+
_html(`</div></div></section><section${_attr_class("_b_")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_ca")}><h2${_attr("id", appearanceId)}${_attr_class("_cn")}>Appearance</h2></div><div${_attr_class(["_ce", "_dv"])}><div${_attr_class("_dH")}><img${_attr_class("_dI")}${_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("_dJ")}><span${_attr_class("_dK")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dL")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dw")}><span${_attr_class("_dx")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9643
9641
|
setInstance({ name: v });
|
|
9644
|
-
}, "y4", $scope0_id))}${_attr_class(["_Z", "
|
|
9642
|
+
}, "y4", $scope0_id))}${_attr_class(["_Z", "_dy"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dw")}><span${_attr_class("_dx")}>Theme</span><span${_attr_class("_dA")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9645
9643
|
_for_of(themeOpts, (opt) => {
|
|
9646
9644
|
const $scope50_id = _scope_id();
|
|
9647
9645
|
_html(`<button type=button${_attr_class([
|
|
9648
9646
|
"_bg",
|
|
9649
|
-
"
|
|
9647
|
+
"_dM",
|
|
9650
9648
|
{ ["_bf"]: themeMode === opt.id }
|
|
9651
9649
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9652
9650
|
if (opt.id === "system") {
|
|
@@ -9666,28 +9664,28 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9666
9664
|
_: _scope_with_id($scope0_id)
|
|
9667
9665
|
});
|
|
9668
9666
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9669
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9667
|
+
_html(`</span><span${_attr_class(["_o", "_dB"])}>`);
|
|
9670
9668
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9671
9669
|
setThemeMode(v);
|
|
9672
9670
|
}, "y5", $scope0_id), () => {
|
|
9673
|
-
_html(`<select${_attr_class(["_p", "
|
|
9671
|
+
_html(`<select${_attr_class(["_p", "_dC"])} aria-label="Color theme">`);
|
|
9674
9672
|
forOf(themeOpts, (opt) => {
|
|
9675
9673
|
_scope_id();
|
|
9676
9674
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9677
9675
|
});
|
|
9678
9676
|
_html("</select>");
|
|
9679
9677
|
});
|
|
9680
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9681
|
-
"_dL",
|
|
9678
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dw")}><span${_attr_class("_dx")}>Accent</span><span${_attr_class("_dN")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9682
9679
|
"_dO",
|
|
9683
|
-
|
|
9680
|
+
"_dR",
|
|
9681
|
+
{ ["_dP"]: !accent }
|
|
9684
9682
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9685
9683
|
_if(() => {
|
|
9686
9684
|
if (!accent) {
|
|
9687
9685
|
const $scope129_id = _scope_id();
|
|
9688
9686
|
icon_check_default({
|
|
9689
9687
|
size: 12,
|
|
9690
|
-
class: "
|
|
9688
|
+
class: "_dQ"
|
|
9691
9689
|
});
|
|
9692
9690
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9693
9691
|
return 0;
|
|
@@ -9695,13 +9693,13 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9695
9693
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9696
9694
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9697
9695
|
const $scope77_id = _scope_id();
|
|
9698
|
-
_html(`<button type=button${_attr_class(["
|
|
9696
|
+
_html(`<button type=button${_attr_class(["_dO", { ["_dP"]: 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)}>`);
|
|
9699
9697
|
_if(() => {
|
|
9700
9698
|
if (accent === p.value) {
|
|
9701
9699
|
const $scope130_id = _scope_id();
|
|
9702
9700
|
icon_check_default({
|
|
9703
9701
|
size: 12,
|
|
9704
|
-
class: "
|
|
9702
|
+
class: "_dQ"
|
|
9705
9703
|
});
|
|
9706
9704
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9707
9705
|
return 0;
|
|
@@ -9715,18 +9713,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9715
9713
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9716
9714
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9717
9715
|
_html(`<label${_attr_class([
|
|
9718
|
-
"
|
|
9719
|
-
"
|
|
9720
|
-
{ ["
|
|
9716
|
+
"_dO",
|
|
9717
|
+
"_dS",
|
|
9718
|
+
{ ["_dP"]: customOn }
|
|
9721
9719
|
])}${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) {
|
|
9722
9720
|
setInstance({ accent: v });
|
|
9723
|
-
}, "y6", $scope0_id))}${_attr_class("
|
|
9721
|
+
}, "y6", $scope0_id))}${_attr_class("_dT")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9724
9722
|
_if(() => {
|
|
9725
9723
|
if (customOn) {
|
|
9726
9724
|
const $scope131_id = _scope_id();
|
|
9727
9725
|
icon_check_default({
|
|
9728
9726
|
size: 12,
|
|
9729
|
-
class: "
|
|
9727
|
+
class: "_dQ"
|
|
9730
9728
|
});
|
|
9731
9729
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9732
9730
|
return 0;
|
|
@@ -9737,16 +9735,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9737
9735
|
return 1;
|
|
9738
9736
|
}
|
|
9739
9737
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9740
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9738
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_b_")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_ca")}><h2${_attr("id", backupId)}${_attr_class("_cn")}>Backup</h2></div><div${_attr_class(["_ce", "_cM"])}><div${_attr_class("_cN")}><div${_attr_class("_dU")}><div${_attr_class("_cf")}>`);
|
|
9741
9739
|
_if(() => {
|
|
9742
9740
|
if (backupBusy === "preflight") {
|
|
9743
9741
|
const $scope65_id = _scope_id();
|
|
9744
|
-
_html(`<span${_attr_class("
|
|
9742
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9745
9743
|
writeScope($scope65_id, {});
|
|
9746
9744
|
return 0;
|
|
9747
9745
|
} else {
|
|
9748
9746
|
const $scope133_id = _scope_id();
|
|
9749
|
-
_html(`<span${_attr_class("
|
|
9747
|
+
_html(`<span${_attr_class("_ci")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9750
9748
|
writeScope($scope133_id, {});
|
|
9751
9749
|
return 1;
|
|
9752
9750
|
}
|
|
@@ -9764,7 +9762,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9764
9762
|
_if(() => {
|
|
9765
9763
|
if (preflight && !backupBusy) {
|
|
9766
9764
|
const $scope67_id = _scope_id();
|
|
9767
|
-
_html(`<div${_attr_class("
|
|
9765
|
+
_html(`<div${_attr_class("_dW")}><p${_attr_class("_dX")}>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("_dX")}>Not in the file: `);
|
|
9768
9766
|
_if(() => {
|
|
9769
9767
|
if (preflight.unpushed) {
|
|
9770
9768
|
const $scope68_id = _scope_id();
|
|
@@ -9781,15 +9779,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9781
9779
|
return 0;
|
|
9782
9780
|
}
|
|
9783
9781
|
}, $scope67_id, "m");
|
|
9784
|
-
_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("
|
|
9782
|
+
_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("_dY")}>`);
|
|
9785
9783
|
_for_of(preflight.workspaces, (w) => {
|
|
9786
9784
|
const $scope135_id = _scope_id();
|
|
9787
9785
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9788
|
-
_html(`<li${_attr_class("
|
|
9786
|
+
_html(`<li${_attr_class("_dZ")}><span${_attr_class("_cg")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dY")}>`);
|
|
9789
9787
|
_for_of(w.repos, (r) => {
|
|
9790
9788
|
const $scope136_id = _scope_id();
|
|
9791
9789
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9792
|
-
_html(`<li${_attr_class("
|
|
9790
|
+
_html(`<li${_attr_class("_d0")}><span${_attr_class("_d1")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9793
9791
|
_for_of(r.unpushed, (b) => {
|
|
9794
9792
|
const $scope137_id = _scope_id();
|
|
9795
9793
|
_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 `);
|
|
@@ -9808,10 +9806,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9808
9806
|
_if(() => {
|
|
9809
9807
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9810
9808
|
const $scope138_id = _scope_id();
|
|
9811
|
-
_html(`<ul${_attr_class("
|
|
9809
|
+
_html(`<ul${_attr_class("_d2")}>`);
|
|
9812
9810
|
_for_of(r.modified, (f) => {
|
|
9813
9811
|
const $scope141_id = _scope_id();
|
|
9814
|
-
_html(`<li${_attr_class("
|
|
9812
|
+
_html(`<li${_attr_class("_d3")}><span${_attr_class([
|
|
9815
9813
|
"_N",
|
|
9816
9814
|
"_P",
|
|
9817
9815
|
tone.warn
|
|
@@ -9820,18 +9818,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9820
9818
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9821
9819
|
_for_of(r.untracked, (f) => {
|
|
9822
9820
|
const $scope142_id = _scope_id();
|
|
9823
|
-
_html(`<li${_attr_class("
|
|
9821
|
+
_html(`<li${_attr_class("_d3")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9824
9822
|
writeScope($scope142_id, {});
|
|
9825
9823
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9826
9824
|
_for_of(r.ignored, (f) => {
|
|
9827
9825
|
const $scope143_id = _scope_id();
|
|
9828
|
-
_html(`<li${_attr_class("
|
|
9826
|
+
_html(`<li${_attr_class("_d3")}><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>`);
|
|
9829
9827
|
writeScope($scope143_id, {});
|
|
9830
9828
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9831
9829
|
_if(() => {
|
|
9832
9830
|
if (r.more) {
|
|
9833
9831
|
const $scope139_id = _scope_id();
|
|
9834
|
-
_html(`<li${_attr_class(["
|
|
9832
|
+
_html(`<li${_attr_class(["_d3", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9835
9833
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9836
9834
|
return 0;
|
|
9837
9835
|
}
|
|
@@ -9856,27 +9854,27 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9856
9854
|
i: $for_content18__w_name__closures
|
|
9857
9855
|
});
|
|
9858
9856
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9859
|
-
_html(`<div${_attr_class("
|
|
9857
|
+
_html(`<div${_attr_class("_d4")}><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>`);
|
|
9860
9858
|
_script($scope67_id, "y81");
|
|
9861
9859
|
writeScope($scope67_id, {});
|
|
9862
9860
|
return 0;
|
|
9863
9861
|
}
|
|
9864
9862
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9865
|
-
_html(`</div><div${_attr_class("
|
|
9863
|
+
_html(`</div><div${_attr_class("_cN")}><div${_attr_class("_dU")}><div${_attr_class("_cf")}>`);
|
|
9866
9864
|
_if(() => {
|
|
9867
9865
|
if (backupBusy === "restore") {
|
|
9868
9866
|
const $scope66_id = _scope_id();
|
|
9869
|
-
_html(`<span${_attr_class("
|
|
9867
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9870
9868
|
writeScope($scope66_id, {});
|
|
9871
9869
|
return 0;
|
|
9872
9870
|
} else if (restoreDone) {
|
|
9873
9871
|
const $scope74_id = _scope_id();
|
|
9874
|
-
_html(`<span${_attr_class("
|
|
9872
|
+
_html(`<span${_attr_class("_ci")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9875
9873
|
writeScope($scope74_id, {});
|
|
9876
9874
|
return 1;
|
|
9877
9875
|
} else {
|
|
9878
9876
|
const $scope144_id = _scope_id();
|
|
9879
|
-
_html(`<span${_attr_class("
|
|
9877
|
+
_html(`<span${_attr_class("_ci")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9880
9878
|
writeScope($scope144_id, {});
|
|
9881
9879
|
return 2;
|
|
9882
9880
|
}
|
|
@@ -9884,7 +9882,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9884
9882
|
_if(() => {
|
|
9885
9883
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9886
9884
|
const $scope76_id = _scope_id();
|
|
9887
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9885
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dV")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9888
9886
|
_script($scope76_id, "y82");
|
|
9889
9887
|
writeScope($scope76_id, {});
|
|
9890
9888
|
return 0;
|
|
@@ -9895,14 +9893,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9895
9893
|
if (restorePreview && backupBusy !== "restore") {
|
|
9896
9894
|
const $scope69_id = _scope_id();
|
|
9897
9895
|
const { preview } = restorePreview;
|
|
9898
|
-
_html(`<div${_attr_class("
|
|
9896
|
+
_html(`<div${_attr_class("_dW")}><p${_attr_class("_dX")}>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>`);
|
|
9899
9897
|
_if(() => {
|
|
9900
9898
|
if (preview.workspaces.length) {
|
|
9901
9899
|
const $scope70_id = _scope_id();
|
|
9902
9900
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9903
9901
|
_for_of(preview.workspaces, (w) => {
|
|
9904
9902
|
const $scope71_id = _scope_id();
|
|
9905
|
-
_html(`<li><label${_attr_class(["
|
|
9903
|
+
_html(`<li><label${_attr_class(["_d6", { ["_d8"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_d7")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9906
9904
|
_if(() => {
|
|
9907
9905
|
if (w.status === "archived") {
|
|
9908
9906
|
const $scope148_id = _scope_id();
|
|
@@ -9924,7 +9922,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9924
9922
|
return 1;
|
|
9925
9923
|
}
|
|
9926
9924
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
9927
|
-
_html(`</span><span${_attr_class("
|
|
9925
|
+
_html(`</span><span${_attr_class("_ci")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9928
9926
|
_script($scope71_id, "y83");
|
|
9929
9927
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
9930
9928
|
n: w?.unknownHost,
|
|
@@ -9935,7 +9933,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9935
9933
|
return 0;
|
|
9936
9934
|
} else {
|
|
9937
9935
|
const $scope146_id = _scope_id();
|
|
9938
|
-
_html(`<p${_attr_class("
|
|
9936
|
+
_html(`<p${_attr_class("_ck")}>No workspaces in this file.</p>`);
|
|
9939
9937
|
writeScope($scope146_id, {});
|
|
9940
9938
|
return 1;
|
|
9941
9939
|
}
|
|
@@ -9975,7 +9973,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9975
9973
|
_if(() => {
|
|
9976
9974
|
if (p.total) {
|
|
9977
9975
|
const $scope73_id = _scope_id();
|
|
9978
|
-
_html(`<li><label${_attr_class(["
|
|
9976
|
+
_html(`<li><label${_attr_class(["_d6", { ["_d8"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_d7")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_cf")}><span${_attr_class("_cg")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_ci")}>`);
|
|
9979
9977
|
_if(() => {
|
|
9980
9978
|
if (p.key === "settings") {
|
|
9981
9979
|
const $scope145_id = _scope_id();
|
|
@@ -10022,7 +10020,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
10022
10020
|
i: $for_content10__p_total__closures
|
|
10023
10021
|
});
|
|
10024
10022
|
}, "key", $scope69_id, "h");
|
|
10025
|
-
_html(`</ul><div${_attr_class("
|
|
10023
|
+
_html(`</ul><div${_attr_class("_d4")}><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>`);
|
|
10026
10024
|
_script($scope69_id, "y85");
|
|
10027
10025
|
writeScope($scope69_id, {});
|
|
10028
10026
|
return 0;
|
|
@@ -10251,8 +10249,9 @@ function vapidKey(base64) {
|
|
|
10251
10249
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10252
10250
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10253
10251
|
}
|
|
10254
|
-
var iconBtn = "
|
|
10255
|
-
var settingsDot = "
|
|
10252
|
+
var iconBtn = "_bN _l";
|
|
10253
|
+
var settingsDot = "_bO _bc";
|
|
10254
|
+
var navToggle = "_bS _l";
|
|
10256
10255
|
_template("T", (input) => {
|
|
10257
10256
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10258
10257
|
const $scope0_id = _scope_id();
|
|
@@ -10306,8 +10305,8 @@ function activeAgent(session) {
|
|
|
10306
10305
|
const command = session.state?.command?.trim();
|
|
10307
10306
|
return command && agentFromCommand(command) || session.agent;
|
|
10308
10307
|
}
|
|
10309
|
-
var rowState = "
|
|
10310
|
-
var rowArchive = "
|
|
10308
|
+
var rowState = "_e9 _N";
|
|
10309
|
+
var rowArchive = "_fa _q _L";
|
|
10311
10310
|
//#endregion
|
|
10312
10311
|
//#region src/client/arm.ts
|
|
10313
10312
|
/** Two-step destructive controls: first click arms (label/colour flips),
|
|
@@ -10318,12 +10317,12 @@ var ARM_MS = 3500;
|
|
|
10318
10317
|
function disarmLater(fn) {
|
|
10319
10318
|
return setTimeout(fn, ARM_MS);
|
|
10320
10319
|
}
|
|
10321
|
-
var prChip = "
|
|
10322
|
-
var portChip = "
|
|
10320
|
+
var prChip = "_ib _u _ia";
|
|
10321
|
+
var portChip = "_ic _u _ia";
|
|
10323
10322
|
var prState = {
|
|
10324
|
-
open: "
|
|
10325
|
-
merged: "
|
|
10326
|
-
closed: "
|
|
10323
|
+
open: "_ig",
|
|
10324
|
+
merged: "_ih",
|
|
10325
|
+
closed: "_ii"
|
|
10327
10326
|
};
|
|
10328
10327
|
//#endregion
|
|
10329
10328
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10414,7 +10413,7 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10414
10413
|
const name = repo.full_name.split("/").at(-1);
|
|
10415
10414
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10416
10415
|
}, "z4", $scope1_id);
|
|
10417
|
-
_html(`<div${_attr_class("
|
|
10416
|
+
_html(`<div${_attr_class("_h_")}>`);
|
|
10418
10417
|
_for_of(repos, (repo) => {
|
|
10419
10418
|
const $scope2_id = _scope_id();
|
|
10420
10419
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10430,11 +10429,11 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10430
10429
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10431
10430
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10432
10431
|
}
|
|
10433
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10432
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_id", { ["_il"]: !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")}`);
|
|
10434
10433
|
_if(() => {
|
|
10435
10434
|
if (open) {
|
|
10436
10435
|
const $scope4_id = _scope_id();
|
|
10437
|
-
_html(`<a${_attr_class(["
|
|
10436
|
+
_html(`<a${_attr_class(["_id", "_ie"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10438
10437
|
icon_diff_default({ size: 12 });
|
|
10439
10438
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10440
10439
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10442,9 +10441,9 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10442
10441
|
} else {
|
|
10443
10442
|
const $scope6_id = _scope_id();
|
|
10444
10443
|
_html(`<button type=button${_attr_class([
|
|
10445
|
-
"
|
|
10446
|
-
"
|
|
10447
|
-
"
|
|
10444
|
+
"_id",
|
|
10445
|
+
"_ie",
|
|
10446
|
+
"_if"
|
|
10448
10447
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10449
10448
|
icon_xmark_default({ size: 12 });
|
|
10450
10449
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10472,21 +10471,21 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10472
10471
|
_if(() => {
|
|
10473
10472
|
if (dead.has(p.port)) {
|
|
10474
10473
|
const $scope7_id = _scope_id();
|
|
10475
|
-
_html(`<span${_attr_class(["
|
|
10474
|
+
_html(`<span${_attr_class(["_id", "_ij"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10476
10475
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10477
10476
|
return 0;
|
|
10478
10477
|
} else {
|
|
10479
10478
|
const $scope8_id = _scope_id();
|
|
10480
|
-
_html(`<button type=button${_attr_class(["
|
|
10479
|
+
_html(`<button type=button${_attr_class(["_id", "_ik"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10481
10480
|
_script($scope8_id, "z6");
|
|
10482
10481
|
writeScope($scope8_id, {});
|
|
10483
10482
|
return 1;
|
|
10484
10483
|
}
|
|
10485
10484
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10486
10485
|
_html(`<button type=button${_attr_class([
|
|
10487
|
-
"
|
|
10488
|
-
"
|
|
10489
|
-
"
|
|
10486
|
+
"_id",
|
|
10487
|
+
"_ie",
|
|
10488
|
+
"_if",
|
|
10490
10489
|
{ ["_s"]: armedPid === p.pid }
|
|
10491
10490
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10492
10491
|
icon_xmark_default({ size: 12 });
|
|
@@ -10529,16 +10528,16 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10529
10528
|
});
|
|
10530
10529
|
_resume_branch($scope0_id);
|
|
10531
10530
|
});
|
|
10532
|
-
var railBtn = "
|
|
10533
|
-
var wsBtn = "
|
|
10534
|
-
var rowIcon = "
|
|
10535
|
-
var close = "
|
|
10536
|
-
var sessRename$1 = "
|
|
10537
|
-
var sessBtn$1 = "
|
|
10531
|
+
var railBtn = "_gh _l";
|
|
10532
|
+
var wsBtn = "_gm _I";
|
|
10533
|
+
var rowIcon = "_gp _4 _l";
|
|
10534
|
+
var close = "_gq _7 _l _8";
|
|
10535
|
+
var sessRename$1 = "_gB _J";
|
|
10536
|
+
var sessBtn$1 = "_gD _I";
|
|
10538
10537
|
//#endregion
|
|
10539
10538
|
//#region src/styles/session-pop.css.ts
|
|
10540
|
-
var sessionPop = "
|
|
10541
|
-
var sessionPopBtn = "
|
|
10539
|
+
var sessionPop = "_fv __";
|
|
10540
|
+
var sessionPopBtn = "_fw _I";
|
|
10542
10541
|
//#endregion
|
|
10543
10542
|
//#region src/tags/icons/icon-archive.marko
|
|
10544
10543
|
var icon_archive_default = _template("M", (input) => {
|
|
@@ -10584,22 +10583,22 @@ var usage_pcts_default = _template("I", (input) => {
|
|
|
10584
10583
|
if (windows.length) {
|
|
10585
10584
|
const $scope1_id = _scope_id();
|
|
10586
10585
|
_html(`<span${_attr_class([
|
|
10587
|
-
"
|
|
10586
|
+
"_hp",
|
|
10588
10587
|
input.class,
|
|
10589
|
-
{ ["
|
|
10588
|
+
{ ["_hq"]: agent.stale_seconds != null }
|
|
10590
10589
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10591
10590
|
_for_of(windows, (win$1, i) => {
|
|
10592
10591
|
const $scope2_id = _scope_id();
|
|
10593
|
-
_html(`<span${_attr_class("
|
|
10592
|
+
_html(`<span${_attr_class("_hr")}>`);
|
|
10594
10593
|
_if(() => {
|
|
10595
10594
|
if (i) {
|
|
10596
10595
|
const $scope3_id = _scope_id();
|
|
10597
|
-
_html(`<span${_attr_class("
|
|
10596
|
+
_html(`<span${_attr_class("_hu")} aria-hidden=true>·</span>`);
|
|
10598
10597
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10599
10598
|
return 0;
|
|
10600
10599
|
}
|
|
10601
10600
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10602
|
-
_html(`<span${_attr_class("
|
|
10601
|
+
_html(`<span${_attr_class("_hs")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_ht", win$1.used_percent >= 90 ? "_hl" : win$1.used_percent >= 70 ? "_hk" : win$1.used_percent >= 40 ? "_hj" : "_hi"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10603
10602
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10604
10603
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10605
10604
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10711,7 +10710,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10711
10710
|
_if(() => {
|
|
10712
10711
|
if (input.rail) {
|
|
10713
10712
|
const $scope2_id = _scope_id();
|
|
10714
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10713
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gf"]: 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, 28))}<span${_attr_class([
|
|
10715
10714
|
"_A",
|
|
10716
10715
|
phase[dot$1],
|
|
10717
10716
|
"_bc"
|
|
@@ -10721,34 +10720,34 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10721
10720
|
} else if (ws$1.pending) {
|
|
10722
10721
|
const $scope3_id = _scope_id();
|
|
10723
10722
|
_html(`<section${_attr_class([
|
|
10724
|
-
"
|
|
10725
|
-
"
|
|
10723
|
+
"_gj",
|
|
10724
|
+
"_gF",
|
|
10726
10725
|
{
|
|
10727
|
-
["
|
|
10728
|
-
["
|
|
10726
|
+
["_gk"]: input.railPop,
|
|
10727
|
+
["_gi"]: input.page
|
|
10729
10728
|
}
|
|
10730
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10729
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_gl")}><div${_attr_class(wsBtn)}>`);
|
|
10731
10730
|
_if(() => {
|
|
10732
10731
|
if (ws$1.pending_error) {
|
|
10733
10732
|
const $scope16_id = _scope_id();
|
|
10734
10733
|
icon_warning_default({
|
|
10735
10734
|
size: 12,
|
|
10736
|
-
class: "
|
|
10735
|
+
class: "_gH"
|
|
10737
10736
|
});
|
|
10738
10737
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10739
10738
|
return 0;
|
|
10740
10739
|
} else {
|
|
10741
10740
|
const $scope17_id = _scope_id();
|
|
10742
|
-
_html(`<span${_attr_class(["_G", "
|
|
10741
|
+
_html(`<span${_attr_class(["_G", "_gG"])}></span>`);
|
|
10743
10742
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10744
10743
|
return 1;
|
|
10745
10744
|
}
|
|
10746
10745
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10747
|
-
_html(`<span${_attr_class("
|
|
10746
|
+
_html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_gJ")}${_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>`);
|
|
10748
10747
|
_if(() => {
|
|
10749
10748
|
if (ws$1.pending_error && !retrying) {
|
|
10750
10749
|
const $scope15_id = _scope_id();
|
|
10751
|
-
_html(`<div${_attr_class("
|
|
10750
|
+
_html(`<div${_attr_class("_gI")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope15_id, "b")}<button type=button${_attr_class([
|
|
10752
10751
|
"_q",
|
|
10753
10752
|
btnSm,
|
|
10754
10753
|
{ ["_s"]: armedDelete }
|
|
@@ -10768,15 +10767,15 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10768
10767
|
const $scope4_id = _scope_id();
|
|
10769
10768
|
const sessions$1 = input.sessions || [];
|
|
10770
10769
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10771
|
-
_html(`<section${_attr_class(["
|
|
10772
|
-
["
|
|
10770
|
+
_html(`<section${_attr_class(["_gj", {
|
|
10771
|
+
["_gf"]: input.current,
|
|
10773
10772
|
["_bd"]: input.current,
|
|
10774
|
-
["
|
|
10775
|
-
["
|
|
10776
|
-
}])}><div${_attr_class("
|
|
10773
|
+
["_gk"]: input.railPop,
|
|
10774
|
+
["_gi"]: input.page
|
|
10775
|
+
}])}><div${_attr_class("_gl")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10777
10776
|
"_A",
|
|
10778
10777
|
phase[dot$1],
|
|
10779
|
-
"
|
|
10778
|
+
"_gx"
|
|
10780
10779
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10781
10780
|
_if(() => {
|
|
10782
10781
|
if (sessions$1.length === 1) {
|
|
@@ -10789,7 +10788,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10789
10788
|
icon_agent_default({
|
|
10790
10789
|
agent: activeAgent(sessions$1[0]),
|
|
10791
10790
|
size: 12,
|
|
10792
|
-
class: "
|
|
10791
|
+
class: "_gr"
|
|
10793
10792
|
});
|
|
10794
10793
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10795
10794
|
_: _scope_with_id($scope4_id),
|
|
@@ -10799,11 +10798,11 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10799
10798
|
}
|
|
10800
10799
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10801
10800
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10802
|
-
_html(`<span${_attr_class("
|
|
10801
|
+
_html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10803
10802
|
_if(() => {
|
|
10804
10803
|
if (input.page && metaText) {
|
|
10805
10804
|
const $scope19_id = _scope_id();
|
|
10806
|
-
_html(`<span${_attr_class("
|
|
10805
|
+
_html(`<span${_attr_class("_gw")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10807
10806
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10808
10807
|
return 0;
|
|
10809
10808
|
}
|
|
@@ -10812,7 +10811,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10812
10811
|
_if(() => {
|
|
10813
10812
|
if (!input.page) {
|
|
10814
10813
|
const $scope5_id = _scope_id();
|
|
10815
|
-
_html(`<div${_attr_class("
|
|
10814
|
+
_html(`<div${_attr_class("_gn")}>`);
|
|
10816
10815
|
_if(() => {
|
|
10817
10816
|
if (input.onArchive) {
|
|
10818
10817
|
const $scope6_id = _scope_id();
|
|
@@ -10877,7 +10876,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10877
10876
|
return 0;
|
|
10878
10877
|
}
|
|
10879
10878
|
}, $scope5_id, "d", $sg__input_onReview, $sg__input_onReview, $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10880
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10879
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gg"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10881
10880
|
icon_manage_default({ size: 12 });
|
|
10882
10881
|
_html(`</a>${_el_resume($scope5_id, "e", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10883
10882
|
_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, _subscribe($si__input_onArchive && $input_onArchive__closures, writeScope($scope5_id, {
|
|
@@ -10887,7 +10886,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10887
10886
|
return 0;
|
|
10888
10887
|
}
|
|
10889
10888
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10890
|
-
_html(`</div><div${_attr_class("
|
|
10889
|
+
_html(`</div><div${_attr_class("_gC")}>`);
|
|
10891
10890
|
_if(() => {
|
|
10892
10891
|
if (sessions$1.length === 1 && openPlan) {
|
|
10893
10892
|
const $scope12_id = _scope_id();
|
|
@@ -10895,7 +10894,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10895
10894
|
const $childScope3 = _peek_scope_id();
|
|
10896
10895
|
usage_pcts_default({
|
|
10897
10896
|
agent: openPlan,
|
|
10898
|
-
class: "
|
|
10897
|
+
class: "_gu"
|
|
10899
10898
|
});
|
|
10900
10899
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10901
10900
|
a: _existing_scope($childScope3),
|
|
@@ -10906,14 +10905,14 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10906
10905
|
}, $scope4_id, "l");
|
|
10907
10906
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10908
10907
|
const $scope9_id = _scope_id();
|
|
10909
|
-
_html(`<div${_attr_class(["
|
|
10908
|
+
_html(`<div${_attr_class(["_go", { ["_gf"]: s.id === input.currentTab }])}>`);
|
|
10910
10909
|
_if(() => {
|
|
10911
10910
|
if (renamingId === s.id) {
|
|
10912
10911
|
const $scope11_id = _scope_id();
|
|
10913
10912
|
_html(`<span${_attr_class([
|
|
10914
10913
|
"_A",
|
|
10915
10914
|
phase[sessionPhase(s.state)],
|
|
10916
|
-
"
|
|
10915
|
+
"_gA"
|
|
10917
10916
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10918
10917
|
_set_serialize_reason({
|
|
10919
10918
|
1: $sg__input_sessions,
|
|
@@ -10923,7 +10922,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10923
10922
|
icon_agent_default({
|
|
10924
10923
|
agent: activeAgent(s),
|
|
10925
10924
|
size: 12,
|
|
10926
|
-
class: "
|
|
10925
|
+
class: "_gE"
|
|
10927
10926
|
});
|
|
10928
10927
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10929
10928
|
renameValue = _new_renameValue;
|
|
@@ -10942,9 +10941,9 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10942
10941
|
icon_agent_default({
|
|
10943
10942
|
agent: activeAgent(s),
|
|
10944
10943
|
size: 12,
|
|
10945
|
-
class: "
|
|
10944
|
+
class: "_gE"
|
|
10946
10945
|
});
|
|
10947
|
-
_html(`<span${_attr_class("
|
|
10946
|
+
_html(`<span${_attr_class("_gy")}>${_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("_gz")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10948
10947
|
icon_edit_default({ size: 12 });
|
|
10949
10948
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10950
10949
|
icon_xmark_default({ size: 12 });
|
|
@@ -10956,7 +10955,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10956
10955
|
const $childScope6 = _peek_scope_id();
|
|
10957
10956
|
usage_pcts_default({
|
|
10958
10957
|
agent: openPlan,
|
|
10959
|
-
class: "
|
|
10958
|
+
class: "_gv"
|
|
10960
10959
|
});
|
|
10961
10960
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10962
10961
|
a: _existing_scope($childScope6),
|
|
@@ -11098,11 +11097,11 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11098
11097
|
const sessions = input.sessions || st?.sessions || [];
|
|
11099
11098
|
const manySessions = sessions.length > 1;
|
|
11100
11099
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11101
|
-
_html(`<div${_attr_class("
|
|
11100
|
+
_html(`<div${_attr_class("_eS")}>`);
|
|
11102
11101
|
_if(() => {
|
|
11103
11102
|
if (ws) {
|
|
11104
11103
|
const $scope1_id = _scope_id();
|
|
11105
|
-
_html(`<section${_attr_class("
|
|
11104
|
+
_html(`<section${_attr_class("_eT")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eU")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11106
11105
|
_if(() => {
|
|
11107
11106
|
if (sessions.length === 1) {
|
|
11108
11107
|
const $scope10_id = _scope_id();
|
|
@@ -11114,7 +11113,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11114
11113
|
icon_agent_default({
|
|
11115
11114
|
agent: activeAgent(sessions[0]),
|
|
11116
11115
|
size: 16,
|
|
11117
|
-
class: "
|
|
11116
|
+
class: "_eX"
|
|
11118
11117
|
});
|
|
11119
11118
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope10_id, {
|
|
11120
11119
|
_: _scope_with_id($scope1_id),
|
|
@@ -11123,14 +11122,14 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11123
11122
|
return 0;
|
|
11124
11123
|
}
|
|
11125
11124
|
}, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
|
|
11126
|
-
_html(`<span${_attr_class("
|
|
11125
|
+
_html(`<span${_attr_class("_eV")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_eW")}>${_text_resume($scope1_id, "h", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11127
11126
|
_if(() => {
|
|
11128
11127
|
if (manySessions) {
|
|
11129
11128
|
const $scope2_id = _scope_id();
|
|
11130
|
-
_html(`<div${_attr_class("
|
|
11129
|
+
_html(`<div${_attr_class("_eY")}>`);
|
|
11131
11130
|
_for_of(sessions, (s) => {
|
|
11132
11131
|
const $scope3_id = _scope_id();
|
|
11133
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11132
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_e0", { ["_eZ"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
|
|
11134
11133
|
_set_serialize_reason({
|
|
11135
11134
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11136
11135
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11140,7 +11139,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11140
11139
|
agent: activeAgent(s),
|
|
11141
11140
|
size: 14
|
|
11142
11141
|
});
|
|
11143
|
-
_html(`<span${_attr_class("
|
|
11142
|
+
_html(`<span${_attr_class("_e1")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 5))}`);
|
|
11144
11143
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
|
|
11145
11144
|
h: $si__input_tab && s?.id,
|
|
11146
11145
|
_: _scope_with_id($scope2_id),
|
|
@@ -11173,16 +11172,16 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11173
11172
|
const $scope5_id = _scope_id();
|
|
11174
11173
|
const $if_content3__done__closures = /* @__PURE__ */ new Set();
|
|
11175
11174
|
const done = i === 1;
|
|
11176
|
-
_html(`<section${_attr_class("
|
|
11175
|
+
_html(`<section${_attr_class("_e2")}>`);
|
|
11177
11176
|
_if(() => {
|
|
11178
11177
|
if (done) {
|
|
11179
11178
|
const $scope11_id = _scope_id();
|
|
11180
|
-
_html(`<h2${_attr_class(["
|
|
11179
|
+
_html(`<h2${_attr_class(["_cn", "_e3"])}>Done</h2>`);
|
|
11181
11180
|
$si__input_openIds__OR__input_doneIds && writeScope($scope11_id, {});
|
|
11182
11181
|
return 0;
|
|
11183
11182
|
}
|
|
11184
11183
|
}, $scope5_id, "b", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, 0, 1);
|
|
11185
|
-
_html(`<div${_attr_class("
|
|
11184
|
+
_html(`<div${_attr_class("_e4")}>`);
|
|
11186
11185
|
_for_of(ids, (id) => {
|
|
11187
11186
|
const $scope6_id = _scope_id();
|
|
11188
11187
|
const w = input.byId.get(id);
|
|
@@ -11233,7 +11232,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11233
11232
|
const rp = phaseOf(rs);
|
|
11234
11233
|
const rowSessions = rs?.sessions || [];
|
|
11235
11234
|
const many = rowSessions.length > 1;
|
|
11236
|
-
_html(`<div${_attr_class("
|
|
11235
|
+
_html(`<div${_attr_class("_e5")}><a${_attr("href", `/w/${id}`)}${_attr_class("_e6")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope8_id, "c", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds)}`);
|
|
11237
11236
|
_if(() => {
|
|
11238
11237
|
if (rowSessions.length === 1) {
|
|
11239
11238
|
const $scope12_id = _scope_id();
|
|
@@ -11245,7 +11244,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11245
11244
|
icon_agent_default({
|
|
11246
11245
|
agent: activeAgent(rowSessions[0]),
|
|
11247
11246
|
size: 16,
|
|
11248
|
-
class: "
|
|
11247
|
+
class: "_e8"
|
|
11249
11248
|
});
|
|
11250
11249
|
$si__input_allStatus__OR__input_openIds__OR__input_doneIds && writeScope($scope12_id, {
|
|
11251
11250
|
_: _scope_with_id($scope8_id),
|
|
@@ -11254,7 +11253,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11254
11253
|
return 0;
|
|
11255
11254
|
}
|
|
11256
11255
|
}, $scope8_id, "d", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds);
|
|
11257
|
-
_html(`<span${_attr_class("
|
|
11256
|
+
_html(`<span${_attr_class("_e7")}>${_text_resume($scope8_id, "f", w.name, $sg__input_openIds__OR__input_doneIds__OR__input_byId)}</span>`);
|
|
11258
11257
|
_if(() => {
|
|
11259
11258
|
if (many) {
|
|
11260
11259
|
const $scope13_id = _scope_id();
|
|
@@ -11276,7 +11275,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11276
11275
|
const $scope14_id = _scope_id();
|
|
11277
11276
|
icon_chevron_right_default({
|
|
11278
11277
|
size: 14,
|
|
11279
|
-
class: "
|
|
11278
|
+
class: "_e_"
|
|
11280
11279
|
});
|
|
11281
11280
|
$si__input_openIds__OR__input_doneIds && writeScope($scope14_id, {});
|
|
11282
11281
|
return 1;
|
|
@@ -11351,6 +11350,57 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11351
11350
|
});
|
|
11352
11351
|
});
|
|
11353
11352
|
//#endregion
|
|
11353
|
+
//#region src/tags/icons/icon-folder-plus.marko
|
|
11354
|
+
var icon_folder_plus_default = _template("db", (input) => {
|
|
11355
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
11356
|
+
const $scope0_id = _scope_id();
|
|
11357
|
+
_set_serialize_reason({
|
|
11358
|
+
0: $sg__input_size__OR__input_class,
|
|
11359
|
+
1: $sg__input_size__OR__input_class
|
|
11360
|
+
});
|
|
11361
|
+
const $childScope = _peek_scope_id();
|
|
11362
|
+
icon_base_default({
|
|
11363
|
+
d: "M18 6H20M22 6H20M20 6V4M20 6V8 M21.4 20H2.6C2.26863 20 2 19.7314 2 19.4V11H21.4C21.7314 11 22 11.2686 22 11.6V19.4C22 19.7314 21.7314 20 21.4 20Z M2 11V4.6C2 4.26863 2.26863 4 2.6 4H8.77805C8.92127 4 9.05977 4.05124 9.16852 4.14445L12.3315 6.85555C12.4402 6.94876 12.5787 7 12.722 7H14",
|
|
11364
|
+
size: input.size,
|
|
11365
|
+
class: input.class
|
|
11366
|
+
});
|
|
11367
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
11368
|
+
});
|
|
11369
|
+
//#endregion
|
|
11370
|
+
//#region src/tags/icons/icon-sidebar-collapse.marko
|
|
11371
|
+
var icon_sidebar_collapse_default = _template("ob", (input) => {
|
|
11372
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
11373
|
+
const $scope0_id = _scope_id();
|
|
11374
|
+
_set_serialize_reason({
|
|
11375
|
+
0: $sg__input_size__OR__input_class,
|
|
11376
|
+
1: $sg__input_size__OR__input_class
|
|
11377
|
+
});
|
|
11378
|
+
const $childScope = _peek_scope_id();
|
|
11379
|
+
icon_base_default({
|
|
11380
|
+
d: "M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M7.25 10L5.5 12L7.25 14 M9.5 21V3",
|
|
11381
|
+
size: input.size,
|
|
11382
|
+
class: input.class
|
|
11383
|
+
});
|
|
11384
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
11385
|
+
});
|
|
11386
|
+
//#endregion
|
|
11387
|
+
//#region src/tags/icons/icon-sidebar.marko
|
|
11388
|
+
var icon_sidebar_default = _template("pb", (input) => {
|
|
11389
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
11390
|
+
const $scope0_id = _scope_id();
|
|
11391
|
+
_set_serialize_reason({
|
|
11392
|
+
0: $sg__input_size__OR__input_class,
|
|
11393
|
+
1: $sg__input_size__OR__input_class
|
|
11394
|
+
});
|
|
11395
|
+
const $childScope = _peek_scope_id();
|
|
11396
|
+
icon_base_default({
|
|
11397
|
+
d: "M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M9.5 21V3 M5.5 10L7.25 12L5.5 14",
|
|
11398
|
+
size: input.size,
|
|
11399
|
+
class: input.class
|
|
11400
|
+
});
|
|
11401
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
11402
|
+
});
|
|
11403
|
+
//#endregion
|
|
11354
11404
|
//#region src/tags/side-nav.marko
|
|
11355
11405
|
var api$7;
|
|
11356
11406
|
var GROUP_ORDER = ["open", "done"];
|
|
@@ -11390,7 +11440,7 @@ function groupIdsOf(ids, byId, allStatus) {
|
|
|
11390
11440
|
};
|
|
11391
11441
|
}
|
|
11392
11442
|
var side_nav_default = _template("B", (input) => {
|
|
11393
|
-
const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 18), $sg__input_setupReady = _serialize_guard($scope0_reason, 19), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 17), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_if($scope0_reason, 4), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 7), $sg__input_workspace__OR__input_onError__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 6), $si__input_workspace = _serialize_if($scope0_reason, 10), $
|
|
11443
|
+
const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 18), $sg__input_setupReady = _serialize_guard($scope0_reason, 19), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 17), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_if($scope0_reason, 4), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 7), $sg__input_workspace__OR__input_onError__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 6), $si__input_workspace = _serialize_if($scope0_reason, 10), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 16), $sg__input_agents = _serialize_guard($scope0_reason, 21), $si__input_sessions = _serialize_if($scope0_reason, 20), $si__input_agents = _serialize_if($scope0_reason, 21), $si__input_onNewSession = _serialize_if($scope0_reason, 22), $si__input_onReviewOpened = _serialize_if($scope0_reason, 23), $si__input_onReviewOther = _serialize_if($scope0_reason, 24), $si__input_onRenameSession = _serialize_if($scope0_reason, 25), $si__input_onCloseSession = _serialize_if($scope0_reason, 26), $si__input_tab__OR__input_tabChange = _serialize_if($scope0_reason, 2), $si__input_onError = _serialize_if($scope0_reason, 15), $si__input_setupReady = _serialize_if($scope0_reason, 19), $si__input_instanceName = _serialize_if($scope0_reason, 18), $si__input_instanceAccent = _serialize_if($scope0_reason, 17);
|
|
11394
11444
|
const $scope0_id = _scope_id();
|
|
11395
11445
|
const $input_instanceName__closures = /* @__PURE__ */ new Set();
|
|
11396
11446
|
const $iconSrc__closures = /* @__PURE__ */ new Set();
|
|
@@ -11411,6 +11461,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11411
11461
|
const $allStatus__closures = /* @__PURE__ */ new Set();
|
|
11412
11462
|
const $grouped_done__closures = /* @__PURE__ */ new Set();
|
|
11413
11463
|
const $archive2__closures = /* @__PURE__ */ new Set();
|
|
11464
|
+
const $keyIndex__closures = /* @__PURE__ */ new Set();
|
|
11414
11465
|
const ws = input.workspace || null;
|
|
11415
11466
|
let tab = input.tab;
|
|
11416
11467
|
let view = input.view;
|
|
@@ -11439,7 +11490,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11439
11490
|
const byId = new Map(workspaces.map((w) => [w.id, w]));
|
|
11440
11491
|
const allStatus = input.allStatus || {};
|
|
11441
11492
|
const grouped = groupIdsOf(itemIds, byId, allStatus);
|
|
11442
|
-
(() => {
|
|
11493
|
+
const keyIndex = (() => {
|
|
11443
11494
|
const m = /* @__PURE__ */ new Map();
|
|
11444
11495
|
let n = 0;
|
|
11445
11496
|
for (const id of grouped.ids) if (!byId.get(id)?.pending) m.set(id, n++);
|
|
@@ -11461,35 +11512,35 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11461
11512
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11462
11513
|
const pageOpen = grouped.ids.filter((id) => id !== ws?.id && !grouped.done.has(id));
|
|
11463
11514
|
const pageDone = grouped.ids.filter((id) => id !== ws?.id && grouped.done.has(id));
|
|
11464
|
-
_html(`<aside${_attr_class(["
|
|
11465
|
-
["
|
|
11466
|
-
["
|
|
11515
|
+
_html(`<aside${_attr_class(["_bR", {
|
|
11516
|
+
["_bP"]: !navOpen,
|
|
11517
|
+
["_bQ"]: isPage
|
|
11467
11518
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11468
11519
|
_if(() => {
|
|
11469
11520
|
if (isPage) {
|
|
11470
11521
|
const $scope1_id = _scope_id();
|
|
11471
|
-
_html(`<header${_attr_class("
|
|
11522
|
+
_html(`<header${_attr_class("_bU")}><div${_attr_class("_b3")}>`);
|
|
11472
11523
|
_if(() => {
|
|
11473
11524
|
if (input.instanceName) {
|
|
11474
11525
|
const $scope2_id = _scope_id();
|
|
11475
|
-
_html(`<div${_attr_class("
|
|
11526
|
+
_html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11476
11527
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11477
11528
|
return 0;
|
|
11478
11529
|
}
|
|
11479
11530
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11480
|
-
_html(`<h1${_attr_class("
|
|
11531
|
+
_html(`<h1${_attr_class("_bV")}>Workspaces</h1></div><div${_attr_class("_bW")}>`);
|
|
11481
11532
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11482
11533
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11483
11534
|
iconBtn,
|
|
11484
|
-
"
|
|
11485
|
-
{ ["
|
|
11535
|
+
"_bX",
|
|
11536
|
+
{ ["_bM"]: view === "settings" }
|
|
11486
11537
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11487
11538
|
icon_settings_default({ size: 16 });
|
|
11488
11539
|
_if(() => {
|
|
11489
11540
|
if (input.setupReady === false) {
|
|
11490
|
-
const $
|
|
11541
|
+
const $scope15_id = _scope_id();
|
|
11491
11542
|
_html(`<span${_attr_class(["_A", settingsDot])} title="Machine setup incomplete"></span>`);
|
|
11492
|
-
|
|
11543
|
+
$si__input_setupReady && writeScope($scope15_id, {});
|
|
11493
11544
|
return 0;
|
|
11494
11545
|
}
|
|
11495
11546
|
}, $scope1_id, "i", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
@@ -11501,7 +11552,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11501
11552
|
_if(() => {
|
|
11502
11553
|
if (!isPage && input.instanceName) {
|
|
11503
11554
|
const $scope3_id = _scope_id();
|
|
11504
|
-
_html(`<div${_attr_class("
|
|
11555
|
+
_html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11505
11556
|
writeScope($scope3_id, {});
|
|
11506
11557
|
return 0;
|
|
11507
11558
|
}
|
|
@@ -11542,16 +11593,16 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11542
11593
|
return 0;
|
|
11543
11594
|
} else if (navOpen) {
|
|
11544
11595
|
const $scope5_id = _scope_id();
|
|
11545
|
-
_html(`<div${_attr_class("
|
|
11596
|
+
_html(`<div${_attr_class("_b4")}>`);
|
|
11546
11597
|
_for_of(grouped.ids, (wsId) => {
|
|
11547
11598
|
const $scope6_id = _scope_id();
|
|
11548
11599
|
_if(() => {
|
|
11549
11600
|
if (grouped.start.has(wsId) && GROUP_LABEL[grouped.start.get(wsId)]) {
|
|
11550
|
-
const $
|
|
11551
|
-
_html(`<h2${_attr_class(["
|
|
11552
|
-
_subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures, writeScope($
|
|
11601
|
+
const $scope14_id = _scope_id();
|
|
11602
|
+
_html(`<h2${_attr_class(["_cn", "_bY"])}>${_text_resume($scope14_id, "b", GROUP_LABEL[grouped.start.get(wsId)], $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus)}</h2>`);
|
|
11603
|
+
_subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures, writeScope($scope14_id, {
|
|
11553
11604
|
_: _scope_with_id($scope6_id),
|
|
11554
|
-
|
|
11605
|
+
Cbm: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && 1
|
|
11555
11606
|
}));
|
|
11556
11607
|
return 0;
|
|
11557
11608
|
}
|
|
@@ -11586,7 +11637,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11586
11637
|
27: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11587
11638
|
30: $sg__input_workspace__OR__input_onError__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11588
11639
|
31: 1,
|
|
11589
|
-
32:
|
|
11640
|
+
32: $sg__input_agents,
|
|
11590
11641
|
33: 1,
|
|
11591
11642
|
34: 1
|
|
11592
11643
|
});
|
|
@@ -11631,68 +11682,291 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11631
11682
|
return 1;
|
|
11632
11683
|
}
|
|
11633
11684
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
11685
|
+
_if(() => {
|
|
11686
|
+
if (!navOpen) {
|
|
11687
|
+
const $scope7_id = _scope_id();
|
|
11688
|
+
let railHover = null;
|
|
11689
|
+
const railHoverBox = { timer: 0 };
|
|
11690
|
+
const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "B7", $scope7_id);
|
|
11691
|
+
const railHide = _resume(() => {
|
|
11692
|
+
clearTimeout(railHoverBox.timer);
|
|
11693
|
+
railHoverBox.timer = setTimeout(() => {
|
|
11694
|
+
railHover = null;
|
|
11695
|
+
}, 150);
|
|
11696
|
+
}, "B8", $scope7_id);
|
|
11697
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11698
|
+
_for_of(grouped.ids, (wsId, i) => {
|
|
11699
|
+
const $scope8_id = _scope_id();
|
|
11700
|
+
_html("<span>");
|
|
11701
|
+
_set_serialize_reason({
|
|
11702
|
+
0: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11703
|
+
1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11704
|
+
2: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11705
|
+
3: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11706
|
+
4: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11707
|
+
5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11708
|
+
6: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11709
|
+
7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11710
|
+
8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11711
|
+
9: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11712
|
+
11: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11713
|
+
12: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11714
|
+
13: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11715
|
+
14: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11716
|
+
15: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11717
|
+
16: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11718
|
+
17: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11719
|
+
18: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11720
|
+
19: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11721
|
+
20: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11722
|
+
21: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11723
|
+
25: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11724
|
+
26: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11725
|
+
27: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11726
|
+
28: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus
|
|
11727
|
+
});
|
|
11728
|
+
const $childScope3 = _peek_scope_id();
|
|
11729
|
+
side_nav_item_default({
|
|
11730
|
+
rail: true,
|
|
11731
|
+
index: keyIndex.get(wsId),
|
|
11732
|
+
workspaceId: wsId,
|
|
11733
|
+
workspace: byId.get(wsId),
|
|
11734
|
+
status: allStatus[wsId],
|
|
11735
|
+
current: wsId === ws?.id,
|
|
11736
|
+
onSelect: _resume(function() {
|
|
11737
|
+
if (wsId !== ws?.id) input.onSelectWorkspace?.(wsId);
|
|
11738
|
+
else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
|
|
11739
|
+
}, "B9", $scope8_id)
|
|
11740
|
+
});
|
|
11741
|
+
_html(`</span>${_el_resume($scope8_id, "a")}`);
|
|
11742
|
+
_script($scope8_id, "B15");
|
|
11743
|
+
_subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $keyIndex__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope8_id, {
|
|
11744
|
+
d: wsId,
|
|
11745
|
+
_: _scope_with_id($scope7_id),
|
|
11746
|
+
b: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && _existing_scope($childScope3),
|
|
11747
|
+
Cbb: $si__input_workspace && 1,
|
|
11748
|
+
Cbi: $si__input_workspace__OR__input_allWorkspaces && 1,
|
|
11749
|
+
Cbj: $si__input_allStatus && 1
|
|
11750
|
+
})))));
|
|
11751
|
+
}, (id) => id, $scope7_id, "a", $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, "</div>", 1);
|
|
11752
|
+
_if(() => {
|
|
11753
|
+
if (railHover) {
|
|
11754
|
+
const $scope9_id = _scope_id();
|
|
11755
|
+
const hoverId = railHover.id;
|
|
11756
|
+
_html(`<div${_attr_class(["__", "_b8"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11757
|
+
_set_serialize_reason({
|
|
11758
|
+
0: 1,
|
|
11759
|
+
1: 1,
|
|
11760
|
+
2: 1,
|
|
11761
|
+
3: 1,
|
|
11762
|
+
4: 1,
|
|
11763
|
+
5: 1,
|
|
11764
|
+
6: 1,
|
|
11765
|
+
7: 1,
|
|
11766
|
+
8: 1,
|
|
11767
|
+
9: 1,
|
|
11768
|
+
10: 1,
|
|
11769
|
+
11: 1,
|
|
11770
|
+
12: 1,
|
|
11771
|
+
13: 1,
|
|
11772
|
+
14: 1,
|
|
11773
|
+
15: 1,
|
|
11774
|
+
16: 1,
|
|
11775
|
+
17: 1,
|
|
11776
|
+
18: 1,
|
|
11777
|
+
19: 1,
|
|
11778
|
+
20: 1,
|
|
11779
|
+
21: 1,
|
|
11780
|
+
23: 1,
|
|
11781
|
+
24: 1,
|
|
11782
|
+
25: 1,
|
|
11783
|
+
26: 1,
|
|
11784
|
+
27: 1,
|
|
11785
|
+
30: 1,
|
|
11786
|
+
31: 1,
|
|
11787
|
+
32: $sg__input_agents,
|
|
11788
|
+
33: 1,
|
|
11789
|
+
34: 1
|
|
11790
|
+
});
|
|
11791
|
+
const $childScope4 = _peek_scope_id();
|
|
11792
|
+
side_nav_item_default({
|
|
11793
|
+
workspaceId: hoverId,
|
|
11794
|
+
workspace: byId.get(hoverId),
|
|
11795
|
+
status: allStatus[hoverId],
|
|
11796
|
+
current: hoverId === ws?.id,
|
|
11797
|
+
managing: view === "manage" && hoverId === ws?.id,
|
|
11798
|
+
railPop: true,
|
|
11799
|
+
onArchive: grouped.done.has(hoverId) && _resume(() => archive(hoverId), "B10", $scope9_id),
|
|
11800
|
+
onSelect: _resume(function() {
|
|
11801
|
+
railHover = null;
|
|
11802
|
+
if (hoverId !== ws?.id) input.onSelectWorkspace?.(hoverId);
|
|
11803
|
+
else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
|
|
11804
|
+
}, "B11", $scope9_id),
|
|
11805
|
+
agents: input.agents,
|
|
11806
|
+
onNewSession: _resume(function(agent) {
|
|
11807
|
+
railHover = null;
|
|
11808
|
+
input.onNewSession(hoverId, agent);
|
|
11809
|
+
}, "B12", $scope9_id),
|
|
11810
|
+
onReview: _resume(function() {
|
|
11811
|
+
railHover = null;
|
|
11812
|
+
if (hoverId === ws?.id) {
|
|
11813
|
+
if (view === "diff") view = "term";
|
|
11814
|
+
else input.onReviewOpened?.();
|
|
11815
|
+
} else input.onReviewOther?.(hoverId);
|
|
11816
|
+
}, "B13", $scope9_id),
|
|
11817
|
+
sessions: hoverId === ws?.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
|
|
11818
|
+
currentTab: hoverId === ws?.id && view === "term" ? tab : null,
|
|
11819
|
+
onRenameSession: input.onRenameSession,
|
|
11820
|
+
onCloseSession: input.onCloseSession
|
|
11821
|
+
});
|
|
11822
|
+
_html(`</div>${_el_resume($scope9_id, "a")}`);
|
|
11823
|
+
_script($scope9_id, "B16");
|
|
11824
|
+
_subscribe($si__input_onError && $archive2__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_done__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope9_id, {
|
|
11825
|
+
d: hoverId,
|
|
11826
|
+
b: _existing_scope($childScope4),
|
|
11827
|
+
Cb3: $si__input_sessions && 1,
|
|
11828
|
+
Cb4: $si__input_agents && 1,
|
|
11829
|
+
Cb5: $si__input_onNewSession && 1,
|
|
11830
|
+
Cb6: $si__input_onReviewOpened && 1,
|
|
11831
|
+
Cb7: $si__input_onReviewOther && 1,
|
|
11832
|
+
Cb8: $si__input_onRenameSession && 1,
|
|
11833
|
+
Cb9: $si__input_onCloseSession && 1,
|
|
11834
|
+
Cbb: $si__input_workspace && 2,
|
|
11835
|
+
Cbc: $si__input_tab__OR__input_tabChange && 1,
|
|
11836
|
+
Cbd: 1,
|
|
11837
|
+
Cbi: $si__input_workspace__OR__input_allWorkspaces && 2,
|
|
11838
|
+
Cbj: $si__input_allStatus && 2,
|
|
11839
|
+
Cbl: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && 1,
|
|
11840
|
+
Cbo: $si__input_onError && 1
|
|
11841
|
+
})))))))))))))));
|
|
11842
|
+
return 0;
|
|
11843
|
+
}
|
|
11844
|
+
}, $scope7_id, "b", 1, 1, 1, 0, 1);
|
|
11845
|
+
writeScope($scope7_id, {
|
|
11846
|
+
d: railHover?.id,
|
|
11847
|
+
e: railHover?.top,
|
|
11848
|
+
f: railHover?.left,
|
|
11849
|
+
h: railHoverBox.timer,
|
|
11850
|
+
i: railKeep,
|
|
11851
|
+
j: railHide
|
|
11852
|
+
});
|
|
11853
|
+
return 0;
|
|
11854
|
+
}
|
|
11855
|
+
}, $scope0_id, "e");
|
|
11856
|
+
_html(`<div${_attr_class("_b6")}>`);
|
|
11857
|
+
_if(() => {
|
|
11858
|
+
if (isPage) {
|
|
11859
|
+
const $scope11_id = _scope_id();
|
|
11860
|
+
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
11861
|
+
"_q",
|
|
11862
|
+
"_r",
|
|
11863
|
+
btnLg,
|
|
11864
|
+
"_bZ"
|
|
11865
|
+
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11866
|
+
icon_folder_plus_default({ size: 16 });
|
|
11867
|
+
_html(` New workspace</a>${_el_resume($scope11_id, "a")}`);
|
|
11868
|
+
writeScope($scope11_id, {});
|
|
11869
|
+
return 0;
|
|
11870
|
+
} else {
|
|
11871
|
+
const $scope10_id = _scope_id();
|
|
11872
|
+
_html(`<button${_attr_class(navToggle)} title=${navOpen ? "\"Collapse sidebar\"" : "\"Expand sidebar\""}>`);
|
|
11873
|
+
_if(() => {
|
|
11874
|
+
if (navOpen) {
|
|
11875
|
+
const $scope16_id = _scope_id();
|
|
11876
|
+
icon_sidebar_collapse_default({});
|
|
11877
|
+
writeScope($scope16_id, {});
|
|
11878
|
+
return 0;
|
|
11879
|
+
} else {
|
|
11880
|
+
const $scope17_id = _scope_id();
|
|
11881
|
+
icon_sidebar_default({});
|
|
11882
|
+
writeScope($scope17_id, {});
|
|
11883
|
+
return 1;
|
|
11884
|
+
}
|
|
11885
|
+
}, $scope10_id, "a", 1, 1, 1, "</button>", 1);
|
|
11886
|
+
_html(`<div${_attr_class(["_z", "_b7"])}></div>`);
|
|
11887
|
+
_if(() => {}, $scope10_id, "c", 1, 1, 1, 0, 1);
|
|
11888
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bM"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11889
|
+
icon_settings_default({});
|
|
11890
|
+
_if(() => {
|
|
11891
|
+
if (input.setupReady === false) {
|
|
11892
|
+
const $scope18_id = _scope_id();
|
|
11893
|
+
_html(`<span${_attr_class(["_A", settingsDot])} title="Machine setup incomplete"></span>`);
|
|
11894
|
+
$si__input_setupReady && writeScope($scope18_id, {});
|
|
11895
|
+
return 0;
|
|
11896
|
+
}
|
|
11897
|
+
}, $scope10_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11898
|
+
_html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bM"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11899
|
+
icon_folder_plus_default({ size: 16 });
|
|
11900
|
+
_html(`</a>${_el_resume($scope10_id, "g")}`);
|
|
11901
|
+
_script($scope10_id, "B18");
|
|
11902
|
+
writeScope($scope10_id, {});
|
|
11903
|
+
return 1;
|
|
11904
|
+
}
|
|
11905
|
+
}, $scope0_id, "f", 1, 1, 1, "</div>");
|
|
11634
11906
|
_html(`</aside>${_el_resume($scope0_id, "a")}`);
|
|
11635
|
-
_script($scope0_id, "
|
|
11636
|
-
_script($scope0_id, "
|
|
11907
|
+
_script($scope0_id, "B19");
|
|
11908
|
+
_script($scope0_id, "B20");
|
|
11637
11909
|
writeScope($scope0_id, {
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
au:
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
|
|
11680
|
-
|
|
11681
|
-
|
|
11682
|
-
|
|
11683
|
-
|
|
11684
|
-
|
|
11685
|
-
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
bd: $
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11910
|
+
j: _serialize_if($scope0_reason, 12) && input.tab,
|
|
11911
|
+
k: _serialize_if($scope0_reason, 11) && input.tabChange,
|
|
11912
|
+
m: _serialize_if($scope0_reason, 14) && input.view,
|
|
11913
|
+
n: _serialize_if($scope0_reason, 13) && input.viewChange,
|
|
11914
|
+
p: input.onError,
|
|
11915
|
+
q: input.active,
|
|
11916
|
+
r: $si__input_workspace && input.allWorkspaces,
|
|
11917
|
+
u: input.instanceName,
|
|
11918
|
+
v: input.setupReady,
|
|
11919
|
+
w: input.sessions,
|
|
11920
|
+
x: input.onSelectWorkspace,
|
|
11921
|
+
y: input.agents,
|
|
11922
|
+
z: input.onNewSession,
|
|
11923
|
+
a0: input.onReviewOpened,
|
|
11924
|
+
a1: input.onReviewOther,
|
|
11925
|
+
a2: input.onRenameSession,
|
|
11926
|
+
a3: input.onCloseSession,
|
|
11927
|
+
a4: ws,
|
|
11928
|
+
a6: ws?.id,
|
|
11929
|
+
a7: tab,
|
|
11930
|
+
a9: view,
|
|
11931
|
+
ab: navOpen,
|
|
11932
|
+
ac: notifyOn,
|
|
11933
|
+
ae: canPush,
|
|
11934
|
+
af: leaveNav,
|
|
11935
|
+
ag: toggleNotify,
|
|
11936
|
+
ah: $si__input_allStatus && itemIds,
|
|
11937
|
+
aj: byId,
|
|
11938
|
+
ak: allStatus,
|
|
11939
|
+
an: grouped?.ids,
|
|
11940
|
+
ap: grouped?.done,
|
|
11941
|
+
ar: grouped?.start,
|
|
11942
|
+
as: keyIndex,
|
|
11943
|
+
at: archive,
|
|
11944
|
+
au: isPage,
|
|
11945
|
+
ax: backHref,
|
|
11946
|
+
ay: iconSrc,
|
|
11947
|
+
az: pageOpen,
|
|
11948
|
+
b0: pageDone,
|
|
11949
|
+
aa: input.viewChange || void 0,
|
|
11950
|
+
b1: $si__input_instanceName && $input_instanceName__closures,
|
|
11951
|
+
bq: $si__input_instanceAccent && $iconSrc__closures,
|
|
11952
|
+
bf: $notifyOn__closures,
|
|
11953
|
+
bm: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures,
|
|
11954
|
+
b3: $si__input_sessions && $input_sessions__closures,
|
|
11955
|
+
b4: $si__input_agents && $input_agents__closures,
|
|
11956
|
+
b5: $si__input_onNewSession && $input_onNewSession__closures,
|
|
11957
|
+
b6: $si__input_onReviewOpened && $input_onReviewOpened__closures,
|
|
11958
|
+
b7: $si__input_onReviewOther && $input_onReviewOther__closures,
|
|
11959
|
+
b8: $si__input_onRenameSession && $input_onRenameSession__closures,
|
|
11960
|
+
b9: $si__input_onCloseSession && $input_onCloseSession__closures,
|
|
11961
|
+
bb: $si__input_workspace && $ws_id__closures,
|
|
11962
|
+
bc: $si__input_tab__OR__input_tabChange && $tab__closures,
|
|
11963
|
+
bd: $view__closures,
|
|
11964
|
+
bh: $leaveNav2__closures,
|
|
11965
|
+
bi: $si__input_workspace__OR__input_allWorkspaces && $byId__closures,
|
|
11966
|
+
bj: $si__input_allStatus && $allStatus__closures,
|
|
11967
|
+
bl: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_done__closures,
|
|
11968
|
+
bo: $si__input_onError && $archive2__closures,
|
|
11969
|
+
bn: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $keyIndex__closures
|
|
11696
11970
|
});
|
|
11697
11971
|
_resume_branch($scope0_id);
|
|
11698
11972
|
});
|
|
@@ -11964,8 +12238,8 @@ function treeDirs(files) {
|
|
|
11964
12238
|
};
|
|
11965
12239
|
return build(root, "", "", -1);
|
|
11966
12240
|
}
|
|
11967
|
-
var treeToggle = "
|
|
11968
|
-
var pageTitle = "
|
|
12241
|
+
var treeToggle = "_fT _5 _l";
|
|
12242
|
+
var pageTitle = "_f0 _ec";
|
|
11969
12243
|
//#endregion
|
|
11970
12244
|
//#region src/tags/diff-send.marko
|
|
11971
12245
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -11975,7 +12249,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11975
12249
|
let sendTarget = null;
|
|
11976
12250
|
const sessions = input.sessions || [];
|
|
11977
12251
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
11978
|
-
_html(`<span${_attr_class("
|
|
12252
|
+
_html(`<span${_attr_class("_hv")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
11979
12253
|
_if(() => {
|
|
11980
12254
|
if (sessions.length === 1) {
|
|
11981
12255
|
const $scope1_id = _scope_id();
|
|
@@ -11985,11 +12259,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11985
12259
|
return 0;
|
|
11986
12260
|
} else if (sessions.length) {
|
|
11987
12261
|
const $scope2_id = _scope_id();
|
|
11988
|
-
_html(`<span${_attr_class("
|
|
12262
|
+
_html(`<span${_attr_class("_hw")}><button type=button${_attr_class(["_r", "_hx"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
11989
12263
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
11990
12264
|
sendTarget = _new_sendTarget;
|
|
11991
12265
|
}, "j0", $scope2_id), () => {
|
|
11992
|
-
_html(`<select${_attr_class("
|
|
12266
|
+
_html(`<select${_attr_class("_hy")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
11993
12267
|
_for_of(sessions, (s) => {
|
|
11994
12268
|
const $scope3_id = _scope_id();
|
|
11995
12269
|
_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)}`);
|
|
@@ -12017,23 +12291,6 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12017
12291
|
_resume_branch($scope0_id);
|
|
12018
12292
|
});
|
|
12019
12293
|
//#endregion
|
|
12020
|
-
//#region src/tags/icons/icon-sidebar.marko
|
|
12021
|
-
var icon_sidebar_default = _template("pb", (input) => {
|
|
12022
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
12023
|
-
const $scope0_id = _scope_id();
|
|
12024
|
-
_set_serialize_reason({
|
|
12025
|
-
0: $sg__input_size__OR__input_class,
|
|
12026
|
-
1: $sg__input_size__OR__input_class
|
|
12027
|
-
});
|
|
12028
|
-
const $childScope = _peek_scope_id();
|
|
12029
|
-
icon_base_default({
|
|
12030
|
-
d: "M19 21L5 21C3.89543 21 3 20.1046 3 19L3 5C3 3.89543 3.89543 3 5 3L19 3C20.1046 3 21 3.89543 21 5L21 19C21 20.1046 20.1046 21 19 21Z M9.5 21V3 M5.5 10L7.25 12L5.5 14",
|
|
12031
|
-
size: input.size,
|
|
12032
|
-
class: input.class
|
|
12033
|
-
});
|
|
12034
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
12035
|
-
});
|
|
12036
|
-
//#endregion
|
|
12037
12294
|
//#region node_modules/.pnpm/@pierre+diffs@1.3.6_@shikijs+themes@4.4.3_react-dom@19.2.8_react@19.2.8__react@19.2.8/node_modules/@pierre/diffs/dist/constants.js
|
|
12038
12295
|
var GIT_DIFF_FILE_BREAK_REGEX = /(?=^diff --git)/gm;
|
|
12039
12296
|
var FILENAME_HEADER_REGEX = /^(---|\+\+\+)\s+([^\t\r\n]+)/;
|
|
@@ -13518,8 +13775,8 @@ function clip(line, at, len) {
|
|
|
13518
13775
|
const end = Math.min(line.length, at + len + pad);
|
|
13519
13776
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13520
13777
|
}
|
|
13521
|
-
var findInput = "
|
|
13522
|
-
var findIconBtn = "
|
|
13778
|
+
var findInput = "_ei _n";
|
|
13779
|
+
var findIconBtn = "_el _l";
|
|
13523
13780
|
//#endregion
|
|
13524
13781
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13525
13782
|
var icon_arrow_down_default = _template("N", (input) => {
|
|
@@ -13607,9 +13864,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13607
13864
|
el.select();
|
|
13608
13865
|
}, 0);
|
|
13609
13866
|
}, "i0", $scope0_id);
|
|
13610
|
-
_html(`<div${_attr_class(["
|
|
13867
|
+
_html(`<div${_attr_class(["_eh", !open && "_eg"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13611
13868
|
type(v);
|
|
13612
|
-
}, "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("
|
|
13869
|
+
}, "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("_ek")}>${_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"}>`);
|
|
13613
13870
|
icon_arrow_up_default({ size: 14 });
|
|
13614
13871
|
_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"}>`);
|
|
13615
13872
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13711,9 +13968,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13711
13968
|
}
|
|
13712
13969
|
return shortHeadFallback(head);
|
|
13713
13970
|
}
|
|
13714
|
-
var repoWorktree = "
|
|
13715
|
-
var repoTitle = "
|
|
13716
|
-
var path$1 = "
|
|
13971
|
+
var repoWorktree = "_iV _y";
|
|
13972
|
+
var repoTitle = "_i1 _x";
|
|
13973
|
+
var path$1 = "_jh _bb";
|
|
13717
13974
|
//#endregion
|
|
13718
13975
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13719
13976
|
var icon_chevron_down_default = _template("W", (input) => {
|
|
@@ -13753,7 +14010,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
13753
14010
|
_scope_reason();
|
|
13754
14011
|
const $scope0_id = _scope_id();
|
|
13755
14012
|
_el($scope0_id, "h0");
|
|
13756
|
-
_html(`<div${_attr_class(["
|
|
14013
|
+
_html(`<div${_attr_class(["_jj", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
13757
14014
|
_script($scope0_id, "h1");
|
|
13758
14015
|
writeScope($scope0_id, {
|
|
13759
14016
|
e: input.file,
|
|
@@ -13812,14 +14069,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
13812
14069
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
13813
14070
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13814
14071
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
13815
|
-
_html(`<section${_attr_class("
|
|
14072
|
+
_html(`<section${_attr_class("_iR")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iS", { ["_iT"]: input.collapsible && input.collapsed }])}>`);
|
|
13816
14073
|
_if(() => {
|
|
13817
14074
|
if (input.collapsible) {
|
|
13818
14075
|
const $scope1_id = _scope_id();
|
|
13819
|
-
_html(`<button type=button${_attr_class("
|
|
13820
|
-
"
|
|
13821
|
-
!input.collapsed && "
|
|
13822
|
-
input.expanding && "
|
|
14076
|
+
_html(`<button type=button${_attr_class("_iU")} 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([
|
|
14077
|
+
"_je",
|
|
14078
|
+
!input.collapsed && "_jf",
|
|
14079
|
+
input.expanding && "_jg"
|
|
13823
14080
|
])} aria-hidden=true>`);
|
|
13824
14081
|
_if(() => {
|
|
13825
14082
|
if (input.collapsed) {
|
|
@@ -13858,14 +14115,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
13858
14115
|
return 1;
|
|
13859
14116
|
}
|
|
13860
14117
|
}, $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);
|
|
13861
|
-
_html(`<span${_attr_class("
|
|
14118
|
+
_html(`<span${_attr_class("_i2")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_i3"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i5"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i4"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13862
14119
|
_if(() => {
|
|
13863
14120
|
if (compare$1.topic) {
|
|
13864
14121
|
const $scope15_id = _scope_id();
|
|
13865
14122
|
_html(`<span${_attr_class([
|
|
13866
14123
|
"_N",
|
|
13867
14124
|
tone.accent,
|
|
13868
|
-
"
|
|
14125
|
+
"_i6"
|
|
13869
14126
|
])}>${_text_resume($scope15_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13870
14127
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
13871
14128
|
return 0;
|
|
@@ -13878,7 +14135,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
13878
14135
|
_html(`<button type=button${_attr_class([
|
|
13879
14136
|
"_N",
|
|
13880
14137
|
tone.warn,
|
|
13881
|
-
"
|
|
14138
|
+
"_i7"
|
|
13882
14139
|
])}${_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")}`);
|
|
13883
14140
|
_script($scope2_id, "x10");
|
|
13884
14141
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13888,7 +14145,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
13888
14145
|
_if(() => {
|
|
13889
14146
|
if (repo.contained && input.files.length) {
|
|
13890
14147
|
const $scope13_id = _scope_id();
|
|
13891
|
-
_html(`<span${_attr_class(["_N", "
|
|
14148
|
+
_html(`<span${_attr_class(["_N", "_i7"])}${_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)}`);
|
|
13892
14149
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13893
14150
|
return 0;
|
|
13894
14151
|
}
|
|
@@ -13896,16 +14153,16 @@ var review_section_default = _template("x", (input) => {
|
|
|
13896
14153
|
_if(() => {
|
|
13897
14154
|
if (input.localDiffers) {
|
|
13898
14155
|
const $scope3_id = _scope_id();
|
|
13899
|
-
_html(`<span${_attr_class(["_N", "
|
|
14156
|
+
_html(`<span${_attr_class(["_N", "_i7"])}${_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)}`);
|
|
13900
14157
|
$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) });
|
|
13901
14158
|
return 0;
|
|
13902
14159
|
}
|
|
13903
14160
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 39), $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);
|
|
13904
|
-
_html(`<span${_attr_class("
|
|
14161
|
+
_html(`<span${_attr_class("_iW")}><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>`);
|
|
13905
14162
|
_if(() => {
|
|
13906
14163
|
if (stats.additions || stats.deletions) {
|
|
13907
14164
|
const $scope14_id = _scope_id();
|
|
13908
|
-
_html(`<span${_attr_class("
|
|
14165
|
+
_html(`<span${_attr_class("_iX")}>+${_text_resume($scope14_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iY")}>−${_text_resume($scope14_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
13909
14166
|
$si__input_files__OR__input_shownKeys && writeScope($scope14_id, { _: _scope_with_id($scope0_id) });
|
|
13910
14167
|
return 0;
|
|
13911
14168
|
}
|
|
@@ -13913,7 +14170,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
13913
14170
|
_if(() => {
|
|
13914
14171
|
if (newCount || input.onlyNew) {
|
|
13915
14172
|
const $scope4_id = _scope_id();
|
|
13916
|
-
_html(`<button type=button${_attr_class(["
|
|
14173
|
+
_html(`<button type=button${_attr_class(["_i0", { ["_iZ"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope4_id, "b", newCount, $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
|
|
13917
14174
|
_script($scope4_id, "x11");
|
|
13918
14175
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13919
14176
|
return 0;
|
|
@@ -13923,7 +14180,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
13923
14180
|
_if(() => {
|
|
13924
14181
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
13925
14182
|
const $scope5_id = _scope_id();
|
|
13926
|
-
_html(`<div${_attr_class("
|
|
14183
|
+
_html(`<div${_attr_class("_i9")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
13927
14184
|
_for_of(input.files, (file$2) => {
|
|
13928
14185
|
const $scope6_id = _scope_id();
|
|
13929
14186
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -13936,14 +14193,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
13936
14193
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
13937
14194
|
input.onFileToggle(file$2.key, open);
|
|
13938
14195
|
}, "x0", $scope6_id))}${_attr_class([
|
|
13939
|
-
"
|
|
13940
|
-
forceNear && "
|
|
13941
|
-
input.findHit?.key === file$2.key && "
|
|
13942
|
-
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("
|
|
14196
|
+
"_i_",
|
|
14197
|
+
forceNear && "_ja",
|
|
14198
|
+
input.findHit?.key === file$2.key && "_iP"
|
|
14199
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_jc")}><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 && "_iQ"])}${_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))}`);
|
|
13943
14200
|
_if(() => {
|
|
13944
14201
|
if (file$2.changedSince) {
|
|
13945
14202
|
const $scope19_id = _scope_id();
|
|
13946
|
-
_html(`<span${_attr_class(["_A", "
|
|
14203
|
+
_html(`<span${_attr_class(["_A", "_i8"])} title="Changed since your last visit"></span>`);
|
|
13947
14204
|
$si__input_files && writeScope($scope19_id, {});
|
|
13948
14205
|
return 0;
|
|
13949
14206
|
}
|
|
@@ -13962,17 +14219,17 @@ var review_section_default = _template("x", (input) => {
|
|
|
13962
14219
|
_if(() => {
|
|
13963
14220
|
if (file$2.binary) {
|
|
13964
14221
|
const $scope20_id = _scope_id();
|
|
13965
|
-
_html(`<p${_attr_class(["
|
|
14222
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>binary file</p>`);
|
|
13966
14223
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope20_id, {});
|
|
13967
14224
|
return 0;
|
|
13968
14225
|
} else if (file$2.tooLarge) {
|
|
13969
14226
|
const $scope21_id = _scope_id();
|
|
13970
|
-
_html(`<p${_attr_class(["
|
|
14227
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>file too large to display</p>`);
|
|
13971
14228
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope21_id, {});
|
|
13972
14229
|
return 1;
|
|
13973
14230
|
} else if (file$2.old == null && file$2.new == null) {
|
|
13974
14231
|
const $scope22_id = _scope_id();
|
|
13975
|
-
_html(`<p${_attr_class(["
|
|
14232
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>file could not be read</p>`);
|
|
13976
14233
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope22_id, {});
|
|
13977
14234
|
return 2;
|
|
13978
14235
|
} else if (expanded) {
|
|
@@ -13980,7 +14237,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
13980
14237
|
_if(() => {
|
|
13981
14238
|
if (!forceNear) {
|
|
13982
14239
|
const $scope8_id = _scope_id();
|
|
13983
|
-
_html(`<div${_attr_class("
|
|
14240
|
+
_html(`<div${_attr_class("_jd")}></div>${_el_resume($scope8_id, "a")}`);
|
|
13984
14241
|
_script($scope8_id, "x12");
|
|
13985
14242
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
13986
14243
|
return 0;
|
|
@@ -13988,7 +14245,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
13988
14245
|
const $scope9_id = _scope_id();
|
|
13989
14246
|
const $childScope = _peek_scope_id();
|
|
13990
14247
|
diff_file_default({
|
|
13991
|
-
class: "
|
|
14248
|
+
class: "_jb",
|
|
13992
14249
|
file: file$2,
|
|
13993
14250
|
comments: fileComments,
|
|
13994
14251
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -14125,7 +14382,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14125
14382
|
cd: $si__input_findHit_line && $input_findHit_line__closures
|
|
14126
14383
|
});
|
|
14127
14384
|
});
|
|
14128
|
-
var fileFilter = "
|
|
14385
|
+
var fileFilter = "_jl _n";
|
|
14129
14386
|
//#endregion
|
|
14130
14387
|
//#region src/tags/file-filter.marko
|
|
14131
14388
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -14155,7 +14412,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
14155
14412
|
pending = v;
|
|
14156
14413
|
box.timer = setTimeout(flush, 150);
|
|
14157
14414
|
}, "n2", $scope0_id);
|
|
14158
|
-
_html(`<div${_attr_class("
|
|
14415
|
+
_html(`<div${_attr_class("_jk")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
14159
14416
|
type(v);
|
|
14160
14417
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
14161
14418
|
_script($scope0_id, "n3");
|
|
@@ -14188,7 +14445,7 @@ var $content = (input) => {
|
|
|
14188
14445
|
_for_of(dir.dirs, (child) => {
|
|
14189
14446
|
const $scope1_id = _scope_id();
|
|
14190
14447
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14191
|
-
_html(`<div${_attr_class("
|
|
14448
|
+
_html(`<div${_attr_class("_h1")}><button type=button${_attr_class(["_h2", { ["_hT"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_h9")}>`);
|
|
14192
14449
|
_if(() => {
|
|
14193
14450
|
if (shut) {
|
|
14194
14451
|
const $scope4_id = _scope_id();
|
|
@@ -14202,7 +14459,7 @@ var $content = (input) => {
|
|
|
14202
14459
|
return 1;
|
|
14203
14460
|
}
|
|
14204
14461
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14205
|
-
_html(`<span${_attr_class("
|
|
14462
|
+
_html(`<span${_attr_class("_h3")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14206
14463
|
_if(() => {
|
|
14207
14464
|
if (!shut) {
|
|
14208
14465
|
const $scope2_id = _scope_id();
|
|
@@ -14249,11 +14506,11 @@ var $content = (input) => {
|
|
|
14249
14506
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14250
14507
|
_for_of(dir.files, ({ file, name }) => {
|
|
14251
14508
|
const $scope3_id = _scope_id();
|
|
14252
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14509
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_h5", { ["_h4"]: 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("_h6")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14253
14510
|
_if(() => {
|
|
14254
14511
|
if (input.newKeys.has(file.key)) {
|
|
14255
14512
|
const $scope6_id = _scope_id();
|
|
14256
|
-
_html(`<span${_attr_class(["_A", "
|
|
14513
|
+
_html(`<span${_attr_class(["_A", "_h7"])} title="Changed since your last visit"></span>`);
|
|
14257
14514
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14258
14515
|
return 0;
|
|
14259
14516
|
}
|
|
@@ -14261,7 +14518,7 @@ var $content = (input) => {
|
|
|
14261
14518
|
_if(() => {
|
|
14262
14519
|
if (input.commentKeys.has(file.key)) {
|
|
14263
14520
|
const $scope7_id = _scope_id();
|
|
14264
|
-
_html(`<span${_attr_class("
|
|
14521
|
+
_html(`<span${_attr_class("_h8")}>`);
|
|
14265
14522
|
icon_comment_default({ size: 12 });
|
|
14266
14523
|
_html("</span>");
|
|
14267
14524
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14319,7 +14576,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14319
14576
|
scope: input.scope ?? null,
|
|
14320
14577
|
file: key
|
|
14321
14578
|
}), "l0", $scope0_id);
|
|
14322
|
-
_html(`<aside${_attr_class(["
|
|
14579
|
+
_html(`<aside${_attr_class(["_hU", { ["_hT"]: input.open === false }])}><div${_attr_class("_hV")}>`);
|
|
14323
14580
|
_set_serialize_reason(2);
|
|
14324
14581
|
const $childScope = _peek_scope_id();
|
|
14325
14582
|
file_filter_default({
|
|
@@ -14328,18 +14585,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14328
14585
|
filter = _new_filter;
|
|
14329
14586
|
}, "l1", $scope0_id)
|
|
14330
14587
|
});
|
|
14331
|
-
_html(`</div><div${_attr_class("
|
|
14588
|
+
_html(`</div><div${_attr_class("_hW")}>`);
|
|
14332
14589
|
_if(() => {
|
|
14333
14590
|
if (!input.sections.length && filter) {
|
|
14334
14591
|
const $scope3_id = _scope_id();
|
|
14335
|
-
_html(`<p${_attr_class("
|
|
14592
|
+
_html(`<p${_attr_class("_hX")}>No files match.</p>`);
|
|
14336
14593
|
writeScope($scope3_id, {});
|
|
14337
14594
|
return 0;
|
|
14338
14595
|
}
|
|
14339
14596
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14340
14597
|
_for_of(input.sections, (section) => {
|
|
14341
14598
|
const $scope1_id = _scope_id();
|
|
14342
|
-
_html(`<div${_attr_class("
|
|
14599
|
+
_html(`<div${_attr_class("_hY")}><button type=button${_attr_class(["_hZ", { ["_hT"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_h9")}>`);
|
|
14343
14600
|
_if(() => {
|
|
14344
14601
|
if (collapsedRepos.has(section.id)) {
|
|
14345
14602
|
const $scope4_id = _scope_id();
|
|
@@ -14353,12 +14610,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14353
14610
|
return 1;
|
|
14354
14611
|
}
|
|
14355
14612
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14356
|
-
_html(`<span${_attr_class("
|
|
14613
|
+
_html(`<span${_attr_class("_h3")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14357
14614
|
_if(() => {
|
|
14358
14615
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14359
14616
|
const $scope2_id = _scope_id();
|
|
14360
14617
|
const root = treeDirs(section.files);
|
|
14361
|
-
_html(`<div${_attr_class("
|
|
14618
|
+
_html(`<div${_attr_class("_h0")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14362
14619
|
_set_serialize_reason(1);
|
|
14363
14620
|
const $childScope2 = _peek_scope_id();
|
|
14364
14621
|
diff_tree_dir_default({
|
|
@@ -14428,7 +14685,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14428
14685
|
});
|
|
14429
14686
|
_resume_branch($scope0_id);
|
|
14430
14687
|
});
|
|
14431
|
-
var sheetDir = "
|
|
14688
|
+
var sheetDir = "_iJ _bb";
|
|
14432
14689
|
//#endregion
|
|
14433
14690
|
//#region src/tags/diff-file-sheet.marko
|
|
14434
14691
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14484,9 +14741,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14484
14741
|
_if(() => {
|
|
14485
14742
|
if (open) {
|
|
14486
14743
|
const $scope1_id = _scope_id();
|
|
14487
|
-
_html(`<div${_attr_class("
|
|
14744
|
+
_html(`<div${_attr_class("_iA")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_iB")} role=dialog aria-label="Jump to file"><div${_attr_class("_iC")}><strong${_attr_class("_iz")}>Files</strong><span${_attr_class("_iD")}>${_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, "_iy"])} title=Close aria-label=Close>`);
|
|
14488
14745
|
icon_xmark_default({ size: 16 });
|
|
14489
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14746
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iL")}>`);
|
|
14490
14747
|
_set_serialize_reason(2);
|
|
14491
14748
|
const $childScope = _peek_scope_id();
|
|
14492
14749
|
file_filter_default({
|
|
@@ -14495,13 +14752,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14495
14752
|
filter = _new_filter;
|
|
14496
14753
|
}, "g1", $scope1_id)
|
|
14497
14754
|
});
|
|
14498
|
-
_html(`</div><div${_attr_class("
|
|
14755
|
+
_html(`</div><div${_attr_class("_iE")}>`);
|
|
14499
14756
|
_for_of(groups, (group) => {
|
|
14500
14757
|
const $scope2_id = _scope_id();
|
|
14501
|
-
_html(`<div${_attr_class("
|
|
14758
|
+
_html(`<div${_attr_class("_iF")}><div${_attr_class("_iG")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14502
14759
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14503
14760
|
const $scope3_id = _scope_id();
|
|
14504
|
-
_html(`<div${_attr_class("
|
|
14761
|
+
_html(`<div${_attr_class("_iH")}>`);
|
|
14505
14762
|
_if(() => {
|
|
14506
14763
|
if (dir) {
|
|
14507
14764
|
const $scope5_id = _scope_id();
|
|
@@ -14512,11 +14769,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14512
14769
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14513
14770
|
_for_of(files, ({ file, name }) => {
|
|
14514
14771
|
const $scope4_id = _scope_id();
|
|
14515
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14772
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_iI", "_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("_iK")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14516
14773
|
_if(() => {
|
|
14517
14774
|
if (newKeys.has(file.key)) {
|
|
14518
14775
|
const $scope6_id = _scope_id();
|
|
14519
|
-
_html(`<span${_attr_class(["_A", "
|
|
14776
|
+
_html(`<span${_attr_class(["_A", "_iN"])} title="Changed since your last visit"></span>`);
|
|
14520
14777
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14521
14778
|
return 0;
|
|
14522
14779
|
}
|
|
@@ -14526,7 +14783,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14526
14783
|
const $scope7_id = _scope_id();
|
|
14527
14784
|
icon_comment_default({
|
|
14528
14785
|
size: 12,
|
|
14529
|
-
class: "
|
|
14786
|
+
class: "_iO"
|
|
14530
14787
|
});
|
|
14531
14788
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14532
14789
|
return 0;
|
|
@@ -14551,7 +14808,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14551
14808
|
_if(() => {
|
|
14552
14809
|
if (!input.files.length) {
|
|
14553
14810
|
const $scope8_id = _scope_id();
|
|
14554
|
-
_html(`<p${_attr_class("
|
|
14811
|
+
_html(`<p${_attr_class("_iM")}>No files match.</p>`);
|
|
14555
14812
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14556
14813
|
return 0;
|
|
14557
14814
|
}
|
|
@@ -15091,11 +15348,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15091
15348
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
15092
15349
|
}
|
|
15093
15350
|
}, "m33", $scope0_id);
|
|
15094
|
-
_html(`<div${_attr_class("
|
|
15351
|
+
_html(`<div${_attr_class("_fQ")}><div${_attr_class("_fV")}><div${_attr_class("_fW")}><div${_attr_class(["_f6", { ["_f5"]: !comments.length }])}>`);
|
|
15095
15352
|
_if(() => {
|
|
15096
15353
|
if (input.onExit) {
|
|
15097
15354
|
const $scope1_id = _scope_id();
|
|
15098
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
15355
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_fX"])} title="Back to terminal (Esc)">`);
|
|
15099
15356
|
icon_back_default({ size: 14 });
|
|
15100
15357
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
15101
15358
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -15106,7 +15363,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15106
15363
|
_if(() => {
|
|
15107
15364
|
if (comments.length) {
|
|
15108
15365
|
const $scope5_id = _scope_id();
|
|
15109
|
-
_html(`<span${_attr_class("
|
|
15366
|
+
_html(`<span${_attr_class("_fZ")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
15110
15367
|
writeScope($scope5_id, {});
|
|
15111
15368
|
return 0;
|
|
15112
15369
|
}
|
|
@@ -15114,7 +15371,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15114
15371
|
_if(() => {
|
|
15115
15372
|
if (comments.length) {
|
|
15116
15373
|
const $scope2_id = _scope_id();
|
|
15117
|
-
_html(`<span${_attr_class("
|
|
15374
|
+
_html(`<span${_attr_class("_fY")}>`);
|
|
15118
15375
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
15119
15376
|
const $childScope = _peek_scope_id();
|
|
15120
15377
|
diff_send_default({
|
|
@@ -15127,14 +15384,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15127
15384
|
return 0;
|
|
15128
15385
|
}
|
|
15129
15386
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
15130
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15387
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_fU")}>`);
|
|
15131
15388
|
_if(() => {
|
|
15132
15389
|
if (hasFiles) {
|
|
15133
15390
|
const $scope12_id = _scope_id();
|
|
15134
15391
|
_html(`<button${_attr_class([
|
|
15135
15392
|
treeToggle,
|
|
15136
|
-
"
|
|
15137
|
-
{ ["
|
|
15393
|
+
"_fS",
|
|
15394
|
+
{ ["_fR"]: treeOpen }
|
|
15138
15395
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
15139
15396
|
icon_sidebar_default({ size: 14 });
|
|
15140
15397
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -15143,7 +15400,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15143
15400
|
return 0;
|
|
15144
15401
|
}
|
|
15145
15402
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15146
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15403
|
+
_html(`<button${_attr_class([iconBtnRow, "_fS"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
15147
15404
|
_set_serialize_reason(1);
|
|
15148
15405
|
const $childScope2 = _peek_scope_id();
|
|
15149
15406
|
icon_refresh_default({
|
|
@@ -15154,19 +15411,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15154
15411
|
_if(() => {
|
|
15155
15412
|
if (hasFiles) {
|
|
15156
15413
|
const $scope13_id = _scope_id();
|
|
15157
|
-
_html(`<button${_attr_class(["_q", "
|
|
15414
|
+
_html(`<button${_attr_class(["_q", "_ge"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
15158
15415
|
_script($scope13_id, "m53");
|
|
15159
15416
|
writeScope($scope13_id, {});
|
|
15160
15417
|
return 0;
|
|
15161
15418
|
}
|
|
15162
15419
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15163
|
-
_html(`<span${_attr_class(["_o", "
|
|
15420
|
+
_html(`<span${_attr_class(["_o", "_f7"])}>`);
|
|
15164
15421
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15165
15422
|
setScope(v);
|
|
15166
15423
|
}, "m0", $scope0_id), () => {
|
|
15167
|
-
_html(`<select${_attr_class(["_p", "
|
|
15424
|
+
_html(`<select${_attr_class(["_p", "_f8"])} 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>`);
|
|
15168
15425
|
});
|
|
15169
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15426
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_f3", { ["_f2"]: !findOpen }])}>`);
|
|
15170
15427
|
_set_serialize_reason(2);
|
|
15171
15428
|
const $childScope3 = _peek_scope_id();
|
|
15172
15429
|
let findFocus = diff_find_default({
|
|
@@ -15187,8 +15444,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15187
15444
|
const $scope14_id = _scope_id();
|
|
15188
15445
|
_html(`<button${_attr_class([
|
|
15189
15446
|
iconBtnRow,
|
|
15190
|
-
"
|
|
15191
|
-
"
|
|
15447
|
+
"_f1",
|
|
15448
|
+
"_fS"
|
|
15192
15449
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15193
15450
|
icon_search_default({ size: 14 });
|
|
15194
15451
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15197,7 +15454,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15197
15454
|
return 0;
|
|
15198
15455
|
}
|
|
15199
15456
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15200
|
-
_html(`</div></div><div${_attr_class("
|
|
15457
|
+
_html(`</div></div><div${_attr_class("_f4")} data-diff-main>`);
|
|
15201
15458
|
_if(() => {
|
|
15202
15459
|
if (error) {
|
|
15203
15460
|
const $scope6_id = _scope_id();
|
|
@@ -15220,7 +15477,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15220
15477
|
_if(() => {
|
|
15221
15478
|
if (!repos && loading) {
|
|
15222
15479
|
const $scope15_id = _scope_id();
|
|
15223
|
-
_html(`<div${_attr_class("
|
|
15480
|
+
_html(`<div${_attr_class("_f_")} aria-hidden=true><div${_attr_class(["_ga", "_gb"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div></div>`);
|
|
15224
15481
|
writeScope($scope15_id, {});
|
|
15225
15482
|
return 0;
|
|
15226
15483
|
}
|
|
@@ -15250,12 +15507,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15250
15507
|
_if(() => {
|
|
15251
15508
|
if (repos && !allFiles.length) {
|
|
15252
15509
|
const $scope11_id = _scope_id();
|
|
15253
|
-
_html(`<p${_attr_class("
|
|
15510
|
+
_html(`<p${_attr_class("_cl")}>${_text_resume($scope11_id, "b", repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
15254
15511
|
writeScope($scope11_id, {});
|
|
15255
15512
|
return 0;
|
|
15256
15513
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
15257
15514
|
const $scope8_id = _scope_id();
|
|
15258
|
-
_html(`<p${_attr_class("
|
|
15515
|
+
_html(`<p${_attr_class("_cl")}>${_text_resume($scope8_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
15259
15516
|
writeScope($scope8_id, {});
|
|
15260
15517
|
return 1;
|
|
15261
15518
|
}
|
|
@@ -15622,13 +15879,12 @@ function parseInvite(text) {
|
|
|
15622
15879
|
}
|
|
15623
15880
|
//#endregion
|
|
15624
15881
|
//#region src/tags/manage-workspace.css.ts
|
|
15625
|
-
var
|
|
15626
|
-
var
|
|
15627
|
-
var
|
|
15628
|
-
var
|
|
15629
|
-
var
|
|
15630
|
-
var
|
|
15631
|
-
var skillEnd = "_gv _gn";
|
|
15882
|
+
var pageMeta = "_fx _ee";
|
|
15883
|
+
var pathMeta = "_fA _y";
|
|
15884
|
+
var skillRow = "_fG _fB";
|
|
15885
|
+
var skillName = "_fI _fC";
|
|
15886
|
+
var skillDesc = "_fL _fD";
|
|
15887
|
+
var skillEnd = "_fM _fE";
|
|
15632
15888
|
//#endregion
|
|
15633
15889
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15634
15890
|
var icon_clipboard_default = _template("Y", (input) => {
|
|
@@ -15646,8 +15902,8 @@ var icon_clipboard_default = _template("Y", (input) => {
|
|
|
15646
15902
|
});
|
|
15647
15903
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15648
15904
|
});
|
|
15649
|
-
var resultRow = "
|
|
15650
|
-
var resultBranch = "
|
|
15905
|
+
var resultRow = "_hH _I";
|
|
15906
|
+
var resultBranch = "_hJ _4 _l";
|
|
15651
15907
|
//#endregion
|
|
15652
15908
|
//#region src/tags/icons/icon-branch.marko
|
|
15653
15909
|
var icon_branch_default = _template("U", (input) => {
|
|
@@ -15677,11 +15933,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15677
15933
|
let branchFilter = "";
|
|
15678
15934
|
let reloadTick = 0;
|
|
15679
15935
|
let refreshing = false;
|
|
15680
|
-
_html(`<div${_attr_class("
|
|
15936
|
+
_html(`<div${_attr_class("_hL")}>`);
|
|
15681
15937
|
_if(() => {
|
|
15682
15938
|
{
|
|
15683
15939
|
const $scope4_id = _scope_id();
|
|
15684
|
-
_html(`<p${_attr_class("
|
|
15940
|
+
_html(`<p${_attr_class("_ck")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15685
15941
|
writeScope($scope4_id, {});
|
|
15686
15942
|
return 0;
|
|
15687
15943
|
}
|
|
@@ -15707,7 +15963,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15707
15963
|
//#region src/tags/repo-picker.marko
|
|
15708
15964
|
var api$5;
|
|
15709
15965
|
var repo_picker_default = _template("w", (input$2) => {
|
|
15710
|
-
const $scope0_reason = _scope_reason(), $sg__input_compact = _serialize_guard($scope0_reason,
|
|
15966
|
+
const $scope0_reason = _scope_reason(), $sg__input_compact__OR__input_action = _serialize_guard($scope0_reason, 1), $sg__input_compact = _serialize_guard($scope0_reason, 7), $si__input_onError = _serialize_if($scope0_reason, 6), $si__input_compact__OR__input_action = _serialize_if($scope0_reason, 1);
|
|
15711
15967
|
const $scope0_id = _scope_id();
|
|
15712
15968
|
const $loadCatalog2__closures = /* @__PURE__ */ new Set();
|
|
15713
15969
|
const $ssoPending__closures = /* @__PURE__ */ new Set();
|
|
@@ -15762,7 +16018,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15762
16018
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
15763
16019
|
})();
|
|
15764
16020
|
const ssoBlock = { content: _content("w13", () => {
|
|
15765
|
-
const $
|
|
16021
|
+
const $scope9_id = _scope_id();
|
|
15766
16022
|
_scope_reason();
|
|
15767
16023
|
_set_serialize_reason(26);
|
|
15768
16024
|
const $childScope = _peek_scope_id();
|
|
@@ -15770,228 +16026,238 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15770
16026
|
items: ssoPending,
|
|
15771
16027
|
onChange: _resume(function() {
|
|
15772
16028
|
ssoIgnoreTick++;
|
|
15773
|
-
}, "w7", $
|
|
16029
|
+
}, "w7", $scope9_id),
|
|
15774
16030
|
onDone: _resume(function() {
|
|
15775
16031
|
loadCatalog(true);
|
|
15776
|
-
}, "w8", $
|
|
16032
|
+
}, "w8", $scope9_id)
|
|
15777
16033
|
});
|
|
15778
|
-
_subscribe($ssoPending__closures, _subscribe($si__input_onError && $loadCatalog2__closures, writeScope($
|
|
16034
|
+
_subscribe($ssoPending__closures, _subscribe($si__input_onError && $loadCatalog2__closures, writeScope($scope9_id, {
|
|
15779
16035
|
_: _scope_with_id($scope0_id),
|
|
15780
16036
|
a: _existing_scope($childScope)
|
|
15781
16037
|
})));
|
|
15782
|
-
_resume_branch($
|
|
16038
|
+
_resume_branch($scope9_id);
|
|
15783
16039
|
}, $scope0_id) };
|
|
15784
16040
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
15785
|
-
_html(`<div${_attr_class([compact ? "
|
|
15786
|
-
["
|
|
15787
|
-
["
|
|
16041
|
+
_html(`<div${_attr_class([compact ? "_cC" : "_hz", {
|
|
16042
|
+
["_cD"]: compact && !input$2.open,
|
|
16043
|
+
["_cE"]: input$2.pinned
|
|
15788
16044
|
}])}>`);
|
|
15789
16045
|
_if(() => {
|
|
15790
16046
|
if (!compact && ssoPending.length) {
|
|
15791
|
-
const $
|
|
15792
|
-
_html(`<div${_attr_class("
|
|
16047
|
+
const $scope11_id = _scope_id();
|
|
16048
|
+
_html(`<div${_attr_class("_hC")}>`);
|
|
15793
16049
|
ssoBlock.content({});
|
|
15794
16050
|
_html("</div>");
|
|
15795
|
-
writeScope($
|
|
16051
|
+
writeScope($scope11_id, {});
|
|
15796
16052
|
return 0;
|
|
15797
16053
|
}
|
|
15798
16054
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
15799
|
-
_html(`<label${_attr_class(["_1", compact && "
|
|
16055
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_hA") : _attr_class("_hB")}><label${_attr_class(["_1", compact && "_cF"])}>`);
|
|
15800
16056
|
icon_search_default({
|
|
15801
16057
|
size: 14,
|
|
15802
16058
|
class: "_2"
|
|
15803
16059
|
});
|
|
15804
|
-
_html(`<input${_attr_input_value($scope0_id, "
|
|
16060
|
+
_html(`<input${_attr_input_value($scope0_id, "f", filter, _resume(function(v) {
|
|
15805
16061
|
filter = v;
|
|
15806
16062
|
highlight = 0;
|
|
15807
16063
|
pasteWillFork = false;
|
|
15808
16064
|
}, "w0", $scope0_id))}${_attr_class([
|
|
15809
16065
|
compact ? "_Z" : inputLg,
|
|
15810
16066
|
"_3",
|
|
15811
|
-
compact && "
|
|
15812
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "
|
|
16067
|
+
compact && "_cG"
|
|
16068
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "f")}</label>${_el_resume($scope0_id, "d", $sg__input_compact)}`);
|
|
15813
16069
|
_if(() => {
|
|
15814
|
-
if (compact) {
|
|
16070
|
+
if (!compact && input$2.action) {
|
|
15815
16071
|
const $scope1_id = _scope_id();
|
|
15816
|
-
|
|
16072
|
+
_dynamic_tag($scope1_id, "a", input$2.action, {}, 0, 0, _serialize_guard($scope0_reason, 8));
|
|
16073
|
+
$si__input_compact__OR__input_action && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 8) && _scope_with_id($scope0_id) });
|
|
16074
|
+
return 0;
|
|
16075
|
+
}
|
|
16076
|
+
}, $scope0_id, "g", $sg__input_compact__OR__input_action, $sg__input_compact__OR__input_action);
|
|
16077
|
+
_html(`</div>${_el_resume($scope0_id, "c", $sg__input_compact__OR__input_action)}`);
|
|
16078
|
+
_if(() => {
|
|
16079
|
+
if (compact) {
|
|
16080
|
+
const $scope2_id = _scope_id();
|
|
16081
|
+
_html(`<button${_attr_class([iconBtnRow, "_cH"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15817
16082
|
icon_xmark_default({ size: 14 });
|
|
15818
|
-
_html(`</button>${_el_resume($
|
|
15819
|
-
_script($
|
|
15820
|
-
writeScope($
|
|
16083
|
+
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
16084
|
+
_script($scope2_id, "w14");
|
|
16085
|
+
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
15821
16086
|
return 0;
|
|
15822
16087
|
}
|
|
15823
|
-
}, $scope0_id, "
|
|
15824
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
16088
|
+
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
16089
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hD"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
15825
16090
|
_if(() => {
|
|
15826
16091
|
if (compact && ssoPending.length) {
|
|
15827
|
-
const $
|
|
15828
|
-
_html(`<div${_attr_class("
|
|
16092
|
+
const $scope12_id = _scope_id();
|
|
16093
|
+
_html(`<div${_attr_class("_hC")}>`);
|
|
15829
16094
|
ssoBlock.content({});
|
|
15830
16095
|
_html("</div>");
|
|
15831
|
-
writeScope($
|
|
16096
|
+
writeScope($scope12_id, {});
|
|
15832
16097
|
return 0;
|
|
15833
16098
|
}
|
|
15834
|
-
}, $scope0_id, "
|
|
16099
|
+
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15835
16100
|
_if(() => {
|
|
15836
16101
|
if (pasted) {
|
|
15837
|
-
const $
|
|
15838
|
-
_html(`<ul${_attr_class("
|
|
16102
|
+
const $scope3_id = _scope_id();
|
|
16103
|
+
_html(`<ul${_attr_class("_hE")}><li><div${_attr_class(["_hG", "_hF"])}><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)`)}>`);
|
|
15839
16104
|
icon_plus_default({
|
|
15840
16105
|
size: 12,
|
|
15841
|
-
class: "
|
|
16106
|
+
class: "_hN"
|
|
15842
16107
|
});
|
|
15843
|
-
_html(`<span${_attr_class("
|
|
16108
|
+
_html(`<span${_attr_class("_hO")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
15844
16109
|
_if(() => {
|
|
15845
16110
|
if (pastedForkable) {
|
|
15846
|
-
const $
|
|
15847
|
-
_html(`<button${_attr_class(["
|
|
16111
|
+
const $scope10_id = _scope_id();
|
|
16112
|
+
_html(`<button${_attr_class(["_hK", { ["_hI"]: 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"}>`);
|
|
15848
16113
|
_if(() => {
|
|
15849
16114
|
if (pasteWillFork) {
|
|
15850
|
-
const $
|
|
16115
|
+
const $scope14_id = _scope_id();
|
|
15851
16116
|
icon_check_default({ size: 12 });
|
|
15852
16117
|
_html(" fork");
|
|
15853
|
-
writeScope($
|
|
16118
|
+
writeScope($scope14_id, {});
|
|
15854
16119
|
return 0;
|
|
15855
16120
|
} else {
|
|
15856
|
-
const $
|
|
16121
|
+
const $scope15_id = _scope_id();
|
|
15857
16122
|
_html("Fork");
|
|
15858
|
-
writeScope($
|
|
16123
|
+
writeScope($scope15_id, {});
|
|
15859
16124
|
return 1;
|
|
15860
16125
|
}
|
|
15861
|
-
}, $
|
|
15862
|
-
_script($
|
|
15863
|
-
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($
|
|
16126
|
+
}, $scope10_id, "a", 1, 1, 1, "</button>");
|
|
16127
|
+
_script($scope10_id, "w15");
|
|
16128
|
+
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope10_id, { Cb8: 1 })));
|
|
15864
16129
|
return 0;
|
|
15865
16130
|
}
|
|
15866
|
-
}, $
|
|
15867
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
16131
|
+
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
16132
|
+
_html(`<button${_attr_class([resultBranch, { ["_hI"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15868
16133
|
icon_branch_default({ size: 12 });
|
|
15869
|
-
_html(`</button>${_el_resume($
|
|
16134
|
+
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
15870
16135
|
_if(() => {
|
|
15871
16136
|
if (branchesFor === pasted) {
|
|
15872
|
-
const $
|
|
16137
|
+
const $scope4_id = _scope_id();
|
|
15873
16138
|
const $childScope2 = _peek_scope_id();
|
|
15874
16139
|
branch_pick_default({
|
|
15875
16140
|
repo: pasted,
|
|
15876
16141
|
onPick: _resume(function(branch, isDefault) {
|
|
15877
16142
|
pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
|
|
15878
|
-
}, "w9", $
|
|
16143
|
+
}, "w9", $scope4_id),
|
|
15879
16144
|
onError: _resume(function(message) {
|
|
15880
16145
|
branchesFor = null;
|
|
15881
16146
|
input$2.onError?.(message);
|
|
15882
|
-
}, "w10", $
|
|
16147
|
+
}, "w10", $scope4_id)
|
|
15883
16148
|
});
|
|
15884
|
-
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($
|
|
16149
|
+
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope4_id, { a: _existing_scope($childScope2) })));
|
|
15885
16150
|
return 0;
|
|
15886
16151
|
}
|
|
15887
|
-
}, $
|
|
16152
|
+
}, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
15888
16153
|
_html("</li></ul>");
|
|
15889
|
-
_script($
|
|
15890
|
-
writeScope($
|
|
16154
|
+
_script($scope3_id, "w16");
|
|
16155
|
+
writeScope($scope3_id, {});
|
|
15891
16156
|
return 0;
|
|
15892
16157
|
} else if (filter && !catalog) {
|
|
15893
|
-
const $
|
|
15894
|
-
_html(`<p${_attr_class("
|
|
15895
|
-
writeScope($
|
|
16158
|
+
const $scope13_id = _scope_id();
|
|
16159
|
+
_html(`<p${_attr_class("_ck")}>Loading repos…</p>`);
|
|
16160
|
+
writeScope($scope13_id, {});
|
|
15896
16161
|
return 1;
|
|
15897
16162
|
}
|
|
15898
|
-
}, $scope0_id, "
|
|
16163
|
+
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
15899
16164
|
_if(() => {
|
|
15900
16165
|
if (results.length) {
|
|
15901
|
-
const $
|
|
15902
|
-
_html(`<ul${_attr_class("
|
|
16166
|
+
const $scope5_id = _scope_id();
|
|
16167
|
+
_html(`<ul${_attr_class("_hE")}>`);
|
|
15903
16168
|
_for_of(results, (repo, i) => {
|
|
15904
|
-
const $
|
|
15905
|
-
_html(`<li><div${_attr_class(["
|
|
16169
|
+
const $scope6_id = _scope_id();
|
|
16170
|
+
_html(`<li><div${_attr_class(["_hG", { ["_hF"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15906
16171
|
icon_plus_default({
|
|
15907
16172
|
size: 12,
|
|
15908
|
-
class: "
|
|
16173
|
+
class: "_hN"
|
|
15909
16174
|
});
|
|
15910
|
-
_html(`<span${_attr_class("
|
|
16175
|
+
_html(`<span${_attr_class("_hO")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hI"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15911
16176
|
icon_branch_default({ size: 12 });
|
|
15912
|
-
_html(`</button>${_el_resume($
|
|
16177
|
+
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
15913
16178
|
_if(() => {
|
|
15914
16179
|
if (branchesFor === repo.nameWithOwner) {
|
|
15915
|
-
const $
|
|
16180
|
+
const $scope7_id = _scope_id();
|
|
15916
16181
|
const $childScope3 = _peek_scope_id();
|
|
15917
16182
|
branch_pick_default({
|
|
15918
16183
|
repo: repo.nameWithOwner,
|
|
15919
16184
|
onPick: _resume(function(branch, isDefault) {
|
|
15920
16185
|
pick(repo.nameWithOwner, isDefault ? void 0 : branch);
|
|
15921
|
-
}, "w11", $
|
|
16186
|
+
}, "w11", $scope7_id),
|
|
15922
16187
|
onError: _resume(function(message) {
|
|
15923
16188
|
branchesFor = null;
|
|
15924
16189
|
input$2.onError?.(message);
|
|
15925
|
-
}, "w12", $
|
|
16190
|
+
}, "w12", $scope7_id)
|
|
15926
16191
|
});
|
|
15927
|
-
_subscribe($si__input_onError && $input_onError__closures, writeScope($
|
|
16192
|
+
_subscribe($si__input_onError && $input_onError__closures, writeScope($scope7_id, {
|
|
15928
16193
|
a: _existing_scope($childScope3),
|
|
15929
|
-
|
|
16194
|
+
Cb1: $si__input_onError && 1
|
|
15930
16195
|
}));
|
|
15931
16196
|
return 0;
|
|
15932
16197
|
}
|
|
15933
|
-
}, $
|
|
16198
|
+
}, $scope6_id, "h", 1, 1, 1, 0, 1);
|
|
15934
16199
|
_html("</li>");
|
|
15935
|
-
_script($
|
|
15936
|
-
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($
|
|
16200
|
+
_script($scope6_id, "w17");
|
|
16201
|
+
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope6_id, {
|
|
15937
16202
|
k: repo?.nameWithOwner,
|
|
15938
16203
|
m: i
|
|
15939
16204
|
})));
|
|
15940
|
-
}, "nameWithOwner", $
|
|
15941
|
-
writeScope($
|
|
16205
|
+
}, "nameWithOwner", $scope5_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16206
|
+
writeScope($scope5_id, {});
|
|
15942
16207
|
return 0;
|
|
15943
16208
|
} else if (filter && catalog && !pasted) {
|
|
15944
|
-
const $
|
|
15945
|
-
_html(`<p${_attr_class("
|
|
15946
|
-
writeScope($
|
|
16209
|
+
const $scope8_id = _scope_id();
|
|
16210
|
+
_html(`<p${_attr_class("_ck")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
16211
|
+
writeScope($scope8_id, {});
|
|
15947
16212
|
return 1;
|
|
15948
16213
|
}
|
|
15949
|
-
}, $scope0_id, "
|
|
16214
|
+
}, $scope0_id, "l", 1, 1, 1, 0, 1);
|
|
15950
16215
|
const handle = _resume((action) => {
|
|
15951
16216
|
if (action === "focus") ((inputEl) => inputEl())(_el_read_error)?.focus({ preventScroll: true });
|
|
15952
16217
|
else loadCatalog(true);
|
|
15953
16218
|
}, "w1", $scope0_id);
|
|
15954
|
-
_html(`</div>${_el_resume($scope0_id, "
|
|
16219
|
+
_html(`</div>${_el_resume($scope0_id, "i")}</div>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
15955
16220
|
const $return = handle;
|
|
15956
16221
|
_script($scope0_id, "w18");
|
|
15957
16222
|
_script($scope0_id, "w19");
|
|
15958
16223
|
writeScope($scope0_id, {
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
|
|
15962
|
-
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
z:
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
|
|
15974
|
-
a9:
|
|
15975
|
-
|
|
15976
|
-
|
|
15977
|
-
|
|
15978
|
-
|
|
15979
|
-
|
|
15980
|
-
|
|
15981
|
-
|
|
15982
|
-
|
|
15983
|
-
|
|
15984
|
-
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
b5: $
|
|
16224
|
+
o: _serialize_if($scope0_reason, 5) && input$2.refreshing,
|
|
16225
|
+
p: _serialize_if($scope0_reason, 4) && input$2.refreshingChange,
|
|
16226
|
+
r: input$2.onError,
|
|
16227
|
+
s: input$2.exclude,
|
|
16228
|
+
t: input$2.onPick,
|
|
16229
|
+
v: input$2.open,
|
|
16230
|
+
w: input$2.pinned,
|
|
16231
|
+
x: $si__input_compact__OR__input_action && input$2.action,
|
|
16232
|
+
z: input$2.onClose,
|
|
16233
|
+
a2: catalog,
|
|
16234
|
+
a3: catalog?.repos,
|
|
16235
|
+
a5: catalog?.sso,
|
|
16236
|
+
a6: filter,
|
|
16237
|
+
a7: highlight,
|
|
16238
|
+
a8: loadCatalog,
|
|
16239
|
+
a9: excluded,
|
|
16240
|
+
ac: results,
|
|
16241
|
+
ad: results?.length,
|
|
16242
|
+
ae: pasted,
|
|
16243
|
+
ai: pastedForkable,
|
|
16244
|
+
aj: branchesFor,
|
|
16245
|
+
al: pasteWillFork,
|
|
16246
|
+
am: pick,
|
|
16247
|
+
an: pastedFork,
|
|
16248
|
+
ao: toggleBranches,
|
|
16249
|
+
ap: compact,
|
|
16250
|
+
as: ssoIgnoreTick,
|
|
16251
|
+
av: ssoPending?.length,
|
|
16252
|
+
ay: _serialize_if($scope0_reason, 2) && hasBody,
|
|
16253
|
+
a1: input$2.refreshingChange || void 0,
|
|
16254
|
+
b6: $si__input_onError && $loadCatalog2__closures,
|
|
16255
|
+
bc: $ssoPending__closures,
|
|
16256
|
+
b8: $pasted__closures,
|
|
16257
|
+
bb: $pasteWillFork__closures,
|
|
16258
|
+
b1: $si__input_onError && $input_onError__closures,
|
|
16259
|
+
b5: $highlight__closures,
|
|
16260
|
+
ba: $branchesFor__closures
|
|
15995
16261
|
});
|
|
15996
16262
|
_resume_branch($scope0_id);
|
|
15997
16263
|
return $return;
|
|
@@ -16161,7 +16427,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16161
16427
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16162
16428
|
}, "r10", $scope0_id);
|
|
16163
16429
|
const titleId = _id();
|
|
16164
|
-
_html(`<div${_attr_class("
|
|
16430
|
+
_html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
|
|
16165
16431
|
_set_serialize_reason(30);
|
|
16166
16432
|
const $childScope = _peek_scope_id();
|
|
16167
16433
|
page_head_default({
|
|
@@ -16174,7 +16440,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16174
16440
|
meta: attrTag({ content: _content("r20", () => {
|
|
16175
16441
|
_scope_reason();
|
|
16176
16442
|
const $scope13_id = _scope_id();
|
|
16177
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16443
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fy")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
16178
16444
|
_if(() => {
|
|
16179
16445
|
if (ws.status !== "active") {
|
|
16180
16446
|
const $scope17_id = _scope_id();
|
|
@@ -16183,7 +16449,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16183
16449
|
return 0;
|
|
16184
16450
|
}
|
|
16185
16451
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
16186
|
-
_html(`<span${_attr_class("
|
|
16452
|
+
_html(`<span${_attr_class("_fz")} 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")}`);
|
|
16187
16453
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
16188
16454
|
_: _scope_with_id($scope0_id),
|
|
16189
16455
|
Ccf: 1
|
|
@@ -16263,15 +16529,15 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16263
16529
|
_if(() => {
|
|
16264
16530
|
if (pendingAction && actionStep) {
|
|
16265
16531
|
const $scope10_id = _scope_id();
|
|
16266
|
-
_html(`<p${_attr_class("
|
|
16532
|
+
_html(`<p${_attr_class("_b9")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
16267
16533
|
writeScope($scope10_id, {});
|
|
16268
16534
|
return 0;
|
|
16269
16535
|
}
|
|
16270
16536
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16271
|
-
_html(`<section${_attr_class("
|
|
16537
|
+
_html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_fP"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16272
16538
|
icon_plus_default({ size: 16 });
|
|
16273
16539
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16274
|
-
_set_serialize_reason(
|
|
16540
|
+
_set_serialize_reason(26);
|
|
16275
16541
|
const $childScope2 = _peek_scope_id();
|
|
16276
16542
|
let refreshCatalog = repo_picker_default({
|
|
16277
16543
|
compact: true,
|
|
@@ -16299,14 +16565,10 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16299
16565
|
size: 14,
|
|
16300
16566
|
class: catalogRefreshing && "_F"
|
|
16301
16567
|
});
|
|
16302
|
-
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(
|
|
16303
|
-
"_bZ",
|
|
16304
|
-
"_cv",
|
|
16305
|
-
"_cJ"
|
|
16306
|
-
])}>`);
|
|
16568
|
+
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
|
|
16307
16569
|
_for_of(ws.repos, (row) => {
|
|
16308
16570
|
const $scope1_id = _scope_id();
|
|
16309
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16571
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_cf")}><span${_attr_class(["_cg", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_ch")}><a${_attr_class(["_ci", "_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")}`);
|
|
16310
16572
|
_if(() => {
|
|
16311
16573
|
if (row.base_branch !== row.default_branch) {
|
|
16312
16574
|
const $scope20_id = _scope_id();
|
|
@@ -16327,7 +16589,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16327
16589
|
} else {
|
|
16328
16590
|
const $scope9_id = _scope_id();
|
|
16329
16591
|
_html(`<button${_attr_class([
|
|
16330
|
-
"
|
|
16592
|
+
"_cj",
|
|
16331
16593
|
"_8",
|
|
16332
16594
|
"_9",
|
|
16333
16595
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -16360,13 +16622,13 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16360
16622
|
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
16361
16623
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16362
16624
|
const $scope24_id = _scope_id();
|
|
16363
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16625
|
+
_html(`<li${_attr_class([flatCardRow, "_cd"])}><span${_attr_class("_G")}></span><div${_attr_class("_cf")}><span${_attr_class("_ci")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
|
|
16364
16626
|
writeScope($scope24_id, {});
|
|
16365
16627
|
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
16366
16628
|
_if(() => {
|
|
16367
16629
|
if (!ws.repos.length && !busy.size) {
|
|
16368
16630
|
const $scope25_id = _scope_id();
|
|
16369
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16631
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_ci")}>No repos yet. Add one to start.</span></li>`);
|
|
16370
16632
|
writeScope($scope25_id, {});
|
|
16371
16633
|
return 0;
|
|
16372
16634
|
}
|
|
@@ -16384,22 +16646,18 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16384
16646
|
_if(() => {
|
|
16385
16647
|
if (allSkills.length) {
|
|
16386
16648
|
const $scope2_id = _scope_id();
|
|
16387
|
-
_html(`<section${_attr_class("
|
|
16388
|
-
"_bZ",
|
|
16389
|
-
"_cv",
|
|
16390
|
-
"_cJ"
|
|
16391
|
-
])}>`);
|
|
16649
|
+
_html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>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(list$2)}>`);
|
|
16392
16650
|
_for_of(allSkills, ({ s, linked }) => {
|
|
16393
16651
|
const $scope3_id = _scope_id();
|
|
16394
16652
|
const isBusy = skillBusy.has(s.id);
|
|
16395
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
16653
|
+
_html(`<li${_attr_class([skillRow, { ["_fH"]: !linked }])}><span${_attr_class("_fJ")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16396
16654
|
_if(() => {
|
|
16397
16655
|
if (s.worktree && !s.broken) {
|
|
16398
16656
|
const $scope26_id = _scope_id();
|
|
16399
16657
|
_html(`<span${_attr_class([
|
|
16400
16658
|
"_N",
|
|
16401
16659
|
"_y",
|
|
16402
|
-
"
|
|
16660
|
+
"_fK"
|
|
16403
16661
|
])}${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")}`);
|
|
16404
16662
|
writeScope($scope26_id, {});
|
|
16405
16663
|
return 0;
|
|
@@ -16451,10 +16709,10 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16451
16709
|
if (linked) {
|
|
16452
16710
|
const $scope11_id = _scope_id();
|
|
16453
16711
|
_html(`<button${_attr_class([
|
|
16454
|
-
"
|
|
16712
|
+
"_cj",
|
|
16455
16713
|
"_8",
|
|
16456
16714
|
"_9",
|
|
16457
|
-
"
|
|
16715
|
+
"_fN",
|
|
16458
16716
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16459
16717
|
])} 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}`)}>`);
|
|
16460
16718
|
_if(() => {
|
|
@@ -16504,24 +16762,20 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16504
16762
|
_if(() => {
|
|
16505
16763
|
if (running.length) {
|
|
16506
16764
|
const $scope15_id = _scope_id();
|
|
16507
|
-
_html(`<section${_attr_class("
|
|
16508
|
-
"_bZ",
|
|
16509
|
-
"_cv",
|
|
16510
|
-
"_cJ"
|
|
16511
|
-
])}>`);
|
|
16765
|
+
_html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16512
16766
|
_for_of(running, (p) => {
|
|
16513
16767
|
const $scope16_id = _scope_id();
|
|
16514
|
-
_html(`<li${_attr_class("
|
|
16768
|
+
_html(`<li${_attr_class("_fB")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_fC"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_fD"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_fE")}>`);
|
|
16515
16769
|
_for_of(p.ports, (port) => {
|
|
16516
16770
|
const $scope34_id = _scope_id();
|
|
16517
16771
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
16518
16772
|
_script($scope34_id, "r27");
|
|
16519
16773
|
writeScope($scope34_id, { d: port });
|
|
16520
16774
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
16521
|
-
_html(`<span${_attr_class(["_y", "
|
|
16522
|
-
"
|
|
16775
|
+
_html(`<span${_attr_class(["_y", "_fF"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
16776
|
+
"_cj",
|
|
16523
16777
|
"_8",
|
|
16524
|
-
"
|
|
16778
|
+
"_fO"
|
|
16525
16779
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16526
16780
|
icon_xmark_default({ size: 14 });
|
|
16527
16781
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -16602,13 +16856,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16602
16856
|
});
|
|
16603
16857
|
_resume_branch($scope0_id);
|
|
16604
16858
|
});
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
var
|
|
16608
|
-
var curBase = "
|
|
16609
|
-
var archived = "
|
|
16610
|
-
var archivedHint = "
|
|
16611
|
-
var
|
|
16859
|
+
var curRepos = "_cZ _ce _cM _cX";
|
|
16860
|
+
var curRow = "_fh _c0 _cY";
|
|
16861
|
+
var curEmpty = "_fj _ck";
|
|
16862
|
+
var curBase = "_fm _Y _X";
|
|
16863
|
+
var archived = "_fr _b_";
|
|
16864
|
+
var archivedHint = "_fs _X";
|
|
16865
|
+
var archivedList = "_cZ _ce _cM _cX";
|
|
16866
|
+
var archivedRow = "_ft _c0 _cY";
|
|
16612
16867
|
//#endregion
|
|
16613
16868
|
//#region src/tags/icons/icon-group.marko
|
|
16614
16869
|
var icon_group_default = _template("fb", (input) => {
|
|
@@ -16628,8 +16883,8 @@ var icon_group_default = _template("fb", (input) => {
|
|
|
16628
16883
|
});
|
|
16629
16884
|
//#endregion
|
|
16630
16885
|
//#region src/tags/join-dialog.css.ts
|
|
16631
|
-
var dlg = "
|
|
16632
|
-
var hint = "
|
|
16886
|
+
var dlg = "_im _gY";
|
|
16887
|
+
var hint = "_in _X";
|
|
16633
16888
|
//#endregion
|
|
16634
16889
|
//#region src/tags/join-dialog.marko
|
|
16635
16890
|
var api$3;
|
|
@@ -16758,26 +17013,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16758
17013
|
content: _content("o12", () => {
|
|
16759
17014
|
_scope_reason();
|
|
16760
17015
|
const $scope1_id = _scope_id();
|
|
16761
|
-
_html(`<h2${_attr_class("
|
|
17016
|
+
_html(`<h2${_attr_class("_gZ")}${_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([
|
|
16762
17017
|
"_Z",
|
|
16763
17018
|
"_y",
|
|
16764
|
-
"
|
|
17019
|
+
"_ip"
|
|
16765
17020
|
])} 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")}`);
|
|
16766
17021
|
_if(() => {
|
|
16767
17022
|
if (parsed.error) {
|
|
16768
17023
|
const $scope8_id = _scope_id();
|
|
16769
|
-
_html(`<p${_attr_class([hint, "
|
|
17024
|
+
_html(`<p${_attr_class([hint, "_io"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16770
17025
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16771
17026
|
return 0;
|
|
16772
17027
|
} else if (parsed.ok) {
|
|
16773
17028
|
const $scope3_id = _scope_id();
|
|
16774
|
-
_html(`<ul${_attr_class("
|
|
17029
|
+
_html(`<ul${_attr_class("_iq")}>`);
|
|
16775
17030
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16776
17031
|
const $scope9_id = _scope_id();
|
|
16777
|
-
_html(`<li${_attr_class("
|
|
17032
|
+
_html(`<li${_attr_class("_ir")}><span${_attr_class("_is")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16778
17033
|
writeScope($scope9_id, {});
|
|
16779
17034
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16780
|
-
_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("
|
|
17035
|
+
_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("_it")}><span${_attr_class("_cn")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16781
17036
|
name = _new_name;
|
|
16782
17037
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16783
17038
|
_script($scope3_id, "o8");
|
|
@@ -16814,10 +17069,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16814
17069
|
_if(() => {
|
|
16815
17070
|
if (busy && steps$2.length) {
|
|
16816
17071
|
const $scope6_id = _scope_id();
|
|
16817
|
-
_html(`<ul${_attr_class("
|
|
17072
|
+
_html(`<ul${_attr_class("_iu")}>`);
|
|
16818
17073
|
_for_of(steps$2, (step$2, i) => {
|
|
16819
17074
|
const $scope7_id = _scope_id();
|
|
16820
|
-
_html(`<li${_attr_class(["
|
|
17075
|
+
_html(`<li${_attr_class(["_iw", { ["_iv"]: i === steps$2.length - 1 }])}>`);
|
|
16821
17076
|
_if(() => {
|
|
16822
17077
|
if (i === steps$2.length - 1) {
|
|
16823
17078
|
const $scope10_id = _scope_id();
|
|
@@ -16826,7 +17081,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16826
17081
|
return 0;
|
|
16827
17082
|
} else {
|
|
16828
17083
|
const $scope11_id = _scope_id();
|
|
16829
|
-
_html(`<span${_attr_class("
|
|
17084
|
+
_html(`<span${_attr_class("_ix")}>`);
|
|
16830
17085
|
icon_check_default({ size: 14 });
|
|
16831
17086
|
_html("</span>");
|
|
16832
17087
|
writeScope($scope11_id, {});
|
|
@@ -16892,6 +17147,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
16892
17147
|
const $scope0_id = _scope_id();
|
|
16893
17148
|
const $busy__closures = /* @__PURE__ */ new Set();
|
|
16894
17149
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
17150
|
+
const $catalogRefreshing__closures = /* @__PURE__ */ new Set();
|
|
16895
17151
|
const $steps_length__closures = /* @__PURE__ */ new Set();
|
|
16896
17152
|
const $restoring__closures = /* @__PURE__ */ new Set();
|
|
16897
17153
|
let name = "";
|
|
@@ -16983,7 +17239,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
16983
17239
|
}
|
|
16984
17240
|
}, "t6", $scope0_id);
|
|
16985
17241
|
const titleId = _id();
|
|
16986
|
-
_html(`<div${_attr_class("
|
|
17242
|
+
_html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
|
|
16987
17243
|
_set_serialize_reason({
|
|
16988
17244
|
0: _serialize_guard($scope0_reason, 2),
|
|
16989
17245
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17032,23 +17288,16 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17032
17288
|
return 0;
|
|
17033
17289
|
}
|
|
17034
17290
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17035
|
-
_html(`<label${_attr_class("
|
|
17291
|
+
_html(`<label${_attr_class("_fd")}><span${_attr_class("_cn")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17036
17292
|
name = _new_name;
|
|
17037
|
-
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
17038
|
-
_set_serialize_reason(1);
|
|
17039
|
-
const $childScope2 = _peek_scope_id();
|
|
17040
|
-
icon_refresh_default({
|
|
17041
|
-
size: 14,
|
|
17042
|
-
class: catalogRefreshing && "_F"
|
|
17043
|
-
});
|
|
17044
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_f2")}>`);
|
|
17293
|
+
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_b_")}><div${_attr_class("_ff")}><h2${_attr_class("_cn")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
17045
17294
|
_for_of(selected, (repo) => {
|
|
17046
17295
|
const $scope4_id = _scope_id();
|
|
17047
|
-
_html(`<li><div${_attr_class(
|
|
17296
|
+
_html(`<li${_attr_class("_fg")}><div${_attr_class(curRow)}><span${_attr_class("_fk")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
|
|
17048
17297
|
_if(() => {
|
|
17049
17298
|
if (repo.fork !== void 0) {
|
|
17050
17299
|
const $scope5_id = _scope_id();
|
|
17051
|
-
_html(`<button${_attr_class(["
|
|
17300
|
+
_html(`<button${_attr_class(["_fn", { ["_fl"]: 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)}>`);
|
|
17052
17301
|
_if(() => {
|
|
17053
17302
|
if (repo.fork) {
|
|
17054
17303
|
const $scope14_id = _scope_id();
|
|
@@ -17064,23 +17313,24 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17064
17313
|
}
|
|
17065
17314
|
}, $scope5_id, "a", 1, 1, 1, "</button>");
|
|
17066
17315
|
_script($scope5_id, "t18");
|
|
17067
|
-
_subscribe($busy__closures, writeScope($scope5_id, {
|
|
17316
|
+
_subscribe($busy__closures, writeScope($scope5_id, { Cay: 1 }));
|
|
17068
17317
|
return 0;
|
|
17069
17318
|
}
|
|
17070
|
-
}, $scope4_id, "
|
|
17319
|
+
}, $scope4_id, "e", 1, 1, 1, 0, 1);
|
|
17071
17320
|
_html(`<button${_attr_class([
|
|
17072
17321
|
curBase,
|
|
17073
17322
|
"_y",
|
|
17074
|
-
{ ["
|
|
17323
|
+
{ ["_fl"]: branchesFor === repo.fullName }
|
|
17075
17324
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17076
17325
|
icon_branch_default({ size: 12 });
|
|
17077
|
-
_html(`${_text_resume($scope4_id, "
|
|
17326
|
+
_html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17078
17327
|
icon_xmark_default({ size: 12 });
|
|
17079
|
-
_html(`</button>${_el_resume($scope4_id, "
|
|
17328
|
+
_html(`</button>${_el_resume($scope4_id, "i")}</div>`);
|
|
17080
17329
|
_if(() => {
|
|
17081
17330
|
if (branchesFor === repo.fullName) {
|
|
17082
17331
|
const $scope10_id = _scope_id();
|
|
17083
|
-
|
|
17332
|
+
_html(`<div${_attr_class("_fi")}>`);
|
|
17333
|
+
const $childScope2 = _peek_scope_id();
|
|
17084
17334
|
branch_pick_default({
|
|
17085
17335
|
repo: repo.fullName,
|
|
17086
17336
|
current: repo.baseBranch,
|
|
@@ -17092,26 +17342,27 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17092
17342
|
error = message;
|
|
17093
17343
|
}, "t10", $scope10_id)
|
|
17094
17344
|
});
|
|
17095
|
-
|
|
17345
|
+
_html("</div>");
|
|
17346
|
+
writeScope($scope10_id, { b: _existing_scope($childScope2) });
|
|
17096
17347
|
return 0;
|
|
17097
17348
|
}
|
|
17098
|
-
}, $scope4_id, "
|
|
17349
|
+
}, $scope4_id, "k", 1, 1, 1, 0, 1);
|
|
17099
17350
|
_html("</li>");
|
|
17100
17351
|
_script($scope4_id, "t19");
|
|
17101
17352
|
writeScope($scope4_id, {
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
|
|
17353
|
+
n: repo?.fullName,
|
|
17354
|
+
p: repo?.fork,
|
|
17355
|
+
q: repo?.baseBranch
|
|
17105
17356
|
});
|
|
17106
|
-
}, "fullName", $scope0_id, "
|
|
17357
|
+
}, "fullName", $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
17107
17358
|
_if(() => {
|
|
17108
17359
|
if (!selected.length) {
|
|
17109
17360
|
const $scope16_id = _scope_id();
|
|
17110
|
-
_html(`<li${_attr_class(
|
|
17361
|
+
_html(`<li${_attr_class(curEmpty)}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
17111
17362
|
writeScope($scope16_id, {});
|
|
17112
17363
|
return 0;
|
|
17113
17364
|
}
|
|
17114
|
-
}, $scope0_id, "
|
|
17365
|
+
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
17115
17366
|
_html("</ul>");
|
|
17116
17367
|
const $childScope4 = _peek_scope_id();
|
|
17117
17368
|
let refreshCatalog = repo_picker_default({
|
|
@@ -17125,17 +17376,35 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17125
17376
|
}, "t12", $scope0_id),
|
|
17126
17377
|
refreshingChange: function(v) {
|
|
17127
17378
|
catalogRefreshing = v;
|
|
17128
|
-
}
|
|
17379
|
+
},
|
|
17380
|
+
action: attrTag({ content: _content("t21", () => {
|
|
17381
|
+
_scope_reason();
|
|
17382
|
+
const $scope2_id = _scope_id();
|
|
17383
|
+
_html(`<button${_attr_class([iconBtnRow, "_fe"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17384
|
+
_set_serialize_reason(1);
|
|
17385
|
+
const $childScope3 = _peek_scope_id();
|
|
17386
|
+
icon_refresh_default({
|
|
17387
|
+
size: 14,
|
|
17388
|
+
class: catalogRefreshing && "_F"
|
|
17389
|
+
});
|
|
17390
|
+
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
17391
|
+
_script($scope2_id, "t20");
|
|
17392
|
+
_subscribe($catalogRefreshing__closures, writeScope($scope2_id, {
|
|
17393
|
+
_: _scope_with_id($scope0_id),
|
|
17394
|
+
b: _existing_scope($childScope3)
|
|
17395
|
+
}));
|
|
17396
|
+
_resume_branch($scope2_id);
|
|
17397
|
+
}, $scope0_id) })
|
|
17129
17398
|
});
|
|
17130
|
-
_var($scope0_id, "
|
|
17399
|
+
_var($scope0_id, "p", $childScope4, "t22");
|
|
17131
17400
|
_html("</section>");
|
|
17132
17401
|
_if(() => {
|
|
17133
17402
|
if (busy && steps.length) {
|
|
17134
17403
|
const $scope11_id = _scope_id();
|
|
17135
|
-
_html(`<ul${_attr_class("
|
|
17404
|
+
_html(`<ul${_attr_class("_fo")}>`);
|
|
17136
17405
|
_for_of(steps, (step, i) => {
|
|
17137
17406
|
const $scope12_id = _scope_id();
|
|
17138
|
-
_html(`<li${_attr_class(["
|
|
17407
|
+
_html(`<li${_attr_class(["_fu", { ["_fp"]: i === steps.length - 1 }])}>`);
|
|
17139
17408
|
_if(() => {
|
|
17140
17409
|
if (i === steps.length - 1) {
|
|
17141
17410
|
const $scope17_id = _scope_id();
|
|
@@ -17144,7 +17413,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17144
17413
|
return 0;
|
|
17145
17414
|
} else {
|
|
17146
17415
|
const $scope18_id = _scope_id();
|
|
17147
|
-
_html(`<span${_attr_class("
|
|
17416
|
+
_html(`<span${_attr_class("_fq")}>`);
|
|
17148
17417
|
icon_check_default({ size: 14 });
|
|
17149
17418
|
_html("</span>");
|
|
17150
17419
|
writeScope($scope18_id, {});
|
|
@@ -17157,29 +17426,19 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17157
17426
|
writeScope($scope11_id, {});
|
|
17158
17427
|
return 0;
|
|
17159
17428
|
}
|
|
17160
|
-
}, $scope0_id, "
|
|
17161
|
-
_html(`<div${_attr_class("
|
|
17162
|
-
_if(() => {
|
|
17163
|
-
if (input.onExit || busy) {
|
|
17164
|
-
const $scope1_id = _scope_id();
|
|
17165
|
-
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
|
|
17166
|
-
_script($scope1_id, "t21");
|
|
17167
|
-
writeScope($scope1_id, {});
|
|
17168
|
-
return 0;
|
|
17169
|
-
}
|
|
17170
|
-
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
17171
|
-
_html(`<button type=button${_attr_class([
|
|
17429
|
+
}, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
17430
|
+
_html(`<div${_attr_class("_fb")}><button type=button${_attr_class([
|
|
17172
17431
|
btnLg,
|
|
17173
17432
|
"_r",
|
|
17174
|
-
"
|
|
17175
|
-
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "
|
|
17433
|
+
"_fc"
|
|
17434
|
+
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
|
|
17176
17435
|
_if(() => {
|
|
17177
17436
|
if (archived$1.length) {
|
|
17178
17437
|
const $scope6_id = _scope_id();
|
|
17179
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17438
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_ff")}><h2${_attr_class("_cn")}>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(archivedList)}>`);
|
|
17180
17439
|
_for_of(archived$1, (ws) => {
|
|
17181
17440
|
const $scope7_id = _scope_id();
|
|
17182
|
-
_html(`<li${_attr_class(
|
|
17441
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cf")}><span${_attr_class("_cg")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
17183
17442
|
_if(() => {
|
|
17184
17443
|
if (restoring === ws.id) {
|
|
17185
17444
|
const $scope19_id = _scope_id();
|
|
@@ -17194,68 +17453,68 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17194
17453
|
}
|
|
17195
17454
|
}, $scope7_id, "g", 1, 1, 1, "</button>");
|
|
17196
17455
|
_html("</li>");
|
|
17197
|
-
_script($scope7_id, "
|
|
17456
|
+
_script($scope7_id, "t23");
|
|
17198
17457
|
_subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope7_id, {
|
|
17199
17458
|
j: ws,
|
|
17200
17459
|
o: ws?.id,
|
|
17201
17460
|
_: _scope_with_id($scope6_id),
|
|
17202
|
-
|
|
17461
|
+
Cay: 2
|
|
17203
17462
|
})));
|
|
17204
17463
|
}, "id", $scope6_id, "g", $sg__input_workspaces, $sg__input_workspaces, $sg__input_workspaces, "</ul>", 1);
|
|
17205
17464
|
_html("</section>");
|
|
17206
17465
|
writeScope($scope6_id, { _: _scope_with_id($scope0_id) });
|
|
17207
17466
|
return 0;
|
|
17208
17467
|
}
|
|
17209
|
-
}, $scope0_id, "
|
|
17468
|
+
}, $scope0_id, "u", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
|
|
17210
17469
|
_html("</div></div>");
|
|
17211
17470
|
_if(() => {
|
|
17212
17471
|
if (joinOpen) {
|
|
17213
|
-
const $
|
|
17472
|
+
const $scope1_id = _scope_id();
|
|
17214
17473
|
_set_serialize_reason(2);
|
|
17215
17474
|
const $childScope5 = _peek_scope_id();
|
|
17216
17475
|
join_dialog_default({
|
|
17217
17476
|
open: joinOpen,
|
|
17218
17477
|
openChange: _resume((_new_joinOpen) => {
|
|
17219
17478
|
joinOpen = _new_joinOpen;
|
|
17220
|
-
}, "t13", $
|
|
17479
|
+
}, "t13", $scope1_id),
|
|
17221
17480
|
onJoin: input.onCreate
|
|
17222
17481
|
});
|
|
17223
|
-
writeScope($
|
|
17482
|
+
writeScope($scope1_id, { a: _existing_scope($childScope5) });
|
|
17224
17483
|
return 0;
|
|
17225
17484
|
}
|
|
17226
|
-
}, $scope0_id, "
|
|
17485
|
+
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
17227
17486
|
_html("</div>");
|
|
17228
|
-
_script($scope0_id, "
|
|
17487
|
+
_script($scope0_id, "t24");
|
|
17229
17488
|
writeScope($scope0_id, {
|
|
17230
|
-
|
|
17231
|
-
|
|
17232
|
-
|
|
17233
|
-
|
|
17234
|
-
|
|
17235
|
-
|
|
17236
|
-
|
|
17237
|
-
|
|
17238
|
-
|
|
17239
|
-
|
|
17240
|
-
|
|
17241
|
-
|
|
17242
|
-
|
|
17243
|
-
|
|
17244
|
-
|
|
17245
|
-
|
|
17246
|
-
|
|
17247
|
-
|
|
17248
|
-
|
|
17249
|
-
|
|
17250
|
-
|
|
17251
|
-
|
|
17252
|
-
|
|
17489
|
+
z: input.onRestore,
|
|
17490
|
+
a0: input.onCreate,
|
|
17491
|
+
a2: input.onExit,
|
|
17492
|
+
a3: name,
|
|
17493
|
+
a5: joinOpen,
|
|
17494
|
+
a6: selected,
|
|
17495
|
+
a8: busy,
|
|
17496
|
+
a9: restoring,
|
|
17497
|
+
ac: error,
|
|
17498
|
+
ad: steps,
|
|
17499
|
+
ae: steps?.length,
|
|
17500
|
+
ag: $si__input_workspaces && archived$1,
|
|
17501
|
+
ah: $si__input_workspaces && archived$1?.length,
|
|
17502
|
+
ai: addRepo,
|
|
17503
|
+
aj: branchesFor,
|
|
17504
|
+
al: removeRepo,
|
|
17505
|
+
am: toggleFork,
|
|
17506
|
+
an: setBranch,
|
|
17507
|
+
ao: restore,
|
|
17508
|
+
aq: createGen.n,
|
|
17509
|
+
as: create,
|
|
17510
|
+
au: refreshCatalog,
|
|
17511
|
+
ay: $busy__closures,
|
|
17253
17512
|
d: _serialize_if($scope0_reason, 0) && _existing_scope($childScope),
|
|
17254
|
-
|
|
17255
|
-
|
|
17256
|
-
|
|
17257
|
-
|
|
17258
|
-
|
|
17513
|
+
b0: $error__closures,
|
|
17514
|
+
aw: $catalogRefreshing__closures,
|
|
17515
|
+
o: _existing_scope($childScope4),
|
|
17516
|
+
b2: $steps_length__closures,
|
|
17517
|
+
az: $restoring__closures
|
|
17259
17518
|
});
|
|
17260
17519
|
_resume_branch($scope0_id);
|
|
17261
17520
|
});
|
|
@@ -17295,19 +17554,19 @@ var term_find_default = _template("E", (input) => {
|
|
|
17295
17554
|
const canStep = hasQuery && open;
|
|
17296
17555
|
const keybar = input.placement === "keybar";
|
|
17297
17556
|
_html(`<div${_attr_class([
|
|
17298
|
-
"
|
|
17299
|
-
keybar ? "
|
|
17300
|
-
!open && "
|
|
17301
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17557
|
+
"_em",
|
|
17558
|
+
keybar ? "_eo" : "_en",
|
|
17559
|
+
!open && "_eq"
|
|
17560
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eh", keybar ? "_ep" : "_ej"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17302
17561
|
if (!open) return;
|
|
17303
17562
|
query = v;
|
|
17304
17563
|
live.query = v;
|
|
17305
17564
|
run(0);
|
|
17306
|
-
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17565
|
+
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "_er"])} 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 && "_es"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17307
17566
|
icon_arrow_up_default({ size: 14 });
|
|
17308
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17567
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_es"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17309
17568
|
icon_arrow_down_default({ size: 14 });
|
|
17310
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17569
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_es"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17311
17570
|
icon_xmark_default({ size: 14 });
|
|
17312
17571
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
17313
17572
|
const $return = focusInput;
|
|
@@ -17458,7 +17717,7 @@ var term_default = _template("F", (input) => {
|
|
|
17458
17717
|
}
|
|
17459
17718
|
}, "F9", $scope0_id);
|
|
17460
17719
|
input.keys;
|
|
17461
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17720
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eH")}><div${_attr_class("_eI")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17462
17721
|
_if(() => {
|
|
17463
17722
|
if (findOpen) {
|
|
17464
17723
|
const $scope4_id = _scope_id();
|
|
@@ -17485,7 +17744,7 @@ var term_default = _template("F", (input) => {
|
|
|
17485
17744
|
_if(() => {
|
|
17486
17745
|
if (uploading) {
|
|
17487
17746
|
const $scope5_id = _scope_id();
|
|
17488
|
-
_html(`<div${_attr_class("
|
|
17747
|
+
_html(`<div${_attr_class("_eO")}>uploading…</div>`);
|
|
17489
17748
|
writeScope($scope5_id, {});
|
|
17490
17749
|
return 0;
|
|
17491
17750
|
}
|
|
@@ -17493,7 +17752,7 @@ var term_default = _template("F", (input) => {
|
|
|
17493
17752
|
_if(() => {
|
|
17494
17753
|
if (copiedFlash) {
|
|
17495
17754
|
const $scope6_id = _scope_id();
|
|
17496
|
-
_html(`<div${_attr_class("
|
|
17755
|
+
_html(`<div${_attr_class("_eN")}>Copied</div>`);
|
|
17497
17756
|
writeScope($scope6_id, {});
|
|
17498
17757
|
return 0;
|
|
17499
17758
|
}
|
|
@@ -17502,7 +17761,7 @@ var term_default = _template("F", (input) => {
|
|
|
17502
17761
|
_if(() => {
|
|
17503
17762
|
if (trapOpen) {
|
|
17504
17763
|
const $scope3_id = _scope_id();
|
|
17505
|
-
_html(`<div${_attr_class("
|
|
17764
|
+
_html(`<div${_attr_class("_eP")}><div${_attr_class("_eQ")}><p${_attr_class("_eR")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
|
|
17506
17765
|
_script($scope3_id, "F16");
|
|
17507
17766
|
_script($scope3_id, "F17");
|
|
17508
17767
|
writeScope($scope3_id, {});
|
|
@@ -17763,10 +18022,10 @@ var work_view_default = _template("J", (input) => {
|
|
|
17763
18022
|
}
|
|
17764
18023
|
}, "J14", $scope0_id);
|
|
17765
18024
|
const navShown = view === "nav" && input.navState?.view === "nav";
|
|
17766
|
-
_html(`<div${_attr_class(["
|
|
17767
|
-
["
|
|
17768
|
-
["
|
|
17769
|
-
}])}><div${_attr_class("
|
|
18025
|
+
_html(`<div${_attr_class(["_cq", {
|
|
18026
|
+
["_co"]: navShown,
|
|
18027
|
+
["_cp"]: !input.active
|
|
18028
|
+
}])}><div${_attr_class("_cr")}>`);
|
|
17770
18029
|
_if(() => {
|
|
17771
18030
|
if (error) {
|
|
17772
18031
|
const $scope8_id = _scope_id();
|
|
@@ -17789,7 +18048,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17789
18048
|
_if(() => {
|
|
17790
18049
|
if (diffMounted && ws) {
|
|
17791
18050
|
const $scope1_id = _scope_id();
|
|
17792
|
-
_html(`<div${_attr_class("
|
|
18051
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17793
18052
|
_set_serialize_reason({
|
|
17794
18053
|
0: $sg__input_workspace,
|
|
17795
18054
|
1: $sg__input_workspace,
|
|
@@ -17846,7 +18105,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17846
18105
|
_if(() => {
|
|
17847
18106
|
if (manageMounted && ws) {
|
|
17848
18107
|
const $scope2_id = _scope_id();
|
|
17849
|
-
_html(`<div${_attr_class("
|
|
18108
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17850
18109
|
_set_serialize_reason({
|
|
17851
18110
|
0: $sg__input_workspace,
|
|
17852
18111
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17872,7 +18131,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17872
18131
|
_if(() => {
|
|
17873
18132
|
if (settingsMounted) {
|
|
17874
18133
|
const $scope3_id = _scope_id();
|
|
17875
|
-
_html(`<div${_attr_class("
|
|
18134
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17876
18135
|
_set_serialize_reason({
|
|
17877
18136
|
0: _serialize_guard($scope0_reason, 0),
|
|
17878
18137
|
1: $sg__input_workspace,
|
|
@@ -17914,7 +18173,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17914
18173
|
_if(() => {
|
|
17915
18174
|
if (newMounted) {
|
|
17916
18175
|
const $scope4_id = _scope_id();
|
|
17917
|
-
_html(`<div${_attr_class("
|
|
18176
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
17918
18177
|
_set_serialize_reason({
|
|
17919
18178
|
0: 1,
|
|
17920
18179
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17939,13 +18198,13 @@ var work_view_default = _template("J", (input) => {
|
|
|
17939
18198
|
return 0;
|
|
17940
18199
|
}
|
|
17941
18200
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17942
|
-
_html(`<div${_attr_class("
|
|
18201
|
+
_html(`<div${_attr_class("_ct")}${_attr("inert", view !== "term")}>`);
|
|
17943
18202
|
_if(() => {
|
|
17944
18203
|
if (ws && shownSessions) {
|
|
17945
18204
|
const $scope5_id = _scope_id();
|
|
17946
18205
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17947
18206
|
const $scope6_id = _scope_id();
|
|
17948
|
-
_html(`<div${_attr_class("
|
|
18207
|
+
_html(`<div${_attr_class("_cu")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17949
18208
|
_set_serialize_reason(2);
|
|
17950
18209
|
const $childScope5 = _peek_scope_id();
|
|
17951
18210
|
term_default({
|
|
@@ -17971,7 +18230,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17971
18230
|
_if(() => {
|
|
17972
18231
|
if (!shownSessions.length && view === "term") {
|
|
17973
18232
|
const $scope7_id = _scope_id();
|
|
17974
|
-
_html(`<div${_attr_class("
|
|
18233
|
+
_html(`<div${_attr_class("_cl")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
17975
18234
|
_script($scope7_id, "J38");
|
|
17976
18235
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
17977
18236
|
return 0;
|
|
@@ -17981,7 +18240,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17981
18240
|
return 0;
|
|
17982
18241
|
} else if (ws) {
|
|
17983
18242
|
const $scope10_id = _scope_id();
|
|
17984
|
-
_html(`<p${_attr_class("
|
|
18243
|
+
_html(`<p${_attr_class("_cl")}>Loading sessions…</p>`);
|
|
17985
18244
|
writeScope($scope10_id, {});
|
|
17986
18245
|
return 1;
|
|
17987
18246
|
}
|
|
@@ -18085,7 +18344,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18085
18344
|
});
|
|
18086
18345
|
//#endregion
|
|
18087
18346
|
//#region src/tags/key-bar.css.ts
|
|
18088
|
-
var kbtn = "
|
|
18347
|
+
var kbtn = "_bF _6 _l";
|
|
18089
18348
|
_template("tb", (input) => {
|
|
18090
18349
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
18091
18350
|
const $scope0_id = _scope_id();
|
|
@@ -18101,8 +18360,8 @@ _template("tb", (input) => {
|
|
|
18101
18360
|
});
|
|
18102
18361
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
18103
18362
|
});
|
|
18104
|
-
var sessOpen = "
|
|
18105
|
-
var sessRename = "
|
|
18363
|
+
var sessOpen = "_ex _I";
|
|
18364
|
+
var sessRename = "_eB _J";
|
|
18106
18365
|
//#endregion
|
|
18107
18366
|
//#region src/tags/key-bar-sessions.marko
|
|
18108
18367
|
var usageFor;
|
|
@@ -18133,7 +18392,7 @@ _template("p", (input) => {
|
|
|
18133
18392
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
18134
18393
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
18135
18394
|
}, "p2", $scope0_id);
|
|
18136
|
-
_html(`<button${_attr_class([kbtn, "
|
|
18395
|
+
_html(`<button${_attr_class([kbtn, "_et"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
18137
18396
|
_set_serialize_reason({
|
|
18138
18397
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
18139
18398
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -18147,12 +18406,12 @@ _template("p", (input) => {
|
|
|
18147
18406
|
"_A",
|
|
18148
18407
|
"_bc",
|
|
18149
18408
|
phase[sessionPhase(current$2?.state)]
|
|
18150
|
-
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "
|
|
18409
|
+
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "_eu"])}>`);
|
|
18151
18410
|
_for_of(input.sessions, (s) => {
|
|
18152
18411
|
const $scope1_id = _scope_id();
|
|
18153
18412
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
18154
18413
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
18155
|
-
_html(`<div${_attr_class(["
|
|
18414
|
+
_html(`<div${_attr_class(["_ew", { ["_ev"]: s.id === input.sessionId }])}>`);
|
|
18156
18415
|
_if(() => {
|
|
18157
18416
|
if (renamingId === s.id) {
|
|
18158
18417
|
const $scope5_id = _scope_id();
|
|
@@ -18184,7 +18443,7 @@ _template("p", (input) => {
|
|
|
18184
18443
|
agent: activeAgent(s),
|
|
18185
18444
|
size: 14
|
|
18186
18445
|
});
|
|
18187
|
-
_html(`<span${_attr_class("
|
|
18446
|
+
_html(`<span${_attr_class("_ey")}><span${_attr_class("_eA")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
18188
18447
|
_if(() => {
|
|
18189
18448
|
if (s.id === input.sessionId) {
|
|
18190
18449
|
const $scope7_id = _scope_id();
|
|
@@ -18196,7 +18455,7 @@ _template("p", (input) => {
|
|
|
18196
18455
|
const $childScope4 = _peek_scope_id();
|
|
18197
18456
|
usage_pcts_default({
|
|
18198
18457
|
agent: plan,
|
|
18199
|
-
class: "
|
|
18458
|
+
class: "_ez"
|
|
18200
18459
|
});
|
|
18201
18460
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
18202
18461
|
return 0;
|
|
@@ -18213,7 +18472,7 @@ _template("p", (input) => {
|
|
|
18213
18472
|
_if(() => {
|
|
18214
18473
|
if (input.onRenameSession) {
|
|
18215
18474
|
const $scope6_id = _scope_id();
|
|
18216
|
-
_html(`<button${_attr_class(["
|
|
18475
|
+
_html(`<button${_attr_class(["_eC", "_eD"])} title="Rename session">`);
|
|
18217
18476
|
icon_edit_default({ size: 12 });
|
|
18218
18477
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
18219
18478
|
_script($scope6_id, "p4");
|
|
@@ -18225,7 +18484,7 @@ _template("p", (input) => {
|
|
|
18225
18484
|
if (input.onCloseSession) {
|
|
18226
18485
|
const $scope3_id = _scope_id();
|
|
18227
18486
|
_html(`<button${_attr_class([
|
|
18228
|
-
"
|
|
18487
|
+
"_eC",
|
|
18229
18488
|
"_8",
|
|
18230
18489
|
{ ["_s"]: armedClose === s.id }
|
|
18231
18490
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -18252,7 +18511,7 @@ _template("p", (input) => {
|
|
|
18252
18511
|
k: $si__input_sessions && $for_content__s_id__closures
|
|
18253
18512
|
});
|
|
18254
18513
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
18255
|
-
_html(`<div${_attr_class("
|
|
18514
|
+
_html(`<div${_attr_class("_eE")}><span${_attr_class("_eF")}>New session</span><div${_attr_class("_eG")}>`);
|
|
18256
18515
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
18257
18516
|
const $scope4_id = _scope_id();
|
|
18258
18517
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -27252,4 +27511,4 @@ server.listen(port, () => {
|
|
|
27252
27511
|
//#endregion
|
|
27253
27512
|
export {};
|
|
27254
27513
|
|
|
27255
|
-
;var __MARKO_MANIFEST__={"
|
|
27514
|
+
;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w._-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/new-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/settings-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w._-BmFMmeGE.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BmFMmeGE.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-CyfjTVs-.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-CyfjTVs-.css\"",">",2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">"],"defer":[2,"/assets/diff-view-Cr-PefQe.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-Cr-PefQe.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|