@dylanpiercey/work 0.0.167 → 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 +988 -924
- 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/{_BLrxfNnD.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/_DR7hKOqz.js +83 -0
- 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/{_eivz7VIB.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-D19inuDV.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-D0YuCYm0.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-7_TmAMkr.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/_B7NPLhAw.js +0 -1
- package/dist/public/assets/_BBFXkVBa.js +0 -1
- package/dist/public/assets/_BLrxfNnD.js.br +0 -0
- package/dist/public/assets/_BNwFr8Q1.js +0 -1
- package/dist/public/assets/_Bh_2GWOo.js +0 -1
- package/dist/public/assets/_Bi5HqRcD.js +0 -1
- package/dist/public/assets/_BnY-Zzp2.js +0 -1
- package/dist/public/assets/_CIZFDRfC.js +0 -1
- package/dist/public/assets/_CPUoJR5c.js +0 -1
- package/dist/public/assets/_CRT-bQIG.js +0 -1
- package/dist/public/assets/_CW0dhJST.js +0 -1
- package/dist/public/assets/_CYLdqMkC.js +0 -1
- package/dist/public/assets/_Ch9K9R05.js +0 -1
- package/dist/public/assets/_Ct09FGN5.js +0 -1
- package/dist/public/assets/_Cwr3QTwF.js +0 -1
- package/dist/public/assets/_CxtjGXQT.js +0 -1
- package/dist/public/assets/_DHplae3Q.js +0 -1
- package/dist/public/assets/_DXDV5FZs.js +0 -83
- package/dist/public/assets/_DXDV5FZs.js.br +0 -0
- package/dist/public/assets/_Dj7q-m_e.js +0 -1
- package/dist/public/assets/_DkcK3ljK.js +0 -1
- package/dist/public/assets/_HjY-gFUJ.js +0 -1
- package/dist/public/assets/_YfUpNDJL.js +0 -1
- package/dist/public/assets/_eivz7VIB.js.br +0 -0
- package/dist/public/assets/_mqifHpd3.js +0 -1
- package/dist/public/assets/app-page-D19inuDV.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-D0YuCYm0.css.br +0 -0
- package/dist/public/assets/new-CbZDVy71.js +0 -1
- package/dist/public/assets/review-view-7_TmAMkr.css.br +0 -0
- package/dist/public/assets/review-view-PmK65ng4.js +0 -2
- package/dist/public/assets/settings-CbZDVy71.js +0 -1
- package/dist/public/assets/w-CbZDVy71.js +0 -1
- package/dist/public/assets/w._-CbZDVy71.js +0 -1
- package/dist/public/assets/w._-N-o-ibQi.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 = "
|
|
7298
|
-
var flatCardRow = "
|
|
7299
|
-
var pop$1 = "
|
|
7300
|
-
var spinner = "
|
|
7301
|
-
var busy = "
|
|
7302
|
-
var pop = "
|
|
7303
|
-
var sectionCount$1 = "
|
|
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";
|
|
7323
|
+
var flatCardRow = "_cG _cE";
|
|
7324
|
+
var pop$1 = "_cO _9";
|
|
7325
|
+
var spinner = "_cR _1 _G";
|
|
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();
|
|
@@ -7605,10 +7630,10 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7605
7630
|
}
|
|
7606
7631
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
7607
7632
|
_html(`<form${_attr_class([
|
|
7608
|
-
"
|
|
7633
|
+
"_cH",
|
|
7609
7634
|
input$3.class,
|
|
7610
|
-
{ ["
|
|
7611
|
-
])}><label${_attr_class(["_0", "
|
|
7635
|
+
{ ["_cI"]: !open }
|
|
7636
|
+
])}><label${_attr_class(["_0", "_cK"])}>`);
|
|
7612
7637
|
_if(() => {
|
|
7613
7638
|
if (input$3.searching) {
|
|
7614
7639
|
const $scope5_id = _scope_id();
|
|
@@ -7635,7 +7660,7 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7635
7660
|
}, "b0", $scope0_id))}${_attr_class([
|
|
7636
7661
|
"_Y",
|
|
7637
7662
|
"_2",
|
|
7638
|
-
"
|
|
7663
|
+
"_cL"
|
|
7639
7664
|
])} type=text${_attr("placeholder", input$3.placeholder)}${_attr("aria-label", input$3.ariaLabel)} autocomplete=off spellcheck=false>${_el_resume($scope0_id, "e")}</label>`);
|
|
7640
7665
|
_if(() => {
|
|
7641
7666
|
if (input$3.submitLabel) {
|
|
@@ -7643,19 +7668,19 @@ var add_field_default = _template("b", (input$3) => {
|
|
|
7643
7668
|
_html(`<button${_attr_class([
|
|
7644
7669
|
btnSm,
|
|
7645
7670
|
"_r",
|
|
7646
|
-
"
|
|
7671
|
+
"_cM"
|
|
7647
7672
|
])} type=submit${_attr("hidden", !open)}${_attr("disabled", !value.trim() || input$3.busy)}>${_text_resume($scope3_id, "b", input$3.busy ? "Adding…" : input$3.submitLabel, _serialize_guard($scope0_reason, 1))}</button>${_el_resume($scope3_id, "a")}`);
|
|
7648
7673
|
writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7649
7674
|
return 0;
|
|
7650
7675
|
}
|
|
7651
7676
|
}, $scope0_id, "f", 1, _serialize_guard($scope0_reason, 7), 1, 0, 1);
|
|
7652
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7677
|
+
_html(`<button${_attr_class([iconBtnRow, "_cN"])} type=button${_attr("hidden", !open)} title=Close aria-label=Close${_attr("disabled", input$3.busy)}>`);
|
|
7653
7678
|
icon_xmark_default({ size: 14 });
|
|
7654
7679
|
_html(`</button>${_el_resume($scope0_id, "g")}`);
|
|
7655
7680
|
_if(() => {
|
|
7656
7681
|
if (input$3.content) {
|
|
7657
7682
|
const $scope4_id = _scope_id();
|
|
7658
|
-
_html(`<ul${_attr_class([pop$1, "
|
|
7683
|
+
_html(`<ul${_attr_class([pop$1, "_cP"])}${_attr("hidden", !open || !value.trim())}>`);
|
|
7659
7684
|
_dynamic_tag($scope4_id, "b", input$3.content, {}, 0, 0, $sg__input_content);
|
|
7660
7685
|
_html(`</ul>${_el_resume($scope4_id, "a")}`);
|
|
7661
7686
|
writeScope($scope4_id, { _: _scope_with_id($scope0_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) }));
|
|
@@ -8251,6 +8276,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8251
8276
|
const $skillSearching__closures = /* @__PURE__ */ new Set();
|
|
8252
8277
|
const $skills__closures = /* @__PURE__ */ new Set();
|
|
8253
8278
|
const $skills_available__closures = /* @__PURE__ */ new Set();
|
|
8279
|
+
const $active_size__closures = /* @__PURE__ */ new Set();
|
|
8254
8280
|
const $query__closures = /* @__PURE__ */ new Set();
|
|
8255
8281
|
const $hits__closures = /* @__PURE__ */ new Set();
|
|
8256
8282
|
const $hits_length__closures = /* @__PURE__ */ new Set();
|
|
@@ -8272,6 +8298,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8272
8298
|
let error = null;
|
|
8273
8299
|
let refreshing = false;
|
|
8274
8300
|
let active = /* @__PURE__ */ new Map();
|
|
8301
|
+
let bulk = null;
|
|
8275
8302
|
let authCodes = /* @__PURE__ */ new Map();
|
|
8276
8303
|
let versionPick = null;
|
|
8277
8304
|
let hostInput = "";
|
|
@@ -8601,7 +8628,24 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8601
8628
|
}
|
|
8602
8629
|
}, "A25", $scope0_id);
|
|
8603
8630
|
const runEach = _resume(async (ids, action) => {
|
|
8604
|
-
|
|
8631
|
+
let done = 0;
|
|
8632
|
+
bulk = {
|
|
8633
|
+
action,
|
|
8634
|
+
done,
|
|
8635
|
+
total: ids.length
|
|
8636
|
+
};
|
|
8637
|
+
try {
|
|
8638
|
+
for (const id of ids) {
|
|
8639
|
+
await run(id, action);
|
|
8640
|
+
bulk = {
|
|
8641
|
+
action,
|
|
8642
|
+
done: ++done,
|
|
8643
|
+
total: ids.length
|
|
8644
|
+
};
|
|
8645
|
+
}
|
|
8646
|
+
} finally {
|
|
8647
|
+
bulk = null;
|
|
8648
|
+
}
|
|
8605
8649
|
}, "A26", $scope0_id);
|
|
8606
8650
|
const setPreferred = _resume(async (agent) => {
|
|
8607
8651
|
input.preferredChange?.(agent);
|
|
@@ -8693,6 +8737,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8693
8737
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
8694
8738
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
8695
8739
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
8740
|
+
const activeLine = [...active.values()].find((l) => l) || "";
|
|
8696
8741
|
const families = setup?.agents || [];
|
|
8697
8742
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
8698
8743
|
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "A33", $scope0_id);
|
|
@@ -8704,7 +8749,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8704
8749
|
const githubId = _id();
|
|
8705
8750
|
const backupId = _id();
|
|
8706
8751
|
const machineId = _id();
|
|
8707
|
-
_html(`<div${_attr_class("
|
|
8752
|
+
_html(`<div${_attr_class("_cZ")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c0")}><div${_attr_class("_c1")}>`);
|
|
8708
8753
|
_set_serialize_reason({
|
|
8709
8754
|
0: _serialize_guard($scope0_reason, 4),
|
|
8710
8755
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8736,7 +8781,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8736
8781
|
_resume_branch($scope12_id);
|
|
8737
8782
|
}, $scope0_id) })
|
|
8738
8783
|
});
|
|
8739
|
-
_html(`<div${_attr_class("
|
|
8784
|
+
_html(`<div${_attr_class("_c2")}>`);
|
|
8740
8785
|
_if(() => {
|
|
8741
8786
|
if (setup && !setup.ready) {
|
|
8742
8787
|
const $scope4_id = _scope_id();
|
|
@@ -8778,55 +8823,55 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8778
8823
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
8779
8824
|
_if(() => {
|
|
8780
8825
|
if (selfUpdatePending || selfUpdating) {
|
|
8781
|
-
const $
|
|
8782
|
-
_html(`<div${_attr_class("
|
|
8826
|
+
const $scope43_id = _scope_id();
|
|
8827
|
+
_html(`<div${_attr_class("_dI")} role=status><div${_attr_class("_dJ")}>`);
|
|
8783
8828
|
_if(() => {
|
|
8784
8829
|
if (selfUpdating) {
|
|
8785
|
-
const $
|
|
8786
|
-
_html(`<span${_attr_class("
|
|
8787
|
-
writeScope($
|
|
8830
|
+
const $scope81_id = _scope_id();
|
|
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>`);
|
|
8832
|
+
writeScope($scope81_id, {});
|
|
8788
8833
|
return 0;
|
|
8789
8834
|
} else {
|
|
8790
|
-
const $
|
|
8791
|
-
_html(`<span${_attr_class("
|
|
8792
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($
|
|
8835
|
+
const $scope44_id = _scope_id();
|
|
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>`);
|
|
8837
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope44_id, {})));
|
|
8793
8838
|
return 1;
|
|
8794
8839
|
}
|
|
8795
|
-
}, $
|
|
8840
|
+
}, $scope43_id, "b", 1, 1, 1, "</div>");
|
|
8796
8841
|
_if(() => {
|
|
8797
8842
|
if (!selfUpdating) {
|
|
8798
|
-
const $
|
|
8799
|
-
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($
|
|
8800
|
-
_script($
|
|
8801
|
-
_subscribe($self_latest__closures, writeScope($
|
|
8843
|
+
const $scope45_id = _scope_id();
|
|
8844
|
+
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope45_id, "a")}`);
|
|
8845
|
+
_script($scope45_id, "A55");
|
|
8846
|
+
_subscribe($self_latest__closures, writeScope($scope45_id, { Chj: 1 }));
|
|
8802
8847
|
return 0;
|
|
8803
8848
|
}
|
|
8804
|
-
}, $
|
|
8849
|
+
}, $scope43_id, "c", 1, 1, 1, 0, 1);
|
|
8805
8850
|
_html("</div>");
|
|
8806
|
-
writeScope($
|
|
8851
|
+
writeScope($scope43_id, {});
|
|
8807
8852
|
return 0;
|
|
8808
8853
|
}
|
|
8809
8854
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
8810
8855
|
const EnabledSwitch = { content: _content("A56", ({ id, enabled }) => {
|
|
8811
|
-
const $
|
|
8856
|
+
const $scope80_id = _scope_id();
|
|
8812
8857
|
_scope_reason();
|
|
8813
|
-
_html(`<button${_attr_class("_H")} role=switch aria-checked=${enabled ? "true" : "false"} title=${enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($
|
|
8814
|
-
_script($
|
|
8815
|
-
writeScope($
|
|
8858
|
+
_html(`<button${_attr_class("_H")} role=switch aria-checked=${enabled ? "true" : "false"} title=${enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($scope80_id, "a")}`);
|
|
8859
|
+
_script($scope80_id, "A57");
|
|
8860
|
+
writeScope($scope80_id, {
|
|
8816
8861
|
d: id,
|
|
8817
8862
|
e: enabled,
|
|
8818
8863
|
_: _scope_with_id($scope0_id)
|
|
8819
8864
|
});
|
|
8820
8865
|
}, $scope0_id) };
|
|
8821
|
-
_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")}>`);
|
|
8822
8867
|
_attr_select_value($scope0_id, "p", input.preferred, _resume(function(v) {
|
|
8823
8868
|
setPreferred(v);
|
|
8824
8869
|
}, "A0", $scope0_id), () => {
|
|
8825
|
-
_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">`);
|
|
8826
8871
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
8827
|
-
const $
|
|
8828
|
-
_html(`<option${_attr_option_value(id)}>${_text_resume($
|
|
8829
|
-
_serialize_if($scope0_reason, 5) && writeScope($
|
|
8872
|
+
const $scope83_id = _scope_id();
|
|
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)}`);
|
|
8874
|
+
_serialize_if($scope0_reason, 5) && writeScope($scope83_id, {});
|
|
8830
8875
|
}, (a) => a, $scope0_id, "p", $sg__input_agents, 1, 1, "</select>", 1);
|
|
8831
8876
|
});
|
|
8832
8877
|
_html(`</span></label></div><ul${_attr_class(list$2)}>`);
|
|
@@ -8837,19 +8882,19 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8837
8882
|
const rows = lone ? [] : a.instances;
|
|
8838
8883
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8839
8884
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8840
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8885
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_db", { ["_dd"]: lone && !lone.enabled }])}>`);
|
|
8841
8886
|
_set_serialize_reason(12);
|
|
8842
8887
|
const $childScope3 = _peek_scope_id();
|
|
8843
8888
|
icon_agent_default({
|
|
8844
8889
|
agent: a.id,
|
|
8845
8890
|
size: 18
|
|
8846
8891
|
});
|
|
8847
|
-
_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>`);
|
|
8848
8893
|
_if(() => {
|
|
8849
8894
|
if (lone && input.preferred === lone.id) {
|
|
8850
|
-
const $
|
|
8895
|
+
const $scope85_id = _scope_id();
|
|
8851
8896
|
_html(`<span${_attr_class(["_N", tone.accent])}>default</span>`);
|
|
8852
|
-
writeScope($
|
|
8897
|
+
writeScope($scope85_id, {});
|
|
8853
8898
|
return 0;
|
|
8854
8899
|
}
|
|
8855
8900
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -8857,35 +8902,35 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8857
8902
|
_if(() => {
|
|
8858
8903
|
if (active.has(a.id)) {
|
|
8859
8904
|
const $scope13_id = _scope_id();
|
|
8860
|
-
_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>`);
|
|
8861
8906
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8862
8907
|
return 0;
|
|
8863
8908
|
} else if (!a.installed) {
|
|
8864
|
-
const $
|
|
8865
|
-
_html(`<span${_attr_class("
|
|
8866
|
-
writeScope($
|
|
8909
|
+
const $scope86_id = _scope_id();
|
|
8910
|
+
_html(`<span${_attr_class("_cg")}>Not installed</span>`);
|
|
8911
|
+
writeScope($scope86_id, {});
|
|
8867
8912
|
return 1;
|
|
8868
8913
|
}
|
|
8869
8914
|
}, $scope1_id, "i", 1, 1, 1, 0, 1);
|
|
8870
8915
|
_html("</div>");
|
|
8871
8916
|
_if(() => {
|
|
8872
8917
|
if (!a.installed && !active.has(a.id)) {
|
|
8873
|
-
const $
|
|
8874
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
8875
|
-
_script($
|
|
8876
|
-
writeScope($
|
|
8918
|
+
const $scope53_id = _scope_id();
|
|
8919
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope53_id, "a")}`);
|
|
8920
|
+
_script($scope53_id, "A58");
|
|
8921
|
+
writeScope($scope53_id, {});
|
|
8877
8922
|
return 0;
|
|
8878
8923
|
}
|
|
8879
8924
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
8880
8925
|
_if(() => {
|
|
8881
8926
|
if (lone) {
|
|
8882
|
-
const $
|
|
8927
|
+
const $scope82_id = _scope_id();
|
|
8883
8928
|
const $childScope4 = _peek_scope_id();
|
|
8884
8929
|
EnabledSwitch.content({
|
|
8885
8930
|
id: lone.id,
|
|
8886
8931
|
enabled: lone.enabled
|
|
8887
8932
|
});
|
|
8888
|
-
writeScope($
|
|
8933
|
+
writeScope($scope82_id, { a: _existing_scope($childScope4) });
|
|
8889
8934
|
return 0;
|
|
8890
8935
|
}
|
|
8891
8936
|
}, $scope1_id, "k");
|
|
@@ -8893,20 +8938,20 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8893
8938
|
_if(() => {
|
|
8894
8939
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8895
8940
|
const $scope2_id = _scope_id();
|
|
8896
|
-
_html(`<ul${_attr_class(["
|
|
8941
|
+
_html(`<ul${_attr_class(["_df", { ["_dd"]: lone && !lone.enabled }])}>`);
|
|
8897
8942
|
_for_of(rows, (inst) => {
|
|
8898
8943
|
const $scope3_id = _scope_id();
|
|
8899
8944
|
const accounts = accountsFor(inst.id);
|
|
8900
|
-
_html(`<li${_attr_class(["
|
|
8945
|
+
_html(`<li${_attr_class(["_dc", { ["_dd"]: !inst.enabled }])}><div${_attr_class("_db")}>`);
|
|
8901
8946
|
_set_serialize_reason(12);
|
|
8902
8947
|
const $childScope5 = _peek_scope_id();
|
|
8903
8948
|
icon_agent_default({ agent: inst.id });
|
|
8904
|
-
_html(`<span${_attr_class(["
|
|
8949
|
+
_html(`<span${_attr_class(["_de", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8905
8950
|
_if(() => {
|
|
8906
8951
|
if (input.preferred === inst.id) {
|
|
8907
|
-
const $
|
|
8952
|
+
const $scope87_id = _scope_id();
|
|
8908
8953
|
_html(`<span${_attr_class(["_N", tone.accent])}>default</span>`);
|
|
8909
|
-
writeScope($
|
|
8954
|
+
writeScope($scope87_id, {});
|
|
8910
8955
|
return 0;
|
|
8911
8956
|
}
|
|
8912
8957
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
@@ -8918,14 +8963,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8918
8963
|
});
|
|
8919
8964
|
_html("</div>");
|
|
8920
8965
|
_for_of(accounts, (u) => {
|
|
8921
|
-
const $
|
|
8966
|
+
const $scope88_id = _scope_id();
|
|
8922
8967
|
_set_serialize_reason(6);
|
|
8923
8968
|
const $childScope7 = _peek_scope_id();
|
|
8924
8969
|
usage_meters_default({
|
|
8925
8970
|
agent: u,
|
|
8926
8971
|
hideName: true
|
|
8927
8972
|
});
|
|
8928
|
-
writeScope($
|
|
8973
|
+
writeScope($scope88_id, { a: _existing_scope($childScope7) });
|
|
8929
8974
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "i", 1, 1, 1, 0, 1);
|
|
8930
8975
|
_html(`</li>${_el_resume($scope3_id, "a")}`);
|
|
8931
8976
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
@@ -8935,7 +8980,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8935
8980
|
})));
|
|
8936
8981
|
}, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
|
|
8937
8982
|
_for_of([...loneAccounts, ...extraAccounts], (u) => {
|
|
8938
|
-
const $
|
|
8983
|
+
const $scope84_id = _scope_id();
|
|
8939
8984
|
_html("<li>");
|
|
8940
8985
|
_set_serialize_reason(1);
|
|
8941
8986
|
const $childScope8 = _peek_scope_id();
|
|
@@ -8944,7 +8989,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8944
8989
|
hideName: loneAccounts.includes(u)
|
|
8945
8990
|
});
|
|
8946
8991
|
_html("</li>");
|
|
8947
|
-
_subscribe($for_content__loneAccounts__closures, writeScope($
|
|
8992
|
+
_subscribe($for_content__loneAccounts__closures, writeScope($scope84_id, { a: _existing_scope($childScope8) }));
|
|
8948
8993
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
|
|
8949
8994
|
_html(`</ul>${_el_resume($scope2_id, "a")}`);
|
|
8950
8995
|
writeScope($scope2_id, {});
|
|
@@ -8968,44 +9013,44 @@ var settings_page_default = _template("A", (input) => {
|
|
|
8968
9013
|
});
|
|
8969
9014
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8970
9015
|
_for_of(otherUsage, (u) => {
|
|
8971
|
-
const $
|
|
9016
|
+
const $scope89_id = _scope_id();
|
|
8972
9017
|
_html(`<li${_attr_class(agentRow)}>`);
|
|
8973
9018
|
_set_serialize_reason(6);
|
|
8974
9019
|
const $childScope9 = _peek_scope_id();
|
|
8975
9020
|
usage_meters_default({ agent: u });
|
|
8976
9021
|
_html("</li>");
|
|
8977
|
-
writeScope($
|
|
9022
|
+
writeScope($scope89_id, { b: _existing_scope($childScope9) });
|
|
8978
9023
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
8979
9024
|
_html("</ul>");
|
|
8980
9025
|
_if(() => {
|
|
8981
9026
|
if (!usage && families.length) {
|
|
8982
|
-
const $
|
|
8983
|
-
_html(`<p${_attr_class("
|
|
8984
|
-
writeScope($
|
|
9027
|
+
const $scope90_id = _scope_id();
|
|
9028
|
+
_html(`<p${_attr_class("_ci")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
9029
|
+
writeScope($scope90_id, {});
|
|
8985
9030
|
return 0;
|
|
8986
9031
|
} else if (usage?.error) {
|
|
8987
9032
|
const $scope9_id = _scope_id();
|
|
8988
|
-
_html(`<p${_attr_class("
|
|
9033
|
+
_html(`<p${_attr_class("_ci")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
8989
9034
|
writeScope($scope9_id, {});
|
|
8990
9035
|
return 1;
|
|
8991
9036
|
}
|
|
8992
9037
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
8993
|
-
_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>`);
|
|
8994
9039
|
_if(() => {
|
|
8995
9040
|
if (setup) {
|
|
8996
|
-
const $
|
|
9041
|
+
const $scope41_id = _scope_id();
|
|
8997
9042
|
_set_serialize_reason(44);
|
|
8998
9043
|
const $childScope10 = _peek_scope_id();
|
|
8999
9044
|
add_field_default({
|
|
9000
|
-
class: "
|
|
9045
|
+
class: "_dn",
|
|
9001
9046
|
open: addingHost,
|
|
9002
9047
|
openChange: _resume((_new_addingHost) => {
|
|
9003
9048
|
addingHost = _new_addingHost;
|
|
9004
|
-
}, "A37", $
|
|
9049
|
+
}, "A37", $scope41_id),
|
|
9005
9050
|
value: hostInput,
|
|
9006
9051
|
valueChange: _resume((_new_hostInput) => {
|
|
9007
9052
|
hostInput = _new_hostInput;
|
|
9008
|
-
}, "A38", $
|
|
9053
|
+
}, "A38", $scope41_id),
|
|
9009
9054
|
placeholder: "github.example.com",
|
|
9010
9055
|
ariaLabel: "GitHub Enterprise host",
|
|
9011
9056
|
addTitle: "Add Enterprise host",
|
|
@@ -9013,7 +9058,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9013
9058
|
busy: hostBusy,
|
|
9014
9059
|
onSubmit: _resume(function() {
|
|
9015
9060
|
changeHost(hostInput.trim().toLowerCase(), false);
|
|
9016
|
-
}, "A39", $
|
|
9061
|
+
}, "A39", $scope41_id),
|
|
9017
9062
|
icon: attrTag({ content: _content("A59", () => {
|
|
9018
9063
|
_scope_reason();
|
|
9019
9064
|
_scope_id();
|
|
@@ -9021,30 +9066,30 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9021
9066
|
size: 14,
|
|
9022
9067
|
class: "_1"
|
|
9023
9068
|
});
|
|
9024
|
-
}, $
|
|
9069
|
+
}, $scope41_id) })
|
|
9025
9070
|
});
|
|
9026
|
-
writeScope($
|
|
9071
|
+
writeScope($scope41_id, { a: _existing_scope($childScope10) });
|
|
9027
9072
|
return 0;
|
|
9028
9073
|
}
|
|
9029
9074
|
}, $scope0_id, "y");
|
|
9030
|
-
_html(`</div><div${_attr_class(["
|
|
9075
|
+
_html(`</div><div${_attr_class(["_cc", "_cs"])}>`);
|
|
9031
9076
|
_for_of(setup?.github || [], (h) => {
|
|
9032
9077
|
const $scope7_id = _scope_id();
|
|
9033
9078
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
9034
9079
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
9035
9080
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
9036
9081
|
const busy = active.has(h.host);
|
|
9037
|
-
_html(`<div${_attr_class(["
|
|
9082
|
+
_html(`<div${_attr_class(["_ct", "_do"])}><div${_attr_class("_dp")}>`);
|
|
9038
9083
|
icon_github_default({
|
|
9039
9084
|
size: 18,
|
|
9040
|
-
class: "
|
|
9085
|
+
class: "_dq"
|
|
9041
9086
|
});
|
|
9042
|
-
_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>`);
|
|
9043
9088
|
_if(() => {
|
|
9044
9089
|
if (h.isEnterprise) {
|
|
9045
|
-
const $
|
|
9090
|
+
const $scope94_id = _scope_id();
|
|
9046
9091
|
_html(`<span${_attr_class("_N")}>Enterprise</span>`);
|
|
9047
|
-
writeScope($
|
|
9092
|
+
writeScope($scope94_id, {});
|
|
9048
9093
|
return 0;
|
|
9049
9094
|
}
|
|
9050
9095
|
}, $scope7_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -9052,50 +9097,50 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9052
9097
|
_if(() => {
|
|
9053
9098
|
if (busy) {
|
|
9054
9099
|
const $scope14_id = _scope_id();
|
|
9055
|
-
_html(`<span${_attr_class(["
|
|
9056
|
-
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
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>`);
|
|
9101
|
+
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Ch1: 1 })));
|
|
9057
9102
|
return 0;
|
|
9058
9103
|
} else if (h.authed) {
|
|
9059
|
-
const $
|
|
9060
|
-
_html(`<span${_attr_class(["
|
|
9104
|
+
const $scope92_id = _scope_id();
|
|
9105
|
+
_html(`<span${_attr_class(["_cg", "_dr"])}>`);
|
|
9061
9106
|
icon_check_default({
|
|
9062
9107
|
size: 12,
|
|
9063
|
-
class: "
|
|
9108
|
+
class: "_ds"
|
|
9064
9109
|
});
|
|
9065
|
-
_html(` Signed in as <strong${_attr_class("
|
|
9066
|
-
writeScope($
|
|
9110
|
+
_html(` Signed in as <strong${_attr_class("_du")}>${_text_resume($scope92_id, "d", h.user || "?")}</strong></span>`);
|
|
9111
|
+
writeScope($scope92_id, {});
|
|
9067
9112
|
return 1;
|
|
9068
9113
|
} else if (h.error) {
|
|
9069
|
-
const $
|
|
9114
|
+
const $scope93_id = _scope_id();
|
|
9070
9115
|
_html(`<span${_attr_class([
|
|
9071
|
-
"
|
|
9072
|
-
"
|
|
9073
|
-
"
|
|
9116
|
+
"_cg",
|
|
9117
|
+
"_dr",
|
|
9118
|
+
"_dt"
|
|
9074
9119
|
])}>`);
|
|
9075
9120
|
icon_warning_default({ size: 12 });
|
|
9076
|
-
_html(`${_text_resume($
|
|
9077
|
-
writeScope($
|
|
9121
|
+
_html(`${_text_resume($scope93_id, "c", h.error)}</span>`);
|
|
9122
|
+
writeScope($scope93_id, {});
|
|
9078
9123
|
return 2;
|
|
9079
9124
|
} else {
|
|
9080
|
-
const $
|
|
9081
|
-
_html(`<span${_attr_class(["
|
|
9082
|
-
writeScope($
|
|
9125
|
+
const $scope95_id = _scope_id();
|
|
9126
|
+
_html(`<span${_attr_class(["_cg", "_dr"])}>Not signed in</span>`);
|
|
9127
|
+
writeScope($scope95_id, {});
|
|
9083
9128
|
return 3;
|
|
9084
9129
|
}
|
|
9085
9130
|
}, $scope7_id, "i", 1, 1, 1, 0, 1);
|
|
9086
9131
|
_html("</div>");
|
|
9087
9132
|
_if(() => {
|
|
9088
9133
|
if (!busy) {
|
|
9089
|
-
const $
|
|
9134
|
+
const $scope54_id = _scope_id();
|
|
9090
9135
|
_if(() => {
|
|
9091
9136
|
if (!h.authed) {
|
|
9092
|
-
const $
|
|
9093
|
-
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($
|
|
9094
|
-
_script($
|
|
9095
|
-
writeScope($
|
|
9137
|
+
const $scope55_id = _scope_id();
|
|
9138
|
+
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($scope55_id, "a")}`);
|
|
9139
|
+
_script($scope55_id, "A60");
|
|
9140
|
+
writeScope($scope55_id, {});
|
|
9096
9141
|
return 0;
|
|
9097
9142
|
} else {
|
|
9098
|
-
const $
|
|
9143
|
+
const $scope56_id = _scope_id();
|
|
9099
9144
|
const $childScope11 = _peek_scope_id();
|
|
9100
9145
|
arm_button_default({
|
|
9101
9146
|
class: btnSm,
|
|
@@ -9104,24 +9149,24 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9104
9149
|
armedLabel: "Sign out?",
|
|
9105
9150
|
onFire: _resume(function() {
|
|
9106
9151
|
run(h.host, "logout");
|
|
9107
|
-
}, "A40", $
|
|
9152
|
+
}, "A40", $scope56_id),
|
|
9108
9153
|
content: _content_resume("A61", () => {
|
|
9109
9154
|
_scope_reason();
|
|
9110
9155
|
_scope_id();
|
|
9111
9156
|
_html("Sign out");
|
|
9112
|
-
}, $
|
|
9157
|
+
}, $scope56_id)
|
|
9113
9158
|
});
|
|
9114
|
-
_subscribe($for_content3__h_host__closures, writeScope($
|
|
9159
|
+
_subscribe($for_content3__h_host__closures, writeScope($scope56_id, { a: _existing_scope($childScope11) }));
|
|
9115
9160
|
return 1;
|
|
9116
9161
|
}
|
|
9117
|
-
}, $
|
|
9162
|
+
}, $scope54_id, "a", 1, 1, 1, 0, 1);
|
|
9118
9163
|
_if(() => {
|
|
9119
9164
|
if (h.isEnterprise) {
|
|
9120
|
-
const $
|
|
9165
|
+
const $scope78_id = _scope_id();
|
|
9121
9166
|
const $childScope12 = _peek_scope_id();
|
|
9122
9167
|
arm_button_default({
|
|
9123
9168
|
class: [
|
|
9124
|
-
"
|
|
9169
|
+
"_ch",
|
|
9125
9170
|
"_7",
|
|
9126
9171
|
"_8"
|
|
9127
9172
|
],
|
|
@@ -9130,30 +9175,30 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9130
9175
|
armedLabel: "Forget?",
|
|
9131
9176
|
onFire: _resume(function() {
|
|
9132
9177
|
changeHost(h.host, true);
|
|
9133
|
-
}, "A41", $
|
|
9178
|
+
}, "A41", $scope78_id),
|
|
9134
9179
|
content: _content_resume("A62", () => {
|
|
9135
9180
|
_scope_reason();
|
|
9136
9181
|
_scope_id();
|
|
9137
9182
|
icon_xmark_default({ size: 14 });
|
|
9138
|
-
}, $
|
|
9183
|
+
}, $scope78_id)
|
|
9139
9184
|
});
|
|
9140
|
-
_subscribe($for_content3__h_host__closures, writeScope($
|
|
9185
|
+
_subscribe($for_content3__h_host__closures, writeScope($scope78_id, {
|
|
9141
9186
|
a: _existing_scope($childScope12),
|
|
9142
9187
|
Ca4: 1
|
|
9143
9188
|
}));
|
|
9144
9189
|
return 0;
|
|
9145
9190
|
}
|
|
9146
|
-
}, $
|
|
9147
|
-
writeScope($
|
|
9191
|
+
}, $scope54_id, "b", 1, 1, 1, 0, 1);
|
|
9192
|
+
writeScope($scope54_id, {});
|
|
9148
9193
|
return 0;
|
|
9149
9194
|
}
|
|
9150
9195
|
}, $scope7_id, "j");
|
|
9151
9196
|
_html("</div>");
|
|
9152
9197
|
_if(() => {
|
|
9153
9198
|
if (busy && authCodes.has(h.host)) {
|
|
9154
|
-
const $
|
|
9155
|
-
_html(`<div${_attr_class("
|
|
9156
|
-
_subscribe($authCodes__closures, writeScope($
|
|
9199
|
+
const $scope35_id = _scope_id();
|
|
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>`);
|
|
9201
|
+
_subscribe($authCodes__closures, writeScope($scope35_id, { Ch6: 1 }));
|
|
9157
9202
|
return 0;
|
|
9158
9203
|
}
|
|
9159
9204
|
}, $scope7_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -9164,7 +9209,7 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9164
9209
|
_set_serialize_reason(30);
|
|
9165
9210
|
const $childScope13 = _peek_scope_id();
|
|
9166
9211
|
sso_auth_default({
|
|
9167
|
-
class: ["
|
|
9212
|
+
class: ["_ct", "_dz"],
|
|
9168
9213
|
items: hostSso$1,
|
|
9169
9214
|
skipped: skippedSso,
|
|
9170
9215
|
busy,
|
|
@@ -9197,25 +9242,25 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9197
9242
|
}, "host", $scope0_id, "z", 1, 1, 1, "</div>");
|
|
9198
9243
|
_if(() => {
|
|
9199
9244
|
if (setup && !setup.github.length) {
|
|
9200
|
-
const $
|
|
9201
|
-
_html(`<p${_attr_class("
|
|
9202
|
-
writeScope($
|
|
9245
|
+
const $scope98_id = _scope_id();
|
|
9246
|
+
_html(`<p${_attr_class("_ci")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9247
|
+
writeScope($scope98_id, {});
|
|
9203
9248
|
return 0;
|
|
9204
9249
|
}
|
|
9205
9250
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
9206
|
-
_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>`);
|
|
9207
9252
|
_set_serialize_reason(1);
|
|
9208
9253
|
const $childScope14 = _peek_scope_id();
|
|
9209
9254
|
icon_chevron_right_default({
|
|
9210
9255
|
size: 12,
|
|
9211
|
-
class: ["
|
|
9256
|
+
class: ["_cB", { ["_cC"]: skillsOpen }]
|
|
9212
9257
|
});
|
|
9213
|
-
_html(`<span${_attr_class("
|
|
9258
|
+
_html(`<span${_attr_class("_cy")}>Skills</span>`);
|
|
9214
9259
|
_if(() => {
|
|
9215
9260
|
if (skills?.global.length) {
|
|
9216
|
-
const $
|
|
9217
|
-
_html(`<span${_attr_class("
|
|
9218
|
-
writeScope($
|
|
9261
|
+
const $scope50_id = _scope_id();
|
|
9262
|
+
_html(`<span${_attr_class("_cz")}>${_text_resume($scope50_id, "b", skills.global.length)} installed</span>`);
|
|
9263
|
+
writeScope($scope50_id, {});
|
|
9219
9264
|
return 0;
|
|
9220
9265
|
}
|
|
9221
9266
|
}, $scope0_id, "aa", 1, 1, 1, 0, 1);
|
|
@@ -9241,46 +9286,46 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9241
9286
|
const $scope16_id = _scope_id();
|
|
9242
9287
|
_if(() => {
|
|
9243
9288
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9244
|
-
const $
|
|
9245
|
-
_html(`<li${_attr_class("
|
|
9246
|
-
writeScope($
|
|
9289
|
+
const $scope99_id = _scope_id();
|
|
9290
|
+
_html(`<li${_attr_class("_cQ")}>Searching skills.sh…</li>`);
|
|
9291
|
+
writeScope($scope99_id, {});
|
|
9247
9292
|
return 0;
|
|
9248
9293
|
}
|
|
9249
9294
|
}, $scope16_id, "a", 1, 1, 1, 0, 1);
|
|
9250
9295
|
_if(() => {
|
|
9251
9296
|
if (looksLikeSource(skillQuery)) {
|
|
9252
9297
|
const $scope17_id = _scope_id();
|
|
9253
|
-
_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>`);
|
|
9254
9299
|
_if(() => {
|
|
9255
9300
|
if (active.has(skillQuery.trim())) {
|
|
9256
9301
|
const $scope18_id = _scope_id();
|
|
9257
|
-
_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>`);
|
|
9258
9303
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope18_id, {
|
|
9259
|
-
|
|
9260
|
-
|
|
9304
|
+
Ch1: 3,
|
|
9305
|
+
Chs: 2
|
|
9261
9306
|
})));
|
|
9262
9307
|
return 0;
|
|
9263
9308
|
} else {
|
|
9264
|
-
const $
|
|
9265
|
-
_html(`<span${_attr_class("
|
|
9266
|
-
writeScope($
|
|
9309
|
+
const $scope100_id = _scope_id();
|
|
9310
|
+
_html(`<span${_attr_class("_cg")}>Add straight from this source</span>`);
|
|
9311
|
+
writeScope($scope100_id, {});
|
|
9267
9312
|
return 1;
|
|
9268
9313
|
}
|
|
9269
9314
|
}, $scope17_id, "e", 1, 1, 1, 0, 1);
|
|
9270
9315
|
_html("</div>");
|
|
9271
9316
|
_if(() => {
|
|
9272
9317
|
if (!active.has(skillQuery.trim())) {
|
|
9273
|
-
const $
|
|
9274
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9275
|
-
_script($
|
|
9276
|
-
writeScope($
|
|
9318
|
+
const $scope51_id = _scope_id();
|
|
9319
|
+
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope51_id, "a")}`);
|
|
9320
|
+
_script($scope51_id, "A63");
|
|
9321
|
+
writeScope($scope51_id, {});
|
|
9277
9322
|
return 0;
|
|
9278
9323
|
}
|
|
9279
9324
|
}, $scope17_id, "f", 1, 1, 1, 0, 1);
|
|
9280
9325
|
_html("</li>");
|
|
9281
9326
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope17_id, {
|
|
9282
|
-
|
|
9283
|
-
|
|
9327
|
+
Ch1: 2,
|
|
9328
|
+
Chs: 1
|
|
9284
9329
|
})));
|
|
9285
9330
|
return 0;
|
|
9286
9331
|
}
|
|
@@ -9288,47 +9333,47 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9288
9333
|
_for_of(skillHits || [], (h) => {
|
|
9289
9334
|
const $scope19_id = _scope_id();
|
|
9290
9335
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9291
|
-
_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>`);
|
|
9292
9337
|
_if(() => {
|
|
9293
9338
|
if (active.has(h.skillId)) {
|
|
9294
9339
|
const $scope20_id = _scope_id();
|
|
9295
|
-
_html(`<span${_attr_class("
|
|
9296
|
-
_subscribe($active__closures, writeScope($scope20_id, {
|
|
9340
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope20_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9341
|
+
_subscribe($active__closures, writeScope($scope20_id, { Ch1: 5 }));
|
|
9297
9342
|
return 0;
|
|
9298
9343
|
} else {
|
|
9299
|
-
const $
|
|
9300
|
-
_html(`<span${_attr_class("
|
|
9301
|
-
writeScope($
|
|
9344
|
+
const $scope101_id = _scope_id();
|
|
9345
|
+
_html(`<span${_attr_class("_cg")}${_attr("title", h.source)}>${_text_resume($scope101_id, "b", h.source)}</span>${_el_resume($scope101_id, "a")}`);
|
|
9346
|
+
writeScope($scope101_id, {});
|
|
9302
9347
|
return 1;
|
|
9303
9348
|
}
|
|
9304
9349
|
}, $scope19_id, "e", 1, 1, 1, 0, 1);
|
|
9305
9350
|
_html("</div>");
|
|
9306
9351
|
_if(() => {
|
|
9307
9352
|
if (!active.has(h.skillId)) {
|
|
9308
|
-
const $
|
|
9353
|
+
const $scope62_id = _scope_id();
|
|
9309
9354
|
_if(() => {
|
|
9310
9355
|
if (h.installs) {
|
|
9311
|
-
const $
|
|
9312
|
-
_html(`<span${_attr_class(["_N", "_O"])}${_attr("title", `${h.installs} installs`)}>${_text_resume($
|
|
9313
|
-
_subscribe($for_content4__h_installs__closures, writeScope($
|
|
9356
|
+
const $scope102_id = _scope_id();
|
|
9357
|
+
_html(`<span${_attr_class(["_N", "_O"])}${_attr("title", `${h.installs} installs`)}>${_text_resume($scope102_id, "b", skillInstalls(h.installs))}</span>${_el_resume($scope102_id, "a")}`);
|
|
9358
|
+
_subscribe($for_content4__h_installs__closures, writeScope($scope102_id, {}));
|
|
9314
9359
|
return 0;
|
|
9315
9360
|
}
|
|
9316
|
-
}, $
|
|
9361
|
+
}, $scope62_id, "a", 1, 1, 1, 0, 1);
|
|
9317
9362
|
_if(() => {
|
|
9318
9363
|
if (h.installed) {
|
|
9319
|
-
const $
|
|
9364
|
+
const $scope103_id = _scope_id();
|
|
9320
9365
|
_html(`<span${_attr_class("_N")}>installed</span>`);
|
|
9321
|
-
writeScope($
|
|
9366
|
+
writeScope($scope103_id, {});
|
|
9322
9367
|
return 0;
|
|
9323
9368
|
} else {
|
|
9324
|
-
const $
|
|
9325
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9326
|
-
_script($
|
|
9327
|
-
writeScope($
|
|
9369
|
+
const $scope63_id = _scope_id();
|
|
9370
|
+
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope63_id, "a")}`);
|
|
9371
|
+
_script($scope63_id, "A64");
|
|
9372
|
+
writeScope($scope63_id, {});
|
|
9328
9373
|
return 1;
|
|
9329
9374
|
}
|
|
9330
|
-
}, $
|
|
9331
|
-
writeScope($
|
|
9375
|
+
}, $scope62_id, "b", 1, 1, 1, 0, 1);
|
|
9376
|
+
writeScope($scope62_id, {});
|
|
9332
9377
|
return 0;
|
|
9333
9378
|
}
|
|
9334
9379
|
}, $scope19_id, "f");
|
|
@@ -9339,14 +9384,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9339
9384
|
m: h?.installs,
|
|
9340
9385
|
n: h?.installed,
|
|
9341
9386
|
q: $for_content4__h_installs__closures,
|
|
9342
|
-
|
|
9387
|
+
Ch1: 4
|
|
9343
9388
|
}));
|
|
9344
9389
|
}, "skillId", $scope16_id, "c", 1, 1, 1, 0, 1);
|
|
9345
9390
|
_if(() => {
|
|
9346
9391
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9347
|
-
const $
|
|
9348
|
-
_html(`<li${_attr_class("
|
|
9349
|
-
_subscribe($skillQuery__closures, writeScope($
|
|
9392
|
+
const $scope52_id = _scope_id();
|
|
9393
|
+
_html(`<li${_attr_class("_cQ")}>No skills match "${_text_resume($scope52_id, "b", skillQuery, 2)}".</li>`);
|
|
9394
|
+
_subscribe($skillQuery__closures, writeScope($scope52_id, { Chs: 3 }));
|
|
9350
9395
|
return 0;
|
|
9351
9396
|
}
|
|
9352
9397
|
}, $scope16_id, "d", 1, 1, 1, 0, 1);
|
|
@@ -9362,22 +9407,22 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9362
9407
|
_if(() => {
|
|
9363
9408
|
{
|
|
9364
9409
|
const $scope21_id = _scope_id();
|
|
9365
|
-
_html(`<div${_attr_class("
|
|
9410
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
9366
9411
|
_if(() => {
|
|
9367
9412
|
if (skills && !skills.agents.length) {
|
|
9368
|
-
const $
|
|
9369
|
-
_html(`<p${_attr_class("
|
|
9370
|
-
writeScope($
|
|
9413
|
+
const $scope104_id = _scope_id();
|
|
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>`);
|
|
9415
|
+
writeScope($scope104_id, {});
|
|
9371
9416
|
return 0;
|
|
9372
9417
|
} else if (skills && !skills.available) {
|
|
9373
9418
|
const $scope22_id = _scope_id();
|
|
9374
|
-
_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>`);
|
|
9375
9420
|
_script($scope22_id, "A66");
|
|
9376
|
-
_subscribe($active__closures, writeScope($scope22_id, {
|
|
9421
|
+
_subscribe($active__closures, writeScope($scope22_id, { Ch1: 6 }));
|
|
9377
9422
|
return 1;
|
|
9378
9423
|
}
|
|
9379
9424
|
}, $scope21_id, "b", 1, 1, 1, 0, 1);
|
|
9380
|
-
_html(`<ul${_attr_class("
|
|
9425
|
+
_html(`<ul${_attr_class("_cS")}>`);
|
|
9381
9426
|
_for_of(skills?.global || [], (s) => {
|
|
9382
9427
|
const $scope23_id = _scope_id();
|
|
9383
9428
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9388,21 +9433,21 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9388
9433
|
let $trailing;
|
|
9389
9434
|
if (skills && s.agents.length < skills.agents.length) $tags = attrTag({ content: _content_resume("A69", () => {
|
|
9390
9435
|
_scope_reason();
|
|
9391
|
-
const $
|
|
9392
|
-
_html(`<span${_attr_class("_N")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($
|
|
9393
|
-
_subscribe($for_content5__s_agents__closures, writeScope($
|
|
9394
|
-
_resume_branch($
|
|
9436
|
+
const $scope105_id = _scope_id();
|
|
9437
|
+
_html(`<span${_attr_class("_N")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope105_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope105_id, "a")}`);
|
|
9438
|
+
_subscribe($for_content5__s_agents__closures, writeScope($scope105_id, { _: _scope_with_id($scope23_id) }));
|
|
9439
|
+
_resume_branch($scope105_id);
|
|
9395
9440
|
}, $scope23_id) });
|
|
9396
9441
|
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("A70", () => {
|
|
9397
9442
|
_scope_reason();
|
|
9398
|
-
const $
|
|
9399
|
-
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($
|
|
9400
|
-
_script($
|
|
9401
|
-
writeScope($
|
|
9443
|
+
const $scope64_id = _scope_id();
|
|
9444
|
+
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($scope64_id, "a")}`);
|
|
9445
|
+
_script($scope64_id, "A67");
|
|
9446
|
+
writeScope($scope64_id, { _: _scope_with_id($scope23_id) });
|
|
9402
9447
|
}, $scope23_id) });
|
|
9403
9448
|
if (skills?.available) $trailing = attrTag({ content: _content_resume("A71", () => {
|
|
9404
9449
|
_scope_reason();
|
|
9405
|
-
const $
|
|
9450
|
+
const $scope65_id = _scope_id();
|
|
9406
9451
|
const $childScope16 = _peek_scope_id();
|
|
9407
9452
|
arm_button_default({
|
|
9408
9453
|
class: [
|
|
@@ -9417,18 +9462,18 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9417
9462
|
action: "remove",
|
|
9418
9463
|
id: s.id
|
|
9419
9464
|
});
|
|
9420
|
-
}, "A46", $
|
|
9465
|
+
}, "A46", $scope65_id),
|
|
9421
9466
|
content: _content_resume("A68", () => {
|
|
9422
9467
|
_scope_reason();
|
|
9423
9468
|
_scope_id();
|
|
9424
9469
|
icon_xmark_default({ size: 12 });
|
|
9425
|
-
}, $
|
|
9470
|
+
}, $scope65_id)
|
|
9426
9471
|
});
|
|
9427
|
-
_subscribe($for_content5__s_name__closures, writeScope($
|
|
9472
|
+
_subscribe($for_content5__s_name__closures, writeScope($scope65_id, {
|
|
9428
9473
|
_: _scope_with_id($scope23_id),
|
|
9429
9474
|
a: _existing_scope($childScope16)
|
|
9430
9475
|
}));
|
|
9431
|
-
_resume_branch($
|
|
9476
|
+
_resume_branch($scope65_id);
|
|
9432
9477
|
}, $scope23_id) });
|
|
9433
9478
|
const $childScope17 = _peek_scope_id();
|
|
9434
9479
|
skill_chip_default({
|
|
@@ -9449,14 +9494,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9449
9494
|
o: $for_content5__s_agents__closures,
|
|
9450
9495
|
n: $for_content5__s_name__closures,
|
|
9451
9496
|
a: _existing_scope($childScope17),
|
|
9452
|
-
|
|
9497
|
+
Ch1: 7
|
|
9453
9498
|
}))));
|
|
9454
9499
|
}, "id", $scope21_id, "c", 1, 1, 1, "</ul>", 1);
|
|
9455
9500
|
_if(() => {
|
|
9456
9501
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9457
|
-
const $
|
|
9458
|
-
_html(`<p${_attr_class("
|
|
9459
|
-
writeScope($
|
|
9502
|
+
const $scope108_id = _scope_id();
|
|
9503
|
+
_html(`<p${_attr_class("_ci")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9504
|
+
writeScope($scope108_id, {});
|
|
9460
9505
|
return 0;
|
|
9461
9506
|
}
|
|
9462
9507
|
}, $scope21_id, "d", 1, 1, 1, 0, 1);
|
|
@@ -9465,42 +9510,54 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9465
9510
|
return 0;
|
|
9466
9511
|
}
|
|
9467
9512
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
9468
|
-
_html(`</div><div${_attr_class(["
|
|
9513
|
+
_html(`</div><div${_attr_class(["_ct", "_cu"])}><div${_attr_class(["_cv", { ["_cw"]: machineOpen }])}><button${_attr_class("_cx")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9469
9514
|
_set_serialize_reason(1);
|
|
9470
9515
|
const $childScope18 = _peek_scope_id();
|
|
9471
9516
|
icon_chevron_right_default({
|
|
9472
9517
|
size: 12,
|
|
9473
|
-
class: ["
|
|
9518
|
+
class: ["_cB", { ["_cC"]: machineOpen }]
|
|
9474
9519
|
});
|
|
9475
|
-
_html(`<span${_attr_class("
|
|
9520
|
+
_html(`<span${_attr_class("_cy")}>Tools</span><span${_attr_class("_cz")}>${_text_resume($scope0_id, "aj", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "ak", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "al", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "af")}`);
|
|
9476
9521
|
_if(() => {
|
|
9477
|
-
if (
|
|
9522
|
+
if (bulk) {
|
|
9523
|
+
const $scope34_id = _scope_id();
|
|
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>`);
|
|
9525
|
+
writeScope($scope34_id, {});
|
|
9526
|
+
return 0;
|
|
9527
|
+
} else {
|
|
9478
9528
|
const $scope24_id = _scope_id();
|
|
9479
|
-
|
|
9480
|
-
|
|
9529
|
+
_if(() => {
|
|
9530
|
+
if (outdatedIds.length > 1) {
|
|
9531
|
+
const $scope25_id = _scope_id();
|
|
9532
|
+
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope25_id, "a")}`);
|
|
9533
|
+
_script($scope25_id, "A72");
|
|
9534
|
+
_subscribe($active_size__closures, writeScope($scope25_id, {}));
|
|
9535
|
+
return 0;
|
|
9536
|
+
}
|
|
9537
|
+
}, $scope24_id, "a", 1, 1, 1, 0, 1);
|
|
9538
|
+
_if(() => {
|
|
9539
|
+
if (missingInstallable.length > 1) {
|
|
9540
|
+
const $scope26_id = _scope_id();
|
|
9541
|
+
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope26_id, "a")}`);
|
|
9542
|
+
_script($scope26_id, "A73");
|
|
9543
|
+
_subscribe($active_size__closures, writeScope($scope26_id, { Ch2: 1 }));
|
|
9544
|
+
return 0;
|
|
9545
|
+
}
|
|
9546
|
+
}, $scope24_id, "b", 1, 1, 1, 0, 1);
|
|
9481
9547
|
writeScope($scope24_id, {});
|
|
9482
|
-
return
|
|
9483
|
-
}
|
|
9484
|
-
}, $scope0_id, "am", 1, 1, 1, 0, 1);
|
|
9485
|
-
_if(() => {
|
|
9486
|
-
if (missingInstallable.length > 1) {
|
|
9487
|
-
const $scope25_id = _scope_id();
|
|
9488
|
-
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope25_id, "a")}`);
|
|
9489
|
-
_script($scope25_id, "A73");
|
|
9490
|
-
writeScope($scope25_id, {});
|
|
9491
|
-
return 0;
|
|
9548
|
+
return 1;
|
|
9492
9549
|
}
|
|
9493
|
-
}, $scope0_id, "
|
|
9550
|
+
}, $scope0_id, "am");
|
|
9494
9551
|
_if(() => {
|
|
9495
9552
|
if (setup && setup.mise.installed) {
|
|
9496
|
-
const $
|
|
9553
|
+
const $scope27_id = _scope_id();
|
|
9497
9554
|
_set_serialize_reason(106);
|
|
9498
9555
|
const $childScope19 = _peek_scope_id();
|
|
9499
9556
|
add_field_default({
|
|
9500
9557
|
open: addingTool,
|
|
9501
9558
|
openChange: _resume((_new_addingTool) => {
|
|
9502
9559
|
addingTool = _new_addingTool;
|
|
9503
|
-
}, "A47", $
|
|
9560
|
+
}, "A47", $scope27_id),
|
|
9504
9561
|
value: query,
|
|
9505
9562
|
valueChange: search,
|
|
9506
9563
|
placeholder: "Search the mise registry…",
|
|
@@ -9509,149 +9566,149 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9509
9566
|
searching,
|
|
9510
9567
|
content: _content("A75", () => {
|
|
9511
9568
|
_scope_reason();
|
|
9512
|
-
const $
|
|
9569
|
+
const $scope28_id = _scope_id();
|
|
9513
9570
|
_if(() => {
|
|
9514
9571
|
if (searching && !hits?.length) {
|
|
9515
|
-
const $
|
|
9516
|
-
_html(`<li${_attr_class("
|
|
9517
|
-
writeScope($
|
|
9572
|
+
const $scope109_id = _scope_id();
|
|
9573
|
+
_html(`<li${_attr_class("_cQ")}>Searching the mise registry…</li>`);
|
|
9574
|
+
writeScope($scope109_id, {});
|
|
9518
9575
|
return 0;
|
|
9519
9576
|
}
|
|
9520
|
-
}, $
|
|
9577
|
+
}, $scope28_id, "a", 1, 1, 1, 0, 1);
|
|
9521
9578
|
_if(() => {
|
|
9522
9579
|
if (hits && !hits.length && !searching) {
|
|
9523
|
-
const $
|
|
9524
|
-
_html(`<li${_attr_class("
|
|
9525
|
-
_subscribe($query__closures, writeScope($
|
|
9580
|
+
const $scope42_id = _scope_id();
|
|
9581
|
+
_html(`<li${_attr_class("_cQ")}>No tools match "${_text_resume($scope42_id, "b", query, 2)}".</li>`);
|
|
9582
|
+
_subscribe($query__closures, writeScope($scope42_id, {}));
|
|
9526
9583
|
return 0;
|
|
9527
9584
|
}
|
|
9528
|
-
}, $
|
|
9585
|
+
}, $scope28_id, "b", 1, 1, 1, 0, 1);
|
|
9529
9586
|
_for_of(hits || [], (h) => {
|
|
9530
|
-
const $
|
|
9531
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9587
|
+
const $scope29_id = _scope_id();
|
|
9588
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cd")}><span${_attr_class(["_dj", "_y"])}>${_text_resume($scope29_id, "d", h.name)}</span>`);
|
|
9532
9589
|
_if(() => {
|
|
9533
9590
|
if (active.has(h.name)) {
|
|
9534
|
-
const $
|
|
9535
|
-
_html(`<span${_attr_class("
|
|
9536
|
-
_subscribe($active__closures, writeScope($
|
|
9591
|
+
const $scope30_id = _scope_id();
|
|
9592
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9593
|
+
_subscribe($active__closures, writeScope($scope30_id, { Ch1: 9 }));
|
|
9537
9594
|
return 0;
|
|
9538
9595
|
} else if (h.description) {
|
|
9539
|
-
const $
|
|
9540
|
-
_html(`<span${_attr_class("
|
|
9541
|
-
writeScope($
|
|
9596
|
+
const $scope110_id = _scope_id();
|
|
9597
|
+
_html(`<span${_attr_class("_cg")}${_attr("title", h.description)}>${_text_resume($scope110_id, "b", h.description)}</span>${_el_resume($scope110_id, "a")}`);
|
|
9598
|
+
writeScope($scope110_id, {});
|
|
9542
9599
|
return 1;
|
|
9543
9600
|
}
|
|
9544
|
-
}, $
|
|
9601
|
+
}, $scope29_id, "e", 1, 1, 1, 0, 1);
|
|
9545
9602
|
_html("</div>");
|
|
9546
9603
|
_if(() => {
|
|
9547
9604
|
if (!active.has(h.name)) {
|
|
9548
|
-
const $
|
|
9605
|
+
const $scope37_id = _scope_id();
|
|
9549
9606
|
_if(() => {
|
|
9550
9607
|
if (h.installed) {
|
|
9551
|
-
const $
|
|
9608
|
+
const $scope111_id = _scope_id();
|
|
9552
9609
|
_html(`<span${_attr_class("_N")}>installed</span>`);
|
|
9553
|
-
writeScope($
|
|
9610
|
+
writeScope($scope111_id, {});
|
|
9554
9611
|
return 0;
|
|
9555
9612
|
} else {
|
|
9556
|
-
const $
|
|
9557
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9558
|
-
_script($
|
|
9559
|
-
writeScope($
|
|
9613
|
+
const $scope38_id = _scope_id();
|
|
9614
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope38_id, "b")}`);
|
|
9615
|
+
_script($scope38_id, "A74");
|
|
9616
|
+
writeScope($scope38_id, {});
|
|
9560
9617
|
return 1;
|
|
9561
9618
|
}
|
|
9562
|
-
}, $
|
|
9563
|
-
writeScope($
|
|
9619
|
+
}, $scope37_id, "a");
|
|
9620
|
+
writeScope($scope37_id, {});
|
|
9564
9621
|
return 0;
|
|
9565
9622
|
}
|
|
9566
|
-
}, $
|
|
9623
|
+
}, $scope29_id, "f");
|
|
9567
9624
|
_html("</li>");
|
|
9568
|
-
_subscribe($active__closures, writeScope($
|
|
9625
|
+
_subscribe($active__closures, writeScope($scope29_id, {
|
|
9569
9626
|
i: h?.name,
|
|
9570
9627
|
k: h?.description,
|
|
9571
9628
|
m: h?.installed,
|
|
9572
|
-
|
|
9629
|
+
Ch1: 8
|
|
9573
9630
|
}));
|
|
9574
|
-
}, "name", $
|
|
9575
|
-
_subscribe($searching__closures, _subscribe($hits_length__closures, _subscribe($hits__closures, writeScope($
|
|
9576
|
-
_resume_branch($
|
|
9577
|
-
}, $
|
|
9631
|
+
}, "name", $scope28_id, "c", 1, 1, 1, 0, 1);
|
|
9632
|
+
_subscribe($searching__closures, _subscribe($hits_length__closures, _subscribe($hits__closures, writeScope($scope28_id, { _: _scope_with_id($scope27_id) }))));
|
|
9633
|
+
_resume_branch($scope28_id);
|
|
9634
|
+
}, $scope27_id)
|
|
9578
9635
|
});
|
|
9579
|
-
writeScope($
|
|
9636
|
+
writeScope($scope27_id, { a: _existing_scope($childScope19) });
|
|
9580
9637
|
return 0;
|
|
9581
9638
|
}
|
|
9582
|
-
}, $scope0_id, "
|
|
9639
|
+
}, $scope0_id, "an");
|
|
9583
9640
|
_html(`</div>${_el_resume($scope0_id, "ae")}`);
|
|
9584
9641
|
_if(() => {
|
|
9585
9642
|
if (machineOpen) {
|
|
9586
9643
|
const $scope6_id = _scope_id();
|
|
9587
|
-
_html(`<div${_attr_class("
|
|
9644
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
9588
9645
|
_if(() => {
|
|
9589
9646
|
if (setup && !setup.mise.installed) {
|
|
9590
|
-
const $
|
|
9591
|
-
_html(`<p${_attr_class("
|
|
9592
|
-
_script($
|
|
9593
|
-
_subscribe($active__closures, writeScope($
|
|
9647
|
+
const $scope31_id = _scope_id();
|
|
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>`);
|
|
9649
|
+
_script($scope31_id, "A76");
|
|
9650
|
+
_subscribe($active__closures, writeScope($scope31_id, { Ch1: 10 }));
|
|
9594
9651
|
return 0;
|
|
9595
9652
|
}
|
|
9596
9653
|
}, $scope6_id, "b", 1, 1, 1, 0, 1);
|
|
9597
9654
|
_html(`<ul${_attr_class(toolGrid)}>`);
|
|
9598
9655
|
_if(() => {
|
|
9599
9656
|
if (self) {
|
|
9600
|
-
const $
|
|
9601
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9657
|
+
const $scope46_id = _scope_id();
|
|
9658
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dj", "_y"])}>work</span>`);
|
|
9602
9659
|
_if(() => {
|
|
9603
9660
|
if (selfUpdating) {
|
|
9604
|
-
const $
|
|
9605
|
-
_html(`<span${_attr_class("
|
|
9606
|
-
writeScope($
|
|
9661
|
+
const $scope112_id = _scope_id();
|
|
9662
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9663
|
+
writeScope($scope112_id, {});
|
|
9607
9664
|
return 0;
|
|
9608
9665
|
} else {
|
|
9609
|
-
const $
|
|
9610
|
-
_html(`<span${_attr_class(["_y", metaTrunc])} title="Running version">v${_text_resume($
|
|
9666
|
+
const $scope47_id = _scope_id();
|
|
9667
|
+
_html(`<span${_attr_class(["_y", metaTrunc])} title="Running version">v${_text_resume($scope47_id, "b", self.version, 2)}</span>`);
|
|
9611
9668
|
_if(() => {
|
|
9612
9669
|
if (self.install === "source") {
|
|
9613
|
-
const $
|
|
9670
|
+
const $scope113_id = _scope_id();
|
|
9614
9671
|
_html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
|
|
9615
|
-
writeScope($
|
|
9672
|
+
writeScope($scope113_id, {});
|
|
9616
9673
|
return 0;
|
|
9617
9674
|
} else if (self.latest && self.latest !== self.version) {
|
|
9618
|
-
const $
|
|
9619
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9675
|
+
const $scope48_id = _scope_id();
|
|
9676
|
+
_html(`<button${_attr_class([btnSm, "_dm"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9620
9677
|
icon_arrow_up_default({ size: 12 });
|
|
9621
|
-
_html(` ${_text_resume($
|
|
9622
|
-
_script($
|
|
9623
|
-
_subscribe($self_latest__closures, writeScope($
|
|
9678
|
+
_html(` ${_text_resume($scope48_id, "c", self.latest, 2)}</button>${_el_resume($scope48_id, "a")}`);
|
|
9679
|
+
_script($scope48_id, "A77");
|
|
9680
|
+
_subscribe($self_latest__closures, writeScope($scope48_id, { Chj: 3 }));
|
|
9624
9681
|
return 1;
|
|
9625
9682
|
} else if (self.latest) {
|
|
9626
|
-
const $
|
|
9683
|
+
const $scope114_id = _scope_id();
|
|
9627
9684
|
_html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
|
|
9628
|
-
writeScope($
|
|
9685
|
+
writeScope($scope114_id, {});
|
|
9629
9686
|
return 2;
|
|
9630
9687
|
}
|
|
9631
|
-
}, $
|
|
9632
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($
|
|
9633
|
-
|
|
9634
|
-
|
|
9688
|
+
}, $scope47_id, "c", 1, 1, 1, 0, 1);
|
|
9689
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope47_id, {
|
|
9690
|
+
Chj: 2,
|
|
9691
|
+
Chk: 1
|
|
9635
9692
|
}))));
|
|
9636
9693
|
return 1;
|
|
9637
9694
|
}
|
|
9638
|
-
}, $
|
|
9695
|
+
}, $scope46_id, "c");
|
|
9639
9696
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9640
9697
|
_if(() => {
|
|
9641
9698
|
if (!selfUpdating) {
|
|
9642
|
-
const $
|
|
9699
|
+
const $scope115_id = _scope_id();
|
|
9643
9700
|
_html(`<span${_attr_class("_N")}>app</span>`);
|
|
9644
|
-
writeScope($
|
|
9701
|
+
writeScope($scope115_id, {});
|
|
9645
9702
|
return 0;
|
|
9646
9703
|
}
|
|
9647
|
-
}, $
|
|
9704
|
+
}, $scope46_id, "e", 1, 1, 1, 0, 1);
|
|
9648
9705
|
_html("</li>");
|
|
9649
|
-
_subscribe($selfUpdating__closures, writeScope($
|
|
9706
|
+
_subscribe($selfUpdating__closures, writeScope($scope46_id, {}));
|
|
9650
9707
|
return 0;
|
|
9651
9708
|
}
|
|
9652
9709
|
}, $scope6_id, "d", 1, 1, 1, 0, 1);
|
|
9653
9710
|
_for_of(tools, (t) => {
|
|
9654
|
-
const $
|
|
9711
|
+
const $scope32_id = _scope_id();
|
|
9655
9712
|
const $for_content7__t_pin__closures = /* @__PURE__ */ new Set();
|
|
9656
9713
|
const $for_content7__t__closures = /* @__PURE__ */ new Set();
|
|
9657
9714
|
const $for_content7__t_version__closures = /* @__PURE__ */ new Set();
|
|
@@ -9659,90 +9716,90 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9659
9716
|
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9660
9717
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9661
9718
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9662
|
-
_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>`);
|
|
9663
9720
|
_if(() => {
|
|
9664
9721
|
if (active.has(t.id)) {
|
|
9665
|
-
const $
|
|
9666
|
-
_html(`<span${_attr_class("
|
|
9667
|
-
_subscribe($active__closures, writeScope($
|
|
9722
|
+
const $scope33_id = _scope_id();
|
|
9723
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope33_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9724
|
+
_subscribe($active__closures, writeScope($scope33_id, { Ch1: 12 }));
|
|
9668
9725
|
return 0;
|
|
9669
9726
|
} else if (t.installed) {
|
|
9670
|
-
const $
|
|
9727
|
+
const $scope39_id = _scope_id();
|
|
9671
9728
|
_if(() => {
|
|
9672
9729
|
if (t.version) {
|
|
9673
|
-
const $
|
|
9674
|
-
_html(`<button${_attr_class(["
|
|
9730
|
+
const $scope40_id = _scope_id();
|
|
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)}`);
|
|
9675
9732
|
_if(() => {
|
|
9676
9733
|
if (aliasPin(t)) {
|
|
9677
|
-
const $
|
|
9678
|
-
_html(`<span${_attr_class("
|
|
9679
|
-
_subscribe($for_content7__t_pin__closures, writeScope($
|
|
9734
|
+
const $scope116_id = _scope_id();
|
|
9735
|
+
_html(`<span${_attr_class("_dk")}>${_text_resume($scope116_id, "b", t.pin)}</span>`);
|
|
9736
|
+
_subscribe($for_content7__t_pin__closures, writeScope($scope116_id, { Ca0: 1 }));
|
|
9680
9737
|
return 0;
|
|
9681
9738
|
}
|
|
9682
|
-
}, $
|
|
9683
|
-
_html(`</button>${_el_resume($
|
|
9684
|
-
_script($
|
|
9685
|
-
_subscribe($for_content7__t_version__closures, _subscribe($for_content7__t__closures, writeScope($
|
|
9739
|
+
}, $scope40_id, "c", 1, 1, 1, 0, 1);
|
|
9740
|
+
_html(`</button>${_el_resume($scope40_id, "a")}`);
|
|
9741
|
+
_script($scope40_id, "A78");
|
|
9742
|
+
_subscribe($for_content7__t_version__closures, _subscribe($for_content7__t__closures, writeScope($scope40_id, {})));
|
|
9686
9743
|
return 0;
|
|
9687
9744
|
} else {
|
|
9688
|
-
const $
|
|
9689
|
-
_html(`<span${_attr_class([metaTrunc, "_y"])}${_attr("title", t.path)}>${_text_resume($
|
|
9690
|
-
_subscribe($for_content7__t_path__closures, writeScope($
|
|
9745
|
+
const $scope117_id = _scope_id();
|
|
9746
|
+
_html(`<span${_attr_class([metaTrunc, "_y"])}${_attr("title", t.path)}>${_text_resume($scope117_id, "b", t.path)}</span>${_el_resume($scope117_id, "a")}`);
|
|
9747
|
+
_subscribe($for_content7__t_path__closures, writeScope($scope117_id, {}));
|
|
9691
9748
|
return 1;
|
|
9692
9749
|
}
|
|
9693
|
-
}, $
|
|
9750
|
+
}, $scope39_id, "a", 1, 1, 1, 0, 1);
|
|
9694
9751
|
_if(() => {
|
|
9695
9752
|
if (outdated(t)) {
|
|
9696
|
-
const $
|
|
9697
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9753
|
+
const $scope57_id = _scope_id();
|
|
9754
|
+
_html(`<button${_attr_class([btnSm, "_dm"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9698
9755
|
icon_arrow_up_default({ size: 12 });
|
|
9699
|
-
_html(` ${_text_resume($
|
|
9700
|
-
_script($
|
|
9701
|
-
_subscribe($for_content7__t_latest__closures, writeScope($
|
|
9756
|
+
_html(` ${_text_resume($scope57_id, "c", t.latest, 2)}</button>${_el_resume($scope57_id, "a")}`);
|
|
9757
|
+
_script($scope57_id, "A79");
|
|
9758
|
+
_subscribe($for_content7__t_latest__closures, writeScope($scope57_id, {}));
|
|
9702
9759
|
return 0;
|
|
9703
9760
|
} else if (t.newest) {
|
|
9704
|
-
const $
|
|
9705
|
-
_html(`<button${_attr_class(["
|
|
9706
|
-
_script($
|
|
9707
|
-
_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($
|
|
9761
|
+
const $scope58_id = _scope_id();
|
|
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")}`);
|
|
9763
|
+
_script($scope58_id, "A80");
|
|
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 })))));
|
|
9708
9765
|
return 1;
|
|
9709
9766
|
}
|
|
9710
|
-
}, $
|
|
9711
|
-
writeScope($
|
|
9767
|
+
}, $scope39_id, "b", 1, 1, 1, 0, 1);
|
|
9768
|
+
writeScope($scope39_id, {});
|
|
9712
9769
|
return 1;
|
|
9713
9770
|
} else if (t.installable) {
|
|
9714
|
-
const $
|
|
9771
|
+
const $scope118_id = _scope_id();
|
|
9715
9772
|
_html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
|
|
9716
|
-
writeScope($
|
|
9773
|
+
writeScope($scope118_id, {});
|
|
9717
9774
|
return 2;
|
|
9718
9775
|
} else {
|
|
9719
|
-
const $
|
|
9776
|
+
const $scope119_id = _scope_id();
|
|
9720
9777
|
_html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
|
|
9721
|
-
writeScope($
|
|
9778
|
+
writeScope($scope119_id, {});
|
|
9722
9779
|
return 3;
|
|
9723
9780
|
}
|
|
9724
|
-
}, $
|
|
9781
|
+
}, $scope32_id, "d");
|
|
9725
9782
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9726
9783
|
_if(() => {
|
|
9727
9784
|
if (!active.has(t.id)) {
|
|
9728
|
-
const $
|
|
9785
|
+
const $scope59_id = _scope_id();
|
|
9729
9786
|
_if(() => {
|
|
9730
9787
|
if (t.required) {
|
|
9731
|
-
const $
|
|
9788
|
+
const $scope120_id = _scope_id();
|
|
9732
9789
|
_html(`<span${_attr_class("_N")}>required</span>`);
|
|
9733
|
-
writeScope($
|
|
9790
|
+
writeScope($scope120_id, {});
|
|
9734
9791
|
return 0;
|
|
9735
9792
|
}
|
|
9736
|
-
}, $
|
|
9793
|
+
}, $scope59_id, "a", 1, 1, 1, 0, 1);
|
|
9737
9794
|
_if(() => {
|
|
9738
9795
|
if (!t.installed && t.installable) {
|
|
9739
|
-
const $
|
|
9740
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9741
|
-
_script($
|
|
9742
|
-
writeScope($
|
|
9796
|
+
const $scope60_id = _scope_id();
|
|
9797
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope60_id, "a")}`);
|
|
9798
|
+
_script($scope60_id, "A81");
|
|
9799
|
+
writeScope($scope60_id, {});
|
|
9743
9800
|
return 0;
|
|
9744
9801
|
} else if (t.installed && t.version && !t.required) {
|
|
9745
|
-
const $
|
|
9802
|
+
const $scope61_id = _scope_id();
|
|
9746
9803
|
const $childScope20 = _peek_scope_id();
|
|
9747
9804
|
arm_button_default({
|
|
9748
9805
|
class: [
|
|
@@ -9754,26 +9811,26 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9754
9811
|
armedLabel: "Remove?",
|
|
9755
9812
|
onFire: _resume(function() {
|
|
9756
9813
|
run(t.id, "remove");
|
|
9757
|
-
}, "A48", $
|
|
9814
|
+
}, "A48", $scope61_id),
|
|
9758
9815
|
content: _content_resume("A82", () => {
|
|
9759
9816
|
_scope_reason();
|
|
9760
9817
|
_scope_id();
|
|
9761
9818
|
icon_xmark_default({ size: 12 });
|
|
9762
|
-
}, $
|
|
9819
|
+
}, $scope61_id)
|
|
9763
9820
|
});
|
|
9764
|
-
_subscribe($for_content7__t_label__closures, writeScope($
|
|
9821
|
+
_subscribe($for_content7__t_label__closures, writeScope($scope61_id, {
|
|
9765
9822
|
a: _existing_scope($childScope20),
|
|
9766
9823
|
Cw: 1
|
|
9767
9824
|
}));
|
|
9768
9825
|
return 1;
|
|
9769
9826
|
}
|
|
9770
|
-
}, $
|
|
9771
|
-
writeScope($
|
|
9827
|
+
}, $scope59_id, "b", 1, 1, 1, 0, 1);
|
|
9828
|
+
writeScope($scope59_id, {});
|
|
9772
9829
|
return 0;
|
|
9773
9830
|
}
|
|
9774
|
-
}, $
|
|
9775
|
-
_html(`</li>${_el_resume($
|
|
9776
|
-
_subscribe($active__closures, writeScope($
|
|
9831
|
+
}, $scope32_id, "f");
|
|
9832
|
+
_html(`</li>${_el_resume($scope32_id, "a")}`);
|
|
9833
|
+
_subscribe($active__closures, writeScope($scope32_id, {
|
|
9777
9834
|
h: t,
|
|
9778
9835
|
i: t?.installed,
|
|
9779
9836
|
j: t?.label,
|
|
@@ -9792,14 +9849,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9792
9849
|
a2: $for_content7__t_latest__closures,
|
|
9793
9850
|
w: $for_content7__t_label__closures,
|
|
9794
9851
|
a1: $for_content7__t_newest__closures,
|
|
9795
|
-
|
|
9852
|
+
Ch1: 11
|
|
9796
9853
|
}));
|
|
9797
9854
|
}, "id", $scope6_id, "e", 1, 1, 1, 0, 1);
|
|
9798
9855
|
_html("</ul></div>");
|
|
9799
9856
|
writeScope($scope6_id, {});
|
|
9800
9857
|
return 0;
|
|
9801
9858
|
}
|
|
9802
|
-
}, $scope0_id, "
|
|
9859
|
+
}, $scope0_id, "ao", 1, 1, 1, 0, 1);
|
|
9803
9860
|
const accent = input.instance.accent;
|
|
9804
9861
|
const themeOpts = [
|
|
9805
9862
|
{
|
|
@@ -9815,14 +9872,14 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9815
9872
|
label: "Dark"
|
|
9816
9873
|
}
|
|
9817
9874
|
];
|
|
9818
|
-
_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) {
|
|
9819
9876
|
setInstance({ name: v });
|
|
9820
|
-
}, "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">`);
|
|
9821
9878
|
_for_of(themeOpts, (opt) => {
|
|
9822
|
-
const $
|
|
9879
|
+
const $scope49_id = _scope_id();
|
|
9823
9880
|
_html(`<button type=button${_attr_class([
|
|
9824
9881
|
"_bf",
|
|
9825
|
-
"
|
|
9882
|
+
"_dR",
|
|
9826
9883
|
{ ["_be"]: themeMode === opt.id }
|
|
9827
9884
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9828
9885
|
if (opt.id === "system") {
|
|
@@ -9835,287 +9892,287 @@ var settings_page_default = _template("A", (input) => {
|
|
|
9835
9892
|
_scope_id();
|
|
9836
9893
|
icon_moon_default({ size: 14 });
|
|
9837
9894
|
}
|
|
9838
|
-
_html(`${_escape(opt.label)}</button>${_el_resume($
|
|
9839
|
-
_script($
|
|
9840
|
-
writeScope($
|
|
9895
|
+
_html(`${_escape(opt.label)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9896
|
+
_script($scope49_id, "A83");
|
|
9897
|
+
writeScope($scope49_id, {
|
|
9841
9898
|
f: opt?.id,
|
|
9842
9899
|
_: _scope_with_id($scope0_id)
|
|
9843
9900
|
});
|
|
9844
|
-
}, "id", $scope0_id, "
|
|
9845
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9846
|
-
_attr_select_value($scope0_id, "
|
|
9901
|
+
}, "id", $scope0_id, "b5", 1, 0, 1, 0, 1);
|
|
9902
|
+
_html(`</span><span${_attr_class(["_o", "_dG"])}>`);
|
|
9903
|
+
_attr_select_value($scope0_id, "b7", themeMode, _resume(function(v) {
|
|
9847
9904
|
setThemeMode(v);
|
|
9848
9905
|
}, "A2", $scope0_id), () => {
|
|
9849
|
-
_html(`<select${_attr_class(["_p", "
|
|
9906
|
+
_html(`<select${_attr_class(["_p", "_dH"])} aria-label="Color theme">`);
|
|
9850
9907
|
forOf(themeOpts, (opt) => {
|
|
9851
9908
|
_scope_id();
|
|
9852
9909
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9853
9910
|
});
|
|
9854
9911
|
_html("</select>");
|
|
9855
9912
|
});
|
|
9856
|
-
_html(`${_el_resume($scope0_id, "
|
|
9857
|
-
"
|
|
9858
|
-
"
|
|
9859
|
-
{ ["
|
|
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 }
|
|
9860
9917
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9861
9918
|
_if(() => {
|
|
9862
9919
|
if (!accent) {
|
|
9863
|
-
const $
|
|
9920
|
+
const $scope126_id = _scope_id();
|
|
9864
9921
|
icon_check_default({
|
|
9865
9922
|
size: 12,
|
|
9866
|
-
class: "
|
|
9923
|
+
class: "_dV"
|
|
9867
9924
|
});
|
|
9868
|
-
$si__input_instance_accent && writeScope($
|
|
9925
|
+
$si__input_instance_accent && writeScope($scope126_id, {});
|
|
9869
9926
|
return 0;
|
|
9870
9927
|
}
|
|
9871
|
-
}, $scope0_id, "
|
|
9928
|
+
}, $scope0_id, "bb", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9872
9929
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9873
|
-
const $
|
|
9874
|
-
_html(`<button type=button${_attr_class(["
|
|
9930
|
+
const $scope79_id = _scope_id();
|
|
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)}>`);
|
|
9875
9932
|
_if(() => {
|
|
9876
9933
|
if (accent === p.value) {
|
|
9877
|
-
const $
|
|
9934
|
+
const $scope127_id = _scope_id();
|
|
9878
9935
|
icon_check_default({
|
|
9879
9936
|
size: 12,
|
|
9880
|
-
class: "
|
|
9937
|
+
class: "_dV"
|
|
9881
9938
|
});
|
|
9882
|
-
$si__input_instance_accent && writeScope($
|
|
9939
|
+
$si__input_instance_accent && writeScope($scope127_id, {});
|
|
9883
9940
|
return 0;
|
|
9884
9941
|
}
|
|
9885
|
-
}, $
|
|
9886
|
-
_script($
|
|
9887
|
-
writeScope($
|
|
9942
|
+
}, $scope79_id, "a", $sg__input_instance_accent, 1, $sg__input_instance_accent, "</button>", 1);
|
|
9943
|
+
_script($scope79_id, "A84");
|
|
9944
|
+
writeScope($scope79_id, {
|
|
9888
9945
|
d: p?.value,
|
|
9889
9946
|
_: _scope_with_id($scope0_id)
|
|
9890
9947
|
});
|
|
9891
|
-
}, "value", $scope0_id, "
|
|
9948
|
+
}, "value", $scope0_id, "bc", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9892
9949
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9893
9950
|
_html(`<label${_attr_class([
|
|
9894
|
-
"
|
|
9895
|
-
"
|
|
9896
|
-
{ ["
|
|
9897
|
-
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "
|
|
9951
|
+
"_dT",
|
|
9952
|
+
"_dX",
|
|
9953
|
+
{ ["_dU"]: customOn }
|
|
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) {
|
|
9898
9955
|
setInstance({ accent: v });
|
|
9899
|
-
}, "A3", $scope0_id))}${_attr_class("
|
|
9956
|
+
}, "A3", $scope0_id))}${_attr_class("_dY")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "be")}`);
|
|
9900
9957
|
_if(() => {
|
|
9901
9958
|
if (customOn) {
|
|
9902
|
-
const $
|
|
9959
|
+
const $scope128_id = _scope_id();
|
|
9903
9960
|
icon_check_default({
|
|
9904
9961
|
size: 12,
|
|
9905
|
-
class: "
|
|
9962
|
+
class: "_dV"
|
|
9906
9963
|
});
|
|
9907
|
-
$si__input_instance_accent && writeScope($
|
|
9964
|
+
$si__input_instance_accent && writeScope($scope128_id, {});
|
|
9908
9965
|
return 0;
|
|
9909
9966
|
} else {
|
|
9910
|
-
const $
|
|
9967
|
+
const $scope129_id = _scope_id();
|
|
9911
9968
|
icon_plus_default({ size: 12 });
|
|
9912
|
-
$si__input_instance_accent && writeScope($
|
|
9969
|
+
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9913
9970
|
return 1;
|
|
9914
9971
|
}
|
|
9915
|
-
}, $scope0_id, "
|
|
9916
|
-
_html(`</label>${_el_resume($scope0_id, "
|
|
9972
|
+
}, $scope0_id, "bf", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
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")}>`);
|
|
9917
9974
|
_if(() => {
|
|
9918
9975
|
if (backupBusy === "preflight") {
|
|
9919
|
-
const $
|
|
9920
|
-
_html(`<span${_attr_class("
|
|
9921
|
-
writeScope($
|
|
9976
|
+
const $scope66_id = _scope_id();
|
|
9977
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9978
|
+
writeScope($scope66_id, {});
|
|
9922
9979
|
return 0;
|
|
9923
9980
|
} else {
|
|
9924
|
-
const $
|
|
9925
|
-
_html(`<span${_attr_class("
|
|
9926
|
-
writeScope($
|
|
9981
|
+
const $scope130_id = _scope_id();
|
|
9982
|
+
_html(`<span${_attr_class("_cg")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9983
|
+
writeScope($scope130_id, {});
|
|
9927
9984
|
return 1;
|
|
9928
9985
|
}
|
|
9929
|
-
}, $scope0_id, "
|
|
9986
|
+
}, $scope0_id, "bm", 1, 1, 1, "</div>", 1);
|
|
9930
9987
|
_if(() => {
|
|
9931
9988
|
if (!backupBusy && !preflight) {
|
|
9932
|
-
const $
|
|
9933
|
-
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($
|
|
9934
|
-
_script($
|
|
9935
|
-
writeScope($
|
|
9989
|
+
const $scope76_id = _scope_id();
|
|
9990
|
+
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($scope76_id, "a")}`);
|
|
9991
|
+
_script($scope76_id, "A85");
|
|
9992
|
+
writeScope($scope76_id, {});
|
|
9936
9993
|
return 0;
|
|
9937
9994
|
}
|
|
9938
|
-
}, $scope0_id, "
|
|
9995
|
+
}, $scope0_id, "bn", 1, 1, 1, 0, 1);
|
|
9939
9996
|
_html("</div>");
|
|
9940
9997
|
_if(() => {
|
|
9941
9998
|
if (preflight && !backupBusy) {
|
|
9942
|
-
const $
|
|
9943
|
-
_html(`<div${_attr_class("
|
|
9999
|
+
const $scope68_id = _scope_id();
|
|
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: `);
|
|
9944
10001
|
_if(() => {
|
|
9945
10002
|
if (preflight.unpushed) {
|
|
9946
|
-
const $
|
|
9947
|
-
_html(` ${_text_resume($
|
|
10003
|
+
const $scope69_id = _scope_id();
|
|
10004
|
+
_html(` ${_text_resume($scope69_id, "a", preflight.unpushed, 2)} unpushed commit${_text_resume($scope69_id, "b", preflight.unpushed === 1 ? "" : "s", 2)}`);
|
|
9948
10005
|
_if(() => {
|
|
9949
10006
|
if (preflight.files) {
|
|
9950
|
-
const $
|
|
10007
|
+
const $scope131_id = _scope_id();
|
|
9951
10008
|
_html(",");
|
|
9952
|
-
writeScope($
|
|
10009
|
+
writeScope($scope131_id, {});
|
|
9953
10010
|
return 0;
|
|
9954
10011
|
}
|
|
9955
|
-
}, $
|
|
9956
|
-
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($
|
|
10012
|
+
}, $scope69_id, "c");
|
|
10013
|
+
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($scope69_id, {})));
|
|
9957
10014
|
return 0;
|
|
9958
10015
|
}
|
|
9959
|
-
}, $
|
|
9960
|
-
_html(`${_text_resume($
|
|
10016
|
+
}, $scope68_id, "m");
|
|
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")}>`);
|
|
9961
10018
|
_for_of(preflight.workspaces, (w) => {
|
|
9962
|
-
const $
|
|
10019
|
+
const $scope132_id = _scope_id();
|
|
9963
10020
|
const $for_content17__w_name__closures = /* @__PURE__ */ new Set();
|
|
9964
|
-
_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")}>`);
|
|
9965
10022
|
_for_of(w.repos, (r) => {
|
|
9966
|
-
const $
|
|
10023
|
+
const $scope133_id = _scope_id();
|
|
9967
10024
|
const $for_content18__r_more__closures = /* @__PURE__ */ new Set();
|
|
9968
|
-
_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>`);
|
|
9969
10026
|
_for_of(r.unpushed, (b) => {
|
|
9970
|
-
const $
|
|
9971
|
-
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($
|
|
10027
|
+
const $scope134_id = _scope_id();
|
|
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 `);
|
|
9972
10029
|
_if(() => {
|
|
9973
10030
|
if (b.branch !== w.name) {
|
|
9974
|
-
const $
|
|
9975
|
-
_html(`<span${_attr_class("_y")}>${_text_resume($
|
|
9976
|
-
writeScope($
|
|
10031
|
+
const $scope137_id = _scope_id();
|
|
10032
|
+
_html(`<span${_attr_class("_y")}>${_text_resume($scope137_id, "b", b.branch)}</span>`);
|
|
10033
|
+
writeScope($scope137_id, {});
|
|
9977
10034
|
return 0;
|
|
9978
10035
|
}
|
|
9979
|
-
}, $
|
|
9980
|
-
_html(`</span>${_el_resume($
|
|
9981
|
-
_subscribe($for_content17__w_name__closures, writeScope($
|
|
9982
|
-
}, "branch", $
|
|
10036
|
+
}, $scope134_id, "c", 1, 1, 1, 0, 1);
|
|
10037
|
+
_html(`</span>${_el_resume($scope134_id, "a")}`);
|
|
10038
|
+
_subscribe($for_content17__w_name__closures, writeScope($scope134_id, { f: b?.branch }));
|
|
10039
|
+
}, "branch", $scope133_id, "e", 1, 1, 1, 0, 1);
|
|
9983
10040
|
_html("</span>");
|
|
9984
10041
|
_if(() => {
|
|
9985
10042
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9986
|
-
const $
|
|
9987
|
-
_html(`<ul${_attr_class("
|
|
10043
|
+
const $scope135_id = _scope_id();
|
|
10044
|
+
_html(`<ul${_attr_class("_d7")}>`);
|
|
9988
10045
|
_for_of(r.modified, (f) => {
|
|
9989
|
-
const $
|
|
9990
|
-
_html(`<li${_attr_class("
|
|
10046
|
+
const $scope138_id = _scope_id();
|
|
10047
|
+
_html(`<li${_attr_class("_d8")}><span${_attr_class([
|
|
9991
10048
|
"_N",
|
|
9992
10049
|
"_P",
|
|
9993
10050
|
tone.warn
|
|
9994
|
-
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($
|
|
9995
|
-
writeScope($
|
|
9996
|
-
}, (f) => f, $
|
|
10051
|
+
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_ba"])}>${_text_resume($scope138_id, "d", f)}</span></li>`);
|
|
10052
|
+
writeScope($scope138_id, {});
|
|
10053
|
+
}, (f) => f, $scope135_id, "b", 1, 1, 1, 0, 1);
|
|
9997
10054
|
_for_of(r.untracked, (f) => {
|
|
9998
|
-
const $
|
|
9999
|
-
_html(`<li${_attr_class("
|
|
10000
|
-
writeScope($
|
|
10001
|
-
}, (f) => f, $
|
|
10055
|
+
const $scope139_id = _scope_id();
|
|
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>`);
|
|
10057
|
+
writeScope($scope139_id, {});
|
|
10058
|
+
}, (f) => f, $scope135_id, "c", 1, 1, 1, 0, 1);
|
|
10002
10059
|
_for_of(r.ignored, (f) => {
|
|
10003
|
-
const $
|
|
10004
|
-
_html(`<li${_attr_class("
|
|
10005
|
-
writeScope($
|
|
10006
|
-
}, (f) => f, $
|
|
10060
|
+
const $scope140_id = _scope_id();
|
|
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>`);
|
|
10062
|
+
writeScope($scope140_id, {});
|
|
10063
|
+
}, (f) => f, $scope135_id, "d", 1, 1, 1, 0, 1);
|
|
10007
10064
|
_if(() => {
|
|
10008
10065
|
if (r.more) {
|
|
10009
|
-
const $
|
|
10010
|
-
_html(`<li${_attr_class(["
|
|
10011
|
-
_subscribe($for_content18__r_more__closures, writeScope($
|
|
10066
|
+
const $scope136_id = _scope_id();
|
|
10067
|
+
_html(`<li${_attr_class(["_d8", "_x"])}>+${_text_resume($scope136_id, "b", r.more, 2)} more</li>`);
|
|
10068
|
+
_subscribe($for_content18__r_more__closures, writeScope($scope136_id, {}));
|
|
10012
10069
|
return 0;
|
|
10013
10070
|
}
|
|
10014
|
-
}, $
|
|
10071
|
+
}, $scope135_id, "e", 1, 1, 1, 0, 1);
|
|
10015
10072
|
_html("</ul>");
|
|
10016
|
-
writeScope($
|
|
10073
|
+
writeScope($scope135_id, {});
|
|
10017
10074
|
return 0;
|
|
10018
10075
|
}
|
|
10019
|
-
}, $
|
|
10076
|
+
}, $scope133_id, "f", 1, 1, 1, 0, 1);
|
|
10020
10077
|
_html("</li>");
|
|
10021
|
-
writeScope($
|
|
10078
|
+
writeScope($scope133_id, {
|
|
10022
10079
|
k: r?.modified,
|
|
10023
10080
|
m: r?.untracked,
|
|
10024
10081
|
o: r?.ignored,
|
|
10025
10082
|
r: r?.more,
|
|
10026
10083
|
v: $for_content18__r_more__closures
|
|
10027
10084
|
});
|
|
10028
|
-
}, "worktree", $
|
|
10085
|
+
}, "worktree", $scope132_id, "d", 1, 1, 1, "</ul>", 1);
|
|
10029
10086
|
_html("</li>");
|
|
10030
|
-
writeScope($
|
|
10087
|
+
writeScope($scope132_id, {
|
|
10031
10088
|
g: w?.name,
|
|
10032
10089
|
i: $for_content17__w_name__closures
|
|
10033
10090
|
});
|
|
10034
|
-
}, "id", $
|
|
10035
|
-
_html(`<div${_attr_class("
|
|
10036
|
-
_script($
|
|
10037
|
-
writeScope($
|
|
10091
|
+
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
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>`);
|
|
10093
|
+
_script($scope68_id, "A86");
|
|
10094
|
+
writeScope($scope68_id, {});
|
|
10038
10095
|
return 0;
|
|
10039
10096
|
}
|
|
10040
|
-
}, $scope0_id, "
|
|
10041
|
-
_html(`</div><div${_attr_class("
|
|
10097
|
+
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
10098
|
+
_html(`</div><div${_attr_class("_ct")}><div${_attr_class("_dZ")}><div${_attr_class("_cd")}>`);
|
|
10042
10099
|
_if(() => {
|
|
10043
10100
|
if (backupBusy === "restore") {
|
|
10044
|
-
const $
|
|
10045
|
-
_html(`<span${_attr_class("
|
|
10046
|
-
writeScope($
|
|
10101
|
+
const $scope67_id = _scope_id();
|
|
10102
|
+
_html(`<span${_attr_class("_c8")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
10103
|
+
writeScope($scope67_id, {});
|
|
10047
10104
|
return 0;
|
|
10048
10105
|
} else if (restoreDone) {
|
|
10049
|
-
const $
|
|
10050
|
-
_html(`<span${_attr_class("
|
|
10051
|
-
writeScope($
|
|
10106
|
+
const $scope75_id = _scope_id();
|
|
10107
|
+
_html(`<span${_attr_class("_cg")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
10108
|
+
writeScope($scope75_id, {});
|
|
10052
10109
|
return 1;
|
|
10053
10110
|
} else {
|
|
10054
|
-
const $
|
|
10055
|
-
_html(`<span${_attr_class("
|
|
10056
|
-
writeScope($
|
|
10111
|
+
const $scope141_id = _scope_id();
|
|
10112
|
+
_html(`<span${_attr_class("_cg")}>Load a backup file. Repos clone in the background.</span>`);
|
|
10113
|
+
writeScope($scope141_id, {});
|
|
10057
10114
|
return 2;
|
|
10058
10115
|
}
|
|
10059
|
-
}, $scope0_id, "
|
|
10116
|
+
}, $scope0_id, "br", 1, 1, 1, "</div>", 1);
|
|
10060
10117
|
_if(() => {
|
|
10061
10118
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10062
|
-
const $
|
|
10063
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10064
|
-
_script($
|
|
10065
|
-
writeScope($
|
|
10119
|
+
const $scope77_id = _scope_id();
|
|
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>`);
|
|
10121
|
+
_script($scope77_id, "A87");
|
|
10122
|
+
writeScope($scope77_id, {});
|
|
10066
10123
|
return 0;
|
|
10067
10124
|
}
|
|
10068
|
-
}, $scope0_id, "
|
|
10125
|
+
}, $scope0_id, "bs", 1, 1, 1, 0, 1);
|
|
10069
10126
|
_html("</div>");
|
|
10070
10127
|
_if(() => {
|
|
10071
10128
|
if (restorePreview && backupBusy !== "restore") {
|
|
10072
|
-
const $
|
|
10129
|
+
const $scope70_id = _scope_id();
|
|
10073
10130
|
const { preview } = restorePreview;
|
|
10074
|
-
_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>`);
|
|
10075
10132
|
_if(() => {
|
|
10076
10133
|
if (preview.workspaces.length) {
|
|
10077
|
-
const $
|
|
10134
|
+
const $scope71_id = _scope_id();
|
|
10078
10135
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10079
10136
|
_for_of(preview.workspaces, (w) => {
|
|
10080
|
-
const $
|
|
10081
|
-
_html(`<li><label${_attr_class(["
|
|
10137
|
+
const $scope72_id = _scope_id();
|
|
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>`);
|
|
10082
10139
|
_if(() => {
|
|
10083
10140
|
if (w.status === "archived") {
|
|
10084
|
-
const $
|
|
10141
|
+
const $scope145_id = _scope_id();
|
|
10085
10142
|
_html(`<span${_attr_class(["_N", "_P"])}>archived</span>`);
|
|
10086
|
-
writeScope($
|
|
10143
|
+
writeScope($scope145_id, {});
|
|
10087
10144
|
return 0;
|
|
10088
10145
|
}
|
|
10089
|
-
}, $
|
|
10146
|
+
}, $scope72_id, "g", 1, 1, 1, 0, 1);
|
|
10090
10147
|
_if(() => {
|
|
10091
10148
|
if (w.exists) {
|
|
10092
|
-
const $
|
|
10149
|
+
const $scope146_id = _scope_id();
|
|
10093
10150
|
_html(`<span${_attr_class("_N")}>already here</span>`);
|
|
10094
|
-
writeScope($
|
|
10151
|
+
writeScope($scope146_id, {});
|
|
10095
10152
|
return 0;
|
|
10096
10153
|
} else if (w.unknownHost) {
|
|
10097
|
-
const $
|
|
10098
|
-
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($
|
|
10099
|
-
writeScope($
|
|
10154
|
+
const $scope144_id = _scope_id();
|
|
10155
|
+
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($scope144_id, "b", w.unknownHost, 2)}</span>`);
|
|
10156
|
+
writeScope($scope144_id, {});
|
|
10100
10157
|
return 1;
|
|
10101
10158
|
}
|
|
10102
|
-
}, $
|
|
10103
|
-
_html(`</span><span${_attr_class("
|
|
10104
|
-
_script($
|
|
10105
|
-
_subscribe($restoreWs__closures, writeScope($
|
|
10159
|
+
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
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>`);
|
|
10161
|
+
_script($scope72_id, "A88");
|
|
10162
|
+
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
10106
10163
|
n: w?.unknownHost,
|
|
10107
10164
|
p: w?.id
|
|
10108
10165
|
}));
|
|
10109
|
-
}, "id", $
|
|
10110
|
-
_subscribe($preview_workspaces__closures, writeScope($
|
|
10166
|
+
}, "id", $scope71_id, "a", 1, 1, 1, "</ul>", 1);
|
|
10167
|
+
_subscribe($preview_workspaces__closures, writeScope($scope71_id, {}));
|
|
10111
10168
|
return 0;
|
|
10112
10169
|
} else {
|
|
10113
|
-
const $
|
|
10114
|
-
_html(`<p${_attr_class("
|
|
10115
|
-
writeScope($
|
|
10170
|
+
const $scope143_id = _scope_id();
|
|
10171
|
+
_html(`<p${_attr_class("_ci")}>No workspaces in this file.</p>`);
|
|
10172
|
+
writeScope($scope143_id, {});
|
|
10116
10173
|
return 1;
|
|
10117
10174
|
}
|
|
10118
|
-
}, $
|
|
10175
|
+
}, $scope70_id, "f", 1, 1, 1, 0, 1);
|
|
10119
10176
|
const parts = [
|
|
10120
10177
|
{
|
|
10121
10178
|
key: "tools",
|
|
@@ -10144,50 +10201,50 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10144
10201
|
];
|
|
10145
10202
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10146
10203
|
_for_of(parts, (p) => {
|
|
10147
|
-
const $
|
|
10204
|
+
const $scope73_id = _scope_id();
|
|
10148
10205
|
const $for_content10__p_missing__closures = /* @__PURE__ */ new Set();
|
|
10149
10206
|
const $for_content10__p_missing_length__closures = /* @__PURE__ */ new Set();
|
|
10150
10207
|
const $for_content10__p_total__closures = /* @__PURE__ */ new Set();
|
|
10151
10208
|
_if(() => {
|
|
10152
10209
|
if (p.total) {
|
|
10153
|
-
const $
|
|
10154
|
-
_html(`<li><label${_attr_class(["
|
|
10210
|
+
const $scope74_id = _scope_id();
|
|
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")}>`);
|
|
10155
10212
|
_if(() => {
|
|
10156
10213
|
if (p.key === "settings") {
|
|
10157
|
-
const $
|
|
10158
|
-
_html(`${_text_resume($
|
|
10214
|
+
const $scope142_id = _scope_id();
|
|
10215
|
+
_html(`${_text_resume($scope142_id, "a", preview.settings)} value${_text_resume($scope142_id, "b", preview.settings === 1 ? "" : "s", 2)}`);
|
|
10159
10216
|
_if(() => {
|
|
10160
10217
|
if (p.missing.length) {
|
|
10161
|
-
const $
|
|
10162
|
-
_html(`, add host${_text_resume($
|
|
10163
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($
|
|
10218
|
+
const $scope147_id = _scope_id();
|
|
10219
|
+
_html(`, add host${_text_resume($scope147_id, "a", p.missing.length === 1 ? "" : "s", 2)} ${_text_resume($scope147_id, "b", p.missing.join(", "), 2)}`);
|
|
10220
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope147_id, { Ck: 1 })));
|
|
10164
10221
|
return 0;
|
|
10165
10222
|
}
|
|
10166
|
-
}, $
|
|
10167
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($
|
|
10223
|
+
}, $scope142_id, "c");
|
|
10224
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($scope142_id, {})));
|
|
10168
10225
|
return 0;
|
|
10169
10226
|
} else if (p.missing.length) {
|
|
10170
|
-
const $
|
|
10171
|
-
_html(`${_text_resume($
|
|
10172
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($
|
|
10227
|
+
const $scope148_id = _scope_id();
|
|
10228
|
+
_html(`${_text_resume($scope148_id, "a", p.missing.length)} to install: ${_text_resume($scope148_id, "b", p.missing.join(", "), 2)}`);
|
|
10229
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope148_id, {
|
|
10173
10230
|
Cj: 1,
|
|
10174
10231
|
Ck: 2
|
|
10175
10232
|
})));
|
|
10176
10233
|
return 1;
|
|
10177
10234
|
} else {
|
|
10178
|
-
const $
|
|
10179
|
-
_html(`all ${_text_resume($
|
|
10180
|
-
_subscribe($for_content10__p_total__closures, writeScope($
|
|
10235
|
+
const $scope149_id = _scope_id();
|
|
10236
|
+
_html(`all ${_text_resume($scope149_id, "a", p.total, 2)} already installed`);
|
|
10237
|
+
_subscribe($for_content10__p_total__closures, writeScope($scope149_id, {}));
|
|
10181
10238
|
return 2;
|
|
10182
10239
|
}
|
|
10183
|
-
}, $
|
|
10184
|
-
_html(`</span></label>${_el_resume($
|
|
10185
|
-
_script($
|
|
10186
|
-
_subscribe($restoreParts__closures, writeScope($
|
|
10240
|
+
}, $scope74_id, "f", 1, 1, 1, "</span>");
|
|
10241
|
+
_html(`</span></label>${_el_resume($scope74_id, "a")}</li>`);
|
|
10242
|
+
_script($scope74_id, "A89");
|
|
10243
|
+
_subscribe($restoreParts__closures, writeScope($scope74_id, {}));
|
|
10187
10244
|
return 0;
|
|
10188
10245
|
}
|
|
10189
|
-
}, $
|
|
10190
|
-
writeScope($
|
|
10246
|
+
}, $scope73_id, "a", 1, 1, 1, 0, 1);
|
|
10247
|
+
writeScope($scope73_id, {
|
|
10191
10248
|
d: p?.total,
|
|
10192
10249
|
e: p?.missing,
|
|
10193
10250
|
f: p?.missing?.length,
|
|
@@ -10197,17 +10254,17 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10197
10254
|
k: $for_content10__p_missing_length__closures,
|
|
10198
10255
|
i: $for_content10__p_total__closures
|
|
10199
10256
|
});
|
|
10200
|
-
}, "key", $
|
|
10201
|
-
_html(`</ul><div${_attr_class("
|
|
10202
|
-
_script($
|
|
10203
|
-
writeScope($
|
|
10257
|
+
}, "key", $scope70_id, "h");
|
|
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>`);
|
|
10259
|
+
_script($scope70_id, "A90");
|
|
10260
|
+
writeScope($scope70_id, {});
|
|
10204
10261
|
return 0;
|
|
10205
10262
|
}
|
|
10206
|
-
}, $scope0_id, "
|
|
10263
|
+
}, $scope0_id, "bt", 1, 1, 1, 0, 1);
|
|
10207
10264
|
_html("</div></div></section></div></div></div></div>");
|
|
10208
10265
|
_if(() => {
|
|
10209
10266
|
if (versionPick) {
|
|
10210
|
-
const $
|
|
10267
|
+
const $scope36_id = _scope_id();
|
|
10211
10268
|
_set_serialize_reason(10);
|
|
10212
10269
|
const $childScope21 = _peek_scope_id();
|
|
10213
10270
|
prompt_dialog_default({
|
|
@@ -10218,169 +10275,176 @@ var settings_page_default = _template("A", (input) => {
|
|
|
10218
10275
|
open: versionPick != null,
|
|
10219
10276
|
openChange: _resume(function(o) {
|
|
10220
10277
|
if (!o) versionPick = null;
|
|
10221
|
-
}, "A49", $
|
|
10278
|
+
}, "A49", $scope36_id),
|
|
10222
10279
|
onSubmit: _resume(function(v) {
|
|
10223
10280
|
const pick = versionPick;
|
|
10224
10281
|
versionPick = null;
|
|
10225
10282
|
run(pick.id, "install", v);
|
|
10226
|
-
}, "A50", $
|
|
10283
|
+
}, "A50", $scope36_id)
|
|
10227
10284
|
});
|
|
10228
|
-
writeScope($
|
|
10285
|
+
writeScope($scope36_id, { a: _existing_scope($childScope21) });
|
|
10229
10286
|
return 0;
|
|
10230
10287
|
}
|
|
10231
|
-
}, $scope0_id, "
|
|
10288
|
+
}, $scope0_id, "bu", 1, 1, 1, 0, 1);
|
|
10232
10289
|
_script($scope0_id, "A91");
|
|
10233
10290
|
_script($scope0_id, "A92");
|
|
10234
10291
|
writeScope($scope0_id, {
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
cp:
|
|
10255
|
-
cq:
|
|
10256
|
-
cr:
|
|
10257
|
-
cs:
|
|
10258
|
-
ct: versionPick
|
|
10259
|
-
cu:
|
|
10260
|
-
cv:
|
|
10261
|
-
cw:
|
|
10262
|
-
cx:
|
|
10263
|
-
cy:
|
|
10264
|
-
cz:
|
|
10265
|
-
d0:
|
|
10266
|
-
d1:
|
|
10267
|
-
d2:
|
|
10268
|
-
d3: self
|
|
10269
|
-
d4:
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
de: skills
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
dk:
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
|
|
10284
|
-
dr:
|
|
10285
|
-
ds:
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
e1:
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
|
|
10296
|
-
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
ek:
|
|
10304
|
-
el:
|
|
10305
|
-
|
|
10306
|
-
|
|
10307
|
-
|
|
10308
|
-
er: preflight?.contents?.
|
|
10309
|
-
es: preflight?.contents?.
|
|
10310
|
-
et: preflight?.
|
|
10311
|
-
eu: preflight?.
|
|
10312
|
-
ev: preflight?.
|
|
10313
|
-
ew:
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10322
|
-
f9:
|
|
10323
|
-
fa:
|
|
10324
|
-
fb:
|
|
10325
|
-
fc:
|
|
10326
|
-
fd:
|
|
10327
|
-
|
|
10328
|
-
|
|
10329
|
-
|
|
10330
|
-
|
|
10331
|
-
|
|
10332
|
-
fn:
|
|
10333
|
-
fo:
|
|
10334
|
-
|
|
10335
|
-
|
|
10336
|
-
|
|
10337
|
-
|
|
10338
|
-
|
|
10339
|
-
|
|
10340
|
-
|
|
10341
|
-
|
|
10342
|
-
|
|
10343
|
-
|
|
10344
|
-
|
|
10345
|
-
|
|
10346
|
-
|
|
10347
|
-
|
|
10348
|
-
|
|
10349
|
-
|
|
10350
|
-
|
|
10351
|
-
|
|
10352
|
-
|
|
10292
|
+
by: input.setupChange,
|
|
10293
|
+
bz: input.agentsChange,
|
|
10294
|
+
c0: input.preferred,
|
|
10295
|
+
c1: input.preferredChange,
|
|
10296
|
+
c3: input.instance,
|
|
10297
|
+
c4: input.instanceChange,
|
|
10298
|
+
c6: input.onExit,
|
|
10299
|
+
c9: $si__input_instance__OR__input_instanceChange && input.instance?.name,
|
|
10300
|
+
ca: setup,
|
|
10301
|
+
cb: setup?.agents,
|
|
10302
|
+
cd: setup?.missing,
|
|
10303
|
+
cf: ignoredSso,
|
|
10304
|
+
cg: readIgnoredSso,
|
|
10305
|
+
ch: usage,
|
|
10306
|
+
ci: usage?.agents,
|
|
10307
|
+
cj: usage?.error,
|
|
10308
|
+
ck: error,
|
|
10309
|
+
cm: active,
|
|
10310
|
+
cn: active?.size,
|
|
10311
|
+
cp: bulk?.action,
|
|
10312
|
+
cq: bulk?.done,
|
|
10313
|
+
cr: bulk?.total,
|
|
10314
|
+
cs: authCodes,
|
|
10315
|
+
ct: versionPick,
|
|
10316
|
+
cu: versionPick?.label,
|
|
10317
|
+
cv: versionPick?.newest,
|
|
10318
|
+
cw: versionPick?.current,
|
|
10319
|
+
cx: hostInput,
|
|
10320
|
+
cy: addingHost,
|
|
10321
|
+
cz: hostBusy,
|
|
10322
|
+
d0: query,
|
|
10323
|
+
d1: hits,
|
|
10324
|
+
d2: hits?.length,
|
|
10325
|
+
d3: self,
|
|
10326
|
+
d4: self?.install,
|
|
10327
|
+
d5: self?.latest,
|
|
10328
|
+
d6: self?.version,
|
|
10329
|
+
d7: selfUpdating,
|
|
10330
|
+
da: searching,
|
|
10331
|
+
dc: searchTimer.id,
|
|
10332
|
+
de: skills,
|
|
10333
|
+
df: skills?.global,
|
|
10334
|
+
dg: skills?.global?.length,
|
|
10335
|
+
dh: skills?.available,
|
|
10336
|
+
dk: skillQuery,
|
|
10337
|
+
dl: skillHits,
|
|
10338
|
+
dm: skillHits?.length,
|
|
10339
|
+
dn: skillSearching,
|
|
10340
|
+
dp: skillTimer.id,
|
|
10341
|
+
dr: machineOpen,
|
|
10342
|
+
ds: skillsOpen,
|
|
10343
|
+
dt: addingSkill,
|
|
10344
|
+
du: addingTool,
|
|
10345
|
+
dv: setThemeMode,
|
|
10346
|
+
dz: applySetup,
|
|
10347
|
+
e1: syncAgents,
|
|
10348
|
+
e2: retryWhenBack,
|
|
10349
|
+
e3: loadSetup,
|
|
10350
|
+
e4: loadSelf,
|
|
10351
|
+
e6: updateSelf,
|
|
10352
|
+
e7: loadUsage,
|
|
10353
|
+
e9: refresh,
|
|
10354
|
+
ea: refreshUsage,
|
|
10355
|
+
eb: setActive,
|
|
10356
|
+
ed: run,
|
|
10357
|
+
ef: skillSeq.applied,
|
|
10358
|
+
eg: skillSeq.issued,
|
|
10359
|
+
eh: applySkills,
|
|
10360
|
+
ek: loadSkills,
|
|
10361
|
+
el: runSkill,
|
|
10362
|
+
em: backupBusy,
|
|
10363
|
+
en: backupLine,
|
|
10364
|
+
eo: preflight,
|
|
10365
|
+
er: preflight?.contents?.workspaces,
|
|
10366
|
+
es: preflight?.contents?.archived,
|
|
10367
|
+
et: preflight?.contents?.tools,
|
|
10368
|
+
eu: preflight?.contents?.skills,
|
|
10369
|
+
ev: preflight?.contents?.agents,
|
|
10370
|
+
ew: preflight?.unpushed,
|
|
10371
|
+
ex: preflight?.files,
|
|
10372
|
+
ey: preflight?.workspaces,
|
|
10373
|
+
ez: restorePreview,
|
|
10374
|
+
f1: restoreWs,
|
|
10375
|
+
f2: restoreWs?.size,
|
|
10376
|
+
f3: restoreParts,
|
|
10377
|
+
f5: restoreDone,
|
|
10378
|
+
f7: downloadManifest,
|
|
10379
|
+
f9: startExport,
|
|
10380
|
+
fa: pickRestoreFile,
|
|
10381
|
+
fb: toggleRestoreWs,
|
|
10382
|
+
fc: runRestore,
|
|
10383
|
+
fd: searchSkills,
|
|
10384
|
+
fe: changeHost,
|
|
10385
|
+
ff: runEach,
|
|
10386
|
+
fg: setPreferred,
|
|
10387
|
+
fj: saveTimer.id,
|
|
10388
|
+
fl: setInstance,
|
|
10389
|
+
fn: setEnabled,
|
|
10390
|
+
fo: search,
|
|
10391
|
+
fp: outdated,
|
|
10392
|
+
fq: aliasPin,
|
|
10393
|
+
fr: tools,
|
|
10394
|
+
ft: missingInstallable,
|
|
10395
|
+
fu: missingInstallable?.length,
|
|
10396
|
+
fw: outdatedIds,
|
|
10397
|
+
fx: outdatedIds?.length,
|
|
10398
|
+
fy: activeLine,
|
|
10399
|
+
fz: families,
|
|
10400
|
+
g1: families.length,
|
|
10401
|
+
g3: instanceIds,
|
|
10402
|
+
g5: accountsFor,
|
|
10403
|
+
g6: strayAccountsFor,
|
|
10404
|
+
ge: $si__input_instance__OR__input_instanceChange && accent,
|
|
10405
|
+
gk: restorePreview?.preview?.from?.host,
|
|
10406
|
+
gl: restorePreview?.preview?.from?.exportedAt,
|
|
10407
|
+
gm: restorePreview?.preview?.from?.version,
|
|
10408
|
+
gn: restorePreview?.preview?.workspaces,
|
|
10409
|
+
go: restorePreview?.preview?.workspaces?.length,
|
|
10410
|
+
gp: restorePreview?.preview?.tools,
|
|
10411
|
+
gq: restorePreview?.preview?.skills,
|
|
10412
|
+
gr: restorePreview?.preview?.agents,
|
|
10413
|
+
gs: restorePreview?.preview?.hosts,
|
|
10414
|
+
gt: restorePreview?.preview?.settings,
|
|
10415
|
+
h0: $refreshing__closures,
|
|
10353
10416
|
d: _serialize_if($scope0_reason, 1) && _existing_scope($childScope2),
|
|
10354
|
-
|
|
10355
|
-
|
|
10356
|
-
|
|
10357
|
-
|
|
10358
|
-
|
|
10359
|
-
|
|
10360
|
-
|
|
10361
|
-
|
|
10362
|
-
|
|
10363
|
-
|
|
10417
|
+
gw: $setup_missing__closures,
|
|
10418
|
+
gz: $error__closures,
|
|
10419
|
+
hj: $self_latest__closures,
|
|
10420
|
+
hk: $self_version__closures,
|
|
10421
|
+
h1: $active__closures,
|
|
10422
|
+
gu: $si__input_preferred && $input_preferred__closures,
|
|
10423
|
+
il: $accountsFor2__closures,
|
|
10424
|
+
h6: $authCodes__closures,
|
|
10425
|
+
hy: $si__input_setupChange && $refresh2__closures,
|
|
10426
|
+
hz: $run2__closures,
|
|
10364
10427
|
a8: _existing_scope($childScope14),
|
|
10365
|
-
|
|
10366
|
-
|
|
10367
|
-
|
|
10368
|
-
|
|
10369
|
-
|
|
10370
|
-
|
|
10428
|
+
hs: $skillQuery__closures,
|
|
10429
|
+
ht: $skillHits__closures,
|
|
10430
|
+
hu: $skillHits_length__closures,
|
|
10431
|
+
hv: $skillSearching__closures,
|
|
10432
|
+
ho: $skills__closures,
|
|
10433
|
+
hr: $skills_available__closures,
|
|
10371
10434
|
ag: _existing_scope($childScope18),
|
|
10372
|
-
|
|
10373
|
-
|
|
10374
|
-
|
|
10375
|
-
hg: $
|
|
10376
|
-
|
|
10377
|
-
|
|
10378
|
-
|
|
10379
|
-
|
|
10380
|
-
|
|
10381
|
-
|
|
10382
|
-
|
|
10383
|
-
|
|
10435
|
+
h2: $active_size__closures,
|
|
10436
|
+
he: $query__closures,
|
|
10437
|
+
hf: $hits__closures,
|
|
10438
|
+
hg: $hits_length__closures,
|
|
10439
|
+
hn: $searching__closures,
|
|
10440
|
+
hi: $self_install__closures,
|
|
10441
|
+
hl: $selfUpdating__closures,
|
|
10442
|
+
i6: $preflight_unpushed__closures,
|
|
10443
|
+
i7: $preflight_files__closures,
|
|
10444
|
+
i9: $restoreWs__closures,
|
|
10445
|
+
ir: $preview_workspaces__closures,
|
|
10446
|
+
ix: $preview_settings__closures,
|
|
10447
|
+
ib: $restoreParts__closures
|
|
10384
10448
|
});
|
|
10385
10449
|
_resume_branch($scope0_id);
|
|
10386
10450
|
});
|
|
@@ -10428,13 +10492,13 @@ function vapidKey(base64) {
|
|
|
10428
10492
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10429
10493
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10430
10494
|
}
|
|
10431
|
-
var iconBtn = "
|
|
10432
|
-
var settingsDot = "
|
|
10433
|
-
var navToggle = "
|
|
10495
|
+
var iconBtn = "_bQ _l";
|
|
10496
|
+
var settingsDot = "_bR _bb";
|
|
10497
|
+
var navToggle = "_bV _l";
|
|
10434
10498
|
//#endregion
|
|
10435
10499
|
//#region src/styles/session-pop.css.ts
|
|
10436
|
-
var sessionPop = "
|
|
10437
|
-
var sessionPopBtn = "
|
|
10500
|
+
var sessionPop = "_bN _9";
|
|
10501
|
+
var sessionPopBtn = "_bO _I";
|
|
10438
10502
|
_template("W", (input) => {
|
|
10439
10503
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10440
10504
|
const $scope0_id = _scope_id();
|
|
@@ -10488,14 +10552,14 @@ function activeAgent(session) {
|
|
|
10488
10552
|
const command = session.state?.command?.trim();
|
|
10489
10553
|
return command && agentFromCommand(command) || session.agent;
|
|
10490
10554
|
}
|
|
10491
|
-
var heroTag = "
|
|
10492
|
-
var rowState = "
|
|
10493
|
-
var prChip = "
|
|
10494
|
-
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";
|
|
10495
10559
|
var prState = {
|
|
10496
|
-
open: "
|
|
10497
|
-
merged: "
|
|
10498
|
-
closed: "
|
|
10560
|
+
open: "_iA",
|
|
10561
|
+
merged: "_iB",
|
|
10562
|
+
closed: "_iC"
|
|
10499
10563
|
};
|
|
10500
10564
|
//#endregion
|
|
10501
10565
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10576,7 +10640,7 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10576
10640
|
const name = repo.full_name.split("/").at(-1);
|
|
10577
10641
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10578
10642
|
}, "B3", $scope1_id);
|
|
10579
|
-
_html(`<div${_attr_class("
|
|
10643
|
+
_html(`<div${_attr_class("_it")}>`);
|
|
10580
10644
|
_for_of(repos, (repo) => {
|
|
10581
10645
|
const $scope2_id = _scope_id();
|
|
10582
10646
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10592,11 +10656,11 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10592
10656
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10593
10657
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10594
10658
|
}
|
|
10595
|
-
])}${_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")}`);
|
|
10596
10660
|
_if(() => {
|
|
10597
10661
|
if (open) {
|
|
10598
10662
|
const $scope4_id = _scope_id();
|
|
10599
|
-
_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`)}>`);
|
|
10600
10664
|
icon_diff_default({ size: 12 });
|
|
10601
10665
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10602
10666
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10604,9 +10668,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10604
10668
|
} else {
|
|
10605
10669
|
const $scope5_id = _scope_id();
|
|
10606
10670
|
_html(`<button type=button${_attr_class([
|
|
10607
|
-
"
|
|
10608
|
-
"
|
|
10609
|
-
"
|
|
10671
|
+
"_ix",
|
|
10672
|
+
"_iy",
|
|
10673
|
+
"_iz"
|
|
10610
10674
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10611
10675
|
icon_xmark_default({ size: 12 });
|
|
10612
10676
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
@@ -10634,12 +10698,12 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10634
10698
|
_if(() => {
|
|
10635
10699
|
if (dead.has(p.port)) {
|
|
10636
10700
|
const $scope7_id = _scope_id();
|
|
10637
|
-
_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")}`);
|
|
10638
10702
|
_subscribe($dead__closures, writeScope($scope7_id, { Cy: 1 }));
|
|
10639
10703
|
return 0;
|
|
10640
10704
|
} else {
|
|
10641
10705
|
const $scope8_id = _scope_id();
|
|
10642
|
-
_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")}`);
|
|
10643
10707
|
_script($scope8_id, "B6");
|
|
10644
10708
|
writeScope($scope8_id, {});
|
|
10645
10709
|
return 1;
|
|
@@ -10648,9 +10712,9 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10648
10712
|
const $childScope = _peek_scope_id();
|
|
10649
10713
|
arm_button_default({
|
|
10650
10714
|
class: [
|
|
10651
|
-
"
|
|
10652
|
-
"
|
|
10653
|
-
"
|
|
10715
|
+
"_ix",
|
|
10716
|
+
"_iy",
|
|
10717
|
+
"_iz"
|
|
10654
10718
|
],
|
|
10655
10719
|
title: `Kill ${p.cmd} (pid ${p.pid})`,
|
|
10656
10720
|
armedTitle: "Kill?",
|
|
@@ -10697,12 +10761,12 @@ var side_nav_chips_default = _template("B", (input) => {
|
|
|
10697
10761
|
});
|
|
10698
10762
|
_resume_branch($scope0_id);
|
|
10699
10763
|
});
|
|
10700
|
-
var railBtn = "
|
|
10701
|
-
var wsBtn = "
|
|
10702
|
-
var rowIcon = "
|
|
10703
|
-
var close = "
|
|
10704
|
-
var sessRename$1 = "
|
|
10705
|
-
var sessBtn$1 = "
|
|
10764
|
+
var railBtn = "_fl _l";
|
|
10765
|
+
var wsBtn = "_fp _I";
|
|
10766
|
+
var rowIcon = "_fs _3 _l";
|
|
10767
|
+
var close = "_ft _6 _l _7";
|
|
10768
|
+
var sessRename$1 = "_fz _J";
|
|
10769
|
+
var sessBtn$1 = "_fB _I";
|
|
10706
10770
|
//#endregion
|
|
10707
10771
|
//#region src/tags/icons/icon-manage.marko
|
|
10708
10772
|
var icon_manage_default = _template("jb", (input) => {
|
|
@@ -10817,7 +10881,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10817
10881
|
_if(() => {
|
|
10818
10882
|
if (input.rail) {
|
|
10819
10883
|
const $scope2_id = _scope_id();
|
|
10820
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10884
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fi"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 18))}<span${_attr_class([
|
|
10821
10885
|
"_A",
|
|
10822
10886
|
phase[dot$1],
|
|
10823
10887
|
"_bb"
|
|
@@ -10827,31 +10891,31 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10827
10891
|
} else if (ws$1.pending) {
|
|
10828
10892
|
const $scope3_id = _scope_id();
|
|
10829
10893
|
_html(`<section${_attr_class([
|
|
10830
|
-
"
|
|
10831
|
-
"
|
|
10832
|
-
{ ["
|
|
10833
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10894
|
+
"_fn",
|
|
10895
|
+
"_fD",
|
|
10896
|
+
{ ["_fm"]: input.page }
|
|
10897
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fo")}><div${_attr_class(wsBtn)}>`);
|
|
10834
10898
|
_if(() => {
|
|
10835
10899
|
if (ws$1.pending_error) {
|
|
10836
10900
|
const $scope11_id = _scope_id();
|
|
10837
10901
|
icon_warning_default({
|
|
10838
10902
|
size: 12,
|
|
10839
|
-
class: "
|
|
10903
|
+
class: "_fF"
|
|
10840
10904
|
});
|
|
10841
10905
|
$si__input_workspace && writeScope($scope11_id, {});
|
|
10842
10906
|
return 0;
|
|
10843
10907
|
} else {
|
|
10844
10908
|
const $scope12_id = _scope_id();
|
|
10845
|
-
_html(`<span${_attr_class(["_G", "
|
|
10909
|
+
_html(`<span${_attr_class(["_G", "_fE"])}></span>`);
|
|
10846
10910
|
$si__input_workspace && writeScope($scope12_id, {});
|
|
10847
10911
|
return 1;
|
|
10848
10912
|
}
|
|
10849
10913
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10850
|
-
_html(`<span${_attr_class("
|
|
10914
|
+
_html(`<span${_attr_class("_fv")}><span${_attr_class("_fw")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fH")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
|
|
10851
10915
|
_if(() => {
|
|
10852
10916
|
if (ws$1.pending_error && !retrying) {
|
|
10853
10917
|
const $scope10_id = _scope_id();
|
|
10854
|
-
_html(`<div${_attr_class("
|
|
10918
|
+
_html(`<div${_attr_class("_fG")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope10_id, "b")}`);
|
|
10855
10919
|
arm_button_default({
|
|
10856
10920
|
class: ["_q", btnSm],
|
|
10857
10921
|
title: "Delete workspace",
|
|
@@ -10882,11 +10946,11 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10882
10946
|
const $scope4_id = _scope_id();
|
|
10883
10947
|
const sessions$1 = input.sessions || [];
|
|
10884
10948
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10885
|
-
_html(`<section${_attr_class(["
|
|
10886
|
-
["
|
|
10949
|
+
_html(`<section${_attr_class(["_fn", {
|
|
10950
|
+
["_fi"]: input.current,
|
|
10887
10951
|
["_bc"]: input.current,
|
|
10888
|
-
["
|
|
10889
|
-
}])}><div${_attr_class("
|
|
10952
|
+
["_fk"]: input.menuOpen
|
|
10953
|
+
}])}><div${_attr_class("_fo")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class(["_A", phase[dot$1]])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10890
10954
|
_if(() => {
|
|
10891
10955
|
if (sessions$1.length === 1) {
|
|
10892
10956
|
const $scope14_id = _scope_id();
|
|
@@ -10898,7 +10962,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10898
10962
|
icon_agent_default({
|
|
10899
10963
|
agent: activeAgent(sessions$1[0]),
|
|
10900
10964
|
size: 12,
|
|
10901
|
-
class: "
|
|
10965
|
+
class: "_fu"
|
|
10902
10966
|
});
|
|
10903
10967
|
$si__input_sessions && writeScope($scope14_id, {
|
|
10904
10968
|
_: _scope_with_id($scope4_id),
|
|
@@ -10907,7 +10971,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10907
10971
|
return 0;
|
|
10908
10972
|
}
|
|
10909
10973
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview);
|
|
10910
|
-
_html(`<span${_attr_class("
|
|
10974
|
+
_html(`<span${_attr_class("_fv")}><span${_attr_class("_fw")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span></span> </a>${_el_resume($scope4_id, "c", $sg__input_workspace)}<div${_attr_class("_fq")}>`);
|
|
10911
10975
|
_if(() => {
|
|
10912
10976
|
if (input.onNewSession) {
|
|
10913
10977
|
const $scope5_id = _scope_id();
|
|
@@ -10935,19 +10999,19 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10935
10999
|
return 0;
|
|
10936
11000
|
}
|
|
10937
11001
|
}, $scope4_id, "k", $sg__input_onReview, $sg__input_onReview, $sg__input_sessions__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10938
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
11002
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fj"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10939
11003
|
icon_manage_default({ size: 12 });
|
|
10940
|
-
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("
|
|
11004
|
+
_html(`</a>${_el_resume($scope4_id, "l", _serialize_guard($scope0_reason, 4))}</div></div><div${_attr_class("_fA")}>`);
|
|
10941
11005
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10942
11006
|
const $scope6_id = _scope_id();
|
|
10943
|
-
_html(`<div${_attr_class(["
|
|
11007
|
+
_html(`<div${_attr_class(["_fr", { ["_fi"]: s.id === input.currentTab }])}>`);
|
|
10944
11008
|
_if(() => {
|
|
10945
11009
|
if (renamingId === s.id) {
|
|
10946
11010
|
const $scope7_id = _scope_id();
|
|
10947
11011
|
_html(`<span${_attr_class([
|
|
10948
11012
|
"_A",
|
|
10949
11013
|
phase[sessionPhase(s.state)],
|
|
10950
|
-
"
|
|
11014
|
+
"_fy"
|
|
10951
11015
|
])}></span>${_el_resume($scope7_id, "a", $sg__input_sessions)}`);
|
|
10952
11016
|
_set_serialize_reason({
|
|
10953
11017
|
1: $sg__input_sessions,
|
|
@@ -10957,7 +11021,7 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10957
11021
|
icon_agent_default({
|
|
10958
11022
|
agent: activeAgent(s),
|
|
10959
11023
|
size: 12,
|
|
10960
|
-
class: "
|
|
11024
|
+
class: "_fC"
|
|
10961
11025
|
});
|
|
10962
11026
|
const $childScope3 = _peek_scope_id();
|
|
10963
11027
|
rename_input_default({
|
|
@@ -10988,9 +11052,9 @@ var side_nav_item_default = _template("C", (input) => {
|
|
|
10988
11052
|
icon_agent_default({
|
|
10989
11053
|
agent: activeAgent(s),
|
|
10990
11054
|
size: 12,
|
|
10991
|
-
class: "
|
|
11055
|
+
class: "_fC"
|
|
10992
11056
|
});
|
|
10993
|
-
_html(`<span${_attr_class("
|
|
11057
|
+
_html(`<span${_attr_class("_fx")}>${_text_resume($scope8_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope8_id, "a", _serialize_guard($scope0_reason, 3))}<button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10994
11058
|
icon_edit_default({ size: 12 });
|
|
10995
11059
|
_html(`</button>${_el_resume($scope8_id, "f")}`);
|
|
10996
11060
|
arm_button_default({
|
|
@@ -11113,11 +11177,11 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11113
11177
|
const sessions = input.sessions || st?.sessions || [];
|
|
11114
11178
|
const manySessions = sessions.length > 1;
|
|
11115
11179
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11116
|
-
_html(`<div${_attr_class("
|
|
11180
|
+
_html(`<div${_attr_class("_eQ")}>`);
|
|
11117
11181
|
_if(() => {
|
|
11118
11182
|
if (ws) {
|
|
11119
11183
|
const $scope1_id = _scope_id();
|
|
11120
|
-
_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))}`);
|
|
11121
11185
|
_if(() => {
|
|
11122
11186
|
if (sessions.length === 1) {
|
|
11123
11187
|
const $scope8_id = _scope_id();
|
|
@@ -11129,7 +11193,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11129
11193
|
icon_agent_default({
|
|
11130
11194
|
agent: activeAgent(sessions[0]),
|
|
11131
11195
|
size: 16,
|
|
11132
|
-
class: "
|
|
11196
|
+
class: "_eW"
|
|
11133
11197
|
});
|
|
11134
11198
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11135
11199
|
_: _scope_with_id($scope1_id),
|
|
@@ -11138,14 +11202,14 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11138
11202
|
return 0;
|
|
11139
11203
|
}
|
|
11140
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);
|
|
11141
|
-
_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)}`);
|
|
11142
11206
|
_if(() => {
|
|
11143
11207
|
if (manySessions) {
|
|
11144
11208
|
const $scope2_id = _scope_id();
|
|
11145
|
-
_html(`<div${_attr_class("
|
|
11209
|
+
_html(`<div${_attr_class("_eX")}>`);
|
|
11146
11210
|
_for_of(sessions, (s) => {
|
|
11147
11211
|
const $scope3_id = _scope_id();
|
|
11148
|
-
_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)}`);
|
|
11149
11213
|
_set_serialize_reason({
|
|
11150
11214
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11151
11215
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11155,7 +11219,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11155
11219
|
agent: activeAgent(s),
|
|
11156
11220
|
size: 14
|
|
11157
11221
|
});
|
|
11158
|
-
_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))}`);
|
|
11159
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, {
|
|
11160
11224
|
h: $si__input_tab && s?.id,
|
|
11161
11225
|
_: _scope_with_id($scope2_id),
|
|
@@ -11184,7 +11248,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11184
11248
|
_if(() => {
|
|
11185
11249
|
if (input.ids.length) {
|
|
11186
11250
|
const $scope4_id = _scope_id();
|
|
11187
|
-
_html(`<div${_attr_class("
|
|
11251
|
+
_html(`<div${_attr_class("_e1")}>`);
|
|
11188
11252
|
_for_of(input.ids, (id) => {
|
|
11189
11253
|
const $scope5_id = _scope_id();
|
|
11190
11254
|
const w = input.byId.get(id);
|
|
@@ -11228,7 +11292,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11228
11292
|
const rp = phaseOf(rs);
|
|
11229
11293
|
const rowSessions = rs?.sessions || [];
|
|
11230
11294
|
const many = rowSessions.length > 1;
|
|
11231
|
-
_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)}`);
|
|
11232
11296
|
_if(() => {
|
|
11233
11297
|
if (rowSessions.length === 1) {
|
|
11234
11298
|
const $scope9_id = _scope_id();
|
|
@@ -11240,7 +11304,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11240
11304
|
icon_agent_default({
|
|
11241
11305
|
agent: activeAgent(rowSessions[0]),
|
|
11242
11306
|
size: 16,
|
|
11243
|
-
class: "
|
|
11307
|
+
class: "_e5"
|
|
11244
11308
|
});
|
|
11245
11309
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11246
11310
|
_: _scope_with_id($scope7_id),
|
|
@@ -11249,7 +11313,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11249
11313
|
return 0;
|
|
11250
11314
|
}
|
|
11251
11315
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11252
|
-
_html(`<span${_attr_class("
|
|
11316
|
+
_html(`<span${_attr_class("_e4")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11253
11317
|
_if(() => {
|
|
11254
11318
|
if (many) {
|
|
11255
11319
|
const $scope10_id = _scope_id();
|
|
@@ -11260,7 +11324,7 @@ var workspace_switcher_default = _template("N", (input) => {
|
|
|
11260
11324
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11261
11325
|
icon_chevron_right_default({
|
|
11262
11326
|
size: 14,
|
|
11263
|
-
class: "
|
|
11327
|
+
class: "_e7"
|
|
11264
11328
|
});
|
|
11265
11329
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11266
11330
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11380,13 +11444,13 @@ var usage_bars_default = _template("J", (input) => {
|
|
|
11380
11444
|
if (windows.length) {
|
|
11381
11445
|
const $scope1_id = _scope_id();
|
|
11382
11446
|
_html(`<span${_attr_class([
|
|
11383
|
-
"
|
|
11447
|
+
"_hK",
|
|
11384
11448
|
input.class,
|
|
11385
|
-
{ ["
|
|
11449
|
+
{ ["_hL"]: agent.stale_seconds != null }
|
|
11386
11450
|
])} role=img${_attr("aria-label", `Plan usage: ${summary}`)}${agent.stale_seconds != null ? _attr("title", `${summary} — ${agent.note || "provider unreachable"}; last cached numbers`) : _attr("title", summary)}>`);
|
|
11387
11451
|
_for_of(windows, (win) => {
|
|
11388
11452
|
const $scope2_id = _scope_id();
|
|
11389
|
-
_html(`<span${_attr_class(["
|
|
11453
|
+
_html(`<span${_attr_class(["_hM", win.used_percent >= 90 ? "_hQ" : win.used_percent >= 70 ? "_hP" : win.used_percent >= 40 ? "_hO" : "_hN"])}${_attr_style(`--pct:${Math.max(2, Math.min(100, win.used_percent))}%`)}></span>${_el_resume($scope2_id, "a", $sg__input_agent)}`);
|
|
11390
11454
|
$si__input_agent && writeScope($scope2_id, {});
|
|
11391
11455
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
11392
11456
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -11418,7 +11482,7 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11418
11482
|
const plan = openSess ? usageFor$1(openSess.agent, usage) : null;
|
|
11419
11483
|
const all = usage?.agents || [];
|
|
11420
11484
|
const peak = Math.max(0, ...(plan?.windows || []).map((w) => w.used_percent));
|
|
11421
|
-
const ringTone = _resume((pct) => pct >= 90 ? "
|
|
11485
|
+
const ringTone = _resume((pct) => pct >= 90 ? "_eP" : pct >= 70 ? "_eO" : pct >= 40 ? "_eN" : "_eM", "r0");
|
|
11422
11486
|
let card$2 = null;
|
|
11423
11487
|
const showCard = _resume((el) => {
|
|
11424
11488
|
const r = el.getBoundingClientRect();
|
|
@@ -11430,18 +11494,18 @@ var nav_usage_default = _template("r", (input) => {
|
|
|
11430
11494
|
_if(() => {
|
|
11431
11495
|
if (plan) {
|
|
11432
11496
|
const $scope1_id = _scope_id();
|
|
11433
|
-
_html(`<span${_attr_class("
|
|
11497
|
+
_html(`<span${_attr_class("_eG")} tabindex=0>`);
|
|
11434
11498
|
_set_serialize_reason(1);
|
|
11435
11499
|
const $childScope = _peek_scope_id();
|
|
11436
11500
|
usage_bars_default({
|
|
11437
|
-
class: "
|
|
11501
|
+
class: "_eI",
|
|
11438
11502
|
agent: plan
|
|
11439
11503
|
});
|
|
11440
|
-
_html(`<svg${_attr_class(["
|
|
11504
|
+
_html(`<svg${_attr_class(["_eJ", ringTone(peak)])} viewBox="0 0 16 16" width=16 height=16 aria-hidden=true><circle${_attr_class("_eK")} cx=8 cy=8 r=6.5></circle><circle${_attr_class("_eL")} cx=8 cy=8 r=6.5${_attr_style(`stroke-dasharray:${Math.max(2, Math.min(100, peak)) / 100 * 40.84} 40.84`)}></circle>${_el_resume($scope1_id, "e")}</svg>${_el_resume($scope1_id, "c")}</span>${_el_resume($scope1_id, "a")}`);
|
|
11441
11505
|
_if(() => {
|
|
11442
11506
|
if (card$2) {
|
|
11443
11507
|
const $scope2_id = _scope_id();
|
|
11444
|
-
_html(`<div${_attr_class(["_9", "
|
|
11508
|
+
_html(`<div${_attr_class(["_9", "_eH"])}${_attr_style(`left:${card$2.left}px;bottom:${card$2.bottom}px`)} role=tooltip>`);
|
|
11445
11509
|
_for_of(all, (a) => {
|
|
11446
11510
|
const $scope3_id = _scope_id();
|
|
11447
11511
|
_set_serialize_reason(6);
|
|
@@ -11538,14 +11602,14 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11538
11602
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11539
11603
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11540
11604
|
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11541
|
-
_html(`<aside${_attr_class(["
|
|
11542
|
-
["
|
|
11543
|
-
["
|
|
11605
|
+
_html(`<aside${_attr_class(["_bU", {
|
|
11606
|
+
["_bS"]: !navOpen,
|
|
11607
|
+
["_bT"]: isPage
|
|
11544
11608
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11545
11609
|
_if(() => {
|
|
11546
11610
|
if (isPage) {
|
|
11547
11611
|
const $scope1_id = _scope_id();
|
|
11548
|
-
_html(`<div${_attr_class("
|
|
11612
|
+
_html(`<div${_attr_class("_bX")}>`);
|
|
11549
11613
|
_set_serialize_reason({
|
|
11550
11614
|
3: $sg__input_instanceName,
|
|
11551
11615
|
6: $sg__input_instanceName
|
|
@@ -11554,7 +11618,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11554
11618
|
if (input.instanceName) $meta = attrTag({ content: _content_resume("D8", () => {
|
|
11555
11619
|
_scope_reason();
|
|
11556
11620
|
const $scope2_id = _scope_id();
|
|
11557
|
-
_html(`<span${_attr_class("
|
|
11621
|
+
_html(`<span${_attr_class("_bY")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}${_text_resume($scope2_id, "c", input.instanceName, $sg__input_instanceName)}</span>`);
|
|
11558
11622
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11559
11623
|
_resume_branch($scope2_id);
|
|
11560
11624
|
}, $scope1_id) });
|
|
@@ -11569,7 +11633,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11569
11633
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11570
11634
|
iconBtnRow,
|
|
11571
11635
|
iconBtn,
|
|
11572
|
-
{ ["
|
|
11636
|
+
{ ["_bP"]: view === "settings" }
|
|
11573
11637
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11574
11638
|
icon_settings_default({ size: 16 });
|
|
11575
11639
|
_if(() => {
|
|
@@ -11593,7 +11657,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11593
11657
|
_if(() => {
|
|
11594
11658
|
if (!isPage && input.instanceName) {
|
|
11595
11659
|
const $scope4_id = _scope_id();
|
|
11596
|
-
_html(`<div${_attr_class("
|
|
11660
|
+
_html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope4_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope4_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11597
11661
|
writeScope($scope4_id, {});
|
|
11598
11662
|
return 0;
|
|
11599
11663
|
}
|
|
@@ -11661,7 +11725,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11661
11725
|
b: _serialize_if($scope0_reason, 21) && _existing_scope($childScope3)
|
|
11662
11726
|
});
|
|
11663
11727
|
}, (a) => a, $scope6_id, "a", $sg__input_agents, 1, $sg__input_workspace__OR__input_allWorkspaces__OR__input_agents, "</div>", 1);
|
|
11664
|
-
_html(`<div${_attr_class("
|
|
11728
|
+
_html(`<div${_attr_class("_b3")}>`);
|
|
11665
11729
|
_for_of(orderedIds, (wsId) => {
|
|
11666
11730
|
const $scope8_id = _scope_id();
|
|
11667
11731
|
_set_serialize_reason({
|
|
@@ -11738,7 +11802,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11738
11802
|
_if(() => {
|
|
11739
11803
|
if (!navOpen) {
|
|
11740
11804
|
const $scope9_id = _scope_id();
|
|
11741
|
-
_html(`<div${_attr_class("
|
|
11805
|
+
_html(`<div${_attr_class("_b4")}>`);
|
|
11742
11806
|
_for_of(orderedIds, (wsId, i) => {
|
|
11743
11807
|
const $scope10_id = _scope_id();
|
|
11744
11808
|
_set_serialize_reason({
|
|
@@ -11786,14 +11850,14 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11786
11850
|
return 0;
|
|
11787
11851
|
}
|
|
11788
11852
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
11789
|
-
_html(`<div${_attr_class("
|
|
11853
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11790
11854
|
_if(() => {
|
|
11791
11855
|
if (isPage) {
|
|
11792
11856
|
const $scope12_id = _scope_id();
|
|
11793
11857
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
11794
11858
|
"_q",
|
|
11795
11859
|
btnLg,
|
|
11796
|
-
"
|
|
11860
|
+
"_bZ"
|
|
11797
11861
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11798
11862
|
icon_folder_plus_default({ size: 16 });
|
|
11799
11863
|
_html(` New workspace</a>${_el_resume($scope12_id, "a")}`);
|
|
@@ -11825,9 +11889,9 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11825
11889
|
sessions: input.sessions,
|
|
11826
11890
|
tab: view === "term" ? tab : null
|
|
11827
11891
|
});
|
|
11828
|
-
_html(`<div${_attr_class(["_z", "
|
|
11892
|
+
_html(`<div${_attr_class(["_z", "_b6"])}></div>`);
|
|
11829
11893
|
_if(() => {}, $scope11_id, "d", 1, 1, 1, 0, 1);
|
|
11830
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11894
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bP"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11831
11895
|
icon_settings_default({});
|
|
11832
11896
|
_if(() => {
|
|
11833
11897
|
if (input.setupReady === false) {
|
|
@@ -11837,7 +11901,7 @@ var side_nav_default = _template("D", (input) => {
|
|
|
11837
11901
|
return 0;
|
|
11838
11902
|
}
|
|
11839
11903
|
}, $scope11_id, "g", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11840
|
-
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11904
|
+
_html(`</a>${_el_resume($scope11_id, "e")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bP"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11841
11905
|
icon_folder_plus_default({ size: 16 });
|
|
11842
11906
|
_html(`</a>${_el_resume($scope11_id, "h")}`);
|
|
11843
11907
|
_script($scope11_id, "D13");
|
|
@@ -12859,7 +12923,7 @@ function indent(text) {
|
|
|
12859
12923
|
return text.split("\n").map((line) => line ? ` ${line}` : line).join("\n");
|
|
12860
12924
|
}
|
|
12861
12925
|
var treeToggle = "_gp _4 _l";
|
|
12862
|
-
var pageTitle = "_gw
|
|
12926
|
+
var pageTitle = "_gw _c4";
|
|
12863
12927
|
//#endregion
|
|
12864
12928
|
//#region src/tags/diff-send.marko
|
|
12865
12929
|
var diff_send_default = _template("k", (input) => {
|
|
@@ -12869,7 +12933,7 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12869
12933
|
let sendTarget = null;
|
|
12870
12934
|
const sessions = input.sessions || [];
|
|
12871
12935
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12872
|
-
_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")}`);
|
|
12873
12937
|
_if(() => {
|
|
12874
12938
|
if (sessions.length === 1) {
|
|
12875
12939
|
const $scope1_id = _scope_id();
|
|
@@ -12879,11 +12943,11 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12879
12943
|
return 0;
|
|
12880
12944
|
} else if (sessions.length) {
|
|
12881
12945
|
const $scope2_id = _scope_id();
|
|
12882
|
-
_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")}`);
|
|
12883
12947
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12884
12948
|
sendTarget = _new_sendTarget;
|
|
12885
12949
|
}, "k0", $scope2_id), () => {
|
|
12886
|
-
_html(`<select${_attr_class("
|
|
12950
|
+
_html(`<select${_attr_class("_hU")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12887
12951
|
_for_of(sessions, (s) => {
|
|
12888
12952
|
const $scope3_id = _scope_id();
|
|
12889
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)}`);
|
|
@@ -12910,8 +12974,8 @@ var diff_send_default = _template("k", (input) => {
|
|
|
12910
12974
|
});
|
|
12911
12975
|
_resume_branch($scope0_id);
|
|
12912
12976
|
});
|
|
12913
|
-
var findInput = "
|
|
12914
|
-
var findIconBtn = "
|
|
12977
|
+
var findInput = "_eh _n";
|
|
12978
|
+
var findIconBtn = "_ek _l";
|
|
12915
12979
|
//#endregion
|
|
12916
12980
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
12917
12981
|
var icon_arrow_down_default = _template("Q", (input) => {
|
|
@@ -13003,18 +13067,18 @@ var diff_find_default = _template("j", (input) => {
|
|
|
13003
13067
|
}, 0);
|
|
13004
13068
|
}, "j0", $scope0_id);
|
|
13005
13069
|
_html(`<div${_attr_class([
|
|
13006
|
-
"
|
|
13007
|
-
input.keybar && "
|
|
13008
|
-
!open && "
|
|
13009
|
-
])} 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>`);
|
|
13010
13074
|
icon_search_default({ size: 13 });
|
|
13011
13075
|
_html(`</span><input${_attr_input_value($scope0_id, "d", query || "", _resume(function(v) {
|
|
13012
13076
|
type(v);
|
|
13013
|
-
}, "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"}>`);
|
|
13014
13078
|
icon_arrow_up_default({ size: 14 });
|
|
13015
|
-
_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"}>`);
|
|
13016
13080
|
icon_arrow_down_default({ size: 14 });
|
|
13017
|
-
_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"}>`);
|
|
13018
13082
|
icon_xmark_default({ size: 14 });
|
|
13019
13083
|
_html(`</button>${_el_resume($scope0_id, "k")}</div>${_el_resume($scope0_id, "a")}`);
|
|
13020
13084
|
const $return = focusInput;
|
|
@@ -13114,8 +13178,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13114
13178
|
}
|
|
13115
13179
|
return shortHeadFallback(head);
|
|
13116
13180
|
}
|
|
13117
|
-
var repoWorktree = "
|
|
13118
|
-
var repoTitle = "
|
|
13181
|
+
var repoWorktree = "_jg _y";
|
|
13182
|
+
var repoTitle = "_jm _x";
|
|
13119
13183
|
//#endregion
|
|
13120
13184
|
//#region src/tags/review-head.marko
|
|
13121
13185
|
var review_head_default = _template("x", (input) => {
|
|
@@ -13123,7 +13187,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13123
13187
|
const $scope0_id = _scope_id();
|
|
13124
13188
|
const repo = input.repo;
|
|
13125
13189
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13126
|
-
_html(`<div${_attr_class("
|
|
13190
|
+
_html(`<div${_attr_class("_je")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_jf")} title="Scroll to this section"><span${_attr_class(repoWorktree)}>${_text_resume($scope0_id, "d", repo.worktree, $sg__input_repo)}</span></button>${_el_resume($scope0_id, "b")}`);
|
|
13127
13191
|
_if(() => {
|
|
13128
13192
|
if (repo.pr) {
|
|
13129
13193
|
const $scope6_id = _scope_id();
|
|
@@ -13132,19 +13196,19 @@ var review_head_default = _template("x", (input) => {
|
|
|
13132
13196
|
return 0;
|
|
13133
13197
|
} else {
|
|
13134
13198
|
const $scope7_id = _scope_id();
|
|
13135
|
-
_html(`<span${_attr_class([repoTitle, "
|
|
13199
|
+
_html(`<span${_attr_class([repoTitle, "_jn"])}>${_text_resume($scope7_id, "b", repoLabel$1(repo.full_name), $sg__input_repo)}</span>`);
|
|
13136
13200
|
$si__input_repo && writeScope($scope7_id, { _: _scope_with_id($scope0_id) });
|
|
13137
13201
|
return 1;
|
|
13138
13202
|
}
|
|
13139
13203
|
}, $scope0_id, "e", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew);
|
|
13140
|
-
_html(`<span${_attr_class("
|
|
13204
|
+
_html(`<span${_attr_class("_jo")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_jp"])}>${_text_resume($scope0_id, "h", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_jr"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_jq"])}>${_text_resume($scope0_id, "k", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13141
13205
|
_if(() => {
|
|
13142
13206
|
if (compare$1.topic) {
|
|
13143
13207
|
const $scope10_id = _scope_id();
|
|
13144
13208
|
_html(`<span${_attr_class([
|
|
13145
13209
|
"_N",
|
|
13146
13210
|
tone.accent,
|
|
13147
|
-
"
|
|
13211
|
+
"_js"
|
|
13148
13212
|
])}>${_text_resume($scope10_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13149
13213
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope10_id, { _: _scope_with_id($scope0_id) });
|
|
13150
13214
|
return 0;
|
|
@@ -13154,7 +13218,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13154
13218
|
_if(() => {
|
|
13155
13219
|
if (repo.rev) {
|
|
13156
13220
|
const $scope8_id = _scope_id();
|
|
13157
|
-
_html(`<span${_attr_class(["_N", "
|
|
13221
|
+
_html(`<span${_attr_class(["_N", "_jt"])} title="One commit against its parent">commit ${_text_resume($scope8_id, "b", shortSha(repo.rev, 7), $sg__input_repo * 2)}</span>`);
|
|
13158
13222
|
$si__input_repo && writeScope($scope8_id, { _: _scope_with_id($scope0_id) });
|
|
13159
13223
|
return 0;
|
|
13160
13224
|
}
|
|
@@ -13165,7 +13229,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13165
13229
|
_html(`<button type=button${_attr_class([
|
|
13166
13230
|
"_N",
|
|
13167
13231
|
tone.warn,
|
|
13168
|
-
"
|
|
13232
|
+
"_jt"
|
|
13169
13233
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope1_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope1_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope1_id, "a")}`);
|
|
13170
13234
|
_script($scope1_id, "x0");
|
|
13171
13235
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13175,7 +13239,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13175
13239
|
_if(() => {
|
|
13176
13240
|
if (repo.contained && input.fileCount) {
|
|
13177
13241
|
const $scope9_id = _scope_id();
|
|
13178
|
-
_html(`<span${_attr_class(["_N", "
|
|
13242
|
+
_html(`<span${_attr_class(["_N", "_jt"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope9_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope9_id, "a", $sg__input_repo)}`);
|
|
13179
13243
|
$si__input_repo__OR__input_fileCount && writeScope($scope9_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13180
13244
|
return 0;
|
|
13181
13245
|
}
|
|
@@ -13183,16 +13247,16 @@ var review_head_default = _template("x", (input) => {
|
|
|
13183
13247
|
_if(() => {
|
|
13184
13248
|
if (input.localDiffers) {
|
|
13185
13249
|
const $scope2_id = _scope_id();
|
|
13186
|
-
_html(`<span${_attr_class(["_N", "
|
|
13250
|
+
_html(`<span${_attr_class(["_N", "_jt"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope2_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope2_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope2_id, "a", $sg__input_repo)}`);
|
|
13187
13251
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope2_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
13188
13252
|
return 0;
|
|
13189
13253
|
}
|
|
13190
13254
|
}, $scope0_id, "p", _serialize_guard($scope0_reason, 9), _serialize_guard($scope0_reason, 14), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13191
|
-
_html(`<span${_attr_class("
|
|
13255
|
+
_html(`<span${_attr_class("_jh")}><span>${_text_resume($scope0_id, "r", input.fileCount, $sg__input_fileCount)} file${_text_resume($scope0_id, "s", input.fileCount === 1 ? "" : "s", $sg__input_fileCount * 2)}</span>`);
|
|
13192
13256
|
_if(() => {
|
|
13193
13257
|
if (input.additions || input.deletions) {
|
|
13194
13258
|
const $scope3_id = _scope_id();
|
|
13195
|
-
_html(`<span${_attr_class("
|
|
13259
|
+
_html(`<span${_attr_class("_ji")}>+${_text_resume($scope3_id, "b", input.additions, _serialize_guard($scope0_reason, 15) * 2)}</span><span${_attr_class("_jj")}>−${_text_resume($scope3_id, "d", input.deletions, _serialize_guard($scope0_reason, 16) * 2)}</span>`);
|
|
13196
13260
|
$si__input_additions__OR__input_deletions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
13197
13261
|
return 0;
|
|
13198
13262
|
}
|
|
@@ -13200,7 +13264,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13200
13264
|
_if(() => {
|
|
13201
13265
|
if (input.hiddenCount) {
|
|
13202
13266
|
const $scope4_id = _scope_id();
|
|
13203
|
-
_html(`<button type=button${_attr_class("
|
|
13267
|
+
_html(`<button type=button${_attr_class("_jl")} title="Filtered out of the list — show every file">${_text_resume($scope4_id, "b", input.hiddenCount, $sg__input_hiddenCount)} hidden</button>${_el_resume($scope4_id, "a")}`);
|
|
13204
13268
|
_script($scope4_id, "x1");
|
|
13205
13269
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13206
13270
|
return 0;
|
|
@@ -13209,7 +13273,7 @@ var review_head_default = _template("x", (input) => {
|
|
|
13209
13273
|
_if(() => {
|
|
13210
13274
|
if (input.newCount || input.onlyNew) {
|
|
13211
13275
|
const $scope5_id = _scope_id();
|
|
13212
|
-
_html(`<button type=button${_attr_class(["
|
|
13276
|
+
_html(`<button type=button${_attr_class(["_jl", { ["_jk"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope5_id, "b", input.newCount, _serialize_guard($scope0_reason, 18))} new</button>${_el_resume($scope5_id, "a")}`);
|
|
13213
13277
|
_script($scope5_id, "x2");
|
|
13214
13278
|
writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
13215
13279
|
return 0;
|
|
@@ -13325,7 +13389,7 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13325
13389
|
dragging$1 = false;
|
|
13326
13390
|
if (width != null) setDiffTreeWidth(width);
|
|
13327
13391
|
}, "y2", $scope0_id);
|
|
13328
|
-
_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")}>`);
|
|
13329
13393
|
_set_serialize_reason(2);
|
|
13330
13394
|
const $childScope = _peek_scope_id();
|
|
13331
13395
|
file_filter_default({
|
|
@@ -13334,22 +13398,22 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13334
13398
|
filter$1 = _new_filter;
|
|
13335
13399
|
}, "y3", $scope0_id)
|
|
13336
13400
|
});
|
|
13337
|
-
_html(`</div><div${_attr_class("
|
|
13401
|
+
_html(`</div><div${_attr_class("_ih")}>`);
|
|
13338
13402
|
_for_of(input.sections, (section$2) => {
|
|
13339
13403
|
const $scope1_id = _scope_id();
|
|
13340
|
-
_html(`<div${_attr_class(["
|
|
13404
|
+
_html(`<div${_attr_class(["_ij", { ["_ii"]: input.sections.length === 1 }])}${_attr("data-section", section$2.id)}>`);
|
|
13341
13405
|
_if(() => {
|
|
13342
13406
|
if (input.sections.length > 1) {
|
|
13343
13407
|
const $scope2_id = _scope_id();
|
|
13344
|
-
_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>`);
|
|
13345
13409
|
icon_chevron_right_default({ size: 12 });
|
|
13346
|
-
_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")}`);
|
|
13347
13411
|
_script($scope2_id, "y4");
|
|
13348
13412
|
_subscribe($closed__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }));
|
|
13349
13413
|
return 0;
|
|
13350
13414
|
}
|
|
13351
13415
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13352
|
-
_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)}`);
|
|
13353
13417
|
writeScope($scope1_id, {
|
|
13354
13418
|
f: section$2?.id,
|
|
13355
13419
|
h: $si__input_sections_length && section$2?.label,
|
|
@@ -13381,7 +13445,7 @@ var review_tree_default = _template("y", (input) => {
|
|
|
13381
13445
|
});
|
|
13382
13446
|
_resume_branch($scope0_id);
|
|
13383
13447
|
});
|
|
13384
|
-
var sheetDir = "
|
|
13448
|
+
var sheetDir = "_i9 _ba";
|
|
13385
13449
|
//#endregion
|
|
13386
13450
|
//#region src/tags/icons/icon-comment.marko
|
|
13387
13451
|
var icon_comment_default = _template("ab", (input) => {
|
|
@@ -13454,9 +13518,9 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13454
13518
|
_if(() => {
|
|
13455
13519
|
if (open) {
|
|
13456
13520
|
const $scope1_id = _scope_id();
|
|
13457
|
-
_html(`<div${_attr_class("
|
|
13521
|
+
_html(`<div${_attr_class("_i0")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_i1")} role=dialog aria-label="Jump to file"><div${_attr_class("_i2")}><strong${_attr_class("_iZ")}>Files</strong><span${_attr_class("_i3")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_iY"])} title=Close aria-label=Close>`);
|
|
13458
13522
|
icon_xmark_default({ size: 16 });
|
|
13459
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13523
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_ja")}>`);
|
|
13460
13524
|
_set_serialize_reason(2);
|
|
13461
13525
|
const $childScope = _peek_scope_id();
|
|
13462
13526
|
file_filter_default({
|
|
@@ -13465,13 +13529,13 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13465
13529
|
filter = _new_filter;
|
|
13466
13530
|
}, "i1", $scope1_id)
|
|
13467
13531
|
});
|
|
13468
|
-
_html(`</div><div${_attr_class("
|
|
13532
|
+
_html(`</div><div${_attr_class("_i4")}>`);
|
|
13469
13533
|
_for_of(groups, (group) => {
|
|
13470
13534
|
const $scope2_id = _scope_id();
|
|
13471
|
-
_html(`<div${_attr_class("
|
|
13535
|
+
_html(`<div${_attr_class("_i5")}><div${_attr_class("_i6")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13472
13536
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13473
13537
|
const $scope3_id = _scope_id();
|
|
13474
|
-
_html(`<div${_attr_class("
|
|
13538
|
+
_html(`<div${_attr_class("_i7")}>`);
|
|
13475
13539
|
_if(() => {
|
|
13476
13540
|
if (dir) {
|
|
13477
13541
|
const $scope5_id = _scope_id();
|
|
@@ -13482,11 +13546,11 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13482
13546
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13483
13547
|
_for_of(files, ({ file, name }) => {
|
|
13484
13548
|
const $scope4_id = _scope_id();
|
|
13485
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13549
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_i8", "_y"])}><span${_attr_class("__")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_i_")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13486
13550
|
_if(() => {
|
|
13487
13551
|
if (newKeys.has(file.key)) {
|
|
13488
13552
|
const $scope6_id = _scope_id();
|
|
13489
|
-
_html(`<span${_attr_class(["_A", "
|
|
13553
|
+
_html(`<span${_attr_class(["_A", "_jc"])} title="Changed since your last visit"></span>`);
|
|
13490
13554
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13491
13555
|
return 0;
|
|
13492
13556
|
}
|
|
@@ -13496,7 +13560,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13496
13560
|
const $scope7_id = _scope_id();
|
|
13497
13561
|
icon_comment_default({
|
|
13498
13562
|
size: 12,
|
|
13499
|
-
class: "
|
|
13563
|
+
class: "_jd"
|
|
13500
13564
|
});
|
|
13501
13565
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13502
13566
|
return 0;
|
|
@@ -13521,7 +13585,7 @@ var diff_file_sheet_default = _template("i", (input) => {
|
|
|
13521
13585
|
_if(() => {
|
|
13522
13586
|
if (!input.files.length) {
|
|
13523
13587
|
const $scope8_id = _scope_id();
|
|
13524
|
-
_html(`<p${_attr_class("
|
|
13588
|
+
_html(`<p${_attr_class("_jb")}>No files match.</p>`);
|
|
13525
13589
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13526
13590
|
return 0;
|
|
13527
13591
|
}
|
|
@@ -14113,12 +14177,12 @@ var review_view_default = _template("z", (input) => {
|
|
|
14113
14177
|
_if(() => {
|
|
14114
14178
|
if (repos && !allFiles.length) {
|
|
14115
14179
|
const $scope11_id = _scope_id();
|
|
14116
|
-
_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>`);
|
|
14117
14181
|
writeScope($scope11_id, {});
|
|
14118
14182
|
return 0;
|
|
14119
14183
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
14120
14184
|
const $scope8_id = _scope_id();
|
|
14121
|
-
_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>`);
|
|
14122
14186
|
writeScope($scope8_id, {});
|
|
14123
14187
|
return 1;
|
|
14124
14188
|
}
|
|
@@ -14538,8 +14602,8 @@ var icon_trash_default = _template("ub", (input) => {
|
|
|
14538
14602
|
});
|
|
14539
14603
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14540
14604
|
});
|
|
14541
|
-
var resultRow = "
|
|
14542
|
-
var resultBranch = "
|
|
14605
|
+
var resultRow = "_h3 _I";
|
|
14606
|
+
var resultBranch = "_h5 _3 _l";
|
|
14543
14607
|
//#endregion
|
|
14544
14608
|
//#region src/tags/icons/icon-branch.marko
|
|
14545
14609
|
var icon_branch_default = _template("X", (input) => {
|
|
@@ -14569,11 +14633,11 @@ var branch_pick_default = _template("f", (input) => {
|
|
|
14569
14633
|
let branchFilter = "";
|
|
14570
14634
|
let reloadTick = 0;
|
|
14571
14635
|
let refreshing = false;
|
|
14572
|
-
_html(`<div${_attr_class("
|
|
14636
|
+
_html(`<div${_attr_class("_h7")}>`);
|
|
14573
14637
|
_if(() => {
|
|
14574
14638
|
{
|
|
14575
14639
|
const $scope4_id = _scope_id();
|
|
14576
|
-
_html(`<p${_attr_class("
|
|
14640
|
+
_html(`<p${_attr_class("_ci")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14577
14641
|
writeScope($scope4_id, {});
|
|
14578
14642
|
return 0;
|
|
14579
14643
|
}
|
|
@@ -14674,21 +14738,21 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14674
14738
|
_resume_branch($scope9_id);
|
|
14675
14739
|
}, $scope0_id) };
|
|
14676
14740
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
14677
|
-
_html(`<div${_attr_class([compact ? "
|
|
14678
|
-
["
|
|
14679
|
-
["
|
|
14741
|
+
_html(`<div${_attr_class([compact ? "_cH" : "_hV", {
|
|
14742
|
+
["_cI"]: compact && !input$2.open,
|
|
14743
|
+
["_cJ"]: input$2.pinned
|
|
14680
14744
|
}])}>`);
|
|
14681
14745
|
_if(() => {
|
|
14682
14746
|
if (!compact && ssoPending.length) {
|
|
14683
14747
|
const $scope11_id = _scope_id();
|
|
14684
|
-
_html(`<div${_attr_class("
|
|
14748
|
+
_html(`<div${_attr_class("_hY")}>`);
|
|
14685
14749
|
ssoBlock.content({});
|
|
14686
14750
|
_html("</div>");
|
|
14687
14751
|
writeScope($scope11_id, {});
|
|
14688
14752
|
return 0;
|
|
14689
14753
|
}
|
|
14690
14754
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
14691
|
-
_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"])}>`);
|
|
14692
14756
|
icon_search_default({
|
|
14693
14757
|
size: 14,
|
|
14694
14758
|
class: "_1"
|
|
@@ -14700,7 +14764,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14700
14764
|
}, "w0", $scope0_id))}${_attr_class([
|
|
14701
14765
|
compact ? "_Y" : inputLg,
|
|
14702
14766
|
"_2",
|
|
14703
|
-
compact && "
|
|
14767
|
+
compact && "_cL"
|
|
14704
14768
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "f")}</label>${_el_resume($scope0_id, "d", $sg__input_compact)}`);
|
|
14705
14769
|
_if(() => {
|
|
14706
14770
|
if (!compact && input$2.action) {
|
|
@@ -14714,7 +14778,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14714
14778
|
_if(() => {
|
|
14715
14779
|
if (compact) {
|
|
14716
14780
|
const $scope2_id = _scope_id();
|
|
14717
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14781
|
+
_html(`<button${_attr_class([iconBtnRow, "_cN"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
14718
14782
|
icon_xmark_default({ size: 14 });
|
|
14719
14783
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
14720
14784
|
_script($scope2_id, "w14");
|
|
@@ -14722,11 +14786,11 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14722
14786
|
return 0;
|
|
14723
14787
|
}
|
|
14724
14788
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
14725
|
-
_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)}>`);
|
|
14726
14790
|
_if(() => {
|
|
14727
14791
|
if (compact && ssoPending.length) {
|
|
14728
14792
|
const $scope12_id = _scope_id();
|
|
14729
|
-
_html(`<div${_attr_class("
|
|
14793
|
+
_html(`<div${_attr_class("_hY")}>`);
|
|
14730
14794
|
ssoBlock.content({});
|
|
14731
14795
|
_html("</div>");
|
|
14732
14796
|
writeScope($scope12_id, {});
|
|
@@ -14736,16 +14800,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14736
14800
|
_if(() => {
|
|
14737
14801
|
if (pasted) {
|
|
14738
14802
|
const $scope3_id = _scope_id();
|
|
14739
|
-
_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)`)}>`);
|
|
14740
14804
|
icon_plus_default({
|
|
14741
14805
|
size: 12,
|
|
14742
|
-
class: "
|
|
14806
|
+
class: "_h9"
|
|
14743
14807
|
});
|
|
14744
|
-
_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")}`);
|
|
14745
14809
|
_if(() => {
|
|
14746
14810
|
if (pastedForkable) {
|
|
14747
14811
|
const $scope10_id = _scope_id();
|
|
14748
|
-
_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"}>`);
|
|
14749
14813
|
_if(() => {
|
|
14750
14814
|
if (pasteWillFork) {
|
|
14751
14815
|
const $scope14_id = _scope_id();
|
|
@@ -14765,7 +14829,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14765
14829
|
return 0;
|
|
14766
14830
|
}
|
|
14767
14831
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
14768
|
-
_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}`)}>`);
|
|
14769
14833
|
icon_branch_default({ size: 12 });
|
|
14770
14834
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
14771
14835
|
_if(() => {
|
|
@@ -14792,7 +14856,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14792
14856
|
return 0;
|
|
14793
14857
|
} else if (filter && !catalog) {
|
|
14794
14858
|
const $scope13_id = _scope_id();
|
|
14795
|
-
_html(`<p${_attr_class("
|
|
14859
|
+
_html(`<p${_attr_class("_ci")}>Loading repos…</p>`);
|
|
14796
14860
|
writeScope($scope13_id, {});
|
|
14797
14861
|
return 1;
|
|
14798
14862
|
}
|
|
@@ -14800,15 +14864,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14800
14864
|
_if(() => {
|
|
14801
14865
|
if (results.length) {
|
|
14802
14866
|
const $scope5_id = _scope_id();
|
|
14803
|
-
_html(`<ul${_attr_class("
|
|
14867
|
+
_html(`<ul${_attr_class("_h0")}>`);
|
|
14804
14868
|
_for_of(results, (repo, i) => {
|
|
14805
14869
|
const $scope6_id = _scope_id();
|
|
14806
|
-
_html(`<li><div${_attr_class(["
|
|
14870
|
+
_html(`<li><div${_attr_class(["_h2", { ["_h1"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
14807
14871
|
icon_plus_default({
|
|
14808
14872
|
size: 12,
|
|
14809
|
-
class: "
|
|
14873
|
+
class: "_h9"
|
|
14810
14874
|
});
|
|
14811
|
-
_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}`)}>`);
|
|
14812
14876
|
icon_branch_default({ size: 12 });
|
|
14813
14877
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
14814
14878
|
_if(() => {
|
|
@@ -14843,7 +14907,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14843
14907
|
return 0;
|
|
14844
14908
|
} else if (filter && catalog && !pasted) {
|
|
14845
14909
|
const $scope8_id = _scope_id();
|
|
14846
|
-
_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>`);
|
|
14847
14911
|
writeScope($scope8_id, {});
|
|
14848
14912
|
return 1;
|
|
14849
14913
|
}
|
|
@@ -15060,7 +15124,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15060
15124
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15061
15125
|
}, "p11", $scope0_id);
|
|
15062
15126
|
const titleId = _id();
|
|
15063
|
-
_html(`<div${_attr_class("
|
|
15127
|
+
_html(`<div${_attr_class("_cZ")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c0")}><div${_attr_class("_c1")}>`);
|
|
15064
15128
|
_set_serialize_reason(30);
|
|
15065
15129
|
const $childScope2 = _peek_scope_id();
|
|
15066
15130
|
page_head_default({
|
|
@@ -15168,7 +15232,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15168
15232
|
_resume_branch($scope6_id);
|
|
15169
15233
|
}, $scope0_id) })
|
|
15170
15234
|
});
|
|
15171
|
-
_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>`);
|
|
15172
15236
|
_if(() => {
|
|
15173
15237
|
if (ws.status !== "active") {
|
|
15174
15238
|
const $scope23_id = _scope_id();
|
|
@@ -15233,12 +15297,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15233
15297
|
_if(() => {
|
|
15234
15298
|
if (pendingAction && actionStep) {
|
|
15235
15299
|
const $scope10_id = _scope_id();
|
|
15236
|
-
_html(`<p${_attr_class("
|
|
15300
|
+
_html(`<p${_attr_class("_b7")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15237
15301
|
writeScope($scope10_id, {});
|
|
15238
15302
|
return 0;
|
|
15239
15303
|
}
|
|
15240
15304
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
15241
|
-
_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)}>`);
|
|
15242
15306
|
icon_plus_default({ size: 16 });
|
|
15243
15307
|
_html(`</button>${_el_resume($scope0_id, "a6")}`);
|
|
15244
15308
|
_set_serialize_reason(26);
|
|
@@ -15295,7 +15359,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15295
15359
|
const $childScope5 = _peek_scope_id();
|
|
15296
15360
|
arm_button_default({
|
|
15297
15361
|
class: [
|
|
15298
|
-
"
|
|
15362
|
+
"_ch",
|
|
15299
15363
|
"_7",
|
|
15300
15364
|
"_8"
|
|
15301
15365
|
],
|
|
@@ -15328,14 +15392,14 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15328
15392
|
_html(`<li${_attr_class([
|
|
15329
15393
|
"_f4",
|
|
15330
15394
|
"_f5",
|
|
15331
|
-
"
|
|
15332
|
-
])}><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>`);
|
|
15333
15397
|
writeScope($scope31_id, {});
|
|
15334
15398
|
}, (n) => n, $scope0_id, "ae", 1, 1, 1, 0, 1);
|
|
15335
15399
|
_if(() => {
|
|
15336
15400
|
if (!ws.repos.length && !busy.size) {
|
|
15337
15401
|
const $scope32_id = _scope_id();
|
|
15338
|
-
_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>`);
|
|
15339
15403
|
writeScope($scope32_id, {});
|
|
15340
15404
|
return 0;
|
|
15341
15405
|
}
|
|
@@ -15345,7 +15409,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15345
15409
|
_if(() => {
|
|
15346
15410
|
if (running.length) {
|
|
15347
15411
|
const $scope15_id = _scope_id();
|
|
15348
|
-
_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)}>`);
|
|
15349
15413
|
_for_of(running, (p) => {
|
|
15350
15414
|
const $scope16_id = _scope_id();
|
|
15351
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")}>`);
|
|
@@ -15356,7 +15420,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15356
15420
|
writeScope($scope33_id, { d: port });
|
|
15357
15421
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15358
15422
|
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15359
|
-
"
|
|
15423
|
+
"_ch",
|
|
15360
15424
|
"_7",
|
|
15361
15425
|
"_gh"
|
|
15362
15426
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
@@ -15379,11 +15443,11 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15379
15443
|
s,
|
|
15380
15444
|
linked: false
|
|
15381
15445
|
}))].sort((a, b) => a.s.name.localeCompare(b.s.name));
|
|
15382
|
-
_html(`</div><div${_attr_class("
|
|
15446
|
+
_html(`</div><div${_attr_class("_c2")}>`);
|
|
15383
15447
|
_if(() => {
|
|
15384
15448
|
if (allSkills.length) {
|
|
15385
15449
|
const $scope2_id = _scope_id();
|
|
15386
|
-
_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"])}>`);
|
|
15387
15451
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15388
15452
|
const $scope3_id = _scope_id();
|
|
15389
15453
|
const isBusy = skillBusy.has(s.id);
|
|
@@ -15448,7 +15512,7 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15448
15512
|
const $childScope6 = _peek_scope_id();
|
|
15449
15513
|
arm_button_default({
|
|
15450
15514
|
class: [
|
|
15451
|
-
"
|
|
15515
|
+
"_ch",
|
|
15452
15516
|
"_7",
|
|
15453
15517
|
"_8",
|
|
15454
15518
|
"_gg"
|
|
@@ -15560,12 +15624,12 @@ var manage_workspace_default = _template("p", (input) => {
|
|
|
15560
15624
|
});
|
|
15561
15625
|
_resume_branch($scope0_id);
|
|
15562
15626
|
});
|
|
15563
|
-
var curRow = "_fO
|
|
15564
|
-
var curEmpty = "_fQ
|
|
15627
|
+
var curRow = "_fO _cG _cE";
|
|
15628
|
+
var curEmpty = "_fQ _ci";
|
|
15565
15629
|
var curBase = "_fT _X _W";
|
|
15566
|
-
var archived = "_fY
|
|
15630
|
+
var archived = "_fY _b8";
|
|
15567
15631
|
var archivedHint = "_fZ _W";
|
|
15568
|
-
var archivedRow = "_f0
|
|
15632
|
+
var archivedRow = "_f0 _cG _cE";
|
|
15569
15633
|
//#endregion
|
|
15570
15634
|
//#region src/tags/icons/icon-group.marko
|
|
15571
15635
|
var icon_group_default = _template("hb", (input) => {
|
|
@@ -15585,8 +15649,8 @@ var icon_group_default = _template("hb", (input) => {
|
|
|
15585
15649
|
});
|
|
15586
15650
|
//#endregion
|
|
15587
15651
|
//#region src/tags/join-dialog.css.ts
|
|
15588
|
-
var dlg = "
|
|
15589
|
-
var hint = "
|
|
15652
|
+
var dlg = "_iG _g1";
|
|
15653
|
+
var hint = "_iH _W";
|
|
15590
15654
|
//#endregion
|
|
15591
15655
|
//#region src/tags/join-dialog.marko
|
|
15592
15656
|
var api$3;
|
|
@@ -15718,23 +15782,23 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15718
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([
|
|
15719
15783
|
"_Y",
|
|
15720
15784
|
"_y",
|
|
15721
|
-
"
|
|
15785
|
+
"_iJ"
|
|
15722
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")}`);
|
|
15723
15787
|
_if(() => {
|
|
15724
15788
|
if (parsed.error) {
|
|
15725
15789
|
const $scope8_id = _scope_id();
|
|
15726
|
-
_html(`<p${_attr_class([hint, "
|
|
15790
|
+
_html(`<p${_attr_class([hint, "_iI"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
15727
15791
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
15728
15792
|
return 0;
|
|
15729
15793
|
} else if (parsed.ok) {
|
|
15730
15794
|
const $scope3_id = _scope_id();
|
|
15731
|
-
_html(`<ul${_attr_class("
|
|
15795
|
+
_html(`<ul${_attr_class("_iK")}>`);
|
|
15732
15796
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
15733
15797
|
const $scope9_id = _scope_id();
|
|
15734
|
-
_html(`<li${_attr_class("
|
|
15798
|
+
_html(`<li${_attr_class("_iL")}><span${_attr_class("_iM")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
15735
15799
|
writeScope($scope9_id, {});
|
|
15736
15800
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
15737
|
-
_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) => {
|
|
15738
15802
|
name = _new_name;
|
|
15739
15803
|
}, "m1", $scope3_id))}${_attr_class("_Y")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
15740
15804
|
_script($scope3_id, "m8");
|
|
@@ -15771,10 +15835,10 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15771
15835
|
_if(() => {
|
|
15772
15836
|
if (busy && steps$2.length) {
|
|
15773
15837
|
const $scope6_id = _scope_id();
|
|
15774
|
-
_html(`<ul${_attr_class("
|
|
15838
|
+
_html(`<ul${_attr_class("_iO")}>`);
|
|
15775
15839
|
_for_of(steps$2, (step$2, i) => {
|
|
15776
15840
|
const $scope7_id = _scope_id();
|
|
15777
|
-
_html(`<li${_attr_class(["
|
|
15841
|
+
_html(`<li${_attr_class(["_iQ", { ["_iP"]: i === steps$2.length - 1 }])}>`);
|
|
15778
15842
|
_if(() => {
|
|
15779
15843
|
if (i === steps$2.length - 1) {
|
|
15780
15844
|
const $scope10_id = _scope_id();
|
|
@@ -15783,7 +15847,7 @@ var join_dialog_default = _template("m", (input) => {
|
|
|
15783
15847
|
return 0;
|
|
15784
15848
|
} else {
|
|
15785
15849
|
const $scope11_id = _scope_id();
|
|
15786
|
-
_html(`<span${_attr_class("
|
|
15850
|
+
_html(`<span${_attr_class("_iR")}>`);
|
|
15787
15851
|
icon_check_default({ size: 14 });
|
|
15788
15852
|
_html("</span>");
|
|
15789
15853
|
writeScope($scope11_id, {});
|
|
@@ -15941,7 +16005,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
15941
16005
|
}
|
|
15942
16006
|
}, "s6", $scope0_id);
|
|
15943
16007
|
const titleId = _id();
|
|
15944
|
-
_html(`<div${_attr_class("
|
|
16008
|
+
_html(`<div${_attr_class("_cZ")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_c0")}><div${_attr_class("_c1")}>`);
|
|
15945
16009
|
_set_serialize_reason({
|
|
15946
16010
|
0: _serialize_guard($scope0_reason, 2),
|
|
15947
16011
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -15965,7 +16029,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
15965
16029
|
_resume_branch($scope3_id);
|
|
15966
16030
|
}, $scope0_id) })
|
|
15967
16031
|
});
|
|
15968
|
-
_html(`<div${_attr_class("
|
|
16032
|
+
_html(`<div${_attr_class("_c2")}>`);
|
|
15969
16033
|
_if(() => {
|
|
15970
16034
|
if (error) {
|
|
15971
16035
|
const $scope8_id = _scope_id();
|
|
@@ -15986,9 +16050,9 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
15986
16050
|
return 0;
|
|
15987
16051
|
}
|
|
15988
16052
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
15989
|
-
_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) => {
|
|
15990
16054
|
name = _new_name;
|
|
15991
|
-
}, "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)}>`);
|
|
15992
16056
|
_for_of(selected, (repo) => {
|
|
15993
16057
|
const $scope4_id = _scope_id();
|
|
15994
16058
|
_html(`<li${_attr_class("_fN")}><div${_attr_class(curRow)}><span${_attr_class("_fR")}>${_text_resume($scope4_id, "d", repoLabel$1(repo.fullName))}</span>`);
|
|
@@ -16129,14 +16193,14 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16129
16193
|
btnLg,
|
|
16130
16194
|
"_r",
|
|
16131
16195
|
"_fJ"
|
|
16132
|
-
])}${_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")}>`);
|
|
16133
16197
|
_if(() => {
|
|
16134
16198
|
if (archived$1.length) {
|
|
16135
16199
|
const $scope6_id = _scope_id();
|
|
16136
|
-
_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)}>`);
|
|
16137
16201
|
_for_of(archived$1, (ws) => {
|
|
16138
16202
|
const $scope7_id = _scope_id();
|
|
16139
|
-
_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)}>`);
|
|
16140
16204
|
_if(() => {
|
|
16141
16205
|
if (restoring === ws.id) {
|
|
16142
16206
|
const $scope18_id = _scope_id();
|
|
@@ -16253,19 +16317,19 @@ var term_find_default = _template("G", (input) => {
|
|
|
16253
16317
|
const canStep = hasQuery && open;
|
|
16254
16318
|
const keybar = input.placement === "keybar";
|
|
16255
16319
|
_html(`<div${_attr_class([
|
|
16256
|
-
"
|
|
16257
|
-
keybar ? "
|
|
16258
|
-
!open && "
|
|
16259
|
-
])} 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) {
|
|
16260
16324
|
if (!open) return;
|
|
16261
16325
|
query = v;
|
|
16262
16326
|
live.query = v;
|
|
16263
16327
|
run(0);
|
|
16264
|
-
}, "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"}>`);
|
|
16265
16329
|
icon_arrow_up_default({ size: 14 });
|
|
16266
|
-
_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"}>`);
|
|
16267
16331
|
icon_arrow_down_default({ size: 14 });
|
|
16268
|
-
_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"}>`);
|
|
16269
16333
|
icon_xmark_default({ size: 14 });
|
|
16270
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")}`);
|
|
16271
16335
|
const $return = focusInput;
|
|
@@ -16416,7 +16480,7 @@ var term_default = _template("H", (input) => {
|
|
|
16416
16480
|
}
|
|
16417
16481
|
}, "H9", $scope0_id);
|
|
16418
16482
|
input.keys;
|
|
16419
|
-
_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")}`);
|
|
16420
16484
|
_if(() => {
|
|
16421
16485
|
if (findOpen) {
|
|
16422
16486
|
const $scope4_id = _scope_id();
|
|
@@ -16443,7 +16507,7 @@ var term_default = _template("H", (input) => {
|
|
|
16443
16507
|
_if(() => {
|
|
16444
16508
|
if (uploading) {
|
|
16445
16509
|
const $scope5_id = _scope_id();
|
|
16446
|
-
_html(`<div${_attr_class("
|
|
16510
|
+
_html(`<div${_attr_class("_fe")}>uploading…</div>`);
|
|
16447
16511
|
writeScope($scope5_id, {});
|
|
16448
16512
|
return 0;
|
|
16449
16513
|
}
|
|
@@ -16451,7 +16515,7 @@ var term_default = _template("H", (input) => {
|
|
|
16451
16515
|
_if(() => {
|
|
16452
16516
|
if (copiedFlash) {
|
|
16453
16517
|
const $scope6_id = _scope_id();
|
|
16454
|
-
_html(`<div${_attr_class("
|
|
16518
|
+
_html(`<div${_attr_class("_fd")}>Copied</div>`);
|
|
16455
16519
|
writeScope($scope6_id, {});
|
|
16456
16520
|
return 0;
|
|
16457
16521
|
}
|
|
@@ -16460,7 +16524,7 @@ var term_default = _template("H", (input) => {
|
|
|
16460
16524
|
_if(() => {
|
|
16461
16525
|
if (trapOpen) {
|
|
16462
16526
|
const $scope3_id = _scope_id();
|
|
16463
|
-
_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")}`);
|
|
16464
16528
|
_script($scope3_id, "H16");
|
|
16465
16529
|
_script($scope3_id, "H17");
|
|
16466
16530
|
writeScope($scope3_id, {});
|
|
@@ -16722,7 +16786,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16722
16786
|
toggleDiff();
|
|
16723
16787
|
}
|
|
16724
16788
|
}, "M14", $scope0_id);
|
|
16725
|
-
_html(`<div${_attr_class(["
|
|
16789
|
+
_html(`<div${_attr_class(["_cn", { ["_cm"]: !input.active }])}><div${_attr_class("_co")}>`);
|
|
16726
16790
|
_if(() => {
|
|
16727
16791
|
if (error) {
|
|
16728
16792
|
const $scope8_id = _scope_id();
|
|
@@ -16745,7 +16809,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16745
16809
|
_if(() => {
|
|
16746
16810
|
if (diffMounted && ws) {
|
|
16747
16811
|
const $scope1_id = _scope_id();
|
|
16748
|
-
_html(`<div${_attr_class("
|
|
16812
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
16749
16813
|
_set_serialize_reason({
|
|
16750
16814
|
0: $sg__input_workspace,
|
|
16751
16815
|
1: $sg__input_workspace,
|
|
@@ -16807,7 +16871,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16807
16871
|
_if(() => {
|
|
16808
16872
|
if (manageMounted && ws) {
|
|
16809
16873
|
const $scope2_id = _scope_id();
|
|
16810
|
-
_html(`<div${_attr_class("
|
|
16874
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
16811
16875
|
_set_serialize_reason({
|
|
16812
16876
|
0: $sg__input_workspace,
|
|
16813
16877
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -16833,7 +16897,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16833
16897
|
_if(() => {
|
|
16834
16898
|
if (settingsMounted) {
|
|
16835
16899
|
const $scope3_id = _scope_id();
|
|
16836
|
-
_html(`<div${_attr_class("
|
|
16900
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
16837
16901
|
_set_serialize_reason({
|
|
16838
16902
|
0: _serialize_guard($scope0_reason, 0),
|
|
16839
16903
|
1: $sg__input_workspace,
|
|
@@ -16875,7 +16939,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16875
16939
|
_if(() => {
|
|
16876
16940
|
if (newMounted) {
|
|
16877
16941
|
const $scope4_id = _scope_id();
|
|
16878
|
-
_html(`<div${_attr_class("
|
|
16942
|
+
_html(`<div${_attr_class("_cp")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
16879
16943
|
_set_serialize_reason({
|
|
16880
16944
|
0: 1,
|
|
16881
16945
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -16900,13 +16964,13 @@ var work_view_default = _template("M", (input) => {
|
|
|
16900
16964
|
return 0;
|
|
16901
16965
|
}
|
|
16902
16966
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
16903
|
-
_html(`<div${_attr_class("
|
|
16967
|
+
_html(`<div${_attr_class("_cq")}${_attr("inert", view !== "term")}>`);
|
|
16904
16968
|
_if(() => {
|
|
16905
16969
|
if (ws && shownSessions) {
|
|
16906
16970
|
const $scope5_id = _scope_id();
|
|
16907
16971
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
16908
16972
|
const $scope6_id = _scope_id();
|
|
16909
|
-
_html(`<div${_attr_class("
|
|
16973
|
+
_html(`<div${_attr_class("_cr")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
16910
16974
|
_set_serialize_reason(2);
|
|
16911
16975
|
const $childScope5 = _peek_scope_id();
|
|
16912
16976
|
term_default({
|
|
@@ -16932,7 +16996,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16932
16996
|
_if(() => {
|
|
16933
16997
|
if (!shownSessions.length && view === "term") {
|
|
16934
16998
|
const $scope7_id = _scope_id();
|
|
16935
|
-
_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>`);
|
|
16936
17000
|
_script($scope7_id, "M39");
|
|
16937
17001
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
16938
17002
|
return 0;
|
|
@@ -16942,7 +17006,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
16942
17006
|
return 0;
|
|
16943
17007
|
} else if (ws) {
|
|
16944
17008
|
const $scope10_id = _scope_id();
|
|
16945
|
-
_html(`<p${_attr_class("
|
|
17009
|
+
_html(`<p${_attr_class("_cj")}>Loading sessions…</p>`);
|
|
16946
17010
|
writeScope($scope10_id, {});
|
|
16947
17011
|
return 1;
|
|
16948
17012
|
}
|
|
@@ -17045,7 +17109,7 @@ var work_view_default = _template("M", (input) => {
|
|
|
17045
17109
|
});
|
|
17046
17110
|
//#endregion
|
|
17047
17111
|
//#region src/tags/key-bar.css.ts
|
|
17048
|
-
var kbtn = "
|
|
17112
|
+
var kbtn = "_bs _5 _l";
|
|
17049
17113
|
_template("wb", (input) => {
|
|
17050
17114
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17051
17115
|
const $scope0_id = _scope_id();
|
|
@@ -17061,8 +17125,8 @@ _template("wb", (input) => {
|
|
|
17061
17125
|
});
|
|
17062
17126
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17063
17127
|
});
|
|
17064
|
-
var sessOpen = "
|
|
17065
|
-
var sessRename = "
|
|
17128
|
+
var sessOpen = "_ew _I";
|
|
17129
|
+
var sessRename = "_eA _J";
|
|
17066
17130
|
//#endregion
|
|
17067
17131
|
//#region src/tags/usage-pcts.marko
|
|
17068
17132
|
var usage_pcts_default = _template("L", (input) => {
|
|
@@ -17089,7 +17153,7 @@ var usage_pcts_default = _template("L", (input) => {
|
|
|
17089
17153
|
return 0;
|
|
17090
17154
|
}
|
|
17091
17155
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
17092
|
-
_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>`);
|
|
17093
17157
|
$si__input_agent && writeScope($scope2_id, {});
|
|
17094
17158
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
17095
17159
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -17131,7 +17195,7 @@ _template("n", (input) => {
|
|
|
17131
17195
|
align: "center",
|
|
17132
17196
|
gap: 8
|
|
17133
17197
|
}), "n2", $scope0_id);
|
|
17134
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17198
|
+
_html(`<button${_attr_class([kbtn, "_es"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
17135
17199
|
_set_serialize_reason({
|
|
17136
17200
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
17137
17201
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -17145,11 +17209,11 @@ _template("n", (input) => {
|
|
|
17145
17209
|
"_A",
|
|
17146
17210
|
"_bb",
|
|
17147
17211
|
phase[sessionPhase(current$2?.state)]
|
|
17148
|
-
])}></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"])}>`);
|
|
17149
17213
|
_for_of(input.sessions, (s) => {
|
|
17150
17214
|
const $scope1_id = _scope_id();
|
|
17151
17215
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17152
|
-
_html(`<div${_attr_class(["
|
|
17216
|
+
_html(`<div${_attr_class(["_ev", { ["_eu"]: s.id === input.sessionId }])}>`);
|
|
17153
17217
|
_if(() => {
|
|
17154
17218
|
if (renamingId === s.id) {
|
|
17155
17219
|
const $scope5_id = _scope_id();
|
|
@@ -17181,7 +17245,7 @@ _template("n", (input) => {
|
|
|
17181
17245
|
agent: activeAgent(s),
|
|
17182
17246
|
size: 14
|
|
17183
17247
|
});
|
|
17184
|
-
_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>`);
|
|
17185
17249
|
_if(() => {
|
|
17186
17250
|
if (s.id === input.sessionId) {
|
|
17187
17251
|
const $scope7_id = _scope_id();
|
|
@@ -17193,7 +17257,7 @@ _template("n", (input) => {
|
|
|
17193
17257
|
const $childScope4 = _peek_scope_id();
|
|
17194
17258
|
usage_pcts_default({
|
|
17195
17259
|
agent: plan,
|
|
17196
|
-
class: "
|
|
17260
|
+
class: "_ey"
|
|
17197
17261
|
});
|
|
17198
17262
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
17199
17263
|
return 0;
|
|
@@ -17210,7 +17274,7 @@ _template("n", (input) => {
|
|
|
17210
17274
|
_if(() => {
|
|
17211
17275
|
if (input.onRenameSession) {
|
|
17212
17276
|
const $scope6_id = _scope_id();
|
|
17213
|
-
_html(`<button${_attr_class(["
|
|
17277
|
+
_html(`<button${_attr_class(["_eB", "_eC"])} title="Rename session">`);
|
|
17214
17278
|
icon_edit_default({ size: 12 });
|
|
17215
17279
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
17216
17280
|
_script($scope6_id, "n5");
|
|
@@ -17222,7 +17286,7 @@ _template("n", (input) => {
|
|
|
17222
17286
|
if (input.onCloseSession) {
|
|
17223
17287
|
const $scope3_id = _scope_id();
|
|
17224
17288
|
arm_button_default({
|
|
17225
|
-
class: ["
|
|
17289
|
+
class: ["_eB", "_7"],
|
|
17226
17290
|
title: "Close session",
|
|
17227
17291
|
armedTitle: "Close?",
|
|
17228
17292
|
onFire: _resume(function() {
|
|
@@ -17254,7 +17318,7 @@ _template("n", (input) => {
|
|
|
17254
17318
|
m: $si__input_sessions && $for_content__s_agent__closures
|
|
17255
17319
|
});
|
|
17256
17320
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
17257
|
-
_html(`<div${_attr_class("
|
|
17321
|
+
_html(`<div${_attr_class("_eD")}><span${_attr_class("_eE")}>New session</span><div${_attr_class("_eF")}>`);
|
|
17258
17322
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
17259
17323
|
const $scope4_id = _scope_id();
|
|
17260
17324
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -26418,4 +26482,4 @@ server.listen(port, () => {
|
|
|
26418
26482
|
//#endregion
|
|
26419
26483
|
export {};
|
|
26420
26484
|
|
|
26421
|
-
;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\"",">"]}};
|