@dylanpiercey/work 0.0.157 → 0.0.158
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 +560 -553
- package/dist/public/assets/_1uIdjVuP.js +1 -0
- package/dist/public/assets/_B5WqV19M.js +1 -0
- package/dist/public/assets/_BNuUCPGS.js +1 -0
- package/dist/public/assets/_BOfssVLv.js +1 -0
- package/dist/public/assets/_BxIcsysD.js +1 -0
- package/dist/public/assets/{_dHGVn24e.js → _BxabbFws.js} +4 -4
- package/dist/public/assets/_BxabbFws.js.br +0 -0
- package/dist/public/assets/_C26sXSBM.js +1 -0
- package/dist/public/assets/_CDcWSPQn.js +1 -0
- package/dist/public/assets/{_Cjgj-pBB.js → _Cbu4AbsN.js} +1 -1
- package/dist/public/assets/_Cbu4AbsN.js.br +0 -0
- package/dist/public/assets/_Cc9DbAYY.js +1 -0
- package/dist/public/assets/_Co6pRCsQ.js +1 -0
- package/dist/public/assets/_CoptvGxA.js +1 -0
- package/dist/public/assets/_DAh4Jg7Y.js +1 -0
- package/dist/public/assets/_DDCSqngu.js +1 -0
- package/dist/public/assets/_DEaIhIVb.js +1 -0
- package/dist/public/assets/_DFqtdaJl.js +1 -0
- package/dist/public/assets/_DUDy5h6R.js +83 -0
- package/dist/public/assets/_DUDy5h6R.js.br +0 -0
- package/dist/public/assets/_Dms-dGSD.js +1 -0
- package/dist/public/assets/_Dw0cv1OC.js +1 -0
- package/dist/public/assets/_Qvk4_rZ1.js +1 -0
- package/dist/public/assets/_bF5nF4E4.js +1 -0
- package/dist/public/assets/_iA6UTJX5.js +1 -0
- package/dist/public/assets/{app-page-D2BI9pqy.css → app-page-LdxNfDbr.css} +1 -1
- package/dist/public/assets/app-page-LdxNfDbr.css.br +0 -0
- package/dist/public/assets/diff-view-BPU5rMei.js +2 -0
- package/dist/public/assets/{diff-view-CDR_rQOe.css → diff-view-E8jVfABq.css} +1 -1
- package/dist/public/assets/diff-view-E8jVfABq.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-xhBqf52S.css → icon-arrow-down-Bh8nsodJ.css} +1 -1
- package/dist/public/assets/icon-arrow-down-Bh8nsodJ.css.br +0 -0
- package/dist/public/assets/new-Cz4e5lzk.js +1 -0
- package/dist/public/assets/settings-Cz4e5lzk.js +1 -0
- package/dist/public/assets/w-Cz4e5lzk.js +1 -0
- package/dist/public/assets/w._-AQhK6cKs.js +1 -0
- package/dist/public/assets/w._-Cz4e5lzk.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_2vYIuIib.js +0 -1
- package/dist/public/assets/_BB0LITVp.js +0 -1
- package/dist/public/assets/_BIJpL70W.js +0 -1
- package/dist/public/assets/_BQi9QWKd.js +0 -1
- package/dist/public/assets/_BcEuKTJx.js +0 -1
- package/dist/public/assets/_Bsl8llqw.js +0 -1
- package/dist/public/assets/_BxQ_-xPH.js +0 -1
- package/dist/public/assets/_C-2aR8XG.js +0 -1
- package/dist/public/assets/_C3ym7hxu.js +0 -1
- package/dist/public/assets/_CUAQigw_.js +0 -83
- package/dist/public/assets/_CUAQigw_.js.br +0 -0
- package/dist/public/assets/_Cf-9k3zD.js +0 -1
- package/dist/public/assets/_Cjgj-pBB.js.br +0 -0
- package/dist/public/assets/_D66zCDkb.js +0 -1
- package/dist/public/assets/_DOiEoSai.js +0 -1
- package/dist/public/assets/_DfpiGKYM.js +0 -1
- package/dist/public/assets/_Jqsd_7oO.js +0 -1
- package/dist/public/assets/_SbAHZSQh.js +0 -1
- package/dist/public/assets/_YoOFMyGk.js +0 -1
- package/dist/public/assets/_dHGVn24e.js.br +0 -0
- package/dist/public/assets/_eF6YdkxU.js +0 -1
- package/dist/public/assets/_qEbnUCeE.js +0 -1
- package/dist/public/assets/_r5iIfsdp.js +0 -1
- package/dist/public/assets/app-page-D2BI9pqy.css.br +0 -0
- package/dist/public/assets/diff-view-CDR_rQOe.css.br +0 -0
- package/dist/public/assets/diff-view-CyDQspSd.js +0 -2
- package/dist/public/assets/icon-arrow-down-xhBqf52S.css.br +0 -0
- package/dist/public/assets/new-xKLJRIst.js +0 -1
- package/dist/public/assets/settings-xKLJRIst.js +0 -1
- package/dist/public/assets/w-xKLJRIst.js +0 -1
- package/dist/public/assets/w._-CaFh5fWn.js +0 -1
- package/dist/public/assets/w._-xKLJRIst.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6941,6 +6941,21 @@ function repoLabel(fullName) {
|
|
|
6941
6941
|
if (parts.length >= 3 && parts[0].includes(".") && parts[0] === primaryHost) return parts.slice(1).join("/");
|
|
6942
6942
|
return fullName;
|
|
6943
6943
|
}
|
|
6944
|
+
//#endregion
|
|
6945
|
+
//#region src/client/workspace-order.ts
|
|
6946
|
+
/** Can a workspace digit open it? A pending (restoring) row is in the list
|
|
6947
|
+
* but has nothing to mount yet, so it is skipped rather than given a number
|
|
6948
|
+
* it cannot use. */
|
|
6949
|
+
var openable = (ws) => ws.status === "active" && !ws.pending;
|
|
6950
|
+
/**
|
|
6951
|
+
* The workspaces ⌘/Ctrl+1–9 number, in the order the sidebar draws them.
|
|
6952
|
+
*
|
|
6953
|
+
* The nav sorts by name (see `side-nav`'s `sortedIds`) while the API hands
|
|
6954
|
+
* the shell its list newest-first, so indexing the raw array made the 3 key
|
|
6955
|
+
* open a different workspace than the row wearing the 3 badge. One list,
|
|
6956
|
+
* read by both the badge and the shortcut.
|
|
6957
|
+
*/
|
|
6958
|
+
var numbered = (all) => all.filter(openable).sort((a, b) => a.name.localeCompare(b.name));
|
|
6944
6959
|
var toastKind = {
|
|
6945
6960
|
error: "_bm",
|
|
6946
6961
|
warn: "_bn",
|
|
@@ -7252,19 +7267,19 @@ function applyInstance(inst) {
|
|
|
7252
7267
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7253
7268
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7254
7269
|
}
|
|
7255
|
-
var agentList = "
|
|
7256
|
-
var agentRow = "
|
|
7257
|
-
var toolGrid = "
|
|
7258
|
-
var toolRow = "
|
|
7259
|
-
var themeSeg = "
|
|
7260
|
-
var checkList = "
|
|
7261
|
-
var list$2 = "
|
|
7262
|
-
var flatCardRow = "
|
|
7263
|
-
var pop$1 = "
|
|
7264
|
-
var spinner = "
|
|
7265
|
-
var busy = "
|
|
7266
|
-
var pop = "
|
|
7267
|
-
var sectionCount = "
|
|
7270
|
+
var agentList = "_cY _ck _cL _cW";
|
|
7271
|
+
var agentRow = "_c2 _cM";
|
|
7272
|
+
var toolGrid = "_c_ _cW";
|
|
7273
|
+
var toolRow = "_da _cX";
|
|
7274
|
+
var themeSeg = "_dy _be";
|
|
7275
|
+
var checkList = "_d4 _ci";
|
|
7276
|
+
var list$2 = "_cY _ck _cL _cW";
|
|
7277
|
+
var flatCardRow = "_cZ _cX";
|
|
7278
|
+
var pop$1 = "_cH __";
|
|
7279
|
+
var spinner = "_cK _2 _G";
|
|
7280
|
+
var busy = "_cx _cw";
|
|
7281
|
+
var pop = "_cz __";
|
|
7282
|
+
var sectionCount = "_ch _N _O";
|
|
7268
7283
|
var iconBtn$1 = "_5 _l";
|
|
7269
7284
|
//#endregion
|
|
7270
7285
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7305,18 +7320,18 @@ var icon_back_default = _template("R", (input) => {
|
|
|
7305
7320
|
var page_head_default = _template("u", (input) => {
|
|
7306
7321
|
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);
|
|
7307
7322
|
const $scope0_id = _scope_id();
|
|
7308
|
-
_html(`<header${_attr_class("
|
|
7323
|
+
_html(`<header${_attr_class("_ea")}>`);
|
|
7309
7324
|
_if(() => {
|
|
7310
7325
|
if (input.backHref) {
|
|
7311
7326
|
const $scope1_id = _scope_id();
|
|
7312
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7327
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gY"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7313
7328
|
icon_back_default({ size: 14 });
|
|
7314
7329
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7315
7330
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7316
7331
|
return 0;
|
|
7317
7332
|
} else if (input.onBack) {
|
|
7318
7333
|
const $scope2_id = _scope_id();
|
|
7319
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7334
|
+
_html(`<button${_attr_class([iconBtnRow, "_gY"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7320
7335
|
icon_back_default({ size: 14 });
|
|
7321
7336
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7322
7337
|
_script($scope2_id, "u0");
|
|
@@ -7324,11 +7339,11 @@ var page_head_default = _template("u", (input) => {
|
|
|
7324
7339
|
return 1;
|
|
7325
7340
|
}
|
|
7326
7341
|
}, $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);
|
|
7327
|
-
_html(`<div${_attr_class("
|
|
7342
|
+
_html(`<div${_attr_class("_ec")}><h1${_attr("id", input.titleId)}${_attr_class("_eb")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7328
7343
|
_if(() => {
|
|
7329
7344
|
if (input.meta) {
|
|
7330
7345
|
const $scope3_id = _scope_id();
|
|
7331
|
-
_html(`<p${_attr_class("
|
|
7346
|
+
_html(`<p${_attr_class("_ed")}>`);
|
|
7332
7347
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7333
7348
|
_html("</p>");
|
|
7334
7349
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7339,7 +7354,7 @@ var page_head_default = _template("u", (input) => {
|
|
|
7339
7354
|
_if(() => {
|
|
7340
7355
|
if (input.actions) {
|
|
7341
7356
|
const $scope4_id = _scope_id();
|
|
7342
|
-
_html(`<div${_attr_class("
|
|
7357
|
+
_html(`<div${_attr_class("_ee")}>`);
|
|
7343
7358
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7344
7359
|
_html("</div>");
|
|
7345
7360
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7407,7 +7422,7 @@ var icon_agent_default = _template("L", (input) => {
|
|
|
7407
7422
|
n: $badge__closures
|
|
7408
7423
|
});
|
|
7409
7424
|
});
|
|
7410
|
-
var usageNote = "
|
|
7425
|
+
var usageNote = "_ha _X";
|
|
7411
7426
|
//#endregion
|
|
7412
7427
|
//#region src/tags/icons/icon-warning.marko
|
|
7413
7428
|
var icon_warning_default = _template("sb", (input) => {
|
|
@@ -7437,11 +7452,11 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7437
7452
|
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);
|
|
7438
7453
|
const $scope0_id = _scope_id();
|
|
7439
7454
|
const agent = input.agent;
|
|
7440
|
-
_html(`<div${_attr_class(["
|
|
7455
|
+
_html(`<div${_attr_class(["_g5", { ["_g6"]: input.hideName }])}><div${_attr_class("_g7")}>`);
|
|
7441
7456
|
_if(() => {
|
|
7442
7457
|
if (!input.hideName) {
|
|
7443
7458
|
const $scope1_id = _scope_id();
|
|
7444
|
-
_html(`<strong${_attr_class("
|
|
7459
|
+
_html(`<strong${_attr_class("_hp")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7445
7460
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7446
7461
|
return 0;
|
|
7447
7462
|
}
|
|
@@ -7449,7 +7464,7 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7449
7464
|
_if(() => {
|
|
7450
7465
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7451
7466
|
const $scope2_id = _scope_id();
|
|
7452
|
-
_html(`<span${_attr_class("
|
|
7467
|
+
_html(`<span${_attr_class("_g8")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7453
7468
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7454
7469
|
return 0;
|
|
7455
7470
|
}
|
|
@@ -7457,21 +7472,21 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7457
7472
|
_if(() => {
|
|
7458
7473
|
if (agent.stale_seconds != null) {
|
|
7459
7474
|
const $scope3_id = _scope_id();
|
|
7460
|
-
_html(`<span${_attr_class("
|
|
7475
|
+
_html(`<span${_attr_class("_g9")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7461
7476
|
icon_warning_default({ size: 12 });
|
|
7462
7477
|
_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)}`);
|
|
7463
7478
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7464
7479
|
return 0;
|
|
7465
7480
|
}
|
|
7466
7481
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7467
|
-
_html(`</div><div${_attr_class(["
|
|
7482
|
+
_html(`</div><div${_attr_class(["_g_", { ["_hq"]: agent.stale_seconds != null }])}>`);
|
|
7468
7483
|
_for_of(agent.windows || [], (win) => {
|
|
7469
7484
|
const $scope4_id = _scope_id();
|
|
7470
7485
|
const pct = pctText(win.used_percent);
|
|
7471
7486
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7472
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7473
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7474
|
-
_html(`<div${_attr_class("
|
|
7487
|
+
const fillClass = win.used_percent >= 90 ? "_hi" : win.used_percent >= 70 ? "_hh" : win.used_percent >= 40 ? "_hg" : "_hf";
|
|
7488
|
+
const pctClass = win.used_percent >= 90 ? "_hn" : win.used_percent >= 70 ? "_hm" : win.used_percent >= 40 ? "_hl" : "_hk";
|
|
7489
|
+
_html(`<div${_attr_class("_hb")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_hc")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hd")}><span${_attr_class(["_he", 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(["_hj", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_ho")}>`);
|
|
7475
7490
|
_if(() => {
|
|
7476
7491
|
if (label) {
|
|
7477
7492
|
const $scope6_id = _scope_id();
|
|
@@ -7588,14 +7603,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7588
7603
|
localCode = null;
|
|
7589
7604
|
}
|
|
7590
7605
|
}, "D0", $scope0_id);
|
|
7591
|
-
_html(`<div${_attr_class(["
|
|
7606
|
+
_html(`<div${_attr_class(["_gG", input.class])}>`);
|
|
7592
7607
|
_for_of(input.items, (s) => {
|
|
7593
7608
|
const $scope1_id = _scope_id();
|
|
7594
|
-
_html(`<div${_attr_class("
|
|
7609
|
+
_html(`<div${_attr_class("_gH")}><span${_attr_class("_gJ")}><span${_attr_class("_gK")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gL", "_gM"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7595
7610
|
_if(() => {
|
|
7596
7611
|
if (!busy) {
|
|
7597
7612
|
const $scope2_id = _scope_id();
|
|
7598
|
-
_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, "
|
|
7613
|
+
_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, "_gN"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7599
7614
|
_script($scope2_id, "D1");
|
|
7600
7615
|
writeScope($scope2_id, {});
|
|
7601
7616
|
return 0;
|
|
@@ -7610,13 +7625,13 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7610
7625
|
_if(() => {
|
|
7611
7626
|
if (localBusy && localCode) {
|
|
7612
7627
|
const $scope4_id = _scope_id();
|
|
7613
|
-
_html(`<div${_attr_class(["
|
|
7628
|
+
_html(`<div${_attr_class(["_gH", "_gO"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gP")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gQ")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7614
7629
|
_script($scope4_id, "D2");
|
|
7615
7630
|
writeScope($scope4_id, {});
|
|
7616
7631
|
return 0;
|
|
7617
7632
|
} else if (localBusy) {
|
|
7618
7633
|
const $scope6_id = _scope_id();
|
|
7619
|
-
_html(`<div${_attr_class(["
|
|
7634
|
+
_html(`<div${_attr_class(["_gH", "_gO"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7620
7635
|
writeScope($scope6_id, {});
|
|
7621
7636
|
return 1;
|
|
7622
7637
|
}
|
|
@@ -7624,14 +7639,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7624
7639
|
_if(() => {
|
|
7625
7640
|
if (localError) {
|
|
7626
7641
|
const $scope5_id = _scope_id();
|
|
7627
|
-
_html(`<p${_attr_class(["
|
|
7642
|
+
_html(`<p${_attr_class(["_gH", "_gR"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7628
7643
|
writeScope($scope5_id, {});
|
|
7629
7644
|
return 0;
|
|
7630
7645
|
}
|
|
7631
7646
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7632
7647
|
_for_of(skipped, (s) => {
|
|
7633
7648
|
const $scope3_id = _scope_id();
|
|
7634
|
-
_html(`<div${_attr_class(["
|
|
7649
|
+
_html(`<div${_attr_class(["_gH", "_gI"])}><span${_attr_class("_gJ")}><span${_attr_class("_gK")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gL")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gN"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7635
7650
|
_script($scope3_id, "D3");
|
|
7636
7651
|
writeScope($scope3_id, {
|
|
7637
7652
|
i: s?.org,
|
|
@@ -7699,7 +7714,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7699
7714
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7700
7715
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7701
7716
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7702
|
-
_html(`<li${_attr_class("
|
|
7717
|
+
_html(`<li${_attr_class("_cv")}>`);
|
|
7703
7718
|
_if(() => {
|
|
7704
7719
|
if (input.busy != null) {
|
|
7705
7720
|
const $scope1_id = _scope_id();
|
|
@@ -7709,20 +7724,20 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7709
7724
|
} else {
|
|
7710
7725
|
const $scope2_id = _scope_id();
|
|
7711
7726
|
const popId = _id();
|
|
7712
|
-
_html(`<button${_attr_class("
|
|
7727
|
+
_html(`<button${_attr_class("_cw")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7713
7728
|
_if(() => {
|
|
7714
7729
|
if (input.hint) {
|
|
7715
7730
|
const $scope3_id = _scope_id();
|
|
7716
|
-
_html(`<span${_attr_class("
|
|
7731
|
+
_html(`<span${_attr_class("_cy")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7717
7732
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7718
7733
|
return 0;
|
|
7719
7734
|
}
|
|
7720
7735
|
}, $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);
|
|
7721
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7736
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_cm", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7722
7737
|
_if(() => {
|
|
7723
7738
|
if (input.description) {
|
|
7724
7739
|
const $scope4_id = _scope_id();
|
|
7725
|
-
_html(`<span${_attr_class("
|
|
7740
|
+
_html(`<span${_attr_class("_co")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7726
7741
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7727
7742
|
return 0;
|
|
7728
7743
|
}
|
|
@@ -7730,12 +7745,12 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7730
7745
|
_if(() => {
|
|
7731
7746
|
if (input.sourceUrl) {
|
|
7732
7747
|
const $scope5_id = _scope_id();
|
|
7733
|
-
_html(`<a${_attr_class(["
|
|
7748
|
+
_html(`<a${_attr_class(["_co", "_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))}`);
|
|
7734
7749
|
$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) })));
|
|
7735
7750
|
return 0;
|
|
7736
7751
|
} else if (input.source) {
|
|
7737
7752
|
const $scope6_id = _scope_id();
|
|
7738
|
-
_html(`<span${_attr_class("
|
|
7753
|
+
_html(`<span${_attr_class("_co")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7739
7754
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7740
7755
|
_: _scope_with_id($scope2_id),
|
|
7741
7756
|
Cs: $si__input_source && 1
|
|
@@ -7743,7 +7758,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7743
7758
|
return 1;
|
|
7744
7759
|
} else if (input.noteLocal) {
|
|
7745
7760
|
const $scope10_id = _scope_id();
|
|
7746
|
-
_html(`<span${_attr_class(["
|
|
7761
|
+
_html(`<span${_attr_class(["_co", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7747
7762
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7748
7763
|
return 2;
|
|
7749
7764
|
}
|
|
@@ -7751,7 +7766,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7751
7766
|
_if(() => {
|
|
7752
7767
|
if (input.tags) {
|
|
7753
7768
|
const $scope7_id = _scope_id();
|
|
7754
|
-
_html(`<span${_attr_class("
|
|
7769
|
+
_html(`<span${_attr_class("_cn")}>`);
|
|
7755
7770
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7756
7771
|
_html("</span>");
|
|
7757
7772
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7761,7 +7776,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7761
7776
|
_if(() => {
|
|
7762
7777
|
if (input.actions) {
|
|
7763
7778
|
const $scope8_id = _scope_id();
|
|
7764
|
-
_html(`<div${_attr_class("
|
|
7779
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
7765
7780
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7766
7781
|
_html("</div>");
|
|
7767
7782
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7872,7 +7887,7 @@ var icon_moon_default = _template("jb", (input) => {
|
|
|
7872
7887
|
});
|
|
7873
7888
|
//#endregion
|
|
7874
7889
|
//#region src/tags/prompt-dialog.css.ts
|
|
7875
|
-
var promptDlg = "
|
|
7890
|
+
var promptDlg = "_gX _gT";
|
|
7876
7891
|
//#endregion
|
|
7877
7892
|
//#region src/tags/dialog-close.marko
|
|
7878
7893
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7896,7 +7911,7 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7896
7911
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
7897
7912
|
const dismissable = input.dismissable !== false;
|
|
7898
7913
|
let open = input.open;
|
|
7899
|
-
_html(`<dialog${_attr_class(["
|
|
7914
|
+
_html(`<dialog${_attr_class(["_gS", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7900
7915
|
...htmlInput,
|
|
7901
7916
|
open: null
|
|
7902
7917
|
}, {
|
|
@@ -7906,20 +7921,20 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7906
7921
|
closedby: 1,
|
|
7907
7922
|
"on-cancel": 1,
|
|
7908
7923
|
"on-close": 1
|
|
7909
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7924
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_gV")}>`);
|
|
7910
7925
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7911
7926
|
_html("</div>");
|
|
7912
7927
|
_if(() => {
|
|
7913
7928
|
if (footer) {
|
|
7914
7929
|
const $scope1_id = _scope_id();
|
|
7915
|
-
_html(`<form method=dialog${_attr_class("
|
|
7930
|
+
_html(`<form method=dialog${_attr_class("_gW")}>`);
|
|
7916
7931
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7917
7932
|
_html("</form>");
|
|
7918
7933
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7919
7934
|
return 0;
|
|
7920
7935
|
} else if (input.openChange) {
|
|
7921
7936
|
const $scope2_id = _scope_id();
|
|
7922
|
-
_html(`<form method=dialog${_attr_class("
|
|
7937
|
+
_html(`<form method=dialog${_attr_class("_gW")}>`);
|
|
7923
7938
|
dialog_close_default({
|
|
7924
7939
|
class: ["_q", "_r"],
|
|
7925
7940
|
content: _content("s0", () => {
|
|
@@ -8003,7 +8018,7 @@ var prompt_dialog_default = _template("v", (input) => {
|
|
|
8003
8018
|
content: _content("v7", () => {
|
|
8004
8019
|
_scope_reason();
|
|
8005
8020
|
const $scope2_id = _scope_id();
|
|
8006
|
-
_html(`<h2${_attr_class("
|
|
8021
|
+
_html(`<h2${_attr_class("_gU")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
8007
8022
|
value = _new_value;
|
|
8008
8023
|
}, "v0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8009
8024
|
_script($scope2_id, "v5");
|
|
@@ -8525,7 +8540,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8525
8540
|
const githubId = _id();
|
|
8526
8541
|
const backupId = _id();
|
|
8527
8542
|
const machineId = _id();
|
|
8528
|
-
_html(`<div${_attr_class("
|
|
8543
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
8529
8544
|
_set_serialize_reason({
|
|
8530
8545
|
0: _serialize_guard($scope0_reason, 4),
|
|
8531
8546
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8537,7 +8552,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8537
8552
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("y44", () => {
|
|
8538
8553
|
_scope_reason();
|
|
8539
8554
|
const $scope4_id = _scope_id();
|
|
8540
|
-
_html(`<span${_attr_class("
|
|
8555
|
+
_html(`<span${_attr_class("_c1")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8541
8556
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8542
8557
|
_resume_branch($scope4_id);
|
|
8543
8558
|
}, $scope0_id) });
|
|
@@ -8590,16 +8605,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8590
8605
|
_if(() => {
|
|
8591
8606
|
if (selfUpdatePending || selfUpdating) {
|
|
8592
8607
|
const $scope44_id = _scope_id();
|
|
8593
|
-
_html(`<div${_attr_class("
|
|
8608
|
+
_html(`<div${_attr_class("_dC")} role=status><div${_attr_class("_dD")}>`);
|
|
8594
8609
|
_if(() => {
|
|
8595
8610
|
if (selfUpdating) {
|
|
8596
8611
|
const $scope79_id = _scope_id();
|
|
8597
|
-
_html(`<span${_attr_class("
|
|
8612
|
+
_html(`<span${_attr_class("_dE")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dF")}>The app restarts and reloads when it is done.</span>`);
|
|
8598
8613
|
writeScope($scope79_id, {});
|
|
8599
8614
|
return 0;
|
|
8600
8615
|
} else {
|
|
8601
8616
|
const $scope45_id = _scope_id();
|
|
8602
|
-
_html(`<span${_attr_class("
|
|
8617
|
+
_html(`<span${_attr_class("_dE")}>Update available</span><span${_attr_class("_dF")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8603
8618
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8604
8619
|
return 1;
|
|
8605
8620
|
}
|
|
@@ -8618,11 +8633,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8618
8633
|
return 0;
|
|
8619
8634
|
}
|
|
8620
8635
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8621
|
-
_html(`<section${_attr_class("
|
|
8636
|
+
_html(`<section${_attr_class("_cf")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_cg")}><h2${_attr("id", agentsId)}${_attr_class("_ct")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_c3")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8622
8637
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8623
8638
|
setPreferred(v);
|
|
8624
8639
|
}, "y2", $scope0_id), () => {
|
|
8625
|
-
_html(`<select${_attr_class(["_p", "
|
|
8640
|
+
_html(`<select${_attr_class(["_p", "_c4"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8626
8641
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8627
8642
|
const $scope80_id = _scope_id();
|
|
8628
8643
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope80_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope80_id, "a", $sg__input_agents)}`);
|
|
@@ -8636,14 +8651,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8636
8651
|
const rows = lone ? [] : a.instances;
|
|
8637
8652
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8638
8653
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8639
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8654
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_c5", { ["_c7"]: lone && !lone.enabled }])}>`);
|
|
8640
8655
|
_set_serialize_reason(12);
|
|
8641
8656
|
const $childScope3 = _peek_scope_id();
|
|
8642
8657
|
icon_agent_default({
|
|
8643
8658
|
agent: a.id,
|
|
8644
8659
|
size: 18
|
|
8645
8660
|
});
|
|
8646
|
-
_html(`<div${_attr_class("
|
|
8661
|
+
_html(`<div${_attr_class("_cl")}><span${_attr_class("_cn")}><span${_attr_class("_cm")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8647
8662
|
_if(() => {
|
|
8648
8663
|
if (lone && input$3.preferred === lone.id) {
|
|
8649
8664
|
const $scope81_id = _scope_id();
|
|
@@ -8656,12 +8671,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8656
8671
|
_if(() => {
|
|
8657
8672
|
if (active.has(a.id)) {
|
|
8658
8673
|
const $scope12_id = _scope_id();
|
|
8659
|
-
_html(`<span${_attr_class("
|
|
8674
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8660
8675
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8661
8676
|
return 0;
|
|
8662
8677
|
} else if (!a.installed) {
|
|
8663
8678
|
const $scope82_id = _scope_id();
|
|
8664
|
-
_html(`<span${_attr_class("
|
|
8679
|
+
_html(`<span${_attr_class("_co")}>Not installed</span>`);
|
|
8665
8680
|
writeScope($scope82_id, {});
|
|
8666
8681
|
return 1;
|
|
8667
8682
|
}
|
|
@@ -8689,15 +8704,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8689
8704
|
_if(() => {
|
|
8690
8705
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8691
8706
|
const $scope2_id = _scope_id();
|
|
8692
|
-
_html(`<ul${_attr_class(["
|
|
8707
|
+
_html(`<ul${_attr_class(["_c9", { ["_c7"]: lone && !lone.enabled }])}>`);
|
|
8693
8708
|
_for_of(rows, (inst) => {
|
|
8694
8709
|
const $scope3_id = _scope_id();
|
|
8695
8710
|
const accounts = accountsFor(inst.id);
|
|
8696
|
-
_html(`<li${_attr_class(["
|
|
8711
|
+
_html(`<li${_attr_class(["_c6", { ["_c7"]: !inst.enabled }])}><div${_attr_class("_c5")}>`);
|
|
8697
8712
|
_set_serialize_reason(12);
|
|
8698
8713
|
const $childScope4 = _peek_scope_id();
|
|
8699
8714
|
icon_agent_default({ agent: inst.id });
|
|
8700
|
-
_html(`<span${_attr_class(["
|
|
8715
|
+
_html(`<span${_attr_class(["_c8", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8701
8716
|
_if(() => {
|
|
8702
8717
|
if (input$3.preferred === inst.id) {
|
|
8703
8718
|
const $scope83_id = _scope_id();
|
|
@@ -8779,21 +8794,21 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8779
8794
|
_if(() => {
|
|
8780
8795
|
if (!usage && families.length) {
|
|
8781
8796
|
const $scope88_id = _scope_id();
|
|
8782
|
-
_html(`<p${_attr_class("
|
|
8797
|
+
_html(`<p${_attr_class("_cq")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8783
8798
|
writeScope($scope88_id, {});
|
|
8784
8799
|
return 0;
|
|
8785
8800
|
} else if (usage?.error) {
|
|
8786
8801
|
const $scope8_id = _scope_id();
|
|
8787
|
-
_html(`<p${_attr_class("
|
|
8802
|
+
_html(`<p${_attr_class("_cq")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8788
8803
|
writeScope($scope8_id, {});
|
|
8789
8804
|
return 1;
|
|
8790
8805
|
}
|
|
8791
8806
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8792
|
-
_html(`</section><section${_attr_class("
|
|
8807
|
+
_html(`</section><section${_attr_class("_cf")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_cg")}><h2${_attr("id", githubId)}${_attr_class("_ct")}>GitHub</h2>`);
|
|
8793
8808
|
_if(() => {
|
|
8794
8809
|
if (setup && !addingHost) {
|
|
8795
8810
|
const $scope42_id = _scope_id();
|
|
8796
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8811
|
+
_html(`<button${_attr_class([iconBtnRow, "_dh"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8797
8812
|
icon_plus_default({ size: 16 });
|
|
8798
8813
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8799
8814
|
_script($scope42_id, "y51");
|
|
@@ -8805,10 +8820,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8805
8820
|
if (setup) {
|
|
8806
8821
|
const $scope41_id = _scope_id();
|
|
8807
8822
|
_html(`<form${_attr_class([
|
|
8808
|
-
"
|
|
8809
|
-
"
|
|
8810
|
-
{ ["
|
|
8811
|
-
])}><label${_attr_class(["_1", "
|
|
8823
|
+
"_cB",
|
|
8824
|
+
"_dh",
|
|
8825
|
+
{ ["_cC"]: !addingHost }
|
|
8826
|
+
])}><label${_attr_class(["_1", "_cE"])}>`);
|
|
8812
8827
|
icon_github_default({
|
|
8813
8828
|
size: 14,
|
|
8814
8829
|
class: "_2"
|
|
@@ -8818,12 +8833,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8818
8833
|
}, "y3", $scope41_id))}${_attr_class([
|
|
8819
8834
|
"_Z",
|
|
8820
8835
|
"_3",
|
|
8821
|
-
"
|
|
8836
|
+
"_cF"
|
|
8822
8837
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8823
8838
|
btnSm,
|
|
8824
8839
|
"_r",
|
|
8825
|
-
"
|
|
8826
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
8840
|
+
"_dg"
|
|
8841
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "_cG"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8827
8842
|
icon_xmark_default({ size: 14 });
|
|
8828
8843
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8829
8844
|
_script($scope41_id, "y52");
|
|
@@ -8831,19 +8846,19 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8831
8846
|
return 0;
|
|
8832
8847
|
}
|
|
8833
8848
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8834
|
-
_html(`</div><div${_attr_class(["
|
|
8849
|
+
_html(`</div><div${_attr_class(["_ck", "_cL"])}>`);
|
|
8835
8850
|
_for_of(setup?.github || [], (h) => {
|
|
8836
8851
|
const $scope6_id = _scope_id();
|
|
8837
8852
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8838
8853
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8839
8854
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8840
8855
|
const busy = active.has(h.host);
|
|
8841
|
-
_html(`<div${_attr_class(["
|
|
8856
|
+
_html(`<div${_attr_class(["_cM", "_di"])}><div${_attr_class("_dj")}>`);
|
|
8842
8857
|
icon_github_default({
|
|
8843
8858
|
size: 18,
|
|
8844
|
-
class: "
|
|
8859
|
+
class: "_dk"
|
|
8845
8860
|
});
|
|
8846
|
-
_html(`<div${_attr_class("
|
|
8861
|
+
_html(`<div${_attr_class("_cl")}><span${_attr_class("_cn")}><span${_attr_class("_cm")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8847
8862
|
_if(() => {
|
|
8848
8863
|
if (h.isEnterprise) {
|
|
8849
8864
|
const $scope91_id = _scope_id();
|
|
@@ -8856,25 +8871,25 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8856
8871
|
_if(() => {
|
|
8857
8872
|
if (busy) {
|
|
8858
8873
|
const $scope13_id = _scope_id();
|
|
8859
|
-
_html(`<span${_attr_class(["
|
|
8874
|
+
_html(`<span${_attr_class(["_co", "_dl"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8860
8875
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8861
8876
|
return 0;
|
|
8862
8877
|
} else if (h.authed) {
|
|
8863
8878
|
const $scope89_id = _scope_id();
|
|
8864
|
-
_html(`<span${_attr_class(["
|
|
8879
|
+
_html(`<span${_attr_class(["_co", "_dl"])}>`);
|
|
8865
8880
|
icon_check_default({
|
|
8866
8881
|
size: 12,
|
|
8867
|
-
class: "
|
|
8882
|
+
class: "_dm"
|
|
8868
8883
|
});
|
|
8869
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8884
|
+
_html(` Signed in as <strong${_attr_class("_do")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8870
8885
|
writeScope($scope89_id, {});
|
|
8871
8886
|
return 1;
|
|
8872
8887
|
} else if (h.error) {
|
|
8873
8888
|
const $scope90_id = _scope_id();
|
|
8874
8889
|
_html(`<span${_attr_class([
|
|
8875
|
-
"
|
|
8876
|
-
"
|
|
8877
|
-
"
|
|
8890
|
+
"_co",
|
|
8891
|
+
"_dl",
|
|
8892
|
+
"_dn"
|
|
8878
8893
|
])}>`);
|
|
8879
8894
|
icon_warning_default({ size: 12 });
|
|
8880
8895
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8882,7 +8897,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8882
8897
|
return 2;
|
|
8883
8898
|
} else {
|
|
8884
8899
|
const $scope92_id = _scope_id();
|
|
8885
|
-
_html(`<span${_attr_class(["
|
|
8900
|
+
_html(`<span${_attr_class(["_co", "_dl"])}>Not signed in</span>`);
|
|
8886
8901
|
writeScope($scope92_id, {});
|
|
8887
8902
|
return 3;
|
|
8888
8903
|
}
|
|
@@ -8913,7 +8928,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8913
8928
|
if (h.isEnterprise) {
|
|
8914
8929
|
const $scope33_id = _scope_id();
|
|
8915
8930
|
_html(`<button${_attr_class([
|
|
8916
|
-
"
|
|
8931
|
+
"_cp",
|
|
8917
8932
|
"_8",
|
|
8918
8933
|
"_9",
|
|
8919
8934
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8947,7 +8962,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8947
8962
|
_if(() => {
|
|
8948
8963
|
if (busy && authCodes.has(h.host)) {
|
|
8949
8964
|
const $scope30_id = _scope_id();
|
|
8950
|
-
_html(`<div${_attr_class("
|
|
8965
|
+
_html(`<div${_attr_class("_dp")}><span${_attr_class("_dq")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_ds")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_dr")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8951
8966
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8952
8967
|
return 0;
|
|
8953
8968
|
}
|
|
@@ -8959,7 +8974,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8959
8974
|
_set_serialize_reason(30);
|
|
8960
8975
|
const $childScope9 = _peek_scope_id();
|
|
8961
8976
|
sso_auth_default({
|
|
8962
|
-
class: ["
|
|
8977
|
+
class: ["_cM", "_dt"],
|
|
8963
8978
|
items: hostSso$1,
|
|
8964
8979
|
skipped: skippedSso,
|
|
8965
8980
|
busy,
|
|
@@ -8993,23 +9008,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8993
9008
|
_if(() => {
|
|
8994
9009
|
if (setup && !setup.github.length) {
|
|
8995
9010
|
const $scope95_id = _scope_id();
|
|
8996
|
-
_html(`<p${_attr_class("
|
|
9011
|
+
_html(`<p${_attr_class("_cq")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8997
9012
|
writeScope($scope95_id, {});
|
|
8998
9013
|
return 0;
|
|
8999
9014
|
}
|
|
9000
9015
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
9001
|
-
_html(`</section><section${_attr_class("
|
|
9016
|
+
_html(`</section><section${_attr_class("_cf")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_cg")}><h2${_attr("id", machineId)}${_attr_class("_ct")}>Machine</h2></div><div${_attr_class(["_ck", "_cL"])}><div${_attr_class(["_cM", "_cN"])}><div${_attr_class(["_cO", { ["_cP"]: skillsOpen }])}><button${_attr_class("_cQ")} aria-expanded=true>`);
|
|
9002
9017
|
_set_serialize_reason(1);
|
|
9003
9018
|
const $childScope10 = _peek_scope_id();
|
|
9004
9019
|
icon_chevron_right_default({
|
|
9005
9020
|
size: 12,
|
|
9006
|
-
class: ["
|
|
9021
|
+
class: ["_cU", { ["_cV"]: skillsOpen }]
|
|
9007
9022
|
});
|
|
9008
|
-
_html(`<span${_attr_class("
|
|
9023
|
+
_html(`<span${_attr_class("_cR")}>Skills</span>`);
|
|
9009
9024
|
_if(() => {
|
|
9010
9025
|
if (skills?.global.length) {
|
|
9011
9026
|
const $scope51_id = _scope_id();
|
|
9012
|
-
_html(`<span${_attr_class("
|
|
9027
|
+
_html(`<span${_attr_class("_cS")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9013
9028
|
writeScope($scope51_id, {});
|
|
9014
9029
|
return 0;
|
|
9015
9030
|
}
|
|
@@ -9029,7 +9044,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9029
9044
|
_if(() => {
|
|
9030
9045
|
if (skills?.available && skills.agents.length) {
|
|
9031
9046
|
const $scope14_id = _scope_id();
|
|
9032
|
-
_html(`<div${_attr_class(["
|
|
9047
|
+
_html(`<div${_attr_class(["_cB", { ["_cC"]: true }])}><label${_attr_class(["_1", "_cE"])}>`);
|
|
9033
9048
|
_if(() => {
|
|
9034
9049
|
if (skillSearching) {
|
|
9035
9050
|
const $scope96_id = _scope_id();
|
|
@@ -9049,14 +9064,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9049
9064
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9050
9065
|
"_Z",
|
|
9051
9066
|
"_3",
|
|
9052
|
-
"
|
|
9053
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9067
|
+
"_cF"
|
|
9068
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_cG"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9054
9069
|
icon_xmark_default({ size: 14 });
|
|
9055
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9070
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_cI"])}${_attr("hidden", true)}>`);
|
|
9056
9071
|
_if(() => {
|
|
9057
9072
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9058
9073
|
const $scope98_id = _scope_id();
|
|
9059
|
-
_html(`<li${_attr_class("
|
|
9074
|
+
_html(`<li${_attr_class("_cJ")}>Searching skills.sh…</li>`);
|
|
9060
9075
|
writeScope($scope98_id, {});
|
|
9061
9076
|
return 0;
|
|
9062
9077
|
}
|
|
@@ -9064,11 +9079,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9064
9079
|
_if(() => {
|
|
9065
9080
|
if (looksLikeSource(skillQuery)) {
|
|
9066
9081
|
const $scope15_id = _scope_id();
|
|
9067
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9082
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9068
9083
|
_if(() => {
|
|
9069
9084
|
if (active.has(skillQuery.trim())) {
|
|
9070
9085
|
const $scope16_id = _scope_id();
|
|
9071
|
-
_html(`<span${_attr_class("
|
|
9086
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9072
9087
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9073
9088
|
Ch2: 3,
|
|
9074
9089
|
Chr: 1
|
|
@@ -9076,7 +9091,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9076
9091
|
return 0;
|
|
9077
9092
|
} else {
|
|
9078
9093
|
const $scope99_id = _scope_id();
|
|
9079
|
-
_html(`<span${_attr_class("
|
|
9094
|
+
_html(`<span${_attr_class("_co")}>Add straight from this source</span>`);
|
|
9080
9095
|
writeScope($scope99_id, {});
|
|
9081
9096
|
return 1;
|
|
9082
9097
|
}
|
|
@@ -9099,16 +9114,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9099
9114
|
_for_of(skillHits || [], (h) => {
|
|
9100
9115
|
const $scope17_id = _scope_id();
|
|
9101
9116
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9102
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9117
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9103
9118
|
_if(() => {
|
|
9104
9119
|
if (active.has(h.skillId)) {
|
|
9105
9120
|
const $scope18_id = _scope_id();
|
|
9106
|
-
_html(`<span${_attr_class("
|
|
9121
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9107
9122
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9108
9123
|
return 0;
|
|
9109
9124
|
} else {
|
|
9110
9125
|
const $scope100_id = _scope_id();
|
|
9111
|
-
_html(`<span${_attr_class("
|
|
9126
|
+
_html(`<span${_attr_class("_co")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9112
9127
|
writeScope($scope100_id, {});
|
|
9113
9128
|
return 1;
|
|
9114
9129
|
}
|
|
@@ -9156,7 +9171,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9156
9171
|
_if(() => {
|
|
9157
9172
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9158
9173
|
const $scope53_id = _scope_id();
|
|
9159
|
-
_html(`<li${_attr_class("
|
|
9174
|
+
_html(`<li${_attr_class("_cJ")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9160
9175
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9161
9176
|
return 0;
|
|
9162
9177
|
}
|
|
@@ -9171,22 +9186,22 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9171
9186
|
_if(() => {
|
|
9172
9187
|
{
|
|
9173
9188
|
const $scope19_id = _scope_id();
|
|
9174
|
-
_html(`<div${_attr_class("
|
|
9189
|
+
_html(`<div${_attr_class("_cT")}>`);
|
|
9175
9190
|
_if(() => {
|
|
9176
9191
|
if (skills && !skills.agents.length) {
|
|
9177
9192
|
const $scope103_id = _scope_id();
|
|
9178
|
-
_html(`<p${_attr_class("
|
|
9193
|
+
_html(`<p${_attr_class("_cq")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9179
9194
|
writeScope($scope103_id, {});
|
|
9180
9195
|
return 0;
|
|
9181
9196
|
} else if (skills && !skills.available) {
|
|
9182
9197
|
const $scope20_id = _scope_id();
|
|
9183
|
-
_html(`<p${_attr_class("
|
|
9198
|
+
_html(`<p${_attr_class("_cq")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope20_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope20_id, "b")}</p>`);
|
|
9184
9199
|
_script($scope20_id, "y60");
|
|
9185
9200
|
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9186
9201
|
return 1;
|
|
9187
9202
|
}
|
|
9188
9203
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9189
|
-
_html(`<ul${_attr_class("
|
|
9204
|
+
_html(`<ul${_attr_class("_cu")}>`);
|
|
9190
9205
|
_for_of(skills?.global || [], (s) => {
|
|
9191
9206
|
const $scope21_id = _scope_id();
|
|
9192
9207
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9262,7 +9277,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9262
9277
|
_if(() => {
|
|
9263
9278
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9264
9279
|
const $scope108_id = _scope_id();
|
|
9265
|
-
_html(`<p${_attr_class("
|
|
9280
|
+
_html(`<p${_attr_class("_cq")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9266
9281
|
writeScope($scope108_id, {});
|
|
9267
9282
|
return 0;
|
|
9268
9283
|
}
|
|
@@ -9272,14 +9287,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9272
9287
|
return 0;
|
|
9273
9288
|
}
|
|
9274
9289
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9275
|
-
_html(`</div><div${_attr_class(["
|
|
9290
|
+
_html(`</div><div${_attr_class(["_cM", "_cN"])}><div${_attr_class(["_cO", { ["_cP"]: machineOpen }])}><button${_attr_class("_cQ")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9276
9291
|
_set_serialize_reason(1);
|
|
9277
9292
|
const $childScope12 = _peek_scope_id();
|
|
9278
9293
|
icon_chevron_right_default({
|
|
9279
9294
|
size: 12,
|
|
9280
|
-
class: ["
|
|
9295
|
+
class: ["_cU", { ["_cV"]: machineOpen }]
|
|
9281
9296
|
});
|
|
9282
|
-
_html(`<span${_attr_class("
|
|
9297
|
+
_html(`<span${_attr_class("_cR")}>Tools</span><span${_attr_class("_cS")}>${_text_resume($scope0_id, "ai", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "aj", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "ak", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
9283
9298
|
_if(() => {
|
|
9284
9299
|
if (outdatedIds.length > 1) {
|
|
9285
9300
|
const $scope22_id = _scope_id();
|
|
@@ -9312,7 +9327,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9312
9327
|
_if(() => {
|
|
9313
9328
|
if (setup && setup.mise.installed) {
|
|
9314
9329
|
const $scope24_id = _scope_id();
|
|
9315
|
-
_html(`<div${_attr_class(["
|
|
9330
|
+
_html(`<div${_attr_class(["_cB", { ["_cC"]: true }])}><label${_attr_class(["_1", "_cE"])}>`);
|
|
9316
9331
|
_if(() => {
|
|
9317
9332
|
if (searching) {
|
|
9318
9333
|
const $scope109_id = _scope_id();
|
|
@@ -9332,14 +9347,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9332
9347
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9333
9348
|
"_Z",
|
|
9334
9349
|
"_3",
|
|
9335
|
-
"
|
|
9336
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9350
|
+
"_cF"
|
|
9351
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_cG"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9337
9352
|
icon_xmark_default({ size: 14 });
|
|
9338
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9353
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_cI"])}${_attr("hidden", true)}>`);
|
|
9339
9354
|
_if(() => {
|
|
9340
9355
|
if (searching && !hits?.length) {
|
|
9341
9356
|
const $scope111_id = _scope_id();
|
|
9342
|
-
_html(`<li${_attr_class("
|
|
9357
|
+
_html(`<li${_attr_class("_cJ")}>Searching the mise registry…</li>`);
|
|
9343
9358
|
writeScope($scope111_id, {});
|
|
9344
9359
|
return 0;
|
|
9345
9360
|
}
|
|
@@ -9347,23 +9362,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9347
9362
|
_if(() => {
|
|
9348
9363
|
if (hits && !hits.length && !searching) {
|
|
9349
9364
|
const $scope43_id = _scope_id();
|
|
9350
|
-
_html(`<li${_attr_class("
|
|
9365
|
+
_html(`<li${_attr_class("_cJ")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9351
9366
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9352
9367
|
return 0;
|
|
9353
9368
|
}
|
|
9354
9369
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9355
9370
|
_for_of(hits || [], (h) => {
|
|
9356
9371
|
const $scope25_id = _scope_id();
|
|
9357
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9372
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9358
9373
|
_if(() => {
|
|
9359
9374
|
if (active.has(h.name)) {
|
|
9360
9375
|
const $scope26_id = _scope_id();
|
|
9361
|
-
_html(`<span${_attr_class("
|
|
9376
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9362
9377
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9363
9378
|
return 0;
|
|
9364
9379
|
} else if (h.description) {
|
|
9365
9380
|
const $scope112_id = _scope_id();
|
|
9366
|
-
_html(`<span${_attr_class("
|
|
9381
|
+
_html(`<span${_attr_class("_co")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9367
9382
|
writeScope($scope112_id, {});
|
|
9368
9383
|
return 1;
|
|
9369
9384
|
}
|
|
@@ -9408,11 +9423,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9408
9423
|
_if(() => {
|
|
9409
9424
|
if (machineOpen) {
|
|
9410
9425
|
const $scope5_id = _scope_id();
|
|
9411
|
-
_html(`<div${_attr_class("
|
|
9426
|
+
_html(`<div${_attr_class("_cT")}>`);
|
|
9412
9427
|
_if(() => {
|
|
9413
9428
|
if (setup && !setup.mise.installed) {
|
|
9414
9429
|
const $scope27_id = _scope_id();
|
|
9415
|
-
_html(`<p${_attr_class("
|
|
9430
|
+
_html(`<p${_attr_class("_cq")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope27_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope27_id, "b")}</p>`);
|
|
9416
9431
|
_script($scope27_id, "y71");
|
|
9417
9432
|
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9418
9433
|
return 0;
|
|
@@ -9422,11 +9437,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9422
9437
|
_if(() => {
|
|
9423
9438
|
if (self) {
|
|
9424
9439
|
const $scope47_id = _scope_id();
|
|
9425
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9440
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dc", "_y"])}>work</span>`);
|
|
9426
9441
|
_if(() => {
|
|
9427
9442
|
if (selfUpdating) {
|
|
9428
9443
|
const $scope114_id = _scope_id();
|
|
9429
|
-
_html(`<span${_attr_class("
|
|
9444
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9430
9445
|
writeScope($scope114_id, {});
|
|
9431
9446
|
return 0;
|
|
9432
9447
|
} else {
|
|
@@ -9440,7 +9455,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9440
9455
|
return 0;
|
|
9441
9456
|
} else if (self.latest && self.latest !== self.version) {
|
|
9442
9457
|
const $scope49_id = _scope_id();
|
|
9443
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9458
|
+
_html(`<button${_attr_class([btnSm, "_df"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9444
9459
|
icon_arrow_up_default({ size: 12 });
|
|
9445
9460
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9446
9461
|
_script($scope49_id, "y72");
|
|
@@ -9484,11 +9499,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9484
9499
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9485
9500
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9486
9501
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9487
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9502
|
+
_html(`<li${_attr_class([toolRow, { ["_db"]: !t.installed }])}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9488
9503
|
_if(() => {
|
|
9489
9504
|
if (active.has(t.id)) {
|
|
9490
9505
|
const $scope29_id = _scope_id();
|
|
9491
|
-
_html(`<span${_attr_class("
|
|
9506
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9492
9507
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9493
9508
|
return 0;
|
|
9494
9509
|
} else if (t.installed) {
|
|
@@ -9496,11 +9511,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9496
9511
|
_if(() => {
|
|
9497
9512
|
if (t.version) {
|
|
9498
9513
|
const $scope40_id = _scope_id();
|
|
9499
|
-
_html(`<button${_attr_class(["
|
|
9514
|
+
_html(`<button${_attr_class(["_de", "_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)}`);
|
|
9500
9515
|
_if(() => {
|
|
9501
9516
|
if (aliasPin(t)) {
|
|
9502
9517
|
const $scope118_id = _scope_id();
|
|
9503
|
-
_html(`<span${_attr_class("
|
|
9518
|
+
_html(`<span${_attr_class("_dd")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9504
9519
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9505
9520
|
return 0;
|
|
9506
9521
|
}
|
|
@@ -9519,7 +9534,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9519
9534
|
_if(() => {
|
|
9520
9535
|
if (outdated(t)) {
|
|
9521
9536
|
const $scope59_id = _scope_id();
|
|
9522
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9537
|
+
_html(`<button${_attr_class([btnSm, "_df"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9523
9538
|
icon_arrow_up_default({ size: 12 });
|
|
9524
9539
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9525
9540
|
_script($scope59_id, "y74");
|
|
@@ -9527,7 +9542,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9527
9542
|
return 0;
|
|
9528
9543
|
} else if (t.newest) {
|
|
9529
9544
|
const $scope60_id = _scope_id();
|
|
9530
|
-
_html(`<button${_attr_class(["
|
|
9545
|
+
_html(`<button${_attr_class(["_de", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
|
|
9531
9546
|
_script($scope60_id, "y75");
|
|
9532
9547
|
_subscribe($for_content7__t_newest__closures, _subscribe($for_content7__t_pin__closures, _subscribe($for_content7__t_version__closures, _subscribe($for_content7__t_label__closures, writeScope($scope60_id, {
|
|
9533
9548
|
Cw: 1,
|
|
@@ -9643,14 +9658,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9643
9658
|
label: "Dark"
|
|
9644
9659
|
}
|
|
9645
9660
|
];
|
|
9646
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9661
|
+
_html(`</div></div></section><section${_attr_class("_cf")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_cg")}><h2${_attr("id", appearanceId)}${_attr_class("_ct")}>Appearance</h2></div><div${_attr_class(["_ck", "_du"])}><div${_attr_class("_dG")}><img${_attr_class("_dH")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}<span${_attr_class("_dI")}><span${_attr_class("_dJ")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dK")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dv")}><span${_attr_class("_dw")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9647
9662
|
setInstance({ name: v });
|
|
9648
|
-
}, "y4", $scope0_id))}${_attr_class(["_Z", "
|
|
9663
|
+
}, "y4", $scope0_id))}${_attr_class(["_Z", "_dx"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dv")}><span${_attr_class("_dw")}>Theme</span><span${_attr_class("_dz")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9649
9664
|
_for_of(themeOpts, (opt) => {
|
|
9650
9665
|
const $scope50_id = _scope_id();
|
|
9651
9666
|
_html(`<button type=button${_attr_class([
|
|
9652
9667
|
"_bg",
|
|
9653
|
-
"
|
|
9668
|
+
"_dL",
|
|
9654
9669
|
{ ["_bf"]: themeMode === opt.id }
|
|
9655
9670
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9656
9671
|
if (opt.id === "system") {
|
|
@@ -9670,28 +9685,28 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9670
9685
|
_: _scope_with_id($scope0_id)
|
|
9671
9686
|
});
|
|
9672
9687
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9673
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9688
|
+
_html(`</span><span${_attr_class(["_o", "_dA"])}>`);
|
|
9674
9689
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9675
9690
|
setThemeMode(v);
|
|
9676
9691
|
}, "y5", $scope0_id), () => {
|
|
9677
|
-
_html(`<select${_attr_class(["_p", "
|
|
9692
|
+
_html(`<select${_attr_class(["_p", "_dB"])} aria-label="Color theme">`);
|
|
9678
9693
|
forOf(themeOpts, (opt) => {
|
|
9679
9694
|
_scope_id();
|
|
9680
9695
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9681
9696
|
});
|
|
9682
9697
|
_html("</select>");
|
|
9683
9698
|
});
|
|
9684
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9685
|
-
"
|
|
9686
|
-
"
|
|
9687
|
-
{ ["
|
|
9699
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dv")}><span${_attr_class("_dw")}>Accent</span><span${_attr_class("_dM")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9700
|
+
"_dN",
|
|
9701
|
+
"_dQ",
|
|
9702
|
+
{ ["_dO"]: !accent }
|
|
9688
9703
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9689
9704
|
_if(() => {
|
|
9690
9705
|
if (!accent) {
|
|
9691
9706
|
const $scope129_id = _scope_id();
|
|
9692
9707
|
icon_check_default({
|
|
9693
9708
|
size: 12,
|
|
9694
|
-
class: "
|
|
9709
|
+
class: "_dP"
|
|
9695
9710
|
});
|
|
9696
9711
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9697
9712
|
return 0;
|
|
@@ -9699,13 +9714,13 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9699
9714
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9700
9715
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9701
9716
|
const $scope77_id = _scope_id();
|
|
9702
|
-
_html(`<button type=button${_attr_class(["
|
|
9717
|
+
_html(`<button type=button${_attr_class(["_dN", { ["_dO"]: 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)}>`);
|
|
9703
9718
|
_if(() => {
|
|
9704
9719
|
if (accent === p.value) {
|
|
9705
9720
|
const $scope130_id = _scope_id();
|
|
9706
9721
|
icon_check_default({
|
|
9707
9722
|
size: 12,
|
|
9708
|
-
class: "
|
|
9723
|
+
class: "_dP"
|
|
9709
9724
|
});
|
|
9710
9725
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9711
9726
|
return 0;
|
|
@@ -9719,18 +9734,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9719
9734
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9720
9735
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9721
9736
|
_html(`<label${_attr_class([
|
|
9722
|
-
"
|
|
9723
|
-
"
|
|
9724
|
-
{ ["
|
|
9737
|
+
"_dN",
|
|
9738
|
+
"_dR",
|
|
9739
|
+
{ ["_dO"]: customOn }
|
|
9725
9740
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "bf", accent || "#3556d8", _resume(function(v) {
|
|
9726
9741
|
setInstance({ accent: v });
|
|
9727
|
-
}, "y6", $scope0_id))}${_attr_class("
|
|
9742
|
+
}, "y6", $scope0_id))}${_attr_class("_dS")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9728
9743
|
_if(() => {
|
|
9729
9744
|
if (customOn) {
|
|
9730
9745
|
const $scope131_id = _scope_id();
|
|
9731
9746
|
icon_check_default({
|
|
9732
9747
|
size: 12,
|
|
9733
|
-
class: "
|
|
9748
|
+
class: "_dP"
|
|
9734
9749
|
});
|
|
9735
9750
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9736
9751
|
return 0;
|
|
@@ -9741,16 +9756,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9741
9756
|
return 1;
|
|
9742
9757
|
}
|
|
9743
9758
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9744
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9759
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_cf")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_cg")}><h2${_attr("id", backupId)}${_attr_class("_ct")}>Backup</h2></div><div${_attr_class(["_ck", "_cL"])}><div${_attr_class("_cM")}><div${_attr_class("_dT")}><div${_attr_class("_cl")}>`);
|
|
9745
9760
|
_if(() => {
|
|
9746
9761
|
if (backupBusy === "preflight") {
|
|
9747
9762
|
const $scope65_id = _scope_id();
|
|
9748
|
-
_html(`<span${_attr_class("
|
|
9763
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9749
9764
|
writeScope($scope65_id, {});
|
|
9750
9765
|
return 0;
|
|
9751
9766
|
} else {
|
|
9752
9767
|
const $scope133_id = _scope_id();
|
|
9753
|
-
_html(`<span${_attr_class("
|
|
9768
|
+
_html(`<span${_attr_class("_co")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9754
9769
|
writeScope($scope133_id, {});
|
|
9755
9770
|
return 1;
|
|
9756
9771
|
}
|
|
@@ -9768,7 +9783,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9768
9783
|
_if(() => {
|
|
9769
9784
|
if (preflight && !backupBusy) {
|
|
9770
9785
|
const $scope67_id = _scope_id();
|
|
9771
|
-
_html(`<div${_attr_class("
|
|
9786
|
+
_html(`<div${_attr_class("_dV")}><p${_attr_class("_dW")}>In the file: ${_text_resume($scope67_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope67_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope67_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope67_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope67_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope67_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope67_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_dW")}>Not in the file: `);
|
|
9772
9787
|
_if(() => {
|
|
9773
9788
|
if (preflight.unpushed) {
|
|
9774
9789
|
const $scope68_id = _scope_id();
|
|
@@ -9785,15 +9800,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9785
9800
|
return 0;
|
|
9786
9801
|
}
|
|
9787
9802
|
}, $scope67_id, "m");
|
|
9788
|
-
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
9803
|
+
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_dX")}>`);
|
|
9789
9804
|
_for_of(preflight.workspaces, (w) => {
|
|
9790
9805
|
const $scope135_id = _scope_id();
|
|
9791
9806
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9792
|
-
_html(`<li${_attr_class("
|
|
9807
|
+
_html(`<li${_attr_class("_dY")}><span${_attr_class("_cm")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dX")}>`);
|
|
9793
9808
|
_for_of(w.repos, (r) => {
|
|
9794
9809
|
const $scope136_id = _scope_id();
|
|
9795
9810
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9796
|
-
_html(`<li${_attr_class("
|
|
9811
|
+
_html(`<li${_attr_class("_dZ")}><span${_attr_class("_d0")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9797
9812
|
_for_of(r.unpushed, (b) => {
|
|
9798
9813
|
const $scope137_id = _scope_id();
|
|
9799
9814
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope137_id, "b", b.count)} unpushed `);
|
|
@@ -9812,10 +9827,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9812
9827
|
_if(() => {
|
|
9813
9828
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9814
9829
|
const $scope138_id = _scope_id();
|
|
9815
|
-
_html(`<ul${_attr_class("
|
|
9830
|
+
_html(`<ul${_attr_class("_d1")}>`);
|
|
9816
9831
|
_for_of(r.modified, (f) => {
|
|
9817
9832
|
const $scope141_id = _scope_id();
|
|
9818
|
-
_html(`<li${_attr_class("
|
|
9833
|
+
_html(`<li${_attr_class("_d2")}><span${_attr_class([
|
|
9819
9834
|
"_N",
|
|
9820
9835
|
"_P",
|
|
9821
9836
|
tone.warn
|
|
@@ -9824,18 +9839,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9824
9839
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9825
9840
|
_for_of(r.untracked, (f) => {
|
|
9826
9841
|
const $scope142_id = _scope_id();
|
|
9827
|
-
_html(`<li${_attr_class("
|
|
9842
|
+
_html(`<li${_attr_class("_d2")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9828
9843
|
writeScope($scope142_id, {});
|
|
9829
9844
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9830
9845
|
_for_of(r.ignored, (f) => {
|
|
9831
9846
|
const $scope143_id = _scope_id();
|
|
9832
|
-
_html(`<li${_attr_class("
|
|
9847
|
+
_html(`<li${_attr_class("_d2")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
|
|
9833
9848
|
writeScope($scope143_id, {});
|
|
9834
9849
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9835
9850
|
_if(() => {
|
|
9836
9851
|
if (r.more) {
|
|
9837
9852
|
const $scope139_id = _scope_id();
|
|
9838
|
-
_html(`<li${_attr_class(["
|
|
9853
|
+
_html(`<li${_attr_class(["_d2", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9839
9854
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9840
9855
|
return 0;
|
|
9841
9856
|
}
|
|
@@ -9860,27 +9875,27 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9860
9875
|
i: $for_content18__w_name__closures
|
|
9861
9876
|
});
|
|
9862
9877
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9863
|
-
_html(`<div${_attr_class("
|
|
9878
|
+
_html(`<div${_attr_class("_d3")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
9864
9879
|
_script($scope67_id, "y81");
|
|
9865
9880
|
writeScope($scope67_id, {});
|
|
9866
9881
|
return 0;
|
|
9867
9882
|
}
|
|
9868
9883
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9869
|
-
_html(`</div><div${_attr_class("
|
|
9884
|
+
_html(`</div><div${_attr_class("_cM")}><div${_attr_class("_dT")}><div${_attr_class("_cl")}>`);
|
|
9870
9885
|
_if(() => {
|
|
9871
9886
|
if (backupBusy === "restore") {
|
|
9872
9887
|
const $scope66_id = _scope_id();
|
|
9873
|
-
_html(`<span${_attr_class("
|
|
9888
|
+
_html(`<span${_attr_class("_c0")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9874
9889
|
writeScope($scope66_id, {});
|
|
9875
9890
|
return 0;
|
|
9876
9891
|
} else if (restoreDone) {
|
|
9877
9892
|
const $scope74_id = _scope_id();
|
|
9878
|
-
_html(`<span${_attr_class("
|
|
9893
|
+
_html(`<span${_attr_class("_co")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9879
9894
|
writeScope($scope74_id, {});
|
|
9880
9895
|
return 1;
|
|
9881
9896
|
} else {
|
|
9882
9897
|
const $scope144_id = _scope_id();
|
|
9883
|
-
_html(`<span${_attr_class("
|
|
9898
|
+
_html(`<span${_attr_class("_co")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9884
9899
|
writeScope($scope144_id, {});
|
|
9885
9900
|
return 2;
|
|
9886
9901
|
}
|
|
@@ -9888,7 +9903,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9888
9903
|
_if(() => {
|
|
9889
9904
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9890
9905
|
const $scope76_id = _scope_id();
|
|
9891
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9906
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dU")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9892
9907
|
_script($scope76_id, "y82");
|
|
9893
9908
|
writeScope($scope76_id, {});
|
|
9894
9909
|
return 0;
|
|
@@ -9899,14 +9914,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9899
9914
|
if (restorePreview && backupBusy !== "restore") {
|
|
9900
9915
|
const $scope69_id = _scope_id();
|
|
9901
9916
|
const { preview } = restorePreview;
|
|
9902
|
-
_html(`<div${_attr_class("
|
|
9917
|
+
_html(`<div${_attr_class("_dV")}><p${_attr_class("_dW")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
9903
9918
|
_if(() => {
|
|
9904
9919
|
if (preview.workspaces.length) {
|
|
9905
9920
|
const $scope70_id = _scope_id();
|
|
9906
9921
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9907
9922
|
_for_of(preview.workspaces, (w) => {
|
|
9908
9923
|
const $scope71_id = _scope_id();
|
|
9909
|
-
_html(`<li><label${_attr_class(["
|
|
9924
|
+
_html(`<li><label${_attr_class(["_d5", { ["_d7"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_d6")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_cl")}><span${_attr_class("_cn")}><span${_attr_class("_cm")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9910
9925
|
_if(() => {
|
|
9911
9926
|
if (w.status === "archived") {
|
|
9912
9927
|
const $scope148_id = _scope_id();
|
|
@@ -9928,7 +9943,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9928
9943
|
return 1;
|
|
9929
9944
|
}
|
|
9930
9945
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
9931
|
-
_html(`</span><span${_attr_class("
|
|
9946
|
+
_html(`</span><span${_attr_class("_co")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9932
9947
|
_script($scope71_id, "y83");
|
|
9933
9948
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
9934
9949
|
n: w?.unknownHost,
|
|
@@ -9939,7 +9954,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9939
9954
|
return 0;
|
|
9940
9955
|
} else {
|
|
9941
9956
|
const $scope146_id = _scope_id();
|
|
9942
|
-
_html(`<p${_attr_class("
|
|
9957
|
+
_html(`<p${_attr_class("_cq")}>No workspaces in this file.</p>`);
|
|
9943
9958
|
writeScope($scope146_id, {});
|
|
9944
9959
|
return 1;
|
|
9945
9960
|
}
|
|
@@ -9979,7 +9994,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9979
9994
|
_if(() => {
|
|
9980
9995
|
if (p.total) {
|
|
9981
9996
|
const $scope73_id = _scope_id();
|
|
9982
|
-
_html(`<li><label${_attr_class(["
|
|
9997
|
+
_html(`<li><label${_attr_class(["_d5", { ["_d7"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_d6")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_cl")}><span${_attr_class("_cm")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_co")}>`);
|
|
9983
9998
|
_if(() => {
|
|
9984
9999
|
if (p.key === "settings") {
|
|
9985
10000
|
const $scope145_id = _scope_id();
|
|
@@ -10026,7 +10041,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
10026
10041
|
i: $for_content10__p_total__closures
|
|
10027
10042
|
});
|
|
10028
10043
|
}, "key", $scope69_id, "h");
|
|
10029
|
-
_html(`</ul><div${_attr_class("
|
|
10044
|
+
_html(`</ul><div${_attr_class("_d3")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
10030
10045
|
_script($scope69_id, "y85");
|
|
10031
10046
|
writeScope($scope69_id, {});
|
|
10032
10047
|
return 0;
|
|
@@ -10311,7 +10326,7 @@ function activeAgent(session) {
|
|
|
10311
10326
|
const command = session.state?.command?.trim();
|
|
10312
10327
|
return command && agentFromCommand(command) || session.agent;
|
|
10313
10328
|
}
|
|
10314
|
-
var rowState = "
|
|
10329
|
+
var rowState = "_e6 _N";
|
|
10315
10330
|
//#endregion
|
|
10316
10331
|
//#region src/client/arm.ts
|
|
10317
10332
|
/** Two-step destructive controls: first click arms (label/colour flips),
|
|
@@ -10322,12 +10337,12 @@ var ARM_MS = 3500;
|
|
|
10322
10337
|
function disarmLater(fn) {
|
|
10323
10338
|
return setTimeout(fn, ARM_MS);
|
|
10324
10339
|
}
|
|
10325
|
-
var prChip = "
|
|
10326
|
-
var portChip = "
|
|
10340
|
+
var prChip = "_hJ _u _hI";
|
|
10341
|
+
var portChip = "_hK _u _hI";
|
|
10327
10342
|
var prState = {
|
|
10328
|
-
open: "
|
|
10329
|
-
merged: "
|
|
10330
|
-
closed: "
|
|
10343
|
+
open: "_hO",
|
|
10344
|
+
merged: "_hP",
|
|
10345
|
+
closed: "_hQ"
|
|
10331
10346
|
};
|
|
10332
10347
|
//#endregion
|
|
10333
10348
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10418,7 +10433,7 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10418
10433
|
const name = repo.full_name.split("/").at(-1);
|
|
10419
10434
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10420
10435
|
}, "z4", $scope1_id);
|
|
10421
|
-
_html(`<div${_attr_class("
|
|
10436
|
+
_html(`<div${_attr_class("_hH")}>`);
|
|
10422
10437
|
_for_of(repos, (repo) => {
|
|
10423
10438
|
const $scope2_id = _scope_id();
|
|
10424
10439
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10434,11 +10449,11 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10434
10449
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10435
10450
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10436
10451
|
}
|
|
10437
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10452
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_hL", { ["_hT"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10438
10453
|
_if(() => {
|
|
10439
10454
|
if (open) {
|
|
10440
10455
|
const $scope4_id = _scope_id();
|
|
10441
|
-
_html(`<a${_attr_class(["
|
|
10456
|
+
_html(`<a${_attr_class(["_hL", "_hM"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10442
10457
|
icon_diff_default({ size: 12 });
|
|
10443
10458
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10444
10459
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10446,9 +10461,9 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10446
10461
|
} else {
|
|
10447
10462
|
const $scope6_id = _scope_id();
|
|
10448
10463
|
_html(`<button type=button${_attr_class([
|
|
10449
|
-
"
|
|
10450
|
-
"
|
|
10451
|
-
"
|
|
10464
|
+
"_hL",
|
|
10465
|
+
"_hM",
|
|
10466
|
+
"_hN"
|
|
10452
10467
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10453
10468
|
icon_xmark_default({ size: 12 });
|
|
10454
10469
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10476,21 +10491,21 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10476
10491
|
_if(() => {
|
|
10477
10492
|
if (dead.has(p.port)) {
|
|
10478
10493
|
const $scope7_id = _scope_id();
|
|
10479
|
-
_html(`<span${_attr_class(["
|
|
10494
|
+
_html(`<span${_attr_class(["_hL", "_hR"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10480
10495
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10481
10496
|
return 0;
|
|
10482
10497
|
} else {
|
|
10483
10498
|
const $scope8_id = _scope_id();
|
|
10484
|
-
_html(`<button type=button${_attr_class(["
|
|
10499
|
+
_html(`<button type=button${_attr_class(["_hL", "_hS"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10485
10500
|
_script($scope8_id, "z6");
|
|
10486
10501
|
writeScope($scope8_id, {});
|
|
10487
10502
|
return 1;
|
|
10488
10503
|
}
|
|
10489
10504
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10490
10505
|
_html(`<button type=button${_attr_class([
|
|
10491
|
-
"
|
|
10492
|
-
"
|
|
10493
|
-
"
|
|
10506
|
+
"_hL",
|
|
10507
|
+
"_hM",
|
|
10508
|
+
"_hN",
|
|
10494
10509
|
{ ["_s"]: armedPid === p.pid }
|
|
10495
10510
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10496
10511
|
icon_xmark_default({ size: 12 });
|
|
@@ -10533,16 +10548,16 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10533
10548
|
});
|
|
10534
10549
|
_resume_branch($scope0_id);
|
|
10535
10550
|
});
|
|
10536
|
-
var railBtn = "
|
|
10537
|
-
var wsBtn = "
|
|
10538
|
-
var rowIcon = "
|
|
10539
|
-
var close = "
|
|
10540
|
-
var sessRename$1 = "
|
|
10541
|
-
var sessBtn$1 = "
|
|
10551
|
+
var railBtn = "_fv _l";
|
|
10552
|
+
var wsBtn = "_fA _I";
|
|
10553
|
+
var rowIcon = "_fD _4 _l";
|
|
10554
|
+
var close = "_fE _7 _l _8";
|
|
10555
|
+
var sessRename$1 = "_fP _J";
|
|
10556
|
+
var sessBtn$1 = "_fR _I";
|
|
10542
10557
|
//#endregion
|
|
10543
10558
|
//#region src/styles/session-pop.css.ts
|
|
10544
|
-
var sessionPop = "
|
|
10545
|
-
var sessionPopBtn = "
|
|
10559
|
+
var sessionPop = "_e8 __";
|
|
10560
|
+
var sessionPopBtn = "_e9 _I";
|
|
10546
10561
|
//#endregion
|
|
10547
10562
|
//#region src/tags/icons/icon-manage.marko
|
|
10548
10563
|
var icon_manage_default = _template("hb", (input) => {
|
|
@@ -10571,22 +10586,22 @@ var usage_pcts_default = _template("I", (input) => {
|
|
|
10571
10586
|
if (windows.length) {
|
|
10572
10587
|
const $scope1_id = _scope_id();
|
|
10573
10588
|
_html(`<span${_attr_class([
|
|
10574
|
-
"
|
|
10589
|
+
"_gZ",
|
|
10575
10590
|
input.class,
|
|
10576
|
-
{ ["
|
|
10591
|
+
{ ["_g0"]: agent.stale_seconds != null }
|
|
10577
10592
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10578
10593
|
_for_of(windows, (win$1, i) => {
|
|
10579
10594
|
const $scope2_id = _scope_id();
|
|
10580
|
-
_html(`<span${_attr_class("
|
|
10595
|
+
_html(`<span${_attr_class("_g1")}>`);
|
|
10581
10596
|
_if(() => {
|
|
10582
10597
|
if (i) {
|
|
10583
10598
|
const $scope3_id = _scope_id();
|
|
10584
|
-
_html(`<span${_attr_class("
|
|
10599
|
+
_html(`<span${_attr_class("_g4")} aria-hidden=true>·</span>`);
|
|
10585
10600
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10586
10601
|
return 0;
|
|
10587
10602
|
}
|
|
10588
10603
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10589
|
-
_html(`<span${_attr_class("
|
|
10604
|
+
_html(`<span${_attr_class("_g2")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_g3", win$1.used_percent >= 90 ? "_hn" : win$1.used_percent >= 70 ? "_hm" : win$1.used_percent >= 40 ? "_hl" : "_hk"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10590
10605
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10591
10606
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10592
10607
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10697,7 +10712,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10697
10712
|
_if(() => {
|
|
10698
10713
|
if (input.rail) {
|
|
10699
10714
|
const $scope2_id = _scope_id();
|
|
10700
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10715
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_ft"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
10701
10716
|
"_A",
|
|
10702
10717
|
phase[dot$1],
|
|
10703
10718
|
"_bc"
|
|
@@ -10707,34 +10722,34 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10707
10722
|
} else if (ws$1.pending) {
|
|
10708
10723
|
const $scope3_id = _scope_id();
|
|
10709
10724
|
_html(`<section${_attr_class([
|
|
10710
|
-
"
|
|
10711
|
-
"
|
|
10725
|
+
"_fx",
|
|
10726
|
+
"_fT",
|
|
10712
10727
|
{
|
|
10713
|
-
["
|
|
10714
|
-
["
|
|
10728
|
+
["_fy"]: input.railPop,
|
|
10729
|
+
["_fw"]: input.page
|
|
10715
10730
|
}
|
|
10716
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10731
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fz")}><div${_attr_class(wsBtn)}>`);
|
|
10717
10732
|
_if(() => {
|
|
10718
10733
|
if (ws$1.pending_error) {
|
|
10719
10734
|
const $scope15_id = _scope_id();
|
|
10720
10735
|
icon_warning_default({
|
|
10721
10736
|
size: 12,
|
|
10722
|
-
class: "
|
|
10737
|
+
class: "_fV"
|
|
10723
10738
|
});
|
|
10724
10739
|
$si__input_workspace && writeScope($scope15_id, {});
|
|
10725
10740
|
return 0;
|
|
10726
10741
|
} else {
|
|
10727
10742
|
const $scope16_id = _scope_id();
|
|
10728
|
-
_html(`<span${_attr_class(["_G", "
|
|
10743
|
+
_html(`<span${_attr_class(["_G", "_fU"])}></span>`);
|
|
10729
10744
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10730
10745
|
return 1;
|
|
10731
10746
|
}
|
|
10732
10747
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10733
|
-
_html(`<span${_attr_class("
|
|
10748
|
+
_html(`<span${_attr_class("_fG")}><span${_attr_class("_fH")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fX")}${_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>`);
|
|
10734
10749
|
_if(() => {
|
|
10735
10750
|
if (ws$1.pending_error && !retrying) {
|
|
10736
10751
|
const $scope14_id = _scope_id();
|
|
10737
|
-
_html(`<div${_attr_class("
|
|
10752
|
+
_html(`<div${_attr_class("_fW")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope14_id, "b")}<button type=button${_attr_class([
|
|
10738
10753
|
"_q",
|
|
10739
10754
|
btnSm,
|
|
10740
10755
|
{ ["_s"]: armedDelete }
|
|
@@ -10754,15 +10769,15 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10754
10769
|
const $scope4_id = _scope_id();
|
|
10755
10770
|
const sessions$1 = input.sessions || [];
|
|
10756
10771
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10757
|
-
_html(`<section${_attr_class(["
|
|
10758
|
-
["
|
|
10772
|
+
_html(`<section${_attr_class(["_fx", {
|
|
10773
|
+
["_ft"]: input.current,
|
|
10759
10774
|
["_bd"]: input.current,
|
|
10760
|
-
["
|
|
10761
|
-
["
|
|
10762
|
-
}])}><div${_attr_class("
|
|
10775
|
+
["_fy"]: input.railPop,
|
|
10776
|
+
["_fw"]: input.page
|
|
10777
|
+
}])}><div${_attr_class("_fz")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10763
10778
|
"_A",
|
|
10764
10779
|
phase[dot$1],
|
|
10765
|
-
"
|
|
10780
|
+
"_fL"
|
|
10766
10781
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10767
10782
|
_if(() => {
|
|
10768
10783
|
if (sessions$1.length === 1) {
|
|
@@ -10775,7 +10790,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10775
10790
|
icon_agent_default({
|
|
10776
10791
|
agent: activeAgent(sessions$1[0]),
|
|
10777
10792
|
size: 12,
|
|
10778
|
-
class: "
|
|
10793
|
+
class: "_fF"
|
|
10779
10794
|
});
|
|
10780
10795
|
$si__input_sessions && writeScope($scope17_id, {
|
|
10781
10796
|
_: _scope_with_id($scope4_id),
|
|
@@ -10785,11 +10800,11 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10785
10800
|
}
|
|
10786
10801
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10787
10802
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10788
|
-
_html(`<span${_attr_class("
|
|
10803
|
+
_html(`<span${_attr_class("_fG")}><span${_attr_class("_fH")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10789
10804
|
_if(() => {
|
|
10790
10805
|
if (input.page && metaText) {
|
|
10791
10806
|
const $scope18_id = _scope_id();
|
|
10792
|
-
_html(`<span${_attr_class("
|
|
10807
|
+
_html(`<span${_attr_class("_fK")}>${_text_resume($scope18_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10793
10808
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10794
10809
|
return 0;
|
|
10795
10810
|
}
|
|
@@ -10798,7 +10813,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10798
10813
|
_if(() => {
|
|
10799
10814
|
if (!input.page) {
|
|
10800
10815
|
const $scope5_id = _scope_id();
|
|
10801
|
-
_html(`<div${_attr_class("
|
|
10816
|
+
_html(`<div${_attr_class("_fB")}>`);
|
|
10802
10817
|
_if(() => {
|
|
10803
10818
|
if (input.onNewSession) {
|
|
10804
10819
|
const $scope6_id = _scope_id();
|
|
@@ -10847,7 +10862,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10847
10862
|
return 0;
|
|
10848
10863
|
}
|
|
10849
10864
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10850
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10865
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fu"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10851
10866
|
icon_manage_default({ size: 12 });
|
|
10852
10867
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10853
10868
|
_subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -10857,7 +10872,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10857
10872
|
return 0;
|
|
10858
10873
|
}
|
|
10859
10874
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10860
|
-
_html(`</div><div${_attr_class("
|
|
10875
|
+
_html(`</div><div${_attr_class("_fQ")}>`);
|
|
10861
10876
|
_if(() => {
|
|
10862
10877
|
if (sessions$1.length === 1 && openPlan) {
|
|
10863
10878
|
const $scope11_id = _scope_id();
|
|
@@ -10865,7 +10880,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10865
10880
|
const $childScope3 = _peek_scope_id();
|
|
10866
10881
|
usage_pcts_default({
|
|
10867
10882
|
agent: openPlan,
|
|
10868
|
-
class: "
|
|
10883
|
+
class: "_fI"
|
|
10869
10884
|
});
|
|
10870
10885
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
10871
10886
|
a: _existing_scope($childScope3),
|
|
@@ -10876,14 +10891,14 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10876
10891
|
}, $scope4_id, "l");
|
|
10877
10892
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10878
10893
|
const $scope8_id = _scope_id();
|
|
10879
|
-
_html(`<div${_attr_class(["
|
|
10894
|
+
_html(`<div${_attr_class(["_fC", { ["_ft"]: s.id === input.currentTab }])}>`);
|
|
10880
10895
|
_if(() => {
|
|
10881
10896
|
if (renamingId === s.id) {
|
|
10882
10897
|
const $scope10_id = _scope_id();
|
|
10883
10898
|
_html(`<span${_attr_class([
|
|
10884
10899
|
"_A",
|
|
10885
10900
|
phase[sessionPhase(s.state)],
|
|
10886
|
-
"
|
|
10901
|
+
"_fO"
|
|
10887
10902
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
10888
10903
|
_set_serialize_reason({
|
|
10889
10904
|
1: $sg__input_sessions,
|
|
@@ -10893,7 +10908,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10893
10908
|
icon_agent_default({
|
|
10894
10909
|
agent: activeAgent(s),
|
|
10895
10910
|
size: 12,
|
|
10896
|
-
class: "
|
|
10911
|
+
class: "_fS"
|
|
10897
10912
|
});
|
|
10898
10913
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10899
10914
|
renameValue = _new_renameValue;
|
|
@@ -10912,9 +10927,9 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10912
10927
|
icon_agent_default({
|
|
10913
10928
|
agent: activeAgent(s),
|
|
10914
10929
|
size: 12,
|
|
10915
|
-
class: "
|
|
10930
|
+
class: "_fS"
|
|
10916
10931
|
});
|
|
10917
|
-
_html(`<span${_attr_class("
|
|
10932
|
+
_html(`<span${_attr_class("_fM")}>${_text_resume($scope9_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_fN")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10918
10933
|
icon_edit_default({ size: 12 });
|
|
10919
10934
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10920
10935
|
icon_xmark_default({ size: 12 });
|
|
@@ -10926,7 +10941,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10926
10941
|
const $childScope6 = _peek_scope_id();
|
|
10927
10942
|
usage_pcts_default({
|
|
10928
10943
|
agent: openPlan,
|
|
10929
|
-
class: "
|
|
10944
|
+
class: "_fJ"
|
|
10930
10945
|
});
|
|
10931
10946
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10932
10947
|
a: _existing_scope($childScope6),
|
|
@@ -11066,11 +11081,11 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11066
11081
|
const sessions = input.sessions || st?.sessions || [];
|
|
11067
11082
|
const manySessions = sessions.length > 1;
|
|
11068
11083
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11069
|
-
_html(`<div${_attr_class("
|
|
11084
|
+
_html(`<div${_attr_class("_eR")}>`);
|
|
11070
11085
|
_if(() => {
|
|
11071
11086
|
if (ws) {
|
|
11072
11087
|
const $scope1_id = _scope_id();
|
|
11073
|
-
_html(`<section${_attr_class("
|
|
11088
|
+
_html(`<section${_attr_class("_eS")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eT")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11074
11089
|
_if(() => {
|
|
11075
11090
|
if (sessions.length === 1) {
|
|
11076
11091
|
const $scope8_id = _scope_id();
|
|
@@ -11082,7 +11097,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11082
11097
|
icon_agent_default({
|
|
11083
11098
|
agent: activeAgent(sessions[0]),
|
|
11084
11099
|
size: 16,
|
|
11085
|
-
class: "
|
|
11100
|
+
class: "_eW"
|
|
11086
11101
|
});
|
|
11087
11102
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11088
11103
|
_: _scope_with_id($scope1_id),
|
|
@@ -11091,14 +11106,14 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11091
11106
|
return 0;
|
|
11092
11107
|
}
|
|
11093
11108
|
}, $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);
|
|
11094
|
-
_html(`<span${_attr_class("
|
|
11109
|
+
_html(`<span${_attr_class("_eU")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_eV")}>${_text_resume($scope1_id, "h", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11095
11110
|
_if(() => {
|
|
11096
11111
|
if (manySessions) {
|
|
11097
11112
|
const $scope2_id = _scope_id();
|
|
11098
|
-
_html(`<div${_attr_class("
|
|
11113
|
+
_html(`<div${_attr_class("_eX")}>`);
|
|
11099
11114
|
_for_of(sessions, (s) => {
|
|
11100
11115
|
const $scope3_id = _scope_id();
|
|
11101
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11116
|
+
_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)}`);
|
|
11102
11117
|
_set_serialize_reason({
|
|
11103
11118
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11104
11119
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11108,7 +11123,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11108
11123
|
agent: activeAgent(s),
|
|
11109
11124
|
size: 14
|
|
11110
11125
|
});
|
|
11111
|
-
_html(`<span${_attr_class("
|
|
11126
|
+
_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))}`);
|
|
11112
11127
|
$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, {
|
|
11113
11128
|
h: $si__input_tab && s?.id,
|
|
11114
11129
|
_: _scope_with_id($scope2_id),
|
|
@@ -11137,7 +11152,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11137
11152
|
_if(() => {
|
|
11138
11153
|
if (input.ids.length) {
|
|
11139
11154
|
const $scope4_id = _scope_id();
|
|
11140
|
-
_html(`<div${_attr_class("
|
|
11155
|
+
_html(`<div${_attr_class("_e1")}>`);
|
|
11141
11156
|
_for_of(input.ids, (id) => {
|
|
11142
11157
|
const $scope5_id = _scope_id();
|
|
11143
11158
|
const w = input.byId.get(id);
|
|
@@ -11187,7 +11202,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11187
11202
|
const rp = phaseOf(rs);
|
|
11188
11203
|
const rowSessions = rs?.sessions || [];
|
|
11189
11204
|
const many = rowSessions.length > 1;
|
|
11190
|
-
_html(`<div${_attr_class("
|
|
11205
|
+
_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)}`);
|
|
11191
11206
|
_if(() => {
|
|
11192
11207
|
if (rowSessions.length === 1) {
|
|
11193
11208
|
const $scope9_id = _scope_id();
|
|
@@ -11199,7 +11214,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11199
11214
|
icon_agent_default({
|
|
11200
11215
|
agent: activeAgent(rowSessions[0]),
|
|
11201
11216
|
size: 16,
|
|
11202
|
-
class: "
|
|
11217
|
+
class: "_e5"
|
|
11203
11218
|
});
|
|
11204
11219
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11205
11220
|
_: _scope_with_id($scope7_id),
|
|
@@ -11208,7 +11223,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11208
11223
|
return 0;
|
|
11209
11224
|
}
|
|
11210
11225
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11211
|
-
_html(`<span${_attr_class("
|
|
11226
|
+
_html(`<span${_attr_class("_e4")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11212
11227
|
_if(() => {
|
|
11213
11228
|
if (many) {
|
|
11214
11229
|
const $scope10_id = _scope_id();
|
|
@@ -11219,7 +11234,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11219
11234
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11220
11235
|
icon_chevron_right_default({
|
|
11221
11236
|
size: 14,
|
|
11222
|
-
class: "
|
|
11237
|
+
class: "_e7"
|
|
11223
11238
|
});
|
|
11224
11239
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11225
11240
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -11380,12 +11395,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11380
11395
|
const byId = new Map(workspaces.map((w) => [w.id, w]));
|
|
11381
11396
|
const allStatus = input.allStatus || {};
|
|
11382
11397
|
const orderedIds = sortedIds(itemIds, byId);
|
|
11383
|
-
const keyIndex = (() =>
|
|
11384
|
-
const m = /* @__PURE__ */ new Map();
|
|
11385
|
-
let n = 0;
|
|
11386
|
-
for (const id of orderedIds) if (!byId.get(id)?.pending) m.set(id, n++);
|
|
11387
|
-
return m;
|
|
11388
|
-
})();
|
|
11398
|
+
const keyIndex = new Map(numbered(workspaces).map((w, i) => [w.id, i]));
|
|
11389
11399
|
const isPage = view === "nav";
|
|
11390
11400
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11391
11401
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
@@ -11606,9 +11616,9 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11606
11616
|
d: wsId,
|
|
11607
11617
|
_: _scope_with_id($scope7_id),
|
|
11608
11618
|
b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope3),
|
|
11609
|
-
|
|
11610
|
-
|
|
11611
|
-
|
|
11619
|
+
Cb5: $si__input_workspace && 1,
|
|
11620
|
+
Cbc: $si__input_workspace__OR__input_allWorkspaces && 1,
|
|
11621
|
+
Cbd: $si__input_allStatus && 1
|
|
11612
11622
|
})))));
|
|
11613
11623
|
}, (id) => id, $scope7_id, "a", $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, "</div>", 1);
|
|
11614
11624
|
_if(() => {
|
|
@@ -11683,18 +11693,18 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11683
11693
|
_subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope9_id, {
|
|
11684
11694
|
d: hoverId,
|
|
11685
11695
|
b: _existing_scope($childScope4),
|
|
11686
|
-
|
|
11687
|
-
|
|
11688
|
-
|
|
11689
|
-
|
|
11690
|
-
|
|
11691
|
-
|
|
11692
|
-
|
|
11693
|
-
|
|
11694
|
-
|
|
11695
|
-
|
|
11696
|
-
|
|
11697
|
-
|
|
11696
|
+
Cax: $si__input_sessions && 1,
|
|
11697
|
+
Cay: $si__input_agents && 1,
|
|
11698
|
+
Caz: $si__input_onNewSession && 1,
|
|
11699
|
+
Cb0: $si__input_onReviewOpened && 1,
|
|
11700
|
+
Cb1: $si__input_onReviewOther && 1,
|
|
11701
|
+
Cb2: $si__input_onRenameSession && 1,
|
|
11702
|
+
Cb3: $si__input_onCloseSession && 1,
|
|
11703
|
+
Cb5: $si__input_workspace && 2,
|
|
11704
|
+
Cb6: $si__input_tab__OR__input_tabChange && 1,
|
|
11705
|
+
Cb7: 1,
|
|
11706
|
+
Cbc: $si__input_workspace__OR__input_allWorkspaces && 2,
|
|
11707
|
+
Cbd: $si__input_allStatus && 2
|
|
11698
11708
|
})))))))))))));
|
|
11699
11709
|
return 0;
|
|
11700
11710
|
}
|
|
@@ -11793,29 +11803,29 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11793
11803
|
aj: byId,
|
|
11794
11804
|
al: allStatus,
|
|
11795
11805
|
am: orderedIds,
|
|
11796
|
-
|
|
11797
|
-
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
11806
|
+
ao: keyIndex,
|
|
11807
|
+
ap: isPage,
|
|
11808
|
+
as: backHref,
|
|
11809
|
+
at: iconSrc,
|
|
11810
|
+
au: pageIds,
|
|
11801
11811
|
aa: input.viewChange || void 0,
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
|
|
11807
|
-
|
|
11808
|
-
|
|
11809
|
-
|
|
11810
|
-
|
|
11811
|
-
|
|
11812
|
-
|
|
11813
|
-
|
|
11814
|
-
|
|
11815
|
-
|
|
11816
|
-
|
|
11817
|
-
|
|
11818
|
-
|
|
11812
|
+
av: $si__input_instanceName && $input_instanceName__closures,
|
|
11813
|
+
bh: $si__input_instanceAccent && $iconSrc__closures,
|
|
11814
|
+
b9: $notifyOn__closures,
|
|
11815
|
+
ax: $si__input_sessions && $input_sessions__closures,
|
|
11816
|
+
ay: $si__input_agents && $input_agents__closures,
|
|
11817
|
+
az: $si__input_onNewSession && $input_onNewSession__closures,
|
|
11818
|
+
b0: $si__input_onReviewOpened && $input_onReviewOpened__closures,
|
|
11819
|
+
b1: $si__input_onReviewOther && $input_onReviewOther__closures,
|
|
11820
|
+
b2: $si__input_onRenameSession && $input_onRenameSession__closures,
|
|
11821
|
+
b3: $si__input_onCloseSession && $input_onCloseSession__closures,
|
|
11822
|
+
b5: $si__input_workspace && $ws_id__closures,
|
|
11823
|
+
b6: $si__input_tab__OR__input_tabChange && $tab__closures,
|
|
11824
|
+
b7: $view__closures,
|
|
11825
|
+
bb: $leaveNav2__closures,
|
|
11826
|
+
bc: $si__input_workspace__OR__input_allWorkspaces && $byId__closures,
|
|
11827
|
+
bd: $si__input_allStatus && $allStatus__closures,
|
|
11828
|
+
bf: $si__input_workspace__OR__input_allWorkspaces && $keyIndex__closures
|
|
11819
11829
|
});
|
|
11820
11830
|
_resume_branch($scope0_id);
|
|
11821
11831
|
});
|
|
@@ -12087,8 +12097,8 @@ function treeDirs(files) {
|
|
|
12087
12097
|
};
|
|
12088
12098
|
return build(root, "", "", -1);
|
|
12089
12099
|
}
|
|
12090
|
-
var treeToggle = "
|
|
12091
|
-
var pageTitle = "
|
|
12100
|
+
var treeToggle = "_gj _5 _l";
|
|
12101
|
+
var pageTitle = "_gq _eb";
|
|
12092
12102
|
//#endregion
|
|
12093
12103
|
//#region src/tags/diff-send.marko
|
|
12094
12104
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -12098,7 +12108,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12098
12108
|
let sendTarget = null;
|
|
12099
12109
|
const sessions = input.sessions || [];
|
|
12100
12110
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12101
|
-
_html(`<span${_attr_class("
|
|
12111
|
+
_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")}`);
|
|
12102
12112
|
_if(() => {
|
|
12103
12113
|
if (sessions.length === 1) {
|
|
12104
12114
|
const $scope1_id = _scope_id();
|
|
@@ -12108,11 +12118,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12108
12118
|
return 0;
|
|
12109
12119
|
} else if (sessions.length) {
|
|
12110
12120
|
const $scope2_id = _scope_id();
|
|
12111
|
-
_html(`<span${_attr_class("
|
|
12121
|
+
_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")}`);
|
|
12112
12122
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12113
12123
|
sendTarget = _new_sendTarget;
|
|
12114
12124
|
}, "j0", $scope2_id), () => {
|
|
12115
|
-
_html(`<select${_attr_class("
|
|
12125
|
+
_html(`<select${_attr_class("_hu")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12116
12126
|
_for_of(sessions, (s) => {
|
|
12117
12127
|
const $scope3_id = _scope_id();
|
|
12118
12128
|
_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)}`);
|
|
@@ -13624,8 +13634,8 @@ function clip(line, at, len) {
|
|
|
13624
13634
|
const end = Math.min(line.length, at + len + pad);
|
|
13625
13635
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13626
13636
|
}
|
|
13627
|
-
var findInput = "
|
|
13628
|
-
var findIconBtn = "
|
|
13637
|
+
var findInput = "_eh _n";
|
|
13638
|
+
var findIconBtn = "_ek _l";
|
|
13629
13639
|
//#endregion
|
|
13630
13640
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13631
13641
|
var icon_arrow_down_default = _template("N", (input) => {
|
|
@@ -13713,9 +13723,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13713
13723
|
el.select();
|
|
13714
13724
|
}, 0);
|
|
13715
13725
|
}, "i0", $scope0_id);
|
|
13716
|
-
_html(`<div${_attr_class(["
|
|
13726
|
+
_html(`<div${_attr_class(["_eg", !open && "_ef"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13717
13727
|
type(v);
|
|
13718
|
-
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
13728
|
+
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_ej")}>${_text_resume($scope0_id, "d", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13719
13729
|
icon_arrow_up_default({ size: 14 });
|
|
13720
13730
|
_html(`</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13721
13731
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13859,7 +13869,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
13859
13869
|
_scope_reason();
|
|
13860
13870
|
const $scope0_id = _scope_id();
|
|
13861
13871
|
_el($scope0_id, "h0");
|
|
13862
|
-
_html(`<div${_attr_class(["
|
|
13872
|
+
_html(`<div${_attr_class(["_jf", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
13863
13873
|
_script($scope0_id, "h1");
|
|
13864
13874
|
writeScope($scope0_id, {
|
|
13865
13875
|
e: input.file,
|
|
@@ -14231,7 +14241,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14231
14241
|
cd: $si__input_findHit_line && $input_findHit_line__closures
|
|
14232
14242
|
});
|
|
14233
14243
|
});
|
|
14234
|
-
var fileFilter = "
|
|
14244
|
+
var fileFilter = "_jh _n";
|
|
14235
14245
|
//#endregion
|
|
14236
14246
|
//#region src/tags/file-filter.marko
|
|
14237
14247
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -14261,7 +14271,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
14261
14271
|
pending = v;
|
|
14262
14272
|
box.timer = setTimeout(flush, 150);
|
|
14263
14273
|
}, "n2", $scope0_id);
|
|
14264
|
-
_html(`<div${_attr_class("
|
|
14274
|
+
_html(`<div${_attr_class("_jg")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
14265
14275
|
type(v);
|
|
14266
14276
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
14267
14277
|
_script($scope0_id, "n3");
|
|
@@ -14294,7 +14304,7 @@ var $content = (input) => {
|
|
|
14294
14304
|
_for_of(dir.dirs, (child) => {
|
|
14295
14305
|
const $scope1_id = _scope_id();
|
|
14296
14306
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14297
|
-
_html(`<div${_attr_class("
|
|
14307
|
+
_html(`<div${_attr_class("_il")}><button type=button${_attr_class(["_im", { ["_id"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_it")}>`);
|
|
14298
14308
|
_if(() => {
|
|
14299
14309
|
if (shut) {
|
|
14300
14310
|
const $scope4_id = _scope_id();
|
|
@@ -14308,7 +14318,7 @@ var $content = (input) => {
|
|
|
14308
14318
|
return 1;
|
|
14309
14319
|
}
|
|
14310
14320
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14311
|
-
_html(`<span${_attr_class("
|
|
14321
|
+
_html(`<span${_attr_class("_in")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14312
14322
|
_if(() => {
|
|
14313
14323
|
if (!shut) {
|
|
14314
14324
|
const $scope2_id = _scope_id();
|
|
@@ -14355,11 +14365,11 @@ var $content = (input) => {
|
|
|
14355
14365
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14356
14366
|
_for_of(dir.files, ({ file, name }) => {
|
|
14357
14367
|
const $scope3_id = _scope_id();
|
|
14358
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14368
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_ip", { ["_io"]: input.collapsedFiles?.has(file.key) }])}${input.collapsedFiles?.has(file.key) ? _attr("title", `${file.path} (folded — click to open)`) : _attr("title", file.path)}${_attr_style(`--depth:${dir.depth + 1}`)}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope3_id, "c", file.status, $sg__input_dir)}</span>${_el_resume($scope3_id, "b", $sg__input_dir)}<span${_attr_class("_iq")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14359
14369
|
_if(() => {
|
|
14360
14370
|
if (input.newKeys.has(file.key)) {
|
|
14361
14371
|
const $scope6_id = _scope_id();
|
|
14362
|
-
_html(`<span${_attr_class(["_A", "
|
|
14372
|
+
_html(`<span${_attr_class(["_A", "_ir"])} title="Changed since your last visit"></span>`);
|
|
14363
14373
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14364
14374
|
return 0;
|
|
14365
14375
|
}
|
|
@@ -14367,7 +14377,7 @@ var $content = (input) => {
|
|
|
14367
14377
|
_if(() => {
|
|
14368
14378
|
if (input.commentKeys.has(file.key)) {
|
|
14369
14379
|
const $scope7_id = _scope_id();
|
|
14370
|
-
_html(`<span${_attr_class("
|
|
14380
|
+
_html(`<span${_attr_class("_is")}>`);
|
|
14371
14381
|
icon_comment_default({ size: 12 });
|
|
14372
14382
|
_html("</span>");
|
|
14373
14383
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14425,7 +14435,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14425
14435
|
scope: input.scope ?? null,
|
|
14426
14436
|
file: key
|
|
14427
14437
|
}), "l0", $scope0_id);
|
|
14428
|
-
_html(`<aside${_attr_class(["
|
|
14438
|
+
_html(`<aside${_attr_class(["_ie", { ["_id"]: input.open === false }])}><div${_attr_class("_if")}>`);
|
|
14429
14439
|
_set_serialize_reason(2);
|
|
14430
14440
|
const $childScope = _peek_scope_id();
|
|
14431
14441
|
file_filter_default({
|
|
@@ -14434,18 +14444,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14434
14444
|
filter = _new_filter;
|
|
14435
14445
|
}, "l1", $scope0_id)
|
|
14436
14446
|
});
|
|
14437
|
-
_html(`</div><div${_attr_class("
|
|
14447
|
+
_html(`</div><div${_attr_class("_ig")}>`);
|
|
14438
14448
|
_if(() => {
|
|
14439
14449
|
if (!input.sections.length && filter) {
|
|
14440
14450
|
const $scope3_id = _scope_id();
|
|
14441
|
-
_html(`<p${_attr_class("
|
|
14451
|
+
_html(`<p${_attr_class("_ih")}>No files match.</p>`);
|
|
14442
14452
|
writeScope($scope3_id, {});
|
|
14443
14453
|
return 0;
|
|
14444
14454
|
}
|
|
14445
14455
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14446
14456
|
_for_of(input.sections, (section) => {
|
|
14447
14457
|
const $scope1_id = _scope_id();
|
|
14448
|
-
_html(`<div${_attr_class("
|
|
14458
|
+
_html(`<div${_attr_class("_ii")}><button type=button${_attr_class(["_ij", { ["_id"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_it")}>`);
|
|
14449
14459
|
_if(() => {
|
|
14450
14460
|
if (collapsedRepos.has(section.id)) {
|
|
14451
14461
|
const $scope4_id = _scope_id();
|
|
@@ -14459,12 +14469,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14459
14469
|
return 1;
|
|
14460
14470
|
}
|
|
14461
14471
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14462
|
-
_html(`<span${_attr_class("
|
|
14472
|
+
_html(`<span${_attr_class("_in")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14463
14473
|
_if(() => {
|
|
14464
14474
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14465
14475
|
const $scope2_id = _scope_id();
|
|
14466
14476
|
const root = treeDirs(section.files);
|
|
14467
|
-
_html(`<div${_attr_class("
|
|
14477
|
+
_html(`<div${_attr_class("_ik")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14468
14478
|
_set_serialize_reason(1);
|
|
14469
14479
|
const $childScope2 = _peek_scope_id();
|
|
14470
14480
|
diff_tree_dir_default({
|
|
@@ -14534,7 +14544,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14534
14544
|
});
|
|
14535
14545
|
_resume_branch($scope0_id);
|
|
14536
14546
|
});
|
|
14537
|
-
var sheetDir = "
|
|
14547
|
+
var sheetDir = "_iF _bb";
|
|
14538
14548
|
//#endregion
|
|
14539
14549
|
//#region src/tags/diff-file-sheet.marko
|
|
14540
14550
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14590,9 +14600,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14590
14600
|
_if(() => {
|
|
14591
14601
|
if (open) {
|
|
14592
14602
|
const $scope1_id = _scope_id();
|
|
14593
|
-
_html(`<div${_attr_class("
|
|
14603
|
+
_html(`<div${_attr_class("_iw")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_ix")} role=dialog aria-label="Jump to file"><div${_attr_class("_iy")}><strong${_attr_class("_iv")}>Files</strong><span${_attr_class("_iz")}>${_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, "_iu"])} title=Close aria-label=Close>`);
|
|
14594
14604
|
icon_xmark_default({ size: 16 });
|
|
14595
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14605
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iH")}>`);
|
|
14596
14606
|
_set_serialize_reason(2);
|
|
14597
14607
|
const $childScope = _peek_scope_id();
|
|
14598
14608
|
file_filter_default({
|
|
@@ -14601,13 +14611,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14601
14611
|
filter = _new_filter;
|
|
14602
14612
|
}, "g1", $scope1_id)
|
|
14603
14613
|
});
|
|
14604
|
-
_html(`</div><div${_attr_class("
|
|
14614
|
+
_html(`</div><div${_attr_class("_iA")}>`);
|
|
14605
14615
|
_for_of(groups, (group) => {
|
|
14606
14616
|
const $scope2_id = _scope_id();
|
|
14607
|
-
_html(`<div${_attr_class("
|
|
14617
|
+
_html(`<div${_attr_class("_iB")}><div${_attr_class("_iC")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14608
14618
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14609
14619
|
const $scope3_id = _scope_id();
|
|
14610
|
-
_html(`<div${_attr_class("
|
|
14620
|
+
_html(`<div${_attr_class("_iD")}>`);
|
|
14611
14621
|
_if(() => {
|
|
14612
14622
|
if (dir) {
|
|
14613
14623
|
const $scope5_id = _scope_id();
|
|
@@ -14618,11 +14628,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14618
14628
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14619
14629
|
_for_of(files, ({ file, name }) => {
|
|
14620
14630
|
const $scope4_id = _scope_id();
|
|
14621
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14631
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_iE", "_y"])}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_iG")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14622
14632
|
_if(() => {
|
|
14623
14633
|
if (newKeys.has(file.key)) {
|
|
14624
14634
|
const $scope6_id = _scope_id();
|
|
14625
|
-
_html(`<span${_attr_class(["_A", "
|
|
14635
|
+
_html(`<span${_attr_class(["_A", "_iJ"])} title="Changed since your last visit"></span>`);
|
|
14626
14636
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14627
14637
|
return 0;
|
|
14628
14638
|
}
|
|
@@ -14632,7 +14642,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14632
14642
|
const $scope7_id = _scope_id();
|
|
14633
14643
|
icon_comment_default({
|
|
14634
14644
|
size: 12,
|
|
14635
|
-
class: "
|
|
14645
|
+
class: "_iK"
|
|
14636
14646
|
});
|
|
14637
14647
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14638
14648
|
return 0;
|
|
@@ -14657,7 +14667,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14657
14667
|
_if(() => {
|
|
14658
14668
|
if (!input.files.length) {
|
|
14659
14669
|
const $scope8_id = _scope_id();
|
|
14660
|
-
_html(`<p${_attr_class("
|
|
14670
|
+
_html(`<p${_attr_class("_iI")}>No files match.</p>`);
|
|
14661
14671
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14662
14672
|
return 0;
|
|
14663
14673
|
}
|
|
@@ -15197,11 +15207,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15197
15207
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
15198
15208
|
}
|
|
15199
15209
|
}, "m33", $scope0_id);
|
|
15200
|
-
_html(`<div${_attr_class("
|
|
15210
|
+
_html(`<div${_attr_class("_gg")}><div${_attr_class("_gl")}><div${_attr_class("_gm")}><div${_attr_class(["_gw", { ["_gv"]: !comments.length }])}>`);
|
|
15201
15211
|
_if(() => {
|
|
15202
15212
|
if (input.onExit) {
|
|
15203
15213
|
const $scope1_id = _scope_id();
|
|
15204
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
15214
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_gn"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
|
|
15205
15215
|
icon_back_default({ size: 14 });
|
|
15206
15216
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
15207
15217
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -15212,7 +15222,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15212
15222
|
_if(() => {
|
|
15213
15223
|
if (comments.length) {
|
|
15214
15224
|
const $scope5_id = _scope_id();
|
|
15215
|
-
_html(`<span${_attr_class("
|
|
15225
|
+
_html(`<span${_attr_class("_gp")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
15216
15226
|
writeScope($scope5_id, {});
|
|
15217
15227
|
return 0;
|
|
15218
15228
|
}
|
|
@@ -15220,7 +15230,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15220
15230
|
_if(() => {
|
|
15221
15231
|
if (comments.length) {
|
|
15222
15232
|
const $scope2_id = _scope_id();
|
|
15223
|
-
_html(`<span${_attr_class("
|
|
15233
|
+
_html(`<span${_attr_class("_go")}>`);
|
|
15224
15234
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
15225
15235
|
const $childScope = _peek_scope_id();
|
|
15226
15236
|
diff_send_default({
|
|
@@ -15233,14 +15243,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15233
15243
|
return 0;
|
|
15234
15244
|
}
|
|
15235
15245
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
15236
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15246
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_gk")}>`);
|
|
15237
15247
|
_if(() => {
|
|
15238
15248
|
if (hasFiles) {
|
|
15239
15249
|
const $scope12_id = _scope_id();
|
|
15240
15250
|
_html(`<button${_attr_class([
|
|
15241
15251
|
treeToggle,
|
|
15242
|
-
"
|
|
15243
|
-
{ ["
|
|
15252
|
+
"_gi",
|
|
15253
|
+
{ ["_gh"]: treeOpen }
|
|
15244
15254
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
15245
15255
|
icon_sidebar_default({ size: 14 });
|
|
15246
15256
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -15249,7 +15259,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15249
15259
|
return 0;
|
|
15250
15260
|
}
|
|
15251
15261
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15252
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15262
|
+
_html(`<button${_attr_class([iconBtnRow, "_gi"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
15253
15263
|
_set_serialize_reason(1);
|
|
15254
15264
|
const $childScope2 = _peek_scope_id();
|
|
15255
15265
|
icon_refresh_default({
|
|
@@ -15260,19 +15270,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15260
15270
|
_if(() => {
|
|
15261
15271
|
if (hasFiles) {
|
|
15262
15272
|
const $scope13_id = _scope_id();
|
|
15263
|
-
_html(`<button${_attr_class(["_q", "
|
|
15273
|
+
_html(`<button${_attr_class(["_q", "_gF"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
15264
15274
|
_script($scope13_id, "m53");
|
|
15265
15275
|
writeScope($scope13_id, {});
|
|
15266
15276
|
return 0;
|
|
15267
15277
|
}
|
|
15268
15278
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15269
|
-
_html(`<span${_attr_class(["_o", "
|
|
15279
|
+
_html(`<span${_attr_class(["_o", "_gx"])}>`);
|
|
15270
15280
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15271
15281
|
setScope(v);
|
|
15272
15282
|
}, "m0", $scope0_id), () => {
|
|
15273
|
-
_html(`<select${_attr_class(["_p", "
|
|
15283
|
+
_html(`<select${_attr_class(["_p", "_gy"])} aria-label="Review scope"${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option></select>`);
|
|
15274
15284
|
});
|
|
15275
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15285
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_gt", { ["_gs"]: !findOpen }])}>`);
|
|
15276
15286
|
_set_serialize_reason(2);
|
|
15277
15287
|
const $childScope3 = _peek_scope_id();
|
|
15278
15288
|
let findFocus = diff_find_default({
|
|
@@ -15293,8 +15303,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15293
15303
|
const $scope14_id = _scope_id();
|
|
15294
15304
|
_html(`<button${_attr_class([
|
|
15295
15305
|
iconBtnRow,
|
|
15296
|
-
"
|
|
15297
|
-
"
|
|
15306
|
+
"_gr",
|
|
15307
|
+
"_gi"
|
|
15298
15308
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15299
15309
|
icon_search_default({ size: 14 });
|
|
15300
15310
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15303,7 +15313,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15303
15313
|
return 0;
|
|
15304
15314
|
}
|
|
15305
15315
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15306
|
-
_html(`</div></div><div${_attr_class("
|
|
15316
|
+
_html(`</div></div><div${_attr_class("_gu")} data-diff-main>`);
|
|
15307
15317
|
_if(() => {
|
|
15308
15318
|
if (error) {
|
|
15309
15319
|
const $scope6_id = _scope_id();
|
|
@@ -15326,7 +15336,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15326
15336
|
_if(() => {
|
|
15327
15337
|
if (!repos && loading) {
|
|
15328
15338
|
const $scope15_id = _scope_id();
|
|
15329
|
-
_html(`<div${_attr_class("
|
|
15339
|
+
_html(`<div${_attr_class("_gA")} aria-hidden=true><div${_attr_class(["_gB", "_gC"])}></div><div${_attr_class(["_gB", "_gD"])}></div><div${_attr_class(["_gB", "_gE"])}></div><div${_attr_class(["_gB", "_gD"])}></div><div${_attr_class(["_gB", "_gE"])}></div></div>`);
|
|
15330
15340
|
writeScope($scope15_id, {});
|
|
15331
15341
|
return 0;
|
|
15332
15342
|
}
|
|
@@ -15356,12 +15366,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15356
15366
|
_if(() => {
|
|
15357
15367
|
if (repos && !allFiles.length) {
|
|
15358
15368
|
const $scope11_id = _scope_id();
|
|
15359
|
-
_html(`<p${_attr_class("
|
|
15369
|
+
_html(`<p${_attr_class("_cr")}>${_text_resume($scope11_id, "b", repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
15360
15370
|
writeScope($scope11_id, {});
|
|
15361
15371
|
return 0;
|
|
15362
15372
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
15363
15373
|
const $scope8_id = _scope_id();
|
|
15364
|
-
_html(`<p${_attr_class("
|
|
15374
|
+
_html(`<p${_attr_class("_cr")}>${_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>`);
|
|
15365
15375
|
writeScope($scope8_id, {});
|
|
15366
15376
|
return 1;
|
|
15367
15377
|
}
|
|
@@ -15728,12 +15738,12 @@ function parseInvite(text) {
|
|
|
15728
15738
|
}
|
|
15729
15739
|
//#endregion
|
|
15730
15740
|
//#region src/tags/manage-workspace.css.ts
|
|
15731
|
-
var pageMeta = "
|
|
15732
|
-
var pathMeta = "
|
|
15733
|
-
var skillRow = "
|
|
15734
|
-
var skillName = "
|
|
15735
|
-
var skillDesc = "
|
|
15736
|
-
var skillEnd = "
|
|
15741
|
+
var pageMeta = "_fY _ed";
|
|
15742
|
+
var pathMeta = "_f1 _y";
|
|
15743
|
+
var skillRow = "_f7 _f2";
|
|
15744
|
+
var skillName = "_f9 _f3";
|
|
15745
|
+
var skillDesc = "_gb _f4";
|
|
15746
|
+
var skillEnd = "_gc _f5";
|
|
15737
15747
|
//#endregion
|
|
15738
15748
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15739
15749
|
var icon_clipboard_default = _template("Y", (input) => {
|
|
@@ -15751,8 +15761,8 @@ var icon_clipboard_default = _template("Y", (input) => {
|
|
|
15751
15761
|
});
|
|
15752
15762
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15753
15763
|
});
|
|
15754
|
-
var resultRow = "
|
|
15755
|
-
var resultBranch = "
|
|
15764
|
+
var resultRow = "_h2 _I";
|
|
15765
|
+
var resultBranch = "_h4 _4 _l";
|
|
15756
15766
|
//#endregion
|
|
15757
15767
|
//#region src/tags/icons/icon-branch.marko
|
|
15758
15768
|
var icon_branch_default = _template("U", (input) => {
|
|
@@ -15782,11 +15792,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15782
15792
|
let branchFilter = "";
|
|
15783
15793
|
let reloadTick = 0;
|
|
15784
15794
|
let refreshing = false;
|
|
15785
|
-
_html(`<div${_attr_class("
|
|
15795
|
+
_html(`<div${_attr_class("_h6")}>`);
|
|
15786
15796
|
_if(() => {
|
|
15787
15797
|
{
|
|
15788
15798
|
const $scope4_id = _scope_id();
|
|
15789
|
-
_html(`<p${_attr_class("
|
|
15799
|
+
_html(`<p${_attr_class("_cq")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15790
15800
|
writeScope($scope4_id, {});
|
|
15791
15801
|
return 0;
|
|
15792
15802
|
}
|
|
@@ -15887,21 +15897,21 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15887
15897
|
_resume_branch($scope9_id);
|
|
15888
15898
|
}, $scope0_id) };
|
|
15889
15899
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
15890
|
-
_html(`<div${_attr_class([compact ? "
|
|
15891
|
-
["
|
|
15892
|
-
["
|
|
15900
|
+
_html(`<div${_attr_class([compact ? "_cB" : "_hU", {
|
|
15901
|
+
["_cC"]: compact && !input$2.open,
|
|
15902
|
+
["_cD"]: input$2.pinned
|
|
15893
15903
|
}])}>`);
|
|
15894
15904
|
_if(() => {
|
|
15895
15905
|
if (!compact && ssoPending.length) {
|
|
15896
15906
|
const $scope11_id = _scope_id();
|
|
15897
|
-
_html(`<div${_attr_class("
|
|
15907
|
+
_html(`<div${_attr_class("_hX")}>`);
|
|
15898
15908
|
ssoBlock.content({});
|
|
15899
15909
|
_html("</div>");
|
|
15900
15910
|
writeScope($scope11_id, {});
|
|
15901
15911
|
return 0;
|
|
15902
15912
|
}
|
|
15903
15913
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
15904
|
-
_html(`<div${!compact && input$2.action ? _attr_class("
|
|
15914
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_hV") : _attr_class("_hW")}><label${_attr_class(["_1", compact && "_cE"])}>`);
|
|
15905
15915
|
icon_search_default({
|
|
15906
15916
|
size: 14,
|
|
15907
15917
|
class: "_2"
|
|
@@ -15913,7 +15923,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15913
15923
|
}, "w0", $scope0_id))}${_attr_class([
|
|
15914
15924
|
compact ? "_Z" : inputLg,
|
|
15915
15925
|
"_3",
|
|
15916
|
-
compact && "
|
|
15926
|
+
compact && "_cF"
|
|
15917
15927
|
])} 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)}`);
|
|
15918
15928
|
_if(() => {
|
|
15919
15929
|
if (!compact && input$2.action) {
|
|
@@ -15927,7 +15937,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15927
15937
|
_if(() => {
|
|
15928
15938
|
if (compact) {
|
|
15929
15939
|
const $scope2_id = _scope_id();
|
|
15930
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15940
|
+
_html(`<button${_attr_class([iconBtnRow, "_cG"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15931
15941
|
icon_xmark_default({ size: 14 });
|
|
15932
15942
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
15933
15943
|
_script($scope2_id, "w14");
|
|
@@ -15935,11 +15945,11 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15935
15945
|
return 0;
|
|
15936
15946
|
}
|
|
15937
15947
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
15938
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
15948
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hY"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
15939
15949
|
_if(() => {
|
|
15940
15950
|
if (compact && ssoPending.length) {
|
|
15941
15951
|
const $scope12_id = _scope_id();
|
|
15942
|
-
_html(`<div${_attr_class("
|
|
15952
|
+
_html(`<div${_attr_class("_hX")}>`);
|
|
15943
15953
|
ssoBlock.content({});
|
|
15944
15954
|
_html("</div>");
|
|
15945
15955
|
writeScope($scope12_id, {});
|
|
@@ -15949,16 +15959,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15949
15959
|
_if(() => {
|
|
15950
15960
|
if (pasted) {
|
|
15951
15961
|
const $scope3_id = _scope_id();
|
|
15952
|
-
_html(`<ul${_attr_class("
|
|
15962
|
+
_html(`<ul${_attr_class("_hZ")}><li><div${_attr_class(["_h1", "_h0"])}><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)`)}>`);
|
|
15953
15963
|
icon_plus_default({
|
|
15954
15964
|
size: 12,
|
|
15955
|
-
class: "
|
|
15965
|
+
class: "_h8"
|
|
15956
15966
|
});
|
|
15957
|
-
_html(`<span${_attr_class("
|
|
15967
|
+
_html(`<span${_attr_class("_h9")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
15958
15968
|
_if(() => {
|
|
15959
15969
|
if (pastedForkable) {
|
|
15960
15970
|
const $scope10_id = _scope_id();
|
|
15961
|
-
_html(`<button${_attr_class(["
|
|
15971
|
+
_html(`<button${_attr_class(["_h5", { ["_h3"]: 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"}>`);
|
|
15962
15972
|
_if(() => {
|
|
15963
15973
|
if (pasteWillFork) {
|
|
15964
15974
|
const $scope14_id = _scope_id();
|
|
@@ -15978,7 +15988,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
15978
15988
|
return 0;
|
|
15979
15989
|
}
|
|
15980
15990
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
15981
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15991
|
+
_html(`<button${_attr_class([resultBranch, { ["_h3"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15982
15992
|
icon_branch_default({ size: 12 });
|
|
15983
15993
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
15984
15994
|
_if(() => {
|
|
@@ -16005,7 +16015,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16005
16015
|
return 0;
|
|
16006
16016
|
} else if (filter && !catalog) {
|
|
16007
16017
|
const $scope13_id = _scope_id();
|
|
16008
|
-
_html(`<p${_attr_class("
|
|
16018
|
+
_html(`<p${_attr_class("_cq")}>Loading repos…</p>`);
|
|
16009
16019
|
writeScope($scope13_id, {});
|
|
16010
16020
|
return 1;
|
|
16011
16021
|
}
|
|
@@ -16013,15 +16023,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16013
16023
|
_if(() => {
|
|
16014
16024
|
if (results.length) {
|
|
16015
16025
|
const $scope5_id = _scope_id();
|
|
16016
|
-
_html(`<ul${_attr_class("
|
|
16026
|
+
_html(`<ul${_attr_class("_hZ")}>`);
|
|
16017
16027
|
_for_of(results, (repo, i) => {
|
|
16018
16028
|
const $scope6_id = _scope_id();
|
|
16019
|
-
_html(`<li><div${_attr_class(["
|
|
16029
|
+
_html(`<li><div${_attr_class(["_h1", { ["_h0"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
16020
16030
|
icon_plus_default({
|
|
16021
16031
|
size: 12,
|
|
16022
|
-
class: "
|
|
16032
|
+
class: "_h8"
|
|
16023
16033
|
});
|
|
16024
|
-
_html(`<span${_attr_class("
|
|
16034
|
+
_html(`<span${_attr_class("_h9")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_h3"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
16025
16035
|
icon_branch_default({ size: 12 });
|
|
16026
16036
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
16027
16037
|
_if(() => {
|
|
@@ -16056,7 +16066,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16056
16066
|
return 0;
|
|
16057
16067
|
} else if (filter && catalog && !pasted) {
|
|
16058
16068
|
const $scope8_id = _scope_id();
|
|
16059
|
-
_html(`<p${_attr_class("
|
|
16069
|
+
_html(`<p${_attr_class("_cq")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
16060
16070
|
writeScope($scope8_id, {});
|
|
16061
16071
|
return 1;
|
|
16062
16072
|
}
|
|
@@ -16276,7 +16286,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16276
16286
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16277
16287
|
}, "r10", $scope0_id);
|
|
16278
16288
|
const titleId = _id();
|
|
16279
|
-
_html(`<div${_attr_class("
|
|
16289
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
16280
16290
|
_set_serialize_reason(30);
|
|
16281
16291
|
const $childScope = _peek_scope_id();
|
|
16282
16292
|
page_head_default({
|
|
@@ -16289,7 +16299,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16289
16299
|
meta: attrTag({ content: _content("r20", () => {
|
|
16290
16300
|
_scope_reason();
|
|
16291
16301
|
const $scope13_id = _scope_id();
|
|
16292
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16302
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fZ")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
16293
16303
|
_if(() => {
|
|
16294
16304
|
if (ws.status !== "active") {
|
|
16295
16305
|
const $scope17_id = _scope_id();
|
|
@@ -16298,7 +16308,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16298
16308
|
return 0;
|
|
16299
16309
|
}
|
|
16300
16310
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
16301
|
-
_html(`<span${_attr_class("
|
|
16311
|
+
_html(`<span${_attr_class("_f0")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
16302
16312
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
16303
16313
|
_: _scope_with_id($scope0_id),
|
|
16304
16314
|
Ccf: 1
|
|
@@ -16378,12 +16388,12 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16378
16388
|
_if(() => {
|
|
16379
16389
|
if (pendingAction && actionStep) {
|
|
16380
16390
|
const $scope10_id = _scope_id();
|
|
16381
|
-
_html(`<p${_attr_class("
|
|
16391
|
+
_html(`<p${_attr_class("_ce")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
16382
16392
|
writeScope($scope10_id, {});
|
|
16383
16393
|
return 0;
|
|
16384
16394
|
}
|
|
16385
16395
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16386
|
-
_html(`<section${_attr_class("
|
|
16396
|
+
_html(`<section${_attr_class("_cf")}><div${_attr_class("_cg")}><h2${_attr_class("_ct")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gf"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16387
16397
|
icon_plus_default({ size: 16 });
|
|
16388
16398
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16389
16399
|
_set_serialize_reason(26);
|
|
@@ -16417,7 +16427,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16417
16427
|
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
|
|
16418
16428
|
_for_of(ws.repos, (row) => {
|
|
16419
16429
|
const $scope1_id = _scope_id();
|
|
16420
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16430
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_cl")}><span${_attr_class(["_cm", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_cn")}><a${_attr_class(["_co", "_K"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "g", repoLabel(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
|
|
16421
16431
|
_if(() => {
|
|
16422
16432
|
if (row.base_branch !== row.default_branch) {
|
|
16423
16433
|
const $scope20_id = _scope_id();
|
|
@@ -16438,7 +16448,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16438
16448
|
} else {
|
|
16439
16449
|
const $scope9_id = _scope_id();
|
|
16440
16450
|
_html(`<button${_attr_class([
|
|
16441
|
-
"
|
|
16451
|
+
"_cp",
|
|
16442
16452
|
"_8",
|
|
16443
16453
|
"_9",
|
|
16444
16454
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -16471,13 +16481,13 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16471
16481
|
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
16472
16482
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16473
16483
|
const $scope24_id = _scope_id();
|
|
16474
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16484
|
+
_html(`<li${_attr_class([flatCardRow, "_cj"])}><span${_attr_class("_G")}></span><div${_attr_class("_cl")}><span${_attr_class("_co")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
|
|
16475
16485
|
writeScope($scope24_id, {});
|
|
16476
16486
|
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
16477
16487
|
_if(() => {
|
|
16478
16488
|
if (!ws.repos.length && !busy.size) {
|
|
16479
16489
|
const $scope25_id = _scope_id();
|
|
16480
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16490
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_co")}>No repos yet. Add one to start.</span></li>`);
|
|
16481
16491
|
writeScope($scope25_id, {});
|
|
16482
16492
|
return 0;
|
|
16483
16493
|
}
|
|
@@ -16495,18 +16505,18 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16495
16505
|
_if(() => {
|
|
16496
16506
|
if (allSkills.length) {
|
|
16497
16507
|
const $scope2_id = _scope_id();
|
|
16498
|
-
_html(`<section${_attr_class("
|
|
16508
|
+
_html(`<section${_attr_class("_cf")}><div${_attr_class("_cg")}><h2${_attr_class("_ct")}>Skills</h2><span${_attr_class(sectionCount)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16499
16509
|
_for_of(allSkills, ({ s, linked }) => {
|
|
16500
16510
|
const $scope3_id = _scope_id();
|
|
16501
16511
|
const isBusy = skillBusy.has(s.id);
|
|
16502
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
16512
|
+
_html(`<li${_attr_class([skillRow, { ["_f8"]: !linked }])}><span${_attr_class("_f_")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16503
16513
|
_if(() => {
|
|
16504
16514
|
if (s.worktree && !s.broken) {
|
|
16505
16515
|
const $scope26_id = _scope_id();
|
|
16506
16516
|
_html(`<span${_attr_class([
|
|
16507
16517
|
"_N",
|
|
16508
16518
|
"_y",
|
|
16509
|
-
"
|
|
16519
|
+
"_ga"
|
|
16510
16520
|
])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope26_id, "b", s.worktree)}/</span>${_el_resume($scope26_id, "a")}`);
|
|
16511
16521
|
writeScope($scope26_id, {});
|
|
16512
16522
|
return 0;
|
|
@@ -16558,10 +16568,10 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16558
16568
|
if (linked) {
|
|
16559
16569
|
const $scope11_id = _scope_id();
|
|
16560
16570
|
_html(`<button${_attr_class([
|
|
16561
|
-
"
|
|
16571
|
+
"_cp",
|
|
16562
16572
|
"_8",
|
|
16563
16573
|
"_9",
|
|
16564
|
-
"
|
|
16574
|
+
"_gd",
|
|
16565
16575
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16566
16576
|
])} type=button${_attr("disabled", isBusy)}${isBusy ? " aria-busy=true" : ""}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
16567
16577
|
_if(() => {
|
|
@@ -16611,20 +16621,20 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16611
16621
|
_if(() => {
|
|
16612
16622
|
if (running.length) {
|
|
16613
16623
|
const $scope15_id = _scope_id();
|
|
16614
|
-
_html(`<section${_attr_class("
|
|
16624
|
+
_html(`<section${_attr_class("_cf")}><div${_attr_class("_cg")}><h2${_attr_class("_ct")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16615
16625
|
_for_of(running, (p) => {
|
|
16616
16626
|
const $scope16_id = _scope_id();
|
|
16617
|
-
_html(`<li${_attr_class("
|
|
16627
|
+
_html(`<li${_attr_class("_f2")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_f3"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_f4"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_f5")}>`);
|
|
16618
16628
|
_for_of(p.ports, (port) => {
|
|
16619
16629
|
const $scope34_id = _scope_id();
|
|
16620
16630
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
16621
16631
|
_script($scope34_id, "r27");
|
|
16622
16632
|
writeScope($scope34_id, { d: port });
|
|
16623
16633
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
16624
|
-
_html(`<span${_attr_class(["_y", "
|
|
16625
|
-
"
|
|
16634
|
+
_html(`<span${_attr_class(["_y", "_f6"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
16635
|
+
"_cp",
|
|
16626
16636
|
"_8",
|
|
16627
|
-
"
|
|
16637
|
+
"_ge"
|
|
16628
16638
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16629
16639
|
icon_xmark_default({ size: 14 });
|
|
16630
16640
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -16705,14 +16715,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16705
16715
|
});
|
|
16706
16716
|
_resume_branch($scope0_id);
|
|
16707
16717
|
});
|
|
16708
|
-
var curRepos = "
|
|
16709
|
-
var curRow = "
|
|
16710
|
-
var curEmpty = "
|
|
16711
|
-
var curBase = "
|
|
16712
|
-
var archived = "
|
|
16713
|
-
var archivedHint = "
|
|
16714
|
-
var archivedList = "
|
|
16715
|
-
var archivedRow = "
|
|
16718
|
+
var curRepos = "_cY _ck _cL _cW";
|
|
16719
|
+
var curRow = "_ff _cZ _cX";
|
|
16720
|
+
var curEmpty = "_fh _cq";
|
|
16721
|
+
var curBase = "_fk _Y _X";
|
|
16722
|
+
var archived = "_fp _cf";
|
|
16723
|
+
var archivedHint = "_fq _X";
|
|
16724
|
+
var archivedList = "_cY _ck _cL _cW";
|
|
16725
|
+
var archivedRow = "_fr _cZ _cX";
|
|
16716
16726
|
//#endregion
|
|
16717
16727
|
//#region src/tags/icons/icon-group.marko
|
|
16718
16728
|
var icon_group_default = _template("fb", (input) => {
|
|
@@ -16732,8 +16742,8 @@ var icon_group_default = _template("fb", (input) => {
|
|
|
16732
16742
|
});
|
|
16733
16743
|
//#endregion
|
|
16734
16744
|
//#region src/tags/join-dialog.css.ts
|
|
16735
|
-
var dlg = "
|
|
16736
|
-
var hint = "
|
|
16745
|
+
var dlg = "_hv _gT";
|
|
16746
|
+
var hint = "_hw _X";
|
|
16737
16747
|
//#endregion
|
|
16738
16748
|
//#region src/tags/join-dialog.marko
|
|
16739
16749
|
var api$3;
|
|
@@ -16862,26 +16872,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16862
16872
|
content: _content("o12", () => {
|
|
16863
16873
|
_scope_reason();
|
|
16864
16874
|
const $scope1_id = _scope_id();
|
|
16865
|
-
_html(`<h2${_attr_class("
|
|
16875
|
+
_html(`<h2${_attr_class("_gU")}${_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([
|
|
16866
16876
|
"_Z",
|
|
16867
16877
|
"_y",
|
|
16868
|
-
"
|
|
16878
|
+
"_hy"
|
|
16869
16879
|
])} 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")}`);
|
|
16870
16880
|
_if(() => {
|
|
16871
16881
|
if (parsed.error) {
|
|
16872
16882
|
const $scope8_id = _scope_id();
|
|
16873
|
-
_html(`<p${_attr_class([hint, "
|
|
16883
|
+
_html(`<p${_attr_class([hint, "_hx"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16874
16884
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16875
16885
|
return 0;
|
|
16876
16886
|
} else if (parsed.ok) {
|
|
16877
16887
|
const $scope3_id = _scope_id();
|
|
16878
|
-
_html(`<ul${_attr_class("
|
|
16888
|
+
_html(`<ul${_attr_class("_hz")}>`);
|
|
16879
16889
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16880
16890
|
const $scope9_id = _scope_id();
|
|
16881
|
-
_html(`<li${_attr_class("
|
|
16891
|
+
_html(`<li${_attr_class("_hA")}><span${_attr_class("_hB")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16882
16892
|
writeScope($scope9_id, {});
|
|
16883
16893
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16884
|
-
_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("
|
|
16894
|
+
_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("_hC")}><span${_attr_class("_ct")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16885
16895
|
name = _new_name;
|
|
16886
16896
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16887
16897
|
_script($scope3_id, "o8");
|
|
@@ -16918,10 +16928,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16918
16928
|
_if(() => {
|
|
16919
16929
|
if (busy && steps$2.length) {
|
|
16920
16930
|
const $scope6_id = _scope_id();
|
|
16921
|
-
_html(`<ul${_attr_class("
|
|
16931
|
+
_html(`<ul${_attr_class("_hD")}>`);
|
|
16922
16932
|
_for_of(steps$2, (step$2, i) => {
|
|
16923
16933
|
const $scope7_id = _scope_id();
|
|
16924
|
-
_html(`<li${_attr_class(["
|
|
16934
|
+
_html(`<li${_attr_class(["_hF", { ["_hE"]: i === steps$2.length - 1 }])}>`);
|
|
16925
16935
|
_if(() => {
|
|
16926
16936
|
if (i === steps$2.length - 1) {
|
|
16927
16937
|
const $scope10_id = _scope_id();
|
|
@@ -16930,7 +16940,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16930
16940
|
return 0;
|
|
16931
16941
|
} else {
|
|
16932
16942
|
const $scope11_id = _scope_id();
|
|
16933
|
-
_html(`<span${_attr_class("
|
|
16943
|
+
_html(`<span${_attr_class("_hG")}>`);
|
|
16934
16944
|
icon_check_default({ size: 14 });
|
|
16935
16945
|
_html("</span>");
|
|
16936
16946
|
writeScope($scope11_id, {});
|
|
@@ -17088,7 +17098,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17088
17098
|
}
|
|
17089
17099
|
}, "t6", $scope0_id);
|
|
17090
17100
|
const titleId = _id();
|
|
17091
|
-
_html(`<div${_attr_class("
|
|
17101
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
17092
17102
|
_set_serialize_reason({
|
|
17093
17103
|
0: _serialize_guard($scope0_reason, 2),
|
|
17094
17104
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17137,16 +17147,16 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17137
17147
|
return 0;
|
|
17138
17148
|
}
|
|
17139
17149
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17140
|
-
_html(`<label${_attr_class("
|
|
17150
|
+
_html(`<label${_attr_class("_fb")}><span${_attr_class("_ct")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17141
17151
|
name = _new_name;
|
|
17142
|
-
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
17152
|
+
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_cf")}><div${_attr_class("_fd")}><h2${_attr_class("_ct")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
17143
17153
|
_for_of(selected, (repo) => {
|
|
17144
17154
|
const $scope4_id = _scope_id();
|
|
17145
|
-
_html(`<li${_attr_class("
|
|
17155
|
+
_html(`<li${_attr_class("_fe")}><div${_attr_class(curRow)}><span${_attr_class("_fi")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
|
|
17146
17156
|
_if(() => {
|
|
17147
17157
|
if (repo.fork !== void 0) {
|
|
17148
17158
|
const $scope5_id = _scope_id();
|
|
17149
|
-
_html(`<button${_attr_class(["
|
|
17159
|
+
_html(`<button${_attr_class(["_fl", { ["_fj"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
17150
17160
|
_if(() => {
|
|
17151
17161
|
if (repo.fork) {
|
|
17152
17162
|
const $scope14_id = _scope_id();
|
|
@@ -17169,7 +17179,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17169
17179
|
_html(`<button${_attr_class([
|
|
17170
17180
|
curBase,
|
|
17171
17181
|
"_y",
|
|
17172
|
-
{ ["
|
|
17182
|
+
{ ["_fj"]: branchesFor === repo.fullName }
|
|
17173
17183
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17174
17184
|
icon_branch_default({ size: 12 });
|
|
17175
17185
|
_html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -17178,7 +17188,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17178
17188
|
_if(() => {
|
|
17179
17189
|
if (branchesFor === repo.fullName) {
|
|
17180
17190
|
const $scope10_id = _scope_id();
|
|
17181
|
-
_html(`<div${_attr_class("
|
|
17191
|
+
_html(`<div${_attr_class("_fg")}>`);
|
|
17182
17192
|
const $childScope2 = _peek_scope_id();
|
|
17183
17193
|
branch_pick_default({
|
|
17184
17194
|
repo: repo.fullName,
|
|
@@ -17229,7 +17239,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17229
17239
|
action: attrTag({ content: _content("t21", () => {
|
|
17230
17240
|
_scope_reason();
|
|
17231
17241
|
const $scope2_id = _scope_id();
|
|
17232
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
17242
|
+
_html(`<button${_attr_class([iconBtnRow, "_fc"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17233
17243
|
_set_serialize_reason(1);
|
|
17234
17244
|
const $childScope3 = _peek_scope_id();
|
|
17235
17245
|
icon_refresh_default({
|
|
@@ -17250,10 +17260,10 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17250
17260
|
_if(() => {
|
|
17251
17261
|
if (busy && steps.length) {
|
|
17252
17262
|
const $scope11_id = _scope_id();
|
|
17253
|
-
_html(`<ul${_attr_class("
|
|
17263
|
+
_html(`<ul${_attr_class("_fm")}>`);
|
|
17254
17264
|
_for_of(steps, (step, i) => {
|
|
17255
17265
|
const $scope12_id = _scope_id();
|
|
17256
|
-
_html(`<li${_attr_class(["
|
|
17266
|
+
_html(`<li${_attr_class(["_fs", { ["_fn"]: i === steps.length - 1 }])}>`);
|
|
17257
17267
|
_if(() => {
|
|
17258
17268
|
if (i === steps.length - 1) {
|
|
17259
17269
|
const $scope17_id = _scope_id();
|
|
@@ -17262,7 +17272,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17262
17272
|
return 0;
|
|
17263
17273
|
} else {
|
|
17264
17274
|
const $scope18_id = _scope_id();
|
|
17265
|
-
_html(`<span${_attr_class("
|
|
17275
|
+
_html(`<span${_attr_class("_fo")}>`);
|
|
17266
17276
|
icon_check_default({ size: 14 });
|
|
17267
17277
|
_html("</span>");
|
|
17268
17278
|
writeScope($scope18_id, {});
|
|
@@ -17276,18 +17286,18 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17276
17286
|
return 0;
|
|
17277
17287
|
}
|
|
17278
17288
|
}, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
17279
|
-
_html(`<div${_attr_class("
|
|
17289
|
+
_html(`<div${_attr_class("_e_")}><button type=button${_attr_class([
|
|
17280
17290
|
btnLg,
|
|
17281
17291
|
"_r",
|
|
17282
|
-
"
|
|
17292
|
+
"_fa"
|
|
17283
17293
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
|
|
17284
17294
|
_if(() => {
|
|
17285
17295
|
if (archived$1.length) {
|
|
17286
17296
|
const $scope6_id = _scope_id();
|
|
17287
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17297
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fd")}><h2${_attr_class("_ct")}>Archived</h2><span${_attr_class(sectionCount)}>${_text_resume($scope6_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(archivedList)}>`);
|
|
17288
17298
|
_for_of(archived$1, (ws) => {
|
|
17289
17299
|
const $scope7_id = _scope_id();
|
|
17290
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
17300
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cl")}><span${_attr_class("_cm")}>${_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)}>`);
|
|
17291
17301
|
_if(() => {
|
|
17292
17302
|
if (restoring === ws.id) {
|
|
17293
17303
|
const $scope19_id = _scope_id();
|
|
@@ -17403,19 +17413,19 @@ var term_find_default = _template("E", (input) => {
|
|
|
17403
17413
|
const canStep = hasQuery && open;
|
|
17404
17414
|
const keybar = input.placement === "keybar";
|
|
17405
17415
|
_html(`<div${_attr_class([
|
|
17406
|
-
"
|
|
17407
|
-
keybar ? "
|
|
17408
|
-
!open && "
|
|
17409
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17416
|
+
"_el",
|
|
17417
|
+
keybar ? "_en" : "_em",
|
|
17418
|
+
!open && "_ep"
|
|
17419
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eg", keybar ? "_eo" : "_ei"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17410
17420
|
if (!open) return;
|
|
17411
17421
|
query = v;
|
|
17412
17422
|
live.query = v;
|
|
17413
17423
|
run(0);
|
|
17414
|
-
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17424
|
+
}, "E1", $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"}>`);
|
|
17415
17425
|
icon_arrow_up_default({ size: 14 });
|
|
17416
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17426
|
+
_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"}>`);
|
|
17417
17427
|
icon_arrow_down_default({ size: 14 });
|
|
17418
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17428
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_er"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17419
17429
|
icon_xmark_default({ size: 14 });
|
|
17420
17430
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
17421
17431
|
const $return = focusInput;
|
|
@@ -17566,7 +17576,7 @@ var term_default = _template("F", (input) => {
|
|
|
17566
17576
|
}
|
|
17567
17577
|
}, "F9", $scope0_id);
|
|
17568
17578
|
input.keys;
|
|
17569
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17579
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eG")}><div${_attr_class("_eH")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17570
17580
|
_if(() => {
|
|
17571
17581
|
if (findOpen) {
|
|
17572
17582
|
const $scope4_id = _scope_id();
|
|
@@ -17593,7 +17603,7 @@ var term_default = _template("F", (input) => {
|
|
|
17593
17603
|
_if(() => {
|
|
17594
17604
|
if (uploading) {
|
|
17595
17605
|
const $scope5_id = _scope_id();
|
|
17596
|
-
_html(`<div${_attr_class("
|
|
17606
|
+
_html(`<div${_attr_class("_eN")}>uploading…</div>`);
|
|
17597
17607
|
writeScope($scope5_id, {});
|
|
17598
17608
|
return 0;
|
|
17599
17609
|
}
|
|
@@ -17601,7 +17611,7 @@ var term_default = _template("F", (input) => {
|
|
|
17601
17611
|
_if(() => {
|
|
17602
17612
|
if (copiedFlash) {
|
|
17603
17613
|
const $scope6_id = _scope_id();
|
|
17604
|
-
_html(`<div${_attr_class("
|
|
17614
|
+
_html(`<div${_attr_class("_eM")}>Copied</div>`);
|
|
17605
17615
|
writeScope($scope6_id, {});
|
|
17606
17616
|
return 0;
|
|
17607
17617
|
}
|
|
@@ -17610,7 +17620,7 @@ var term_default = _template("F", (input) => {
|
|
|
17610
17620
|
_if(() => {
|
|
17611
17621
|
if (trapOpen) {
|
|
17612
17622
|
const $scope3_id = _scope_id();
|
|
17613
|
-
_html(`<div${_attr_class("
|
|
17623
|
+
_html(`<div${_attr_class("_eO")}><div${_attr_class("_eP")}><p${_attr_class("_eQ")}>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")}`);
|
|
17614
17624
|
_script($scope3_id, "F16");
|
|
17615
17625
|
_script($scope3_id, "F17");
|
|
17616
17626
|
writeScope($scope3_id, {});
|
|
@@ -17859,7 +17869,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17859
17869
|
const onKey = _resume((e) => {
|
|
17860
17870
|
const target = e.target;
|
|
17861
17871
|
const typing = !!target && !target.closest(".xterm") && (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.tagName === "SELECT" || target.isContentEditable);
|
|
17862
|
-
if (e.key === "Escape" && view !== "term" && !document.querySelector("dialog[open]") && !(
|
|
17872
|
+
if (e.key === "Escape" && view !== "term" && view !== "diff" && !e.defaultPrevented && !document.querySelector("dialog[open]") && !(typing && target.tagName !== "SELECT" && target.value)) {
|
|
17863
17873
|
e.preventDefault();
|
|
17864
17874
|
if (view === "new") exitCreate();
|
|
17865
17875
|
else view = home;
|
|
@@ -17871,10 +17881,10 @@ var work_view_default = _template("J", (input) => {
|
|
|
17871
17881
|
}
|
|
17872
17882
|
}, "J14", $scope0_id);
|
|
17873
17883
|
const navShown = view === "nav" && input.navState?.view === "nav";
|
|
17874
|
-
_html(`<div${_attr_class(["
|
|
17875
|
-
["
|
|
17876
|
-
["
|
|
17877
|
-
}])}><div${_attr_class("
|
|
17884
|
+
_html(`<div${_attr_class(["_b_", {
|
|
17885
|
+
["_b8"]: navShown,
|
|
17886
|
+
["_b9"]: !input.active
|
|
17887
|
+
}])}><div${_attr_class("_ca")}>`);
|
|
17878
17888
|
_if(() => {
|
|
17879
17889
|
if (error) {
|
|
17880
17890
|
const $scope8_id = _scope_id();
|
|
@@ -17897,7 +17907,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17897
17907
|
_if(() => {
|
|
17898
17908
|
if (diffMounted && ws) {
|
|
17899
17909
|
const $scope1_id = _scope_id();
|
|
17900
|
-
_html(`<div${_attr_class("
|
|
17910
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
17901
17911
|
_set_serialize_reason({
|
|
17902
17912
|
0: $sg__input_workspace,
|
|
17903
17913
|
1: $sg__input_workspace,
|
|
@@ -17954,7 +17964,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17954
17964
|
_if(() => {
|
|
17955
17965
|
if (manageMounted && ws) {
|
|
17956
17966
|
const $scope2_id = _scope_id();
|
|
17957
|
-
_html(`<div${_attr_class("
|
|
17967
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
17958
17968
|
_set_serialize_reason({
|
|
17959
17969
|
0: $sg__input_workspace,
|
|
17960
17970
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -17980,7 +17990,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
17980
17990
|
_if(() => {
|
|
17981
17991
|
if (settingsMounted) {
|
|
17982
17992
|
const $scope3_id = _scope_id();
|
|
17983
|
-
_html(`<div${_attr_class("
|
|
17993
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
17984
17994
|
_set_serialize_reason({
|
|
17985
17995
|
0: _serialize_guard($scope0_reason, 0),
|
|
17986
17996
|
1: $sg__input_workspace,
|
|
@@ -18022,7 +18032,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18022
18032
|
_if(() => {
|
|
18023
18033
|
if (newMounted) {
|
|
18024
18034
|
const $scope4_id = _scope_id();
|
|
18025
|
-
_html(`<div${_attr_class("
|
|
18035
|
+
_html(`<div${_attr_class("_cb")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18026
18036
|
_set_serialize_reason({
|
|
18027
18037
|
0: 1,
|
|
18028
18038
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -18047,13 +18057,13 @@ var work_view_default = _template("J", (input) => {
|
|
|
18047
18057
|
return 0;
|
|
18048
18058
|
}
|
|
18049
18059
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
18050
|
-
_html(`<div${_attr_class("
|
|
18060
|
+
_html(`<div${_attr_class("_cc")}${_attr("inert", view !== "term")}>`);
|
|
18051
18061
|
_if(() => {
|
|
18052
18062
|
if (ws && shownSessions) {
|
|
18053
18063
|
const $scope5_id = _scope_id();
|
|
18054
18064
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18055
18065
|
const $scope6_id = _scope_id();
|
|
18056
|
-
_html(`<div${_attr_class("
|
|
18066
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18057
18067
|
_set_serialize_reason(2);
|
|
18058
18068
|
const $childScope5 = _peek_scope_id();
|
|
18059
18069
|
term_default({
|
|
@@ -18079,7 +18089,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18079
18089
|
_if(() => {
|
|
18080
18090
|
if (!shownSessions.length && view === "term") {
|
|
18081
18091
|
const $scope7_id = _scope_id();
|
|
18082
|
-
_html(`<div${_attr_class("
|
|
18092
|
+
_html(`<div${_attr_class("_cr")}><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>`);
|
|
18083
18093
|
_script($scope7_id, "J38");
|
|
18084
18094
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
18085
18095
|
return 0;
|
|
@@ -18089,7 +18099,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18089
18099
|
return 0;
|
|
18090
18100
|
} else if (ws) {
|
|
18091
18101
|
const $scope10_id = _scope_id();
|
|
18092
|
-
_html(`<p${_attr_class("
|
|
18102
|
+
_html(`<p${_attr_class("_cr")}>Loading sessions…</p>`);
|
|
18093
18103
|
writeScope($scope10_id, {});
|
|
18094
18104
|
return 1;
|
|
18095
18105
|
}
|
|
@@ -18209,8 +18219,8 @@ _template("tb", (input) => {
|
|
|
18209
18219
|
});
|
|
18210
18220
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
18211
18221
|
});
|
|
18212
|
-
var sessOpen = "
|
|
18213
|
-
var sessRename = "
|
|
18222
|
+
var sessOpen = "_ew _I";
|
|
18223
|
+
var sessRename = "_eA _J";
|
|
18214
18224
|
//#endregion
|
|
18215
18225
|
//#region src/tags/key-bar-sessions.marko
|
|
18216
18226
|
var usageFor;
|
|
@@ -18241,7 +18251,7 @@ _template("p", (input) => {
|
|
|
18241
18251
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
18242
18252
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
18243
18253
|
}, "p2", $scope0_id);
|
|
18244
|
-
_html(`<button${_attr_class([kbtn, "
|
|
18254
|
+
_html(`<button${_attr_class([kbtn, "_es"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
18245
18255
|
_set_serialize_reason({
|
|
18246
18256
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
18247
18257
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -18255,12 +18265,12 @@ _template("p", (input) => {
|
|
|
18255
18265
|
"_A",
|
|
18256
18266
|
"_bc",
|
|
18257
18267
|
phase[sessionPhase(current$2?.state)]
|
|
18258
|
-
])}></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(["__", "
|
|
18268
|
+
])}></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(["__", "_et"])}>`);
|
|
18259
18269
|
_for_of(input.sessions, (s) => {
|
|
18260
18270
|
const $scope1_id = _scope_id();
|
|
18261
18271
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
18262
18272
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
18263
|
-
_html(`<div${_attr_class(["
|
|
18273
|
+
_html(`<div${_attr_class(["_ev", { ["_eu"]: s.id === input.sessionId }])}>`);
|
|
18264
18274
|
_if(() => {
|
|
18265
18275
|
if (renamingId === s.id) {
|
|
18266
18276
|
const $scope5_id = _scope_id();
|
|
@@ -18292,7 +18302,7 @@ _template("p", (input) => {
|
|
|
18292
18302
|
agent: activeAgent(s),
|
|
18293
18303
|
size: 14
|
|
18294
18304
|
});
|
|
18295
|
-
_html(`<span${_attr_class("
|
|
18305
|
+
_html(`<span${_attr_class("_ex")}><span${_attr_class("_ez")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
18296
18306
|
_if(() => {
|
|
18297
18307
|
if (s.id === input.sessionId) {
|
|
18298
18308
|
const $scope7_id = _scope_id();
|
|
@@ -18304,7 +18314,7 @@ _template("p", (input) => {
|
|
|
18304
18314
|
const $childScope4 = _peek_scope_id();
|
|
18305
18315
|
usage_pcts_default({
|
|
18306
18316
|
agent: plan,
|
|
18307
|
-
class: "
|
|
18317
|
+
class: "_ey"
|
|
18308
18318
|
});
|
|
18309
18319
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
18310
18320
|
return 0;
|
|
@@ -18321,7 +18331,7 @@ _template("p", (input) => {
|
|
|
18321
18331
|
_if(() => {
|
|
18322
18332
|
if (input.onRenameSession) {
|
|
18323
18333
|
const $scope6_id = _scope_id();
|
|
18324
|
-
_html(`<button${_attr_class(["
|
|
18334
|
+
_html(`<button${_attr_class(["_eB", "_eC"])} title="Rename session">`);
|
|
18325
18335
|
icon_edit_default({ size: 12 });
|
|
18326
18336
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
18327
18337
|
_script($scope6_id, "p4");
|
|
@@ -18333,7 +18343,7 @@ _template("p", (input) => {
|
|
|
18333
18343
|
if (input.onCloseSession) {
|
|
18334
18344
|
const $scope3_id = _scope_id();
|
|
18335
18345
|
_html(`<button${_attr_class([
|
|
18336
|
-
"
|
|
18346
|
+
"_eB",
|
|
18337
18347
|
"_8",
|
|
18338
18348
|
{ ["_s"]: armedClose === s.id }
|
|
18339
18349
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -18360,7 +18370,7 @@ _template("p", (input) => {
|
|
|
18360
18370
|
k: $si__input_sessions && $for_content__s_id__closures
|
|
18361
18371
|
});
|
|
18362
18372
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
18363
|
-
_html(`<div${_attr_class("
|
|
18373
|
+
_html(`<div${_attr_class("_eD")}><span${_attr_class("_eE")}>New session</span><div${_attr_class("_eF")}>`);
|
|
18364
18374
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
18365
18375
|
const $scope4_id = _scope_id();
|
|
18366
18376
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -18638,7 +18648,6 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18638
18648
|
let status = boot.status;
|
|
18639
18649
|
let settings = boot.settings;
|
|
18640
18650
|
const last = boot.prefs["last-workspace"];
|
|
18641
|
-
const openable = _resume((ws) => ws.status === "active" && !ws.pending, "c0");
|
|
18642
18651
|
const bootActive = boot.workspaces.filter(openable);
|
|
18643
18652
|
let selectedId = (initial.workspaceId && bootActive.some((ws) => ws.id === initial.workspaceId) ? initial.workspaceId : null) || (last && bootActive.some((ws) => ws.id === last) ? last : null) || bootActive[0]?.id || null;
|
|
18644
18653
|
let openIds = selectedId ? [selectedId] : [];
|
|
@@ -18669,7 +18678,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18669
18678
|
if (fallback && !openIds.includes(fallback)) openIds = openIds.concat(fallback);
|
|
18670
18679
|
prefs.setLastWorkspace(selectedId);
|
|
18671
18680
|
}
|
|
18672
|
-
}, "
|
|
18681
|
+
}, "c0", $scope0_id);
|
|
18673
18682
|
const load = _resume(async () => {
|
|
18674
18683
|
try {
|
|
18675
18684
|
applyWorkspaces(await api("/api/workspaces"));
|
|
@@ -18677,7 +18686,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18677
18686
|
if (isTransientApiError(err)) return;
|
|
18678
18687
|
error = `Loading workspaces failed: ${err.message || String(err)}`;
|
|
18679
18688
|
}
|
|
18680
|
-
}, "
|
|
18689
|
+
}, "c1", $scope0_id);
|
|
18681
18690
|
const patchStatusSessions = _resume((workspaceId, sessions) => {
|
|
18682
18691
|
const prev = status[workspaceId];
|
|
18683
18692
|
if (!prev) return;
|
|
@@ -18697,7 +18706,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18697
18706
|
waiting: live.filter((state) => state.phase === "waiting").length
|
|
18698
18707
|
}
|
|
18699
18708
|
};
|
|
18700
|
-
}, "
|
|
18709
|
+
}, "c2", $scope0_id);
|
|
18701
18710
|
const statusMem = {
|
|
18702
18711
|
run: void 0,
|
|
18703
18712
|
fresh: false
|
|
@@ -18713,7 +18722,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18713
18722
|
if (!isTransientApiError(err)) throw err;
|
|
18714
18723
|
}
|
|
18715
18724
|
}))();
|
|
18716
|
-
}, "
|
|
18725
|
+
}, "c3", $scope0_id);
|
|
18717
18726
|
const openWorkspace = _resume(async (id) => {
|
|
18718
18727
|
const ws = workspaces.find((w) => w.id === id);
|
|
18719
18728
|
if (ws?.pending && ws.status === "active") return;
|
|
@@ -18734,7 +18743,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18734
18743
|
openIds = openIds.filter((x) => x !== id).concat(id);
|
|
18735
18744
|
if (openIds.length > OPEN_VIEWS_MAX) openIds = openIds.slice(-6);
|
|
18736
18745
|
prefs.setLastWorkspace(id);
|
|
18737
|
-
}, "
|
|
18746
|
+
}, "c4", $scope0_id);
|
|
18738
18747
|
const go = _resume((r) => {
|
|
18739
18748
|
let id = r.workspaceId || selectedId;
|
|
18740
18749
|
if (id && !workspaces.some((w) => w.id === id && !w.pending)) id = selectedId && workspaces.some((w) => w.id === selectedId && !w.pending) ? selectedId : null;
|
|
@@ -18753,7 +18762,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18753
18762
|
workspaceId: id
|
|
18754
18763
|
};
|
|
18755
18764
|
navNonce++;
|
|
18756
|
-
}, "
|
|
18765
|
+
}, "c5", $scope0_id);
|
|
18757
18766
|
_html(`<div${_attr_class("_d")}>`);
|
|
18758
18767
|
_if(() => {
|
|
18759
18768
|
if (error) {
|
|
@@ -18761,8 +18770,8 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18761
18770
|
toast_default({
|
|
18762
18771
|
onDismiss: _resume(function() {
|
|
18763
18772
|
error = null;
|
|
18764
|
-
}, "
|
|
18765
|
-
content: _content("
|
|
18773
|
+
}, "c6", $scope4_id),
|
|
18774
|
+
content: _content("c39", () => {
|
|
18766
18775
|
_scope_reason();
|
|
18767
18776
|
const $scope5_id = _scope_id();
|
|
18768
18777
|
_html(_text_resume($scope5_id, "a", error));
|
|
@@ -18791,29 +18800,29 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18791
18800
|
...settings,
|
|
18792
18801
|
instance
|
|
18793
18802
|
};
|
|
18794
|
-
}, "
|
|
18803
|
+
}, "c7", $scope3_id),
|
|
18795
18804
|
setup,
|
|
18796
18805
|
setupChange: _resume(function(s) {
|
|
18797
18806
|
setup = s;
|
|
18798
18807
|
if (s.ready) showSetup = false;
|
|
18799
|
-
}, "
|
|
18808
|
+
}, "c8", $scope3_id),
|
|
18800
18809
|
preferredChange: _resume(function(agent) {
|
|
18801
18810
|
if (!settings) return;
|
|
18802
18811
|
settings = {
|
|
18803
18812
|
...settings,
|
|
18804
18813
|
preferredAgent: agent
|
|
18805
18814
|
};
|
|
18806
|
-
}, "
|
|
18815
|
+
}, "c9", $scope3_id),
|
|
18807
18816
|
agentsChange: _resume(function(agents) {
|
|
18808
18817
|
if (!settings) return;
|
|
18809
18818
|
settings = {
|
|
18810
18819
|
...settings,
|
|
18811
18820
|
agents
|
|
18812
18821
|
};
|
|
18813
|
-
}, "
|
|
18822
|
+
}, "c10", $scope3_id)
|
|
18814
18823
|
});
|
|
18815
18824
|
_html(`<div${_attr_class("_k")}><button type=button${_attr_class("_q")}>Later, go to workspaces</button>${_el_resume($scope3_id, "d")}</div></div>`);
|
|
18816
|
-
_script($scope3_id, "
|
|
18825
|
+
_script($scope3_id, "c40");
|
|
18817
18826
|
writeScope($scope3_id, { b: _existing_scope($childScope) });
|
|
18818
18827
|
return 0;
|
|
18819
18828
|
}
|
|
@@ -18831,7 +18840,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18831
18840
|
workspaceId: null,
|
|
18832
18841
|
view: "new"
|
|
18833
18842
|
});
|
|
18834
|
-
}, "
|
|
18843
|
+
}, "c11", $scope0_id);
|
|
18835
18844
|
_html(`<div${_attr_class(["_f", {
|
|
18836
18845
|
["_g"]: !selectedId && showSetup,
|
|
18837
18846
|
["_e"]: navView === "nav"
|
|
@@ -18852,42 +18861,42 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18852
18861
|
view: "term",
|
|
18853
18862
|
sessionId: id
|
|
18854
18863
|
});
|
|
18855
|
-
}, "
|
|
18864
|
+
}, "c12", $scope0_id),
|
|
18856
18865
|
view: navView,
|
|
18857
18866
|
viewChange: _resume(function(v) {
|
|
18858
18867
|
if (v === "term") goHome();
|
|
18859
|
-
}, "
|
|
18868
|
+
}, "c13", $scope0_id),
|
|
18860
18869
|
allWorkspaces: workspaces,
|
|
18861
18870
|
allStatus: status,
|
|
18862
18871
|
agents: settings ? settings.agents : [],
|
|
18863
18872
|
onError: _resume(function(message) {
|
|
18864
18873
|
error = message;
|
|
18865
|
-
}, "
|
|
18874
|
+
}, "c14", $scope0_id),
|
|
18866
18875
|
onSelectWorkspace: _resume(function(id) {
|
|
18867
18876
|
openWorkspace(id);
|
|
18868
|
-
}, "
|
|
18877
|
+
}, "c15", $scope0_id),
|
|
18869
18878
|
onNewSession: _resume(function(wsId, agent) {
|
|
18870
18879
|
navState?.newSession(wsId, agent);
|
|
18871
|
-
}, "
|
|
18880
|
+
}, "c16", $scope0_id),
|
|
18872
18881
|
onCloseSession: _resume(function(id) {
|
|
18873
18882
|
navState?.closeSession(id);
|
|
18874
|
-
}, "
|
|
18883
|
+
}, "c17", $scope0_id),
|
|
18875
18884
|
onRenameSession: _resume(function(s, title) {
|
|
18876
18885
|
navState?.renameSession(s.id, title);
|
|
18877
|
-
}, "
|
|
18886
|
+
}, "c18", $scope0_id),
|
|
18878
18887
|
onReviewOpened: _resume(function(pr) {
|
|
18879
18888
|
if (navWs) go({
|
|
18880
18889
|
workspaceId: navWs.id,
|
|
18881
18890
|
view: "diff",
|
|
18882
18891
|
pr: pr ?? null
|
|
18883
18892
|
});
|
|
18884
|
-
}, "
|
|
18893
|
+
}, "c19", $scope0_id),
|
|
18885
18894
|
onReviewOther: _resume(function(wsId) {
|
|
18886
18895
|
go({
|
|
18887
18896
|
workspaceId: wsId,
|
|
18888
18897
|
view: "diff"
|
|
18889
18898
|
});
|
|
18890
|
-
}, "
|
|
18899
|
+
}, "c20", $scope0_id)
|
|
18891
18900
|
});
|
|
18892
18901
|
_html(`<div${_attr_class("_h")}>`);
|
|
18893
18902
|
_for_of(selectedId ? openIds : [null], (id) => {
|
|
@@ -18909,7 +18918,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18909
18918
|
navState,
|
|
18910
18919
|
navStateChange: _resume((_new_navState) => {
|
|
18911
18920
|
navState = _new_navState;
|
|
18912
|
-
}, "
|
|
18921
|
+
}, "c21", $scope2_id),
|
|
18913
18922
|
preferred: settings ? settings.preferredAgent : "shell",
|
|
18914
18923
|
agents: settings ? settings.agents : [],
|
|
18915
18924
|
instance: settings ? settings.instance : NO_INSTANCE,
|
|
@@ -18919,11 +18928,11 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18919
18928
|
...settings,
|
|
18920
18929
|
instance
|
|
18921
18930
|
};
|
|
18922
|
-
}, "
|
|
18931
|
+
}, "c22", $scope2_id),
|
|
18923
18932
|
setup,
|
|
18924
18933
|
onSetupChange: _resume(function(s) {
|
|
18925
18934
|
setup = s;
|
|
18926
|
-
}, "
|
|
18935
|
+
}, "c23", $scope2_id),
|
|
18927
18936
|
initialView: ws?.id === initial.workspaceId || !initial.workspaceId ? initial.view : void 0,
|
|
18928
18937
|
initialTab: ws?.id === initial.workspaceId ? initial.sessionId ?? null : null,
|
|
18929
18938
|
initialPr: ws?.id === initial.workspaceId ? initial.pr ?? null : null,
|
|
@@ -18939,43 +18948,43 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18939
18948
|
scope: r.scope,
|
|
18940
18949
|
file: r.file
|
|
18941
18950
|
};
|
|
18942
|
-
}, "
|
|
18951
|
+
}, "c24", $scope2_id),
|
|
18943
18952
|
onPreferredChange: _resume(function(agent) {
|
|
18944
18953
|
if (!settings) return;
|
|
18945
18954
|
settings = {
|
|
18946
18955
|
...settings,
|
|
18947
18956
|
preferredAgent: agent
|
|
18948
18957
|
};
|
|
18949
|
-
}, "
|
|
18958
|
+
}, "c25", $scope2_id),
|
|
18950
18959
|
onAgentsChange: _resume(function(agents) {
|
|
18951
18960
|
if (!settings) return;
|
|
18952
18961
|
settings = {
|
|
18953
18962
|
...settings,
|
|
18954
18963
|
agents
|
|
18955
18964
|
};
|
|
18956
|
-
}, "
|
|
18965
|
+
}, "c26", $scope2_id),
|
|
18957
18966
|
nav: current ? nav : null,
|
|
18958
18967
|
navNonce,
|
|
18959
18968
|
onSelectWorkspace: _resume(function(wsId) {
|
|
18960
18969
|
openWorkspace(wsId);
|
|
18961
|
-
}, "
|
|
18970
|
+
}, "c27", $scope2_id),
|
|
18962
18971
|
onWorkspaceChange: _resume(function(next) {
|
|
18963
18972
|
applyWorkspaces(workspaces.map((w) => w.id === next.id ? next : w));
|
|
18964
|
-
}, "
|
|
18973
|
+
}, "c28", $scope2_id),
|
|
18965
18974
|
onWorkspaceDeleted: _resume(function(id) {
|
|
18966
18975
|
applyWorkspaces(workspaces.filter((w) => w.id !== id));
|
|
18967
|
-
}, "
|
|
18976
|
+
}, "c29", $scope2_id),
|
|
18968
18977
|
onNew: _resume(function() {
|
|
18969
18978
|
creating = true;
|
|
18970
|
-
}, "
|
|
18979
|
+
}, "c30", $scope2_id),
|
|
18971
18980
|
onExitCreate: _resume(function() {
|
|
18972
18981
|
creating = false;
|
|
18973
|
-
}, "
|
|
18982
|
+
}, "c31", $scope2_id),
|
|
18974
18983
|
onCreated: _resume(function(ws) {
|
|
18975
18984
|
if (!workspaces.some((w) => w.id === ws.id)) workspaces = [ws, ...workspaces];
|
|
18976
18985
|
creating = false;
|
|
18977
18986
|
openWorkspace(ws.id);
|
|
18978
|
-
}, "
|
|
18987
|
+
}, "c32", $scope2_id)
|
|
18979
18988
|
});
|
|
18980
18989
|
_html(`</div>${_el_resume($scope2_id, "a")}`);
|
|
18981
18990
|
_subscribe($openWorkspace2__closures, _subscribe($applyWorkspaces2__closures, _subscribe($navState__closures, _subscribe($setup2__closures, _subscribe($navNonce__closures, _subscribe($nav__closures, _subscribe($creating__closures, _subscribe($settings__closures, _subscribe($status__closures, _subscribe($workspaces__closures, _subscribe($si__input_initial && $initial_file__closures, _subscribe($si__input_initial && $initial_scope__closures, _subscribe($si__input_initial && $initial_pr__closures, _subscribe($si__input_initial && $initial_sessionId__closures, _subscribe($si__input_initial && $initial_view__closures, _subscribe($si__input_initial && $initial_workspaceId__closures, writeScope($scope2_id, { b: _existing_scope($childScope3) })))))))))))))))));
|
|
@@ -18998,36 +19007,35 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18998
19007
|
workspaceName: navWs?.name,
|
|
18999
19008
|
onOpenNav: _resume(function() {
|
|
19000
19009
|
navState?.toggleNav();
|
|
19001
|
-
}, "
|
|
19010
|
+
}, "c33", $scope0_id),
|
|
19002
19011
|
sessions: navSessions,
|
|
19003
19012
|
sessionId: navTab,
|
|
19004
19013
|
agents: settings ? settings.agents : [],
|
|
19005
19014
|
onNewSession: _resume(function(agent) {
|
|
19006
19015
|
if (navWs) navState?.newSession(navWs.id, agent);
|
|
19007
|
-
}, "
|
|
19016
|
+
}, "c34", $scope0_id),
|
|
19008
19017
|
onOpenTab: _resume(function(id) {
|
|
19009
19018
|
if (navWs) go({
|
|
19010
19019
|
workspaceId: navWs.id,
|
|
19011
19020
|
view: "term",
|
|
19012
19021
|
sessionId: id
|
|
19013
19022
|
});
|
|
19014
|
-
}, "
|
|
19023
|
+
}, "c35", $scope0_id),
|
|
19015
19024
|
onCloseSession: _resume(function(id) {
|
|
19016
19025
|
navState?.closeSession(id);
|
|
19017
|
-
}, "
|
|
19026
|
+
}, "c36", $scope0_id),
|
|
19018
19027
|
onRenameSession: _resume(function(id, title) {
|
|
19019
19028
|
navState?.renameSession(id, title);
|
|
19020
|
-
}, "
|
|
19029
|
+
}, "c37", $scope0_id),
|
|
19021
19030
|
keys: navState?.keys ?? null,
|
|
19022
19031
|
reviewFindOpen: !!navState?.reviewFindOpen,
|
|
19023
19032
|
onToggleReviewFind: _resume(function() {
|
|
19024
19033
|
navState?.toggleReviewFind();
|
|
19025
|
-
}, "
|
|
19034
|
+
}, "c38", $scope0_id)
|
|
19026
19035
|
});
|
|
19027
|
-
_html(
|
|
19036
|
+
_html("</div>");
|
|
19037
|
+
_script($scope0_id, "c41");
|
|
19028
19038
|
_script($scope0_id, "c42");
|
|
19029
|
-
_script($scope0_id, "c43");
|
|
19030
|
-
_script($scope0_id, "c44");
|
|
19031
19039
|
writeScope($scope0_id, {
|
|
19032
19040
|
r: boot?.prefs,
|
|
19033
19041
|
x: initial.workspaceId,
|
|
@@ -19040,55 +19048,54 @@ var app_shell_default = _template("c", (input) => {
|
|
|
19040
19048
|
a4: status,
|
|
19041
19049
|
a5: settings,
|
|
19042
19050
|
a6: $si__input_initial && last,
|
|
19043
|
-
a7:
|
|
19044
|
-
a9: $si__input_initial && bootActive,
|
|
19045
|
-
ab:
|
|
19046
|
-
ad:
|
|
19047
|
-
|
|
19048
|
-
|
|
19049
|
-
|
|
19050
|
-
|
|
19051
|
-
|
|
19052
|
-
|
|
19053
|
-
|
|
19054
|
-
|
|
19055
|
-
|
|
19056
|
-
|
|
19057
|
-
|
|
19058
|
-
|
|
19059
|
-
|
|
19060
|
-
|
|
19061
|
-
az:
|
|
19062
|
-
|
|
19063
|
-
|
|
19064
|
-
|
|
19065
|
-
|
|
19066
|
-
|
|
19067
|
-
|
|
19068
|
-
|
|
19069
|
-
|
|
19070
|
-
|
|
19071
|
-
|
|
19072
|
-
bo:
|
|
19073
|
-
|
|
19074
|
-
c6: $error__closures,
|
|
19051
|
+
a7: $si__input_initial && bootActive,
|
|
19052
|
+
a9: $si__input_initial && bootActive?.length,
|
|
19053
|
+
ab: selectedId,
|
|
19054
|
+
ad: openIds,
|
|
19055
|
+
ag: creating,
|
|
19056
|
+
ah: route,
|
|
19057
|
+
ai: route?.view,
|
|
19058
|
+
aj: route?.sessionId,
|
|
19059
|
+
ak: nav,
|
|
19060
|
+
al: navNonce,
|
|
19061
|
+
an: lastUrl.route,
|
|
19062
|
+
ap: setup,
|
|
19063
|
+
aq: wantSetup,
|
|
19064
|
+
ar: showSetup,
|
|
19065
|
+
at: error,
|
|
19066
|
+
au: navState,
|
|
19067
|
+
av: navState?.view,
|
|
19068
|
+
aw: navState?.sessions,
|
|
19069
|
+
az: applyWorkspaces,
|
|
19070
|
+
b0: load,
|
|
19071
|
+
b1: patchStatusSessions,
|
|
19072
|
+
b3: statusMem.fresh,
|
|
19073
|
+
b4: statusMem.run,
|
|
19074
|
+
b6: loadStatus,
|
|
19075
|
+
b7: openWorkspace,
|
|
19076
|
+
b9: go,
|
|
19077
|
+
bb: navWs,
|
|
19078
|
+
bh: navView,
|
|
19079
|
+
bl: navSessions?.[0]?.id,
|
|
19080
|
+
bo: goHome,
|
|
19081
|
+
c3: $error__closures,
|
|
19075
19082
|
f: _existing_scope($childScope2),
|
|
19076
|
-
|
|
19077
|
-
|
|
19078
|
-
|
|
19079
|
-
|
|
19080
|
-
|
|
19081
|
-
|
|
19082
|
-
|
|
19083
|
-
|
|
19084
|
-
|
|
19085
|
-
|
|
19086
|
-
|
|
19087
|
-
|
|
19088
|
-
|
|
19089
|
-
|
|
19090
|
-
|
|
19091
|
-
|
|
19083
|
+
bp: $si__input_initial && $initial_workspaceId__closures,
|
|
19084
|
+
bq: $si__input_initial && $initial_view__closures,
|
|
19085
|
+
br: $si__input_initial && $initial_sessionId__closures,
|
|
19086
|
+
bs: $si__input_initial && $initial_pr__closures,
|
|
19087
|
+
bt: $si__input_initial && $initial_scope__closures,
|
|
19088
|
+
bu: $si__input_initial && $initial_file__closures,
|
|
19089
|
+
bv: $workspaces__closures,
|
|
19090
|
+
bw: $status__closures,
|
|
19091
|
+
bx: $settings__closures,
|
|
19092
|
+
bz: $creating__closures,
|
|
19093
|
+
c0: $nav__closures,
|
|
19094
|
+
c1: $navNonce__closures,
|
|
19095
|
+
c2: $setup2__closures,
|
|
19096
|
+
c4: $navState__closures,
|
|
19097
|
+
c5: $applyWorkspaces2__closures,
|
|
19098
|
+
c6: $openWorkspace2__closures,
|
|
19092
19099
|
h: _existing_scope($childScope4)
|
|
19093
19100
|
});
|
|
19094
19101
|
_resume_branch($scope0_id);
|
|
@@ -27370,4 +27377,4 @@ server.listen(port, () => {
|
|
|
27370
27377
|
//#endregion
|
|
27371
27378
|
export {};
|
|
27372
27379
|
|
|
27373
|
-
;var __MARKO_MANIFEST__={"
|
|
27380
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-LdxNfDbr.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LdxNfDbr.css\"",">"],"defer":[2,"/assets/new-Cz4e5lzk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-Cz4e5lzk.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cbu4AbsN.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cbu4AbsN.js\"",">",2,"modulepreload#/assets/_DUDy5h6R.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DUDy5h6R.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-LdxNfDbr.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LdxNfDbr.css\"",">"],"defer":[2,"/assets/settings-Cz4e5lzk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-Cz4e5lzk.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cbu4AbsN.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cbu4AbsN.js\"",">",2,"modulepreload#/assets/_DUDy5h6R.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DUDy5h6R.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-LdxNfDbr.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LdxNfDbr.css\"",">"],"defer":[2,"/assets/w._-Cz4e5lzk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Cz4e5lzk.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cbu4AbsN.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cbu4AbsN.js\"",">",2,"modulepreload#/assets/_DUDy5h6R.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DUDy5h6R.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-LdxNfDbr.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LdxNfDbr.css\"",">"],"defer":[2,"/assets/w._-AQhK6cKs.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-AQhK6cKs.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cbu4AbsN.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cbu4AbsN.js\"",">",2,"modulepreload#/assets/_DUDy5h6R.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DUDy5h6R.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-LdxNfDbr.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-LdxNfDbr.css\"",">"],"defer":[2,"/assets/w-Cz4e5lzk.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-Cz4e5lzk.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cbu4AbsN.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cbu4AbsN.js\"",">",2,"modulepreload#/assets/_DUDy5h6R.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DUDy5h6R.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-E8jVfABq.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-E8jVfABq.css\"",">",2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">"],"defer":[2,"/assets/diff-view-BPU5rMei.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-BPU5rMei.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|