@dylanpiercey/work 0.0.168 → 0.0.169
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 +315 -290
- package/dist/public/assets/_5_CYpLD_.js +1 -0
- package/dist/public/assets/_817Oyo-f.js +1 -0
- package/dist/public/assets/_BGMdUQV-.js +1 -0
- package/dist/public/assets/_BW7i08wc.js +1 -0
- package/dist/public/assets/_B_OqwuNp.js +1 -0
- package/dist/public/assets/_BdpSgwvh.js +1 -0
- package/dist/public/assets/_BhoAOMAd.js +1 -0
- package/dist/public/assets/_C6pCyeFf.js +1 -0
- package/dist/public/assets/_CE8nafbk.js +1 -0
- package/dist/public/assets/{_D6Wszvs1.js → _CLC3vDYr.js} +6 -6
- package/dist/public/assets/_CLC3vDYr.js.br +0 -0
- package/dist/public/assets/_CNDY401x.js +1 -0
- package/dist/public/assets/_CQIwEjlN.js +1 -0
- package/dist/public/assets/_Cw49Tcgw.js +1 -0
- package/dist/public/assets/_D9sR3-0D.js +1 -0
- package/dist/public/assets/{_m6B8EqQJ.js → _DR7hKOqz.js} +4 -4
- package/dist/public/assets/_DR7hKOqz.js.br +0 -0
- package/dist/public/assets/_D_fLyd2e.js +1 -0
- package/dist/public/assets/_DbLHCj8f.js +1 -0
- package/dist/public/assets/{_Dr6PwR9h.js → _DeWBAMhg.js} +1 -1
- package/dist/public/assets/_DeWBAMhg.js.br +0 -0
- package/dist/public/assets/_Dv70rKdu.js +1 -0
- package/dist/public/assets/_PKeNRDAg.js +1 -0
- package/dist/public/assets/_THTWHDbK.js +1 -0
- package/dist/public/assets/_TiNoElnP.js +1 -0
- package/dist/public/assets/_ZTYv2O_a.js +1 -0
- package/dist/public/assets/_pbdLWU-6.js +1 -0
- package/dist/public/assets/{app-page-CE13Vv1z.css → app-page-_8WKqHTZ.css} +1 -1
- package/dist/public/assets/app-page-_8WKqHTZ.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-D-UU3b4l.css → icon-arrow-down-C4usy4AG.css} +1 -1
- package/dist/public/assets/icon-arrow-down-C4usy4AG.css.br +0 -0
- package/dist/public/assets/new-pakAMqK1.js +1 -0
- package/dist/public/assets/{review-view-D2rU40po.css → review-view-DQlebETV.css} +1 -1
- package/dist/public/assets/review-view-DQlebETV.css.br +0 -0
- package/dist/public/assets/review-view-VBKxKYIj.js +2 -0
- package/dist/public/assets/settings-pakAMqK1.js +1 -0
- package/dist/public/assets/w-pakAMqK1.js +1 -0
- package/dist/public/assets/w._-C61prGDD.js +1 -0
- package/dist/public/assets/w._-pakAMqK1.js +1 -0
- package/package.json +1 -1
- package/scripts/migrate.mjs +44 -0
- package/dist/public/assets/_B3aKAChT.js +0 -1
- package/dist/public/assets/_B5pYS8AP.js +0 -1
- package/dist/public/assets/_BIZs-MXG.js +0 -1
- package/dist/public/assets/_BNdtgPXM.js +0 -1
- package/dist/public/assets/_BUJdNfZC.js +0 -1
- package/dist/public/assets/_BgkPks7x.js +0 -1
- package/dist/public/assets/_BkGrAvYH.js +0 -1
- package/dist/public/assets/_CK9d3VRb.js +0 -1
- package/dist/public/assets/_CPiwLVs7.js +0 -1
- package/dist/public/assets/_CzTOSXAp.js +0 -1
- package/dist/public/assets/_D22Kwfne.js +0 -1
- package/dist/public/assets/_D6Wszvs1.js.br +0 -0
- package/dist/public/assets/_DHAoUCPL.js +0 -1
- package/dist/public/assets/_DI17TM3q.js +0 -1
- package/dist/public/assets/_DgRjzNZx.js +0 -1
- package/dist/public/assets/_DqC2_F7z.js +0 -1
- package/dist/public/assets/_Dr6PwR9h.js.br +0 -0
- package/dist/public/assets/_DwV7Flj6.js +0 -1
- package/dist/public/assets/_HFV9DpDD.js +0 -1
- package/dist/public/assets/_UsogGx1K.js +0 -1
- package/dist/public/assets/_V0Yazj2j.js +0 -1
- package/dist/public/assets/_afAqkDtE.js +0 -1
- package/dist/public/assets/_m6B8EqQJ.js.br +0 -0
- package/dist/public/assets/_onT_YqQM.js +0 -1
- package/dist/public/assets/app-page-CE13Vv1z.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-D-UU3b4l.css.br +0 -0
- package/dist/public/assets/new-BE32Bvf7.js +0 -1
- package/dist/public/assets/review-view-D2rU40po.css.br +0 -0
- package/dist/public/assets/review-view-DKK8Dhx3.js +0 -2
- package/dist/public/assets/settings-BE32Bvf7.js +0 -1
- package/dist/public/assets/w-BE32Bvf7.js +0 -1
- package/dist/public/assets/w._-BE32Bvf7.js +0 -1
- package/dist/public/assets/w._-D42QLstp.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2284,6 +2284,31 @@ async function ensureGitCredentials(host) {
|
|
|
2284
2284
|
"--hostname",
|
|
2285
2285
|
host
|
|
2286
2286
|
], void 0, void 0, { timeoutMs: 3e4 }).catch(() => {});
|
|
2287
|
+
await stabilizeCredentialHelper(host).catch(() => {});
|
|
2288
|
+
}
|
|
2289
|
+
/** A path owned by one release of a version manager — mise/asdf `installs`,
|
|
2290
|
+
* homebrew's `Cellar`, nvm's `versions` — which is deleted the next time
|
|
2291
|
+
* that tool updates. */
|
|
2292
|
+
var VERSIONED = /\/(installs|Cellar|versions|toolchains)\//;
|
|
2293
|
+
/** `gh auth setup-git` writes the absolute path of the gh binary that ran it
|
|
2294
|
+
* into ~/.gitconfig. Git executes that string literally — it is not a PATH
|
|
2295
|
+
* lookup — so when gh came from a version manager, the next `gh` upgrade
|
|
2296
|
+
* deletes the directory the helper names and every https push dies with
|
|
2297
|
+
* "could not read Username for https://…". Repoint it at the launcher on
|
|
2298
|
+
* PATH (mise's shim, /usr/bin/gh) when that one is not itself version-owned:
|
|
2299
|
+
* still an absolute path, so it works for GUI clients and cron jobs that
|
|
2300
|
+
* never sourced a shell profile, but it follows upgrades. */
|
|
2301
|
+
async function stabilizeCredentialHelper(host) {
|
|
2302
|
+
const gh = await run("which", ["gh"]).catch(() => "");
|
|
2303
|
+
if (!gh || VERSIONED.test(gh)) return;
|
|
2304
|
+
await run("git", [
|
|
2305
|
+
"config",
|
|
2306
|
+
"--global",
|
|
2307
|
+
"--replace-all",
|
|
2308
|
+
`credential.https://${host}.helper`,
|
|
2309
|
+
`!${gh} auth git-credential`,
|
|
2310
|
+
"auth git-credential"
|
|
2311
|
+
]);
|
|
2287
2312
|
}
|
|
2288
2313
|
function graphqlUrl(host) {
|
|
2289
2314
|
return host === DEFAULT_HOST ? "https://api.github.com/graphql" : `https://${host}/api/graphql`;
|
|
@@ -6970,14 +6995,14 @@ var openable = (ws) => ws.status === "active" && !ws.pending;
|
|
|
6970
6995
|
*/
|
|
6971
6996
|
var numbered = (all) => all.filter(openable).sort((a, b) => a.name.localeCompare(b.name));
|
|
6972
6997
|
var toastKind = {
|
|
6973
|
-
error: "
|
|
6974
|
-
warn: "
|
|
6975
|
-
info: "
|
|
6998
|
+
error: "_bC",
|
|
6999
|
+
warn: "_bD",
|
|
7000
|
+
info: "_bE"
|
|
6976
7001
|
};
|
|
6977
7002
|
var toastTitle = {
|
|
6978
|
-
error: "
|
|
6979
|
-
warn: "
|
|
6980
|
-
info: "
|
|
7003
|
+
error: "_bF",
|
|
7004
|
+
warn: "_bG",
|
|
7005
|
+
info: "_bH"
|
|
6981
7006
|
};
|
|
6982
7007
|
//#endregion
|
|
6983
7008
|
//#region src/styles/tokens.css.ts
|
|
@@ -7023,18 +7048,18 @@ var toast_default = _template("I", (input) => {
|
|
|
7023
7048
|
const kind = inputKind || "error";
|
|
7024
7049
|
const placement = inputPlacement || "float";
|
|
7025
7050
|
const placementClass = {
|
|
7026
|
-
float: "
|
|
7027
|
-
inline: "
|
|
7051
|
+
float: "_bA",
|
|
7052
|
+
inline: "_bB"
|
|
7028
7053
|
}[placement];
|
|
7029
7054
|
_html(`<div${_attr_class([
|
|
7030
|
-
"
|
|
7055
|
+
"_bz",
|
|
7031
7056
|
toastKind[kind],
|
|
7032
7057
|
placementClass,
|
|
7033
7058
|
inputClass
|
|
7034
7059
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
7035
7060
|
class: 1,
|
|
7036
7061
|
role: 1
|
|
7037
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
7062
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_bI")}>`);
|
|
7038
7063
|
_if(() => {
|
|
7039
7064
|
if (title) {
|
|
7040
7065
|
const $scope1_id = _scope_id();
|
|
@@ -7046,7 +7071,7 @@ var toast_default = _template("I", (input) => {
|
|
|
7046
7071
|
_if(() => {
|
|
7047
7072
|
if (content) {
|
|
7048
7073
|
const $scope2_id = _scope_id();
|
|
7049
|
-
_html(`<div${_attr_class("
|
|
7074
|
+
_html(`<div${_attr_class("_bJ")}>`);
|
|
7050
7075
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
7051
7076
|
_html("</div>");
|
|
7052
7077
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7057,7 +7082,7 @@ var toast_default = _template("I", (input) => {
|
|
|
7057
7082
|
_if(() => {
|
|
7058
7083
|
if (action || onDismiss) {
|
|
7059
7084
|
const $scope3_id = _scope_id();
|
|
7060
|
-
_html(`<div${_attr_class(["
|
|
7085
|
+
_html(`<div${_attr_class(["_bK", action && "_bL"])}>`);
|
|
7061
7086
|
_if(() => {
|
|
7062
7087
|
if (action) {
|
|
7063
7088
|
const $scope4_id = _scope_id();
|
|
@@ -7069,7 +7094,7 @@ var toast_default = _template("I", (input) => {
|
|
|
7069
7094
|
_if(() => {
|
|
7070
7095
|
if (onDismiss) {
|
|
7071
7096
|
const $scope5_id = _scope_id();
|
|
7072
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7097
|
+
_html(`<button${_attr_class([iconBtnRow, "_bM"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
7073
7098
|
icon_xmark_default({ size: 14 });
|
|
7074
7099
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
7075
7100
|
_script($scope5_id, "I0");
|
|
@@ -7289,18 +7314,18 @@ function applyInstance(inst) {
|
|
|
7289
7314
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7290
7315
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7291
7316
|
}
|
|
7292
|
-
var agentRow = "
|
|
7293
|
-
var toolGrid = "
|
|
7294
|
-
var toolRow = "
|
|
7295
|
-
var themeSeg = "
|
|
7296
|
-
var checkList = "
|
|
7297
|
-
var list$2 = "_cF
|
|
7317
|
+
var agentRow = "_c9 _ct";
|
|
7318
|
+
var toolGrid = "_dg _cD";
|
|
7319
|
+
var toolRow = "_dh _cE";
|
|
7320
|
+
var themeSeg = "_dE _bd";
|
|
7321
|
+
var checkList = "_d_ _ca";
|
|
7322
|
+
var list$2 = "_cF _cc _cs _cD";
|
|
7298
7323
|
var flatCardRow = "_cG _cE";
|
|
7299
7324
|
var pop$1 = "_cO _9";
|
|
7300
7325
|
var spinner = "_cR _1 _G";
|
|
7301
|
-
var busy = "
|
|
7302
|
-
var pop = "
|
|
7303
|
-
var sectionCount$1 = "
|
|
7326
|
+
var busy = "_cV _cU";
|
|
7327
|
+
var pop = "_cX _9";
|
|
7328
|
+
var sectionCount$1 = "_b_ _N _O";
|
|
7304
7329
|
//#endregion
|
|
7305
7330
|
//#region src/tags/icons/icon-refresh.marko
|
|
7306
7331
|
var icon_refresh_default = _template("nb", (input) => {
|
|
@@ -7340,18 +7365,18 @@ var icon_back_default = _template("U", (input) => {
|
|
|
7340
7365
|
var page_head_default = _template("t", (input) => {
|
|
7341
7366
|
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);
|
|
7342
7367
|
const $scope0_id = _scope_id();
|
|
7343
|
-
_html(`<header${_attr_class("
|
|
7368
|
+
_html(`<header${_attr_class("_c3")}>`);
|
|
7344
7369
|
_if(() => {
|
|
7345
7370
|
if (input.backHref) {
|
|
7346
7371
|
const $scope1_id = _scope_id();
|
|
7347
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7372
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_ed"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7348
7373
|
icon_back_default({ size: 14 });
|
|
7349
7374
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7350
7375
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7351
7376
|
return 0;
|
|
7352
7377
|
} else if (input.onBack) {
|
|
7353
7378
|
const $scope2_id = _scope_id();
|
|
7354
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7379
|
+
_html(`<button${_attr_class([iconBtnRow, "_ed"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7355
7380
|
icon_back_default({ size: 14 });
|
|
7356
7381
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7357
7382
|
_script($scope2_id, "t0");
|
|
@@ -7359,11 +7384,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7359
7384
|
return 1;
|
|
7360
7385
|
}
|
|
7361
7386
|
}, $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);
|
|
7362
|
-
_html(`<div${_attr_class("
|
|
7387
|
+
_html(`<div${_attr_class("_c5")}><h1${_attr("id", input.titleId)}${_attr_class("_c4")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7363
7388
|
_if(() => {
|
|
7364
7389
|
if (input.meta) {
|
|
7365
7390
|
const $scope3_id = _scope_id();
|
|
7366
|
-
_html(`<p${_attr_class("
|
|
7391
|
+
_html(`<p${_attr_class("_c6")}>`);
|
|
7367
7392
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7368
7393
|
_html("</p>");
|
|
7369
7394
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7374,7 +7399,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7374
7399
|
_if(() => {
|
|
7375
7400
|
if (input.actions) {
|
|
7376
7401
|
const $scope4_id = _scope_id();
|
|
7377
|
-
_html(`<div${_attr_class("
|
|
7402
|
+
_html(`<div${_attr_class("_c7")}>`);
|
|
7378
7403
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7379
7404
|
_html("</div>");
|
|
7380
7405
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7442,7 +7467,7 @@ var icon_agent_default = _template("O", (input) => {
|
|
|
7442
7467
|
n: $badge__closures
|
|
7443
7468
|
});
|
|
7444
7469
|
});
|
|
7445
|
-
var usageNote = "
|
|
7470
|
+
var usageNote = "_hb _W";
|
|
7446
7471
|
//#endregion
|
|
7447
7472
|
//#region src/tags/icons/icon-warning.marko
|
|
7448
7473
|
var icon_warning_default = _template("vb", (input) => {
|
|
@@ -7472,11 +7497,11 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7472
7497
|
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);
|
|
7473
7498
|
const $scope0_id = _scope_id();
|
|
7474
7499
|
const agent = input.agent;
|
|
7475
|
-
_html(`<div${_attr_class(["
|
|
7500
|
+
_html(`<div${_attr_class(["_g6", { ["_g7"]: input.hideName }])}><div${_attr_class("_g8")}>`);
|
|
7476
7501
|
_if(() => {
|
|
7477
7502
|
if (!input.hideName) {
|
|
7478
7503
|
const $scope1_id = _scope_id();
|
|
7479
|
-
_html(`<strong${_attr_class("
|
|
7504
|
+
_html(`<strong${_attr_class("_hq")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7480
7505
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7481
7506
|
return 0;
|
|
7482
7507
|
}
|
|
@@ -7484,7 +7509,7 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7484
7509
|
_if(() => {
|
|
7485
7510
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7486
7511
|
const $scope2_id = _scope_id();
|
|
7487
|
-
_html(`<span${_attr_class("
|
|
7512
|
+
_html(`<span${_attr_class("_g9")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7488
7513
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7489
7514
|
return 0;
|
|
7490
7515
|
}
|
|
@@ -7492,21 +7517,21 @@ var usage_meters_default = _template("K", (input) => {
|
|
|
7492
7517
|
_if(() => {
|
|
7493
7518
|
if (agent.stale_seconds != null) {
|
|
7494
7519
|
const $scope3_id = _scope_id();
|
|
7495
|
-
_html(`<span${_attr_class("
|
|
7520
|
+
_html(`<span${_attr_class("_g_")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7496
7521
|
icon_warning_default({ size: 12 });
|
|
7497
7522
|
_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)}`);
|
|
7498
7523
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7499
7524
|
return 0;
|
|
7500
7525
|
}
|
|
7501
7526
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7502
|
-
_html(`</div><div${_attr_class(["
|
|
7527
|
+
_html(`</div><div${_attr_class(["_ha", { ["_hr"]: agent.stale_seconds != null }])}>`);
|
|
7503
7528
|
_for_of(agent.windows || [], (win) => {
|
|
7504
7529
|
const $scope4_id = _scope_id();
|
|
7505
7530
|
const pct = pctText(win.used_percent);
|
|
7506
7531
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7507
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7508
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7509
|
-
_html(`<div${_attr_class("
|
|
7532
|
+
const fillClass = win.used_percent >= 90 ? "_hj" : win.used_percent >= 70 ? "_hi" : win.used_percent >= 40 ? "_hh" : "_hg";
|
|
7533
|
+
const pctClass = win.used_percent >= 90 ? "_ho" : win.used_percent >= 70 ? "_hn" : win.used_percent >= 40 ? "_hm" : "_hl";
|
|
7534
|
+
_html(`<div${_attr_class("_hc")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_hd")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_he")}><span${_attr_class(["_hf", 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(["_hk", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hp")}>`);
|
|
7510
7535
|
_if(() => {
|
|
7511
7536
|
if (label) {
|
|
7512
7537
|
const $scope6_id = _scope_id();
|
|
@@ -7782,14 +7807,14 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7782
7807
|
localCode = null;
|
|
7783
7808
|
}
|
|
7784
7809
|
}, "F0", $scope0_id);
|
|
7785
|
-
_html(`<div${_attr_class(["
|
|
7810
|
+
_html(`<div${_attr_class(["_hs", input.class])}>`);
|
|
7786
7811
|
_for_of(input.items, (s) => {
|
|
7787
7812
|
const $scope1_id = _scope_id();
|
|
7788
|
-
_html(`<div${_attr_class("
|
|
7813
|
+
_html(`<div${_attr_class("_ht")}><span${_attr_class("_hv")}><span${_attr_class("_hw")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hx", "_hy"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7789
7814
|
_if(() => {
|
|
7790
7815
|
if (!busy) {
|
|
7791
7816
|
const $scope2_id = _scope_id();
|
|
7792
|
-
_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, "
|
|
7817
|
+
_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, "_hz"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7793
7818
|
_script($scope2_id, "F1");
|
|
7794
7819
|
writeScope($scope2_id, {});
|
|
7795
7820
|
return 0;
|
|
@@ -7804,13 +7829,13 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7804
7829
|
_if(() => {
|
|
7805
7830
|
if (localBusy && localCode) {
|
|
7806
7831
|
const $scope4_id = _scope_id();
|
|
7807
|
-
_html(`<div${_attr_class(["
|
|
7832
|
+
_html(`<div${_attr_class(["_ht", "_hA"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hB")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hC")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7808
7833
|
_script($scope4_id, "F2");
|
|
7809
7834
|
writeScope($scope4_id, {});
|
|
7810
7835
|
return 0;
|
|
7811
7836
|
} else if (localBusy) {
|
|
7812
7837
|
const $scope6_id = _scope_id();
|
|
7813
|
-
_html(`<div${_attr_class(["
|
|
7838
|
+
_html(`<div${_attr_class(["_ht", "_hA"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7814
7839
|
writeScope($scope6_id, {});
|
|
7815
7840
|
return 1;
|
|
7816
7841
|
}
|
|
@@ -7818,14 +7843,14 @@ var sso_auth_default = _template("F", (input) => {
|
|
|
7818
7843
|
_if(() => {
|
|
7819
7844
|
if (localError) {
|
|
7820
7845
|
const $scope5_id = _scope_id();
|
|
7821
|
-
_html(`<p${_attr_class(["
|
|
7846
|
+
_html(`<p${_attr_class(["_ht", "_hD"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7822
7847
|
writeScope($scope5_id, {});
|
|
7823
7848
|
return 0;
|
|
7824
7849
|
}
|
|
7825
7850
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7826
7851
|
_for_of(skipped, (s) => {
|
|
7827
7852
|
const $scope3_id = _scope_id();
|
|
7828
|
-
_html(`<div${_attr_class(["
|
|
7853
|
+
_html(`<div${_attr_class(["_ht", "_hu"])}><span${_attr_class("_hv")}><span${_attr_class("_hw")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hx")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hz"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7829
7854
|
_script($scope3_id, "F3");
|
|
7830
7855
|
writeScope($scope3_id, {
|
|
7831
7856
|
i: s?.org,
|
|
@@ -7876,7 +7901,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7876
7901
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7877
7902
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7878
7903
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7879
|
-
_html(`<li${_attr_class("
|
|
7904
|
+
_html(`<li${_attr_class("_cT")}>`);
|
|
7880
7905
|
_if(() => {
|
|
7881
7906
|
if (input.busy != null) {
|
|
7882
7907
|
const $scope1_id = _scope_id();
|
|
@@ -7886,20 +7911,20 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7886
7911
|
} else {
|
|
7887
7912
|
const $scope2_id = _scope_id();
|
|
7888
7913
|
const popId = _id();
|
|
7889
|
-
_html(`<button${_attr_class("
|
|
7914
|
+
_html(`<button${_attr_class("_cU")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7890
7915
|
_if(() => {
|
|
7891
7916
|
if (input.hint) {
|
|
7892
7917
|
const $scope3_id = _scope_id();
|
|
7893
|
-
_html(`<span${_attr_class("
|
|
7918
|
+
_html(`<span${_attr_class("_cW")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7894
7919
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7895
7920
|
return 0;
|
|
7896
7921
|
}
|
|
7897
7922
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7898
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7923
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_ce", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7899
7924
|
_if(() => {
|
|
7900
7925
|
if (input.description) {
|
|
7901
7926
|
const $scope4_id = _scope_id();
|
|
7902
|
-
_html(`<span${_attr_class("
|
|
7927
|
+
_html(`<span${_attr_class("_cg")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7903
7928
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7904
7929
|
return 0;
|
|
7905
7930
|
}
|
|
@@ -7907,12 +7932,12 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7907
7932
|
_if(() => {
|
|
7908
7933
|
if (input.sourceUrl) {
|
|
7909
7934
|
const $scope5_id = _scope_id();
|
|
7910
|
-
_html(`<a${_attr_class(["
|
|
7935
|
+
_html(`<a${_attr_class(["_cg", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7911
7936
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7912
7937
|
return 0;
|
|
7913
7938
|
} else if (input.source) {
|
|
7914
7939
|
const $scope6_id = _scope_id();
|
|
7915
|
-
_html(`<span${_attr_class("
|
|
7940
|
+
_html(`<span${_attr_class("_cg")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7916
7941
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7917
7942
|
_: _scope_with_id($scope2_id),
|
|
7918
7943
|
Cs: $si__input_source && 1
|
|
@@ -7920,7 +7945,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7920
7945
|
return 1;
|
|
7921
7946
|
} else if (input.noteLocal) {
|
|
7922
7947
|
const $scope10_id = _scope_id();
|
|
7923
|
-
_html(`<span${_attr_class(["
|
|
7948
|
+
_html(`<span${_attr_class(["_cg", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7924
7949
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7925
7950
|
return 2;
|
|
7926
7951
|
}
|
|
@@ -7928,7 +7953,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7928
7953
|
_if(() => {
|
|
7929
7954
|
if (input.tags) {
|
|
7930
7955
|
const $scope7_id = _scope_id();
|
|
7931
|
-
_html(`<span${_attr_class("
|
|
7956
|
+
_html(`<span${_attr_class("_cf")}>`);
|
|
7932
7957
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7933
7958
|
_html("</span>");
|
|
7934
7959
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7938,7 +7963,7 @@ var skill_chip_default = _template("E", (input) => {
|
|
|
7938
7963
|
_if(() => {
|
|
7939
7964
|
if (input.actions) {
|
|
7940
7965
|
const $scope8_id = _scope_id();
|
|
7941
|
-
_html(`<div${_attr_class("
|
|
7966
|
+
_html(`<div${_attr_class("_cY")}>`);
|
|
7942
7967
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7943
7968
|
_html("</div>");
|
|
7944
7969
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -8724,7 +8749,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8724
8749
|
const githubId = _id();
|
|
8725
8750
|
const backupId = _id();
|
|
8726
8751
|
const machineId = _id();
|
|
8727
|
-
_html(`<div${_attr_class("
|
|
8752
|
+
_html(`<div${_attr_class("_cZ")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c0")}><div${_attr_class("_c1")}>`);
|
|
8728
8753
|
_set_serialize_reason({
|
|
8729
8754
|
0: _serialize_guard($scope0_reason, 4),
|
|
8730
8755
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8756,7 +8781,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8756
8781
|
_resume_branch($scope12_id);
|
|
8757
8782
|
}, $scope0_id) })
|
|
8758
8783
|
});
|
|
8759
|
-
_html(`<div${_attr_class("
|
|
8784
|
+
_html(`<div${_attr_class("_c2")}>`);
|
|
8760
8785
|
_if(() => {
|
|
8761
8786
|
if (setup && !setup.ready) {
|
|
8762
8787
|
const $scope4_id = _scope_id();
|
|
@@ -8799,16 +8824,16 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8799
8824
|
_if(() => {
|
|
8800
8825
|
if (selfUpdatePending || selfUpdating) {
|
|
8801
8826
|
const $scope43_id = _scope_id();
|
|
8802
|
-
_html(`<div${_attr_class("
|
|
8827
|
+
_html(`<div${_attr_class("_dI")} role=status><div${_attr_class("_dJ")}>`);
|
|
8803
8828
|
_if(() => {
|
|
8804
8829
|
if (selfUpdating) {
|
|
8805
8830
|
const $scope81_id = _scope_id();
|
|
8806
|
-
_html(`<span${_attr_class("
|
|
8831
|
+
_html(`<span${_attr_class("_dK")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dL")}>The app restarts and reloads when it is done.</span>`);
|
|
8807
8832
|
writeScope($scope81_id, {});
|
|
8808
8833
|
return 0;
|
|
8809
8834
|
} else {
|
|
8810
8835
|
const $scope44_id = _scope_id();
|
|
8811
|
-
_html(`<span${_attr_class("
|
|
8836
|
+
_html(`<span${_attr_class("_dK")}>Update available</span><span${_attr_class("_dL")}>v${_text_resume($scope44_id, "c", self.version, 2)} → v${_text_resume($scope44_id, "d", self.latest, 2)}</span>`);
|
|
8812
8837
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope44_id, {})));
|
|
8813
8838
|
return 1;
|
|
8814
8839
|
}
|
|
@@ -8838,11 +8863,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8838
8863
|
_: _scope_with_id($scope0_id)
|
|
8839
8864
|
});
|
|
8840
8865
|
}, $scope0_id) };
|
|
8841
|
-
_html(`<section${_attr_class("
|
|
8866
|
+
_html(`<section${_attr_class("_b8")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_b9")}><h2${_attr("id", agentsId)}${_attr_class("_cl")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_c_")}><span${_attr_class("_W")}>Default</span><span${_attr_class("_o")}>`);
|
|
8842
8867
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8843
8868
|
setPreferred(v);
|
|
8844
8869
|
}, "A0", $scope0_id), () => {
|
|
8845
|
-
_html(`<select${_attr_class(["_p", "
|
|
8870
|
+
_html(`<select${_attr_class(["_p", "_da"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8846
8871
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
8847
8872
|
const $scope83_id = _scope_id();
|
|
8848
8873
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope83_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope83_id, "a", $sg__input_agents)}`);
|
|
@@ -8857,14 +8882,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8857
8882
|
const rows = lone ? [] : a.instances;
|
|
8858
8883
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8859
8884
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8860
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8885
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_db", { ["_dd"]: lone && !lone.enabled }])}>`);
|
|
8861
8886
|
_set_serialize_reason(12);
|
|
8862
8887
|
const $childScope3 = _peek_scope_id();
|
|
8863
8888
|
icon_agent_default({
|
|
8864
8889
|
agent: a.id,
|
|
8865
8890
|
size: 18
|
|
8866
8891
|
});
|
|
8867
|
-
_html(`<div${_attr_class("
|
|
8892
|
+
_html(`<div${_attr_class("_cd")}><span${_attr_class("_cf")}><span${_attr_class("_ce")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8868
8893
|
_if(() => {
|
|
8869
8894
|
if (lone && input.preferred === lone.id) {
|
|
8870
8895
|
const $scope85_id = _scope_id();
|
|
@@ -8877,12 +8902,12 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8877
8902
|
_if(() => {
|
|
8878
8903
|
if (active.has(a.id)) {
|
|
8879
8904
|
const $scope13_id = _scope_id();
|
|
8880
|
-
_html(`<span${_attr_class("
|
|
8905
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8881
8906
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8882
8907
|
return 0;
|
|
8883
8908
|
} else if (!a.installed) {
|
|
8884
8909
|
const $scope86_id = _scope_id();
|
|
8885
|
-
_html(`<span${_attr_class("
|
|
8910
|
+
_html(`<span${_attr_class("_cg")}>Not installed</span>`);
|
|
8886
8911
|
writeScope($scope86_id, {});
|
|
8887
8912
|
return 1;
|
|
8888
8913
|
}
|
|
@@ -8913,15 +8938,15 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8913
8938
|
_if(() => {
|
|
8914
8939
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8915
8940
|
const $scope2_id = _scope_id();
|
|
8916
|
-
_html(`<ul${_attr_class(["
|
|
8941
|
+
_html(`<ul${_attr_class(["_df", { ["_dd"]: lone && !lone.enabled }])}>`);
|
|
8917
8942
|
_for_of(rows, (inst) => {
|
|
8918
8943
|
const $scope3_id = _scope_id();
|
|
8919
8944
|
const accounts = accountsFor(inst.id);
|
|
8920
|
-
_html(`<li${_attr_class(["
|
|
8945
|
+
_html(`<li${_attr_class(["_dc", { ["_dd"]: !inst.enabled }])}><div${_attr_class("_db")}>`);
|
|
8921
8946
|
_set_serialize_reason(12);
|
|
8922
8947
|
const $childScope5 = _peek_scope_id();
|
|
8923
8948
|
icon_agent_default({ agent: inst.id });
|
|
8924
|
-
_html(`<span${_attr_class(["
|
|
8949
|
+
_html(`<span${_attr_class(["_de", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8925
8950
|
_if(() => {
|
|
8926
8951
|
if (input.preferred === inst.id) {
|
|
8927
8952
|
const $scope87_id = _scope_id();
|
|
@@ -9000,24 +9025,24 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9000
9025
|
_if(() => {
|
|
9001
9026
|
if (!usage && families.length) {
|
|
9002
9027
|
const $scope90_id = _scope_id();
|
|
9003
|
-
_html(`<p${_attr_class("
|
|
9028
|
+
_html(`<p${_attr_class("_ci")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9004
9029
|
writeScope($scope90_id, {});
|
|
9005
9030
|
return 0;
|
|
9006
9031
|
} else if (usage?.error) {
|
|
9007
9032
|
const $scope9_id = _scope_id();
|
|
9008
|
-
_html(`<p${_attr_class("
|
|
9033
|
+
_html(`<p${_attr_class("_ci")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
9009
9034
|
writeScope($scope9_id, {});
|
|
9010
9035
|
return 1;
|
|
9011
9036
|
}
|
|
9012
9037
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
9013
|
-
_html(`</section></div><div${_attr_class("
|
|
9038
|
+
_html(`</section></div><div${_attr_class("_c2")}><section${_attr_class("_b8")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_b9")}><h2${_attr("id", githubId)}${_attr_class("_cl")}>GitHub</h2>`);
|
|
9014
9039
|
_if(() => {
|
|
9015
9040
|
if (setup) {
|
|
9016
9041
|
const $scope41_id = _scope_id();
|
|
9017
9042
|
_set_serialize_reason(44);
|
|
9018
9043
|
const $childScope10 = _peek_scope_id();
|
|
9019
9044
|
add_field_default({
|
|
9020
|
-
class: "
|
|
9045
|
+
class: "_dn",
|
|
9021
9046
|
open: addingHost,
|
|
9022
9047
|
openChange: _resume((_new_addingHost) => {
|
|
9023
9048
|
addingHost = _new_addingHost;
|
|
@@ -9047,19 +9072,19 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9047
9072
|
return 0;
|
|
9048
9073
|
}
|
|
9049
9074
|
}, $scope0_id, "y");
|
|
9050
|
-
_html(`</div><div${_attr_class(["
|
|
9075
|
+
_html(`</div><div${_attr_class(["_cc", "_cs"])}>`);
|
|
9051
9076
|
_for_of(setup?.github || [], (h) => {
|
|
9052
9077
|
const $scope7_id = _scope_id();
|
|
9053
9078
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9054
9079
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9055
9080
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9056
9081
|
const busy = active.has(h.host);
|
|
9057
|
-
_html(`<div${_attr_class(["_ct", "
|
|
9082
|
+
_html(`<div${_attr_class(["_ct", "_do"])}><div${_attr_class("_dp")}>`);
|
|
9058
9083
|
icon_github_default({
|
|
9059
9084
|
size: 18,
|
|
9060
|
-
class: "
|
|
9085
|
+
class: "_dq"
|
|
9061
9086
|
});
|
|
9062
|
-
_html(`<div${_attr_class("
|
|
9087
|
+
_html(`<div${_attr_class("_cd")}><span${_attr_class("_cf")}><span${_attr_class("_ce")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
9063
9088
|
_if(() => {
|
|
9064
9089
|
if (h.isEnterprise) {
|
|
9065
9090
|
const $scope94_id = _scope_id();
|
|
@@ -9072,25 +9097,25 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9072
9097
|
_if(() => {
|
|
9073
9098
|
if (busy) {
|
|
9074
9099
|
const $scope14_id = _scope_id();
|
|
9075
|
-
_html(`<span${_attr_class(["
|
|
9100
|
+
_html(`<span${_attr_class(["_cg", "_dr"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
9076
9101
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9077
9102
|
return 0;
|
|
9078
9103
|
} else if (h.authed) {
|
|
9079
9104
|
const $scope92_id = _scope_id();
|
|
9080
|
-
_html(`<span${_attr_class(["
|
|
9105
|
+
_html(`<span${_attr_class(["_cg", "_dr"])}>`);
|
|
9081
9106
|
icon_check_default({
|
|
9082
9107
|
size: 12,
|
|
9083
|
-
class: "
|
|
9108
|
+
class: "_ds"
|
|
9084
9109
|
});
|
|
9085
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9110
|
+
_html(` Signed in as <strong${_attr_class("_du")}>${_text_resume($scope92_id, "d", h.user || "?")}</strong></span>`);
|
|
9086
9111
|
writeScope($scope92_id, {});
|
|
9087
9112
|
return 1;
|
|
9088
9113
|
} else if (h.error) {
|
|
9089
9114
|
const $scope93_id = _scope_id();
|
|
9090
9115
|
_html(`<span${_attr_class([
|
|
9091
|
-
"
|
|
9092
|
-
"
|
|
9093
|
-
"
|
|
9116
|
+
"_cg",
|
|
9117
|
+
"_dr",
|
|
9118
|
+
"_dt"
|
|
9094
9119
|
])}>`);
|
|
9095
9120
|
icon_warning_default({ size: 12 });
|
|
9096
9121
|
_html(`${_text_resume($scope93_id, "c", h.error)}</span>`);
|
|
@@ -9098,7 +9123,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9098
9123
|
return 2;
|
|
9099
9124
|
} else {
|
|
9100
9125
|
const $scope95_id = _scope_id();
|
|
9101
|
-
_html(`<span${_attr_class(["
|
|
9126
|
+
_html(`<span${_attr_class(["_cg", "_dr"])}>Not signed in</span>`);
|
|
9102
9127
|
writeScope($scope95_id, {});
|
|
9103
9128
|
return 3;
|
|
9104
9129
|
}
|
|
@@ -9141,7 +9166,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9141
9166
|
const $childScope12 = _peek_scope_id();
|
|
9142
9167
|
arm_button_default({
|
|
9143
9168
|
class: [
|
|
9144
|
-
"
|
|
9169
|
+
"_ch",
|
|
9145
9170
|
"_7",
|
|
9146
9171
|
"_8"
|
|
9147
9172
|
],
|
|
@@ -9172,7 +9197,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9172
9197
|
_if(() => {
|
|
9173
9198
|
if (busy && authCodes.has(h.host)) {
|
|
9174
9199
|
const $scope35_id = _scope_id();
|
|
9175
|
-
_html(`<div${_attr_class("
|
|
9200
|
+
_html(`<div${_attr_class("_dv")}><span${_attr_class("_dw")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dy")}>${_text_resume($scope35_id, "d", h.host)}/login/device</a>${_el_resume($scope35_id, "c")}</span><code${_attr_class("_dx")}>${_text_resume($scope35_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
9176
9201
|
_subscribe($authCodes__closures, writeScope($scope35_id, { Ch6: 1 }));
|
|
9177
9202
|
return 0;
|
|
9178
9203
|
}
|
|
@@ -9184,7 +9209,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9184
9209
|
_set_serialize_reason(30);
|
|
9185
9210
|
const $childScope13 = _peek_scope_id();
|
|
9186
9211
|
sso_auth_default({
|
|
9187
|
-
class: ["_ct", "
|
|
9212
|
+
class: ["_ct", "_dz"],
|
|
9188
9213
|
items: hostSso$1,
|
|
9189
9214
|
skipped: skippedSso,
|
|
9190
9215
|
busy,
|
|
@@ -9218,12 +9243,12 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9218
9243
|
_if(() => {
|
|
9219
9244
|
if (setup && !setup.github.length) {
|
|
9220
9245
|
const $scope98_id = _scope_id();
|
|
9221
|
-
_html(`<p${_attr_class("
|
|
9246
|
+
_html(`<p${_attr_class("_ci")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9222
9247
|
writeScope($scope98_id, {});
|
|
9223
9248
|
return 0;
|
|
9224
9249
|
}
|
|
9225
9250
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9226
|
-
_html(`</section><section${_attr_class("
|
|
9251
|
+
_html(`</section><section${_attr_class("_b8")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_b9")}><h2${_attr("id", machineId)}${_attr_class("_cl")}>Machine</h2></div><div${_attr_class(["_cc", "_cs"])}><div${_attr_class(["_ct", "_cu"])}><div${_attr_class(["_cv", { ["_cw"]: skillsOpen }])}><button${_attr_class("_cx")} aria-expanded=true>`);
|
|
9227
9252
|
_set_serialize_reason(1);
|
|
9228
9253
|
const $childScope14 = _peek_scope_id();
|
|
9229
9254
|
icon_chevron_right_default({
|
|
@@ -9270,11 +9295,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9270
9295
|
_if(() => {
|
|
9271
9296
|
if (looksLikeSource(skillQuery)) {
|
|
9272
9297
|
const $scope17_id = _scope_id();
|
|
9273
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9298
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cd")}><span${_attr_class(["_dj", "_y"])}>${_text_resume($scope17_id, "d", skillQuery.trim())}</span>`);
|
|
9274
9299
|
_if(() => {
|
|
9275
9300
|
if (active.has(skillQuery.trim())) {
|
|
9276
9301
|
const $scope18_id = _scope_id();
|
|
9277
|
-
_html(`<span${_attr_class("
|
|
9302
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9278
9303
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope18_id, {
|
|
9279
9304
|
Ch1: 3,
|
|
9280
9305
|
Chs: 2
|
|
@@ -9282,7 +9307,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9282
9307
|
return 0;
|
|
9283
9308
|
} else {
|
|
9284
9309
|
const $scope100_id = _scope_id();
|
|
9285
|
-
_html(`<span${_attr_class("
|
|
9310
|
+
_html(`<span${_attr_class("_cg")}>Add straight from this source</span>`);
|
|
9286
9311
|
writeScope($scope100_id, {});
|
|
9287
9312
|
return 1;
|
|
9288
9313
|
}
|
|
@@ -9308,16 +9333,16 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9308
9333
|
_for_of(skillHits || [], (h) => {
|
|
9309
9334
|
const $scope19_id = _scope_id();
|
|
9310
9335
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9311
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9336
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cd")}><span${_attr_class(["_dj", "_y"])}>${_text_resume($scope19_id, "d", h.name)}</span>`);
|
|
9312
9337
|
_if(() => {
|
|
9313
9338
|
if (active.has(h.skillId)) {
|
|
9314
9339
|
const $scope20_id = _scope_id();
|
|
9315
|
-
_html(`<span${_attr_class("
|
|
9340
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope20_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9316
9341
|
_subscribe($active__closures, writeScope($scope20_id, { Ch1: 5 }));
|
|
9317
9342
|
return 0;
|
|
9318
9343
|
} else {
|
|
9319
9344
|
const $scope101_id = _scope_id();
|
|
9320
|
-
_html(`<span${_attr_class("
|
|
9345
|
+
_html(`<span${_attr_class("_cg")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9321
9346
|
writeScope($scope101_id, {});
|
|
9322
9347
|
return 1;
|
|
9323
9348
|
}
|
|
@@ -9386,18 +9411,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9386
9411
|
_if(() => {
|
|
9387
9412
|
if (skills && !skills.agents.length) {
|
|
9388
9413
|
const $scope104_id = _scope_id();
|
|
9389
|
-
_html(`<p${_attr_class("
|
|
9414
|
+
_html(`<p${_attr_class("_ci")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9390
9415
|
writeScope($scope104_id, {});
|
|
9391
9416
|
return 0;
|
|
9392
9417
|
} else if (skills && !skills.available) {
|
|
9393
9418
|
const $scope22_id = _scope_id();
|
|
9394
|
-
_html(`<p${_attr_class("
|
|
9419
|
+
_html(`<p${_attr_class("_ci")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope22_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope22_id, "b")}</p>`);
|
|
9395
9420
|
_script($scope22_id, "A66");
|
|
9396
9421
|
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9397
9422
|
return 1;
|
|
9398
9423
|
}
|
|
9399
9424
|
}, $scope21_id, "b", 1, 1, 1, 0, 1);
|
|
9400
|
-
_html(`<ul${_attr_class("
|
|
9425
|
+
_html(`<ul${_attr_class("_cS")}>`);
|
|
9401
9426
|
_for_of(skills?.global || [], (s) => {
|
|
9402
9427
|
const $scope23_id = _scope_id();
|
|
9403
9428
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9475,7 +9500,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9475
9500
|
_if(() => {
|
|
9476
9501
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9477
9502
|
const $scope108_id = _scope_id();
|
|
9478
|
-
_html(`<p${_attr_class("
|
|
9503
|
+
_html(`<p${_attr_class("_ci")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9479
9504
|
writeScope($scope108_id, {});
|
|
9480
9505
|
return 0;
|
|
9481
9506
|
}
|
|
@@ -9496,7 +9521,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9496
9521
|
_if(() => {
|
|
9497
9522
|
if (bulk) {
|
|
9498
9523
|
const $scope34_id = _scope_id();
|
|
9499
|
-
_html(`<span${_attr_class("
|
|
9524
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope34_id, "c", bulk.action === "update" ? "Updating" : "Installing")} ${_text_resume($scope34_id, "d", Math.min(bulk.done + 1, bulk.total), 2)}/${_text_resume($scope34_id, "e", bulk.total, 2)}${_text_resume($scope34_id, "f", activeLine && ` — ${activeLine}`, 2)}</span>`);
|
|
9500
9525
|
writeScope($scope34_id, {});
|
|
9501
9526
|
return 0;
|
|
9502
9527
|
} else {
|
|
@@ -9560,16 +9585,16 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9560
9585
|
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9561
9586
|
_for_of(hits || [], (h) => {
|
|
9562
9587
|
const $scope29_id = _scope_id();
|
|
9563
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9588
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cd")}><span${_attr_class(["_dj", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9564
9589
|
_if(() => {
|
|
9565
9590
|
if (active.has(h.name)) {
|
|
9566
9591
|
const $scope30_id = _scope_id();
|
|
9567
|
-
_html(`<span${_attr_class("
|
|
9592
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9568
9593
|
_subscribe($active__closures, writeScope($scope30_id, { Ch1: 9 }));
|
|
9569
9594
|
return 0;
|
|
9570
9595
|
} else if (h.description) {
|
|
9571
9596
|
const $scope110_id = _scope_id();
|
|
9572
|
-
_html(`<span${_attr_class("
|
|
9597
|
+
_html(`<span${_attr_class("_cg")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9573
9598
|
writeScope($scope110_id, {});
|
|
9574
9599
|
return 1;
|
|
9575
9600
|
}
|
|
@@ -9620,7 +9645,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9620
9645
|
_if(() => {
|
|
9621
9646
|
if (setup && !setup.mise.installed) {
|
|
9622
9647
|
const $scope31_id = _scope_id();
|
|
9623
|
-
_html(`<p${_attr_class("
|
|
9648
|
+
_html(`<p${_attr_class("_ci")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope31_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope31_id, "b")}</p>`);
|
|
9624
9649
|
_script($scope31_id, "A76");
|
|
9625
9650
|
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9626
9651
|
return 0;
|
|
@@ -9630,11 +9655,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9630
9655
|
_if(() => {
|
|
9631
9656
|
if (self) {
|
|
9632
9657
|
const $scope46_id = _scope_id();
|
|
9633
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9658
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dj", "_y"])}>work</span>`);
|
|
9634
9659
|
_if(() => {
|
|
9635
9660
|
if (selfUpdating) {
|
|
9636
9661
|
const $scope112_id = _scope_id();
|
|
9637
|
-
_html(`<span${_attr_class("
|
|
9662
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9638
9663
|
writeScope($scope112_id, {});
|
|
9639
9664
|
return 0;
|
|
9640
9665
|
} else {
|
|
@@ -9648,7 +9673,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9648
9673
|
return 0;
|
|
9649
9674
|
} else if (self.latest && self.latest !== self.version) {
|
|
9650
9675
|
const $scope48_id = _scope_id();
|
|
9651
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9676
|
+
_html(`<button${_attr_class([btnSm, "_dm"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9652
9677
|
icon_arrow_up_default({ size: 12 });
|
|
9653
9678
|
_html(` ${_text_resume($scope48_id, "c", self.latest, 2)}</button>${_el_resume($scope48_id, "a")}`);
|
|
9654
9679
|
_script($scope48_id, "A77");
|
|
@@ -9691,11 +9716,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9691
9716
|
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9692
9717
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9693
9718
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9694
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9719
|
+
_html(`<li${_attr_class([toolRow, { ["_di"]: !t.installed }])}><span${_attr_class(["_dj", "_y"])}>${_text_resume($scope32_id, "c", t.label)}</span>`);
|
|
9695
9720
|
_if(() => {
|
|
9696
9721
|
if (active.has(t.id)) {
|
|
9697
9722
|
const $scope33_id = _scope_id();
|
|
9698
|
-
_html(`<span${_attr_class("
|
|
9723
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope33_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9699
9724
|
_subscribe($active__closures, writeScope($scope33_id, { Ch1: 12 }));
|
|
9700
9725
|
return 0;
|
|
9701
9726
|
} else if (t.installed) {
|
|
@@ -9703,11 +9728,11 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9703
9728
|
_if(() => {
|
|
9704
9729
|
if (t.version) {
|
|
9705
9730
|
const $scope40_id = _scope_id();
|
|
9706
|
-
_html(`<button${_attr_class(["
|
|
9731
|
+
_html(`<button${_attr_class(["_dl", "_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)}`);
|
|
9707
9732
|
_if(() => {
|
|
9708
9733
|
if (aliasPin(t)) {
|
|
9709
9734
|
const $scope116_id = _scope_id();
|
|
9710
|
-
_html(`<span${_attr_class("
|
|
9735
|
+
_html(`<span${_attr_class("_dk")}>${_text_resume($scope116_id, "b", t.pin)}</span>`);
|
|
9711
9736
|
_subscribe($for_content7__t_pin__closures, writeScope($scope116_id, { Ca0: 1 }));
|
|
9712
9737
|
return 0;
|
|
9713
9738
|
}
|
|
@@ -9726,7 +9751,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9726
9751
|
_if(() => {
|
|
9727
9752
|
if (outdated(t)) {
|
|
9728
9753
|
const $scope57_id = _scope_id();
|
|
9729
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9754
|
+
_html(`<button${_attr_class([btnSm, "_dm"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9730
9755
|
icon_arrow_up_default({ size: 12 });
|
|
9731
9756
|
_html(` ${_text_resume($scope57_id, "c", t.latest, 2)}</button>${_el_resume($scope57_id, "a")}`);
|
|
9732
9757
|
_script($scope57_id, "A79");
|
|
@@ -9734,7 +9759,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9734
9759
|
return 0;
|
|
9735
9760
|
} else if (t.newest) {
|
|
9736
9761
|
const $scope58_id = _scope_id();
|
|
9737
|
-
_html(`<button${_attr_class(["
|
|
9762
|
+
_html(`<button${_attr_class(["_dl", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope58_id, "b", t.newest)} available</button>${_el_resume($scope58_id, "a")}`);
|
|
9738
9763
|
_script($scope58_id, "A80");
|
|
9739
9764
|
_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($scope58_id, { Cy: 1 })))));
|
|
9740
9765
|
return 1;
|
|
@@ -9847,14 +9872,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9847
9872
|
label: "Dark"
|
|
9848
9873
|
}
|
|
9849
9874
|
];
|
|
9850
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9875
|
+
_html(`</div></div></section><section${_attr_class("_b8")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_b9")}><h2${_attr("id", appearanceId)}${_attr_class("_cl")}>Appearance</h2></div><div${_attr_class(["_cc", "_dA"])}><div${_attr_class("_dM")}><img${_attr_class("_dN")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}<span${_attr_class("_dO")}><span${_attr_class("_dP")}>${_text_resume($scope0_id, "ax", input.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dQ")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dB")}><span${_attr_class("_dC")}>Name</span><input${_attr_input_value($scope0_id, "b1", input.instance.name, _resume(function(v) {
|
|
9851
9876
|
setInstance({ name: v });
|
|
9852
|
-
}, "A1", $scope0_id))}${_attr_class(["_Y", "
|
|
9877
|
+
}, "A1", $scope0_id))}${_attr_class(["_Y", "_dD"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b1")}</label><div${_attr_class("_dB")}><span${_attr_class("_dC")}>Theme</span><span${_attr_class("_dF")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9853
9878
|
_for_of(themeOpts, (opt) => {
|
|
9854
9879
|
const $scope49_id = _scope_id();
|
|
9855
9880
|
_html(`<button type=button${_attr_class([
|
|
9856
9881
|
"_bf",
|
|
9857
|
-
"
|
|
9882
|
+
"_dR",
|
|
9858
9883
|
{ ["_be"]: themeMode === opt.id }
|
|
9859
9884
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9860
9885
|
if (opt.id === "system") {
|
|
@@ -9874,28 +9899,28 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9874
9899
|
_: _scope_with_id($scope0_id)
|
|
9875
9900
|
});
|
|
9876
9901
|
}, "id", $scope0_id, "b5", 1, 0, 1, 0, 1);
|
|
9877
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9902
|
+
_html(`</span><span${_attr_class(["_o", "_dG"])}>`);
|
|
9878
9903
|
_attr_select_value($scope0_id, "b7", themeMode, _resume(function(v) {
|
|
9879
9904
|
setThemeMode(v);
|
|
9880
9905
|
}, "A2", $scope0_id), () => {
|
|
9881
|
-
_html(`<select${_attr_class(["_p", "
|
|
9906
|
+
_html(`<select${_attr_class(["_p", "_dH"])} aria-label="Color theme">`);
|
|
9882
9907
|
forOf(themeOpts, (opt) => {
|
|
9883
9908
|
_scope_id();
|
|
9884
9909
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9885
9910
|
});
|
|
9886
9911
|
_html("</select>");
|
|
9887
9912
|
});
|
|
9888
|
-
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("
|
|
9889
|
-
"
|
|
9890
|
-
"
|
|
9891
|
-
{ ["
|
|
9913
|
+
_html(`${_el_resume($scope0_id, "b7")}</span></span></div><div${_attr_class("_dB")}><span${_attr_class("_dC")}>Accent</span><span${_attr_class("_dS")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9914
|
+
"_dT",
|
|
9915
|
+
"_dW",
|
|
9916
|
+
{ ["_dU"]: !accent }
|
|
9892
9917
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9893
9918
|
_if(() => {
|
|
9894
9919
|
if (!accent) {
|
|
9895
9920
|
const $scope126_id = _scope_id();
|
|
9896
9921
|
icon_check_default({
|
|
9897
9922
|
size: 12,
|
|
9898
|
-
class: "
|
|
9923
|
+
class: "_dV"
|
|
9899
9924
|
});
|
|
9900
9925
|
$si__input_instance_accent && writeScope($scope126_id, {});
|
|
9901
9926
|
return 0;
|
|
@@ -9903,13 +9928,13 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9903
9928
|
}, $scope0_id, "bb", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9904
9929
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9905
9930
|
const $scope79_id = _scope_id();
|
|
9906
|
-
_html(`<button type=button${_attr_class(["
|
|
9931
|
+
_html(`<button type=button${_attr_class(["_dT", { ["_dU"]: 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)}>`);
|
|
9907
9932
|
_if(() => {
|
|
9908
9933
|
if (accent === p.value) {
|
|
9909
9934
|
const $scope127_id = _scope_id();
|
|
9910
9935
|
icon_check_default({
|
|
9911
9936
|
size: 12,
|
|
9912
|
-
class: "
|
|
9937
|
+
class: "_dV"
|
|
9913
9938
|
});
|
|
9914
9939
|
$si__input_instance_accent && writeScope($scope127_id, {});
|
|
9915
9940
|
return 0;
|
|
@@ -9923,18 +9948,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9923
9948
|
}, "value", $scope0_id, "bc", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9924
9949
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9925
9950
|
_html(`<label${_attr_class([
|
|
9926
|
-
"
|
|
9927
|
-
"
|
|
9928
|
-
{ ["
|
|
9951
|
+
"_dT",
|
|
9952
|
+
"_dX",
|
|
9953
|
+
{ ["_dU"]: customOn }
|
|
9929
9954
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "be", accent || "#3556d8", _resume(function(v) {
|
|
9930
9955
|
setInstance({ accent: v });
|
|
9931
|
-
}, "A3", $scope0_id))}${_attr_class("
|
|
9956
|
+
}, "A3", $scope0_id))}${_attr_class("_dY")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "be")}`);
|
|
9932
9957
|
_if(() => {
|
|
9933
9958
|
if (customOn) {
|
|
9934
9959
|
const $scope128_id = _scope_id();
|
|
9935
9960
|
icon_check_default({
|
|
9936
9961
|
size: 12,
|
|
9937
|
-
class: "
|
|
9962
|
+
class: "_dV"
|
|
9938
9963
|
});
|
|
9939
9964
|
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9940
9965
|
return 0;
|
|
@@ -9945,16 +9970,16 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9945
9970
|
return 1;
|
|
9946
9971
|
}
|
|
9947
9972
|
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9948
|
-
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9973
|
+
_html(`</label>${_el_resume($scope0_id, "bd", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_b8")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_b9")}><h2${_attr("id", backupId)}${_attr_class("_cl")}>Backup</h2></div><div${_attr_class(["_cc", "_cs"])}><div${_attr_class("_ct")}><div${_attr_class("_dZ")}><div${_attr_class("_cd")}>`);
|
|
9949
9974
|
_if(() => {
|
|
9950
9975
|
if (backupBusy === "preflight") {
|
|
9951
9976
|
const $scope66_id = _scope_id();
|
|
9952
|
-
_html(`<span${_attr_class("
|
|
9977
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9953
9978
|
writeScope($scope66_id, {});
|
|
9954
9979
|
return 0;
|
|
9955
9980
|
} else {
|
|
9956
9981
|
const $scope130_id = _scope_id();
|
|
9957
|
-
_html(`<span${_attr_class("
|
|
9982
|
+
_html(`<span${_attr_class("_cg")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9958
9983
|
writeScope($scope130_id, {});
|
|
9959
9984
|
return 1;
|
|
9960
9985
|
}
|
|
@@ -9972,7 +9997,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9972
9997
|
_if(() => {
|
|
9973
9998
|
if (preflight && !backupBusy) {
|
|
9974
9999
|
const $scope68_id = _scope_id();
|
|
9975
|
-
_html(`<div${_attr_class("
|
|
10000
|
+
_html(`<div${_attr_class("_d1")}><p${_attr_class("_d2")}>In the file: ${_text_resume($scope68_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope68_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope68_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope68_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope68_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope68_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope68_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_d2")}>Not in the file: `);
|
|
9976
10001
|
_if(() => {
|
|
9977
10002
|
if (preflight.unpushed) {
|
|
9978
10003
|
const $scope69_id = _scope_id();
|
|
@@ -9989,15 +10014,15 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9989
10014
|
return 0;
|
|
9990
10015
|
}
|
|
9991
10016
|
}, $scope68_id, "m");
|
|
9992
|
-
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
10017
|
+
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_d3")}>`);
|
|
9993
10018
|
_for_of(preflight.workspaces, (w) => {
|
|
9994
10019
|
const $scope132_id = _scope_id();
|
|
9995
10020
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
9996
|
-
_html(`<li${_attr_class("
|
|
10021
|
+
_html(`<li${_attr_class("_d4")}><span${_attr_class("_ce")}>${_text_resume($scope132_id, "c", w.name)}</span><ul${_attr_class("_d3")}>`);
|
|
9997
10022
|
_for_of(w.repos, (r) => {
|
|
9998
10023
|
const $scope133_id = _scope_id();
|
|
9999
10024
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
10000
|
-
_html(`<li${_attr_class("
|
|
10025
|
+
_html(`<li${_attr_class("_d5")}><span${_attr_class("_d6")}><span${_attr_class("_y")}>${_text_resume($scope133_id, "d", r.worktree)}/</span>`);
|
|
10001
10026
|
_for_of(r.unpushed, (b) => {
|
|
10002
10027
|
const $scope134_id = _scope_id();
|
|
10003
10028
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope134_id, "b", b.count)} unpushed `);
|
|
@@ -10016,10 +10041,10 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10016
10041
|
_if(() => {
|
|
10017
10042
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
10018
10043
|
const $scope135_id = _scope_id();
|
|
10019
|
-
_html(`<ul${_attr_class("
|
|
10044
|
+
_html(`<ul${_attr_class("_d7")}>`);
|
|
10020
10045
|
_for_of(r.modified, (f) => {
|
|
10021
10046
|
const $scope138_id = _scope_id();
|
|
10022
|
-
_html(`<li${_attr_class("
|
|
10047
|
+
_html(`<li${_attr_class("_d8")}><span${_attr_class([
|
|
10023
10048
|
"_N",
|
|
10024
10049
|
"_P",
|
|
10025
10050
|
tone.warn
|
|
@@ -10028,18 +10053,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10028
10053
|
}, (f) => f, $scope135_id, "b", 1, 1, 1, 0, 1);
|
|
10029
10054
|
_for_of(r.untracked, (f) => {
|
|
10030
10055
|
const $scope139_id = _scope_id();
|
|
10031
|
-
_html(`<li${_attr_class("
|
|
10056
|
+
_html(`<li${_attr_class("_d8")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope139_id, "d", f)}</span></li>`);
|
|
10032
10057
|
writeScope($scope139_id, {});
|
|
10033
10058
|
}, (f) => f, $scope135_id, "c", 1, 1, 1, 0, 1);
|
|
10034
10059
|
_for_of(r.ignored, (f) => {
|
|
10035
10060
|
const $scope140_id = _scope_id();
|
|
10036
|
-
_html(`<li${_attr_class("
|
|
10061
|
+
_html(`<li${_attr_class("_d8")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope140_id, "d", f)}</span></li>`);
|
|
10037
10062
|
writeScope($scope140_id, {});
|
|
10038
10063
|
}, (f) => f, $scope135_id, "d", 1, 1, 1, 0, 1);
|
|
10039
10064
|
_if(() => {
|
|
10040
10065
|
if (r.more) {
|
|
10041
10066
|
const $scope136_id = _scope_id();
|
|
10042
|
-
_html(`<li${_attr_class(["
|
|
10067
|
+
_html(`<li${_attr_class(["_d8", "_x"])}>+${_text_resume($scope136_id, "b", r.more, 2)} more</li>`);
|
|
10043
10068
|
_subscribe($for_content18__r_more__closures, writeScope($scope136_id, {}));
|
|
10044
10069
|
return 0;
|
|
10045
10070
|
}
|
|
@@ -10064,27 +10089,27 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10064
10089
|
i: $for_content17__w_name__closures
|
|
10065
10090
|
});
|
|
10066
10091
|
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
10067
|
-
_html(`<div${_attr_class("
|
|
10092
|
+
_html(`<div${_attr_class("_d9")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope68_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope68_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope68_id, "s")}</div></div>`);
|
|
10068
10093
|
_script($scope68_id, "A86");
|
|
10069
10094
|
writeScope($scope68_id, {});
|
|
10070
10095
|
return 0;
|
|
10071
10096
|
}
|
|
10072
10097
|
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10073
|
-
_html(`</div><div${_attr_class("_ct")}><div${_attr_class("
|
|
10098
|
+
_html(`</div><div${_attr_class("_ct")}><div${_attr_class("_dZ")}><div${_attr_class("_cd")}>`);
|
|
10074
10099
|
_if(() => {
|
|
10075
10100
|
if (backupBusy === "restore") {
|
|
10076
10101
|
const $scope67_id = _scope_id();
|
|
10077
|
-
_html(`<span${_attr_class("
|
|
10102
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
10078
10103
|
writeScope($scope67_id, {});
|
|
10079
10104
|
return 0;
|
|
10080
10105
|
} else if (restoreDone) {
|
|
10081
10106
|
const $scope75_id = _scope_id();
|
|
10082
|
-
_html(`<span${_attr_class("
|
|
10107
|
+
_html(`<span${_attr_class("_cg")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10083
10108
|
writeScope($scope75_id, {});
|
|
10084
10109
|
return 1;
|
|
10085
10110
|
} else {
|
|
10086
10111
|
const $scope141_id = _scope_id();
|
|
10087
|
-
_html(`<span${_attr_class("
|
|
10112
|
+
_html(`<span${_attr_class("_cg")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10088
10113
|
writeScope($scope141_id, {});
|
|
10089
10114
|
return 2;
|
|
10090
10115
|
}
|
|
@@ -10092,7 +10117,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10092
10117
|
_if(() => {
|
|
10093
10118
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10094
10119
|
const $scope77_id = _scope_id();
|
|
10095
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10120
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_d0")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
10096
10121
|
_script($scope77_id, "A87");
|
|
10097
10122
|
writeScope($scope77_id, {});
|
|
10098
10123
|
return 0;
|
|
@@ -10103,14 +10128,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10103
10128
|
if (restorePreview && backupBusy !== "restore") {
|
|
10104
10129
|
const $scope70_id = _scope_id();
|
|
10105
10130
|
const { preview } = restorePreview;
|
|
10106
|
-
_html(`<div${_attr_class("
|
|
10131
|
+
_html(`<div${_attr_class("_d1")}><p${_attr_class("_d2")}>From ${_text_resume($scope70_id, "c", preview.from.host, 2)} on ${_text_resume($scope70_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope70_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
10107
10132
|
_if(() => {
|
|
10108
10133
|
if (preview.workspaces.length) {
|
|
10109
10134
|
const $scope71_id = _scope_id();
|
|
10110
10135
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10111
10136
|
_for_of(preview.workspaces, (w) => {
|
|
10112
10137
|
const $scope72_id = _scope_id();
|
|
10113
|
-
_html(`<li><label${_attr_class(["
|
|
10138
|
+
_html(`<li><label${_attr_class(["_ea", { ["_ec"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_eb")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_cd")}><span${_attr_class("_cf")}><span${_attr_class("_ce")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
|
|
10114
10139
|
_if(() => {
|
|
10115
10140
|
if (w.status === "archived") {
|
|
10116
10141
|
const $scope145_id = _scope_id();
|
|
@@ -10132,7 +10157,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10132
10157
|
return 1;
|
|
10133
10158
|
}
|
|
10134
10159
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
10135
|
-
_html(`</span><span${_attr_class("
|
|
10160
|
+
_html(`</span><span${_attr_class("_cg")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
10136
10161
|
_script($scope72_id, "A88");
|
|
10137
10162
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10138
10163
|
n: w?.unknownHost,
|
|
@@ -10143,7 +10168,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10143
10168
|
return 0;
|
|
10144
10169
|
} else {
|
|
10145
10170
|
const $scope143_id = _scope_id();
|
|
10146
|
-
_html(`<p${_attr_class("
|
|
10171
|
+
_html(`<p${_attr_class("_ci")}>No workspaces in this file.</p>`);
|
|
10147
10172
|
writeScope($scope143_id, {});
|
|
10148
10173
|
return 1;
|
|
10149
10174
|
}
|
|
@@ -10183,7 +10208,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10183
10208
|
_if(() => {
|
|
10184
10209
|
if (p.total) {
|
|
10185
10210
|
const $scope74_id = _scope_id();
|
|
10186
|
-
_html(`<li><label${_attr_class(["
|
|
10211
|
+
_html(`<li><label${_attr_class(["_ea", { ["_ec"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_eb")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_cd")}><span${_attr_class("_ce")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_cg")}>`);
|
|
10187
10212
|
_if(() => {
|
|
10188
10213
|
if (p.key === "settings") {
|
|
10189
10214
|
const $scope142_id = _scope_id();
|
|
@@ -10230,7 +10255,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10230
10255
|
i: $for_content10__p_total__closures
|
|
10231
10256
|
});
|
|
10232
10257
|
}, "key", $scope70_id, "h");
|
|
10233
|
-
_html(`</ul><div${_attr_class("
|
|
10258
|
+
_html(`</ul><div${_attr_class("_d9")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope70_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope70_id, "k")}</div></div>`);
|
|
10234
10259
|
_script($scope70_id, "A90");
|
|
10235
10260
|
writeScope($scope70_id, {});
|
|
10236
10261
|
return 0;
|
|
@@ -10527,14 +10552,14 @@ function activeAgent(session) {
|
|
|
10527
10552
|
const command = session.state?.command?.trim();
|
|
10528
10553
|
return command && agentFromCommand(command) || session.agent;
|
|
10529
10554
|
}
|
|
10530
|
-
var heroTag = "
|
|
10531
|
-
var rowState = "
|
|
10532
|
-
var prChip = "
|
|
10533
|
-
var portChip = "
|
|
10555
|
+
var heroTag = "_eU _N _Q";
|
|
10556
|
+
var rowState = "_e6 _N";
|
|
10557
|
+
var prChip = "_iv _u _iu";
|
|
10558
|
+
var portChip = "_iw _u _iu";
|
|
10534
10559
|
var prState = {
|
|
10535
|
-
open: "
|
|
10536
|
-
merged: "
|
|
10537
|
-
closed: "
|
|
10560
|
+
open: "_iA",
|
|
10561
|
+
merged: "_iB",
|
|
10562
|
+
closed: "_iC"
|
|
10538
10563
|
};
|
|
10539
10564
|
//#endregion
|
|
10540
10565
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10615,7 +10640,7 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10615
10640
|
const name = repo.full_name.split("/").at(-1);
|
|
10616
10641
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10617
10642
|
}, "B3", $scope1_id);
|
|
10618
|
-
_html(`<div${_attr_class("
|
|
10643
|
+
_html(`<div${_attr_class("_it")}>`);
|
|
10619
10644
|
_for_of(repos, (repo) => {
|
|
10620
10645
|
const $scope2_id = _scope_id();
|
|
10621
10646
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10631,11 +10656,11 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10631
10656
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10632
10657
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10633
10658
|
}
|
|
10634
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10659
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_ix", { ["_iF"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10635
10660
|
_if(() => {
|
|
10636
10661
|
if (open) {
|
|
10637
10662
|
const $scope4_id = _scope_id();
|
|
10638
|
-
_html(`<a${_attr_class(["
|
|
10663
|
+
_html(`<a${_attr_class(["_ix", "_iy"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10639
10664
|
icon_diff_default({ size: 12 });
|
|
10640
10665
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10641
10666
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10643,9 +10668,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10643
10668
|
} else {
|
|
10644
10669
|
const $scope5_id = _scope_id();
|
|
10645
10670
|
_html(`<button type=button${_attr_class([
|
|
10646
|
-
"
|
|
10647
|
-
"
|
|
10648
|
-
"
|
|
10671
|
+
"_ix",
|
|
10672
|
+
"_iy",
|
|
10673
|
+
"_iz"
|
|
10649
10674
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10650
10675
|
icon_xmark_default({ size: 12 });
|
|
10651
10676
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10673,12 +10698,12 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10673
10698
|
_if(() => {
|
|
10674
10699
|
if (dead.has(p.port)) {
|
|
10675
10700
|
const $scope7_id = _scope_id();
|
|
10676
|
-
_html(`<span${_attr_class(["
|
|
10701
|
+
_html(`<span${_attr_class(["_ix", "_iD"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10677
10702
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10678
10703
|
return 0;
|
|
10679
10704
|
} else {
|
|
10680
10705
|
const $scope8_id = _scope_id();
|
|
10681
|
-
_html(`<button type=button${_attr_class(["
|
|
10706
|
+
_html(`<button type=button${_attr_class(["_ix", "_iE"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10682
10707
|
_script($scope8_id, "B6");
|
|
10683
10708
|
writeScope($scope8_id, {});
|
|
10684
10709
|
return 1;
|
|
@@ -10687,9 +10712,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10687
10712
|
const $childScope = _peek_scope_id();
|
|
10688
10713
|
arm_button_default({
|
|
10689
10714
|
class: [
|
|
10690
|
-
"
|
|
10691
|
-
"
|
|
10692
|
-
"
|
|
10715
|
+
"_ix",
|
|
10716
|
+
"_iy",
|
|
10717
|
+
"_iz"
|
|
10693
10718
|
],
|
|
10694
10719
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10695
10720
|
armedTitle: "Kill?",
|
|
@@ -11152,11 +11177,11 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11152
11177
|
const sessions = input.sessions || st?.sessions || [];
|
|
11153
11178
|
const manySessions = sessions.length > 1;
|
|
11154
11179
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11155
|
-
_html(`<div${_attr_class("
|
|
11180
|
+
_html(`<div${_attr_class("_eQ")}>`);
|
|
11156
11181
|
_if(() => {
|
|
11157
11182
|
if (ws) {
|
|
11158
11183
|
const $scope1_id = _scope_id();
|
|
11159
|
-
_html(`<section${_attr_class("
|
|
11184
|
+
_html(`<section${_attr_class("_eR")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eS")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11160
11185
|
_if(() => {
|
|
11161
11186
|
if (sessions.length === 1) {
|
|
11162
11187
|
const $scope8_id = _scope_id();
|
|
@@ -11168,7 +11193,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11168
11193
|
icon_agent_default({
|
|
11169
11194
|
agent: activeAgent(sessions[0]),
|
|
11170
11195
|
size: 16,
|
|
11171
|
-
class: "
|
|
11196
|
+
class: "_eW"
|
|
11172
11197
|
});
|
|
11173
11198
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11174
11199
|
_: _scope_with_id($scope1_id),
|
|
@@ -11177,14 +11202,14 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11177
11202
|
return 0;
|
|
11178
11203
|
}
|
|
11179
11204
|
}, $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);
|
|
11180
|
-
_html(`<span${_attr_class("
|
|
11205
|
+
_html(`<span${_attr_class("_eT")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class(heroTag)}>current</span><span${_attr_class("_eV")}>${_text_resume($scope1_id, "i", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11181
11206
|
_if(() => {
|
|
11182
11207
|
if (manySessions) {
|
|
11183
11208
|
const $scope2_id = _scope_id();
|
|
11184
|
-
_html(`<div${_attr_class("
|
|
11209
|
+
_html(`<div${_attr_class("_eX")}>`);
|
|
11185
11210
|
_for_of(sessions, (s) => {
|
|
11186
11211
|
const $scope3_id = _scope_id();
|
|
11187
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11212
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_eZ", { ["_eY"]: 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)}`);
|
|
11188
11213
|
_set_serialize_reason({
|
|
11189
11214
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11190
11215
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11194,7 +11219,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11194
11219
|
agent: activeAgent(s),
|
|
11195
11220
|
size: 14
|
|
11196
11221
|
});
|
|
11197
|
-
_html(`<span${_attr_class("
|
|
11222
|
+
_html(`<span${_attr_class("_e0")}>${_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, 7))}`);
|
|
11198
11223
|
$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, {
|
|
11199
11224
|
h: $si__input_tab && s?.id,
|
|
11200
11225
|
_: _scope_with_id($scope2_id),
|
|
@@ -11223,7 +11248,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11223
11248
|
_if(() => {
|
|
11224
11249
|
if (input.ids.length) {
|
|
11225
11250
|
const $scope4_id = _scope_id();
|
|
11226
|
-
_html(`<div${_attr_class("
|
|
11251
|
+
_html(`<div${_attr_class("_e1")}>`);
|
|
11227
11252
|
_for_of(input.ids, (id) => {
|
|
11228
11253
|
const $scope5_id = _scope_id();
|
|
11229
11254
|
const w = input.byId.get(id);
|
|
@@ -11267,7 +11292,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11267
11292
|
const rp = phaseOf(rs);
|
|
11268
11293
|
const rowSessions = rs?.sessions || [];
|
|
11269
11294
|
const many = rowSessions.length > 1;
|
|
11270
|
-
_html(`<div${_attr_class("
|
|
11295
|
+
_html(`<div${_attr_class("_e2")}><a${_attr("href", `/w/${id}`)}${_attr_class("_e3")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11271
11296
|
_if(() => {
|
|
11272
11297
|
if (rowSessions.length === 1) {
|
|
11273
11298
|
const $scope9_id = _scope_id();
|
|
@@ -11279,7 +11304,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11279
11304
|
icon_agent_default({
|
|
11280
11305
|
agent: activeAgent(rowSessions[0]),
|
|
11281
11306
|
size: 16,
|
|
11282
|
-
class: "
|
|
11307
|
+
class: "_e5"
|
|
11283
11308
|
});
|
|
11284
11309
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11285
11310
|
_: _scope_with_id($scope7_id),
|
|
@@ -11288,7 +11313,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11288
11313
|
return 0;
|
|
11289
11314
|
}
|
|
11290
11315
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11291
|
-
_html(`<span${_attr_class("
|
|
11316
|
+
_html(`<span${_attr_class("_e4")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11292
11317
|
_if(() => {
|
|
11293
11318
|
if (many) {
|
|
11294
11319
|
const $scope10_id = _scope_id();
|
|
@@ -11299,7 +11324,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11299
11324
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11300
11325
|
icon_chevron_right_default({
|
|
11301
11326
|
size: 14,
|
|
11302
|
-
class: "
|
|
11327
|
+
class: "_e7"
|
|
11303
11328
|
});
|
|
11304
11329
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11305
11330
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -12898,7 +12923,7 @@ function indent(text) {
|
|
|
12898
12923
|
return text.split("\n").map((line) => line ? ` ${line}` : line).join("\n");
|
|
12899
12924
|
}
|
|
12900
12925
|
var treeToggle = "_gp _4 _l";
|
|
12901
|
-
var pageTitle = "_gw
|
|
12926
|
+
var pageTitle = "_gw _c4";
|
|
12902
12927
|
//#endregion
|
|
12903
12928
|
//#region src/tags/diff-send.marko
|
|
12904
12929
|
var diff_send_default = _template("k", (input) => {
|
|
@@ -12908,7 +12933,7 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12908
12933
|
let sendTarget = null;
|
|
12909
12934
|
const sessions = input.sessions || [];
|
|
12910
12935
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12911
|
-
_html(`<span${_attr_class("
|
|
12936
|
+
_html(`<span${_attr_class("_hR")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12912
12937
|
_if(() => {
|
|
12913
12938
|
if (sessions.length === 1) {
|
|
12914
12939
|
const $scope1_id = _scope_id();
|
|
@@ -12918,11 +12943,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12918
12943
|
return 0;
|
|
12919
12944
|
} else if (sessions.length) {
|
|
12920
12945
|
const $scope2_id = _scope_id();
|
|
12921
|
-
_html(`<span${_attr_class("
|
|
12946
|
+
_html(`<span${_attr_class("_hS")}><button type=button${_attr_class(["_r", "_hT"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12922
12947
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12923
12948
|
sendTarget = _new_sendTarget;
|
|
12924
12949
|
}, "k0", $scope2_id), () => {
|
|
12925
|
-
_html(`<select${_attr_class("
|
|
12950
|
+
_html(`<select${_attr_class("_hU")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12926
12951
|
_for_of(sessions, (s) => {
|
|
12927
12952
|
const $scope3_id = _scope_id();
|
|
12928
12953
|
_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)}`);
|
|
@@ -12949,8 +12974,8 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12949
12974
|
});
|
|
12950
12975
|
_resume_branch($scope0_id);
|
|
12951
12976
|
});
|
|
12952
|
-
var findInput = "
|
|
12953
|
-
var findIconBtn = "
|
|
12977
|
+
var findInput = "_eh _n";
|
|
12978
|
+
var findIconBtn = "_ek _l";
|
|
12954
12979
|
//#endregion
|
|
12955
12980
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
12956
12981
|
var icon_arrow_down_default = _template("Q", (input) => {
|
|
@@ -13042,18 +13067,18 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13042
13067
|
}, 0);
|
|
13043
13068
|
}, "j0", $scope0_id);
|
|
13044
13069
|
_html(`<div${_attr_class([
|
|
13045
|
-
"
|
|
13046
|
-
input.keybar && "
|
|
13047
|
-
!open && "
|
|
13048
|
-
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("
|
|
13070
|
+
"_ef",
|
|
13071
|
+
input.keybar && "_eo",
|
|
13072
|
+
!open && "_ee"
|
|
13073
|
+
])} aria-hidden=${open ? "false" : "true"}><span${_attr_class("_eg")} aria-hidden=true>`);
|
|
13049
13074
|
icon_search_default({ size: 13 });
|
|
13050
13075
|
_html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
|
|
13051
13076
|
type(v);
|
|
13052
|
-
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "
|
|
13077
|
+
}, "j1", $scope0_id))}${_attr_class([findInput, input.keybar && "_eq"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "d")}<span${_attr_class("_ej")}>${_text_resume($scope0_id, "f", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class([findIconBtn, input.keybar && "_er"])} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13053
13078
|
icon_arrow_up_default({ size: 14 });
|
|
13054
|
-
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13079
|
+
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class([findIconBtn, input.keybar && "_er"])} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13055
13080
|
icon_arrow_down_default({ size: 14 });
|
|
13056
|
-
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "
|
|
13081
|
+
_html(`</button>${_el_resume($scope0_id, "i")}<button type=button${_attr_class([findIconBtn, input.keybar && "_er"])} title="Close find"${_attr("hidden", input.pinned)} tabindex=${open ? "0" : "-1"}>`);
|
|
13057
13082
|
icon_xmark_default({ size: 14 });
|
|
13058
13083
|
_html(`</button>${_el_resume($scope0_id, "k")}</div>${_el_resume($scope0_id, "a")}`);
|
|
13059
13084
|
const $return = focusInput;
|
|
@@ -13364,7 +13389,7 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13364
13389
|
dragging$1 = false;
|
|
13365
13390
|
if (width != null) setDiffTreeWidth(width);
|
|
13366
13391
|
}, "y2", $scope0_id);
|
|
13367
|
-
_html(`<div${_attr_class(["
|
|
13392
|
+
_html(`<div${_attr_class(["_if", { ["_ie"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_is", { ["_ir"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_ig")}>`);
|
|
13368
13393
|
_set_serialize_reason(2);
|
|
13369
13394
|
const $childScope = _peek_scope_id();
|
|
13370
13395
|
file_filter_default({
|
|
@@ -13373,22 +13398,22 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13373
13398
|
filter$1 = _new_filter;
|
|
13374
13399
|
}, "y3", $scope0_id)
|
|
13375
13400
|
});
|
|
13376
|
-
_html(`</div><div${_attr_class("
|
|
13401
|
+
_html(`</div><div${_attr_class("_ih")}>`);
|
|
13377
13402
|
_for_of(input.sections, (section$2) => {
|
|
13378
13403
|
const $scope1_id = _scope_id();
|
|
13379
|
-
_html(`<div${_attr_class(["
|
|
13404
|
+
_html(`<div${_attr_class(["_ij", { ["_ii"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13380
13405
|
_if(() => {
|
|
13381
13406
|
if (input.sections.length > 1) {
|
|
13382
13407
|
const $scope2_id = _scope_id();
|
|
13383
|
-
_html(`<button type=button${_attr_class("
|
|
13408
|
+
_html(`<button type=button${_attr_class("_ik")}${_attr("title", section$2.label)} aria-expanded=${closed$4.has(section$2.id) ? "false" : "true"}><span${_attr_class(["_il", { ["_im"]: !closed$4.has(section$2.id) }])} aria-hidden=true>`);
|
|
13384
13409
|
icon_chevron_right_default({ size: 12 });
|
|
13385
|
-
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("
|
|
13410
|
+
_html(`</span>${_el_resume($scope2_id, "b")}<span${_attr_class("_in")}>${_text_resume($scope2_id, "e", section$2.label, $sg__input_sections)}</span><span${_attr_class("_io")}>${_text_resume($scope2_id, "g", section$2.files.length, $sg__input_sections)}</span></button>${_el_resume($scope2_id, "a")}`);
|
|
13386
13411
|
_script($scope2_id, "y4");
|
|
13387
13412
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13388
13413
|
return 0;
|
|
13389
13414
|
}
|
|
13390
13415
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13391
|
-
_html(`<div${_attr_class(["
|
|
13416
|
+
_html(`<div${_attr_class(["_iq", { ["_ip"]: input.sections.length === 1 }])}${_attr("data-tree", section$2.id)}${_attr("hidden", closed$4.has(section$2.id))}></div>${_el_resume($scope1_id, "c")}</div>${_el_resume($scope1_id, "a", $sg__input_sections)}`);
|
|
13392
13417
|
writeScope($scope1_id, {
|
|
13393
13418
|
f: section$2?.id,
|
|
13394
13419
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -14152,12 +14177,12 @@ var review_view_default = _template("z", (input) => {
|
|
|
14152
14177
|
_if(() => {
|
|
14153
14178
|
if (repos && !allFiles.length) {
|
|
14154
14179
|
const $scope11_id = _scope_id();
|
|
14155
|
-
_html(`<p${_attr_class("
|
|
14180
|
+
_html(`<p${_attr_class("_cj")}>${_text_resume($scope11_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
14156
14181
|
writeScope($scope11_id, {});
|
|
14157
14182
|
return 0;
|
|
14158
14183
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
14159
14184
|
const $scope8_id = _scope_id();
|
|
14160
|
-
_html(`<p${_attr_class("
|
|
14185
|
+
_html(`<p${_attr_class("_cj")}>${_text_resume($scope8_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
14161
14186
|
writeScope($scope8_id, {});
|
|
14162
14187
|
return 1;
|
|
14163
14188
|
}
|
|
@@ -14577,8 +14602,8 @@ var icon_trash_default = _template("ub", (input) => {
|
|
|
14577
14602
|
});
|
|
14578
14603
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14579
14604
|
});
|
|
14580
|
-
var resultRow = "
|
|
14581
|
-
var resultBranch = "
|
|
14605
|
+
var resultRow = "_h3 _I";
|
|
14606
|
+
var resultBranch = "_h5 _3 _l";
|
|
14582
14607
|
//#endregion
|
|
14583
14608
|
//#region src/tags/icons/icon-branch.marko
|
|
14584
14609
|
var icon_branch_default = _template("X", (input) => {
|
|
@@ -14608,11 +14633,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14608
14633
|
let branchFilter = "";
|
|
14609
14634
|
let reloadTick = 0;
|
|
14610
14635
|
let refreshing = false;
|
|
14611
|
-
_html(`<div${_attr_class("
|
|
14636
|
+
_html(`<div${_attr_class("_h7")}>`);
|
|
14612
14637
|
_if(() => {
|
|
14613
14638
|
{
|
|
14614
14639
|
const $scope4_id = _scope_id();
|
|
14615
|
-
_html(`<p${_attr_class("
|
|
14640
|
+
_html(`<p${_attr_class("_ci")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14616
14641
|
writeScope($scope4_id, {});
|
|
14617
14642
|
return 0;
|
|
14618
14643
|
}
|
|
@@ -14713,21 +14738,21 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14713
14738
|
_resume_branch($scope9_id);
|
|
14714
14739
|
}, $scope0_id) };
|
|
14715
14740
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
14716
|
-
_html(`<div${_attr_class([compact ? "_cH" : "
|
|
14741
|
+
_html(`<div${_attr_class([compact ? "_cH" : "_hV", {
|
|
14717
14742
|
["_cI"]: compact && !input$2.open,
|
|
14718
14743
|
["_cJ"]: input$2.pinned
|
|
14719
14744
|
}])}>`);
|
|
14720
14745
|
_if(() => {
|
|
14721
14746
|
if (!compact && ssoPending.length) {
|
|
14722
14747
|
const $scope11_id = _scope_id();
|
|
14723
|
-
_html(`<div${_attr_class("
|
|
14748
|
+
_html(`<div${_attr_class("_hY")}>`);
|
|
14724
14749
|
ssoBlock.content({});
|
|
14725
14750
|
_html("</div>");
|
|
14726
14751
|
writeScope($scope11_id, {});
|
|
14727
14752
|
return 0;
|
|
14728
14753
|
}
|
|
14729
14754
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
14730
|
-
_html(`<div${!compact && input$2.action ? _attr_class("
|
|
14755
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_hW") : _attr_class("_hX")}><label${_attr_class(["_0", compact && "_cK"])}>`);
|
|
14731
14756
|
icon_search_default({
|
|
14732
14757
|
size: 14,
|
|
14733
14758
|
class: "_1"
|
|
@@ -14761,11 +14786,11 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14761
14786
|
return 0;
|
|
14762
14787
|
}
|
|
14763
14788
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
14764
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
14789
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hZ"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
14765
14790
|
_if(() => {
|
|
14766
14791
|
if (compact && ssoPending.length) {
|
|
14767
14792
|
const $scope12_id = _scope_id();
|
|
14768
|
-
_html(`<div${_attr_class("
|
|
14793
|
+
_html(`<div${_attr_class("_hY")}>`);
|
|
14769
14794
|
ssoBlock.content({});
|
|
14770
14795
|
_html("</div>");
|
|
14771
14796
|
writeScope($scope12_id, {});
|
|
@@ -14775,16 +14800,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14775
14800
|
_if(() => {
|
|
14776
14801
|
if (pasted) {
|
|
14777
14802
|
const $scope3_id = _scope_id();
|
|
14778
|
-
_html(`<ul${_attr_class("
|
|
14803
|
+
_html(`<ul${_attr_class("_h0")}><li><div${_attr_class(["_h2", "_h1"])}><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)`)}>`);
|
|
14779
14804
|
icon_plus_default({
|
|
14780
14805
|
size: 12,
|
|
14781
|
-
class: "
|
|
14806
|
+
class: "_h9"
|
|
14782
14807
|
});
|
|
14783
|
-
_html(`<span${_attr_class("
|
|
14808
|
+
_html(`<span${_attr_class("_h_")}>${_text_resume($scope3_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
14784
14809
|
_if(() => {
|
|
14785
14810
|
if (pastedForkable) {
|
|
14786
14811
|
const $scope10_id = _scope_id();
|
|
14787
|
-
_html(`<button${_attr_class(["
|
|
14812
|
+
_html(`<button${_attr_class(["_h6", { ["_h4"]: 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"}>`);
|
|
14788
14813
|
_if(() => {
|
|
14789
14814
|
if (pasteWillFork) {
|
|
14790
14815
|
const $scope14_id = _scope_id();
|
|
@@ -14804,7 +14829,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14804
14829
|
return 0;
|
|
14805
14830
|
}
|
|
14806
14831
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
14807
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
14832
|
+
_html(`<button${_attr_class([resultBranch, { ["_h4"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
14808
14833
|
icon_branch_default({ size: 12 });
|
|
14809
14834
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
14810
14835
|
_if(() => {
|
|
@@ -14831,7 +14856,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14831
14856
|
return 0;
|
|
14832
14857
|
} else if (filter && !catalog) {
|
|
14833
14858
|
const $scope13_id = _scope_id();
|
|
14834
|
-
_html(`<p${_attr_class("
|
|
14859
|
+
_html(`<p${_attr_class("_ci")}>Loading repos…</p>`);
|
|
14835
14860
|
writeScope($scope13_id, {});
|
|
14836
14861
|
return 1;
|
|
14837
14862
|
}
|
|
@@ -14839,15 +14864,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14839
14864
|
_if(() => {
|
|
14840
14865
|
if (results.length) {
|
|
14841
14866
|
const $scope5_id = _scope_id();
|
|
14842
|
-
_html(`<ul${_attr_class("
|
|
14867
|
+
_html(`<ul${_attr_class("_h0")}>`);
|
|
14843
14868
|
_for_of(results, (repo, i) => {
|
|
14844
14869
|
const $scope6_id = _scope_id();
|
|
14845
|
-
_html(`<li><div${_attr_class(["
|
|
14870
|
+
_html(`<li><div${_attr_class(["_h2", { ["_h1"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
14846
14871
|
icon_plus_default({
|
|
14847
14872
|
size: 12,
|
|
14848
|
-
class: "
|
|
14873
|
+
class: "_h9"
|
|
14849
14874
|
});
|
|
14850
|
-
_html(`<span${_attr_class("
|
|
14875
|
+
_html(`<span${_attr_class("_h_")}>${_text_resume($scope6_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_h4"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
14851
14876
|
icon_branch_default({ size: 12 });
|
|
14852
14877
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
14853
14878
|
_if(() => {
|
|
@@ -14882,7 +14907,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14882
14907
|
return 0;
|
|
14883
14908
|
} else if (filter && catalog && !pasted) {
|
|
14884
14909
|
const $scope8_id = _scope_id();
|
|
14885
|
-
_html(`<p${_attr_class("
|
|
14910
|
+
_html(`<p${_attr_class("_ci")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
14886
14911
|
writeScope($scope8_id, {});
|
|
14887
14912
|
return 1;
|
|
14888
14913
|
}
|
|
@@ -15099,7 +15124,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15099
15124
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15100
15125
|
}, "p11", $scope0_id);
|
|
15101
15126
|
const titleId = _id();
|
|
15102
|
-
_html(`<div${_attr_class("
|
|
15127
|
+
_html(`<div${_attr_class("_cZ")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c0")}><div${_attr_class("_c1")}>`);
|
|
15103
15128
|
_set_serialize_reason(30);
|
|
15104
15129
|
const $childScope2 = _peek_scope_id();
|
|
15105
15130
|
page_head_default({
|
|
@@ -15207,7 +15232,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15207
15232
|
_resume_branch($scope6_id);
|
|
15208
15233
|
}, $scope0_id) })
|
|
15209
15234
|
});
|
|
15210
|
-
_html(`<div${_attr_class("
|
|
15235
|
+
_html(`<div${_attr_class("_c2")}><section${_attr_class("_b8")}><div${_attr_class("_b9")}><h2${_attr_class("_cl")}>Details</h2></div><div${_attr_class(list$2)}><div${_attr_class(flatCardRow)}><span${_attr_class("_gj")}>Name</span><span${_attr_class(["_gk", "_gl"])}>${_text_resume($scope0_id, "m", ws.name)}</span>`);
|
|
15211
15236
|
_if(() => {
|
|
15212
15237
|
if (ws.status !== "active") {
|
|
15213
15238
|
const $scope23_id = _scope_id();
|
|
@@ -15272,12 +15297,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15272
15297
|
_if(() => {
|
|
15273
15298
|
if (pendingAction && actionStep) {
|
|
15274
15299
|
const $scope10_id = _scope_id();
|
|
15275
|
-
_html(`<p${_attr_class("
|
|
15300
|
+
_html(`<p${_attr_class("_b7")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15276
15301
|
writeScope($scope10_id, {});
|
|
15277
15302
|
return 0;
|
|
15278
15303
|
}
|
|
15279
15304
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15280
|
-
_html(`<section${_attr_class("
|
|
15305
|
+
_html(`<section${_attr_class("_b8")}><div${_attr_class("_b9")}><h2${_attr_class("_cl")}>Repos</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope0_id, "a4", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gi"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15281
15306
|
icon_plus_default({ size: 16 });
|
|
15282
15307
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15283
15308
|
_set_serialize_reason(26);
|
|
@@ -15334,7 +15359,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15334
15359
|
const $childScope5 = _peek_scope_id();
|
|
15335
15360
|
arm_button_default({
|
|
15336
15361
|
class: [
|
|
15337
|
-
"
|
|
15362
|
+
"_ch",
|
|
15338
15363
|
"_7",
|
|
15339
15364
|
"_8"
|
|
15340
15365
|
],
|
|
@@ -15367,14 +15392,14 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15367
15392
|
_html(`<li${_attr_class([
|
|
15368
15393
|
"_f4",
|
|
15369
15394
|
"_f5",
|
|
15370
|
-
"
|
|
15371
|
-
])}><span${_attr_class("_G")}></span><span${_attr_class("
|
|
15395
|
+
"_cb"
|
|
15396
|
+
])}><span${_attr_class("_G")}></span><span${_attr_class("_cg")}>Adding ${_text_resume($scope31_id, "d", name, 2)}…</span></li>`);
|
|
15372
15397
|
writeScope($scope31_id, {});
|
|
15373
15398
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15374
15399
|
_if(() => {
|
|
15375
15400
|
if (!ws.repos.length && !busy.size) {
|
|
15376
15401
|
const $scope32_id = _scope_id();
|
|
15377
|
-
_html(`<li${_attr_class(["_f4", "_f5"])}><span${_attr_class("
|
|
15402
|
+
_html(`<li${_attr_class(["_f4", "_f5"])}><span${_attr_class("_cg")}>No repos yet. Add one to start.</span></li>`);
|
|
15378
15403
|
writeScope($scope32_id, {});
|
|
15379
15404
|
return 0;
|
|
15380
15405
|
}
|
|
@@ -15384,7 +15409,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15384
15409
|
_if(() => {
|
|
15385
15410
|
if (running.length) {
|
|
15386
15411
|
const $scope15_id = _scope_id();
|
|
15387
|
-
_html(`<section${_attr_class("
|
|
15412
|
+
_html(`<section${_attr_class("_b8")}><div${_attr_class("_b9")}><h2${_attr_class("_cl")}>Running</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15388
15413
|
_for_of(running, (p) => {
|
|
15389
15414
|
const $scope16_id = _scope_id();
|
|
15390
15415
|
_html(`<li${_attr_class("_f4")}${_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")}>`);
|
|
@@ -15395,7 +15420,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15395
15420
|
writeScope($scope33_id, { d: port });
|
|
15396
15421
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15397
15422
|
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15398
|
-
"
|
|
15423
|
+
"_ch",
|
|
15399
15424
|
"_7",
|
|
15400
15425
|
"_gh"
|
|
15401
15426
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
@@ -15418,11 +15443,11 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15418
15443
|
s,
|
|
15419
15444
|
linked: false
|
|
15420
15445
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15421
|
-
_html(`</div><div${_attr_class("
|
|
15446
|
+
_html(`</div><div${_attr_class("_c2")}>`);
|
|
15422
15447
|
_if(() => {
|
|
15423
15448
|
if (allSkills.length) {
|
|
15424
15449
|
const $scope2_id = _scope_id();
|
|
15425
|
-
_html(`<section${_attr_class("
|
|
15450
|
+
_html(`<section${_attr_class("_b8")}><div${_attr_class("_b9")}><h2${_attr_class("_cl")}>Skills</h2><span${_attr_class(sectionCount$1)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class([list$2, "_f3"])}>`);
|
|
15426
15451
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15427
15452
|
const $scope3_id = _scope_id();
|
|
15428
15453
|
const isBusy = skillBusy.has(s.id);
|
|
@@ -15487,7 +15512,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15487
15512
|
const $childScope6 = _peek_scope_id();
|
|
15488
15513
|
arm_button_default({
|
|
15489
15514
|
class: [
|
|
15490
|
-
"
|
|
15515
|
+
"_ch",
|
|
15491
15516
|
"_7",
|
|
15492
15517
|
"_8",
|
|
15493
15518
|
"_gg"
|
|
@@ -15600,9 +15625,9 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15600
15625
|
_resume_branch($scope0_id);
|
|
15601
15626
|
});
|
|
15602
15627
|
var curRow = "_fO _cG _cE";
|
|
15603
|
-
var curEmpty = "_fQ
|
|
15628
|
+
var curEmpty = "_fQ _ci";
|
|
15604
15629
|
var curBase = "_fT _X _W";
|
|
15605
|
-
var archived = "_fY
|
|
15630
|
+
var archived = "_fY _b8";
|
|
15606
15631
|
var archivedHint = "_fZ _W";
|
|
15607
15632
|
var archivedRow = "_f0 _cG _cE";
|
|
15608
15633
|
//#endregion
|
|
@@ -15624,8 +15649,8 @@ var icon_group_default = _template("hb", (input) => {
|
|
|
15624
15649
|
});
|
|
15625
15650
|
//#endregion
|
|
15626
15651
|
//#region src/tags/join-dialog.css.ts
|
|
15627
|
-
var dlg = "
|
|
15628
|
-
var hint = "
|
|
15652
|
+
var dlg = "_iG _g1";
|
|
15653
|
+
var hint = "_iH _W";
|
|
15629
15654
|
//#endregion
|
|
15630
15655
|
//#region src/tags/join-dialog.marko
|
|
15631
15656
|
var api$3;
|
|
@@ -15757,23 +15782,23 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15757
15782
|
_html(`<h2${_attr_class("_g2")}${_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([
|
|
15758
15783
|
"_Y",
|
|
15759
15784
|
"_y",
|
|
15760
|
-
"
|
|
15785
|
+
"_iJ"
|
|
15761
15786
|
])} 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")}`);
|
|
15762
15787
|
_if(() => {
|
|
15763
15788
|
if (parsed.error) {
|
|
15764
15789
|
const $scope8_id = _scope_id();
|
|
15765
|
-
_html(`<p${_attr_class([hint, "
|
|
15790
|
+
_html(`<p${_attr_class([hint, "_iI"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
15766
15791
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
15767
15792
|
return 0;
|
|
15768
15793
|
} else if (parsed.ok) {
|
|
15769
15794
|
const $scope3_id = _scope_id();
|
|
15770
|
-
_html(`<ul${_attr_class("
|
|
15795
|
+
_html(`<ul${_attr_class("_iK")}>`);
|
|
15771
15796
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
15772
15797
|
const $scope9_id = _scope_id();
|
|
15773
|
-
_html(`<li${_attr_class("
|
|
15798
|
+
_html(`<li${_attr_class("_iL")}><span${_attr_class("_iM")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
15774
15799
|
writeScope($scope9_id, {});
|
|
15775
15800
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
15776
|
-
_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("
|
|
15801
|
+
_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("_iN")}><span${_attr_class("_cl")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
15777
15802
|
name = _new_name;
|
|
15778
15803
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
15779
15804
|
_script($scope3_id, "m8");
|
|
@@ -15810,10 +15835,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15810
15835
|
_if(() => {
|
|
15811
15836
|
if (busy && steps$2.length) {
|
|
15812
15837
|
const $scope6_id = _scope_id();
|
|
15813
|
-
_html(`<ul${_attr_class("
|
|
15838
|
+
_html(`<ul${_attr_class("_iO")}>`);
|
|
15814
15839
|
_for_of(steps$2, (step$2, i) => {
|
|
15815
15840
|
const $scope7_id = _scope_id();
|
|
15816
|
-
_html(`<li${_attr_class(["
|
|
15841
|
+
_html(`<li${_attr_class(["_iQ", { ["_iP"]: i === steps$2.length - 1 }])}>`);
|
|
15817
15842
|
_if(() => {
|
|
15818
15843
|
if (i === steps$2.length - 1) {
|
|
15819
15844
|
const $scope10_id = _scope_id();
|
|
@@ -15822,7 +15847,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15822
15847
|
return 0;
|
|
15823
15848
|
} else {
|
|
15824
15849
|
const $scope11_id = _scope_id();
|
|
15825
|
-
_html(`<span${_attr_class("
|
|
15850
|
+
_html(`<span${_attr_class("_iR")}>`);
|
|
15826
15851
|
icon_check_default({ size: 14 });
|
|
15827
15852
|
_html("</span>");
|
|
15828
15853
|
writeScope($scope11_id, {});
|
|
@@ -15980,7 +16005,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
15980
16005
|
}
|
|
15981
16006
|
}, "s6", $scope0_id);
|
|
15982
16007
|
const titleId = _id();
|
|
15983
|
-
_html(`<div${_attr_class("
|
|
16008
|
+
_html(`<div${_attr_class("_cZ")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c0")}><div${_attr_class("_c1")}>`);
|
|
15984
16009
|
_set_serialize_reason({
|
|
15985
16010
|
0: _serialize_guard($scope0_reason, 2),
|
|
15986
16011
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16004,7 +16029,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16004
16029
|
_resume_branch($scope3_id);
|
|
16005
16030
|
}, $scope0_id) })
|
|
16006
16031
|
});
|
|
16007
|
-
_html(`<div${_attr_class("
|
|
16032
|
+
_html(`<div${_attr_class("_c2")}>`);
|
|
16008
16033
|
_if(() => {
|
|
16009
16034
|
if (error) {
|
|
16010
16035
|
const $scope8_id = _scope_id();
|
|
@@ -16025,9 +16050,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16025
16050
|
return 0;
|
|
16026
16051
|
}
|
|
16027
16052
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16028
|
-
_html(`<label${_attr_class("_fK")}><span${_attr_class("
|
|
16053
|
+
_html(`<label${_attr_class("_fK")}><span${_attr_class("_cl")}>Name</span><input${_attr_input_value($scope0_id, "i", name, _resume((_new_name) => {
|
|
16029
16054
|
name = _new_name;
|
|
16030
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("
|
|
16055
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "i")}</label><section${_attr_class("_b8")}><div${_attr_class("_fM")}><h2${_attr_class("_cl")}>Repos</h2></div><ul${_attr_class(list$2)}>`);
|
|
16031
16056
|
_for_of(selected, (repo) => {
|
|
16032
16057
|
const $scope4_id = _scope_id();
|
|
16033
16058
|
_html(`<li${_attr_class("_fN")}><div${_attr_class(curRow)}><span${_attr_class("_fR")}>${_text_resume($scope4_id, "d", repoLabel$1(repo.fullName))}</span>`);
|
|
@@ -16168,14 +16193,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16168
16193
|
btnLg,
|
|
16169
16194
|
"_r",
|
|
16170
16195
|
"_fJ"
|
|
16171
|
-
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "u", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "t")}</div></div><div${_attr_class("
|
|
16196
|
+
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "u", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "t")}</div></div><div${_attr_class("_c2")}>`);
|
|
16172
16197
|
_if(() => {
|
|
16173
16198
|
if (archived$1.length) {
|
|
16174
16199
|
const $scope6_id = _scope_id();
|
|
16175
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_fM")}><h2${_attr_class("
|
|
16200
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fM")}><h2${_attr_class("_cl")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_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(list$2)}>`);
|
|
16176
16201
|
_for_of(archived$1, (ws) => {
|
|
16177
16202
|
const $scope7_id = _scope_id();
|
|
16178
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
16203
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cd")}><span${_attr_class("_ce")}>${_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)}>`);
|
|
16179
16204
|
_if(() => {
|
|
16180
16205
|
if (restoring === ws.id) {
|
|
16181
16206
|
const $scope18_id = _scope_id();
|
|
@@ -16292,19 +16317,19 @@ var term_find_default = _template("G", (input) => {
|
|
|
16292
16317
|
const canStep = hasQuery && open;
|
|
16293
16318
|
const keybar = input.placement === "keybar";
|
|
16294
16319
|
_html(`<div${_attr_class([
|
|
16295
|
-
"
|
|
16296
|
-
keybar ? "
|
|
16297
|
-
!open && "
|
|
16298
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
16320
|
+
"_el",
|
|
16321
|
+
keybar ? "_en" : "_em",
|
|
16322
|
+
!open && "_ep"
|
|
16323
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_ef", keybar ? "_eo" : "_ei"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
16299
16324
|
if (!open) return;
|
|
16300
16325
|
query = v;
|
|
16301
16326
|
live.query = v;
|
|
16302
16327
|
run(0);
|
|
16303
|
-
}, "G1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
16328
|
+
}, "G1", $scope0_id))}${_attr_class([findInput, keybar && "_eq"])} 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 && "_er"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16304
16329
|
icon_arrow_up_default({ size: 14 });
|
|
16305
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16330
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_er"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
16306
16331
|
icon_arrow_down_default({ size: 14 });
|
|
16307
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
16332
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_er"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
16308
16333
|
icon_xmark_default({ size: 14 });
|
|
16309
16334
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
16310
16335
|
const $return = focusInput;
|
|
@@ -16455,7 +16480,7 @@ var term_default = _template("H", (input) => {
|
|
|
16455
16480
|
}
|
|
16456
16481
|
}, "H9", $scope0_id);
|
|
16457
16482
|
input.keys;
|
|
16458
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16483
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_e8")}><div${_attr_class("_e9")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16459
16484
|
_if(() => {
|
|
16460
16485
|
if (findOpen) {
|
|
16461
16486
|
const $scope4_id = _scope_id();
|
|
@@ -16482,7 +16507,7 @@ var term_default = _template("H", (input) => {
|
|
|
16482
16507
|
_if(() => {
|
|
16483
16508
|
if (uploading) {
|
|
16484
16509
|
const $scope5_id = _scope_id();
|
|
16485
|
-
_html(`<div${_attr_class("
|
|
16510
|
+
_html(`<div${_attr_class("_fe")}>uploading…</div>`);
|
|
16486
16511
|
writeScope($scope5_id, {});
|
|
16487
16512
|
return 0;
|
|
16488
16513
|
}
|
|
@@ -16490,7 +16515,7 @@ var term_default = _template("H", (input) => {
|
|
|
16490
16515
|
_if(() => {
|
|
16491
16516
|
if (copiedFlash) {
|
|
16492
16517
|
const $scope6_id = _scope_id();
|
|
16493
|
-
_html(`<div${_attr_class("
|
|
16518
|
+
_html(`<div${_attr_class("_fd")}>Copied</div>`);
|
|
16494
16519
|
writeScope($scope6_id, {});
|
|
16495
16520
|
return 0;
|
|
16496
16521
|
}
|
|
@@ -16499,7 +16524,7 @@ var term_default = _template("H", (input) => {
|
|
|
16499
16524
|
_if(() => {
|
|
16500
16525
|
if (trapOpen) {
|
|
16501
16526
|
const $scope3_id = _scope_id();
|
|
16502
|
-
_html(`<div${_attr_class("
|
|
16527
|
+
_html(`<div${_attr_class("_ff")}><div${_attr_class("_fg")}><p${_attr_class("_fh")}>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")}`);
|
|
16503
16528
|
_script($scope3_id, "H16");
|
|
16504
16529
|
_script($scope3_id, "H17");
|
|
16505
16530
|
writeScope($scope3_id, {});
|
|
@@ -16761,7 +16786,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16761
16786
|
toggleDiff();
|
|
16762
16787
|
}
|
|
16763
16788
|
}, "M14", $scope0_id);
|
|
16764
|
-
_html(`<div${_attr_class(["
|
|
16789
|
+
_html(`<div${_attr_class(["_cn", { ["_cm"]: !input.active }])}><div${_attr_class("_co")}>`);
|
|
16765
16790
|
_if(() => {
|
|
16766
16791
|
if (error) {
|
|
16767
16792
|
const $scope8_id = _scope_id();
|
|
@@ -16784,7 +16809,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16784
16809
|
_if(() => {
|
|
16785
16810
|
if (diffMounted && ws) {
|
|
16786
16811
|
const $scope1_id = _scope_id();
|
|
16787
|
-
_html(`<div${_attr_class("
|
|
16812
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
16788
16813
|
_set_serialize_reason({
|
|
16789
16814
|
0: $sg__input_workspace,
|
|
16790
16815
|
1: $sg__input_workspace,
|
|
@@ -16846,7 +16871,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16846
16871
|
_if(() => {
|
|
16847
16872
|
if (manageMounted && ws) {
|
|
16848
16873
|
const $scope2_id = _scope_id();
|
|
16849
|
-
_html(`<div${_attr_class("
|
|
16874
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
16850
16875
|
_set_serialize_reason({
|
|
16851
16876
|
0: $sg__input_workspace,
|
|
16852
16877
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -16872,7 +16897,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16872
16897
|
_if(() => {
|
|
16873
16898
|
if (settingsMounted) {
|
|
16874
16899
|
const $scope3_id = _scope_id();
|
|
16875
|
-
_html(`<div${_attr_class("
|
|
16900
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
16876
16901
|
_set_serialize_reason({
|
|
16877
16902
|
0: _serialize_guard($scope0_reason, 0),
|
|
16878
16903
|
1: $sg__input_workspace,
|
|
@@ -16914,7 +16939,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16914
16939
|
_if(() => {
|
|
16915
16940
|
if (newMounted) {
|
|
16916
16941
|
const $scope4_id = _scope_id();
|
|
16917
|
-
_html(`<div${_attr_class("
|
|
16942
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
16918
16943
|
_set_serialize_reason({
|
|
16919
16944
|
0: 1,
|
|
16920
16945
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -16939,13 +16964,13 @@ var work_view_default = _template("M", (input) => {
|
|
|
16939
16964
|
return 0;
|
|
16940
16965
|
}
|
|
16941
16966
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
16942
|
-
_html(`<div${_attr_class("
|
|
16967
|
+
_html(`<div${_attr_class("_cq")}${_attr("inert", view !== "term")}>`);
|
|
16943
16968
|
_if(() => {
|
|
16944
16969
|
if (ws && shownSessions) {
|
|
16945
16970
|
const $scope5_id = _scope_id();
|
|
16946
16971
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
16947
16972
|
const $scope6_id = _scope_id();
|
|
16948
|
-
_html(`<div${_attr_class("
|
|
16973
|
+
_html(`<div${_attr_class("_cr")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
16949
16974
|
_set_serialize_reason(2);
|
|
16950
16975
|
const $childScope5 = _peek_scope_id();
|
|
16951
16976
|
term_default({
|
|
@@ -16971,7 +16996,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16971
16996
|
_if(() => {
|
|
16972
16997
|
if (!shownSessions.length && view === "term") {
|
|
16973
16998
|
const $scope7_id = _scope_id();
|
|
16974
|
-
_html(`<div${_attr_class("
|
|
16999
|
+
_html(`<div${_attr_class("_cj")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
16975
17000
|
_script($scope7_id, "M39");
|
|
16976
17001
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
16977
17002
|
return 0;
|
|
@@ -16981,7 +17006,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16981
17006
|
return 0;
|
|
16982
17007
|
} else if (ws) {
|
|
16983
17008
|
const $scope10_id = _scope_id();
|
|
16984
|
-
_html(`<p${_attr_class("
|
|
17009
|
+
_html(`<p${_attr_class("_cj")}>Loading sessions…</p>`);
|
|
16985
17010
|
writeScope($scope10_id, {});
|
|
16986
17011
|
return 1;
|
|
16987
17012
|
}
|
|
@@ -17084,7 +17109,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
17084
17109
|
});
|
|
17085
17110
|
//#endregion
|
|
17086
17111
|
//#region src/tags/key-bar.css.ts
|
|
17087
|
-
var kbtn = "
|
|
17112
|
+
var kbtn = "_bs _5 _l";
|
|
17088
17113
|
_template("wb", (input) => {
|
|
17089
17114
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17090
17115
|
const $scope0_id = _scope_id();
|
|
@@ -17100,8 +17125,8 @@ _template("wb", (input) => {
|
|
|
17100
17125
|
});
|
|
17101
17126
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17102
17127
|
});
|
|
17103
|
-
var sessOpen = "
|
|
17104
|
-
var sessRename = "
|
|
17128
|
+
var sessOpen = "_ew _I";
|
|
17129
|
+
var sessRename = "_eA _J";
|
|
17105
17130
|
//#endregion
|
|
17106
17131
|
//#region src/tags/usage-pcts.marko
|
|
17107
17132
|
var usage_pcts_default = _template("L", (input) => {
|
|
@@ -17128,7 +17153,7 @@ var usage_pcts_default = _template("L", (input) => {
|
|
|
17128
17153
|
return 0;
|
|
17129
17154
|
}
|
|
17130
17155
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17131
|
-
_html(`<span${_attr_class("_hH")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hI", win$1.used_percent >= 90 ? "
|
|
17156
|
+
_html(`<span${_attr_class("_hH")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hI", win$1.used_percent >= 90 ? "_ho" : win$1.used_percent >= 70 ? "_hn" : win$1.used_percent >= 40 ? "_hm" : "_hl"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
17132
17157
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17133
17158
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17134
17159
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17170,7 +17195,7 @@ _template("n", (input) => {
|
|
|
17170
17195
|
align: "center",
|
|
17171
17196
|
gap: 8
|
|
17172
17197
|
}), "n2", $scope0_id);
|
|
17173
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17198
|
+
_html(`<button${_attr_class([kbtn, "_es"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17174
17199
|
_set_serialize_reason({
|
|
17175
17200
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17176
17201
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17184,11 +17209,11 @@ _template("n", (input) => {
|
|
|
17184
17209
|
"_A",
|
|
17185
17210
|
"_bb",
|
|
17186
17211
|
phase[sessionPhase(current$2?.state)]
|
|
17187
|
-
])}></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(["_9", "
|
|
17212
|
+
])}></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(["_9", "_et"])}>`);
|
|
17188
17213
|
_for_of(input.sessions, (s) => {
|
|
17189
17214
|
const $scope1_id = _scope_id();
|
|
17190
17215
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17191
|
-
_html(`<div${_attr_class(["
|
|
17216
|
+
_html(`<div${_attr_class(["_ev", { ["_eu"]: s.id === input.sessionId }])}>`);
|
|
17192
17217
|
_if(() => {
|
|
17193
17218
|
if (renamingId === s.id) {
|
|
17194
17219
|
const $scope5_id = _scope_id();
|
|
@@ -17220,7 +17245,7 @@ _template("n", (input) => {
|
|
|
17220
17245
|
agent: activeAgent(s),
|
|
17221
17246
|
size: 14
|
|
17222
17247
|
});
|
|
17223
|
-
_html(`<span${_attr_class("
|
|
17248
|
+
_html(`<span${_attr_class("_ex")}><span${_attr_class("_ez")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17224
17249
|
_if(() => {
|
|
17225
17250
|
if (s.id === input.sessionId) {
|
|
17226
17251
|
const $scope7_id = _scope_id();
|
|
@@ -17232,7 +17257,7 @@ _template("n", (input) => {
|
|
|
17232
17257
|
const $childScope4 = _peek_scope_id();
|
|
17233
17258
|
usage_pcts_default({
|
|
17234
17259
|
agent: plan,
|
|
17235
|
-
class: "
|
|
17260
|
+
class: "_ey"
|
|
17236
17261
|
});
|
|
17237
17262
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17238
17263
|
return 0;
|
|
@@ -17249,7 +17274,7 @@ _template("n", (input) => {
|
|
|
17249
17274
|
_if(() => {
|
|
17250
17275
|
if (input.onRenameSession) {
|
|
17251
17276
|
const $scope6_id = _scope_id();
|
|
17252
|
-
_html(`<button${_attr_class(["
|
|
17277
|
+
_html(`<button${_attr_class(["_eB", "_eC"])} title="Rename session">`);
|
|
17253
17278
|
icon_edit_default({ size: 12 });
|
|
17254
17279
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17255
17280
|
_script($scope6_id, "n5");
|
|
@@ -17261,7 +17286,7 @@ _template("n", (input) => {
|
|
|
17261
17286
|
if (input.onCloseSession) {
|
|
17262
17287
|
const $scope3_id = _scope_id();
|
|
17263
17288
|
arm_button_default({
|
|
17264
|
-
class: ["
|
|
17289
|
+
class: ["_eB", "_7"],
|
|
17265
17290
|
title: "Close session",
|
|
17266
17291
|
armedTitle: "Close?",
|
|
17267
17292
|
onFire: _resume(function() {
|
|
@@ -17293,7 +17318,7 @@ _template("n", (input) => {
|
|
|
17293
17318
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17294
17319
|
});
|
|
17295
17320
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17296
|
-
_html(`<div${_attr_class("
|
|
17321
|
+
_html(`<div${_attr_class("_eD")}><span${_attr_class("_eE")}>New session</span><div${_attr_class("_eF")}>`);
|
|
17297
17322
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17298
17323
|
const $scope4_id = _scope_id();
|
|
17299
17324
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -26457,4 +26482,4 @@ server.listen(port, () => {
|
|
|
26457
26482
|
//#endregion
|
|
26458
26483
|
export {};
|
|
26459
26484
|
|
|
26460
|
-
;var __MARKO_MANIFEST__={"
|
|
26485
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-C4usy4AG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-C4usy4AG.css\"",">",2,"stylesheet#/assets/app-page-_8WKqHTZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_8WKqHTZ.css\"",">"],"defer":[2,"/assets/new-pakAMqK1.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-pakAMqK1.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_DeWBAMhg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DeWBAMhg.js\"",">",2,"modulepreload#/assets/_DR7hKOqz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DR7hKOqz.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-C4usy4AG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-C4usy4AG.css\"",">",2,"stylesheet#/assets/app-page-_8WKqHTZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_8WKqHTZ.css\"",">"],"defer":[2,"/assets/w._-pakAMqK1.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-pakAMqK1.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_DeWBAMhg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DeWBAMhg.js\"",">",2,"modulepreload#/assets/_DR7hKOqz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DR7hKOqz.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-C4usy4AG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-C4usy4AG.css\"",">",2,"stylesheet#/assets/app-page-_8WKqHTZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_8WKqHTZ.css\"",">"],"defer":[2,"/assets/settings-pakAMqK1.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-pakAMqK1.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_DeWBAMhg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DeWBAMhg.js\"",">",2,"modulepreload#/assets/_DR7hKOqz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DR7hKOqz.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-C4usy4AG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-C4usy4AG.css\"",">",2,"stylesheet#/assets/app-page-_8WKqHTZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_8WKqHTZ.css\"",">"],"defer":[2,"/assets/w-pakAMqK1.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-pakAMqK1.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_DeWBAMhg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DeWBAMhg.js\"",">",2,"modulepreload#/assets/_DR7hKOqz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DR7hKOqz.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-C4usy4AG.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-C4usy4AG.css\"",">",2,"stylesheet#/assets/app-page-_8WKqHTZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-_8WKqHTZ.css\"",">"],"defer":[2,"/assets/w._-C61prGDD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C61prGDD.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_DeWBAMhg.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DeWBAMhg.js\"",">",2,"modulepreload#/assets/_DR7hKOqz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DR7hKOqz.js\"",">"]},"_z":{"block":[2,"stylesheet#/assets/review-view-DQlebETV.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view-DQlebETV.css\"",">",2,"stylesheet#/assets/icon-arrow-down-C4usy4AG.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-C4usy4AG.css\"",">"],"defer":[2,"/assets/review-view-VBKxKYIj.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-VBKxKYIj.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">"]}};
|