@dylanpiercey/work 0.0.161 → 0.0.162
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 +888 -968
- package/dist/public/assets/{_jEL0MhL2.js → _B3gSz3ke.js} +106 -106
- package/dist/public/assets/_B3gSz3ke.js.br +0 -0
- package/dist/public/assets/_B67KCuSp.js +1 -0
- package/dist/public/assets/_BD_SUgMs.js +1 -0
- package/dist/public/assets/_BFOMXAe_.js +1 -0
- package/dist/public/assets/_BHZgDosz.js +1 -0
- package/dist/public/assets/_BLWhy5_L.js +1 -0
- package/dist/public/assets/_BUKisRQy.js +1 -0
- package/dist/public/assets/_BvmCRM73.js +1 -0
- package/dist/public/assets/_ByJ0l3Ki.js +1 -0
- package/dist/public/assets/_CFUbxGJz.js +1 -0
- package/dist/public/assets/_CU55I6bP.js +1 -0
- package/dist/public/assets/_Cccfw4J7.js +1 -0
- package/dist/public/assets/_CfKMpugL.js +1 -0
- package/dist/public/assets/_CqHU2zXz.js +1 -0
- package/dist/public/assets/_CyIDJLEQ.js +1 -0
- package/dist/public/assets/_CyTB-zvq.js +1 -0
- package/dist/public/assets/_D0zoJeVP.js +1 -0
- package/dist/public/assets/_D3rnDRIv.js +1 -0
- package/dist/public/assets/_D3rnDRIv.js.br +0 -0
- package/dist/public/assets/_DL2Do1rA.js +83 -0
- package/dist/public/assets/_DL2Do1rA.js.br +0 -0
- package/dist/public/assets/_DWMLCD9Y.js +1 -0
- package/dist/public/assets/_DcDLWNwh.js +1 -0
- package/dist/public/assets/_DlHXl5mY.js +1 -0
- package/dist/public/assets/_fCCm5Yhk.js +1 -0
- package/dist/public/assets/_wakj4FEZ.js +1 -0
- package/dist/public/assets/{app-page-CJTacFqL.css → app-page-BbBGFieh.css} +1 -1
- package/dist/public/assets/app-page-BbBGFieh.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-XYrn8xFc.css → icon-arrow-down-BzUfPnGo.css} +1 -1
- package/dist/public/assets/icon-arrow-down-BzUfPnGo.css.br +0 -0
- package/dist/public/assets/new-LK2NkRbP.js +1 -0
- package/dist/public/assets/review-view--XosOwhX.css +1 -0
- package/dist/public/assets/review-view--XosOwhX.css.br +0 -0
- package/dist/public/assets/review-view-CqwNr3QK.js +2 -0
- package/dist/public/assets/settings-LK2NkRbP.js +1 -0
- package/dist/public/assets/w-LK2NkRbP.js +1 -0
- package/dist/public/assets/w._-CvYgsk8p.js +1 -0
- package/dist/public/assets/w._-LK2NkRbP.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_3KFdpx4q.js +0 -1
- package/dist/public/assets/_BDiv3-km.js +0 -1
- package/dist/public/assets/_BEAlXcm6.js +0 -1
- package/dist/public/assets/_BanJNBTC.js +0 -1
- package/dist/public/assets/_BghD-JoL.js +0 -1
- package/dist/public/assets/_BpBIrTMV.js +0 -1
- package/dist/public/assets/_CKIWh2fO.js +0 -1
- package/dist/public/assets/_CR8N_oy2.js +0 -1
- package/dist/public/assets/_CR8N_oy2.js.br +0 -0
- package/dist/public/assets/_CcV0o5rs.js +0 -1
- package/dist/public/assets/_Ceqcn6Mw.js +0 -1
- package/dist/public/assets/_Cf0yAnPY.js +0 -1
- package/dist/public/assets/_CtKck30n.js +0 -1
- package/dist/public/assets/_D8KHpWTJ.js +0 -1
- package/dist/public/assets/_DJgAficc.js +0 -1
- package/dist/public/assets/_DKos2KZO.js +0 -1
- package/dist/public/assets/_DQcPNxEi.js +0 -1
- package/dist/public/assets/_DqVCMOJe.js +0 -1
- package/dist/public/assets/_Dv_vNNUW.js +0 -1
- package/dist/public/assets/_J9xlTH4M.js +0 -1
- package/dist/public/assets/_McudOjat.js +0 -1
- package/dist/public/assets/_YAEkKpTp.js +0 -1
- package/dist/public/assets/_fk03PINt.js +0 -83
- package/dist/public/assets/_fk03PINt.js.br +0 -0
- package/dist/public/assets/_jEL0MhL2.js.br +0 -0
- package/dist/public/assets/_scOrl5rK.js +0 -1
- package/dist/public/assets/app-page-CJTacFqL.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-XYrn8xFc.css.br +0 -0
- package/dist/public/assets/new-BqgYQv0Y.js +0 -1
- package/dist/public/assets/review-view-DSanl_Hi.css +0 -1
- package/dist/public/assets/review-view-DSanl_Hi.css.br +0 -0
- package/dist/public/assets/review-view-Dkgi3faj.js +0 -2
- package/dist/public/assets/settings-BqgYQv0Y.js +0 -1
- package/dist/public/assets/w-BqgYQv0Y.js +0 -1
- package/dist/public/assets/w._-BqgYQv0Y.js +0 -1
- package/dist/public/assets/w._-DnmnrF1J.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7191,53 +7191,6 @@ function ignoredSsoOrgs() {
|
|
|
7191
7191
|
return [];
|
|
7192
7192
|
}
|
|
7193
7193
|
}
|
|
7194
|
-
/** Appearance color scheme: follow the OS, or force light/dark. */
|
|
7195
|
-
/** Syntax theme pair for the review (Settings → Code theme). */
|
|
7196
|
-
var CODE_THEMES = [
|
|
7197
|
-
{
|
|
7198
|
-
id: "pierre",
|
|
7199
|
-
label: "Pierre",
|
|
7200
|
-
dark: "pierre-dark",
|
|
7201
|
-
light: "pierre-light"
|
|
7202
|
-
},
|
|
7203
|
-
{
|
|
7204
|
-
id: "github",
|
|
7205
|
-
label: "GitHub",
|
|
7206
|
-
dark: "github-dark-default",
|
|
7207
|
-
light: "github-light-default"
|
|
7208
|
-
},
|
|
7209
|
-
{
|
|
7210
|
-
id: "one",
|
|
7211
|
-
label: "One",
|
|
7212
|
-
dark: "one-dark-pro",
|
|
7213
|
-
light: "one-light"
|
|
7214
|
-
},
|
|
7215
|
-
{
|
|
7216
|
-
id: "catppuccin",
|
|
7217
|
-
label: "Catppuccin",
|
|
7218
|
-
dark: "catppuccin-mocha",
|
|
7219
|
-
light: "catppuccin-latte"
|
|
7220
|
-
},
|
|
7221
|
-
{
|
|
7222
|
-
id: "gruvbox",
|
|
7223
|
-
label: "Gruvbox",
|
|
7224
|
-
dark: "gruvbox-dark-medium",
|
|
7225
|
-
light: "gruvbox-light-medium"
|
|
7226
|
-
},
|
|
7227
|
-
{
|
|
7228
|
-
id: "rose-pine",
|
|
7229
|
-
label: "Rosé Pine",
|
|
7230
|
-
dark: "rose-pine",
|
|
7231
|
-
light: "rose-pine-dawn"
|
|
7232
|
-
}
|
|
7233
|
-
];
|
|
7234
|
-
function codeTheme() {
|
|
7235
|
-
const id = get("code-theme");
|
|
7236
|
-
return CODE_THEMES.find((t) => t.id === id) ?? CODE_THEMES[0];
|
|
7237
|
-
}
|
|
7238
|
-
function setCodeTheme(id) {
|
|
7239
|
-
set("code-theme", id);
|
|
7240
|
-
}
|
|
7241
7194
|
function theme() {
|
|
7242
7195
|
const v = get("theme");
|
|
7243
7196
|
return v === "light" || v === "dark" ? v : "system";
|
|
@@ -7281,22 +7234,6 @@ function syncThemeColorMetas(mode, accent) {
|
|
|
7281
7234
|
add(accent || DARK_CHROME, "(prefers-color-scheme: dark)");
|
|
7282
7235
|
}
|
|
7283
7236
|
}
|
|
7284
|
-
/** The review's syntax theme pair (`{ dark, light }` shiki names). The
|
|
7285
|
-
* viewer and the highlight worker both take it, and both re-render when
|
|
7286
|
-
* Settings picks another — one listener list, like the colour mode. */
|
|
7287
|
-
var codeListeners = /* @__PURE__ */ new Set();
|
|
7288
|
-
function currentCodeTheme() {
|
|
7289
|
-
const t = codeTheme();
|
|
7290
|
-
return {
|
|
7291
|
-
dark: t.dark,
|
|
7292
|
-
light: t.light
|
|
7293
|
-
};
|
|
7294
|
-
}
|
|
7295
|
-
function applyCodeTheme(id) {
|
|
7296
|
-
setCodeTheme(id);
|
|
7297
|
-
const pair = currentCodeTheme();
|
|
7298
|
-
for (const listener of codeListeners) listener(pair);
|
|
7299
|
-
}
|
|
7300
7237
|
//#endregion
|
|
7301
7238
|
//#region src/client/instance.ts
|
|
7302
7239
|
/** Curated hues that read in both colour schemes — the picker leads with
|
|
@@ -7349,19 +7286,19 @@ function applyInstance(inst) {
|
|
|
7349
7286
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7350
7287
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7351
7288
|
}
|
|
7352
|
-
var agentList = "_cJ
|
|
7353
|
-
var agentRow = "
|
|
7354
|
-
var toolGrid = "
|
|
7355
|
-
var toolRow = "
|
|
7356
|
-
var themeSeg = "
|
|
7357
|
-
var checkList = "
|
|
7358
|
-
var list$2 = "_cJ
|
|
7289
|
+
var agentList = "_cJ _cm _cw _cH";
|
|
7290
|
+
var agentRow = "_cN _cx";
|
|
7291
|
+
var toolGrid = "_cV _cH";
|
|
7292
|
+
var toolRow = "_cW _cI";
|
|
7293
|
+
var themeSeg = "_dj _be";
|
|
7294
|
+
var checkList = "_dP _ck";
|
|
7295
|
+
var list$2 = "_cJ _cm _cw _cH";
|
|
7359
7296
|
var flatCardRow = "_cK _cI";
|
|
7360
|
-
var pop$1 = "
|
|
7361
|
-
var spinner = "
|
|
7362
|
-
var busy = "
|
|
7363
|
-
var pop = "
|
|
7364
|
-
var sectionCount = "
|
|
7297
|
+
var pop$1 = "_d6 __";
|
|
7298
|
+
var spinner = "_d9 _2 _G";
|
|
7299
|
+
var busy = "_dW _dV";
|
|
7300
|
+
var pop = "_dY __";
|
|
7301
|
+
var sectionCount = "_cj _N _O";
|
|
7365
7302
|
var iconBtn$1 = "_5 _l";
|
|
7366
7303
|
//#endregion
|
|
7367
7304
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7406,14 +7343,14 @@ var page_head_default = _template("q", (input) => {
|
|
|
7406
7343
|
_if(() => {
|
|
7407
7344
|
if (input.backHref) {
|
|
7408
7345
|
const $scope1_id = _scope_id();
|
|
7409
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7346
|
+
_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")}>`);
|
|
7410
7347
|
icon_back_default({ size: 14 });
|
|
7411
7348
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7412
7349
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7413
7350
|
return 0;
|
|
7414
7351
|
} else if (input.onBack) {
|
|
7415
7352
|
const $scope2_id = _scope_id();
|
|
7416
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7353
|
+
_html(`<button${_attr_class([iconBtnRow, "_gY"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7417
7354
|
icon_back_default({ size: 14 });
|
|
7418
7355
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7419
7356
|
_script($scope2_id, "q0");
|
|
@@ -7504,7 +7441,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7504
7441
|
n: $badge__closures
|
|
7505
7442
|
});
|
|
7506
7443
|
});
|
|
7507
|
-
var usageNote = "
|
|
7444
|
+
var usageNote = "_hM _X";
|
|
7508
7445
|
//#endregion
|
|
7509
7446
|
//#region src/tags/icons/icon-warning.marko
|
|
7510
7447
|
var icon_warning_default = _template("qb", (input) => {
|
|
@@ -7534,11 +7471,11 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
7534
7471
|
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);
|
|
7535
7472
|
const $scope0_id = _scope_id();
|
|
7536
7473
|
const agent = input.agent;
|
|
7537
|
-
_html(`<div${_attr_class(["
|
|
7474
|
+
_html(`<div${_attr_class(["_hG", { ["_hH"]: input.hideName }])}><div${_attr_class("_hI")}>`);
|
|
7538
7475
|
_if(() => {
|
|
7539
7476
|
if (!input.hideName) {
|
|
7540
7477
|
const $scope1_id = _scope_id();
|
|
7541
|
-
_html(`<strong${_attr_class("
|
|
7478
|
+
_html(`<strong${_attr_class("_h1")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7542
7479
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7543
7480
|
return 0;
|
|
7544
7481
|
}
|
|
@@ -7546,7 +7483,7 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
7546
7483
|
_if(() => {
|
|
7547
7484
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7548
7485
|
const $scope2_id = _scope_id();
|
|
7549
|
-
_html(`<span${_attr_class("
|
|
7486
|
+
_html(`<span${_attr_class("_hJ")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7550
7487
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7551
7488
|
return 0;
|
|
7552
7489
|
}
|
|
@@ -7554,21 +7491,21 @@ var usage_meters_default = _template("F", (input) => {
|
|
|
7554
7491
|
_if(() => {
|
|
7555
7492
|
if (agent.stale_seconds != null) {
|
|
7556
7493
|
const $scope3_id = _scope_id();
|
|
7557
|
-
_html(`<span${_attr_class("
|
|
7494
|
+
_html(`<span${_attr_class("_hK")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7558
7495
|
icon_warning_default({ size: 12 });
|
|
7559
7496
|
_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)}`);
|
|
7560
7497
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7561
7498
|
return 0;
|
|
7562
7499
|
}
|
|
7563
7500
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7564
|
-
_html(`</div><div${_attr_class(["
|
|
7501
|
+
_html(`</div><div${_attr_class(["_hL", { ["_h2"]: agent.stale_seconds != null }])}>`);
|
|
7565
7502
|
_for_of(agent.windows || [], (win) => {
|
|
7566
7503
|
const $scope4_id = _scope_id();
|
|
7567
7504
|
const pct = pctText(win.used_percent);
|
|
7568
7505
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7569
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7570
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7571
|
-
_html(`<div${_attr_class("
|
|
7506
|
+
const fillClass = win.used_percent >= 90 ? "_hU" : win.used_percent >= 70 ? "_hT" : win.used_percent >= 40 ? "_hS" : "_hR";
|
|
7507
|
+
const pctClass = win.used_percent >= 90 ? "_hZ" : win.used_percent >= 70 ? "_hY" : win.used_percent >= 40 ? "_hX" : "_hW";
|
|
7508
|
+
_html(`<div${_attr_class("_hN")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_hO")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hP")}><span${_attr_class(["_hQ", 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(["_hV", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_h0")}>`);
|
|
7572
7509
|
_if(() => {
|
|
7573
7510
|
if (label) {
|
|
7574
7511
|
const $scope6_id = _scope_id();
|
|
@@ -7685,14 +7622,14 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
7685
7622
|
localCode = null;
|
|
7686
7623
|
}
|
|
7687
7624
|
}, "B0", $scope0_id);
|
|
7688
|
-
_html(`<div${_attr_class(["
|
|
7625
|
+
_html(`<div${_attr_class(["_gZ", input.class])}>`);
|
|
7689
7626
|
_for_of(input.items, (s) => {
|
|
7690
7627
|
const $scope1_id = _scope_id();
|
|
7691
|
-
_html(`<div${_attr_class("
|
|
7628
|
+
_html(`<div${_attr_class("_g0")}><span${_attr_class("_g2")}><span${_attr_class("_g3")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_g4", "_g5"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7692
7629
|
_if(() => {
|
|
7693
7630
|
if (!busy) {
|
|
7694
7631
|
const $scope2_id = _scope_id();
|
|
7695
|
-
_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, "
|
|
7632
|
+
_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, "_g6"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7696
7633
|
_script($scope2_id, "B1");
|
|
7697
7634
|
writeScope($scope2_id, {});
|
|
7698
7635
|
return 0;
|
|
@@ -7707,13 +7644,13 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
7707
7644
|
_if(() => {
|
|
7708
7645
|
if (localBusy && localCode) {
|
|
7709
7646
|
const $scope4_id = _scope_id();
|
|
7710
|
-
_html(`<div${_attr_class(["
|
|
7647
|
+
_html(`<div${_attr_class(["_g0", "_g7"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_g8")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_g9")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7711
7648
|
_script($scope4_id, "B2");
|
|
7712
7649
|
writeScope($scope4_id, {});
|
|
7713
7650
|
return 0;
|
|
7714
7651
|
} else if (localBusy) {
|
|
7715
7652
|
const $scope6_id = _scope_id();
|
|
7716
|
-
_html(`<div${_attr_class(["
|
|
7653
|
+
_html(`<div${_attr_class(["_g0", "_g7"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7717
7654
|
writeScope($scope6_id, {});
|
|
7718
7655
|
return 1;
|
|
7719
7656
|
}
|
|
@@ -7721,14 +7658,14 @@ var sso_auth_default = _template("B", (input) => {
|
|
|
7721
7658
|
_if(() => {
|
|
7722
7659
|
if (localError) {
|
|
7723
7660
|
const $scope5_id = _scope_id();
|
|
7724
|
-
_html(`<p${_attr_class(["
|
|
7661
|
+
_html(`<p${_attr_class(["_g0", "_g_"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7725
7662
|
writeScope($scope5_id, {});
|
|
7726
7663
|
return 0;
|
|
7727
7664
|
}
|
|
7728
7665
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7729
7666
|
_for_of(skipped, (s) => {
|
|
7730
7667
|
const $scope3_id = _scope_id();
|
|
7731
|
-
_html(`<div${_attr_class(["
|
|
7668
|
+
_html(`<div${_attr_class(["_g0", "_g1"])}><span${_attr_class("_g2")}><span${_attr_class("_g3")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_g4")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_g6"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7732
7669
|
_script($scope3_id, "B3");
|
|
7733
7670
|
writeScope($scope3_id, {
|
|
7734
7671
|
i: s?.org,
|
|
@@ -7796,7 +7733,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7796
7733
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7797
7734
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7798
7735
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7799
|
-
_html(`<li${_attr_class("
|
|
7736
|
+
_html(`<li${_attr_class("_dU")}>`);
|
|
7800
7737
|
_if(() => {
|
|
7801
7738
|
if (input.busy != null) {
|
|
7802
7739
|
const $scope1_id = _scope_id();
|
|
@@ -7806,20 +7743,20 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7806
7743
|
} else {
|
|
7807
7744
|
const $scope2_id = _scope_id();
|
|
7808
7745
|
const popId = _id();
|
|
7809
|
-
_html(`<button${_attr_class("
|
|
7746
|
+
_html(`<button${_attr_class("_dV")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7810
7747
|
_if(() => {
|
|
7811
7748
|
if (input.hint) {
|
|
7812
7749
|
const $scope3_id = _scope_id();
|
|
7813
|
-
_html(`<span${_attr_class("
|
|
7750
|
+
_html(`<span${_attr_class("_dX")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7814
7751
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7815
7752
|
return 0;
|
|
7816
7753
|
}
|
|
7817
7754
|
}, $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);
|
|
7818
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7755
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_co", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7819
7756
|
_if(() => {
|
|
7820
7757
|
if (input.description) {
|
|
7821
7758
|
const $scope4_id = _scope_id();
|
|
7822
|
-
_html(`<span${_attr_class("
|
|
7759
|
+
_html(`<span${_attr_class("_cq")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7823
7760
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7824
7761
|
return 0;
|
|
7825
7762
|
}
|
|
@@ -7827,12 +7764,12 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7827
7764
|
_if(() => {
|
|
7828
7765
|
if (input.sourceUrl) {
|
|
7829
7766
|
const $scope5_id = _scope_id();
|
|
7830
|
-
_html(`<a${_attr_class(["
|
|
7767
|
+
_html(`<a${_attr_class(["_cq", "_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))}`);
|
|
7831
7768
|
$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) })));
|
|
7832
7769
|
return 0;
|
|
7833
7770
|
} else if (input.source) {
|
|
7834
7771
|
const $scope6_id = _scope_id();
|
|
7835
|
-
_html(`<span${_attr_class("
|
|
7772
|
+
_html(`<span${_attr_class("_cq")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7836
7773
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7837
7774
|
_: _scope_with_id($scope2_id),
|
|
7838
7775
|
Cs: $si__input_source && 1
|
|
@@ -7840,7 +7777,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7840
7777
|
return 1;
|
|
7841
7778
|
} else if (input.noteLocal) {
|
|
7842
7779
|
const $scope10_id = _scope_id();
|
|
7843
|
-
_html(`<span${_attr_class(["
|
|
7780
|
+
_html(`<span${_attr_class(["_cq", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7844
7781
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7845
7782
|
return 2;
|
|
7846
7783
|
}
|
|
@@ -7848,7 +7785,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7848
7785
|
_if(() => {
|
|
7849
7786
|
if (input.tags) {
|
|
7850
7787
|
const $scope7_id = _scope_id();
|
|
7851
|
-
_html(`<span${_attr_class("
|
|
7788
|
+
_html(`<span${_attr_class("_cp")}>`);
|
|
7852
7789
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7853
7790
|
_html("</span>");
|
|
7854
7791
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7858,7 +7795,7 @@ var skill_chip_default = _template("A", (input) => {
|
|
|
7858
7795
|
_if(() => {
|
|
7859
7796
|
if (input.actions) {
|
|
7860
7797
|
const $scope8_id = _scope_id();
|
|
7861
|
-
_html(`<div${_attr_class("
|
|
7798
|
+
_html(`<div${_attr_class("_dZ")}>`);
|
|
7862
7799
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7863
7800
|
_html("</div>");
|
|
7864
7801
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7969,7 +7906,7 @@ var icon_moon_default = _template("hb", (input) => {
|
|
|
7969
7906
|
});
|
|
7970
7907
|
//#endregion
|
|
7971
7908
|
//#region src/tags/prompt-dialog.css.ts
|
|
7972
|
-
var promptDlg = "
|
|
7909
|
+
var promptDlg = "_hf _hb";
|
|
7973
7910
|
//#endregion
|
|
7974
7911
|
//#region src/tags/dialog-close.marko
|
|
7975
7912
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7993,7 +7930,7 @@ var modal_view_default = _template("o", (input) => {
|
|
|
7993
7930
|
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;
|
|
7994
7931
|
const dismissable = input.dismissable !== false;
|
|
7995
7932
|
let open = input.open;
|
|
7996
|
-
_html(`<dialog${_attr_class(["
|
|
7933
|
+
_html(`<dialog${_attr_class(["_ha", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7997
7934
|
...htmlInput,
|
|
7998
7935
|
open: null
|
|
7999
7936
|
}, {
|
|
@@ -8003,20 +7940,20 @@ var modal_view_default = _template("o", (input) => {
|
|
|
8003
7940
|
closedby: 1,
|
|
8004
7941
|
"on-cancel": 1,
|
|
8005
7942
|
"on-close": 1
|
|
8006
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7943
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_hd")}>`);
|
|
8007
7944
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
8008
7945
|
_html("</div>");
|
|
8009
7946
|
_if(() => {
|
|
8010
7947
|
if (footer) {
|
|
8011
7948
|
const $scope1_id = _scope_id();
|
|
8012
|
-
_html(`<form method=dialog${_attr_class("
|
|
7949
|
+
_html(`<form method=dialog${_attr_class("_he")}>`);
|
|
8013
7950
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
8014
7951
|
_html("</form>");
|
|
8015
7952
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
8016
7953
|
return 0;
|
|
8017
7954
|
} else if (input.openChange) {
|
|
8018
7955
|
const $scope2_id = _scope_id();
|
|
8019
|
-
_html(`<form method=dialog${_attr_class("
|
|
7956
|
+
_html(`<form method=dialog${_attr_class("_he")}>`);
|
|
8020
7957
|
dialog_close_default({
|
|
8021
7958
|
class: ["_q", "_r"],
|
|
8022
7959
|
content: _content("o0", () => {
|
|
@@ -8100,7 +8037,7 @@ var prompt_dialog_default = _template("r", (input) => {
|
|
|
8100
8037
|
content: _content("r7", () => {
|
|
8101
8038
|
_scope_reason();
|
|
8102
8039
|
const $scope2_id = _scope_id();
|
|
8103
|
-
_html(`<h2${_attr_class("
|
|
8040
|
+
_html(`<h2${_attr_class("_hc")}${_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) => {
|
|
8104
8041
|
value = _new_value;
|
|
8105
8042
|
}, "r0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8106
8043
|
_script($scope2_id, "r5");
|
|
@@ -8183,7 +8120,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8183
8120
|
let ignoredSso = /* @__PURE__ */ new Set();
|
|
8184
8121
|
const readIgnoredSso = _resume(() => {
|
|
8185
8122
|
ignoredSso = new Set(ignoredSsoOrgs());
|
|
8186
|
-
}, "
|
|
8123
|
+
}, "w7", $scope0_id);
|
|
8187
8124
|
let usage = lastUsage();
|
|
8188
8125
|
let error = null;
|
|
8189
8126
|
let refreshing = false;
|
|
@@ -8199,7 +8136,6 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8199
8136
|
let self = null;
|
|
8200
8137
|
let selfUpdating = false;
|
|
8201
8138
|
let themeMode = theme();
|
|
8202
|
-
let codeTheme$1 = codeTheme().id;
|
|
8203
8139
|
let searching = false;
|
|
8204
8140
|
const searchTimer = { id: 0 };
|
|
8205
8141
|
let skills = lastSkills;
|
|
@@ -8216,7 +8152,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8216
8152
|
themeMode = mode;
|
|
8217
8153
|
setTheme(mode);
|
|
8218
8154
|
applyTheme(mode);
|
|
8219
|
-
}, "
|
|
8155
|
+
}, "w8", $scope0_id);
|
|
8220
8156
|
const selfUpdatePending = !!(self && !selfUpdating && self.install !== "source" && self.latest && self.latest !== self.version);
|
|
8221
8157
|
const applySetup = _resume((s) => {
|
|
8222
8158
|
setup = s;
|
|
@@ -8224,14 +8160,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8224
8160
|
if (!s.ready) machineOpen = true;
|
|
8225
8161
|
setPrimaryHost(s.github);
|
|
8226
8162
|
input$3.setupChange?.(s);
|
|
8227
|
-
}, "
|
|
8163
|
+
}, "w9", $scope0_id);
|
|
8228
8164
|
const syncAgents = _resume(async () => {
|
|
8229
8165
|
try {
|
|
8230
8166
|
const snap = await api$8("/api/settings");
|
|
8231
8167
|
input$3.agentsChange?.(snap.agents);
|
|
8232
8168
|
if (snap.preferredAgent !== input$3.preferred) input$3.preferredChange?.(snap.preferredAgent);
|
|
8233
8169
|
} catch {}
|
|
8234
|
-
}, "
|
|
8170
|
+
}, "w10", $scope0_id);
|
|
8235
8171
|
let retryWhenBack = false;
|
|
8236
8172
|
const loadSetup = _resume(async (refresh) => {
|
|
8237
8173
|
try {
|
|
@@ -8241,14 +8177,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8241
8177
|
if (isTransientApiError$2(err)) retryWhenBack = true;
|
|
8242
8178
|
else error = String(err.message || err);
|
|
8243
8179
|
}
|
|
8244
|
-
}, "
|
|
8180
|
+
}, "w11", $scope0_id);
|
|
8245
8181
|
const loadSelf = _resume(async (refresh) => {
|
|
8246
8182
|
try {
|
|
8247
8183
|
const info = await api$8(`/api/setup/self${refresh ? "?refresh" : ""}`);
|
|
8248
8184
|
self = info;
|
|
8249
8185
|
if (info.updating) selfUpdating = true;
|
|
8250
8186
|
} catch {}
|
|
8251
|
-
}, "
|
|
8187
|
+
}, "w12", $scope0_id);
|
|
8252
8188
|
const updateSelf = _resume(async () => {
|
|
8253
8189
|
if (!self || selfUpdating) return;
|
|
8254
8190
|
selfUpdating = true;
|
|
@@ -8272,10 +8208,10 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8272
8208
|
else selfUpdating = false;
|
|
8273
8209
|
};
|
|
8274
8210
|
setTimeout(tick, 4e3);
|
|
8275
|
-
}, "
|
|
8211
|
+
}, "w13", $scope0_id);
|
|
8276
8212
|
const loadUsage = _resume((refresh) => getUsage(refresh).then((u) => {
|
|
8277
8213
|
usage = u;
|
|
8278
|
-
}), "
|
|
8214
|
+
}), "w14", $scope0_id);
|
|
8279
8215
|
const refresh = _resume(async () => {
|
|
8280
8216
|
refreshing = true;
|
|
8281
8217
|
await Promise.all([
|
|
@@ -8284,16 +8220,16 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8284
8220
|
((refreshUsage) => refreshUsage())(_hoist_read_error)
|
|
8285
8221
|
]);
|
|
8286
8222
|
refreshing = false;
|
|
8287
|
-
}, "
|
|
8223
|
+
}, "w15", $scope0_id);
|
|
8288
8224
|
const refreshUsage = _resume(async () => {
|
|
8289
8225
|
await loadUsage(true);
|
|
8290
|
-
}, "
|
|
8226
|
+
}, "w16", $scope0_id);
|
|
8291
8227
|
const setActive = _resume((id, line) => {
|
|
8292
8228
|
const next = new Map(active);
|
|
8293
8229
|
if (line === null) next.delete(id);
|
|
8294
8230
|
else next.set(id, line);
|
|
8295
8231
|
active = next;
|
|
8296
|
-
}, "
|
|
8232
|
+
}, "w17", $scope0_id);
|
|
8297
8233
|
const run = _resume(async (id, action, version) => {
|
|
8298
8234
|
if (active.has(id)) return;
|
|
8299
8235
|
error = null;
|
|
@@ -8325,7 +8261,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8325
8261
|
watcher.stop();
|
|
8326
8262
|
setActive(id, null);
|
|
8327
8263
|
}
|
|
8328
|
-
}, "
|
|
8264
|
+
}, "w18", $scope0_id);
|
|
8329
8265
|
const skillSeq = {
|
|
8330
8266
|
issued: 0,
|
|
8331
8267
|
applied: 0
|
|
@@ -8335,13 +8271,13 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8335
8271
|
skillSeq.applied = seq;
|
|
8336
8272
|
skills = snap;
|
|
8337
8273
|
lastSkills = snap;
|
|
8338
|
-
}, "
|
|
8274
|
+
}, "w19", $scope0_id);
|
|
8339
8275
|
const loadSkills = _resume(async () => {
|
|
8340
8276
|
const seq = ++skillSeq.issued;
|
|
8341
8277
|
try {
|
|
8342
8278
|
applySkills(await api$8("/api/skills"), seq);
|
|
8343
8279
|
} catch {}
|
|
8344
|
-
}, "
|
|
8280
|
+
}, "w20", $scope0_id);
|
|
8345
8281
|
const runSkill = _resume(async (key, body) => {
|
|
8346
8282
|
if (active.has(key)) return;
|
|
8347
8283
|
error = null;
|
|
@@ -8365,7 +8301,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8365
8301
|
watcher.stop();
|
|
8366
8302
|
setActive(key, null);
|
|
8367
8303
|
}
|
|
8368
|
-
}, "
|
|
8304
|
+
}, "w21", $scope0_id);
|
|
8369
8305
|
let backupBusy = null;
|
|
8370
8306
|
let backupLine = "";
|
|
8371
8307
|
let preflight = null;
|
|
@@ -8386,7 +8322,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8386
8322
|
a.click();
|
|
8387
8323
|
a.remove();
|
|
8388
8324
|
preflight = null;
|
|
8389
|
-
}, "
|
|
8325
|
+
}, "w22", $scope0_id);
|
|
8390
8326
|
const startExport = _resume(async () => {
|
|
8391
8327
|
if (backupBusy) return;
|
|
8392
8328
|
error = null;
|
|
@@ -8401,7 +8337,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8401
8337
|
} finally {
|
|
8402
8338
|
backupBusy = null;
|
|
8403
8339
|
}
|
|
8404
|
-
}, "
|
|
8340
|
+
}, "w23", $scope0_id);
|
|
8405
8341
|
const pickRestoreFile = _resume(async (input) => {
|
|
8406
8342
|
const file = input.files?.[0];
|
|
8407
8343
|
input.value = "";
|
|
@@ -8435,13 +8371,13 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8435
8371
|
} catch (err) {
|
|
8436
8372
|
error = String(err.message || err);
|
|
8437
8373
|
}
|
|
8438
|
-
}, "
|
|
8374
|
+
}, "w24", $scope0_id);
|
|
8439
8375
|
const toggleRestoreWs = _resume((id, on) => {
|
|
8440
8376
|
const next = new Set(restoreWs);
|
|
8441
8377
|
if (on) next.add(id);
|
|
8442
8378
|
else next.delete(id);
|
|
8443
8379
|
restoreWs = next;
|
|
8444
|
-
}, "
|
|
8380
|
+
}, "w25", $scope0_id);
|
|
8445
8381
|
const runRestore = _resume(async () => {
|
|
8446
8382
|
if (!restorePreview || backupBusy) return;
|
|
8447
8383
|
error = null;
|
|
@@ -8476,7 +8412,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8476
8412
|
watcher.stop();
|
|
8477
8413
|
backupBusy = null;
|
|
8478
8414
|
}
|
|
8479
|
-
}, "
|
|
8415
|
+
}, "w26", $scope0_id);
|
|
8480
8416
|
const searchSkills = _resume((q) => {
|
|
8481
8417
|
skillQuery = q;
|
|
8482
8418
|
clearTimeout(skillTimer.id);
|
|
@@ -8518,10 +8454,10 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8518
8454
|
} finally {
|
|
8519
8455
|
hostBusy = false;
|
|
8520
8456
|
}
|
|
8521
|
-
}, "
|
|
8457
|
+
}, "w27", $scope0_id);
|
|
8522
8458
|
const runEach = _resume(async (ids, action) => {
|
|
8523
8459
|
for (const id of ids) await run(id, action);
|
|
8524
|
-
}, "
|
|
8460
|
+
}, "w28", $scope0_id);
|
|
8525
8461
|
const setPreferred = _resume(async (agent) => {
|
|
8526
8462
|
input$3.preferredChange?.(agent);
|
|
8527
8463
|
try {
|
|
@@ -8533,7 +8469,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8533
8469
|
} catch (err) {
|
|
8534
8470
|
error = String(err.message || err);
|
|
8535
8471
|
}
|
|
8536
|
-
}, "
|
|
8472
|
+
}, "w29", $scope0_id);
|
|
8537
8473
|
const saveTimer = { id: 0 };
|
|
8538
8474
|
const setInstance = _resume((patch) => {
|
|
8539
8475
|
const next = {
|
|
@@ -8558,7 +8494,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8558
8494
|
error = String(err.message || err);
|
|
8559
8495
|
}
|
|
8560
8496
|
}, 300);
|
|
8561
|
-
}, "
|
|
8497
|
+
}, "w30", $scope0_id);
|
|
8562
8498
|
const setEnabled = _resume(async (id, on) => {
|
|
8563
8499
|
if (!setup) return;
|
|
8564
8500
|
const off = new Set(setup.agents.flatMap((f) => f.instances.filter((i) => !i.enabled).map((i) => i.id)));
|
|
@@ -8585,7 +8521,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8585
8521
|
} catch (err) {
|
|
8586
8522
|
error = String(err.message || err);
|
|
8587
8523
|
}
|
|
8588
|
-
}, "
|
|
8524
|
+
}, "w31", $scope0_id);
|
|
8589
8525
|
const search = _resume((q) => {
|
|
8590
8526
|
query = q;
|
|
8591
8527
|
clearTimeout(searchTimer.id);
|
|
@@ -8606,16 +8542,16 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8606
8542
|
}
|
|
8607
8543
|
}, 250);
|
|
8608
8544
|
}, "w1", $scope0_id);
|
|
8609
|
-
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "
|
|
8610
|
-
const aliasPin = _resume((t) => !!t.pin && t.pin !== "latest" && !/^\d/.test(t.pin), "
|
|
8545
|
+
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "w32");
|
|
8546
|
+
const aliasPin = _resume((t) => !!t.pin && t.pin !== "latest" && !/^\d/.test(t.pin), "w33");
|
|
8611
8547
|
const tools = setup?.tools || [];
|
|
8612
8548
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
8613
8549
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
8614
8550
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
8615
8551
|
const families = setup?.agents || [];
|
|
8616
8552
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
8617
|
-
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "
|
|
8618
|
-
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "
|
|
8553
|
+
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "w34", $scope0_id);
|
|
8554
|
+
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "w35", $scope0_id);
|
|
8619
8555
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
8620
8556
|
const titleId = _id();
|
|
8621
8557
|
const agentsId = _id();
|
|
@@ -8632,10 +8568,10 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8632
8568
|
6: 1
|
|
8633
8569
|
});
|
|
8634
8570
|
let $meta;
|
|
8635
|
-
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("
|
|
8571
|
+
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("w44", () => {
|
|
8636
8572
|
_scope_reason();
|
|
8637
8573
|
const $scope4_id = _scope_id();
|
|
8638
|
-
_html(`<span${_attr_class("
|
|
8574
|
+
_html(`<span${_attr_class("_cM")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8639
8575
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8640
8576
|
_resume_branch($scope4_id);
|
|
8641
8577
|
}, $scope0_id) });
|
|
@@ -8644,9 +8580,9 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8644
8580
|
title: "Settings",
|
|
8645
8581
|
titleId,
|
|
8646
8582
|
backHref: input$3.backHref,
|
|
8647
|
-
onBack: input$3.onExit && _resume(() => input$3.onExit?.(), "
|
|
8583
|
+
onBack: input$3.onExit && _resume(() => input$3.onExit?.(), "w36", $scope0_id),
|
|
8648
8584
|
meta: $meta,
|
|
8649
|
-
actions: attrTag({ content: _content("
|
|
8585
|
+
actions: attrTag({ content: _content("w45", () => {
|
|
8650
8586
|
_scope_reason();
|
|
8651
8587
|
const $scope11_id = _scope_id();
|
|
8652
8588
|
_html(`<button${_attr_class(iconBtnRow)} title="Refresh: re-check this machine and agent usage" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
@@ -8657,7 +8593,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8657
8593
|
class: refreshing && "_F"
|
|
8658
8594
|
});
|
|
8659
8595
|
_html(`</button>${_el_resume($scope11_id, "a")}`);
|
|
8660
|
-
_script($scope11_id, "
|
|
8596
|
+
_script($scope11_id, "w43");
|
|
8661
8597
|
_subscribe($refreshing__closures, writeScope($scope11_id, {
|
|
8662
8598
|
_: _scope_with_id($scope0_id),
|
|
8663
8599
|
b: _existing_scope($childScope)
|
|
@@ -8672,8 +8608,8 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8672
8608
|
placement: "inline",
|
|
8673
8609
|
onDismiss: _resume(function() {
|
|
8674
8610
|
error = null;
|
|
8675
|
-
}, "
|
|
8676
|
-
content: _content("
|
|
8611
|
+
}, "w37", $scope9_id),
|
|
8612
|
+
content: _content("w46", () => {
|
|
8677
8613
|
_scope_reason();
|
|
8678
8614
|
const $scope10_id = _scope_id();
|
|
8679
8615
|
_html(_text_resume($scope10_id, "a", error));
|
|
@@ -8688,16 +8624,16 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8688
8624
|
_if(() => {
|
|
8689
8625
|
if (selfUpdatePending || selfUpdating) {
|
|
8690
8626
|
const $scope44_id = _scope_id();
|
|
8691
|
-
_html(`<div${_attr_class("
|
|
8627
|
+
_html(`<div${_attr_class("_dn")} role=status><div${_attr_class("_do")}>`);
|
|
8692
8628
|
_if(() => {
|
|
8693
8629
|
if (selfUpdating) {
|
|
8694
8630
|
const $scope79_id = _scope_id();
|
|
8695
|
-
_html(`<span${_attr_class("
|
|
8631
|
+
_html(`<span${_attr_class("_dp")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dq")}>The app restarts and reloads when it is done.</span>`);
|
|
8696
8632
|
writeScope($scope79_id, {});
|
|
8697
8633
|
return 0;
|
|
8698
8634
|
} else {
|
|
8699
8635
|
const $scope45_id = _scope_id();
|
|
8700
|
-
_html(`<span${_attr_class("
|
|
8636
|
+
_html(`<span${_attr_class("_dp")}>Update available</span><span${_attr_class("_dq")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8701
8637
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8702
8638
|
return 1;
|
|
8703
8639
|
}
|
|
@@ -8706,8 +8642,8 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8706
8642
|
if (!selfUpdating) {
|
|
8707
8643
|
const $scope46_id = _scope_id();
|
|
8708
8644
|
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope46_id, "a")}`);
|
|
8709
|
-
_script($scope46_id, "
|
|
8710
|
-
_subscribe($self_latest__closures, writeScope($scope46_id, {
|
|
8645
|
+
_script($scope46_id, "w47");
|
|
8646
|
+
_subscribe($self_latest__closures, writeScope($scope46_id, { Chi: 1 }));
|
|
8711
8647
|
return 0;
|
|
8712
8648
|
}
|
|
8713
8649
|
}, $scope44_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -8716,11 +8652,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8716
8652
|
return 0;
|
|
8717
8653
|
}
|
|
8718
8654
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8719
|
-
_html(`<section${_attr_class("
|
|
8655
|
+
_html(`<section${_attr_class("_ch")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_ci")}><h2${_attr("id", agentsId)}${_attr_class("_cv")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_cO")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8720
8656
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8721
8657
|
setPreferred(v);
|
|
8722
8658
|
}, "w2", $scope0_id), () => {
|
|
8723
|
-
_html(`<select${_attr_class(["_p", "
|
|
8659
|
+
_html(`<select${_attr_class(["_p", "_cP"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8724
8660
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8725
8661
|
const $scope80_id = _scope_id();
|
|
8726
8662
|
_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)}`);
|
|
@@ -8734,14 +8670,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8734
8670
|
const rows = lone ? [] : a.instances;
|
|
8735
8671
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8736
8672
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8737
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8673
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_cQ", { ["_cS"]: lone && !lone.enabled }])}>`);
|
|
8738
8674
|
_set_serialize_reason(12);
|
|
8739
8675
|
const $childScope3 = _peek_scope_id();
|
|
8740
8676
|
icon_agent_default({
|
|
8741
8677
|
agent: a.id,
|
|
8742
8678
|
size: 18
|
|
8743
8679
|
});
|
|
8744
|
-
_html(`<div${_attr_class("
|
|
8680
|
+
_html(`<div${_attr_class("_cn")}><span${_attr_class("_cp")}><span${_attr_class("_co")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8745
8681
|
_if(() => {
|
|
8746
8682
|
if (lone && input$3.preferred === lone.id) {
|
|
8747
8683
|
const $scope81_id = _scope_id();
|
|
@@ -8754,12 +8690,12 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8754
8690
|
_if(() => {
|
|
8755
8691
|
if (active.has(a.id)) {
|
|
8756
8692
|
const $scope12_id = _scope_id();
|
|
8757
|
-
_html(`<span${_attr_class("
|
|
8693
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8758
8694
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8759
8695
|
return 0;
|
|
8760
8696
|
} else if (!a.installed) {
|
|
8761
8697
|
const $scope82_id = _scope_id();
|
|
8762
|
-
_html(`<span${_attr_class("
|
|
8698
|
+
_html(`<span${_attr_class("_cq")}>Not installed</span>`);
|
|
8763
8699
|
writeScope($scope82_id, {});
|
|
8764
8700
|
return 1;
|
|
8765
8701
|
}
|
|
@@ -8769,7 +8705,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8769
8705
|
if (!a.installed && !active.has(a.id)) {
|
|
8770
8706
|
const $scope57_id = _scope_id();
|
|
8771
8707
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope57_id, "a")}`);
|
|
8772
|
-
_script($scope57_id, "
|
|
8708
|
+
_script($scope57_id, "w48");
|
|
8773
8709
|
writeScope($scope57_id, {});
|
|
8774
8710
|
return 0;
|
|
8775
8711
|
}
|
|
@@ -8778,7 +8714,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8778
8714
|
if (lone) {
|
|
8779
8715
|
const $scope78_id = _scope_id();
|
|
8780
8716
|
_html(`<button${_attr_class("_H")} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($scope78_id, "a")}`);
|
|
8781
|
-
_script($scope78_id, "
|
|
8717
|
+
_script($scope78_id, "w49");
|
|
8782
8718
|
writeScope($scope78_id, {});
|
|
8783
8719
|
return 0;
|
|
8784
8720
|
}
|
|
@@ -8787,15 +8723,15 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8787
8723
|
_if(() => {
|
|
8788
8724
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8789
8725
|
const $scope2_id = _scope_id();
|
|
8790
|
-
_html(`<ul${_attr_class(["
|
|
8726
|
+
_html(`<ul${_attr_class(["_cU", { ["_cS"]: lone && !lone.enabled }])}>`);
|
|
8791
8727
|
_for_of(rows, (inst) => {
|
|
8792
8728
|
const $scope3_id = _scope_id();
|
|
8793
8729
|
const accounts = accountsFor(inst.id);
|
|
8794
|
-
_html(`<li${_attr_class(["
|
|
8730
|
+
_html(`<li${_attr_class(["_cR", { ["_cS"]: !inst.enabled }])}><div${_attr_class("_cQ")}>`);
|
|
8795
8731
|
_set_serialize_reason(12);
|
|
8796
8732
|
const $childScope4 = _peek_scope_id();
|
|
8797
8733
|
icon_agent_default({ agent: inst.id });
|
|
8798
|
-
_html(`<span${_attr_class(["
|
|
8734
|
+
_html(`<span${_attr_class(["_cT", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8799
8735
|
_if(() => {
|
|
8800
8736
|
if (input$3.preferred === inst.id) {
|
|
8801
8737
|
const $scope83_id = _scope_id();
|
|
@@ -8816,7 +8752,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8816
8752
|
writeScope($scope84_id, { a: _existing_scope($childScope5) });
|
|
8817
8753
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "i", 1, 1, 1, 0, 1);
|
|
8818
8754
|
_html(`</li>${_el_resume($scope3_id, "a")}`);
|
|
8819
|
-
_script($scope3_id, "
|
|
8755
|
+
_script($scope3_id, "w50");
|
|
8820
8756
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
8821
8757
|
l: inst?.id,
|
|
8822
8758
|
o: inst?.enabled,
|
|
@@ -8877,24 +8813,24 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8877
8813
|
_if(() => {
|
|
8878
8814
|
if (!usage && families.length) {
|
|
8879
8815
|
const $scope88_id = _scope_id();
|
|
8880
|
-
_html(`<p${_attr_class("
|
|
8816
|
+
_html(`<p${_attr_class("_cs")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8881
8817
|
writeScope($scope88_id, {});
|
|
8882
8818
|
return 0;
|
|
8883
8819
|
} else if (usage?.error) {
|
|
8884
8820
|
const $scope8_id = _scope_id();
|
|
8885
|
-
_html(`<p${_attr_class("
|
|
8821
|
+
_html(`<p${_attr_class("_cs")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8886
8822
|
writeScope($scope8_id, {});
|
|
8887
8823
|
return 1;
|
|
8888
8824
|
}
|
|
8889
8825
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8890
|
-
_html(`</section><section${_attr_class("
|
|
8826
|
+
_html(`</section><section${_attr_class("_ch")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ci")}><h2${_attr("id", githubId)}${_attr_class("_cv")}>GitHub</h2>`);
|
|
8891
8827
|
_if(() => {
|
|
8892
8828
|
if (setup && !addingHost) {
|
|
8893
8829
|
const $scope42_id = _scope_id();
|
|
8894
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8830
|
+
_html(`<button${_attr_class([iconBtnRow, "_c3"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8895
8831
|
icon_plus_default({ size: 16 });
|
|
8896
8832
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8897
|
-
_script($scope42_id, "
|
|
8833
|
+
_script($scope42_id, "w51");
|
|
8898
8834
|
writeScope($scope42_id, {});
|
|
8899
8835
|
return 0;
|
|
8900
8836
|
}
|
|
@@ -8903,10 +8839,10 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8903
8839
|
if (setup) {
|
|
8904
8840
|
const $scope41_id = _scope_id();
|
|
8905
8841
|
_html(`<form${_attr_class([
|
|
8906
|
-
"
|
|
8907
|
-
"
|
|
8908
|
-
{ ["
|
|
8909
|
-
])}><label${_attr_class(["_1", "
|
|
8842
|
+
"_d0",
|
|
8843
|
+
"_c3",
|
|
8844
|
+
{ ["_d1"]: !addingHost }
|
|
8845
|
+
])}><label${_attr_class(["_1", "_d3"])}>`);
|
|
8910
8846
|
icon_github_default({
|
|
8911
8847
|
size: 14,
|
|
8912
8848
|
class: "_2"
|
|
@@ -8916,32 +8852,32 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8916
8852
|
}, "w3", $scope41_id))}${_attr_class([
|
|
8917
8853
|
"_Z",
|
|
8918
8854
|
"_3",
|
|
8919
|
-
"
|
|
8855
|
+
"_d4"
|
|
8920
8856
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8921
8857
|
btnSm,
|
|
8922
8858
|
"_r",
|
|
8923
|
-
"
|
|
8924
|
-
])} 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, "
|
|
8859
|
+
"_c2"
|
|
8860
|
+
])} 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, "_d5"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8925
8861
|
icon_xmark_default({ size: 14 });
|
|
8926
8862
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8927
|
-
_script($scope41_id, "
|
|
8863
|
+
_script($scope41_id, "w52");
|
|
8928
8864
|
writeScope($scope41_id, {});
|
|
8929
8865
|
return 0;
|
|
8930
8866
|
}
|
|
8931
8867
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8932
|
-
_html(`</div><div${_attr_class(["
|
|
8868
|
+
_html(`</div><div${_attr_class(["_cm", "_cw"])}>`);
|
|
8933
8869
|
_for_of(setup?.github || [], (h) => {
|
|
8934
8870
|
const $scope6_id = _scope_id();
|
|
8935
8871
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8936
8872
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8937
8873
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8938
8874
|
const busy = active.has(h.host);
|
|
8939
|
-
_html(`<div${_attr_class(["_cx", "
|
|
8875
|
+
_html(`<div${_attr_class(["_cx", "_c4"])}><div${_attr_class("_c5")}>`);
|
|
8940
8876
|
icon_github_default({
|
|
8941
8877
|
size: 18,
|
|
8942
|
-
class: "
|
|
8878
|
+
class: "_c6"
|
|
8943
8879
|
});
|
|
8944
|
-
_html(`<div${_attr_class("
|
|
8880
|
+
_html(`<div${_attr_class("_cn")}><span${_attr_class("_cp")}><span${_attr_class("_co")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8945
8881
|
_if(() => {
|
|
8946
8882
|
if (h.isEnterprise) {
|
|
8947
8883
|
const $scope91_id = _scope_id();
|
|
@@ -8954,25 +8890,25 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8954
8890
|
_if(() => {
|
|
8955
8891
|
if (busy) {
|
|
8956
8892
|
const $scope13_id = _scope_id();
|
|
8957
|
-
_html(`<span${_attr_class(["
|
|
8958
|
-
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, {
|
|
8893
|
+
_html(`<span${_attr_class(["_cq", "_c7"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8894
|
+
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8959
8895
|
return 0;
|
|
8960
8896
|
} else if (h.authed) {
|
|
8961
8897
|
const $scope89_id = _scope_id();
|
|
8962
|
-
_html(`<span${_attr_class(["
|
|
8898
|
+
_html(`<span${_attr_class(["_cq", "_c7"])}>`);
|
|
8963
8899
|
icon_check_default({
|
|
8964
8900
|
size: 12,
|
|
8965
|
-
class: "
|
|
8901
|
+
class: "_c8"
|
|
8966
8902
|
});
|
|
8967
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8903
|
+
_html(` Signed in as <strong${_attr_class("_c_")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8968
8904
|
writeScope($scope89_id, {});
|
|
8969
8905
|
return 1;
|
|
8970
8906
|
} else if (h.error) {
|
|
8971
8907
|
const $scope90_id = _scope_id();
|
|
8972
8908
|
_html(`<span${_attr_class([
|
|
8973
|
-
"
|
|
8974
|
-
"
|
|
8975
|
-
"
|
|
8909
|
+
"_cq",
|
|
8910
|
+
"_c7",
|
|
8911
|
+
"_c9"
|
|
8976
8912
|
])}>`);
|
|
8977
8913
|
icon_warning_default({ size: 12 });
|
|
8978
8914
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8980,7 +8916,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8980
8916
|
return 2;
|
|
8981
8917
|
} else {
|
|
8982
8918
|
const $scope92_id = _scope_id();
|
|
8983
|
-
_html(`<span${_attr_class(["
|
|
8919
|
+
_html(`<span${_attr_class(["_cq", "_c7"])}>Not signed in</span>`);
|
|
8984
8920
|
writeScope($scope92_id, {});
|
|
8985
8921
|
return 3;
|
|
8986
8922
|
}
|
|
@@ -8993,7 +8929,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
8993
8929
|
if (!h.authed) {
|
|
8994
8930
|
const $scope58_id = _scope_id();
|
|
8995
8931
|
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($scope58_id, "a")}`);
|
|
8996
|
-
_script($scope58_id, "
|
|
8932
|
+
_script($scope58_id, "w53");
|
|
8997
8933
|
writeScope($scope58_id, {});
|
|
8998
8934
|
return 0;
|
|
8999
8935
|
} else {
|
|
@@ -9002,7 +8938,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9002
8938
|
["_t"]: confirmingRemove === `out:${h.host}`,
|
|
9003
8939
|
["_s"]: confirmingRemove === `out:${h.host}`
|
|
9004
8940
|
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${_text_resume($scope32_id, "b", confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out")}</button>${_el_resume($scope32_id, "a")}`);
|
|
9005
|
-
_script($scope32_id, "
|
|
8941
|
+
_script($scope32_id, "w54");
|
|
9006
8942
|
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope32_id, {})));
|
|
9007
8943
|
return 1;
|
|
9008
8944
|
}
|
|
@@ -9011,7 +8947,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9011
8947
|
if (h.isEnterprise) {
|
|
9012
8948
|
const $scope33_id = _scope_id();
|
|
9013
8949
|
_html(`<button${_attr_class([
|
|
9014
|
-
"
|
|
8950
|
+
"_cr",
|
|
9015
8951
|
"_8",
|
|
9016
8952
|
"_9",
|
|
9017
8953
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -9029,9 +8965,9 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9029
8965
|
return 1;
|
|
9030
8966
|
}
|
|
9031
8967
|
}, $scope33_id, "a", 1, 1, 1, "</button>");
|
|
9032
|
-
_script($scope33_id, "
|
|
8968
|
+
_script($scope33_id, "w55");
|
|
9033
8969
|
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope33_id, {
|
|
9034
|
-
|
|
8970
|
+
Ch5: 1,
|
|
9035
8971
|
Ca4: 1
|
|
9036
8972
|
})));
|
|
9037
8973
|
return 0;
|
|
@@ -9045,8 +8981,8 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9045
8981
|
_if(() => {
|
|
9046
8982
|
if (busy && authCodes.has(h.host)) {
|
|
9047
8983
|
const $scope30_id = _scope_id();
|
|
9048
|
-
_html(`<div${_attr_class("
|
|
9049
|
-
_subscribe($authCodes__closures, writeScope($scope30_id, {
|
|
8984
|
+
_html(`<div${_attr_class("_da")}><span${_attr_class("_db")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dd")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_dc")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8985
|
+
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
9050
8986
|
return 0;
|
|
9051
8987
|
}
|
|
9052
8988
|
}, $scope6_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -9057,19 +8993,19 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9057
8993
|
_set_serialize_reason(30);
|
|
9058
8994
|
const $childScope9 = _peek_scope_id();
|
|
9059
8995
|
sso_auth_default({
|
|
9060
|
-
class: ["_cx", "
|
|
8996
|
+
class: ["_cx", "_de"],
|
|
9061
8997
|
items: hostSso$1,
|
|
9062
8998
|
skipped: skippedSso,
|
|
9063
8999
|
busy,
|
|
9064
9000
|
onChange: _resume(function() {
|
|
9065
9001
|
readIgnoredSso();
|
|
9066
|
-
}, "
|
|
9002
|
+
}, "w38", $scope7_id),
|
|
9067
9003
|
onAuthorize: _resume(function() {
|
|
9068
9004
|
run(h.host, "auth-refresh");
|
|
9069
|
-
}, "
|
|
9005
|
+
}, "w39", $scope7_id),
|
|
9070
9006
|
onDone: _resume(function() {
|
|
9071
9007
|
refresh();
|
|
9072
|
-
}, "
|
|
9008
|
+
}, "w40", $scope7_id)
|
|
9073
9009
|
});
|
|
9074
9010
|
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, writeScope($scope7_id, { a: _existing_scope($childScope9) })));
|
|
9075
9011
|
return 0;
|
|
@@ -9091,12 +9027,12 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9091
9027
|
_if(() => {
|
|
9092
9028
|
if (setup && !setup.github.length) {
|
|
9093
9029
|
const $scope95_id = _scope_id();
|
|
9094
|
-
_html(`<p${_attr_class("
|
|
9030
|
+
_html(`<p${_attr_class("_cs")}>Install the GitHub CLI below to sign in.</p>`);
|
|
9095
9031
|
writeScope($scope95_id, {});
|
|
9096
9032
|
return 0;
|
|
9097
9033
|
}
|
|
9098
9034
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
9099
|
-
_html(`</section><section${_attr_class("
|
|
9035
|
+
_html(`</section><section${_attr_class("_ch")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_ci")}><h2${_attr("id", machineId)}${_attr_class("_cv")}>Machine</h2></div><div${_attr_class(["_cm", "_cw"])}><div${_attr_class(["_cx", "_cy"])}><div${_attr_class(["_cz", { ["_cA"]: skillsOpen }])}><button${_attr_class("_cB")} aria-expanded=true>`);
|
|
9100
9036
|
_set_serialize_reason(1);
|
|
9101
9037
|
const $childScope10 = _peek_scope_id();
|
|
9102
9038
|
icon_chevron_right_default({
|
|
@@ -9119,7 +9055,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9119
9055
|
_html(`<button${_attr_class(iconBtnRow)} title="Add skill" aria-label="Add skill">`);
|
|
9120
9056
|
icon_plus_default({ size: 16 });
|
|
9121
9057
|
_html(`</button>${_el_resume($scope55_id, "a")}`);
|
|
9122
|
-
_script($scope55_id, "
|
|
9058
|
+
_script($scope55_id, "w56");
|
|
9123
9059
|
writeScope($scope55_id, {});
|
|
9124
9060
|
return 0;
|
|
9125
9061
|
}
|
|
@@ -9127,7 +9063,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9127
9063
|
_if(() => {
|
|
9128
9064
|
if (skills?.available && skills.agents.length) {
|
|
9129
9065
|
const $scope14_id = _scope_id();
|
|
9130
|
-
_html(`<div${_attr_class(["
|
|
9066
|
+
_html(`<div${_attr_class(["_d0", { ["_d1"]: true }])}><label${_attr_class(["_1", "_d3"])}>`);
|
|
9131
9067
|
_if(() => {
|
|
9132
9068
|
if (skillSearching) {
|
|
9133
9069
|
const $scope96_id = _scope_id();
|
|
@@ -9147,14 +9083,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9147
9083
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9148
9084
|
"_Z",
|
|
9149
9085
|
"_3",
|
|
9150
|
-
"
|
|
9151
|
-
])} 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, "
|
|
9086
|
+
"_d4"
|
|
9087
|
+
])} 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, "_d5"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9152
9088
|
icon_xmark_default({ size: 14 });
|
|
9153
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9089
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_d7"])}${_attr("hidden", true)}>`);
|
|
9154
9090
|
_if(() => {
|
|
9155
9091
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9156
9092
|
const $scope98_id = _scope_id();
|
|
9157
|
-
_html(`<li${_attr_class("
|
|
9093
|
+
_html(`<li${_attr_class("_d8")}>Searching skills.sh…</li>`);
|
|
9158
9094
|
writeScope($scope98_id, {});
|
|
9159
9095
|
return 0;
|
|
9160
9096
|
}
|
|
@@ -9162,19 +9098,19 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9162
9098
|
_if(() => {
|
|
9163
9099
|
if (looksLikeSource(skillQuery)) {
|
|
9164
9100
|
const $scope15_id = _scope_id();
|
|
9165
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9101
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cn")}><span${_attr_class(["_cY", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9166
9102
|
_if(() => {
|
|
9167
9103
|
if (active.has(skillQuery.trim())) {
|
|
9168
9104
|
const $scope16_id = _scope_id();
|
|
9169
|
-
_html(`<span${_attr_class("
|
|
9105
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9170
9106
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9171
|
-
|
|
9172
|
-
|
|
9107
|
+
Ch2: 3,
|
|
9108
|
+
Chr: 1
|
|
9173
9109
|
})));
|
|
9174
9110
|
return 0;
|
|
9175
9111
|
} else {
|
|
9176
9112
|
const $scope99_id = _scope_id();
|
|
9177
|
-
_html(`<span${_attr_class("
|
|
9113
|
+
_html(`<span${_attr_class("_cq")}>Add straight from this source</span>`);
|
|
9178
9114
|
writeScope($scope99_id, {});
|
|
9179
9115
|
return 1;
|
|
9180
9116
|
}
|
|
@@ -9184,29 +9120,29 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9184
9120
|
if (!active.has(skillQuery.trim())) {
|
|
9185
9121
|
const $scope52_id = _scope_id();
|
|
9186
9122
|
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope52_id, "a")}`);
|
|
9187
|
-
_script($scope52_id, "
|
|
9123
|
+
_script($scope52_id, "w57");
|
|
9188
9124
|
writeScope($scope52_id, {});
|
|
9189
9125
|
return 0;
|
|
9190
9126
|
}
|
|
9191
9127
|
}, $scope15_id, "f", 1, 1, 1, 0, 1);
|
|
9192
9128
|
_html("</li>");
|
|
9193
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope15_id, {
|
|
9129
|
+
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope15_id, { Ch2: 2 })));
|
|
9194
9130
|
return 0;
|
|
9195
9131
|
}
|
|
9196
9132
|
}, $scope14_id, "i", 1, 1, 1, 0, 1);
|
|
9197
9133
|
_for_of(skillHits || [], (h) => {
|
|
9198
9134
|
const $scope17_id = _scope_id();
|
|
9199
9135
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9200
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9136
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cn")}><span${_attr_class(["_cY", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9201
9137
|
_if(() => {
|
|
9202
9138
|
if (active.has(h.skillId)) {
|
|
9203
9139
|
const $scope18_id = _scope_id();
|
|
9204
|
-
_html(`<span${_attr_class("
|
|
9205
|
-
_subscribe($active__closures, writeScope($scope18_id, {
|
|
9140
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9141
|
+
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9206
9142
|
return 0;
|
|
9207
9143
|
} else {
|
|
9208
9144
|
const $scope100_id = _scope_id();
|
|
9209
|
-
_html(`<span${_attr_class("
|
|
9145
|
+
_html(`<span${_attr_class("_cq")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9210
9146
|
writeScope($scope100_id, {});
|
|
9211
9147
|
return 1;
|
|
9212
9148
|
}
|
|
@@ -9232,7 +9168,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9232
9168
|
} else {
|
|
9233
9169
|
const $scope63_id = _scope_id();
|
|
9234
9170
|
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope63_id, "a")}`);
|
|
9235
|
-
_script($scope63_id, "
|
|
9171
|
+
_script($scope63_id, "w58");
|
|
9236
9172
|
writeScope($scope63_id, {});
|
|
9237
9173
|
return 1;
|
|
9238
9174
|
}
|
|
@@ -9248,19 +9184,19 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9248
9184
|
m: h?.installs,
|
|
9249
9185
|
n: h?.installed,
|
|
9250
9186
|
q: $for_content4__h_installs__closures,
|
|
9251
|
-
|
|
9187
|
+
Ch2: 4
|
|
9252
9188
|
}));
|
|
9253
9189
|
}, "skillId", $scope14_id, "j", 1, 1, 1, 0, 1);
|
|
9254
9190
|
_if(() => {
|
|
9255
9191
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9256
9192
|
const $scope53_id = _scope_id();
|
|
9257
|
-
_html(`<li${_attr_class("
|
|
9258
|
-
_subscribe($skillQuery__closures, writeScope($scope53_id, {
|
|
9193
|
+
_html(`<li${_attr_class("_d8")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9194
|
+
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9259
9195
|
return 0;
|
|
9260
9196
|
}
|
|
9261
9197
|
}, $scope14_id, "k", 1, 1, 1, 0, 1);
|
|
9262
9198
|
_html(`</ul>${_el_resume($scope14_id, "g")}</div>${_el_resume($scope14_id, "a")}`);
|
|
9263
|
-
_script($scope14_id, "
|
|
9199
|
+
_script($scope14_id, "w59");
|
|
9264
9200
|
writeScope($scope14_id, {});
|
|
9265
9201
|
return 0;
|
|
9266
9202
|
}
|
|
@@ -9273,18 +9209,18 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9273
9209
|
_if(() => {
|
|
9274
9210
|
if (skills && !skills.agents.length) {
|
|
9275
9211
|
const $scope103_id = _scope_id();
|
|
9276
|
-
_html(`<p${_attr_class("
|
|
9212
|
+
_html(`<p${_attr_class("_cs")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9277
9213
|
writeScope($scope103_id, {});
|
|
9278
9214
|
return 0;
|
|
9279
9215
|
} else if (skills && !skills.available) {
|
|
9280
9216
|
const $scope20_id = _scope_id();
|
|
9281
|
-
_html(`<p${_attr_class("
|
|
9282
|
-
_script($scope20_id, "
|
|
9283
|
-
_subscribe($active__closures, writeScope($scope20_id, {
|
|
9217
|
+
_html(`<p${_attr_class("_cs")}>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>`);
|
|
9218
|
+
_script($scope20_id, "w60");
|
|
9219
|
+
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9284
9220
|
return 1;
|
|
9285
9221
|
}
|
|
9286
9222
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9287
|
-
_html(`<ul${_attr_class("
|
|
9223
|
+
_html(`<ul${_attr_class("_dT")}>`);
|
|
9288
9224
|
_for_of(skills?.global || [], (s) => {
|
|
9289
9225
|
const $scope21_id = _scope_id();
|
|
9290
9226
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9294,21 +9230,21 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9294
9230
|
let $tags;
|
|
9295
9231
|
let $actions;
|
|
9296
9232
|
let $trailing;
|
|
9297
|
-
if (skills && s.agents.length < skills.agents.length) $tags = attrTag({ content: _content_resume("
|
|
9233
|
+
if (skills && s.agents.length < skills.agents.length) $tags = attrTag({ content: _content_resume("w63", () => {
|
|
9298
9234
|
_scope_reason();
|
|
9299
9235
|
const $scope104_id = _scope_id();
|
|
9300
9236
|
_html(`<span${_attr_class("_N")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope104_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope104_id, "a")}`);
|
|
9301
9237
|
_subscribe($for_content5__s_agents__closures, writeScope($scope104_id, { _: _scope_with_id($scope21_id) }));
|
|
9302
9238
|
_resume_branch($scope104_id);
|
|
9303
9239
|
}, $scope21_id) });
|
|
9304
|
-
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("
|
|
9240
|
+
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("w64", () => {
|
|
9305
9241
|
_scope_reason();
|
|
9306
9242
|
const $scope64_id = _scope_id();
|
|
9307
9243
|
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($scope64_id, "a")}`);
|
|
9308
|
-
_script($scope64_id, "
|
|
9244
|
+
_script($scope64_id, "w61");
|
|
9309
9245
|
writeScope($scope64_id, { _: _scope_with_id($scope21_id) });
|
|
9310
9246
|
}, $scope21_id) });
|
|
9311
|
-
if (skills?.available) $trailing = attrTag({ content: _content_resume("
|
|
9247
|
+
if (skills?.available) $trailing = attrTag({ content: _content_resume("w65", () => {
|
|
9312
9248
|
_scope_reason();
|
|
9313
9249
|
const $scope54_id = _scope_id();
|
|
9314
9250
|
_html(`<button${_attr_class([
|
|
@@ -9330,7 +9266,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9330
9266
|
return 1;
|
|
9331
9267
|
}
|
|
9332
9268
|
}, $scope54_id, "a", 1, 1, 1, "</button>");
|
|
9333
|
-
_script($scope54_id, "
|
|
9269
|
+
_script($scope54_id, "w62");
|
|
9334
9270
|
_subscribe($for_content5__s_id__closures, _subscribe($for_content5__s_name__closures, _subscribe($confirmingSkill__closures, writeScope($scope54_id, { _: _scope_with_id($scope21_id) }))));
|
|
9335
9271
|
_resume_branch($scope54_id);
|
|
9336
9272
|
}, $scope21_id) });
|
|
@@ -9354,13 +9290,13 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9354
9290
|
n: $for_content5__s_name__closures,
|
|
9355
9291
|
o: $for_content5__s_id__closures,
|
|
9356
9292
|
a: _existing_scope($childScope11),
|
|
9357
|
-
|
|
9293
|
+
Ch2: 7
|
|
9358
9294
|
}))));
|
|
9359
9295
|
}, "id", $scope19_id, "c", 1, 1, 1, "</ul>", 1);
|
|
9360
9296
|
_if(() => {
|
|
9361
9297
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9362
9298
|
const $scope108_id = _scope_id();
|
|
9363
|
-
_html(`<p${_attr_class("
|
|
9299
|
+
_html(`<p${_attr_class("_cs")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9364
9300
|
writeScope($scope108_id, {});
|
|
9365
9301
|
return 0;
|
|
9366
9302
|
}
|
|
@@ -9382,7 +9318,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9382
9318
|
if (outdatedIds.length > 1) {
|
|
9383
9319
|
const $scope22_id = _scope_id();
|
|
9384
9320
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope22_id, "a")}`);
|
|
9385
|
-
_script($scope22_id, "
|
|
9321
|
+
_script($scope22_id, "w66");
|
|
9386
9322
|
writeScope($scope22_id, {});
|
|
9387
9323
|
return 0;
|
|
9388
9324
|
}
|
|
@@ -9391,7 +9327,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9391
9327
|
if (missingInstallable.length > 1) {
|
|
9392
9328
|
const $scope23_id = _scope_id();
|
|
9393
9329
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope23_id, "a")}`);
|
|
9394
|
-
_script($scope23_id, "
|
|
9330
|
+
_script($scope23_id, "w67");
|
|
9395
9331
|
writeScope($scope23_id, {});
|
|
9396
9332
|
return 0;
|
|
9397
9333
|
}
|
|
@@ -9402,7 +9338,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9402
9338
|
_html(`<button${_attr_class(iconBtnRow)} title="Add tool" aria-label="Add tool">`);
|
|
9403
9339
|
icon_plus_default({ size: 16 });
|
|
9404
9340
|
_html(`</button>${_el_resume($scope56_id, "a")}`);
|
|
9405
|
-
_script($scope56_id, "
|
|
9341
|
+
_script($scope56_id, "w68");
|
|
9406
9342
|
writeScope($scope56_id, {});
|
|
9407
9343
|
return 0;
|
|
9408
9344
|
}
|
|
@@ -9410,7 +9346,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9410
9346
|
_if(() => {
|
|
9411
9347
|
if (setup && setup.mise.installed) {
|
|
9412
9348
|
const $scope24_id = _scope_id();
|
|
9413
|
-
_html(`<div${_attr_class(["
|
|
9349
|
+
_html(`<div${_attr_class(["_d0", { ["_d1"]: true }])}><label${_attr_class(["_1", "_d3"])}>`);
|
|
9414
9350
|
_if(() => {
|
|
9415
9351
|
if (searching) {
|
|
9416
9352
|
const $scope109_id = _scope_id();
|
|
@@ -9430,14 +9366,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9430
9366
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9431
9367
|
"_Z",
|
|
9432
9368
|
"_3",
|
|
9433
|
-
"
|
|
9434
|
-
])} 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, "
|
|
9369
|
+
"_d4"
|
|
9370
|
+
])} 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, "_d5"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9435
9371
|
icon_xmark_default({ size: 14 });
|
|
9436
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9372
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_d7"])}${_attr("hidden", true)}>`);
|
|
9437
9373
|
_if(() => {
|
|
9438
9374
|
if (searching && !hits?.length) {
|
|
9439
9375
|
const $scope111_id = _scope_id();
|
|
9440
|
-
_html(`<li${_attr_class("
|
|
9376
|
+
_html(`<li${_attr_class("_d8")}>Searching the mise registry…</li>`);
|
|
9441
9377
|
writeScope($scope111_id, {});
|
|
9442
9378
|
return 0;
|
|
9443
9379
|
}
|
|
@@ -9445,23 +9381,23 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9445
9381
|
_if(() => {
|
|
9446
9382
|
if (hits && !hits.length && !searching) {
|
|
9447
9383
|
const $scope43_id = _scope_id();
|
|
9448
|
-
_html(`<li${_attr_class("
|
|
9384
|
+
_html(`<li${_attr_class("_d8")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9449
9385
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9450
9386
|
return 0;
|
|
9451
9387
|
}
|
|
9452
9388
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9453
9389
|
_for_of(hits || [], (h) => {
|
|
9454
9390
|
const $scope25_id = _scope_id();
|
|
9455
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9391
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cn")}><span${_attr_class(["_cY", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9456
9392
|
_if(() => {
|
|
9457
9393
|
if (active.has(h.name)) {
|
|
9458
9394
|
const $scope26_id = _scope_id();
|
|
9459
|
-
_html(`<span${_attr_class("
|
|
9460
|
-
_subscribe($active__closures, writeScope($scope26_id, {
|
|
9395
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9396
|
+
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9461
9397
|
return 0;
|
|
9462
9398
|
} else if (h.description) {
|
|
9463
9399
|
const $scope112_id = _scope_id();
|
|
9464
|
-
_html(`<span${_attr_class("
|
|
9400
|
+
_html(`<span${_attr_class("_cq")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9465
9401
|
writeScope($scope112_id, {});
|
|
9466
9402
|
return 1;
|
|
9467
9403
|
}
|
|
@@ -9479,7 +9415,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9479
9415
|
} else {
|
|
9480
9416
|
const $scope38_id = _scope_id();
|
|
9481
9417
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope38_id, "b")}`);
|
|
9482
|
-
_script($scope38_id, "
|
|
9418
|
+
_script($scope38_id, "w69");
|
|
9483
9419
|
writeScope($scope38_id, {});
|
|
9484
9420
|
return 1;
|
|
9485
9421
|
}
|
|
@@ -9493,11 +9429,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9493
9429
|
i: h?.name,
|
|
9494
9430
|
k: h?.description,
|
|
9495
9431
|
m: h?.installed,
|
|
9496
|
-
|
|
9432
|
+
Ch2: 8
|
|
9497
9433
|
}));
|
|
9498
9434
|
}, "name", $scope24_id, "j", 1, 1, 1, 0, 1);
|
|
9499
9435
|
_html(`</ul>${_el_resume($scope24_id, "g")}</div>${_el_resume($scope24_id, "a")}`);
|
|
9500
|
-
_script($scope24_id, "
|
|
9436
|
+
_script($scope24_id, "w70");
|
|
9501
9437
|
writeScope($scope24_id, {});
|
|
9502
9438
|
return 0;
|
|
9503
9439
|
}
|
|
@@ -9510,9 +9446,9 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9510
9446
|
_if(() => {
|
|
9511
9447
|
if (setup && !setup.mise.installed) {
|
|
9512
9448
|
const $scope27_id = _scope_id();
|
|
9513
|
-
_html(`<p${_attr_class("
|
|
9514
|
-
_script($scope27_id, "
|
|
9515
|
-
_subscribe($active__closures, writeScope($scope27_id, {
|
|
9449
|
+
_html(`<p${_attr_class("_cs")}>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>`);
|
|
9450
|
+
_script($scope27_id, "w71");
|
|
9451
|
+
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9516
9452
|
return 0;
|
|
9517
9453
|
}
|
|
9518
9454
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -9520,11 +9456,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9520
9456
|
_if(() => {
|
|
9521
9457
|
if (self) {
|
|
9522
9458
|
const $scope47_id = _scope_id();
|
|
9523
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9459
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_cY", "_y"])}>work</span>`);
|
|
9524
9460
|
_if(() => {
|
|
9525
9461
|
if (selfUpdating) {
|
|
9526
9462
|
const $scope114_id = _scope_id();
|
|
9527
|
-
_html(`<span${_attr_class("
|
|
9463
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9528
9464
|
writeScope($scope114_id, {});
|
|
9529
9465
|
return 0;
|
|
9530
9466
|
} else {
|
|
@@ -9538,11 +9474,11 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9538
9474
|
return 0;
|
|
9539
9475
|
} else if (self.latest && self.latest !== self.version) {
|
|
9540
9476
|
const $scope49_id = _scope_id();
|
|
9541
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9477
|
+
_html(`<button${_attr_class([btnSm, "_c1"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9542
9478
|
icon_arrow_up_default({ size: 12 });
|
|
9543
9479
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9544
|
-
_script($scope49_id, "
|
|
9545
|
-
_subscribe($self_latest__closures, writeScope($scope49_id, {
|
|
9480
|
+
_script($scope49_id, "w72");
|
|
9481
|
+
_subscribe($self_latest__closures, writeScope($scope49_id, { Chi: 3 }));
|
|
9546
9482
|
return 1;
|
|
9547
9483
|
} else if (self.latest) {
|
|
9548
9484
|
const $scope116_id = _scope_id();
|
|
@@ -9552,8 +9488,8 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9552
9488
|
}
|
|
9553
9489
|
}, $scope48_id, "c", 1, 1, 1, 0, 1);
|
|
9554
9490
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope48_id, {
|
|
9555
|
-
|
|
9556
|
-
|
|
9491
|
+
Chi: 2,
|
|
9492
|
+
Chj: 1
|
|
9557
9493
|
}))));
|
|
9558
9494
|
return 1;
|
|
9559
9495
|
}
|
|
@@ -9582,29 +9518,29 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9582
9518
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9583
9519
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9584
9520
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9585
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9521
|
+
_html(`<li${_attr_class([toolRow, { ["_cX"]: !t.installed }])}><span${_attr_class(["_cY", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9586
9522
|
_if(() => {
|
|
9587
9523
|
if (active.has(t.id)) {
|
|
9588
9524
|
const $scope29_id = _scope_id();
|
|
9589
|
-
_html(`<span${_attr_class("
|
|
9590
|
-
_subscribe($active__closures, writeScope($scope29_id, {
|
|
9525
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9526
|
+
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9591
9527
|
return 0;
|
|
9592
9528
|
} else if (t.installed) {
|
|
9593
9529
|
const $scope39_id = _scope_id();
|
|
9594
9530
|
_if(() => {
|
|
9595
9531
|
if (t.version) {
|
|
9596
9532
|
const $scope40_id = _scope_id();
|
|
9597
|
-
_html(`<button${_attr_class(["
|
|
9533
|
+
_html(`<button${_attr_class(["_c0", "_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)}`);
|
|
9598
9534
|
_if(() => {
|
|
9599
9535
|
if (aliasPin(t)) {
|
|
9600
9536
|
const $scope118_id = _scope_id();
|
|
9601
|
-
_html(`<span${_attr_class("
|
|
9537
|
+
_html(`<span${_attr_class("_cZ")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9602
9538
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9603
9539
|
return 0;
|
|
9604
9540
|
}
|
|
9605
9541
|
}, $scope40_id, "c", 1, 1, 1, 0, 1);
|
|
9606
9542
|
_html(`</button>${_el_resume($scope40_id, "a")}`);
|
|
9607
|
-
_script($scope40_id, "
|
|
9543
|
+
_script($scope40_id, "w73");
|
|
9608
9544
|
_subscribe($for_content7__t_version__closures, _subscribe($for_content7__t__closures, writeScope($scope40_id, {})));
|
|
9609
9545
|
return 0;
|
|
9610
9546
|
} else {
|
|
@@ -9617,16 +9553,16 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9617
9553
|
_if(() => {
|
|
9618
9554
|
if (outdated(t)) {
|
|
9619
9555
|
const $scope59_id = _scope_id();
|
|
9620
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9556
|
+
_html(`<button${_attr_class([btnSm, "_c1"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9621
9557
|
icon_arrow_up_default({ size: 12 });
|
|
9622
9558
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9623
|
-
_script($scope59_id, "
|
|
9559
|
+
_script($scope59_id, "w74");
|
|
9624
9560
|
_subscribe($for_content7__t_latest__closures, writeScope($scope59_id, {}));
|
|
9625
9561
|
return 0;
|
|
9626
9562
|
} else if (t.newest) {
|
|
9627
9563
|
const $scope60_id = _scope_id();
|
|
9628
|
-
_html(`<button${_attr_class(["
|
|
9629
|
-
_script($scope60_id, "
|
|
9564
|
+
_html(`<button${_attr_class(["_c0", "_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")}`);
|
|
9565
|
+
_script($scope60_id, "w75");
|
|
9630
9566
|
_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, {
|
|
9631
9567
|
Cw: 1,
|
|
9632
9568
|
Cy: 1
|
|
@@ -9664,7 +9600,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9664
9600
|
if (!t.installed && t.installable) {
|
|
9665
9601
|
const $scope61_id = _scope_id();
|
|
9666
9602
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope61_id, "a")}`);
|
|
9667
|
-
_script($scope61_id, "
|
|
9603
|
+
_script($scope61_id, "w76");
|
|
9668
9604
|
writeScope($scope61_id, {});
|
|
9669
9605
|
return 0;
|
|
9670
9606
|
} else if (t.installed && t.version && !t.required) {
|
|
@@ -9688,8 +9624,8 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9688
9624
|
return 1;
|
|
9689
9625
|
}
|
|
9690
9626
|
}, $scope35_id, "a", 1, 1, 1, "</button>");
|
|
9691
|
-
_script($scope35_id, "
|
|
9692
|
-
_subscribe($for_content7__t_id__closures, _subscribe($for_content7__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope35_id, {
|
|
9627
|
+
_script($scope35_id, "w77");
|
|
9628
|
+
_subscribe($for_content7__t_id__closures, _subscribe($for_content7__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope35_id, { Ch5: 2 }))));
|
|
9693
9629
|
return 1;
|
|
9694
9630
|
}
|
|
9695
9631
|
}, $scope34_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -9718,7 +9654,7 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9718
9654
|
w: $for_content7__t_label__closures,
|
|
9719
9655
|
a1: $for_content7__t_newest__closures,
|
|
9720
9656
|
x: $for_content7__t_id__closures,
|
|
9721
|
-
|
|
9657
|
+
Ch2: 11
|
|
9722
9658
|
}));
|
|
9723
9659
|
}, "id", $scope5_id, "e", 1, 1, 1, 0, 1);
|
|
9724
9660
|
_html("</ul></div>");
|
|
@@ -9741,14 +9677,14 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9741
9677
|
label: "Dark"
|
|
9742
9678
|
}
|
|
9743
9679
|
];
|
|
9744
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9680
|
+
_html(`</div></div></section><section${_attr_class("_ch")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_ci")}><h2${_attr("id", appearanceId)}${_attr_class("_cv")}>Appearance</h2></div><div${_attr_class(["_cm", "_df"])}><div${_attr_class("_dr")}><img${_attr_class("_ds")}${_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("_dt")}><span${_attr_class("_du")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dv")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dg")}><span${_attr_class("_dh")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9745
9681
|
setInstance({ name: v });
|
|
9746
|
-
}, "w4", $scope0_id))}${_attr_class(["_Z", "
|
|
9682
|
+
}, "w4", $scope0_id))}${_attr_class(["_Z", "_di"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dg")}><span${_attr_class("_dh")}>Theme</span><span${_attr_class("_dk")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9747
9683
|
_for_of(themeOpts, (opt) => {
|
|
9748
9684
|
const $scope50_id = _scope_id();
|
|
9749
9685
|
_html(`<button type=button${_attr_class([
|
|
9750
9686
|
"_bg",
|
|
9751
|
-
"
|
|
9687
|
+
"_dw",
|
|
9752
9688
|
{ ["_bf"]: themeMode === opt.id }
|
|
9753
9689
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9754
9690
|
if (opt.id === "system") {
|
|
@@ -9762,132 +9698,120 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9762
9698
|
icon_moon_default({ size: 14 });
|
|
9763
9699
|
}
|
|
9764
9700
|
_html(`${_escape(opt.label)}</button>${_el_resume($scope50_id, "a")}`);
|
|
9765
|
-
_script($scope50_id, "
|
|
9701
|
+
_script($scope50_id, "w78");
|
|
9766
9702
|
writeScope($scope50_id, {
|
|
9767
9703
|
f: opt?.id,
|
|
9768
9704
|
_: _scope_with_id($scope0_id)
|
|
9769
9705
|
});
|
|
9770
9706
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9771
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9707
|
+
_html(`</span><span${_attr_class(["_o", "_dl"])}>`);
|
|
9772
9708
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9773
9709
|
setThemeMode(v);
|
|
9774
9710
|
}, "w5", $scope0_id), () => {
|
|
9775
|
-
_html(`<select${_attr_class(["_p", "
|
|
9711
|
+
_html(`<select${_attr_class(["_p", "_dm"])} aria-label="Color theme">`);
|
|
9776
9712
|
forOf(themeOpts, (opt) => {
|
|
9777
9713
|
_scope_id();
|
|
9778
9714
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9779
9715
|
});
|
|
9780
9716
|
_html("</select>");
|
|
9781
9717
|
});
|
|
9782
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
}, "w6", $scope0_id), () => {
|
|
9787
|
-
_html(`<select${_attr_class("_p")} aria-label="Code theme">`);
|
|
9788
|
-
forOf(CODE_THEMES, (t) => {
|
|
9789
|
-
_scope_id();
|
|
9790
|
-
_html(`<option${_attr_option_value(t.id)}>${_escape(t.label)}</option>`);
|
|
9791
|
-
});
|
|
9792
|
-
_html("</select>");
|
|
9793
|
-
});
|
|
9794
|
-
_html(`${_el_resume($scope0_id, "bd")}</span></span></div><div${_attr_class("_dx")}><span${_attr_class("_dy")}>Accent</span><span${_attr_class("_dO")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9795
|
-
"_dP",
|
|
9796
|
-
"_dS",
|
|
9797
|
-
{ ["_dQ"]: !accent }
|
|
9718
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dg")}><span${_attr_class("_dh")}>Accent</span><span${_attr_class("_dx")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9719
|
+
"_dy",
|
|
9720
|
+
"_dB",
|
|
9721
|
+
{ ["_dz"]: !accent }
|
|
9798
9722
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9799
9723
|
_if(() => {
|
|
9800
9724
|
if (!accent) {
|
|
9801
|
-
const $
|
|
9725
|
+
const $scope129_id = _scope_id();
|
|
9802
9726
|
icon_check_default({
|
|
9803
9727
|
size: 12,
|
|
9804
|
-
class: "
|
|
9728
|
+
class: "_dA"
|
|
9805
9729
|
});
|
|
9806
|
-
$si__input_instance_accent && writeScope($
|
|
9730
|
+
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9807
9731
|
return 0;
|
|
9808
9732
|
}
|
|
9809
|
-
}, $scope0_id, "
|
|
9733
|
+
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9810
9734
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9811
9735
|
const $scope77_id = _scope_id();
|
|
9812
|
-
_html(`<button type=button${_attr_class(["
|
|
9736
|
+
_html(`<button type=button${_attr_class(["_dy", { ["_dz"]: 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)}>`);
|
|
9813
9737
|
_if(() => {
|
|
9814
9738
|
if (accent === p.value) {
|
|
9815
|
-
const $
|
|
9739
|
+
const $scope130_id = _scope_id();
|
|
9816
9740
|
icon_check_default({
|
|
9817
9741
|
size: 12,
|
|
9818
|
-
class: "
|
|
9742
|
+
class: "_dA"
|
|
9819
9743
|
});
|
|
9820
|
-
$si__input_instance_accent && writeScope($
|
|
9744
|
+
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9821
9745
|
return 0;
|
|
9822
9746
|
}
|
|
9823
9747
|
}, $scope77_id, "a", $sg__input_instance_accent, 1, $sg__input_instance_accent, "</button>", 1);
|
|
9824
|
-
_script($scope77_id, "
|
|
9748
|
+
_script($scope77_id, "w79");
|
|
9825
9749
|
writeScope($scope77_id, {
|
|
9826
9750
|
d: p?.value,
|
|
9827
9751
|
_: _scope_with_id($scope0_id)
|
|
9828
9752
|
});
|
|
9829
|
-
}, "value", $scope0_id, "
|
|
9753
|
+
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9830
9754
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9831
9755
|
_html(`<label${_attr_class([
|
|
9832
|
-
"
|
|
9833
|
-
"
|
|
9834
|
-
{ ["
|
|
9835
|
-
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "
|
|
9756
|
+
"_dy",
|
|
9757
|
+
"_dC",
|
|
9758
|
+
{ ["_dz"]: customOn }
|
|
9759
|
+
])}${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) {
|
|
9836
9760
|
setInstance({ accent: v });
|
|
9837
|
-
}, "
|
|
9761
|
+
}, "w6", $scope0_id))}${_attr_class("_dD")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9838
9762
|
_if(() => {
|
|
9839
9763
|
if (customOn) {
|
|
9840
|
-
const $
|
|
9764
|
+
const $scope131_id = _scope_id();
|
|
9841
9765
|
icon_check_default({
|
|
9842
9766
|
size: 12,
|
|
9843
|
-
class: "
|
|
9767
|
+
class: "_dA"
|
|
9844
9768
|
});
|
|
9845
|
-
$si__input_instance_accent && writeScope($
|
|
9769
|
+
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9846
9770
|
return 0;
|
|
9847
9771
|
} else {
|
|
9848
|
-
const $
|
|
9772
|
+
const $scope132_id = _scope_id();
|
|
9849
9773
|
icon_plus_default({ size: 12 });
|
|
9850
|
-
$si__input_instance_accent && writeScope($
|
|
9774
|
+
$si__input_instance_accent && writeScope($scope132_id, {});
|
|
9851
9775
|
return 1;
|
|
9852
9776
|
}
|
|
9853
|
-
}, $scope0_id, "
|
|
9854
|
-
_html(`</label>${_el_resume($scope0_id, "
|
|
9777
|
+
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9778
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_ch")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_ci")}><h2${_attr("id", backupId)}${_attr_class("_cv")}>Backup</h2></div><div${_attr_class(["_cm", "_cw"])}><div${_attr_class("_cx")}><div${_attr_class("_dE")}><div${_attr_class("_cn")}>`);
|
|
9855
9779
|
_if(() => {
|
|
9856
9780
|
if (backupBusy === "preflight") {
|
|
9857
9781
|
const $scope65_id = _scope_id();
|
|
9858
|
-
_html(`<span${_attr_class("
|
|
9782
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9859
9783
|
writeScope($scope65_id, {});
|
|
9860
9784
|
return 0;
|
|
9861
9785
|
} else {
|
|
9862
|
-
const $
|
|
9863
|
-
_html(`<span${_attr_class("
|
|
9864
|
-
writeScope($
|
|
9786
|
+
const $scope133_id = _scope_id();
|
|
9787
|
+
_html(`<span${_attr_class("_cq")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9788
|
+
writeScope($scope133_id, {});
|
|
9865
9789
|
return 1;
|
|
9866
9790
|
}
|
|
9867
|
-
}, $scope0_id, "
|
|
9791
|
+
}, $scope0_id, "bn", 1, 1, 1, "</div>", 1);
|
|
9868
9792
|
_if(() => {
|
|
9869
9793
|
if (!backupBusy && !preflight) {
|
|
9870
9794
|
const $scope75_id = _scope_id();
|
|
9871
9795
|
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($scope75_id, "a")}`);
|
|
9872
|
-
_script($scope75_id, "
|
|
9796
|
+
_script($scope75_id, "w80");
|
|
9873
9797
|
writeScope($scope75_id, {});
|
|
9874
9798
|
return 0;
|
|
9875
9799
|
}
|
|
9876
|
-
}, $scope0_id, "
|
|
9800
|
+
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
9877
9801
|
_html("</div>");
|
|
9878
9802
|
_if(() => {
|
|
9879
9803
|
if (preflight && !backupBusy) {
|
|
9880
9804
|
const $scope67_id = _scope_id();
|
|
9881
|
-
_html(`<div${_attr_class("
|
|
9805
|
+
_html(`<div${_attr_class("_dG")}><p${_attr_class("_dH")}>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("_dH")}>Not in the file: `);
|
|
9882
9806
|
_if(() => {
|
|
9883
9807
|
if (preflight.unpushed) {
|
|
9884
9808
|
const $scope68_id = _scope_id();
|
|
9885
9809
|
_html(` ${_text_resume($scope68_id, "a", preflight.unpushed, 2)} unpushed commit${_text_resume($scope68_id, "b", preflight.unpushed === 1 ? "" : "s", 2)}`);
|
|
9886
9810
|
_if(() => {
|
|
9887
9811
|
if (preflight.files) {
|
|
9888
|
-
const $
|
|
9812
|
+
const $scope134_id = _scope_id();
|
|
9889
9813
|
_html(",");
|
|
9890
|
-
writeScope($
|
|
9814
|
+
writeScope($scope134_id, {});
|
|
9891
9815
|
return 0;
|
|
9892
9816
|
}
|
|
9893
9817
|
}, $scope68_id, "c");
|
|
@@ -9895,151 +9819,151 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
9895
9819
|
return 0;
|
|
9896
9820
|
}
|
|
9897
9821
|
}, $scope67_id, "m");
|
|
9898
|
-
_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("
|
|
9822
|
+
_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("_dI")}>`);
|
|
9899
9823
|
_for_of(preflight.workspaces, (w) => {
|
|
9900
|
-
const $
|
|
9901
|
-
const $
|
|
9902
|
-
_html(`<li${_attr_class("
|
|
9824
|
+
const $scope135_id = _scope_id();
|
|
9825
|
+
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9826
|
+
_html(`<li${_attr_class("_dJ")}><span${_attr_class("_co")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dI")}>`);
|
|
9903
9827
|
_for_of(w.repos, (r) => {
|
|
9904
|
-
const $
|
|
9905
|
-
const $
|
|
9906
|
-
_html(`<li${_attr_class("
|
|
9828
|
+
const $scope136_id = _scope_id();
|
|
9829
|
+
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9830
|
+
_html(`<li${_attr_class("_dK")}><span${_attr_class("_dL")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9907
9831
|
_for_of(r.unpushed, (b) => {
|
|
9908
|
-
const $
|
|
9909
|
-
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($
|
|
9832
|
+
const $scope137_id = _scope_id();
|
|
9833
|
+
_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 `);
|
|
9910
9834
|
_if(() => {
|
|
9911
9835
|
if (b.branch !== w.name) {
|
|
9912
|
-
const $
|
|
9913
|
-
_html(`<span${_attr_class("_y")}>${_text_resume($
|
|
9914
|
-
writeScope($
|
|
9836
|
+
const $scope140_id = _scope_id();
|
|
9837
|
+
_html(`<span${_attr_class("_y")}>${_text_resume($scope140_id, "b", b.branch)}</span>`);
|
|
9838
|
+
writeScope($scope140_id, {});
|
|
9915
9839
|
return 0;
|
|
9916
9840
|
}
|
|
9917
|
-
}, $
|
|
9918
|
-
_html(`</span>${_el_resume($
|
|
9919
|
-
_subscribe($
|
|
9920
|
-
}, "branch", $
|
|
9841
|
+
}, $scope137_id, "c", 1, 1, 1, 0, 1);
|
|
9842
|
+
_html(`</span>${_el_resume($scope137_id, "a")}`);
|
|
9843
|
+
_subscribe($for_content18__w_name__closures, writeScope($scope137_id, { f: b?.branch }));
|
|
9844
|
+
}, "branch", $scope136_id, "e", 1, 1, 1, 0, 1);
|
|
9921
9845
|
_html("</span>");
|
|
9922
9846
|
_if(() => {
|
|
9923
9847
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9924
|
-
const $
|
|
9925
|
-
_html(`<ul${_attr_class("
|
|
9848
|
+
const $scope138_id = _scope_id();
|
|
9849
|
+
_html(`<ul${_attr_class("_dM")}>`);
|
|
9926
9850
|
_for_of(r.modified, (f) => {
|
|
9927
|
-
const $
|
|
9928
|
-
_html(`<li${_attr_class("
|
|
9851
|
+
const $scope141_id = _scope_id();
|
|
9852
|
+
_html(`<li${_attr_class("_dN")}><span${_attr_class([
|
|
9929
9853
|
"_N",
|
|
9930
9854
|
"_P",
|
|
9931
9855
|
tone.warn
|
|
9932
|
-
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($
|
|
9933
|
-
writeScope($
|
|
9934
|
-
}, (f) => f, $
|
|
9856
|
+
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope141_id, "d", f)}</span></li>`);
|
|
9857
|
+
writeScope($scope141_id, {});
|
|
9858
|
+
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9935
9859
|
_for_of(r.untracked, (f) => {
|
|
9860
|
+
const $scope142_id = _scope_id();
|
|
9861
|
+
_html(`<li${_attr_class("_dN")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9862
|
+
writeScope($scope142_id, {});
|
|
9863
|
+
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9864
|
+
_for_of(r.ignored, (f) => {
|
|
9936
9865
|
const $scope143_id = _scope_id();
|
|
9937
|
-
_html(`<li${_attr_class("
|
|
9866
|
+
_html(`<li${_attr_class("_dN")}><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>`);
|
|
9938
9867
|
writeScope($scope143_id, {});
|
|
9939
|
-
}, (f) => f, $
|
|
9940
|
-
_for_of(r.ignored, (f) => {
|
|
9941
|
-
const $scope144_id = _scope_id();
|
|
9942
|
-
_html(`<li${_attr_class("_d4")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope144_id, "d", f)}</span></li>`);
|
|
9943
|
-
writeScope($scope144_id, {});
|
|
9944
|
-
}, (f) => f, $scope139_id, "d", 1, 1, 1, 0, 1);
|
|
9868
|
+
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9945
9869
|
_if(() => {
|
|
9946
9870
|
if (r.more) {
|
|
9947
|
-
const $
|
|
9948
|
-
_html(`<li${_attr_class(["
|
|
9949
|
-
_subscribe($
|
|
9871
|
+
const $scope139_id = _scope_id();
|
|
9872
|
+
_html(`<li${_attr_class(["_dN", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9873
|
+
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9950
9874
|
return 0;
|
|
9951
9875
|
}
|
|
9952
|
-
}, $
|
|
9876
|
+
}, $scope138_id, "e", 1, 1, 1, 0, 1);
|
|
9953
9877
|
_html("</ul>");
|
|
9954
|
-
writeScope($
|
|
9878
|
+
writeScope($scope138_id, {});
|
|
9955
9879
|
return 0;
|
|
9956
9880
|
}
|
|
9957
|
-
}, $
|
|
9881
|
+
}, $scope136_id, "f", 1, 1, 1, 0, 1);
|
|
9958
9882
|
_html("</li>");
|
|
9959
|
-
writeScope($
|
|
9883
|
+
writeScope($scope136_id, {
|
|
9960
9884
|
k: r?.modified,
|
|
9961
9885
|
m: r?.untracked,
|
|
9962
9886
|
o: r?.ignored,
|
|
9963
9887
|
r: r?.more,
|
|
9964
|
-
v: $
|
|
9888
|
+
v: $for_content19__r_more__closures
|
|
9965
9889
|
});
|
|
9966
|
-
}, "worktree", $
|
|
9890
|
+
}, "worktree", $scope135_id, "d", 1, 1, 1, "</ul>", 1);
|
|
9967
9891
|
_html("</li>");
|
|
9968
|
-
writeScope($
|
|
9892
|
+
writeScope($scope135_id, {
|
|
9969
9893
|
g: w?.name,
|
|
9970
|
-
i: $
|
|
9894
|
+
i: $for_content18__w_name__closures
|
|
9971
9895
|
});
|
|
9972
9896
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9973
|
-
_html(`<div${_attr_class("
|
|
9974
|
-
_script($scope67_id, "
|
|
9897
|
+
_html(`<div${_attr_class("_dO")}><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>`);
|
|
9898
|
+
_script($scope67_id, "w81");
|
|
9975
9899
|
writeScope($scope67_id, {});
|
|
9976
9900
|
return 0;
|
|
9977
9901
|
}
|
|
9978
|
-
}, $scope0_id, "
|
|
9979
|
-
_html(`</div><div${_attr_class("_cx")}><div${_attr_class("
|
|
9902
|
+
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9903
|
+
_html(`</div><div${_attr_class("_cx")}><div${_attr_class("_dE")}><div${_attr_class("_cn")}>`);
|
|
9980
9904
|
_if(() => {
|
|
9981
9905
|
if (backupBusy === "restore") {
|
|
9982
9906
|
const $scope66_id = _scope_id();
|
|
9983
|
-
_html(`<span${_attr_class("
|
|
9907
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9984
9908
|
writeScope($scope66_id, {});
|
|
9985
9909
|
return 0;
|
|
9986
9910
|
} else if (restoreDone) {
|
|
9987
9911
|
const $scope74_id = _scope_id();
|
|
9988
|
-
_html(`<span${_attr_class("
|
|
9912
|
+
_html(`<span${_attr_class("_cq")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9989
9913
|
writeScope($scope74_id, {});
|
|
9990
9914
|
return 1;
|
|
9991
9915
|
} else {
|
|
9992
|
-
const $
|
|
9993
|
-
_html(`<span${_attr_class("
|
|
9994
|
-
writeScope($
|
|
9916
|
+
const $scope144_id = _scope_id();
|
|
9917
|
+
_html(`<span${_attr_class("_cq")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9918
|
+
writeScope($scope144_id, {});
|
|
9995
9919
|
return 2;
|
|
9996
9920
|
}
|
|
9997
|
-
}, $scope0_id, "
|
|
9921
|
+
}, $scope0_id, "bs", 1, 1, 1, "</div>", 1);
|
|
9998
9922
|
_if(() => {
|
|
9999
9923
|
if (!restorePreview && backupBusy !== "restore") {
|
|
10000
9924
|
const $scope76_id = _scope_id();
|
|
10001
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
10002
|
-
_script($scope76_id, "
|
|
9925
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dF")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9926
|
+
_script($scope76_id, "w82");
|
|
10003
9927
|
writeScope($scope76_id, {});
|
|
10004
9928
|
return 0;
|
|
10005
9929
|
}
|
|
10006
|
-
}, $scope0_id, "
|
|
9930
|
+
}, $scope0_id, "bt", 1, 1, 1, 0, 1);
|
|
10007
9931
|
_html("</div>");
|
|
10008
9932
|
_if(() => {
|
|
10009
9933
|
if (restorePreview && backupBusy !== "restore") {
|
|
10010
9934
|
const $scope69_id = _scope_id();
|
|
10011
9935
|
const { preview } = restorePreview;
|
|
10012
|
-
_html(`<div${_attr_class("
|
|
9936
|
+
_html(`<div${_attr_class("_dG")}><p${_attr_class("_dH")}>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>`);
|
|
10013
9937
|
_if(() => {
|
|
10014
9938
|
if (preview.workspaces.length) {
|
|
10015
9939
|
const $scope70_id = _scope_id();
|
|
10016
9940
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
10017
9941
|
_for_of(preview.workspaces, (w) => {
|
|
10018
9942
|
const $scope71_id = _scope_id();
|
|
10019
|
-
_html(`<li><label${_attr_class(["
|
|
9943
|
+
_html(`<li><label${_attr_class(["_dQ", { ["_dS"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dR")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_cn")}><span${_attr_class("_cp")}><span${_attr_class("_co")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
10020
9944
|
_if(() => {
|
|
10021
9945
|
if (w.status === "archived") {
|
|
10022
|
-
const $
|
|
9946
|
+
const $scope148_id = _scope_id();
|
|
10023
9947
|
_html(`<span${_attr_class(["_N", "_P"])}>archived</span>`);
|
|
10024
|
-
writeScope($
|
|
9948
|
+
writeScope($scope148_id, {});
|
|
10025
9949
|
return 0;
|
|
10026
9950
|
}
|
|
10027
9951
|
}, $scope71_id, "g", 1, 1, 1, 0, 1);
|
|
10028
9952
|
_if(() => {
|
|
10029
9953
|
if (w.exists) {
|
|
10030
|
-
const $
|
|
9954
|
+
const $scope149_id = _scope_id();
|
|
10031
9955
|
_html(`<span${_attr_class("_N")}>already here</span>`);
|
|
10032
|
-
writeScope($
|
|
9956
|
+
writeScope($scope149_id, {});
|
|
10033
9957
|
return 0;
|
|
10034
9958
|
} else if (w.unknownHost) {
|
|
10035
|
-
const $
|
|
10036
|
-
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($
|
|
10037
|
-
writeScope($
|
|
9959
|
+
const $scope147_id = _scope_id();
|
|
9960
|
+
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($scope147_id, "b", w.unknownHost, 2)}</span>`);
|
|
9961
|
+
writeScope($scope147_id, {});
|
|
10038
9962
|
return 1;
|
|
10039
9963
|
}
|
|
10040
9964
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
10041
|
-
_html(`</span><span${_attr_class("
|
|
10042
|
-
_script($scope71_id, "
|
|
9965
|
+
_html(`</span><span${_attr_class("_cq")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9966
|
+
_script($scope71_id, "w83");
|
|
10043
9967
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
10044
9968
|
n: w?.unknownHost,
|
|
10045
9969
|
p: w?.id
|
|
@@ -10048,9 +9972,9 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
10048
9972
|
_subscribe($preview_workspaces__closures, writeScope($scope70_id, {}));
|
|
10049
9973
|
return 0;
|
|
10050
9974
|
} else {
|
|
10051
|
-
const $
|
|
10052
|
-
_html(`<p${_attr_class("
|
|
10053
|
-
writeScope($
|
|
9975
|
+
const $scope146_id = _scope_id();
|
|
9976
|
+
_html(`<p${_attr_class("_cs")}>No workspaces in this file.</p>`);
|
|
9977
|
+
writeScope($scope146_id, {});
|
|
10054
9978
|
return 1;
|
|
10055
9979
|
}
|
|
10056
9980
|
}, $scope69_id, "f", 1, 1, 1, 0, 1);
|
|
@@ -10089,38 +10013,38 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
10089
10013
|
_if(() => {
|
|
10090
10014
|
if (p.total) {
|
|
10091
10015
|
const $scope73_id = _scope_id();
|
|
10092
|
-
_html(`<li><label${_attr_class(["
|
|
10016
|
+
_html(`<li><label${_attr_class(["_dQ", { ["_dS"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dR")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_cn")}><span${_attr_class("_co")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_cq")}>`);
|
|
10093
10017
|
_if(() => {
|
|
10094
10018
|
if (p.key === "settings") {
|
|
10095
|
-
const $
|
|
10096
|
-
_html(`${_text_resume($
|
|
10019
|
+
const $scope145_id = _scope_id();
|
|
10020
|
+
_html(`${_text_resume($scope145_id, "a", preview.settings)} value${_text_resume($scope145_id, "b", preview.settings === 1 ? "" : "s", 2)}`);
|
|
10097
10021
|
_if(() => {
|
|
10098
10022
|
if (p.missing.length) {
|
|
10099
|
-
const $
|
|
10100
|
-
_html(`, add host${_text_resume($
|
|
10101
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($
|
|
10023
|
+
const $scope150_id = _scope_id();
|
|
10024
|
+
_html(`, add host${_text_resume($scope150_id, "a", p.missing.length === 1 ? "" : "s", 2)} ${_text_resume($scope150_id, "b", p.missing.join(", "), 2)}`);
|
|
10025
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope150_id, { Ck: 1 })));
|
|
10102
10026
|
return 0;
|
|
10103
10027
|
}
|
|
10104
|
-
}, $
|
|
10105
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($
|
|
10028
|
+
}, $scope145_id, "c");
|
|
10029
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($scope145_id, {})));
|
|
10106
10030
|
return 0;
|
|
10107
10031
|
} else if (p.missing.length) {
|
|
10108
|
-
const $
|
|
10109
|
-
_html(`${_text_resume($
|
|
10110
|
-
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($
|
|
10032
|
+
const $scope151_id = _scope_id();
|
|
10033
|
+
_html(`${_text_resume($scope151_id, "a", p.missing.length)} to install: ${_text_resume($scope151_id, "b", p.missing.join(", "), 2)}`);
|
|
10034
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope151_id, {
|
|
10111
10035
|
Cj: 1,
|
|
10112
10036
|
Ck: 2
|
|
10113
10037
|
})));
|
|
10114
10038
|
return 1;
|
|
10115
10039
|
} else {
|
|
10116
|
-
const $
|
|
10117
|
-
_html(`all ${_text_resume($
|
|
10118
|
-
_subscribe($for_content10__p_total__closures, writeScope($
|
|
10040
|
+
const $scope152_id = _scope_id();
|
|
10041
|
+
_html(`all ${_text_resume($scope152_id, "a", p.total, 2)} already installed`);
|
|
10042
|
+
_subscribe($for_content10__p_total__closures, writeScope($scope152_id, {}));
|
|
10119
10043
|
return 2;
|
|
10120
10044
|
}
|
|
10121
10045
|
}, $scope73_id, "f", 1, 1, 1, "</span>");
|
|
10122
10046
|
_html(`</span></label>${_el_resume($scope73_id, "a")}</li>`);
|
|
10123
|
-
_script($scope73_id, "
|
|
10047
|
+
_script($scope73_id, "w84");
|
|
10124
10048
|
_subscribe($restoreParts__closures, writeScope($scope73_id, {}));
|
|
10125
10049
|
return 0;
|
|
10126
10050
|
}
|
|
@@ -10136,12 +10060,12 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
10136
10060
|
i: $for_content10__p_total__closures
|
|
10137
10061
|
});
|
|
10138
10062
|
}, "key", $scope69_id, "h");
|
|
10139
|
-
_html(`</ul><div${_attr_class("
|
|
10140
|
-
_script($scope69_id, "
|
|
10063
|
+
_html(`</ul><div${_attr_class("_dO")}><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>`);
|
|
10064
|
+
_script($scope69_id, "w85");
|
|
10141
10065
|
writeScope($scope69_id, {});
|
|
10142
10066
|
return 0;
|
|
10143
10067
|
}
|
|
10144
|
-
}, $scope0_id, "
|
|
10068
|
+
}, $scope0_id, "bu", 1, 1, 1, 0, 1);
|
|
10145
10069
|
_html("</div></div></section></div></div></div>");
|
|
10146
10070
|
_if(() => {
|
|
10147
10071
|
if (versionPick) {
|
|
@@ -10156,169 +10080,168 @@ var settings_page_default = _template("w", (input$3) => {
|
|
|
10156
10080
|
open: versionPick != null,
|
|
10157
10081
|
openChange: _resume(function(o) {
|
|
10158
10082
|
if (!o) versionPick = null;
|
|
10159
|
-
}, "
|
|
10083
|
+
}, "w41", $scope36_id),
|
|
10160
10084
|
onSubmit: _resume(function(v) {
|
|
10161
10085
|
const pick = versionPick;
|
|
10162
10086
|
versionPick = null;
|
|
10163
10087
|
run(pick.id, "install", v);
|
|
10164
|
-
}, "
|
|
10088
|
+
}, "w42", $scope36_id)
|
|
10165
10089
|
});
|
|
10166
10090
|
writeScope($scope36_id, { a: _existing_scope($childScope13) });
|
|
10167
10091
|
return 0;
|
|
10168
10092
|
}
|
|
10169
|
-
}, $scope0_id, "
|
|
10093
|
+
}, $scope0_id, "bv", 1, 1, 1, 0, 1);
|
|
10094
|
+
_script($scope0_id, "w86");
|
|
10170
10095
|
_script($scope0_id, "w87");
|
|
10171
|
-
_script($scope0_id, "w88");
|
|
10172
10096
|
writeScope($scope0_id, {
|
|
10173
|
-
|
|
10174
|
-
|
|
10175
|
-
|
|
10176
|
-
|
|
10177
|
-
|
|
10178
|
-
|
|
10179
|
-
|
|
10180
|
-
|
|
10181
|
-
|
|
10182
|
-
|
|
10183
|
-
|
|
10184
|
-
|
|
10185
|
-
|
|
10186
|
-
|
|
10187
|
-
|
|
10188
|
-
|
|
10189
|
-
|
|
10190
|
-
|
|
10191
|
-
|
|
10192
|
-
|
|
10193
|
-
|
|
10194
|
-
|
|
10195
|
-
|
|
10196
|
-
|
|
10197
|
-
|
|
10198
|
-
|
|
10199
|
-
|
|
10200
|
-
|
|
10201
|
-
|
|
10202
|
-
|
|
10203
|
-
|
|
10204
|
-
|
|
10205
|
-
|
|
10206
|
-
|
|
10207
|
-
|
|
10208
|
-
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10213
|
-
|
|
10214
|
-
|
|
10215
|
-
|
|
10216
|
-
|
|
10217
|
-
|
|
10218
|
-
|
|
10219
|
-
|
|
10220
|
-
|
|
10221
|
-
|
|
10222
|
-
|
|
10223
|
-
|
|
10224
|
-
|
|
10225
|
-
|
|
10226
|
-
|
|
10227
|
-
|
|
10228
|
-
|
|
10229
|
-
|
|
10230
|
-
|
|
10231
|
-
|
|
10232
|
-
|
|
10233
|
-
|
|
10234
|
-
|
|
10235
|
-
|
|
10236
|
-
|
|
10237
|
-
|
|
10238
|
-
|
|
10239
|
-
|
|
10240
|
-
|
|
10241
|
-
|
|
10242
|
-
|
|
10243
|
-
|
|
10244
|
-
|
|
10245
|
-
|
|
10246
|
-
|
|
10247
|
-
|
|
10248
|
-
|
|
10249
|
-
|
|
10250
|
-
|
|
10251
|
-
|
|
10252
|
-
|
|
10253
|
-
|
|
10254
|
-
|
|
10255
|
-
|
|
10256
|
-
|
|
10257
|
-
|
|
10258
|
-
|
|
10259
|
-
|
|
10260
|
-
|
|
10261
|
-
|
|
10262
|
-
|
|
10263
|
-
|
|
10264
|
-
|
|
10265
|
-
|
|
10266
|
-
|
|
10267
|
-
|
|
10268
|
-
|
|
10269
|
-
|
|
10270
|
-
|
|
10271
|
-
|
|
10272
|
-
|
|
10273
|
-
|
|
10274
|
-
|
|
10275
|
-
|
|
10276
|
-
|
|
10277
|
-
|
|
10278
|
-
|
|
10279
|
-
|
|
10280
|
-
|
|
10281
|
-
|
|
10282
|
-
|
|
10283
|
-
gl:
|
|
10284
|
-
|
|
10285
|
-
|
|
10286
|
-
|
|
10287
|
-
|
|
10288
|
-
|
|
10289
|
-
|
|
10290
|
-
|
|
10291
|
-
|
|
10292
|
-
|
|
10293
|
-
|
|
10294
|
-
|
|
10295
|
-
h7: $refreshing__closures,
|
|
10097
|
+
bz: input$3.setupChange,
|
|
10098
|
+
c0: input$3.agentsChange,
|
|
10099
|
+
c1: input$3.preferred,
|
|
10100
|
+
c2: input$3.preferredChange,
|
|
10101
|
+
c4: input$3.instance,
|
|
10102
|
+
c5: input$3.instanceChange,
|
|
10103
|
+
c7: input$3.onExit,
|
|
10104
|
+
ca: $si__input_instance__OR__input_instanceChange && input$3.instance?.name,
|
|
10105
|
+
cb: setup,
|
|
10106
|
+
cc: setup?.agents,
|
|
10107
|
+
ce: setup?.missing,
|
|
10108
|
+
cg: ignoredSso,
|
|
10109
|
+
ch: readIgnoredSso,
|
|
10110
|
+
ci: usage,
|
|
10111
|
+
cj: usage?.agents,
|
|
10112
|
+
ck: usage?.error,
|
|
10113
|
+
cl: error,
|
|
10114
|
+
cn: active,
|
|
10115
|
+
co: active?.size,
|
|
10116
|
+
cp: authCodes,
|
|
10117
|
+
cq: confirmingRemove,
|
|
10118
|
+
cr: versionPick,
|
|
10119
|
+
cs: versionPick?.label,
|
|
10120
|
+
ct: versionPick?.newest,
|
|
10121
|
+
cu: versionPick?.current,
|
|
10122
|
+
cv: hostInput,
|
|
10123
|
+
cw: addingHost,
|
|
10124
|
+
cy: hostBusy,
|
|
10125
|
+
cz: query,
|
|
10126
|
+
d0: hits,
|
|
10127
|
+
d1: hits?.length,
|
|
10128
|
+
d2: self,
|
|
10129
|
+
d3: self?.install,
|
|
10130
|
+
d4: self?.latest,
|
|
10131
|
+
d5: self?.version,
|
|
10132
|
+
d6: selfUpdating,
|
|
10133
|
+
d9: searching,
|
|
10134
|
+
db: searchTimer.id,
|
|
10135
|
+
dd: skills,
|
|
10136
|
+
de: skills?.global,
|
|
10137
|
+
df: skills?.global?.length,
|
|
10138
|
+
dg: skills?.available,
|
|
10139
|
+
di: skills?.agents?.length,
|
|
10140
|
+
dj: skillQuery,
|
|
10141
|
+
dk: skillHits,
|
|
10142
|
+
dl: skillHits?.length,
|
|
10143
|
+
dm: skillSearching,
|
|
10144
|
+
dn: confirmingSkill,
|
|
10145
|
+
dp: skillTimer.id,
|
|
10146
|
+
dr: machineOpen,
|
|
10147
|
+
ds: skillsOpen,
|
|
10148
|
+
dt: addingSkill,
|
|
10149
|
+
dv: addingTool,
|
|
10150
|
+
dx: setThemeMode,
|
|
10151
|
+
e1: applySetup,
|
|
10152
|
+
e3: syncAgents,
|
|
10153
|
+
e4: retryWhenBack,
|
|
10154
|
+
e5: loadSetup,
|
|
10155
|
+
e6: loadSelf,
|
|
10156
|
+
e8: updateSelf,
|
|
10157
|
+
e9: loadUsage,
|
|
10158
|
+
eb: refresh,
|
|
10159
|
+
ec: refreshUsage,
|
|
10160
|
+
ed: setActive,
|
|
10161
|
+
ef: run,
|
|
10162
|
+
eh: skillSeq.applied,
|
|
10163
|
+
ei: skillSeq.issued,
|
|
10164
|
+
ej: applySkills,
|
|
10165
|
+
em: loadSkills,
|
|
10166
|
+
en: runSkill,
|
|
10167
|
+
eo: backupBusy,
|
|
10168
|
+
ep: backupLine,
|
|
10169
|
+
eq: preflight,
|
|
10170
|
+
et: preflight?.contents?.workspaces,
|
|
10171
|
+
eu: preflight?.contents?.archived,
|
|
10172
|
+
ev: preflight?.contents?.tools,
|
|
10173
|
+
ew: preflight?.contents?.skills,
|
|
10174
|
+
ex: preflight?.contents?.agents,
|
|
10175
|
+
ey: preflight?.unpushed,
|
|
10176
|
+
ez: preflight?.files,
|
|
10177
|
+
f0: preflight?.workspaces,
|
|
10178
|
+
f1: restorePreview,
|
|
10179
|
+
f3: restoreWs,
|
|
10180
|
+
f4: restoreWs?.size,
|
|
10181
|
+
f5: restoreParts,
|
|
10182
|
+
f7: restoreDone,
|
|
10183
|
+
f9: downloadManifest,
|
|
10184
|
+
fb: startExport,
|
|
10185
|
+
fc: pickRestoreFile,
|
|
10186
|
+
fd: toggleRestoreWs,
|
|
10187
|
+
fe: runRestore,
|
|
10188
|
+
ff: searchSkills,
|
|
10189
|
+
fg: changeHost,
|
|
10190
|
+
fh: runEach,
|
|
10191
|
+
fi: setPreferred,
|
|
10192
|
+
fl: saveTimer.id,
|
|
10193
|
+
fn: setInstance,
|
|
10194
|
+
fp: setEnabled,
|
|
10195
|
+
fq: search,
|
|
10196
|
+
fr: outdated,
|
|
10197
|
+
fs: aliasPin,
|
|
10198
|
+
ft: tools,
|
|
10199
|
+
fv: missingInstallable,
|
|
10200
|
+
fy: outdatedIds,
|
|
10201
|
+
g0: families,
|
|
10202
|
+
g2: families.length,
|
|
10203
|
+
g4: instanceIds,
|
|
10204
|
+
g6: accountsFor,
|
|
10205
|
+
g7: strayAccountsFor,
|
|
10206
|
+
gf: $si__input_instance__OR__input_instanceChange && accent,
|
|
10207
|
+
gl: restorePreview?.preview?.from?.host,
|
|
10208
|
+
gm: restorePreview?.preview?.from?.exportedAt,
|
|
10209
|
+
gn: restorePreview?.preview?.from?.version,
|
|
10210
|
+
go: restorePreview?.preview?.workspaces,
|
|
10211
|
+
gp: restorePreview?.preview?.workspaces?.length,
|
|
10212
|
+
gq: restorePreview?.preview?.tools,
|
|
10213
|
+
gr: restorePreview?.preview?.skills,
|
|
10214
|
+
gs: restorePreview?.preview?.agents,
|
|
10215
|
+
gt: restorePreview?.preview?.hosts,
|
|
10216
|
+
gu: restorePreview?.preview?.settings,
|
|
10217
|
+
gx: $setup_missing__closures,
|
|
10218
|
+
h1: $refreshing__closures,
|
|
10296
10219
|
d: _existing_scope($childScope2),
|
|
10297
|
-
|
|
10298
|
-
|
|
10299
|
-
|
|
10300
|
-
|
|
10301
|
-
|
|
10302
|
-
|
|
10303
|
-
|
|
10304
|
-
|
|
10305
|
-
|
|
10306
|
-
|
|
10220
|
+
h0: $error__closures,
|
|
10221
|
+
hi: $self_latest__closures,
|
|
10222
|
+
hj: $self_version__closures,
|
|
10223
|
+
h2: $active__closures,
|
|
10224
|
+
gv: $si__input_preferred && $input_preferred__closures,
|
|
10225
|
+
ii: $accountsFor2__closures,
|
|
10226
|
+
h4: $authCodes__closures,
|
|
10227
|
+
h5: $confirmingRemove__closures,
|
|
10228
|
+
hy: $si__input_setupChange && $refresh2__closures,
|
|
10229
|
+
hz: $run2__closures,
|
|
10307
10230
|
a6: _existing_scope($childScope10),
|
|
10308
|
-
|
|
10309
|
-
|
|
10310
|
-
|
|
10311
|
-
|
|
10231
|
+
hr: $skillQuery__closures,
|
|
10232
|
+
hv: $confirmingSkill__closures,
|
|
10233
|
+
hn: $skills__closures,
|
|
10234
|
+
hq: $skills_available__closures,
|
|
10312
10235
|
af: _existing_scope($childScope12),
|
|
10313
|
-
|
|
10314
|
-
|
|
10315
|
-
|
|
10316
|
-
|
|
10317
|
-
|
|
10318
|
-
|
|
10319
|
-
|
|
10320
|
-
|
|
10321
|
-
|
|
10236
|
+
hd: $query__closures,
|
|
10237
|
+
hh: $self_install__closures,
|
|
10238
|
+
hk: $selfUpdating__closures,
|
|
10239
|
+
i6: $preflight_unpushed__closures,
|
|
10240
|
+
i7: $preflight_files__closures,
|
|
10241
|
+
i9: $restoreWs__closures,
|
|
10242
|
+
io: $preview_workspaces__closures,
|
|
10243
|
+
iu: $preview_settings__closures,
|
|
10244
|
+
ib: $restoreParts__closures
|
|
10322
10245
|
});
|
|
10323
10246
|
_resume_branch($scope0_id);
|
|
10324
10247
|
});
|
|
@@ -10366,9 +10289,9 @@ function vapidKey(base64) {
|
|
|
10366
10289
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10367
10290
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10368
10291
|
}
|
|
10369
|
-
var iconBtn = "
|
|
10370
|
-
var settingsDot = "
|
|
10371
|
-
var navToggle = "
|
|
10292
|
+
var iconBtn = "_bP _l";
|
|
10293
|
+
var settingsDot = "_bQ _bc";
|
|
10294
|
+
var navToggle = "_bU _l";
|
|
10372
10295
|
_template("R", (input) => {
|
|
10373
10296
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10374
10297
|
const $scope0_id = _scope_id();
|
|
@@ -10433,12 +10356,12 @@ var ARM_MS = 3500;
|
|
|
10433
10356
|
function disarmLater(fn) {
|
|
10434
10357
|
return setTimeout(fn, ARM_MS);
|
|
10435
10358
|
}
|
|
10436
|
-
var prChip = "
|
|
10437
|
-
var portChip = "
|
|
10359
|
+
var prChip = "_h9 _u _h8";
|
|
10360
|
+
var portChip = "_h_ _u _h8";
|
|
10438
10361
|
var prState = {
|
|
10439
|
-
open: "
|
|
10440
|
-
merged: "
|
|
10441
|
-
closed: "
|
|
10362
|
+
open: "_id",
|
|
10363
|
+
merged: "_ie",
|
|
10364
|
+
closed: "_if"
|
|
10442
10365
|
};
|
|
10443
10366
|
//#endregion
|
|
10444
10367
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10529,7 +10452,7 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10529
10452
|
const name = repo.full_name.split("/").at(-1);
|
|
10530
10453
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel$1(repo.full_name) : name;
|
|
10531
10454
|
}, "x4", $scope1_id);
|
|
10532
|
-
_html(`<div${_attr_class("
|
|
10455
|
+
_html(`<div${_attr_class("_h7")}>`);
|
|
10533
10456
|
_for_of(repos, (repo) => {
|
|
10534
10457
|
const $scope2_id = _scope_id();
|
|
10535
10458
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10545,11 +10468,11 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10545
10468
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10546
10469
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10547
10470
|
}
|
|
10548
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10471
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_ia", { ["_ii"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10549
10472
|
_if(() => {
|
|
10550
10473
|
if (open) {
|
|
10551
10474
|
const $scope4_id = _scope_id();
|
|
10552
|
-
_html(`<a${_attr_class(["
|
|
10475
|
+
_html(`<a${_attr_class(["_ia", "_ib"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10553
10476
|
icon_diff_default({ size: 12 });
|
|
10554
10477
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10555
10478
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10557,9 +10480,9 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10557
10480
|
} else {
|
|
10558
10481
|
const $scope6_id = _scope_id();
|
|
10559
10482
|
_html(`<button type=button${_attr_class([
|
|
10560
|
-
"
|
|
10561
|
-
"
|
|
10562
|
-
"
|
|
10483
|
+
"_ia",
|
|
10484
|
+
"_ib",
|
|
10485
|
+
"_ic"
|
|
10563
10486
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10564
10487
|
icon_xmark_default({ size: 12 });
|
|
10565
10488
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10587,21 +10510,21 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10587
10510
|
_if(() => {
|
|
10588
10511
|
if (dead.has(p.port)) {
|
|
10589
10512
|
const $scope7_id = _scope_id();
|
|
10590
|
-
_html(`<span${_attr_class(["
|
|
10513
|
+
_html(`<span${_attr_class(["_ia", "_ig"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10591
10514
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10592
10515
|
return 0;
|
|
10593
10516
|
} else {
|
|
10594
10517
|
const $scope8_id = _scope_id();
|
|
10595
|
-
_html(`<button type=button${_attr_class(["
|
|
10518
|
+
_html(`<button type=button${_attr_class(["_ia", "_ih"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10596
10519
|
_script($scope8_id, "x6");
|
|
10597
10520
|
writeScope($scope8_id, {});
|
|
10598
10521
|
return 1;
|
|
10599
10522
|
}
|
|
10600
10523
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10601
10524
|
_html(`<button type=button${_attr_class([
|
|
10602
|
-
"
|
|
10603
|
-
"
|
|
10604
|
-
"
|
|
10525
|
+
"_ia",
|
|
10526
|
+
"_ib",
|
|
10527
|
+
"_ic",
|
|
10605
10528
|
{ ["_s"]: armedPid === p.pid }
|
|
10606
10529
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10607
10530
|
icon_xmark_default({ size: 12 });
|
|
@@ -10644,16 +10567,16 @@ var side_nav_chips_default = _template("x", (input) => {
|
|
|
10644
10567
|
});
|
|
10645
10568
|
_resume_branch($scope0_id);
|
|
10646
10569
|
});
|
|
10647
|
-
var railBtn = "
|
|
10648
|
-
var wsBtn = "
|
|
10649
|
-
var rowIcon = "
|
|
10650
|
-
var close = "
|
|
10651
|
-
var sessRename$1 = "
|
|
10652
|
-
var sessBtn$1 = "
|
|
10570
|
+
var railBtn = "_fy _l";
|
|
10571
|
+
var wsBtn = "_fD _I";
|
|
10572
|
+
var rowIcon = "_fG _4 _l";
|
|
10573
|
+
var close = "_fH _7 _l _8";
|
|
10574
|
+
var sessRename$1 = "_fS _J";
|
|
10575
|
+
var sessBtn$1 = "_fU _I";
|
|
10653
10576
|
//#endregion
|
|
10654
10577
|
//#region src/styles/session-pop.css.ts
|
|
10655
|
-
var sessionPop = "
|
|
10656
|
-
var sessionPopBtn = "
|
|
10578
|
+
var sessionPop = "_fu __";
|
|
10579
|
+
var sessionPopBtn = "_fv _I";
|
|
10657
10580
|
//#endregion
|
|
10658
10581
|
//#region src/tags/icons/icon-manage.marko
|
|
10659
10582
|
var icon_manage_default = _template("fb", (input) => {
|
|
@@ -10682,22 +10605,22 @@ var usage_pcts_default = _template("G", (input) => {
|
|
|
10682
10605
|
if (windows.length) {
|
|
10683
10606
|
const $scope1_id = _scope_id();
|
|
10684
10607
|
_html(`<span${_attr_class([
|
|
10685
|
-
"
|
|
10608
|
+
"_hg",
|
|
10686
10609
|
input.class,
|
|
10687
|
-
{ ["
|
|
10610
|
+
{ ["_hh"]: agent.stale_seconds != null }
|
|
10688
10611
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10689
10612
|
_for_of(windows, (win$1, i) => {
|
|
10690
10613
|
const $scope2_id = _scope_id();
|
|
10691
|
-
_html(`<span${_attr_class("
|
|
10614
|
+
_html(`<span${_attr_class("_hi")}>`);
|
|
10692
10615
|
_if(() => {
|
|
10693
10616
|
if (i) {
|
|
10694
10617
|
const $scope3_id = _scope_id();
|
|
10695
|
-
_html(`<span${_attr_class("
|
|
10618
|
+
_html(`<span${_attr_class("_hl")} aria-hidden=true>·</span>`);
|
|
10696
10619
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10697
10620
|
return 0;
|
|
10698
10621
|
}
|
|
10699
10622
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10700
|
-
_html(`<span${_attr_class("
|
|
10623
|
+
_html(`<span${_attr_class("_hj")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hk", win$1.used_percent >= 90 ? "_hZ" : win$1.used_percent >= 70 ? "_hY" : win$1.used_percent >= 40 ? "_hX" : "_hW"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10701
10624
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10702
10625
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10703
10626
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10808,7 +10731,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10808
10731
|
_if(() => {
|
|
10809
10732
|
if (input.rail) {
|
|
10810
10733
|
const $scope2_id = _scope_id();
|
|
10811
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10734
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_fw"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
10812
10735
|
"_A",
|
|
10813
10736
|
phase[dot$1],
|
|
10814
10737
|
"_bc"
|
|
@@ -10818,34 +10741,34 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10818
10741
|
} else if (ws$1.pending) {
|
|
10819
10742
|
const $scope3_id = _scope_id();
|
|
10820
10743
|
_html(`<section${_attr_class([
|
|
10821
|
-
"
|
|
10822
|
-
"
|
|
10744
|
+
"_fA",
|
|
10745
|
+
"_fW",
|
|
10823
10746
|
{
|
|
10824
|
-
["
|
|
10825
|
-
["
|
|
10747
|
+
["_fB"]: input.railPop,
|
|
10748
|
+
["_fz"]: input.page
|
|
10826
10749
|
}
|
|
10827
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10750
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fC")}><div${_attr_class(wsBtn)}>`);
|
|
10828
10751
|
_if(() => {
|
|
10829
10752
|
if (ws$1.pending_error) {
|
|
10830
10753
|
const $scope15_id = _scope_id();
|
|
10831
10754
|
icon_warning_default({
|
|
10832
10755
|
size: 12,
|
|
10833
|
-
class: "
|
|
10756
|
+
class: "_fY"
|
|
10834
10757
|
});
|
|
10835
10758
|
$si__input_workspace && writeScope($scope15_id, {});
|
|
10836
10759
|
return 0;
|
|
10837
10760
|
} else {
|
|
10838
10761
|
const $scope16_id = _scope_id();
|
|
10839
|
-
_html(`<span${_attr_class(["_G", "
|
|
10762
|
+
_html(`<span${_attr_class(["_G", "_fX"])}></span>`);
|
|
10840
10763
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10841
10764
|
return 1;
|
|
10842
10765
|
}
|
|
10843
10766
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10844
|
-
_html(`<span${_attr_class("
|
|
10767
|
+
_html(`<span${_attr_class("_fJ")}><span${_attr_class("_fK")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_f0")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
|
|
10845
10768
|
_if(() => {
|
|
10846
10769
|
if (ws$1.pending_error && !retrying) {
|
|
10847
10770
|
const $scope14_id = _scope_id();
|
|
10848
|
-
_html(`<div${_attr_class("
|
|
10771
|
+
_html(`<div${_attr_class("_fZ")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope14_id, "b")}<button type=button${_attr_class([
|
|
10849
10772
|
"_q",
|
|
10850
10773
|
btnSm,
|
|
10851
10774
|
{ ["_s"]: armedDelete }
|
|
@@ -10865,15 +10788,15 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10865
10788
|
const $scope4_id = _scope_id();
|
|
10866
10789
|
const sessions$1 = input.sessions || [];
|
|
10867
10790
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10868
|
-
_html(`<section${_attr_class(["
|
|
10869
|
-
["
|
|
10791
|
+
_html(`<section${_attr_class(["_fA", {
|
|
10792
|
+
["_fw"]: input.current,
|
|
10870
10793
|
["_bd"]: input.current,
|
|
10871
|
-
["
|
|
10872
|
-
["
|
|
10873
|
-
}])}><div${_attr_class("
|
|
10794
|
+
["_fB"]: input.railPop,
|
|
10795
|
+
["_fz"]: input.page
|
|
10796
|
+
}])}><div${_attr_class("_fC")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10874
10797
|
"_A",
|
|
10875
10798
|
phase[dot$1],
|
|
10876
|
-
"
|
|
10799
|
+
"_fO"
|
|
10877
10800
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10878
10801
|
_if(() => {
|
|
10879
10802
|
if (sessions$1.length === 1) {
|
|
@@ -10886,7 +10809,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10886
10809
|
icon_agent_default({
|
|
10887
10810
|
agent: activeAgent(sessions$1[0]),
|
|
10888
10811
|
size: 12,
|
|
10889
|
-
class: "
|
|
10812
|
+
class: "_fI"
|
|
10890
10813
|
});
|
|
10891
10814
|
$si__input_sessions && writeScope($scope17_id, {
|
|
10892
10815
|
_: _scope_with_id($scope4_id),
|
|
@@ -10896,11 +10819,11 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10896
10819
|
}
|
|
10897
10820
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10898
10821
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10899
|
-
_html(`<span${_attr_class("
|
|
10822
|
+
_html(`<span${_attr_class("_fJ")}><span${_attr_class("_fK")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10900
10823
|
_if(() => {
|
|
10901
10824
|
if (input.page && metaText) {
|
|
10902
10825
|
const $scope18_id = _scope_id();
|
|
10903
|
-
_html(`<span${_attr_class("
|
|
10826
|
+
_html(`<span${_attr_class("_fN")}>${_text_resume($scope18_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10904
10827
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10905
10828
|
return 0;
|
|
10906
10829
|
}
|
|
@@ -10909,7 +10832,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10909
10832
|
_if(() => {
|
|
10910
10833
|
if (!input.page) {
|
|
10911
10834
|
const $scope5_id = _scope_id();
|
|
10912
|
-
_html(`<div${_attr_class("
|
|
10835
|
+
_html(`<div${_attr_class("_fE")}>`);
|
|
10913
10836
|
_if(() => {
|
|
10914
10837
|
if (input.onNewSession) {
|
|
10915
10838
|
const $scope6_id = _scope_id();
|
|
@@ -10958,7 +10881,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10958
10881
|
return 0;
|
|
10959
10882
|
}
|
|
10960
10883
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10961
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10884
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fx"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10962
10885
|
icon_manage_default({ size: 12 });
|
|
10963
10886
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10964
10887
|
_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, {
|
|
@@ -10968,7 +10891,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10968
10891
|
return 0;
|
|
10969
10892
|
}
|
|
10970
10893
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10971
|
-
_html(`</div><div${_attr_class("
|
|
10894
|
+
_html(`</div><div${_attr_class("_fT")}>`);
|
|
10972
10895
|
_if(() => {
|
|
10973
10896
|
if (sessions$1.length === 1 && openPlan) {
|
|
10974
10897
|
const $scope11_id = _scope_id();
|
|
@@ -10976,7 +10899,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10976
10899
|
const $childScope3 = _peek_scope_id();
|
|
10977
10900
|
usage_pcts_default({
|
|
10978
10901
|
agent: openPlan,
|
|
10979
|
-
class: "
|
|
10902
|
+
class: "_fL"
|
|
10980
10903
|
});
|
|
10981
10904
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
10982
10905
|
a: _existing_scope($childScope3),
|
|
@@ -10987,14 +10910,14 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
10987
10910
|
}, $scope4_id, "l");
|
|
10988
10911
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10989
10912
|
const $scope8_id = _scope_id();
|
|
10990
|
-
_html(`<div${_attr_class(["
|
|
10913
|
+
_html(`<div${_attr_class(["_fF", { ["_fw"]: s.id === input.currentTab }])}>`);
|
|
10991
10914
|
_if(() => {
|
|
10992
10915
|
if (renamingId === s.id) {
|
|
10993
10916
|
const $scope10_id = _scope_id();
|
|
10994
10917
|
_html(`<span${_attr_class([
|
|
10995
10918
|
"_A",
|
|
10996
10919
|
phase[sessionPhase(s.state)],
|
|
10997
|
-
"
|
|
10920
|
+
"_fR"
|
|
10998
10921
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
10999
10922
|
_set_serialize_reason({
|
|
11000
10923
|
1: $sg__input_sessions,
|
|
@@ -11004,7 +10927,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
11004
10927
|
icon_agent_default({
|
|
11005
10928
|
agent: activeAgent(s),
|
|
11006
10929
|
size: 12,
|
|
11007
|
-
class: "
|
|
10930
|
+
class: "_fV"
|
|
11008
10931
|
});
|
|
11009
10932
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
11010
10933
|
renameValue = _new_renameValue;
|
|
@@ -11023,9 +10946,9 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
11023
10946
|
icon_agent_default({
|
|
11024
10947
|
agent: activeAgent(s),
|
|
11025
10948
|
size: 12,
|
|
11026
|
-
class: "
|
|
10949
|
+
class: "_fV"
|
|
11027
10950
|
});
|
|
11028
|
-
_html(`<span${_attr_class("
|
|
10951
|
+
_html(`<span${_attr_class("_fP")}>${_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("_fQ")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
11029
10952
|
icon_edit_default({ size: 12 });
|
|
11030
10953
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
11031
10954
|
icon_xmark_default({ size: 12 });
|
|
@@ -11037,7 +10960,7 @@ var side_nav_item_default = _template("y", (input) => {
|
|
|
11037
10960
|
const $childScope6 = _peek_scope_id();
|
|
11038
10961
|
usage_pcts_default({
|
|
11039
10962
|
agent: openPlan,
|
|
11040
|
-
class: "
|
|
10963
|
+
class: "_fM"
|
|
11041
10964
|
});
|
|
11042
10965
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
11043
10966
|
a: _existing_scope($childScope6),
|
|
@@ -11496,28 +11419,28 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11496
11419
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11497
11420
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11498
11421
|
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11499
|
-
_html(`<aside${_attr_class(["
|
|
11500
|
-
["
|
|
11501
|
-
["
|
|
11422
|
+
_html(`<aside${_attr_class(["_bT", {
|
|
11423
|
+
["_bR"]: !navOpen,
|
|
11424
|
+
["_bS"]: isPage
|
|
11502
11425
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11503
11426
|
_if(() => {
|
|
11504
11427
|
if (isPage) {
|
|
11505
11428
|
const $scope1_id = _scope_id();
|
|
11506
|
-
_html(`<header${_attr_class("
|
|
11429
|
+
_html(`<header${_attr_class("_bW")}><div${_attr_class("_b4")}>`);
|
|
11507
11430
|
_if(() => {
|
|
11508
11431
|
if (input.instanceName) {
|
|
11509
11432
|
const $scope2_id = _scope_id();
|
|
11510
|
-
_html(`<div${_attr_class("
|
|
11433
|
+
_html(`<div${_attr_class("_b1")} title="This work server (Settings → Appearance)"><img${_attr_class("_b2")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b3")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11511
11434
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11512
11435
|
return 0;
|
|
11513
11436
|
}
|
|
11514
11437
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11515
|
-
_html(`<h1${_attr_class("
|
|
11438
|
+
_html(`<h1${_attr_class("_bX")}>Workspaces</h1></div><div${_attr_class("_bY")}>`);
|
|
11516
11439
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11517
11440
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11518
11441
|
iconBtn,
|
|
11519
|
-
"
|
|
11520
|
-
{ ["
|
|
11442
|
+
"_bZ",
|
|
11443
|
+
{ ["_bO"]: view === "settings" }
|
|
11521
11444
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11522
11445
|
icon_settings_default({ size: 16 });
|
|
11523
11446
|
_if(() => {
|
|
@@ -11536,7 +11459,7 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11536
11459
|
_if(() => {
|
|
11537
11460
|
if (!isPage && input.instanceName) {
|
|
11538
11461
|
const $scope3_id = _scope_id();
|
|
11539
|
-
_html(`<div${_attr_class("
|
|
11462
|
+
_html(`<div${_attr_class("_b1")} title="This work server (Settings → Appearance)"><img${_attr_class("_b2")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b3")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11540
11463
|
writeScope($scope3_id, {});
|
|
11541
11464
|
return 0;
|
|
11542
11465
|
}
|
|
@@ -11576,7 +11499,7 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11576
11499
|
return 0;
|
|
11577
11500
|
} else if (navOpen) {
|
|
11578
11501
|
const $scope5_id = _scope_id();
|
|
11579
|
-
_html(`<div${_attr_class("
|
|
11502
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11580
11503
|
_for_of(orderedIds, (wsId) => {
|
|
11581
11504
|
const $scope6_id = _scope_id();
|
|
11582
11505
|
_set_serialize_reason({
|
|
@@ -11663,7 +11586,7 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11663
11586
|
railHover = null;
|
|
11664
11587
|
}, 150);
|
|
11665
11588
|
}, "z6", $scope7_id);
|
|
11666
|
-
_html(`<div${_attr_class("
|
|
11589
|
+
_html(`<div${_attr_class("_b6")}>`);
|
|
11667
11590
|
_for_of(orderedIds, (wsId, i) => {
|
|
11668
11591
|
const $scope8_id = _scope_id();
|
|
11669
11592
|
_html("<span>");
|
|
@@ -11721,7 +11644,7 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11721
11644
|
if (railHover) {
|
|
11722
11645
|
const $scope9_id = _scope_id();
|
|
11723
11646
|
const hoverId = railHover.id;
|
|
11724
|
-
_html(`<div${_attr_class(["__", "
|
|
11647
|
+
_html(`<div${_attr_class(["__", "_b9"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11725
11648
|
_set_serialize_reason({
|
|
11726
11649
|
0: 1,
|
|
11727
11650
|
1: 1,
|
|
@@ -11816,7 +11739,7 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11816
11739
|
return 0;
|
|
11817
11740
|
}
|
|
11818
11741
|
}, $scope0_id, "e");
|
|
11819
|
-
_html(`<div${_attr_class("
|
|
11742
|
+
_html(`<div${_attr_class("_b7")}>`);
|
|
11820
11743
|
_if(() => {
|
|
11821
11744
|
if (isPage) {
|
|
11822
11745
|
const $scope11_id = _scope_id();
|
|
@@ -11824,7 +11747,7 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11824
11747
|
"_q",
|
|
11825
11748
|
"_r",
|
|
11826
11749
|
btnLg,
|
|
11827
|
-
"
|
|
11750
|
+
"_b0"
|
|
11828
11751
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11829
11752
|
icon_folder_plus_default({ size: 16 });
|
|
11830
11753
|
_html(` New workspace</a>${_el_resume($scope11_id, "a")}`);
|
|
@@ -11846,9 +11769,9 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11846
11769
|
return 1;
|
|
11847
11770
|
}
|
|
11848
11771
|
}, $scope10_id, "a", 1, 1, 1, "</button>", 1);
|
|
11849
|
-
_html(`<div${_attr_class(["_z", "
|
|
11772
|
+
_html(`<div${_attr_class(["_z", "_b8"])}></div>`);
|
|
11850
11773
|
_if(() => {}, $scope10_id, "c", 1, 1, 1, 0, 1);
|
|
11851
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11774
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bO"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11852
11775
|
icon_settings_default({});
|
|
11853
11776
|
_if(() => {
|
|
11854
11777
|
if (input.setupReady === false) {
|
|
@@ -11858,7 +11781,7 @@ var side_nav_default = _template("z", (input) => {
|
|
|
11858
11781
|
return 0;
|
|
11859
11782
|
}
|
|
11860
11783
|
}, $scope10_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11861
|
-
_html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11784
|
+
_html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bO"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11862
11785
|
icon_folder_plus_default({ size: 16 });
|
|
11863
11786
|
_html(`</a>${_el_resume($scope10_id, "g")}`);
|
|
11864
11787
|
_script($scope10_id, "z15");
|
|
@@ -12879,9 +12802,8 @@ function markdownFence(body) {
|
|
|
12879
12802
|
function indent(text) {
|
|
12880
12803
|
return text.split("\n").map((line) => line ? ` ${line}` : line).join("\n");
|
|
12881
12804
|
}
|
|
12882
|
-
var treeToggle = "
|
|
12883
|
-
var pageTitle = "
|
|
12884
|
-
var commitWrap = "_f7 _5 _l";
|
|
12805
|
+
var treeToggle = "_gm _5 _l";
|
|
12806
|
+
var pageTitle = "_gt _ed";
|
|
12885
12807
|
//#endregion
|
|
12886
12808
|
//#region src/tags/diff-send.marko
|
|
12887
12809
|
var diff_send_default = _template("i", (input) => {
|
|
@@ -12891,7 +12813,7 @@ var diff_send_default = _template("i", (input) => {
|
|
|
12891
12813
|
let sendTarget = null;
|
|
12892
12814
|
const sessions = input.sessions || [];
|
|
12893
12815
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12894
|
-
_html(`<span${_attr_class("
|
|
12816
|
+
_html(`<span${_attr_class("_h3")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12895
12817
|
_if(() => {
|
|
12896
12818
|
if (sessions.length === 1) {
|
|
12897
12819
|
const $scope1_id = _scope_id();
|
|
@@ -12901,11 +12823,11 @@ var diff_send_default = _template("i", (input) => {
|
|
|
12901
12823
|
return 0;
|
|
12902
12824
|
} else if (sessions.length) {
|
|
12903
12825
|
const $scope2_id = _scope_id();
|
|
12904
|
-
_html(`<span${_attr_class("
|
|
12826
|
+
_html(`<span${_attr_class("_h4")}><button type=button${_attr_class(["_r", "_h5"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12905
12827
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12906
12828
|
sendTarget = _new_sendTarget;
|
|
12907
12829
|
}, "i0", $scope2_id), () => {
|
|
12908
|
-
_html(`<select${_attr_class("
|
|
12830
|
+
_html(`<select${_attr_class("_h6")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12909
12831
|
_for_of(sessions, (s) => {
|
|
12910
12832
|
const $scope3_id = _scope_id();
|
|
12911
12833
|
_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)}`);
|
|
@@ -12932,23 +12854,6 @@ var diff_send_default = _template("i", (input) => {
|
|
|
12932
12854
|
});
|
|
12933
12855
|
_resume_branch($scope0_id);
|
|
12934
12856
|
});
|
|
12935
|
-
//#endregion
|
|
12936
|
-
//#region src/tags/icons/icon-branch.marko
|
|
12937
|
-
var icon_branch_default = _template("S", (input) => {
|
|
12938
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
12939
|
-
const $scope0_id = _scope_id();
|
|
12940
|
-
_set_serialize_reason({
|
|
12941
|
-
0: $sg__input_size__OR__input_class,
|
|
12942
|
-
1: $sg__input_size__OR__input_class
|
|
12943
|
-
});
|
|
12944
|
-
const $childScope = _peek_scope_id();
|
|
12945
|
-
icon_base_default({
|
|
12946
|
-
d: "M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z M6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z M6 16V3 M8 18H9C12.5 18 18 15.9 18 9.5V8",
|
|
12947
|
-
size: input.size,
|
|
12948
|
-
class: input.class
|
|
12949
|
-
});
|
|
12950
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
12951
|
-
});
|
|
12952
12857
|
var findInput = "_ek _n";
|
|
12953
12858
|
var findIconBtn = "_en _l";
|
|
12954
12859
|
//#endregion
|
|
@@ -13152,8 +13057,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13152
13057
|
}
|
|
13153
13058
|
return shortHeadFallback(head);
|
|
13154
13059
|
}
|
|
13155
|
-
var repoWorktree = "
|
|
13156
|
-
var repoTitle = "
|
|
13060
|
+
var repoWorktree = "_i6 _y";
|
|
13061
|
+
var repoTitle = "_jb _x";
|
|
13157
13062
|
//#endregion
|
|
13158
13063
|
//#region src/tags/review-head.marko
|
|
13159
13064
|
var review_head_default = _template("t", (input) => {
|
|
@@ -13161,7 +13066,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13161
13066
|
const $scope0_id = _scope_id();
|
|
13162
13067
|
const repo = input.repo;
|
|
13163
13068
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13164
|
-
_html(`<div${_attr_class("
|
|
13069
|
+
_html(`<div${_attr_class("_i3")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}><button type=button${_attr_class("_i5")} title="Scroll to this section"><span${_attr_class(repoWorktree)}>${_text_resume($scope0_id, "d", repo.worktree, $sg__input_repo)}</span></button>${_el_resume($scope0_id, "b")}`);
|
|
13165
13070
|
_if(() => {
|
|
13166
13071
|
if (repo.pr) {
|
|
13167
13072
|
const $scope6_id = _scope_id();
|
|
@@ -13170,19 +13075,19 @@ var review_head_default = _template("t", (input) => {
|
|
|
13170
13075
|
return 0;
|
|
13171
13076
|
} else {
|
|
13172
13077
|
const $scope7_id = _scope_id();
|
|
13173
|
-
_html(`<span${_attr_class([repoTitle, "
|
|
13078
|
+
_html(`<span${_attr_class([repoTitle, "_jc"])}>${_text_resume($scope7_id, "b", repoLabel$1(repo.full_name), $sg__input_repo)}</span>`);
|
|
13174
13079
|
$si__input_repo && writeScope($scope7_id, { _: _scope_with_id($scope0_id) });
|
|
13175
13080
|
return 1;
|
|
13176
13081
|
}
|
|
13177
13082
|
}, $scope0_id, "e", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew);
|
|
13178
|
-
_html(`<span${_attr_class("
|
|
13083
|
+
_html(`<span${_attr_class("_jd")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_je"])}>${_text_resume($scope0_id, "h", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_jg"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_jf"])}>${_text_resume($scope0_id, "k", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13179
13084
|
_if(() => {
|
|
13180
13085
|
if (compare$1.topic) {
|
|
13181
13086
|
const $scope10_id = _scope_id();
|
|
13182
13087
|
_html(`<span${_attr_class([
|
|
13183
13088
|
"_N",
|
|
13184
13089
|
tone.accent,
|
|
13185
|
-
"
|
|
13090
|
+
"_jh"
|
|
13186
13091
|
])}>${_text_resume($scope10_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13187
13092
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope10_id, { _: _scope_with_id($scope0_id) });
|
|
13188
13093
|
return 0;
|
|
@@ -13192,7 +13097,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13192
13097
|
_if(() => {
|
|
13193
13098
|
if (repo.rev) {
|
|
13194
13099
|
const $scope8_id = _scope_id();
|
|
13195
|
-
_html(`<span${_attr_class(["_N", "
|
|
13100
|
+
_html(`<span${_attr_class(["_N", "_ji"])} title="One commit against its parent">commit ${_text_resume($scope8_id, "b", shortSha(repo.rev, 7), $sg__input_repo * 2)}</span>`);
|
|
13196
13101
|
$si__input_repo && writeScope($scope8_id, { _: _scope_with_id($scope0_id) });
|
|
13197
13102
|
return 0;
|
|
13198
13103
|
}
|
|
@@ -13203,7 +13108,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13203
13108
|
_html(`<button type=button${_attr_class([
|
|
13204
13109
|
"_N",
|
|
13205
13110
|
tone.warn,
|
|
13206
|
-
"
|
|
13111
|
+
"_ji"
|
|
13207
13112
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope1_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope1_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope1_id, "a")}`);
|
|
13208
13113
|
_script($scope1_id, "t0");
|
|
13209
13114
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13213,7 +13118,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13213
13118
|
_if(() => {
|
|
13214
13119
|
if (repo.contained && input.fileCount) {
|
|
13215
13120
|
const $scope9_id = _scope_id();
|
|
13216
|
-
_html(`<span${_attr_class(["_N", "
|
|
13121
|
+
_html(`<span${_attr_class(["_N", "_ji"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope9_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope9_id, "a", $sg__input_repo)}`);
|
|
13217
13122
|
$si__input_repo__OR__input_fileCount && writeScope($scope9_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13218
13123
|
return 0;
|
|
13219
13124
|
}
|
|
@@ -13221,16 +13126,16 @@ var review_head_default = _template("t", (input) => {
|
|
|
13221
13126
|
_if(() => {
|
|
13222
13127
|
if (input.localDiffers) {
|
|
13223
13128
|
const $scope2_id = _scope_id();
|
|
13224
|
-
_html(`<span${_attr_class(["_N", "
|
|
13129
|
+
_html(`<span${_attr_class(["_N", "_ji"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope2_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope2_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope2_id, "a", $sg__input_repo)}`);
|
|
13225
13130
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope2_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
13226
13131
|
return 0;
|
|
13227
13132
|
}
|
|
13228
13133
|
}, $scope0_id, "p", _serialize_guard($scope0_reason, 9), _serialize_guard($scope0_reason, 14), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_fileCount__OR__input_localDiffers__OR__input_additions__OR__input_deletions__OR__input_hiddenCount__OR__input_newCount__OR__input_onlyNew, 0, 1);
|
|
13229
|
-
_html(`<span${_attr_class("
|
|
13134
|
+
_html(`<span${_attr_class("_i7")}><span>${_text_resume($scope0_id, "r", input.fileCount, $sg__input_fileCount)} file${_text_resume($scope0_id, "s", input.fileCount === 1 ? "" : "s", $sg__input_fileCount * 2)}</span>`);
|
|
13230
13135
|
_if(() => {
|
|
13231
13136
|
if (input.additions || input.deletions) {
|
|
13232
13137
|
const $scope3_id = _scope_id();
|
|
13233
|
-
_html(`<span${_attr_class("
|
|
13138
|
+
_html(`<span${_attr_class("_i8")}>+${_text_resume($scope3_id, "b", input.additions, _serialize_guard($scope0_reason, 15) * 2)}</span><span${_attr_class("_i9")}>−${_text_resume($scope3_id, "d", input.deletions, _serialize_guard($scope0_reason, 16) * 2)}</span>`);
|
|
13234
13139
|
$si__input_additions__OR__input_deletions && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
13235
13140
|
return 0;
|
|
13236
13141
|
}
|
|
@@ -13238,7 +13143,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13238
13143
|
_if(() => {
|
|
13239
13144
|
if (input.hiddenCount) {
|
|
13240
13145
|
const $scope4_id = _scope_id();
|
|
13241
|
-
_html(`<button type=button${_attr_class("
|
|
13146
|
+
_html(`<button type=button${_attr_class("_ja")} title="Filtered out of the list — show every file">${_text_resume($scope4_id, "b", input.hiddenCount, $sg__input_hiddenCount)} hidden</button>${_el_resume($scope4_id, "a")}`);
|
|
13242
13147
|
_script($scope4_id, "t1");
|
|
13243
13148
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13244
13149
|
return 0;
|
|
@@ -13247,7 +13152,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13247
13152
|
_if(() => {
|
|
13248
13153
|
if (input.newCount || input.onlyNew) {
|
|
13249
13154
|
const $scope5_id = _scope_id();
|
|
13250
|
-
_html(`<button type=button${_attr_class(["
|
|
13155
|
+
_html(`<button type=button${_attr_class(["_ja", { ["_i_"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope5_id, "b", input.newCount, _serialize_guard($scope0_reason, 18))} new</button>${_el_resume($scope5_id, "a")}`);
|
|
13251
13156
|
_script($scope5_id, "t2");
|
|
13252
13157
|
writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
13253
13158
|
return 0;
|
|
@@ -13287,7 +13192,7 @@ var review_head_default = _template("t", (input) => {
|
|
|
13287
13192
|
b4: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && compare$1?.topic
|
|
13288
13193
|
});
|
|
13289
13194
|
});
|
|
13290
|
-
var fileFilter = "
|
|
13195
|
+
var fileFilter = "_jk _n";
|
|
13291
13196
|
//#endregion
|
|
13292
13197
|
//#region src/tags/file-filter.marko
|
|
13293
13198
|
var file_filter_default = _template("j", (input) => {
|
|
@@ -13317,7 +13222,7 @@ var file_filter_default = _template("j", (input) => {
|
|
|
13317
13222
|
pending = v;
|
|
13318
13223
|
box.timer = setTimeout(flush, 150);
|
|
13319
13224
|
}, "j2", $scope0_id);
|
|
13320
|
-
_html(`<div${_attr_class("
|
|
13225
|
+
_html(`<div${_attr_class("_jj")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
13321
13226
|
type(v);
|
|
13322
13227
|
}, "j0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
13323
13228
|
_script($scope0_id, "j3");
|
|
@@ -13361,7 +13266,7 @@ var review_tree_default = _template("u", (input) => {
|
|
|
13361
13266
|
dragging$1 = false;
|
|
13362
13267
|
if (width != null) setDiffTreeWidth(width);
|
|
13363
13268
|
}, "u2", $scope0_id);
|
|
13364
|
-
_html(`<div${_attr_class(["
|
|
13269
|
+
_html(`<div${_attr_class(["_iw", { ["_iv"]: input.open === false }])}${width != null ? _attr_style(`--tree-w:${width}px`) : ""}><div${_attr_class(["_iF", { ["_iE"]: dragging$1 }])} title="Drag to resize"></div>${_el_resume($scope0_id, "b")}<div${_attr_class("_ix")}>`);
|
|
13365
13270
|
_set_serialize_reason(2);
|
|
13366
13271
|
const $childScope = _peek_scope_id();
|
|
13367
13272
|
file_filter_default({
|
|
@@ -13370,19 +13275,19 @@ var review_tree_default = _template("u", (input) => {
|
|
|
13370
13275
|
filter$1 = _new_filter;
|
|
13371
13276
|
}, "u3", $scope0_id)
|
|
13372
13277
|
});
|
|
13373
|
-
_html(`</div><div${_attr_class("
|
|
13278
|
+
_html(`</div><div${_attr_class("_iy")}>`);
|
|
13374
13279
|
_for_of(input.sections, (section) => {
|
|
13375
13280
|
const $scope1_id = _scope_id();
|
|
13376
|
-
_html(`<div${_attr_class("
|
|
13281
|
+
_html(`<div${_attr_class(["_iA", { ["_iz"]: input.sections.length === 1 }])}${_attr("data-section", section.id)}>`);
|
|
13377
13282
|
_if(() => {
|
|
13378
13283
|
if (input.sections.length > 1) {
|
|
13379
13284
|
const $scope2_id = _scope_id();
|
|
13380
|
-
_html(`<div${_attr_class("
|
|
13285
|
+
_html(`<div${_attr_class("_iB")}${_attr("title", section.label)}>${_text_resume($scope2_id, "b", section.label, $sg__input_sections)}</div>${_el_resume($scope2_id, "a", $sg__input_sections)}`);
|
|
13381
13286
|
$si__input_sections && writeScope($scope2_id, { _: _scope_with_id($scope1_id) });
|
|
13382
13287
|
return 0;
|
|
13383
13288
|
}
|
|
13384
13289
|
}, $scope1_id, "b", $sg__input_sections, $sg__input_sections_length, $sg__input_sections_length, 0, 1);
|
|
13385
|
-
_html(`<div${_attr_class("
|
|
13290
|
+
_html(`<div${_attr_class(["_iD", { ["_iC"]: input.sections.length === 1 }])}${_attr("data-tree", section.id)}></div>${_el_resume($scope1_id, "c", $sg__input_sections)}</div>${_el_resume($scope1_id, "a", $sg__input_sections)}`);
|
|
13386
13291
|
$si__input_sections && writeScope($scope1_id, {
|
|
13387
13292
|
g: $si__input_sections_length && section?.label,
|
|
13388
13293
|
_: $si__input_sections_length && _scope_with_id($scope0_id)
|
|
@@ -13410,7 +13315,7 @@ var review_tree_default = _template("u", (input) => {
|
|
|
13410
13315
|
});
|
|
13411
13316
|
_resume_branch($scope0_id);
|
|
13412
13317
|
});
|
|
13413
|
-
var sheetDir = "
|
|
13318
|
+
var sheetDir = "_iX _bb";
|
|
13414
13319
|
//#endregion
|
|
13415
13320
|
//#region src/tags/icons/icon-comment.marko
|
|
13416
13321
|
var icon_comment_default = _template("X", (input) => {
|
|
@@ -13483,9 +13388,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13483
13388
|
_if(() => {
|
|
13484
13389
|
if (open) {
|
|
13485
13390
|
const $scope1_id = _scope_id();
|
|
13486
|
-
_html(`<div${_attr_class("
|
|
13391
|
+
_html(`<div${_attr_class("_iO")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_iP")} role=dialog aria-label="Jump to file"><div${_attr_class("_iQ")}><strong${_attr_class("_iN")}>Files</strong><span${_attr_class("_iR")}>${_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, "_iM"])} title=Close aria-label=Close>`);
|
|
13487
13392
|
icon_xmark_default({ size: 16 });
|
|
13488
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13393
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iZ")}>`);
|
|
13489
13394
|
_set_serialize_reason(2);
|
|
13490
13395
|
const $childScope = _peek_scope_id();
|
|
13491
13396
|
file_filter_default({
|
|
@@ -13494,13 +13399,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13494
13399
|
filter = _new_filter;
|
|
13495
13400
|
}, "g1", $scope1_id)
|
|
13496
13401
|
});
|
|
13497
|
-
_html(`</div><div${_attr_class("
|
|
13402
|
+
_html(`</div><div${_attr_class("_iS")}>`);
|
|
13498
13403
|
_for_of(groups, (group) => {
|
|
13499
13404
|
const $scope2_id = _scope_id();
|
|
13500
|
-
_html(`<div${_attr_class("
|
|
13405
|
+
_html(`<div${_attr_class("_iT")}><div${_attr_class("_iU")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13501
13406
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13502
13407
|
const $scope3_id = _scope_id();
|
|
13503
|
-
_html(`<div${_attr_class("
|
|
13408
|
+
_html(`<div${_attr_class("_iV")}>`);
|
|
13504
13409
|
_if(() => {
|
|
13505
13410
|
if (dir) {
|
|
13506
13411
|
const $scope5_id = _scope_id();
|
|
@@ -13511,11 +13416,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13511
13416
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13512
13417
|
_for_of(files, ({ file, name }) => {
|
|
13513
13418
|
const $scope4_id = _scope_id();
|
|
13514
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13419
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_iW", "_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("_iY")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13515
13420
|
_if(() => {
|
|
13516
13421
|
if (newKeys.has(file.key)) {
|
|
13517
13422
|
const $scope6_id = _scope_id();
|
|
13518
|
-
_html(`<span${_attr_class(["_A", "
|
|
13423
|
+
_html(`<span${_attr_class(["_A", "_i1"])} title="Changed since your last visit"></span>`);
|
|
13519
13424
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13520
13425
|
return 0;
|
|
13521
13426
|
}
|
|
@@ -13525,7 +13430,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13525
13430
|
const $scope7_id = _scope_id();
|
|
13526
13431
|
icon_comment_default({
|
|
13527
13432
|
size: 12,
|
|
13528
|
-
class: "
|
|
13433
|
+
class: "_i2"
|
|
13529
13434
|
});
|
|
13530
13435
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13531
13436
|
return 0;
|
|
@@ -13550,7 +13455,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13550
13455
|
_if(() => {
|
|
13551
13456
|
if (!input.files.length) {
|
|
13552
13457
|
const $scope8_id = _scope_id();
|
|
13553
|
-
_html(`<p${_attr_class("
|
|
13458
|
+
_html(`<p${_attr_class("_i0")}>No files match.</p>`);
|
|
13554
13459
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13555
13460
|
return 0;
|
|
13556
13461
|
}
|
|
@@ -13591,7 +13496,7 @@ var getTermDims;
|
|
|
13591
13496
|
var review_view_default = _template("v", (input) => {
|
|
13592
13497
|
const $scope0_reason = _scope_reason(), $si__input_workspaceBranch = _serialize_if($scope0_reason, 9), $si__input_workspaceName = _serialize_if($scope0_reason, 10);
|
|
13593
13498
|
const $scope0_id = _scope_id();
|
|
13594
|
-
const $findFocus_getter = _hoist($scope0_id, "
|
|
13499
|
+
const $findFocus_getter = _hoist($scope0_id, "v38");
|
|
13595
13500
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
13596
13501
|
const $scope__closures = /* @__PURE__ */ new Set();
|
|
13597
13502
|
const $input_workspaceBranch__closures = /* @__PURE__ */ new Set();
|
|
@@ -13609,7 +13514,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13609
13514
|
let fileFilter = diffFilter(input.workspaceId);
|
|
13610
13515
|
const $filterChange = _resume((_new_fileFilter) => {
|
|
13611
13516
|
fileFilter = _new_fileFilter;
|
|
13612
|
-
}, "
|
|
13517
|
+
}, "v1", $scope0_id);
|
|
13613
13518
|
let onlyNew = false;
|
|
13614
13519
|
let scope = input.scope ?? diffScope();
|
|
13615
13520
|
let rev = input.rev ?? null;
|
|
@@ -13630,9 +13535,9 @@ var review_view_default = _template("v", (input) => {
|
|
|
13630
13535
|
};
|
|
13631
13536
|
const loadBox = { seq: 0 };
|
|
13632
13537
|
const viewBox = {
|
|
13633
|
-
scrollToItem: _resume((_key) => {}, "
|
|
13634
|
-
scrollToLine: _resume((_key, _line, _side) => {}, "
|
|
13635
|
-
clearSelection: _resume(() => {}, "
|
|
13538
|
+
scrollToItem: _resume((_key) => {}, "v2"),
|
|
13539
|
+
scrollToLine: _resume((_key, _line, _side) => {}, "v3"),
|
|
13540
|
+
clearSelection: _resume(() => {}, "v4")
|
|
13636
13541
|
};
|
|
13637
13542
|
const posBox = {
|
|
13638
13543
|
anchor: null,
|
|
@@ -13644,16 +13549,16 @@ var review_view_default = _template("v", (input) => {
|
|
|
13644
13549
|
};
|
|
13645
13550
|
const restorePos = _resume((pos) => {
|
|
13646
13551
|
restoreBox.pos = pos;
|
|
13647
|
-
}, "
|
|
13552
|
+
}, "v5", $scope0_id);
|
|
13648
13553
|
const savePos = _resume(() => {
|
|
13649
13554
|
if (repos) setDiffPos(input.workspaceId, posBox.anchor);
|
|
13650
|
-
}, "
|
|
13555
|
+
}, "v6", $scope0_id);
|
|
13651
13556
|
const jumpTo = _resume((key) => {
|
|
13652
13557
|
restoreBox.pos = null;
|
|
13653
13558
|
restoreBox.jump = key;
|
|
13654
13559
|
input.onFileChange?.(key);
|
|
13655
13560
|
viewBox.scrollToItem(key);
|
|
13656
|
-
}, "
|
|
13561
|
+
}, "v7", $scope0_id);
|
|
13657
13562
|
const focusPrSection = _resume((pr) => {
|
|
13658
13563
|
const section = (repos || []).find((r) => r.pr && `${r.worktree}/${r.pr.number}` === pr);
|
|
13659
13564
|
const first = section?.files[0];
|
|
@@ -13661,7 +13566,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13661
13566
|
restoreBox.pos = null;
|
|
13662
13567
|
viewBox.scrollToItem(`${section.worktree}/${first.path}`);
|
|
13663
13568
|
}
|
|
13664
|
-
}, "
|
|
13569
|
+
}, "v8", $scope0_id);
|
|
13665
13570
|
const load = _resume(async (which = scope, refresh = false) => {
|
|
13666
13571
|
const seq = ++loadBox.seq;
|
|
13667
13572
|
loading = true;
|
|
@@ -13691,33 +13596,49 @@ var review_view_default = _template("v", (input) => {
|
|
|
13691
13596
|
} finally {
|
|
13692
13597
|
if (seq === loadBox.seq) loading = false;
|
|
13693
13598
|
}
|
|
13694
|
-
}, "
|
|
13695
|
-
const reload = _resume(() => load(scope, true), "
|
|
13599
|
+
}, "v9", $scope0_id);
|
|
13600
|
+
const reload = _resume(() => load(scope, true), "v10", $scope0_id);
|
|
13696
13601
|
const reloadSoon = _resume(() => {
|
|
13697
13602
|
if (headBox.timer) clearTimeout(headBox.timer);
|
|
13698
13603
|
headBox.timer = setTimeout(() => {
|
|
13699
13604
|
headBox.timer = 0;
|
|
13700
13605
|
if (input.active && !loading) load(scope, true);
|
|
13701
13606
|
}, 400);
|
|
13702
|
-
}, "
|
|
13607
|
+
}, "v11", $scope0_id);
|
|
13703
13608
|
const loadReview = _resume(async () => {
|
|
13704
13609
|
try {
|
|
13705
13610
|
comments = (await api$6(`/api/workspaces/${input.workspaceId}/review`)).comments || [];
|
|
13706
13611
|
} catch {}
|
|
13707
|
-
}, "
|
|
13612
|
+
}, "v12", $scope0_id);
|
|
13708
13613
|
const setScope = _resume((next, remember = true) => {
|
|
13709
13614
|
if (next === scope) return;
|
|
13710
13615
|
scope = next;
|
|
13711
13616
|
if (remember) setDiffScope(next);
|
|
13712
13617
|
input.onScopeChange?.(next);
|
|
13713
13618
|
load(next);
|
|
13714
|
-
}, "
|
|
13619
|
+
}, "v13", $scope0_id);
|
|
13715
13620
|
const setRev = _resume((next) => {
|
|
13716
13621
|
if (next === rev) return;
|
|
13717
13622
|
rev = next;
|
|
13718
13623
|
input.onRevChange?.(next);
|
|
13719
13624
|
load(scope);
|
|
13720
|
-
}, "
|
|
13625
|
+
}, "v14", $scope0_id);
|
|
13626
|
+
const pickCompare = (v) => {
|
|
13627
|
+
if (v.startsWith("rev:")) {
|
|
13628
|
+
setRev(v.slice(4));
|
|
13629
|
+
return;
|
|
13630
|
+
}
|
|
13631
|
+
const next = v;
|
|
13632
|
+
if (rev) {
|
|
13633
|
+
rev = null;
|
|
13634
|
+
input.onRevChange?.(null);
|
|
13635
|
+
if (next === scope) {
|
|
13636
|
+
load(scope);
|
|
13637
|
+
return;
|
|
13638
|
+
}
|
|
13639
|
+
}
|
|
13640
|
+
setScope(next);
|
|
13641
|
+
};
|
|
13721
13642
|
const markSeen = _resume(() => {
|
|
13722
13643
|
if (!repos) return;
|
|
13723
13644
|
const heads = {};
|
|
@@ -13736,7 +13657,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13736
13657
|
}),
|
|
13737
13658
|
keepalive: true
|
|
13738
13659
|
}).catch(() => {});
|
|
13739
|
-
}, "
|
|
13660
|
+
}, "v15", $scope0_id);
|
|
13740
13661
|
const repoList = repos || [];
|
|
13741
13662
|
const shownRepos = rev ? repoList.filter((r) => r.rev) : repoList;
|
|
13742
13663
|
const allFiles = shownRepos.flatMap((r) => r.files.map((f) => ({
|
|
@@ -13808,8 +13729,8 @@ var review_view_default = _template("v", (input) => {
|
|
|
13808
13729
|
files,
|
|
13809
13730
|
fresh
|
|
13810
13731
|
};
|
|
13811
|
-
}, "
|
|
13812
|
-
const fileWorktree = _resume((repo) => repo.includes("#") ? repo.split("#")[0] : repo, "
|
|
13732
|
+
}, "v16", $scope0_id);
|
|
13733
|
+
const fileWorktree = _resume((repo) => repo.includes("#") ? repo.split("#")[0] : repo, "v17");
|
|
13813
13734
|
const anchorFor = _resume((file, range) => {
|
|
13814
13735
|
const section = repoList.find((r) => r.id === file.repo);
|
|
13815
13736
|
const meta = fileDiffFor(file, file.key);
|
|
@@ -13818,8 +13739,8 @@ var review_view_default = _template("v", (input) => {
|
|
|
13818
13739
|
head: section?.head,
|
|
13819
13740
|
snippet: meta ? quoteRangeFromDiff(meta, side, range.start, range.end) : void 0
|
|
13820
13741
|
};
|
|
13821
|
-
}, "
|
|
13822
|
-
const fileByKey = _resume((key) => allFiles.find((f) => f.key === key), "
|
|
13742
|
+
}, "v18", $scope0_id);
|
|
13743
|
+
const fileByKey = _resume((key) => allFiles.find((f) => f.key === key), "v19", $scope0_id);
|
|
13823
13744
|
const saveComment = _resume(async (key, text) => {
|
|
13824
13745
|
const range = draft;
|
|
13825
13746
|
const file = fileByKey(key);
|
|
@@ -13844,16 +13765,16 @@ var review_view_default = _template("v", (input) => {
|
|
|
13844
13765
|
} catch (err) {
|
|
13845
13766
|
error = String(err.message || err);
|
|
13846
13767
|
}
|
|
13847
|
-
}, "
|
|
13768
|
+
}, "v20", $scope0_id);
|
|
13848
13769
|
const deleteRemote = _resume((ids) => ids === "all" ? fetch(`/api/workspaces/${input.workspaceId}/review`, {
|
|
13849
13770
|
method: "POST",
|
|
13850
13771
|
headers: { "content-type": "application/json" },
|
|
13851
13772
|
body: JSON.stringify({ action: "clear" })
|
|
13852
|
-
}) : Promise.all(ids.map((id) => fetch(`/api/workspaces/${input.workspaceId}/review/${id}`, { method: "DELETE" }))), "
|
|
13773
|
+
}) : Promise.all(ids.map((id) => fetch(`/api/workspaces/${input.workspaceId}/review/${id}`, { method: "DELETE" }))), "v21", $scope0_id);
|
|
13853
13774
|
const removeComment = _resume(async (id) => {
|
|
13854
13775
|
comments = comments.filter((c) => c.id !== id);
|
|
13855
13776
|
await deleteRemote([id]).catch(() => {});
|
|
13856
|
-
}, "
|
|
13777
|
+
}, "v22", $scope0_id);
|
|
13857
13778
|
const editComment = _resume(async (id, text) => {
|
|
13858
13779
|
const prev = comments.find((c) => c.id === id);
|
|
13859
13780
|
if (!prev) return;
|
|
@@ -13874,7 +13795,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13874
13795
|
error = String(err.message || err);
|
|
13875
13796
|
throw err;
|
|
13876
13797
|
}
|
|
13877
|
-
}, "
|
|
13798
|
+
}, "v23", $scope0_id);
|
|
13878
13799
|
const sendGate = { busy: 0 };
|
|
13879
13800
|
const dispatch = _resume(async (list, to, consume) => {
|
|
13880
13801
|
if (!list.length) return true;
|
|
@@ -13911,13 +13832,13 @@ var review_view_default = _template("v", (input) => {
|
|
|
13911
13832
|
} finally {
|
|
13912
13833
|
sendGate.busy--;
|
|
13913
13834
|
}
|
|
13914
|
-
}, "
|
|
13915
|
-
const copyMarkdown = _resume(() => dispatch(comments, { clipboard: true }, "all"), "
|
|
13916
|
-
const sendTo = _resume((sessionId) => dispatch(comments, { session: sessionId }, "all"), "
|
|
13835
|
+
}, "v24", $scope0_id);
|
|
13836
|
+
const copyMarkdown = _resume(() => dispatch(comments, { clipboard: true }, "all"), "v25", $scope0_id);
|
|
13837
|
+
const sendTo = _resume((sessionId) => dispatch(comments, { session: sessionId }, "all"), "v26", $scope0_id);
|
|
13917
13838
|
const sendOneComment = _resume((id, sessionId) => {
|
|
13918
13839
|
const comment = comments.find((c) => c.id === id);
|
|
13919
13840
|
return comment ? dispatch([comment], { session: sessionId }, [id]) : Promise.resolve(false);
|
|
13920
|
-
}, "
|
|
13841
|
+
}, "v27", $scope0_id);
|
|
13921
13842
|
const sendDraftComment = _resume((key, text, sessionId) => {
|
|
13922
13843
|
const range = draft;
|
|
13923
13844
|
const file = fileByKey(key);
|
|
@@ -13936,12 +13857,12 @@ var review_view_default = _template("v", (input) => {
|
|
|
13936
13857
|
...anchorFor(file, range)
|
|
13937
13858
|
};
|
|
13938
13859
|
return dispatch([one], { session: sessionId }, []);
|
|
13939
|
-
}, "
|
|
13860
|
+
}, "v28", $scope0_id);
|
|
13940
13861
|
const openFind = _resume(() => {
|
|
13941
13862
|
findOpen = true;
|
|
13942
13863
|
findTick++;
|
|
13943
13864
|
((findFocus) => findFocus())(_hoist_read_error);
|
|
13944
|
-
}, "
|
|
13865
|
+
}, "v29", $scope0_id);
|
|
13945
13866
|
const onFindState = (next) => {
|
|
13946
13867
|
findState = next;
|
|
13947
13868
|
if (!next.hit) return;
|
|
@@ -13951,11 +13872,11 @@ var review_view_default = _template("v", (input) => {
|
|
|
13951
13872
|
else viewBox.scrollToLine(hit.key, hit.line, hit.side);
|
|
13952
13873
|
}, 0);
|
|
13953
13874
|
};
|
|
13954
|
-
_html(`<div${_attr_class("
|
|
13875
|
+
_html(`<div${_attr_class("_gj")}><div${_attr_class("_go")}><div${_attr_class("_gX")}><div${_attr_class("_gp")}><div${_attr_class(["_gz", { ["_gy"]: !comments.length }])}>`);
|
|
13955
13876
|
_if(() => {
|
|
13956
13877
|
if (input.onExit) {
|
|
13957
13878
|
const $scope1_id = _scope_id();
|
|
13958
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
13879
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_gq"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
|
|
13959
13880
|
icon_back_default({ size: 14 });
|
|
13960
13881
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 2))}`);
|
|
13961
13882
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 2) && _scope_with_id($scope0_id) });
|
|
@@ -13966,7 +13887,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
13966
13887
|
_if(() => {
|
|
13967
13888
|
if (comments.length) {
|
|
13968
13889
|
const $scope2_id = _scope_id();
|
|
13969
|
-
_html(`<span${_attr_class("
|
|
13890
|
+
_html(`<span${_attr_class("_gs")}>${_text_resume($scope2_id, "b", comments.length)} comment${_text_resume($scope2_id, "c", comments.length === 1 ? "" : "s", 2)}</span><span${_attr_class("_gr")}>`);
|
|
13970
13891
|
_set_serialize_reason(_serialize_guard($scope0_reason, 8));
|
|
13971
13892
|
const $childScope = _peek_scope_id();
|
|
13972
13893
|
diff_send_default({
|
|
@@ -13979,23 +13900,23 @@ var review_view_default = _template("v", (input) => {
|
|
|
13979
13900
|
return 0;
|
|
13980
13901
|
}
|
|
13981
13902
|
}, $scope0_id, "h");
|
|
13982
|
-
_html(`</div>${_el_resume($scope0_id, "e")}<div${_attr_class(["
|
|
13903
|
+
_html(`</div>${_el_resume($scope0_id, "e")}<div${_attr_class(["_gn", "_gU"])}>`);
|
|
13983
13904
|
_if(() => {
|
|
13984
13905
|
if (hasFiles) {
|
|
13985
|
-
const $
|
|
13906
|
+
const $scope12_id = _scope_id();
|
|
13986
13907
|
_html(`<button${_attr_class([
|
|
13987
13908
|
treeToggle,
|
|
13988
|
-
"
|
|
13989
|
-
{ ["
|
|
13909
|
+
"_gl",
|
|
13910
|
+
{ ["_gk"]: treeOpen }
|
|
13990
13911
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
13991
13912
|
icon_sidebar_default({ size: 14 });
|
|
13992
|
-
_html(`</button>${_el_resume($
|
|
13993
|
-
_script($
|
|
13994
|
-
writeScope($
|
|
13913
|
+
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
13914
|
+
_script($scope12_id, "v39");
|
|
13915
|
+
writeScope($scope12_id, {});
|
|
13995
13916
|
return 0;
|
|
13996
13917
|
}
|
|
13997
13918
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
13998
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
13919
|
+
_html(`<button${_attr_class([iconBtnRow, "_gl"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
13999
13920
|
_set_serialize_reason(1);
|
|
14000
13921
|
const $childScope2 = _peek_scope_id();
|
|
14001
13922
|
icon_refresh_default({
|
|
@@ -14005,60 +13926,42 @@ var review_view_default = _template("v", (input) => {
|
|
|
14005
13926
|
_html(`</button>${_el_resume($scope0_id, "k")}`);
|
|
14006
13927
|
_if(() => {
|
|
14007
13928
|
if (hasFiles) {
|
|
14008
|
-
const $
|
|
14009
|
-
_html(`<
|
|
14010
|
-
|
|
14011
|
-
|
|
14012
|
-
commitWrap
|
|
14013
|
-
])}><span${_attr_class(["_f9", { ["_f8"]: !!rev }])} aria-hidden=true title=Commit>`);
|
|
14014
|
-
icon_branch_default({ size: 14 });
|
|
14015
|
-
_html(`</span>${_el_resume($scope8_id, "b")}`);
|
|
14016
|
-
_attr_select_value($scope8_id, "d", rev || "", _resume(function(v) {
|
|
14017
|
-
setRev(v || null);
|
|
14018
|
-
}, "v0", $scope8_id), () => {
|
|
14019
|
-
_html(`<select${_attr_class([
|
|
14020
|
-
"_p",
|
|
14021
|
-
"_fM",
|
|
14022
|
-
"_gb",
|
|
14023
|
-
"_f_"
|
|
14024
|
-
])} aria-label=Commit${_attr("disabled", loading || commitOptions.length < 2)}><option${_attr_option_value("")}>All commits</option>`);
|
|
14025
|
-
_for_of(commitOptions, (c) => {
|
|
14026
|
-
const $scope16_id = _scope_id();
|
|
14027
|
-
_html(`<option${_attr_option_value(c.sha)}>${_text_resume($scope16_id, "b", c.label)}</option>${_el_resume($scope16_id, "a")}`);
|
|
14028
|
-
writeScope($scope16_id, {});
|
|
14029
|
-
}, "sha", $scope8_id, "e", 1, 1, 1, 0, 1);
|
|
14030
|
-
_html("</select>");
|
|
14031
|
-
});
|
|
14032
|
-
_html(`${_el_resume($scope8_id, "d")}</span>`);
|
|
14033
|
-
_script($scope8_id, "v41");
|
|
14034
|
-
writeScope($scope8_id, {});
|
|
13929
|
+
const $scope13_id = _scope_id();
|
|
13930
|
+
_html(`<button${_attr_class(["_q", "_gI"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
13931
|
+
_script($scope13_id, "v40");
|
|
13932
|
+
writeScope($scope13_id, {});
|
|
14035
13933
|
return 0;
|
|
14036
13934
|
}
|
|
14037
13935
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
14038
|
-
_if(() => {
|
|
14039
|
-
if (hasFiles) {
|
|
14040
|
-
const $scope14_id = _scope_id();
|
|
14041
|
-
_html(`<button${_attr_class(["_q", "_fT"])} title="Jump to file">Files (${_text_resume($scope14_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope14_id, "a")}`);
|
|
14042
|
-
_script($scope14_id, "v42");
|
|
14043
|
-
writeScope($scope14_id, {});
|
|
14044
|
-
return 0;
|
|
14045
|
-
}
|
|
14046
|
-
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
14047
13936
|
_html(`<span${_attr_class([
|
|
14048
13937
|
"_o",
|
|
14049
|
-
"
|
|
14050
|
-
"
|
|
13938
|
+
"_gA",
|
|
13939
|
+
"_gV"
|
|
14051
13940
|
])}>`);
|
|
14052
|
-
_attr_select_value($scope0_id, "
|
|
14053
|
-
|
|
14054
|
-
}, "
|
|
13941
|
+
_attr_select_value($scope0_id, "o", rev ? `rev:${rev}` : scope, _resume(function(v) {
|
|
13942
|
+
pickCompare(v);
|
|
13943
|
+
}, "v0", $scope0_id), () => {
|
|
14055
13944
|
_html(`<select${_attr_class([
|
|
14056
13945
|
"_p",
|
|
14057
|
-
"
|
|
14058
|
-
"
|
|
14059
|
-
])} aria-label=
|
|
13946
|
+
"_gB",
|
|
13947
|
+
"_gW"
|
|
13948
|
+
])} aria-label=Compare${_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>`);
|
|
13949
|
+
_if(() => {
|
|
13950
|
+
if (commitOptions.length) {
|
|
13951
|
+
const $scope15_id = _scope_id();
|
|
13952
|
+
_html("<optgroup label=Commits>");
|
|
13953
|
+
_for_of(commitOptions, (c) => {
|
|
13954
|
+
const $scope16_id = _scope_id();
|
|
13955
|
+
_html(`<option${_attr_option_value(`rev:${c.sha}`)}>${_text_resume($scope16_id, "b", c.label)}</option>${_el_resume($scope16_id, "a")}`);
|
|
13956
|
+
writeScope($scope16_id, {});
|
|
13957
|
+
}, "sha", $scope15_id, "a", 1, 1, 1, "</optgroup>", 1);
|
|
13958
|
+
writeScope($scope15_id, {});
|
|
13959
|
+
return 0;
|
|
13960
|
+
}
|
|
13961
|
+
}, $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
13962
|
+
_html("</select>");
|
|
14060
13963
|
});
|
|
14061
|
-
_html(`${_el_resume($scope0_id, "
|
|
13964
|
+
_html(`${_el_resume($scope0_id, "o")}</span> <div${_attr_class(["_gw", { ["_gv"]: !findOpen }])}>`);
|
|
14062
13965
|
_set_serialize_reason(2);
|
|
14063
13966
|
const $childScope3 = _peek_scope_id();
|
|
14064
13967
|
let findFocus = diff_find_default({
|
|
@@ -14069,37 +13972,37 @@ var review_view_default = _template("v", (input) => {
|
|
|
14069
13972
|
open: findOpen,
|
|
14070
13973
|
openChange: _resume((_new_findOpen) => {
|
|
14071
13974
|
findOpen = _new_findOpen;
|
|
14072
|
-
}, "
|
|
13975
|
+
}, "v30", $scope0_id),
|
|
14073
13976
|
stateChange: function(s) {
|
|
14074
13977
|
onFindState(s);
|
|
14075
13978
|
}
|
|
14076
13979
|
});
|
|
14077
|
-
_var($scope0_id, "s", $childScope3, "
|
|
13980
|
+
_var($scope0_id, "s", $childScope3, "v41");
|
|
14078
13981
|
_html(`</div>${_el_resume($scope0_id, "q")}`);
|
|
14079
13982
|
_if(() => {
|
|
14080
13983
|
if (hasFiles && !pinnedFind) {
|
|
14081
|
-
const $
|
|
13984
|
+
const $scope14_id = _scope_id();
|
|
14082
13985
|
_html(`<button${_attr_class([
|
|
14083
13986
|
iconBtnRow,
|
|
14084
|
-
"
|
|
14085
|
-
"
|
|
13987
|
+
"_gu",
|
|
13988
|
+
"_gl"
|
|
14086
13989
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
14087
13990
|
icon_search_default({ size: 14 });
|
|
14088
|
-
_html(`</button>${_el_resume($
|
|
14089
|
-
_script($
|
|
14090
|
-
writeScope($
|
|
13991
|
+
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
13992
|
+
_script($scope14_id, "v42");
|
|
13993
|
+
writeScope($scope14_id, {});
|
|
14091
13994
|
return 0;
|
|
14092
13995
|
}
|
|
14093
13996
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
14094
|
-
_html(`</div></div><div${_attr_class("
|
|
13997
|
+
_html(`</div></div><div${_attr_class("_gK")}>`);
|
|
14095
13998
|
_if(() => {
|
|
14096
13999
|
if (error) {
|
|
14097
14000
|
const $scope6_id = _scope_id();
|
|
14098
14001
|
toast_default({
|
|
14099
14002
|
onDismiss: _resume(function() {
|
|
14100
14003
|
error = null;
|
|
14101
|
-
}, "
|
|
14102
|
-
content: _content("
|
|
14004
|
+
}, "v31", $scope6_id),
|
|
14005
|
+
content: _content("v43", () => {
|
|
14103
14006
|
_scope_reason();
|
|
14104
14007
|
const $scope7_id = _scope_id();
|
|
14105
14008
|
_html(_text_resume($scope7_id, "a", error));
|
|
@@ -14112,7 +14015,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14112
14015
|
}
|
|
14113
14016
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
14114
14017
|
_for_of(repoList.filter((r) => r.baseMissing), (repo) => {
|
|
14115
|
-
const $
|
|
14018
|
+
const $scope9_id = _scope_id();
|
|
14116
14019
|
const $for_content2__repo_base__closures = /* @__PURE__ */ new Set();
|
|
14117
14020
|
_set_serialize_reason(356);
|
|
14118
14021
|
const $childScope4 = _peek_scope_id();
|
|
@@ -14120,15 +14023,15 @@ var review_view_default = _template("v", (input) => {
|
|
|
14120
14023
|
kind: "warn",
|
|
14121
14024
|
placement: "inline",
|
|
14122
14025
|
title: `${repo.worktree}: base not found`,
|
|
14123
|
-
content: _content("
|
|
14026
|
+
content: _content("v44", () => {
|
|
14124
14027
|
_scope_reason();
|
|
14125
|
-
const $
|
|
14126
|
-
_html(`${_text_resume($
|
|
14127
|
-
_subscribe($for_content2__repo_base__closures, _subscribe($scope__closures, writeScope($
|
|
14128
|
-
_resume_branch($
|
|
14129
|
-
}, $
|
|
14028
|
+
const $scope10_id = _scope_id();
|
|
14029
|
+
_html(`${_text_resume($scope10_id, "a", repo.base)}${_text_resume($scope10_id, "b", scope !== "committed" ? ", showing uncommitted changes only" : "", 2)}.`);
|
|
14030
|
+
_subscribe($for_content2__repo_base__closures, _subscribe($scope__closures, writeScope($scope10_id, { _: _scope_with_id($scope9_id) })));
|
|
14031
|
+
_resume_branch($scope10_id);
|
|
14032
|
+
}, $scope9_id)
|
|
14130
14033
|
});
|
|
14131
|
-
writeScope($
|
|
14034
|
+
writeScope($scope9_id, {
|
|
14132
14035
|
f: $for_content2__repo_base__closures,
|
|
14133
14036
|
a: _existing_scope($childScope4)
|
|
14134
14037
|
});
|
|
@@ -14136,21 +14039,21 @@ var review_view_default = _template("v", (input) => {
|
|
|
14136
14039
|
_if(() => {
|
|
14137
14040
|
if (!repos && loading) {
|
|
14138
14041
|
const $scope17_id = _scope_id();
|
|
14139
|
-
_html(`<div${_attr_class("
|
|
14042
|
+
_html(`<div${_attr_class("_gD")} aria-hidden=true><div${_attr_class(["_gE", "_gF"])}></div><div${_attr_class(["_gE", "_gG"])}></div><div${_attr_class(["_gE", "_gH"])}></div></div>`);
|
|
14140
14043
|
writeScope($scope17_id, {});
|
|
14141
14044
|
return 0;
|
|
14142
14045
|
}
|
|
14143
14046
|
}, $scope0_id, "x", 1, 1, 1, 0, 1);
|
|
14144
14047
|
_if(() => {
|
|
14145
14048
|
if (repos && !allFiles.length) {
|
|
14146
|
-
const $
|
|
14147
|
-
_html(`<p${_attr_class("
|
|
14148
|
-
writeScope($
|
|
14049
|
+
const $scope11_id = _scope_id();
|
|
14050
|
+
_html(`<p${_attr_class("_ct")}>${_text_resume($scope11_id, "b", rev ? "This commit is not in any of these repos." : repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
14051
|
+
writeScope($scope11_id, {});
|
|
14149
14052
|
return 0;
|
|
14150
14053
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
14151
|
-
const $
|
|
14152
|
-
_html(`<p${_attr_class("
|
|
14153
|
-
writeScope($
|
|
14054
|
+
const $scope8_id = _scope_id();
|
|
14055
|
+
_html(`<p${_attr_class("_ct")}>${_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>`);
|
|
14056
|
+
writeScope($scope8_id, {});
|
|
14154
14057
|
return 1;
|
|
14155
14058
|
}
|
|
14156
14059
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
@@ -14158,7 +14061,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14158
14061
|
_if(() => {
|
|
14159
14062
|
if (shownRepos.length) {
|
|
14160
14063
|
const $scope3_id = _scope_id();
|
|
14161
|
-
_html(`<div${_attr_class("
|
|
14064
|
+
_html(`<div${_attr_class("_gJ")}>`);
|
|
14162
14065
|
_for_of(shownRepos, (repo) => {
|
|
14163
14066
|
const $scope4_id = _scope_id();
|
|
14164
14067
|
const st = statsFor(repo);
|
|
@@ -14196,7 +14099,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14196
14099
|
onlyNew,
|
|
14197
14100
|
onToggleNew: _resume(function() {
|
|
14198
14101
|
onlyNew = !onlyNew;
|
|
14199
|
-
}, "
|
|
14102
|
+
}, "v32", $scope5_id),
|
|
14200
14103
|
hiddenCount: repo.files.length - st.files,
|
|
14201
14104
|
onShowHidden: _resume(function() {
|
|
14202
14105
|
fileFilter = "";
|
|
@@ -14206,7 +14109,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14206
14109
|
hit: null,
|
|
14207
14110
|
keys: []
|
|
14208
14111
|
};
|
|
14209
|
-
}, "
|
|
14112
|
+
}, "v33", $scope5_id),
|
|
14210
14113
|
workspaceBranch: input.workspaceBranch || "",
|
|
14211
14114
|
workspaceName: input.workspaceName || "",
|
|
14212
14115
|
localDiffers: localDifferIds.has(repo.id),
|
|
@@ -14215,7 +14118,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14215
14118
|
onJump: _resume(function() {
|
|
14216
14119
|
const first = shownFiles.find((f) => f.repo === repo.id);
|
|
14217
14120
|
if (first) jumpTo(first.key);
|
|
14218
|
-
}, "
|
|
14121
|
+
}, "v34", $scope5_id)
|
|
14219
14122
|
});
|
|
14220
14123
|
_subscribe($localDifferIds__closures, _subscribe($reload2__closures, _subscribe($onlyNew__closures, _subscribe($loading__closures, _subscribe($si__input_workspaceName && $input_workspaceName__closures, _subscribe($si__input_workspaceBranch && $input_workspaceBranch__closures, writeScope($scope5_id, { a: _existing_scope($childScope5) })))))));
|
|
14221
14124
|
return 0;
|
|
@@ -14235,7 +14138,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14235
14138
|
return 0;
|
|
14236
14139
|
}
|
|
14237
14140
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
14238
|
-
_html(`</div>${_el_resume($scope0_id, "c")}<div${_attr_class("
|
|
14141
|
+
_html(`</div>${_el_resume($scope0_id, "c")}<div${_attr_class("_gL")} data-diff-main></div>${_el_resume($scope0_id, "a0")}</div>`);
|
|
14239
14142
|
_set_serialize_reason(26);
|
|
14240
14143
|
const $childScope6 = _peek_scope_id();
|
|
14241
14144
|
review_tree_default({
|
|
@@ -14247,7 +14150,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14247
14150
|
filterChange: $filterChange,
|
|
14248
14151
|
onSelect: _resume(function(key) {
|
|
14249
14152
|
jumpTo(key);
|
|
14250
|
-
}, "
|
|
14153
|
+
}, "v35", $scope0_id)
|
|
14251
14154
|
});
|
|
14252
14155
|
_set_serialize_reason(31486);
|
|
14253
14156
|
const $childScope7 = _peek_scope_id();
|
|
@@ -14255,7 +14158,7 @@ var review_view_default = _template("v", (input) => {
|
|
|
14255
14158
|
open: fileSheet,
|
|
14256
14159
|
openChange: _resume((_new_fileSheet) => {
|
|
14257
14160
|
fileSheet = _new_fileSheet;
|
|
14258
|
-
}, "
|
|
14161
|
+
}, "v36", $scope0_id),
|
|
14259
14162
|
files: shownFiles,
|
|
14260
14163
|
filter: fileFilter,
|
|
14261
14164
|
filterChange: $filterChange,
|
|
@@ -14289,14 +14192,14 @@ var review_view_default = _template("v", (input) => {
|
|
|
14289
14192
|
} else if (tries++ < 20) dockBox.raf = requestAnimationFrame(tick);
|
|
14290
14193
|
};
|
|
14291
14194
|
tick();
|
|
14292
|
-
}, "
|
|
14195
|
+
}, "v37", $scope0_id);
|
|
14293
14196
|
_html("</div>");
|
|
14294
14197
|
const $return = $findFocus_getter;
|
|
14198
|
+
_script($scope0_id, "v45");
|
|
14199
|
+
_script($scope0_id, "v46");
|
|
14295
14200
|
_script($scope0_id, "v47");
|
|
14296
14201
|
_script($scope0_id, "v48");
|
|
14297
14202
|
_script($scope0_id, "v49");
|
|
14298
|
-
_script($scope0_id, "v50");
|
|
14299
|
-
_script($scope0_id, "v51");
|
|
14300
14203
|
writeScope($scope0_id, {
|
|
14301
14204
|
a5: input.workspaceId,
|
|
14302
14205
|
a6: input.scope,
|
|
@@ -14327,77 +14230,77 @@ var review_view_default = _template("v", (input) => {
|
|
|
14327
14230
|
b3: onlyNew,
|
|
14328
14231
|
b4: scope,
|
|
14329
14232
|
b5: rev,
|
|
14330
|
-
|
|
14331
|
-
|
|
14332
|
-
|
|
14333
|
-
|
|
14334
|
-
|
|
14335
|
-
|
|
14336
|
-
|
|
14337
|
-
|
|
14338
|
-
|
|
14339
|
-
|
|
14340
|
-
|
|
14341
|
-
|
|
14342
|
-
|
|
14343
|
-
|
|
14344
|
-
|
|
14345
|
-
|
|
14346
|
-
|
|
14347
|
-
|
|
14348
|
-
|
|
14349
|
-
|
|
14350
|
-
|
|
14351
|
-
|
|
14352
|
-
|
|
14353
|
-
|
|
14354
|
-
|
|
14355
|
-
|
|
14356
|
-
|
|
14357
|
-
ch:
|
|
14358
|
-
|
|
14359
|
-
|
|
14360
|
-
|
|
14361
|
-
|
|
14362
|
-
cq:
|
|
14363
|
-
|
|
14364
|
-
|
|
14365
|
-
|
|
14366
|
-
|
|
14367
|
-
|
|
14368
|
-
d5: commitOptions
|
|
14369
|
-
|
|
14370
|
-
|
|
14371
|
-
|
|
14372
|
-
|
|
14373
|
-
|
|
14374
|
-
|
|
14375
|
-
|
|
14376
|
-
|
|
14377
|
-
|
|
14378
|
-
|
|
14379
|
-
|
|
14380
|
-
|
|
14381
|
-
|
|
14382
|
-
|
|
14383
|
-
|
|
14384
|
-
|
|
14385
|
-
|
|
14386
|
-
|
|
14387
|
-
|
|
14388
|
-
|
|
14389
|
-
|
|
14233
|
+
b6: treeOpen,
|
|
14234
|
+
b8: findOpen,
|
|
14235
|
+
ba: pinnedFind,
|
|
14236
|
+
bc: findTick,
|
|
14237
|
+
bf: findState?.query,
|
|
14238
|
+
bh: findState?.hit,
|
|
14239
|
+
bi: findState?.hit?.key,
|
|
14240
|
+
bj: collapsedFiles,
|
|
14241
|
+
bl: headBox.sig,
|
|
14242
|
+
bm: headBox.timer,
|
|
14243
|
+
bo: loadBox.seq,
|
|
14244
|
+
bp: viewBox,
|
|
14245
|
+
br: posBox.anchor,
|
|
14246
|
+
bt: posBox.raf,
|
|
14247
|
+
bv: restoreBox.pos,
|
|
14248
|
+
bx: restoreBox.jump,
|
|
14249
|
+
bz: restorePos,
|
|
14250
|
+
c0: savePos,
|
|
14251
|
+
c1: jumpTo,
|
|
14252
|
+
c2: focusPrSection,
|
|
14253
|
+
c4: load,
|
|
14254
|
+
c9: reload,
|
|
14255
|
+
ca: reloadSoon,
|
|
14256
|
+
cb: loadReview,
|
|
14257
|
+
cc: setScope,
|
|
14258
|
+
cd: setRev,
|
|
14259
|
+
cf: pickCompare,
|
|
14260
|
+
ch: markSeen,
|
|
14261
|
+
ci: repoList,
|
|
14262
|
+
ck: shownRepos,
|
|
14263
|
+
cm: allFiles,
|
|
14264
|
+
co: allFiles?.length,
|
|
14265
|
+
cq: fileFiltered,
|
|
14266
|
+
cr: findKeys,
|
|
14267
|
+
ct: shownFiles,
|
|
14268
|
+
cv: shownFiles?.length,
|
|
14269
|
+
cy: commentsByFile,
|
|
14270
|
+
d2: localDifferIds,
|
|
14271
|
+
d5: commitOptions,
|
|
14272
|
+
d8: statsFor,
|
|
14273
|
+
d9: fileWorktree,
|
|
14274
|
+
da: anchorFor,
|
|
14275
|
+
db: fileByKey,
|
|
14276
|
+
dd: saveComment,
|
|
14277
|
+
de: deleteRemote,
|
|
14278
|
+
dg: removeComment,
|
|
14279
|
+
dh: editComment,
|
|
14280
|
+
dj: sendGate.busy,
|
|
14281
|
+
dl: dispatch,
|
|
14282
|
+
do: copyMarkdown,
|
|
14283
|
+
dp: sendTo,
|
|
14284
|
+
dq: sendOneComment,
|
|
14285
|
+
dr: sendDraftComment,
|
|
14286
|
+
ds: openFind,
|
|
14287
|
+
dv: findFocus,
|
|
14288
|
+
dx: dockBox.home,
|
|
14289
|
+
dy: dockBox.raf,
|
|
14290
|
+
e0: dockFind,
|
|
14291
|
+
b9: input.findOpenChange || void 0,
|
|
14292
|
+
bd: input.findTickChange || void 0,
|
|
14390
14293
|
l: _existing_scope($childScope2),
|
|
14391
14294
|
r: _existing_scope($childScope3),
|
|
14392
|
-
|
|
14393
|
-
|
|
14394
|
-
|
|
14395
|
-
|
|
14396
|
-
|
|
14397
|
-
|
|
14398
|
-
|
|
14295
|
+
e7: $error__closures,
|
|
14296
|
+
eb: $scope__closures,
|
|
14297
|
+
e4: $si__input_workspaceBranch && $input_workspaceBranch__closures,
|
|
14298
|
+
e5: $si__input_workspaceName && $input_workspaceName__closures,
|
|
14299
|
+
e8: $loading__closures,
|
|
14300
|
+
ea: $onlyNew__closures,
|
|
14301
|
+
eg: $reload2__closures,
|
|
14399
14302
|
ek: $localDifferIds__closures,
|
|
14400
|
-
|
|
14303
|
+
em: $statsFor2__closures,
|
|
14401
14304
|
a1: _existing_scope($childScope6),
|
|
14402
14305
|
a2: _existing_scope($childScope7)
|
|
14403
14306
|
});
|
|
@@ -14516,12 +14419,12 @@ function parseInvite(text) {
|
|
|
14516
14419
|
}
|
|
14517
14420
|
//#endregion
|
|
14518
14421
|
//#region src/tags/manage-workspace.css.ts
|
|
14519
|
-
var pageMeta = "
|
|
14520
|
-
var pathMeta = "
|
|
14521
|
-
var skillRow = "
|
|
14522
|
-
var skillName = "
|
|
14523
|
-
var skillDesc = "
|
|
14524
|
-
var skillEnd = "
|
|
14422
|
+
var pageMeta = "_f1 _ef";
|
|
14423
|
+
var pathMeta = "_f4 _y";
|
|
14424
|
+
var skillRow = "_f_ _f5";
|
|
14425
|
+
var skillName = "_gb _f6";
|
|
14426
|
+
var skillDesc = "_ge _f7";
|
|
14427
|
+
var skillEnd = "_gf _f8";
|
|
14525
14428
|
//#endregion
|
|
14526
14429
|
//#region src/tags/icons/icon-clipboard.marko
|
|
14527
14430
|
var icon_clipboard_default = _template("W", (input) => {
|
|
@@ -14539,8 +14442,25 @@ var icon_clipboard_default = _template("W", (input) => {
|
|
|
14539
14442
|
});
|
|
14540
14443
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14541
14444
|
});
|
|
14542
|
-
var resultRow = "
|
|
14543
|
-
var resultBranch = "
|
|
14445
|
+
var resultRow = "_hu _I";
|
|
14446
|
+
var resultBranch = "_hw _4 _l";
|
|
14447
|
+
//#endregion
|
|
14448
|
+
//#region src/tags/icons/icon-branch.marko
|
|
14449
|
+
var icon_branch_default = _template("S", (input) => {
|
|
14450
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
14451
|
+
const $scope0_id = _scope_id();
|
|
14452
|
+
_set_serialize_reason({
|
|
14453
|
+
0: $sg__input_size__OR__input_class,
|
|
14454
|
+
1: $sg__input_size__OR__input_class
|
|
14455
|
+
});
|
|
14456
|
+
const $childScope = _peek_scope_id();
|
|
14457
|
+
icon_base_default({
|
|
14458
|
+
d: "M18 8C19.1046 8 20 7.10457 20 6C20 4.89543 19.1046 4 18 4C16.8954 4 16 4.89543 16 6C16 7.10457 16.8954 8 18 8Z M6 20C7.10457 20 8 19.1046 8 18C8 16.8954 7.10457 16 6 16C4.89543 16 4 16.8954 4 18C4 19.1046 4.89543 20 6 20Z M6 16V3 M8 18H9C12.5 18 18 15.9 18 9.5V8",
|
|
14459
|
+
size: input.size,
|
|
14460
|
+
class: input.class
|
|
14461
|
+
});
|
|
14462
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14463
|
+
});
|
|
14544
14464
|
//#endregion
|
|
14545
14465
|
//#region src/tags/branch-pick.marko
|
|
14546
14466
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -14553,11 +14473,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
14553
14473
|
let branchFilter = "";
|
|
14554
14474
|
let reloadTick = 0;
|
|
14555
14475
|
let refreshing = false;
|
|
14556
|
-
_html(`<div${_attr_class("
|
|
14476
|
+
_html(`<div${_attr_class("_hy")}>`);
|
|
14557
14477
|
_if(() => {
|
|
14558
14478
|
{
|
|
14559
14479
|
const $scope4_id = _scope_id();
|
|
14560
|
-
_html(`<p${_attr_class("
|
|
14480
|
+
_html(`<p${_attr_class("_cs")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
14561
14481
|
writeScope($scope4_id, {});
|
|
14562
14482
|
return 0;
|
|
14563
14483
|
}
|
|
@@ -14658,21 +14578,21 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14658
14578
|
_resume_branch($scope9_id);
|
|
14659
14579
|
}, $scope0_id) };
|
|
14660
14580
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
14661
|
-
_html(`<div${_attr_class([compact ? "
|
|
14662
|
-
["
|
|
14663
|
-
["
|
|
14581
|
+
_html(`<div${_attr_class([compact ? "_d0" : "_hm", {
|
|
14582
|
+
["_d1"]: compact && !input$2.open,
|
|
14583
|
+
["_d2"]: input$2.pinned
|
|
14664
14584
|
}])}>`);
|
|
14665
14585
|
_if(() => {
|
|
14666
14586
|
if (!compact && ssoPending.length) {
|
|
14667
14587
|
const $scope11_id = _scope_id();
|
|
14668
|
-
_html(`<div${_attr_class("
|
|
14588
|
+
_html(`<div${_attr_class("_hp")}>`);
|
|
14669
14589
|
ssoBlock.content({});
|
|
14670
14590
|
_html("</div>");
|
|
14671
14591
|
writeScope($scope11_id, {});
|
|
14672
14592
|
return 0;
|
|
14673
14593
|
}
|
|
14674
14594
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
14675
|
-
_html(`<div${!compact && input$2.action ? _attr_class("
|
|
14595
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_hn") : _attr_class("_ho")}><label${_attr_class(["_1", compact && "_d3"])}>`);
|
|
14676
14596
|
icon_search_default({
|
|
14677
14597
|
size: 14,
|
|
14678
14598
|
class: "_2"
|
|
@@ -14684,7 +14604,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14684
14604
|
}, "s0", $scope0_id))}${_attr_class([
|
|
14685
14605
|
compact ? "_Z" : inputLg,
|
|
14686
14606
|
"_3",
|
|
14687
|
-
compact && "
|
|
14607
|
+
compact && "_d4"
|
|
14688
14608
|
])} 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)}`);
|
|
14689
14609
|
_if(() => {
|
|
14690
14610
|
if (!compact && input$2.action) {
|
|
@@ -14698,7 +14618,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14698
14618
|
_if(() => {
|
|
14699
14619
|
if (compact) {
|
|
14700
14620
|
const $scope2_id = _scope_id();
|
|
14701
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14621
|
+
_html(`<button${_attr_class([iconBtnRow, "_d5"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
14702
14622
|
icon_xmark_default({ size: 14 });
|
|
14703
14623
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
14704
14624
|
_script($scope2_id, "s14");
|
|
@@ -14706,11 +14626,11 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14706
14626
|
return 0;
|
|
14707
14627
|
}
|
|
14708
14628
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
14709
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
14629
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hq"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
14710
14630
|
_if(() => {
|
|
14711
14631
|
if (compact && ssoPending.length) {
|
|
14712
14632
|
const $scope12_id = _scope_id();
|
|
14713
|
-
_html(`<div${_attr_class("
|
|
14633
|
+
_html(`<div${_attr_class("_hp")}>`);
|
|
14714
14634
|
ssoBlock.content({});
|
|
14715
14635
|
_html("</div>");
|
|
14716
14636
|
writeScope($scope12_id, {});
|
|
@@ -14720,16 +14640,16 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14720
14640
|
_if(() => {
|
|
14721
14641
|
if (pasted) {
|
|
14722
14642
|
const $scope3_id = _scope_id();
|
|
14723
|
-
_html(`<ul${_attr_class("
|
|
14643
|
+
_html(`<ul${_attr_class("_hr")}><li><div${_attr_class(["_ht", "_hs"])}><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)`)}>`);
|
|
14724
14644
|
icon_plus_default({
|
|
14725
14645
|
size: 12,
|
|
14726
|
-
class: "
|
|
14646
|
+
class: "_hA"
|
|
14727
14647
|
});
|
|
14728
|
-
_html(`<span${_attr_class("
|
|
14648
|
+
_html(`<span${_attr_class("_hB")}>${_text_resume($scope3_id, "f", repoLabel$1(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
14729
14649
|
_if(() => {
|
|
14730
14650
|
if (pastedForkable) {
|
|
14731
14651
|
const $scope10_id = _scope_id();
|
|
14732
|
-
_html(`<button${_attr_class(["
|
|
14652
|
+
_html(`<button${_attr_class(["_hx", { ["_hv"]: 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"}>`);
|
|
14733
14653
|
_if(() => {
|
|
14734
14654
|
if (pasteWillFork) {
|
|
14735
14655
|
const $scope14_id = _scope_id();
|
|
@@ -14749,7 +14669,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14749
14669
|
return 0;
|
|
14750
14670
|
}
|
|
14751
14671
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
14752
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
14672
|
+
_html(`<button${_attr_class([resultBranch, { ["_hv"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
14753
14673
|
icon_branch_default({ size: 12 });
|
|
14754
14674
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
14755
14675
|
_if(() => {
|
|
@@ -14776,7 +14696,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14776
14696
|
return 0;
|
|
14777
14697
|
} else if (filter && !catalog) {
|
|
14778
14698
|
const $scope13_id = _scope_id();
|
|
14779
|
-
_html(`<p${_attr_class("
|
|
14699
|
+
_html(`<p${_attr_class("_cs")}>Loading repos…</p>`);
|
|
14780
14700
|
writeScope($scope13_id, {});
|
|
14781
14701
|
return 1;
|
|
14782
14702
|
}
|
|
@@ -14784,15 +14704,15 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14784
14704
|
_if(() => {
|
|
14785
14705
|
if (results.length) {
|
|
14786
14706
|
const $scope5_id = _scope_id();
|
|
14787
|
-
_html(`<ul${_attr_class("
|
|
14707
|
+
_html(`<ul${_attr_class("_hr")}>`);
|
|
14788
14708
|
_for_of(results, (repo, i) => {
|
|
14789
14709
|
const $scope6_id = _scope_id();
|
|
14790
|
-
_html(`<li><div${_attr_class(["
|
|
14710
|
+
_html(`<li><div${_attr_class(["_ht", { ["_hs"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
14791
14711
|
icon_plus_default({
|
|
14792
14712
|
size: 12,
|
|
14793
|
-
class: "
|
|
14713
|
+
class: "_hA"
|
|
14794
14714
|
});
|
|
14795
|
-
_html(`<span${_attr_class("
|
|
14715
|
+
_html(`<span${_attr_class("_hB")}>${_text_resume($scope6_id, "e", repoLabel$1(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hv"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
14796
14716
|
icon_branch_default({ size: 12 });
|
|
14797
14717
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
14798
14718
|
_if(() => {
|
|
@@ -14827,7 +14747,7 @@ var repo_picker_default = _template("s", (input$2) => {
|
|
|
14827
14747
|
return 0;
|
|
14828
14748
|
} else if (filter && catalog && !pasted) {
|
|
14829
14749
|
const $scope8_id = _scope_id();
|
|
14830
|
-
_html(`<p${_attr_class("
|
|
14750
|
+
_html(`<p${_attr_class("_cs")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
14831
14751
|
writeScope($scope8_id, {});
|
|
14832
14752
|
return 1;
|
|
14833
14753
|
}
|
|
@@ -15060,7 +14980,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15060
14980
|
meta: attrTag({ content: _content("n20", () => {
|
|
15061
14981
|
_scope_reason();
|
|
15062
14982
|
const $scope13_id = _scope_id();
|
|
15063
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
14983
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_f2")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
15064
14984
|
_if(() => {
|
|
15065
14985
|
if (ws.status !== "active") {
|
|
15066
14986
|
const $scope17_id = _scope_id();
|
|
@@ -15069,7 +14989,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15069
14989
|
return 0;
|
|
15070
14990
|
}
|
|
15071
14991
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
15072
|
-
_html(`<span${_attr_class("
|
|
14992
|
+
_html(`<span${_attr_class("_f3")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
15073
14993
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
15074
14994
|
_: _scope_with_id($scope0_id),
|
|
15075
14995
|
Ccf: 1
|
|
@@ -15149,12 +15069,12 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15149
15069
|
_if(() => {
|
|
15150
15070
|
if (pendingAction && actionStep) {
|
|
15151
15071
|
const $scope10_id = _scope_id();
|
|
15152
|
-
_html(`<p${_attr_class("
|
|
15072
|
+
_html(`<p${_attr_class("_cg")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
15153
15073
|
writeScope($scope10_id, {});
|
|
15154
15074
|
return 0;
|
|
15155
15075
|
}
|
|
15156
15076
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
15157
|
-
_html(`<section${_attr_class("
|
|
15077
|
+
_html(`<section${_attr_class("_ch")}><div${_attr_class("_ci")}><h2${_attr_class("_cv")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gi"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
15158
15078
|
icon_plus_default({ size: 16 });
|
|
15159
15079
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
15160
15080
|
_set_serialize_reason(26);
|
|
@@ -15188,7 +15108,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15188
15108
|
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
|
|
15189
15109
|
_for_of(ws.repos, (row) => {
|
|
15190
15110
|
const $scope1_id = _scope_id();
|
|
15191
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
15111
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_cn")}><span${_attr_class(["_co", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_cp")}><a${_attr_class(["_cq", "_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$1(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
|
|
15192
15112
|
_if(() => {
|
|
15193
15113
|
if (row.base_branch !== row.default_branch) {
|
|
15194
15114
|
const $scope20_id = _scope_id();
|
|
@@ -15209,7 +15129,7 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15209
15129
|
} else {
|
|
15210
15130
|
const $scope9_id = _scope_id();
|
|
15211
15131
|
_html(`<button${_attr_class([
|
|
15212
|
-
"
|
|
15132
|
+
"_cr",
|
|
15213
15133
|
"_8",
|
|
15214
15134
|
"_9",
|
|
15215
15135
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -15242,13 +15162,13 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15242
15162
|
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
15243
15163
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
15244
15164
|
const $scope24_id = _scope_id();
|
|
15245
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
15165
|
+
_html(`<li${_attr_class([flatCardRow, "_cl"])}><span${_attr_class("_G")}></span><div${_attr_class("_cn")}><span${_attr_class("_cq")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
|
|
15246
15166
|
writeScope($scope24_id, {});
|
|
15247
15167
|
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
15248
15168
|
_if(() => {
|
|
15249
15169
|
if (!ws.repos.length && !busy.size) {
|
|
15250
15170
|
const $scope25_id = _scope_id();
|
|
15251
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
15171
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_cq")}>No repos yet. Add one to start.</span></li>`);
|
|
15252
15172
|
writeScope($scope25_id, {});
|
|
15253
15173
|
return 0;
|
|
15254
15174
|
}
|
|
@@ -15266,18 +15186,18 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15266
15186
|
_if(() => {
|
|
15267
15187
|
if (allSkills.length) {
|
|
15268
15188
|
const $scope2_id = _scope_id();
|
|
15269
|
-
_html(`<section${_attr_class("
|
|
15189
|
+
_html(`<section${_attr_class("_ch")}><div${_attr_class("_ci")}><h2${_attr_class("_cv")}>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)}>`);
|
|
15270
15190
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15271
15191
|
const $scope3_id = _scope_id();
|
|
15272
15192
|
const isBusy = skillBusy.has(s.id);
|
|
15273
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
15193
|
+
_html(`<li${_attr_class([skillRow, { ["_ga"]: !linked }])}><span${_attr_class("_gc")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
15274
15194
|
_if(() => {
|
|
15275
15195
|
if (s.worktree && !s.broken) {
|
|
15276
15196
|
const $scope26_id = _scope_id();
|
|
15277
15197
|
_html(`<span${_attr_class([
|
|
15278
15198
|
"_N",
|
|
15279
15199
|
"_y",
|
|
15280
|
-
"
|
|
15200
|
+
"_gd"
|
|
15281
15201
|
])}${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")}`);
|
|
15282
15202
|
writeScope($scope26_id, {});
|
|
15283
15203
|
return 0;
|
|
@@ -15329,10 +15249,10 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15329
15249
|
if (linked) {
|
|
15330
15250
|
const $scope11_id = _scope_id();
|
|
15331
15251
|
_html(`<button${_attr_class([
|
|
15332
|
-
"
|
|
15252
|
+
"_cr",
|
|
15333
15253
|
"_8",
|
|
15334
15254
|
"_9",
|
|
15335
|
-
"
|
|
15255
|
+
"_gg",
|
|
15336
15256
|
{ ["_s"]: confirmingSkill === s.id }
|
|
15337
15257
|
])} 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}`)}>`);
|
|
15338
15258
|
_if(() => {
|
|
@@ -15382,20 +15302,20 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15382
15302
|
_if(() => {
|
|
15383
15303
|
if (running.length) {
|
|
15384
15304
|
const $scope15_id = _scope_id();
|
|
15385
|
-
_html(`<section${_attr_class("
|
|
15305
|
+
_html(`<section${_attr_class("_ch")}><div${_attr_class("_ci")}><h2${_attr_class("_cv")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15386
15306
|
_for_of(running, (p) => {
|
|
15387
15307
|
const $scope16_id = _scope_id();
|
|
15388
|
-
_html(`<li${_attr_class("
|
|
15308
|
+
_html(`<li${_attr_class("_f5")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_f6"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_f7"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_f8")}>`);
|
|
15389
15309
|
_for_of(p.ports, (port) => {
|
|
15390
15310
|
const $scope34_id = _scope_id();
|
|
15391
15311
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
15392
15312
|
_script($scope34_id, "n27");
|
|
15393
15313
|
writeScope($scope34_id, { d: port });
|
|
15394
15314
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15395
|
-
_html(`<span${_attr_class(["_y", "
|
|
15396
|
-
"
|
|
15315
|
+
_html(`<span${_attr_class(["_y", "_f9"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15316
|
+
"_cr",
|
|
15397
15317
|
"_8",
|
|
15398
|
-
"
|
|
15318
|
+
"_gh"
|
|
15399
15319
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
15400
15320
|
icon_xmark_default({ size: 14 });
|
|
15401
15321
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -15476,13 +15396,13 @@ var manage_workspace_default = _template("n", (input) => {
|
|
|
15476
15396
|
});
|
|
15477
15397
|
_resume_branch($scope0_id);
|
|
15478
15398
|
});
|
|
15479
|
-
var curRepos = "_cJ
|
|
15399
|
+
var curRepos = "_cJ _cm _cw _cH";
|
|
15480
15400
|
var curRow = "_fg _cK _cI";
|
|
15481
|
-
var curEmpty = "_fi
|
|
15401
|
+
var curEmpty = "_fi _cs";
|
|
15482
15402
|
var curBase = "_fl _Y _X";
|
|
15483
|
-
var archived = "_fq
|
|
15403
|
+
var archived = "_fq _ch";
|
|
15484
15404
|
var archivedHint = "_fr _X";
|
|
15485
|
-
var archivedList = "_cJ
|
|
15405
|
+
var archivedList = "_cJ _cm _cw _cH";
|
|
15486
15406
|
var archivedRow = "_fs _cK _cI";
|
|
15487
15407
|
//#endregion
|
|
15488
15408
|
//#region src/tags/icons/icon-group.marko
|
|
@@ -15503,8 +15423,8 @@ var icon_group_default = _template("db", (input) => {
|
|
|
15503
15423
|
});
|
|
15504
15424
|
//#endregion
|
|
15505
15425
|
//#region src/tags/join-dialog.css.ts
|
|
15506
|
-
var dlg = "
|
|
15507
|
-
var hint = "
|
|
15426
|
+
var dlg = "_ij _hb";
|
|
15427
|
+
var hint = "_ik _X";
|
|
15508
15428
|
//#endregion
|
|
15509
15429
|
//#region src/tags/join-dialog.marko
|
|
15510
15430
|
var api$3;
|
|
@@ -15633,26 +15553,26 @@ var join_dialog_default = _template("k", (input) => {
|
|
|
15633
15553
|
content: _content("k12", () => {
|
|
15634
15554
|
_scope_reason();
|
|
15635
15555
|
const $scope1_id = _scope_id();
|
|
15636
|
-
_html(`<h2${_attr_class("
|
|
15556
|
+
_html(`<h2${_attr_class("_hc")}${_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([
|
|
15637
15557
|
"_Z",
|
|
15638
15558
|
"_y",
|
|
15639
|
-
"
|
|
15559
|
+
"_im"
|
|
15640
15560
|
])} 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")}`);
|
|
15641
15561
|
_if(() => {
|
|
15642
15562
|
if (parsed.error) {
|
|
15643
15563
|
const $scope8_id = _scope_id();
|
|
15644
|
-
_html(`<p${_attr_class([hint, "
|
|
15564
|
+
_html(`<p${_attr_class([hint, "_il"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
15645
15565
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
15646
15566
|
return 0;
|
|
15647
15567
|
} else if (parsed.ok) {
|
|
15648
15568
|
const $scope3_id = _scope_id();
|
|
15649
|
-
_html(`<ul${_attr_class("
|
|
15569
|
+
_html(`<ul${_attr_class("_in")}>`);
|
|
15650
15570
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
15651
15571
|
const $scope9_id = _scope_id();
|
|
15652
|
-
_html(`<li${_attr_class("
|
|
15572
|
+
_html(`<li${_attr_class("_io")}><span${_attr_class("_ip")}>${_text_resume($scope9_id, "c", repoLabel$1(fullName))}</span></li>`);
|
|
15653
15573
|
writeScope($scope9_id, {});
|
|
15654
15574
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
15655
|
-
_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("
|
|
15575
|
+
_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("_iq")}><span${_attr_class("_cv")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
15656
15576
|
name = _new_name;
|
|
15657
15577
|
}, "k1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
15658
15578
|
_script($scope3_id, "k8");
|
|
@@ -15689,10 +15609,10 @@ var join_dialog_default = _template("k", (input) => {
|
|
|
15689
15609
|
_if(() => {
|
|
15690
15610
|
if (busy && steps$2.length) {
|
|
15691
15611
|
const $scope6_id = _scope_id();
|
|
15692
|
-
_html(`<ul${_attr_class("
|
|
15612
|
+
_html(`<ul${_attr_class("_ir")}>`);
|
|
15693
15613
|
_for_of(steps$2, (step$2, i) => {
|
|
15694
15614
|
const $scope7_id = _scope_id();
|
|
15695
|
-
_html(`<li${_attr_class(["
|
|
15615
|
+
_html(`<li${_attr_class(["_it", { ["_is"]: i === steps$2.length - 1 }])}>`);
|
|
15696
15616
|
_if(() => {
|
|
15697
15617
|
if (i === steps$2.length - 1) {
|
|
15698
15618
|
const $scope10_id = _scope_id();
|
|
@@ -15701,7 +15621,7 @@ var join_dialog_default = _template("k", (input) => {
|
|
|
15701
15621
|
return 0;
|
|
15702
15622
|
} else {
|
|
15703
15623
|
const $scope11_id = _scope_id();
|
|
15704
|
-
_html(`<span${_attr_class("
|
|
15624
|
+
_html(`<span${_attr_class("_iu")}>`);
|
|
15705
15625
|
icon_check_default({ size: 14 });
|
|
15706
15626
|
_html("</span>");
|
|
15707
15627
|
writeScope($scope11_id, {});
|
|
@@ -15908,9 +15828,9 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
15908
15828
|
return 0;
|
|
15909
15829
|
}
|
|
15910
15830
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
15911
|
-
_html(`<label${_attr_class("_fc")}><span${_attr_class("
|
|
15831
|
+
_html(`<label${_attr_class("_fc")}><span${_attr_class("_cv")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
15912
15832
|
name = _new_name;
|
|
15913
|
-
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
15833
|
+
}, "p0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_ch")}><div${_attr_class("_fe")}><h2${_attr_class("_cv")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
15914
15834
|
_for_of(selected, (repo) => {
|
|
15915
15835
|
const $scope4_id = _scope_id();
|
|
15916
15836
|
_html(`<li${_attr_class("_ff")}><div${_attr_class(curRow)}><span${_attr_class("_fj")}>${_text_resume($scope4_id, "d", repoLabel$1(repo.fullName))}</span>`);
|
|
@@ -16055,10 +15975,10 @@ var new_workspace_default = _template("p", (input) => {
|
|
|
16055
15975
|
_if(() => {
|
|
16056
15976
|
if (archived$1.length) {
|
|
16057
15977
|
const $scope6_id = _scope_id();
|
|
16058
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("_fe")}><h2${_attr_class("
|
|
15978
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fe")}><h2${_attr_class("_cv")}>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)}>`);
|
|
16059
15979
|
_for_of(archived$1, (ws) => {
|
|
16060
15980
|
const $scope7_id = _scope_id();
|
|
16061
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
15981
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cn")}><span${_attr_class("_co")}>${_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)}>`);
|
|
16062
15982
|
_if(() => {
|
|
16063
15983
|
if (restoring === ws.id) {
|
|
16064
15984
|
const $scope19_id = _scope_id();
|
|
@@ -16644,10 +16564,10 @@ var work_view_default = _template("H", (input) => {
|
|
|
16644
16564
|
}
|
|
16645
16565
|
}, "H14", $scope0_id);
|
|
16646
16566
|
const navShown = view === "nav" && input.navState?.view === "nav";
|
|
16647
|
-
_html(`<div${_attr_class(["
|
|
16648
|
-
["
|
|
16649
|
-
["
|
|
16650
|
-
}])}><div${_attr_class("
|
|
16567
|
+
_html(`<div${_attr_class(["_cb", {
|
|
16568
|
+
["_b_"]: navShown,
|
|
16569
|
+
["_ca"]: !input.active
|
|
16570
|
+
}])}><div${_attr_class("_cc")}>`);
|
|
16651
16571
|
_if(() => {
|
|
16652
16572
|
if (error) {
|
|
16653
16573
|
const $scope8_id = _scope_id();
|
|
@@ -16670,7 +16590,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16670
16590
|
_if(() => {
|
|
16671
16591
|
if (diffMounted && ws) {
|
|
16672
16592
|
const $scope1_id = _scope_id();
|
|
16673
|
-
_html(`<div${_attr_class("
|
|
16593
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
16674
16594
|
_set_serialize_reason({
|
|
16675
16595
|
0: $sg__input_workspace,
|
|
16676
16596
|
1: $sg__input_workspace,
|
|
@@ -16732,7 +16652,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16732
16652
|
_if(() => {
|
|
16733
16653
|
if (manageMounted && ws) {
|
|
16734
16654
|
const $scope2_id = _scope_id();
|
|
16735
|
-
_html(`<div${_attr_class("
|
|
16655
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
16736
16656
|
_set_serialize_reason({
|
|
16737
16657
|
0: $sg__input_workspace,
|
|
16738
16658
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -16758,7 +16678,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16758
16678
|
_if(() => {
|
|
16759
16679
|
if (settingsMounted) {
|
|
16760
16680
|
const $scope3_id = _scope_id();
|
|
16761
|
-
_html(`<div${_attr_class("
|
|
16681
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
16762
16682
|
_set_serialize_reason({
|
|
16763
16683
|
0: _serialize_guard($scope0_reason, 0),
|
|
16764
16684
|
1: $sg__input_workspace,
|
|
@@ -16800,7 +16720,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16800
16720
|
_if(() => {
|
|
16801
16721
|
if (newMounted) {
|
|
16802
16722
|
const $scope4_id = _scope_id();
|
|
16803
|
-
_html(`<div${_attr_class("
|
|
16723
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
16804
16724
|
_set_serialize_reason({
|
|
16805
16725
|
0: 1,
|
|
16806
16726
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -16825,13 +16745,13 @@ var work_view_default = _template("H", (input) => {
|
|
|
16825
16745
|
return 0;
|
|
16826
16746
|
}
|
|
16827
16747
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
16828
|
-
_html(`<div${_attr_class("
|
|
16748
|
+
_html(`<div${_attr_class("_ce")}${_attr("inert", view !== "term")}>`);
|
|
16829
16749
|
_if(() => {
|
|
16830
16750
|
if (ws && shownSessions) {
|
|
16831
16751
|
const $scope5_id = _scope_id();
|
|
16832
16752
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
16833
16753
|
const $scope6_id = _scope_id();
|
|
16834
|
-
_html(`<div${_attr_class("
|
|
16754
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
16835
16755
|
_set_serialize_reason(2);
|
|
16836
16756
|
const $childScope5 = _peek_scope_id();
|
|
16837
16757
|
term_default({
|
|
@@ -16857,7 +16777,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16857
16777
|
_if(() => {
|
|
16858
16778
|
if (!shownSessions.length && view === "term") {
|
|
16859
16779
|
const $scope7_id = _scope_id();
|
|
16860
|
-
_html(`<div${_attr_class("
|
|
16780
|
+
_html(`<div${_attr_class("_ct")}><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>`);
|
|
16861
16781
|
_script($scope7_id, "H39");
|
|
16862
16782
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
16863
16783
|
return 0;
|
|
@@ -16867,7 +16787,7 @@ var work_view_default = _template("H", (input) => {
|
|
|
16867
16787
|
return 0;
|
|
16868
16788
|
} else if (ws) {
|
|
16869
16789
|
const $scope10_id = _scope_id();
|
|
16870
|
-
_html(`<p${_attr_class("
|
|
16790
|
+
_html(`<p${_attr_class("_ct")}>Loading sessions…</p>`);
|
|
16871
16791
|
writeScope($scope10_id, {});
|
|
16872
16792
|
return 1;
|
|
16873
16793
|
}
|
|
@@ -26306,4 +26226,4 @@ server.listen(port, () => {
|
|
|
26306
26226
|
//#endregion
|
|
26307
26227
|
export {};
|
|
26308
26228
|
|
|
26309
|
-
;var __MARKO_MANIFEST__={"
|
|
26229
|
+
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-BzUfPnGo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BzUfPnGo.css\"",">",2,"stylesheet#/assets/app-page-BbBGFieh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BbBGFieh.css\"",">"],"defer":[2,"/assets/w._-LK2NkRbP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-LK2NkRbP.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D3rnDRIv.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D3rnDRIv.js\"",">",2,"modulepreload#/assets/_DL2Do1rA.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DL2Do1rA.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-BzUfPnGo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BzUfPnGo.css\"",">",2,"stylesheet#/assets/app-page-BbBGFieh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BbBGFieh.css\"",">"],"defer":[2,"/assets/settings-LK2NkRbP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-LK2NkRbP.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D3rnDRIv.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D3rnDRIv.js\"",">",2,"modulepreload#/assets/_DL2Do1rA.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DL2Do1rA.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-BzUfPnGo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BzUfPnGo.css\"",">",2,"stylesheet#/assets/app-page-BbBGFieh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BbBGFieh.css\"",">"],"defer":[2,"/assets/w._-CvYgsk8p.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CvYgsk8p.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D3rnDRIv.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D3rnDRIv.js\"",">",2,"modulepreload#/assets/_DL2Do1rA.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DL2Do1rA.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-BzUfPnGo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BzUfPnGo.css\"",">",2,"stylesheet#/assets/app-page-BbBGFieh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BbBGFieh.css\"",">"],"defer":[2,"/assets/new-LK2NkRbP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-LK2NkRbP.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D3rnDRIv.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D3rnDRIv.js\"",">",2,"modulepreload#/assets/_DL2Do1rA.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DL2Do1rA.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-BzUfPnGo.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BzUfPnGo.css\"",">",2,"stylesheet#/assets/app-page-BbBGFieh.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-BbBGFieh.css\"",">"],"defer":[2,"/assets/w-LK2NkRbP.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-LK2NkRbP.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_D3rnDRIv.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_D3rnDRIv.js\"",">",2,"modulepreload#/assets/_DL2Do1rA.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DL2Do1rA.js\"",">"]},"_v":{"block":[2,"stylesheet#/assets/review-view--XosOwhX.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/review-view--XosOwhX.css\"",">",2,"stylesheet#/assets/icon-arrow-down-BzUfPnGo.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-BzUfPnGo.css\"",">"],"defer":[2,"/assets/review-view-CqwNr3QK.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/review-view-CqwNr3QK.js\"","></script>",2,"modulepreload#/assets/_tmN7XIcz.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_tmN7XIcz.js\"",">"]}};
|