@dylanpiercey/work 0.0.153 → 0.0.154
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 +777 -530
- package/dist/public/assets/_BXNuoDV3.js +1 -0
- package/dist/public/assets/_Bcy6Pq2-.js +1 -0
- package/dist/public/assets/_BjJumygZ.js +1 -0
- package/dist/public/assets/_CEKjLIVs.js +1 -0
- package/dist/public/assets/_CSo-Q5Mw.js +1 -0
- package/dist/public/assets/{_kcU94G2e.js → _Cdz2XtpX.js} +7 -7
- package/dist/public/assets/_Cdz2XtpX.js.br +0 -0
- package/dist/public/assets/_Ct1taywS.js +1 -0
- package/dist/public/assets/_Cy-hb_bd.js +1 -0
- package/dist/public/assets/_D-_EO5gk.js +1 -0
- package/dist/public/assets/_D-pZx7Du.js +1 -0
- package/dist/public/assets/_D1NQ8Ak7.js +1 -0
- package/dist/public/assets/_D1NQ8Ak7.js.br +0 -0
- package/dist/public/assets/_DCrsdU84.js +1 -0
- package/dist/public/assets/_DDIWSDe6.js +1 -0
- package/dist/public/assets/_DFwE0FAS.js +1 -0
- package/dist/public/assets/_DHlr4Tsy.js +1 -0
- package/dist/public/assets/_DQjqPqJ6.js +83 -0
- package/dist/public/assets/_DQjqPqJ6.js.br +0 -0
- package/dist/public/assets/_DaY1YO13.js +1 -0
- package/dist/public/assets/_DqM4h5qK.js +1 -0
- package/dist/public/assets/_LzBeeO2Z.js +1 -0
- package/dist/public/assets/_SSjhgH1l.js +1 -0
- package/dist/public/assets/_mcwV1QCh.js +1 -0
- package/dist/public/assets/_ryNxYsOR.js +1 -0
- package/dist/public/assets/app-page-CEMTHZv1.css +1 -0
- package/dist/public/assets/app-page-CEMTHZv1.css.br +0 -0
- package/dist/public/assets/diff-view-C7n2ViB6.css +1 -0
- package/dist/public/assets/diff-view-C7n2ViB6.css.br +0 -0
- package/dist/public/assets/diff-view-DqyO3Q0l.js +2 -0
- package/dist/public/assets/{icon-arrow-down-DfdrbjtN.css → icon-arrow-down-DWdcJRsU.css} +1 -1
- package/dist/public/assets/icon-arrow-down-DWdcJRsU.css.br +0 -0
- package/dist/public/assets/new-FeHAUUAK.js +1 -0
- package/dist/public/assets/settings-FeHAUUAK.js +1 -0
- package/dist/public/assets/w-FeHAUUAK.js +1 -0
- package/dist/public/assets/w._-D-RmquIa.js +1 -0
- package/dist/public/assets/w._-FeHAUUAK.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 pop = "_ea __";
|
|
7249
|
+
var agentList = "_cI _bZ _cv _cG";
|
|
7250
|
+
var agentRow = "_cM _cw";
|
|
7251
|
+
var toolGrid = "_cU _cG";
|
|
7252
|
+
var toolRow = "_cV _cH";
|
|
7253
|
+
var themeSeg = "_di _be";
|
|
7254
|
+
var checkList = "_dO _bX";
|
|
7255
|
+
var list$2 = "_cI _bZ _cv _cG";
|
|
7256
|
+
var flatCardRow = "_cJ _cH";
|
|
7257
|
+
var pop$1 = "_dY __";
|
|
7258
|
+
var spinner = "_d1 _2 _G";
|
|
7259
|
+
var busy = "_ec _eb";
|
|
7260
|
+
var pop = "_ee __";
|
|
7262
7261
|
var sectionCount = "_bW _N _O";
|
|
7263
|
-
var row$1 = "_b7 _bZ";
|
|
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("_d5")}>`);
|
|
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, "_gJ"])}${_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, "_gJ"])}${_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("_d7")}><h1${_attr("id", input.titleId)}${_attr_class("_d6")}>${_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("_d8")}>`);
|
|
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("_d9")}>`);
|
|
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 = "_g8 _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(["_g2", { ["_g3"]: input.hideName }])}><div${_attr_class("_g4")}>`);
|
|
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("_hm")}>${_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("_g5")}>${_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("_g6")}${_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(["_g7", { ["_hn"]: 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 ? "_hf" : win.used_percent >= 70 ? "_he" : win.used_percent >= 40 ? "_hd" : "_hc";
|
|
7467
|
+
const pctClass = win.used_percent >= 90 ? "_hk" : win.used_percent >= 70 ? "_hj" : win.used_percent >= 40 ? "_hi" : "_hh";
|
|
7468
|
+
_html(`<div${_attr_class("_g9")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_g_")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_ha")}><span${_attr_class(["_hb", 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(["_hg", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hl")}>`);
|
|
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(["_gQ", 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("_gR")}><span${_attr_class("_gT")}><span${_attr_class("_gU")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gV", "_gW"])} 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, "_gX"])}${_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(["_gR", "_gY"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gZ")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_g0")}>${_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(["_gR", "_gY"])}><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(["_gR", "_g1"])}>${_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(["_gR", "_gS"])}><span${_attr_class("_gT")}><span${_attr_class("_gU")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gV")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gX"])}${_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("_ea")}>`);
|
|
7699
7697
|
_if(() => {
|
|
7700
7698
|
if (input.busy != null) {
|
|
7701
7699
|
const $scope1_id = _scope_id();
|
|
@@ -7705,11 +7703,11 @@ 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("_eb")}${_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("_ed")}>${_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
|
}
|
|
@@ -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("_ef")}>`);
|
|
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 = "_gP _gL";
|
|
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(["_gK", 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("_gN")}>`);
|
|
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("_gO")}>`);
|
|
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("_gO")}>`);
|
|
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("_gM")}${_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("_d2")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d3")}><div${_attr_class("_d4")}>`);
|
|
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("_cL")}>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("_dm")} role=status><div${_attr_class("_dn")}>`);
|
|
8590
8588
|
_if(() => {
|
|
8591
8589
|
if (selfUpdating) {
|
|
8592
8590
|
const $scope79_id = _scope_id();
|
|
8593
|
-
_html(`<span${_attr_class("
|
|
8591
|
+
_html(`<span${_attr_class("_do")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dp")}>The app restarts and reloads when it is done.</span>`);
|
|
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("_do")}>Update available</span><span${_attr_class("_dp")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8599
8597
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8600
8598
|
return 1;
|
|
8601
8599
|
}
|
|
@@ -8614,25 +8612,25 @@ 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("_bU")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bV")}><h2${_attr("id", agentsId)}${_attr_class("_b8")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("
|
|
8615
|
+
_html(`<section${_attr_class("_bU")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bV")}><h2${_attr("id", agentsId)}${_attr_class("_b8")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_cN")}><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", "_cO"])} 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(["_cP", { ["_cR"]: lone && !lone.enabled }])}>`);
|
|
8636
8634
|
_set_serialize_reason(12);
|
|
8637
8635
|
const $childScope3 = _peek_scope_id();
|
|
8638
8636
|
icon_agent_default({
|
|
@@ -8652,7 +8650,7 @@ 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("_cK")}><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) {
|
|
@@ -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(["_cT", { ["_cR"]: 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(["_cQ", { ["_cR"]: !inst.enabled }])}><div${_attr_class("_cP")}>`);
|
|
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(["_cS", "_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 });
|
|
@@ -8789,7 +8787,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
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, "_c2"])} 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
|
+
"_dS",
|
|
8803
|
+
"_c2",
|
|
8804
|
+
{ ["_dT"]: !addingHost }
|
|
8805
|
+
])}><label${_attr_class(["_1", "_dV"])}>`);
|
|
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
|
+
"_dW"
|
|
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
|
+
"_c1"
|
|
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, "_dX"])} 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");
|
|
@@ -8834,10 +8832,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
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(["_cw", "
|
|
8835
|
+
_html(`<div${_attr_class(["_cw", "_c3"])}><div${_attr_class("_c4")}>`);
|
|
8838
8836
|
icon_github_default({
|
|
8839
8837
|
size: 18,
|
|
8840
|
-
class: "
|
|
8838
|
+
class: "_c5"
|
|
8841
8839
|
});
|
|
8842
8840
|
_html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8843
8841
|
_if(() => {
|
|
@@ -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(["_b3", "
|
|
8853
|
+
_html(`<span${_attr_class(["_b3", "_c6"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
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(["_b3", "
|
|
8858
|
+
_html(`<span${_attr_class(["_b3", "_c6"])}>`);
|
|
8861
8859
|
icon_check_default({
|
|
8862
8860
|
size: 12,
|
|
8863
|
-
class: "
|
|
8861
|
+
class: "_c7"
|
|
8864
8862
|
});
|
|
8865
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8863
|
+
_html(` Signed in as <strong${_attr_class("_c9")}>${_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
8869
|
"_b3",
|
|
8872
|
-
"
|
|
8873
|
-
"
|
|
8870
|
+
"_c6",
|
|
8871
|
+
"_c8"
|
|
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(["_b3", "
|
|
8879
|
+
_html(`<span${_attr_class(["_b3", "_c6"])}>Not signed in</span>`);
|
|
8882
8880
|
writeScope($scope92_id, {});
|
|
8883
8881
|
return 3;
|
|
8884
8882
|
}
|
|
@@ -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("_c_")}><span${_attr_class("_da")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dc")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_db")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
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: ["_cw", "
|
|
8956
|
+
class: ["_cw", "_dd"],
|
|
8959
8957
|
items: hostSso$1,
|
|
8960
8958
|
skipped: skippedSso,
|
|
8961
8959
|
busy,
|
|
@@ -8994,18 +8992,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8994
8992
|
return 0;
|
|
8995
8993
|
}
|
|
8996
8994
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8997
|
-
_html(`</section><section${_attr_class("_bU")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bV")}><h2${_attr("id", machineId)}${_attr_class("_b8")}>Machine</h2></div><div${_attr_class(["_bZ", "_cv"])}><div${_attr_class(["_cw", "
|
|
8995
|
+
_html(`</section><section${_attr_class("_bU")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bV")}><h2${_attr("id", machineId)}${_attr_class("_b8")}>Machine</h2></div><div${_attr_class(["_bZ", "_cv"])}><div${_attr_class(["_cw", "_cx"])}><div${_attr_class(["_cy", { ["_cz"]: skillsOpen }])}><button${_attr_class("_cA")} 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: ["_cE", { ["_cF"]: skillsOpen }]
|
|
9003
9001
|
});
|
|
9004
|
-
_html(`<span${_attr_class("
|
|
9002
|
+
_html(`<span${_attr_class("_cB")}>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("_cC")}>${_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(["_dS", { ["_dT"]: true }])}><label${_attr_class(["_1", "_dV"])}>`);
|
|
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
|
+
"_dW"
|
|
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, "_dX"])} 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, "_dZ"])}${_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("_d0")}>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("_b0")}><span${_attr_class(["
|
|
9061
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_cX", "_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("_cK")}><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
|
|
@@ -9095,11 +9093,11 @@ 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("_b0")}><span${_attr_class(["
|
|
9096
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_cX", "_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("_cK")}><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 {
|
|
@@ -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("_d0")}>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,7 +9165,7 @@ 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("_cD")}>`);
|
|
9171
9169
|
_if(() => {
|
|
9172
9170
|
if (skills && !skills.agents.length) {
|
|
9173
9171
|
const $scope103_id = _scope_id();
|
|
@@ -9182,7 +9180,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
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("_d_")}>`);
|
|
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();
|
|
@@ -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(["_cw", "
|
|
9269
|
+
_html(`</div><div${_attr_class(["_cw", "_cx"])}><div${_attr_class(["_cy", { ["_cz"]: machineOpen }])}><button${_attr_class("_cA")} 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: ["_cE", { ["_cF"]: machineOpen }]
|
|
9277
9275
|
});
|
|
9278
|
-
_html(`<span${_attr_class("
|
|
9276
|
+
_html(`<span${_attr_class("_cB")}>Tools</span><span${_attr_class("_cC")}>${_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(["_dS", { ["_dT"]: true }])}><label${_attr_class(["_1", "_dV"])}>`);
|
|
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
|
+
"_dW"
|
|
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, "_dX"])} 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, "_dZ"])}${_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("_d0")}>Searching the mise registry…</li>`);
|
|
9339
9337
|
writeScope($scope111_id, {});
|
|
9340
9338
|
return 0;
|
|
9341
9339
|
}
|
|
@@ -9343,18 +9341,18 @@ 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("_d0")}>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("_b0")}><span${_attr_class(["
|
|
9351
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_cX", "_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("_cK")}><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) {
|
|
@@ -9404,7 +9402,7 @@ 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("_cD")}>`);
|
|
9408
9406
|
_if(() => {
|
|
9409
9407
|
if (setup && !setup.mise.installed) {
|
|
9410
9408
|
const $scope27_id = _scope_id();
|
|
@@ -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(["_cX", "_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("_cK")}><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, "_c0"])}${_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, { ["_cW"]: !t.installed }])}><span${_attr_class(["_cX", "_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("_cK")}><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(["_cZ", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope40_id, "b", t.version, 2)}`);
|
|
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("_cY")}>${_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, "_c0"])}${_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(["_cZ", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
|
|
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("_bU")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bV")}><h2${_attr("id", appearanceId)}${_attr_class("_b8")}>Appearance</h2></div><div${_attr_class(["_bZ", "
|
|
9640
|
+
_html(`</div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bV")}><h2${_attr("id", appearanceId)}${_attr_class("_b8")}>Appearance</h2></div><div${_attr_class(["_bZ", "_de"])}><div${_attr_class("_dq")}><img${_attr_class("_dr")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}<span${_attr_class("_ds")}><span${_attr_class("_dt")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_du")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_df")}><span${_attr_class("_dg")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9643
9641
|
setInstance({ name: v });
|
|
9644
|
-
}, "y4", $scope0_id))}${_attr_class(["_Z", "
|
|
9642
|
+
}, "y4", $scope0_id))}${_attr_class(["_Z", "_dh"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_df")}><span${_attr_class("_dg")}>Theme</span><span${_attr_class("_dj")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
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
|
+
"_dv",
|
|
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", "_dk"])}>`);
|
|
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", "_dl"])} 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
|
-
"
|
|
9682
|
-
"
|
|
9683
|
-
{ ["
|
|
9678
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_df")}><span${_attr_class("_dg")}>Accent</span><span${_attr_class("_dw")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9679
|
+
"_dx",
|
|
9680
|
+
"_dA",
|
|
9681
|
+
{ ["_dy"]: !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: "_dz"
|
|
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(["_dx", { ["_dy"]: accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}>`);
|
|
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: "_dz"
|
|
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
|
+
"_dx",
|
|
9717
|
+
"_dB",
|
|
9718
|
+
{ ["_dy"]: 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("_dC")} 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: "_dz"
|
|
9730
9728
|
});
|
|
9731
9729
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9732
9730
|
return 0;
|
|
@@ -9737,11 +9735,11 @@ 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("_bU")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bV")}><h2${_attr("id", backupId)}${_attr_class("_b8")}>Backup</h2></div><div${_attr_class(["_bZ", "_cv"])}><div${_attr_class("_cw")}><div${_attr_class("
|
|
9738
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bV")}><h2${_attr("id", backupId)}${_attr_class("_b8")}>Backup</h2></div><div${_attr_class(["_bZ", "_cv"])}><div${_attr_class("_cw")}><div${_attr_class("_dD")}><div${_attr_class("_b0")}>`);
|
|
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("_cK")}><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 {
|
|
@@ -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("_dF")}><p${_attr_class("_dG")}>In the file: ${_text_resume($scope67_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope67_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope67_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope67_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope67_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope67_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope67_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_dG")}>Not in the file: `);
|
|
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("_dH")}>`);
|
|
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("_dI")}><span${_attr_class("_b1")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dH")}>`);
|
|
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("_dJ")}><span${_attr_class("_dK")}><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("_dL")}>`);
|
|
9812
9810
|
_for_of(r.modified, (f) => {
|
|
9813
9811
|
const $scope141_id = _scope_id();
|
|
9814
|
-
_html(`<li${_attr_class("
|
|
9812
|
+
_html(`<li${_attr_class("_dM")}><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("_dM")}><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("_dM")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
|
|
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(["_dM", "_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,17 +9854,17 @@ 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("_dN")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
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("_cw")}><div${_attr_class("
|
|
9863
|
+
_html(`</div><div${_attr_class("_cw")}><div${_attr_class("_dD")}><div${_attr_class("_b0")}>`);
|
|
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("_cK")}><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) {
|
|
@@ -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("_dE")} 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("_dF")}><p${_attr_class("_dG")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
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(["_dP", { ["_dR"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dQ")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9906
9904
|
_if(() => {
|
|
9907
9905
|
if (w.status === "archived") {
|
|
9908
9906
|
const $scope148_id = _scope_id();
|
|
@@ -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(["_dP", { ["_dR"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dQ")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_b3")}>`);
|
|
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("_dN")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
10026
10024
|
_script($scope69_id, "y85");
|
|
10027
10025
|
writeScope($scope69_id, {});
|
|
10028
10026
|
return 0;
|
|
@@ -10253,6 +10251,7 @@ function vapidKey(base64) {
|
|
|
10253
10251
|
}
|
|
10254
10252
|
var iconBtn = "_b_ _l";
|
|
10255
10253
|
var settingsDot = "_ca _bc";
|
|
10254
|
+
var navToggle = "_ce _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 = "_fa _N";
|
|
10309
|
+
var rowArchive = "_fc _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 = "_hS _u _hR";
|
|
10321
|
+
var portChip = "_hT _u _hR";
|
|
10323
10322
|
var prState = {
|
|
10324
|
-
open: "
|
|
10325
|
-
merged: "
|
|
10326
|
-
closed: "
|
|
10323
|
+
open: "_hX",
|
|
10324
|
+
merged: "_hY",
|
|
10325
|
+
closed: "_hZ"
|
|
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("_hQ")}>`);
|
|
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(["_hU", { ["_h2"]: !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(["_hU", "_hV"])}${_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
|
+
"_hU",
|
|
10445
|
+
"_hV",
|
|
10446
|
+
"_hW"
|
|
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(["_hU", "_h0"])}${_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(["_hU", "_h1"])}${_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
|
+
"_hU",
|
|
10487
|
+
"_hV",
|
|
10488
|
+
"_hW",
|
|
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 = "_fy _l";
|
|
10532
|
+
var wsBtn = "_fD _I";
|
|
10533
|
+
var rowIcon = "_fG _4 _l";
|
|
10534
|
+
var close = "_fH _7 _l _8";
|
|
10535
|
+
var sessRename$1 = "_fS _J";
|
|
10536
|
+
var sessBtn$1 = "_fU _I";
|
|
10538
10537
|
//#endregion
|
|
10539
10538
|
//#region src/styles/session-pop.css.ts
|
|
10540
|
-
var sessionPop = "
|
|
10541
|
-
var sessionPopBtn = "
|
|
10539
|
+
var sessionPop = "_eH __";
|
|
10540
|
+
var sessionPopBtn = "_eI _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
|
+
"_ho",
|
|
10588
10587
|
input.class,
|
|
10589
|
-
{ ["
|
|
10588
|
+
{ ["_hp"]: 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("_hq")}>`);
|
|
10594
10593
|
_if(() => {
|
|
10595
10594
|
if (i) {
|
|
10596
10595
|
const $scope3_id = _scope_id();
|
|
10597
|
-
_html(`<span${_attr_class("
|
|
10596
|
+
_html(`<span${_attr_class("_ht")} 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("_hr")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hs", win$1.used_percent >= 90 ? "_hk" : win$1.used_percent >= 70 ? "_hj" : win$1.used_percent >= 40 ? "_hi" : "_hh"])}>${_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, { ["_fw"]: 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
|
+
"_fA",
|
|
10724
|
+
"_fW",
|
|
10726
10725
|
{
|
|
10727
|
-
["
|
|
10728
|
-
["
|
|
10726
|
+
["_fB"]: input.railPop,
|
|
10727
|
+
["_fz"]: 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("_fC")}><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: "_fY"
|
|
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", "_fX"])}></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("_fJ")}><span${_attr_class("_fK")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_f0")}${_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("_fZ")}><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(["_fA", {
|
|
10771
|
+
["_fw"]: input.current,
|
|
10773
10772
|
["_bd"]: input.current,
|
|
10774
|
-
["
|
|
10775
|
-
["
|
|
10776
|
-
}])}><div${_attr_class("
|
|
10773
|
+
["_fB"]: input.railPop,
|
|
10774
|
+
["_fz"]: input.page
|
|
10775
|
+
}])}><div${_attr_class("_fC")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10777
10776
|
"_A",
|
|
10778
10777
|
phase[dot$1],
|
|
10779
|
-
"
|
|
10778
|
+
"_fO"
|
|
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: "_fI"
|
|
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("_fJ")}><span${_attr_class("_fK")}>${_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("_fN")}>${_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("_fE")}>`);
|
|
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, { ["_fx"]: 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("_fT")}>`);
|
|
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: "_fL"
|
|
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(["_fF", { ["_fw"]: 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
|
+
"_fR"
|
|
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: "_fV"
|
|
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: "_fV"
|
|
10946
10945
|
});
|
|
10947
|
-
_html(`<span${_attr_class("
|
|
10946
|
+
_html(`<span${_attr_class("_fP")}>${_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("_fQ")}><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: "_fM"
|
|
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("_eU")}>`);
|
|
11102
11101
|
_if(() => {
|
|
11103
11102
|
if (ws) {
|
|
11104
11103
|
const $scope1_id = _scope_id();
|
|
11105
|
-
_html(`<section${_attr_class("
|
|
11104
|
+
_html(`<section${_attr_class("_eV")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eW")} 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: "_eZ"
|
|
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("_eX")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_eY")}>${_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("_e0")}>`);
|
|
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(["_e2", { ["_e1"]: 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("_e3")}>${_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("_e4")}>`);
|
|
11177
11176
|
_if(() => {
|
|
11178
11177
|
if (done) {
|
|
11179
11178
|
const $scope11_id = _scope_id();
|
|
11180
|
-
_html(`<h2${_attr_class(["_b8", "
|
|
11179
|
+
_html(`<h2${_attr_class(["_b8", "_e5"])}>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("_e6")}>`);
|
|
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("_e7")}><a${_attr("href", `/w/${id}`)}${_attr_class("_e8")}><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: "_e_"
|
|
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("_e9")}>${_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: "_fb"
|
|
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++);
|
|
@@ -11487,9 +11538,9 @@ var side_nav_default = _template("B", (input) => {
|
|
|
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);
|
|
@@ -11547,11 +11598,11 @@ var side_nav_default = _template("B", (input) => {
|
|
|
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(["_b8", "_ck"])}>${_text_resume($
|
|
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(["_b8", "_ck"])}>${_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("_cr")}>`);
|
|
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(["__", "_cu"])}${_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("_cs")}>`);
|
|
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
|
+
"_cl"
|
|
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", "_ct"])}></div>`);
|
|
11887
|
+
_if(() => {}, $scope10_id, "c", 1, 1, 1, 0, 1);
|
|
11888
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_b9"]: 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, { ["_b9"]: 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 = "_gm _5 _l";
|
|
12242
|
+
var pageTitle = "_gt _d6";
|
|
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("_hM")}><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("_hN")}><button type=button${_attr_class(["_r", "_hO"])}${_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("_hP")} 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 = "_iS _y";
|
|
13972
|
+
var repoTitle = "_iY _x";
|
|
13973
|
+
var path$1 = "_je _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(["_jg", 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("_iO")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iP", { ["_iQ"]: 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("_iR")} 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
|
+
"_jb",
|
|
14078
|
+
!input.collapsed && "_jc",
|
|
14079
|
+
input.expanding && "_jd"
|
|
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("_iZ")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_i0"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i2"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i1"])}>${_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
|
+
"_i3"
|
|
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
|
+
"_i4"
|
|
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", "_i4"])}${_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", "_i4"])}${_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("_iT")}><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("_iU")}>+${_text_resume($scope14_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iV")}>−${_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(["_iX", { ["_iW"]: 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("_i6")}${_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
|
+
"_i7",
|
|
14197
|
+
forceNear && "_i8",
|
|
14198
|
+
input.findHit?.key === file$2.key && "_iM"
|
|
14199
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_i_")}><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 && "_iN"])}${_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", "_i5"])} 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(["_jf", "_i9"])}>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(["_jf", "_i9"])}>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(["_jf", "_i9"])}>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("_ja")}></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: "_i9",
|
|
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 = "_ji _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("_jh")}><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("_im")}><button type=button${_attr_class(["_in", { ["_ie"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_iu")}>`);
|
|
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("_io")}>${_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(["_iq", { ["_ip"]: 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("_ir")}>${_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", "_is"])} 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("_it")}>`);
|
|
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(["_if", { ["_ie"]: input.open === false }])}><div${_attr_class("_ig")}>`);
|
|
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("_ih")}>`);
|
|
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("_ii")}>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("_ij")}><button type=button${_attr_class(["_ik", { ["_ie"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_iu")}>`);
|
|
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("_io")}>${_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("_il")}${_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 = "_iG _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("_ix")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_iy")} role=dialog aria-label="Jump to file"><div${_attr_class("_iz")}><strong${_attr_class("_iw")}>Files</strong><span${_attr_class("_iA")}>${_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, "_iv"])} 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("_iI")}>`);
|
|
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("_iB")}>`);
|
|
14499
14756
|
_for_of(groups, (group) => {
|
|
14500
14757
|
const $scope2_id = _scope_id();
|
|
14501
|
-
_html(`<div${_attr_class("
|
|
14758
|
+
_html(`<div${_attr_class("_iC")}><div${_attr_class("_iD")}>${_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("_iE")}>`);
|
|
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(["_iF", "_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("_iH")}><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", "_iK"])} 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: "_iL"
|
|
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("_iJ")}>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("_gj")}><div${_attr_class("_go")}><div${_attr_class("_gp")}><div${_attr_class(["_gz", { ["_gy"]: !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, "_gq"])} 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("_gs")}>${_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("_gr")}>`);
|
|
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("_gn")}>`);
|
|
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
|
+
"_gl",
|
|
15394
|
+
{ ["_gk"]: 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, "_gl"])} 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", "_gI"])} 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", "_gA"])}>`);
|
|
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", "_gB"])} 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(["_gw", { ["_gv"]: !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
|
+
"_gu",
|
|
15448
|
+
"_gl"
|
|
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("_gx")} 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("_gD")} aria-hidden=true><div${_attr_class(["_gE", "_gF"])}></div><div${_attr_class(["_gE", "_gG"])}></div><div${_attr_class(["_gE", "_gH"])}></div><div${_attr_class(["_gE", "_gG"])}></div><div${_attr_class(["_gE", "_gH"])}></div></div>`);
|
|
15224
15481
|
writeScope($scope15_id, {});
|
|
15225
15482
|
return 0;
|
|
15226
15483
|
}
|
|
@@ -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 = "_f1 _d8";
|
|
15883
|
+
var pathMeta = "_f4 _y";
|
|
15884
|
+
var skillRow = "_f_ _f5";
|
|
15885
|
+
var skillName = "_gb _f6";
|
|
15886
|
+
var skillDesc = "_ge _f7";
|
|
15887
|
+
var skillEnd = "_gf _f8";
|
|
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 = "_hA _I";
|
|
15906
|
+
var resultBranch = "_hC _4 _l";
|
|
15651
15907
|
//#endregion
|
|
15652
15908
|
//#region src/tags/icons/icon-branch.marko
|
|
15653
15909
|
var icon_branch_default = _template("U", (input) => {
|
|
@@ -15677,7 +15933,7 @@ 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("_hE")}>`);
|
|
15681
15937
|
_if(() => {
|
|
15682
15938
|
{
|
|
15683
15939
|
const $scope4_id = _scope_id();
|
|
@@ -15782,21 +16038,21 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15782
16038
|
_resume_branch($scope8_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 ? "_dS" : "_hu", {
|
|
16042
|
+
["_dT"]: compact && !input$2.open,
|
|
16043
|
+
["_dU"]: input$2.pinned
|
|
15788
16044
|
}])}>`);
|
|
15789
16045
|
_if(() => {
|
|
15790
16046
|
if (!compact && ssoPending.length) {
|
|
15791
16047
|
const $scope10_id = _scope_id();
|
|
15792
|
-
_html(`<div${_attr_class("
|
|
16048
|
+
_html(`<div${_attr_class("_hv")}>`);
|
|
15793
16049
|
ssoBlock.content({});
|
|
15794
16050
|
_html("</div>");
|
|
15795
16051
|
writeScope($scope10_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(`<label${_attr_class(["_1", compact && "_dV"])}>`);
|
|
15800
16056
|
icon_search_default({
|
|
15801
16057
|
size: 14,
|
|
15802
16058
|
class: "_2"
|
|
@@ -15808,12 +16064,12 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15808
16064
|
}, "w0", $scope0_id))}${_attr_class([
|
|
15809
16065
|
compact ? "_Z" : inputLg,
|
|
15810
16066
|
"_3",
|
|
15811
|
-
compact && "
|
|
16067
|
+
compact && "_dW"
|
|
15812
16068
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "e")}</label>${_el_resume($scope0_id, "c", $sg__input_compact)}`);
|
|
15813
16069
|
_if(() => {
|
|
15814
16070
|
if (compact) {
|
|
15815
16071
|
const $scope1_id = _scope_id();
|
|
15816
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
16072
|
+
_html(`<button${_attr_class([iconBtnRow, "_dX"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15817
16073
|
icon_xmark_default({ size: 14 });
|
|
15818
16074
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
15819
16075
|
_script($scope1_id, "w14");
|
|
@@ -15821,11 +16077,11 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15821
16077
|
return 0;
|
|
15822
16078
|
}
|
|
15823
16079
|
}, $scope0_id, "f", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
15824
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
16080
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hw"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
15825
16081
|
_if(() => {
|
|
15826
16082
|
if (compact && ssoPending.length) {
|
|
15827
16083
|
const $scope11_id = _scope_id();
|
|
15828
|
-
_html(`<div${_attr_class("
|
|
16084
|
+
_html(`<div${_attr_class("_hv")}>`);
|
|
15829
16085
|
ssoBlock.content({});
|
|
15830
16086
|
_html("</div>");
|
|
15831
16087
|
writeScope($scope11_id, {});
|
|
@@ -15835,16 +16091,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15835
16091
|
_if(() => {
|
|
15836
16092
|
if (pasted) {
|
|
15837
16093
|
const $scope2_id = _scope_id();
|
|
15838
|
-
_html(`<ul${_attr_class("
|
|
16094
|
+
_html(`<ul${_attr_class("_hx")}><li><div${_attr_class(["_hz", "_hy"])}><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
16095
|
icon_plus_default({
|
|
15840
16096
|
size: 12,
|
|
15841
|
-
class: "
|
|
16097
|
+
class: "_hG"
|
|
15842
16098
|
});
|
|
15843
|
-
_html(`<span${_attr_class("
|
|
16099
|
+
_html(`<span${_attr_class("_hH")}>${_text_resume($scope2_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
15844
16100
|
_if(() => {
|
|
15845
16101
|
if (pastedForkable) {
|
|
15846
16102
|
const $scope9_id = _scope_id();
|
|
15847
|
-
_html(`<button${_attr_class(["
|
|
16103
|
+
_html(`<button${_attr_class(["_hD", { ["_hB"]: 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
16104
|
_if(() => {
|
|
15849
16105
|
if (pasteWillFork) {
|
|
15850
16106
|
const $scope13_id = _scope_id();
|
|
@@ -15864,7 +16120,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15864
16120
|
return 0;
|
|
15865
16121
|
}
|
|
15866
16122
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
15867
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
16123
|
+
_html(`<button${_attr_class([resultBranch, { ["_hB"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15868
16124
|
icon_branch_default({ size: 12 });
|
|
15869
16125
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
15870
16126
|
_if(() => {
|
|
@@ -15899,15 +16155,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15899
16155
|
_if(() => {
|
|
15900
16156
|
if (results.length) {
|
|
15901
16157
|
const $scope4_id = _scope_id();
|
|
15902
|
-
_html(`<ul${_attr_class("
|
|
16158
|
+
_html(`<ul${_attr_class("_hx")}>`);
|
|
15903
16159
|
_for_of(results, (repo, i) => {
|
|
15904
16160
|
const $scope5_id = _scope_id();
|
|
15905
|
-
_html(`<li><div${_attr_class(["
|
|
16161
|
+
_html(`<li><div${_attr_class(["_hz", { ["_hy"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15906
16162
|
icon_plus_default({
|
|
15907
16163
|
size: 12,
|
|
15908
|
-
class: "
|
|
16164
|
+
class: "_hG"
|
|
15909
16165
|
});
|
|
15910
|
-
_html(`<span${_attr_class("
|
|
16166
|
+
_html(`<span${_attr_class("_hH")}>${_text_resume($scope5_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_hB"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15911
16167
|
icon_branch_default({ size: 12 });
|
|
15912
16168
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
15913
16169
|
_if(() => {
|
|
@@ -16161,7 +16417,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16161
16417
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16162
16418
|
}, "r10", $scope0_id);
|
|
16163
16419
|
const titleId = _id();
|
|
16164
|
-
_html(`<div${_attr_class("
|
|
16420
|
+
_html(`<div${_attr_class("_d2")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d3")}><div${_attr_class("_d4")}>`);
|
|
16165
16421
|
_set_serialize_reason(30);
|
|
16166
16422
|
const $childScope = _peek_scope_id();
|
|
16167
16423
|
page_head_default({
|
|
@@ -16174,7 +16430,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16174
16430
|
meta: attrTag({ content: _content("r20", () => {
|
|
16175
16431
|
_scope_reason();
|
|
16176
16432
|
const $scope13_id = _scope_id();
|
|
16177
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16433
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_f2")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
16178
16434
|
_if(() => {
|
|
16179
16435
|
if (ws.status !== "active") {
|
|
16180
16436
|
const $scope17_id = _scope_id();
|
|
@@ -16183,7 +16439,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16183
16439
|
return 0;
|
|
16184
16440
|
}
|
|
16185
16441
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
16186
|
-
_html(`<span${_attr_class("
|
|
16442
|
+
_html(`<span${_attr_class("_f3")} 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
16443
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
16188
16444
|
_: _scope_with_id($scope0_id),
|
|
16189
16445
|
Ccf: 1
|
|
@@ -16268,7 +16524,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16268
16524
|
return 0;
|
|
16269
16525
|
}
|
|
16270
16526
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16271
|
-
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "
|
|
16527
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gi"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16272
16528
|
icon_plus_default({ size: 16 });
|
|
16273
16529
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16274
16530
|
_set_serialize_reason(14);
|
|
@@ -16299,11 +16555,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16299
16555
|
size: 14,
|
|
16300
16556
|
class: catalogRefreshing && "_F"
|
|
16301
16557
|
});
|
|
16302
|
-
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(
|
|
16303
|
-
"_bZ",
|
|
16304
|
-
"_cv",
|
|
16305
|
-
"_cJ"
|
|
16306
|
-
])}>`);
|
|
16558
|
+
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
|
|
16307
16559
|
_for_of(ws.repos, (row) => {
|
|
16308
16560
|
const $scope1_id = _scope_id();
|
|
16309
16561
|
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_b0")}><span${_attr_class(["_b1", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_b2")}><a${_attr_class(["_b3", "_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")}`);
|
|
@@ -16384,22 +16636,18 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16384
16636
|
_if(() => {
|
|
16385
16637
|
if (allSkills.length) {
|
|
16386
16638
|
const $scope2_id = _scope_id();
|
|
16387
|
-
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>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(
|
|
16388
|
-
"_bZ",
|
|
16389
|
-
"_cv",
|
|
16390
|
-
"_cJ"
|
|
16391
|
-
])}>`);
|
|
16639
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>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
16640
|
_for_of(allSkills, ({ s, linked }) => {
|
|
16393
16641
|
const $scope3_id = _scope_id();
|
|
16394
16642
|
const isBusy = skillBusy.has(s.id);
|
|
16395
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
16643
|
+
_html(`<li${_attr_class([skillRow, { ["_ga"]: !linked }])}><span${_attr_class("_gc")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16396
16644
|
_if(() => {
|
|
16397
16645
|
if (s.worktree && !s.broken) {
|
|
16398
16646
|
const $scope26_id = _scope_id();
|
|
16399
16647
|
_html(`<span${_attr_class([
|
|
16400
16648
|
"_N",
|
|
16401
16649
|
"_y",
|
|
16402
|
-
"
|
|
16650
|
+
"_gd"
|
|
16403
16651
|
])}${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
16652
|
writeScope($scope26_id, {});
|
|
16405
16653
|
return 0;
|
|
@@ -16454,7 +16702,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16454
16702
|
"_b4",
|
|
16455
16703
|
"_8",
|
|
16456
16704
|
"_9",
|
|
16457
|
-
"
|
|
16705
|
+
"_gg",
|
|
16458
16706
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16459
16707
|
])} 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
16708
|
_if(() => {
|
|
@@ -16504,24 +16752,20 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16504
16752
|
_if(() => {
|
|
16505
16753
|
if (running.length) {
|
|
16506
16754
|
const $scope15_id = _scope_id();
|
|
16507
|
-
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(
|
|
16508
|
-
"_bZ",
|
|
16509
|
-
"_cv",
|
|
16510
|
-
"_cJ"
|
|
16511
|
-
])}>`);
|
|
16755
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16512
16756
|
_for_of(running, (p) => {
|
|
16513
16757
|
const $scope16_id = _scope_id();
|
|
16514
|
-
_html(`<li${_attr_class("
|
|
16758
|
+
_html(`<li${_attr_class("_f5")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_f6"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_f7"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_f8")}>`);
|
|
16515
16759
|
_for_of(p.ports, (port) => {
|
|
16516
16760
|
const $scope34_id = _scope_id();
|
|
16517
16761
|
_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
16762
|
_script($scope34_id, "r27");
|
|
16519
16763
|
writeScope($scope34_id, { d: port });
|
|
16520
16764
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
16521
|
-
_html(`<span${_attr_class(["_y", "
|
|
16765
|
+
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
16522
16766
|
"_b4",
|
|
16523
16767
|
"_8",
|
|
16524
|
-
"
|
|
16768
|
+
"_gh"
|
|
16525
16769
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16526
16770
|
icon_xmark_default({ size: 14 });
|
|
16527
16771
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -16602,13 +16846,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16602
16846
|
});
|
|
16603
16847
|
_resume_branch($scope0_id);
|
|
16604
16848
|
});
|
|
16605
|
-
|
|
16606
|
-
|
|
16607
|
-
var
|
|
16608
|
-
var curBase = "
|
|
16609
|
-
var archived = "
|
|
16610
|
-
var archivedHint = "
|
|
16611
|
-
var
|
|
16849
|
+
var curRepos = "_cI _bZ _cv _cG";
|
|
16850
|
+
var curRow = "_fi _cJ _cH";
|
|
16851
|
+
var curEmpty = "_fk _b5";
|
|
16852
|
+
var curBase = "_fn _Y _X";
|
|
16853
|
+
var archived = "_fs _bU";
|
|
16854
|
+
var archivedHint = "_ft _X";
|
|
16855
|
+
var archivedList = "_cI _bZ _cv _cG";
|
|
16856
|
+
var archivedRow = "_fu _cJ _cH";
|
|
16612
16857
|
//#endregion
|
|
16613
16858
|
//#region src/tags/icons/icon-group.marko
|
|
16614
16859
|
var icon_group_default = _template("fb", (input) => {
|
|
@@ -16628,8 +16873,8 @@ var icon_group_default = _template("fb", (input) => {
|
|
|
16628
16873
|
});
|
|
16629
16874
|
//#endregion
|
|
16630
16875
|
//#region src/tags/join-dialog.css.ts
|
|
16631
|
-
var dlg = "
|
|
16632
|
-
var hint = "
|
|
16876
|
+
var dlg = "_h3 _gL";
|
|
16877
|
+
var hint = "_h4 _X";
|
|
16633
16878
|
//#endregion
|
|
16634
16879
|
//#region src/tags/join-dialog.marko
|
|
16635
16880
|
var api$3;
|
|
@@ -16758,26 +17003,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16758
17003
|
content: _content("o12", () => {
|
|
16759
17004
|
_scope_reason();
|
|
16760
17005
|
const $scope1_id = _scope_id();
|
|
16761
|
-
_html(`<h2${_attr_class("
|
|
17006
|
+
_html(`<h2${_attr_class("_gM")}${_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
17007
|
"_Z",
|
|
16763
17008
|
"_y",
|
|
16764
|
-
"
|
|
17009
|
+
"_h6"
|
|
16765
17010
|
])} 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
17011
|
_if(() => {
|
|
16767
17012
|
if (parsed.error) {
|
|
16768
17013
|
const $scope8_id = _scope_id();
|
|
16769
|
-
_html(`<p${_attr_class([hint, "
|
|
17014
|
+
_html(`<p${_attr_class([hint, "_h5"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16770
17015
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16771
17016
|
return 0;
|
|
16772
17017
|
} else if (parsed.ok) {
|
|
16773
17018
|
const $scope3_id = _scope_id();
|
|
16774
|
-
_html(`<ul${_attr_class("
|
|
17019
|
+
_html(`<ul${_attr_class("_h7")}>`);
|
|
16775
17020
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16776
17021
|
const $scope9_id = _scope_id();
|
|
16777
|
-
_html(`<li${_attr_class("
|
|
17022
|
+
_html(`<li${_attr_class("_h8")}><span${_attr_class("_h9")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16778
17023
|
writeScope($scope9_id, {});
|
|
16779
17024
|
}, (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("
|
|
17025
|
+
_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("_h_")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16781
17026
|
name = _new_name;
|
|
16782
17027
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16783
17028
|
_script($scope3_id, "o8");
|
|
@@ -16814,10 +17059,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16814
17059
|
_if(() => {
|
|
16815
17060
|
if (busy && steps$2.length) {
|
|
16816
17061
|
const $scope6_id = _scope_id();
|
|
16817
|
-
_html(`<ul${_attr_class("
|
|
17062
|
+
_html(`<ul${_attr_class("_ia")}>`);
|
|
16818
17063
|
_for_of(steps$2, (step$2, i) => {
|
|
16819
17064
|
const $scope7_id = _scope_id();
|
|
16820
|
-
_html(`<li${_attr_class(["
|
|
17065
|
+
_html(`<li${_attr_class(["_ic", { ["_ib"]: i === steps$2.length - 1 }])}>`);
|
|
16821
17066
|
_if(() => {
|
|
16822
17067
|
if (i === steps$2.length - 1) {
|
|
16823
17068
|
const $scope10_id = _scope_id();
|
|
@@ -16826,7 +17071,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16826
17071
|
return 0;
|
|
16827
17072
|
} else {
|
|
16828
17073
|
const $scope11_id = _scope_id();
|
|
16829
|
-
_html(`<span${_attr_class("
|
|
17074
|
+
_html(`<span${_attr_class("_id")}>`);
|
|
16830
17075
|
icon_check_default({ size: 14 });
|
|
16831
17076
|
_html("</span>");
|
|
16832
17077
|
writeScope($scope11_id, {});
|
|
@@ -16983,7 +17228,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
16983
17228
|
}
|
|
16984
17229
|
}, "t6", $scope0_id);
|
|
16985
17230
|
const titleId = _id();
|
|
16986
|
-
_html(`<div${_attr_class("
|
|
17231
|
+
_html(`<div${_attr_class("_d2")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d3")}><div${_attr_class("_d4")}>`);
|
|
16987
17232
|
_set_serialize_reason({
|
|
16988
17233
|
0: _serialize_guard($scope0_reason, 2),
|
|
16989
17234
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17032,23 +17277,23 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17032
17277
|
return 0;
|
|
17033
17278
|
}
|
|
17034
17279
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17035
|
-
_html(`<label${_attr_class("
|
|
17280
|
+
_html(`<label${_attr_class("_ff")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17036
17281
|
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("_bU")}><div${_attr_class("
|
|
17282
|
+
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bU")}><div${_attr_class("_fg")}><h2${_attr_class("_b8")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17038
17283
|
_set_serialize_reason(1);
|
|
17039
17284
|
const $childScope2 = _peek_scope_id();
|
|
17040
17285
|
icon_refresh_default({
|
|
17041
17286
|
size: 14,
|
|
17042
17287
|
class: catalogRefreshing && "_F"
|
|
17043
17288
|
});
|
|
17044
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class(
|
|
17289
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class(curRepos)}>`);
|
|
17045
17290
|
_for_of(selected, (repo) => {
|
|
17046
17291
|
const $scope4_id = _scope_id();
|
|
17047
|
-
_html(`<li><div${_attr_class(
|
|
17292
|
+
_html(`<li${_attr_class("_fh")}><div${_attr_class(curRow)}><span${_attr_class("_fl")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
|
|
17048
17293
|
_if(() => {
|
|
17049
17294
|
if (repo.fork !== void 0) {
|
|
17050
17295
|
const $scope5_id = _scope_id();
|
|
17051
|
-
_html(`<button${_attr_class(["
|
|
17296
|
+
_html(`<button${_attr_class(["_fo", { ["_fm"]: 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
17297
|
_if(() => {
|
|
17053
17298
|
if (repo.fork) {
|
|
17054
17299
|
const $scope14_id = _scope_id();
|
|
@@ -17067,19 +17312,20 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17067
17312
|
_subscribe($busy__closures, writeScope($scope5_id, { Cb1: 1 }));
|
|
17068
17313
|
return 0;
|
|
17069
17314
|
}
|
|
17070
|
-
}, $scope4_id, "
|
|
17315
|
+
}, $scope4_id, "e", 1, 1, 1, 0, 1);
|
|
17071
17316
|
_html(`<button${_attr_class([
|
|
17072
17317
|
curBase,
|
|
17073
17318
|
"_y",
|
|
17074
|
-
{ ["
|
|
17319
|
+
{ ["_fm"]: branchesFor === repo.fullName }
|
|
17075
17320
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17076
17321
|
icon_branch_default({ size: 12 });
|
|
17077
|
-
_html(`${_text_resume($scope4_id, "
|
|
17322
|
+
_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
17323
|
icon_xmark_default({ size: 12 });
|
|
17079
|
-
_html(`</button>${_el_resume($scope4_id, "
|
|
17324
|
+
_html(`</button>${_el_resume($scope4_id, "i")}</div>`);
|
|
17080
17325
|
_if(() => {
|
|
17081
17326
|
if (branchesFor === repo.fullName) {
|
|
17082
17327
|
const $scope10_id = _scope_id();
|
|
17328
|
+
_html(`<div${_attr_class("_fj")}>`);
|
|
17083
17329
|
const $childScope3 = _peek_scope_id();
|
|
17084
17330
|
branch_pick_default({
|
|
17085
17331
|
repo: repo.fullName,
|
|
@@ -17092,22 +17338,23 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17092
17338
|
error = message;
|
|
17093
17339
|
}, "t10", $scope10_id)
|
|
17094
17340
|
});
|
|
17095
|
-
|
|
17341
|
+
_html("</div>");
|
|
17342
|
+
writeScope($scope10_id, { b: _existing_scope($childScope3) });
|
|
17096
17343
|
return 0;
|
|
17097
17344
|
}
|
|
17098
|
-
}, $scope4_id, "
|
|
17345
|
+
}, $scope4_id, "k", 1, 1, 1, 0, 1);
|
|
17099
17346
|
_html("</li>");
|
|
17100
17347
|
_script($scope4_id, "t19");
|
|
17101
17348
|
writeScope($scope4_id, {
|
|
17102
|
-
|
|
17103
|
-
|
|
17104
|
-
|
|
17349
|
+
n: repo?.fullName,
|
|
17350
|
+
p: repo?.fork,
|
|
17351
|
+
q: repo?.baseBranch
|
|
17105
17352
|
});
|
|
17106
17353
|
}, "fullName", $scope0_id, "o", 1, 1, 1, 0, 1);
|
|
17107
17354
|
_if(() => {
|
|
17108
17355
|
if (!selected.length) {
|
|
17109
17356
|
const $scope16_id = _scope_id();
|
|
17110
|
-
_html(`<li${_attr_class(
|
|
17357
|
+
_html(`<li${_attr_class(curEmpty)}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
17111
17358
|
writeScope($scope16_id, {});
|
|
17112
17359
|
return 0;
|
|
17113
17360
|
}
|
|
@@ -17132,10 +17379,10 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17132
17379
|
_if(() => {
|
|
17133
17380
|
if (busy && steps.length) {
|
|
17134
17381
|
const $scope11_id = _scope_id();
|
|
17135
|
-
_html(`<ul${_attr_class("
|
|
17382
|
+
_html(`<ul${_attr_class("_fp")}>`);
|
|
17136
17383
|
_for_of(steps, (step, i) => {
|
|
17137
17384
|
const $scope12_id = _scope_id();
|
|
17138
|
-
_html(`<li${_attr_class(["
|
|
17385
|
+
_html(`<li${_attr_class(["_fv", { ["_fq"]: i === steps.length - 1 }])}>`);
|
|
17139
17386
|
_if(() => {
|
|
17140
17387
|
if (i === steps.length - 1) {
|
|
17141
17388
|
const $scope17_id = _scope_id();
|
|
@@ -17144,7 +17391,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17144
17391
|
return 0;
|
|
17145
17392
|
} else {
|
|
17146
17393
|
const $scope18_id = _scope_id();
|
|
17147
|
-
_html(`<span${_attr_class("
|
|
17394
|
+
_html(`<span${_attr_class("_fr")}>`);
|
|
17148
17395
|
icon_check_default({ size: 14 });
|
|
17149
17396
|
_html("</span>");
|
|
17150
17397
|
writeScope($scope18_id, {});
|
|
@@ -17158,7 +17405,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17158
17405
|
return 0;
|
|
17159
17406
|
}
|
|
17160
17407
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
17161
|
-
_html(`<div${_attr_class("
|
|
17408
|
+
_html(`<div${_attr_class("_fd")}>`);
|
|
17162
17409
|
_if(() => {
|
|
17163
17410
|
if (input.onExit || busy) {
|
|
17164
17411
|
const $scope1_id = _scope_id();
|
|
@@ -17171,15 +17418,15 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17171
17418
|
_html(`<button type=button${_attr_class([
|
|
17172
17419
|
btnLg,
|
|
17173
17420
|
"_r",
|
|
17174
|
-
"
|
|
17421
|
+
"_fe"
|
|
17175
17422
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
17176
17423
|
_if(() => {
|
|
17177
17424
|
if (archived$1.length) {
|
|
17178
17425
|
const $scope6_id = _scope_id();
|
|
17179
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17426
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fg")}><h2${_attr_class("_b8")}>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
17427
|
_for_of(archived$1, (ws) => {
|
|
17181
17428
|
const $scope7_id = _scope_id();
|
|
17182
|
-
_html(`<li${_attr_class(
|
|
17429
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_b0")}><span${_attr_class("_b1")}>${_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
17430
|
_if(() => {
|
|
17184
17431
|
if (restoring === ws.id) {
|
|
17185
17432
|
const $scope19_id = _scope_id();
|
|
@@ -17295,19 +17542,19 @@ var term_find_default = _template("E", (input) => {
|
|
|
17295
17542
|
const canStep = hasQuery && open;
|
|
17296
17543
|
const keybar = input.placement === "keybar";
|
|
17297
17544
|
_html(`<div${_attr_class([
|
|
17298
|
-
"
|
|
17299
|
-
keybar ? "
|
|
17300
|
-
!open && "
|
|
17301
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17545
|
+
"_em",
|
|
17546
|
+
keybar ? "_eo" : "_en",
|
|
17547
|
+
!open && "_eq"
|
|
17548
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eh", keybar ? "_ep" : "_ej"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17302
17549
|
if (!open) return;
|
|
17303
17550
|
query = v;
|
|
17304
17551
|
live.query = v;
|
|
17305
17552
|
run(0);
|
|
17306
|
-
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17553
|
+
}, "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
17554
|
icon_arrow_up_default({ size: 14 });
|
|
17308
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17555
|
+
_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
17556
|
icon_arrow_down_default({ size: 14 });
|
|
17310
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17557
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_es"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17311
17558
|
icon_xmark_default({ size: 14 });
|
|
17312
17559
|
_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
17560
|
const $return = focusInput;
|
|
@@ -17458,7 +17705,7 @@ var term_default = _template("F", (input) => {
|
|
|
17458
17705
|
}
|
|
17459
17706
|
}, "F9", $scope0_id);
|
|
17460
17707
|
input.keys;
|
|
17461
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17708
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eJ")}><div${_attr_class("_eK")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17462
17709
|
_if(() => {
|
|
17463
17710
|
if (findOpen) {
|
|
17464
17711
|
const $scope4_id = _scope_id();
|
|
@@ -17485,7 +17732,7 @@ var term_default = _template("F", (input) => {
|
|
|
17485
17732
|
_if(() => {
|
|
17486
17733
|
if (uploading) {
|
|
17487
17734
|
const $scope5_id = _scope_id();
|
|
17488
|
-
_html(`<div${_attr_class("
|
|
17735
|
+
_html(`<div${_attr_class("_eQ")}>uploading…</div>`);
|
|
17489
17736
|
writeScope($scope5_id, {});
|
|
17490
17737
|
return 0;
|
|
17491
17738
|
}
|
|
@@ -17493,7 +17740,7 @@ var term_default = _template("F", (input) => {
|
|
|
17493
17740
|
_if(() => {
|
|
17494
17741
|
if (copiedFlash) {
|
|
17495
17742
|
const $scope6_id = _scope_id();
|
|
17496
|
-
_html(`<div${_attr_class("
|
|
17743
|
+
_html(`<div${_attr_class("_eP")}>Copied</div>`);
|
|
17497
17744
|
writeScope($scope6_id, {});
|
|
17498
17745
|
return 0;
|
|
17499
17746
|
}
|
|
@@ -17502,7 +17749,7 @@ var term_default = _template("F", (input) => {
|
|
|
17502
17749
|
_if(() => {
|
|
17503
17750
|
if (trapOpen) {
|
|
17504
17751
|
const $scope3_id = _scope_id();
|
|
17505
|
-
_html(`<div${_attr_class("
|
|
17752
|
+
_html(`<div${_attr_class("_eR")}><div${_attr_class("_eS")}><p${_attr_class("_eT")}>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
17753
|
_script($scope3_id, "F16");
|
|
17507
17754
|
_script($scope3_id, "F17");
|
|
17508
17755
|
writeScope($scope3_id, {});
|
|
@@ -17763,10 +18010,10 @@ var work_view_default = _template("J", (input) => {
|
|
|
17763
18010
|
}
|
|
17764
18011
|
}, "J14", $scope0_id);
|
|
17765
18012
|
const navShown = view === "nav" && input.navState?.view === "nav";
|
|
17766
|
-
_html(`<div${_attr_class(["
|
|
17767
|
-
["
|
|
17768
|
-
["
|
|
17769
|
-
}])}><div${_attr_class("
|
|
18013
|
+
_html(`<div${_attr_class(["_bO", {
|
|
18014
|
+
["_bM"]: navShown,
|
|
18015
|
+
["_bN"]: !input.active
|
|
18016
|
+
}])}><div${_attr_class("_bP")}>`);
|
|
17770
18017
|
_if(() => {
|
|
17771
18018
|
if (error) {
|
|
17772
18019
|
const $scope8_id = _scope_id();
|
|
@@ -17789,7 +18036,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17789
18036
|
_if(() => {
|
|
17790
18037
|
if (diffMounted && ws) {
|
|
17791
18038
|
const $scope1_id = _scope_id();
|
|
17792
|
-
_html(`<div${_attr_class("
|
|
18039
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17793
18040
|
_set_serialize_reason({
|
|
17794
18041
|
0: $sg__input_workspace,
|
|
17795
18042
|
1: $sg__input_workspace,
|
|
@@ -17846,7 +18093,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17846
18093
|
_if(() => {
|
|
17847
18094
|
if (manageMounted && ws) {
|
|
17848
18095
|
const $scope2_id = _scope_id();
|
|
17849
|
-
_html(`<div${_attr_class("
|
|
18096
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17850
18097
|
_set_serialize_reason({
|
|
17851
18098
|
0: $sg__input_workspace,
|
|
17852
18099
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17872,7 +18119,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17872
18119
|
_if(() => {
|
|
17873
18120
|
if (settingsMounted) {
|
|
17874
18121
|
const $scope3_id = _scope_id();
|
|
17875
|
-
_html(`<div${_attr_class("
|
|
18122
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17876
18123
|
_set_serialize_reason({
|
|
17877
18124
|
0: _serialize_guard($scope0_reason, 0),
|
|
17878
18125
|
1: $sg__input_workspace,
|
|
@@ -17914,7 +18161,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17914
18161
|
_if(() => {
|
|
17915
18162
|
if (newMounted) {
|
|
17916
18163
|
const $scope4_id = _scope_id();
|
|
17917
|
-
_html(`<div${_attr_class("
|
|
18164
|
+
_html(`<div${_attr_class("_bQ")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
17918
18165
|
_set_serialize_reason({
|
|
17919
18166
|
0: 1,
|
|
17920
18167
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -17939,13 +18186,13 @@ var work_view_default = _template("J", (input) => {
|
|
|
17939
18186
|
return 0;
|
|
17940
18187
|
}
|
|
17941
18188
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
17942
|
-
_html(`<div${_attr_class("
|
|
18189
|
+
_html(`<div${_attr_class("_bR")}${_attr("inert", view !== "term")}>`);
|
|
17943
18190
|
_if(() => {
|
|
17944
18191
|
if (ws && shownSessions) {
|
|
17945
18192
|
const $scope5_id = _scope_id();
|
|
17946
18193
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
17947
18194
|
const $scope6_id = _scope_id();
|
|
17948
|
-
_html(`<div${_attr_class("
|
|
18195
|
+
_html(`<div${_attr_class("_bS")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
17949
18196
|
_set_serialize_reason(2);
|
|
17950
18197
|
const $childScope5 = _peek_scope_id();
|
|
17951
18198
|
term_default({
|
|
@@ -18085,7 +18332,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18085
18332
|
});
|
|
18086
18333
|
//#endregion
|
|
18087
18334
|
//#region src/tags/key-bar.css.ts
|
|
18088
|
-
var kbtn = "
|
|
18335
|
+
var kbtn = "_bF _6 _l";
|
|
18089
18336
|
_template("tb", (input) => {
|
|
18090
18337
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
18091
18338
|
const $scope0_id = _scope_id();
|
|
@@ -18101,8 +18348,8 @@ _template("tb", (input) => {
|
|
|
18101
18348
|
});
|
|
18102
18349
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
18103
18350
|
});
|
|
18104
|
-
var sessOpen = "
|
|
18105
|
-
var sessRename = "
|
|
18351
|
+
var sessOpen = "_ex _I";
|
|
18352
|
+
var sessRename = "_eB _J";
|
|
18106
18353
|
//#endregion
|
|
18107
18354
|
//#region src/tags/key-bar-sessions.marko
|
|
18108
18355
|
var usageFor;
|
|
@@ -18133,7 +18380,7 @@ _template("p", (input) => {
|
|
|
18133
18380
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
18134
18381
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
18135
18382
|
}, "p2", $scope0_id);
|
|
18136
|
-
_html(`<button${_attr_class([kbtn, "
|
|
18383
|
+
_html(`<button${_attr_class([kbtn, "_et"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
18137
18384
|
_set_serialize_reason({
|
|
18138
18385
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
18139
18386
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -18147,12 +18394,12 @@ _template("p", (input) => {
|
|
|
18147
18394
|
"_A",
|
|
18148
18395
|
"_bc",
|
|
18149
18396
|
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(["__", "
|
|
18397
|
+
])}></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
18398
|
_for_of(input.sessions, (s) => {
|
|
18152
18399
|
const $scope1_id = _scope_id();
|
|
18153
18400
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
18154
18401
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
18155
|
-
_html(`<div${_attr_class(["
|
|
18402
|
+
_html(`<div${_attr_class(["_ew", { ["_ev"]: s.id === input.sessionId }])}>`);
|
|
18156
18403
|
_if(() => {
|
|
18157
18404
|
if (renamingId === s.id) {
|
|
18158
18405
|
const $scope5_id = _scope_id();
|
|
@@ -18184,7 +18431,7 @@ _template("p", (input) => {
|
|
|
18184
18431
|
agent: activeAgent(s),
|
|
18185
18432
|
size: 14
|
|
18186
18433
|
});
|
|
18187
|
-
_html(`<span${_attr_class("
|
|
18434
|
+
_html(`<span${_attr_class("_ey")}><span${_attr_class("_eA")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
18188
18435
|
_if(() => {
|
|
18189
18436
|
if (s.id === input.sessionId) {
|
|
18190
18437
|
const $scope7_id = _scope_id();
|
|
@@ -18196,7 +18443,7 @@ _template("p", (input) => {
|
|
|
18196
18443
|
const $childScope4 = _peek_scope_id();
|
|
18197
18444
|
usage_pcts_default({
|
|
18198
18445
|
agent: plan,
|
|
18199
|
-
class: "
|
|
18446
|
+
class: "_ez"
|
|
18200
18447
|
});
|
|
18201
18448
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
18202
18449
|
return 0;
|
|
@@ -18213,7 +18460,7 @@ _template("p", (input) => {
|
|
|
18213
18460
|
_if(() => {
|
|
18214
18461
|
if (input.onRenameSession) {
|
|
18215
18462
|
const $scope6_id = _scope_id();
|
|
18216
|
-
_html(`<button${_attr_class(["
|
|
18463
|
+
_html(`<button${_attr_class(["_eC", "_eD"])} title="Rename session">`);
|
|
18217
18464
|
icon_edit_default({ size: 12 });
|
|
18218
18465
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
18219
18466
|
_script($scope6_id, "p4");
|
|
@@ -18225,7 +18472,7 @@ _template("p", (input) => {
|
|
|
18225
18472
|
if (input.onCloseSession) {
|
|
18226
18473
|
const $scope3_id = _scope_id();
|
|
18227
18474
|
_html(`<button${_attr_class([
|
|
18228
|
-
"
|
|
18475
|
+
"_eC",
|
|
18229
18476
|
"_8",
|
|
18230
18477
|
{ ["_s"]: armedClose === s.id }
|
|
18231
18478
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -18252,7 +18499,7 @@ _template("p", (input) => {
|
|
|
18252
18499
|
k: $si__input_sessions && $for_content__s_id__closures
|
|
18253
18500
|
});
|
|
18254
18501
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
18255
|
-
_html(`<div${_attr_class("
|
|
18502
|
+
_html(`<div${_attr_class("_eE")}><span${_attr_class("_eF")}>New session</span><div${_attr_class("_eG")}>`);
|
|
18256
18503
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
18257
18504
|
const $scope4_id = _scope_id();
|
|
18258
18505
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -27252,4 +27499,4 @@ server.listen(port, () => {
|
|
|
27252
27499
|
//#endregion
|
|
27253
27500
|
export {};
|
|
27254
27501
|
|
|
27255
|
-
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-
|
|
27502
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-DWdcJRsU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DWdcJRsU.css\"",">",2,"stylesheet#/assets/app-page-CEMTHZv1.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CEMTHZv1.css\"",">"],"defer":[2,"/assets/new-FeHAUUAK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-FeHAUUAK.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/_D1NQ8Ak7.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D1NQ8Ak7.js\"",">",2,"modulepreload#/assets/_DQjqPqJ6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DQjqPqJ6.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-DWdcJRsU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DWdcJRsU.css\"",">",2,"stylesheet#/assets/app-page-CEMTHZv1.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CEMTHZv1.css\"",">"],"defer":[2,"/assets/settings-FeHAUUAK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-FeHAUUAK.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/_D1NQ8Ak7.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D1NQ8Ak7.js\"",">",2,"modulepreload#/assets/_DQjqPqJ6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DQjqPqJ6.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-DWdcJRsU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DWdcJRsU.css\"",">",2,"stylesheet#/assets/app-page-CEMTHZv1.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CEMTHZv1.css\"",">"],"defer":[2,"/assets/w._-FeHAUUAK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-FeHAUUAK.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/_D1NQ8Ak7.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D1NQ8Ak7.js\"",">",2,"modulepreload#/assets/_DQjqPqJ6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DQjqPqJ6.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-DWdcJRsU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DWdcJRsU.css\"",">",2,"stylesheet#/assets/app-page-CEMTHZv1.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CEMTHZv1.css\"",">"],"defer":[2,"/assets/w-FeHAUUAK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-FeHAUUAK.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/_D1NQ8Ak7.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D1NQ8Ak7.js\"",">",2,"modulepreload#/assets/_DQjqPqJ6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DQjqPqJ6.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-DWdcJRsU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-DWdcJRsU.css\"",">",2,"stylesheet#/assets/app-page-CEMTHZv1.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CEMTHZv1.css\"",">"],"defer":[2,"/assets/w._-D-RmquIa.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-D-RmquIa.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/_D1NQ8Ak7.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D1NQ8Ak7.js\"",">",2,"modulepreload#/assets/_DQjqPqJ6.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DQjqPqJ6.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-C7n2ViB6.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-C7n2ViB6.css\"",">",2,"stylesheet#/assets/icon-arrow-down-DWdcJRsU.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-DWdcJRsU.css\"",">"],"defer":[2,"/assets/diff-view-DqyO3Q0l.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-DqyO3Q0l.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|