@dylanpiercey/work 0.0.156 → 0.0.157
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 +884 -1041
- package/dist/public/assets/_2vYIuIib.js +1 -0
- package/dist/public/assets/_BB0LITVp.js +1 -0
- package/dist/public/assets/_BIJpL70W.js +1 -0
- package/dist/public/assets/_BQi9QWKd.js +1 -0
- package/dist/public/assets/_BcEuKTJx.js +1 -0
- package/dist/public/assets/_Bsl8llqw.js +1 -0
- package/dist/public/assets/_BxQ_-xPH.js +1 -0
- package/dist/public/assets/_C-2aR8XG.js +1 -0
- package/dist/public/assets/_C3ym7hxu.js +1 -0
- package/dist/public/assets/_CUAQigw_.js +83 -0
- package/dist/public/assets/_CUAQigw_.js.br +0 -0
- package/dist/public/assets/_Cf-9k3zD.js +1 -0
- package/dist/public/assets/{_Uo3NXPui.js → _Cjgj-pBB.js} +1 -1
- package/dist/public/assets/_Cjgj-pBB.js.br +0 -0
- package/dist/public/assets/_D66zCDkb.js +1 -0
- package/dist/public/assets/_DOiEoSai.js +1 -0
- package/dist/public/assets/_DfpiGKYM.js +1 -0
- package/dist/public/assets/_Jqsd_7oO.js +1 -0
- package/dist/public/assets/_SbAHZSQh.js +1 -0
- package/dist/public/assets/_YoOFMyGk.js +1 -0
- package/dist/public/assets/{_HiS0aCND.js → _dHGVn24e.js} +4 -4
- package/dist/public/assets/_dHGVn24e.js.br +0 -0
- package/dist/public/assets/_eF6YdkxU.js +1 -0
- package/dist/public/assets/_qEbnUCeE.js +1 -0
- package/dist/public/assets/_r5iIfsdp.js +1 -0
- package/dist/public/assets/app-page-D2BI9pqy.css +1 -0
- package/dist/public/assets/app-page-D2BI9pqy.css.br +0 -0
- package/dist/public/assets/diff-view-CDR_rQOe.css +1 -0
- package/dist/public/assets/diff-view-CDR_rQOe.css.br +0 -0
- package/dist/public/assets/diff-view-CyDQspSd.js +2 -0
- package/dist/public/assets/{icon-arrow-down-CK1qiyoU.css → icon-arrow-down-xhBqf52S.css} +1 -1
- package/dist/public/assets/icon-arrow-down-xhBqf52S.css.br +0 -0
- package/dist/public/assets/new-xKLJRIst.js +1 -0
- package/dist/public/assets/settings-xKLJRIst.js +1 -0
- package/dist/public/assets/w-xKLJRIst.js +1 -0
- package/dist/public/assets/w._-CaFh5fWn.js +1 -0
- package/dist/public/assets/w._-xKLJRIst.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_3TAs6e3a.js +0 -1
- package/dist/public/assets/_BhzAQNcR.js +0 -1
- package/dist/public/assets/_Bs0GH8Un.js +0 -1
- package/dist/public/assets/_BsQdE43w.js +0 -1
- package/dist/public/assets/_Bu6zDaCf.js +0 -1
- package/dist/public/assets/_C0Hkg4LE.js +0 -1
- package/dist/public/assets/_C91MT5yy.js +0 -83
- package/dist/public/assets/_C91MT5yy.js.br +0 -0
- package/dist/public/assets/_CSyaSvmu.js +0 -1
- package/dist/public/assets/_CdmnYrOv.js +0 -1
- package/dist/public/assets/_Cprr2EDj.js +0 -1
- package/dist/public/assets/_CrjqDD-b.js +0 -1
- package/dist/public/assets/_CuD02PHO.js +0 -1
- package/dist/public/assets/_DUCGBps_.js +0 -1
- package/dist/public/assets/_DWip1MXY.js +0 -1
- package/dist/public/assets/_DjkR1-0g.js +0 -1
- package/dist/public/assets/_DtIeV3eK.js +0 -1
- package/dist/public/assets/_EshNWd65.js +0 -1
- package/dist/public/assets/_GGdKVYFt.js +0 -1
- package/dist/public/assets/_HiS0aCND.js.br +0 -0
- package/dist/public/assets/_QXWaVkby.js +0 -1
- package/dist/public/assets/_Uo3NXPui.js.br +0 -0
- package/dist/public/assets/_X3Y1Ka-i.js +0 -1
- package/dist/public/assets/app-page-C_8cFCmf.css +0 -1
- package/dist/public/assets/app-page-C_8cFCmf.css.br +0 -0
- package/dist/public/assets/diff-view-Bb2JIhMi.css +0 -1
- package/dist/public/assets/diff-view-Bb2JIhMi.css.br +0 -0
- package/dist/public/assets/diff-view-D8GrPRg5.js +0 -2
- package/dist/public/assets/icon-arrow-down-CK1qiyoU.css.br +0 -0
- package/dist/public/assets/new-DvLxb34o.js +0 -1
- package/dist/public/assets/settings-DvLxb34o.js +0 -1
- package/dist/public/assets/w-DvLxb34o.js +0 -1
- package/dist/public/assets/w._-DvLxb34o.js +0 -1
- package/dist/public/assets/w._-I2MUgpxd.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6748,7 +6748,7 @@ function isAuthDeathResponse(res) {
|
|
|
6748
6748
|
*
|
|
6749
6749
|
* Behind an auth proxy, an expired session turns into login HTML (or 401).
|
|
6750
6750
|
* Reload once — same fix users already apply by hand, hosting-agnostic. */
|
|
6751
|
-
async function api$
|
|
6751
|
+
async function api$10(url, init) {
|
|
6752
6752
|
const res = await fetch(url, init);
|
|
6753
6753
|
if (isAuthDeathResponse(res)) {
|
|
6754
6754
|
reloadOnceForAuth();
|
|
@@ -6818,7 +6818,7 @@ function getUsage(refresh = false) {
|
|
|
6818
6818
|
if (cached$1 && Date.now() - cached$1.at < TTL_MS) return Promise.resolve(cached$1.value);
|
|
6819
6819
|
if (inflight) return inflight;
|
|
6820
6820
|
}
|
|
6821
|
-
inflight = api$
|
|
6821
|
+
inflight = api$10(`/api/usage${refresh ? "?refresh" : ""}`).then((value) => {
|
|
6822
6822
|
setCached(value);
|
|
6823
6823
|
return value;
|
|
6824
6824
|
}).catch((err) => {
|
|
@@ -7252,19 +7252,19 @@ function applyInstance(inst) {
|
|
|
7252
7252
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7253
7253
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7254
7254
|
}
|
|
7255
|
-
var agentList = "
|
|
7256
|
-
var agentRow = "
|
|
7257
|
-
var toolGrid = "
|
|
7258
|
-
var toolRow = "
|
|
7259
|
-
var themeSeg = "
|
|
7260
|
-
var checkList = "
|
|
7261
|
-
var list$2 = "
|
|
7262
|
-
var flatCardRow = "
|
|
7263
|
-
var pop$1 = "
|
|
7264
|
-
var spinner = "
|
|
7265
|
-
var busy = "
|
|
7266
|
-
var pop = "
|
|
7267
|
-
var sectionCount = "
|
|
7255
|
+
var agentList = "_ed _cd _d1 _eb";
|
|
7256
|
+
var agentRow = "_fA _d2";
|
|
7257
|
+
var toolGrid = "_fI _eb";
|
|
7258
|
+
var toolRow = "_fJ _ec";
|
|
7259
|
+
var themeSeg = "_f7 _be";
|
|
7260
|
+
var checkList = "_gC _cb";
|
|
7261
|
+
var list$2 = "_ed _cd _d1 _eb";
|
|
7262
|
+
var flatCardRow = "_ee _ec";
|
|
7263
|
+
var pop$1 = "_fu __";
|
|
7264
|
+
var spinner = "_fx _2 _G";
|
|
7265
|
+
var busy = "_fk _fj";
|
|
7266
|
+
var pop = "_fm __";
|
|
7267
|
+
var sectionCount = "_ca _N _O";
|
|
7268
7268
|
var iconBtn$1 = "_5 _l";
|
|
7269
7269
|
//#endregion
|
|
7270
7270
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7305,18 +7305,18 @@ var icon_back_default = _template("R", (input) => {
|
|
|
7305
7305
|
var page_head_default = _template("u", (input) => {
|
|
7306
7306
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
7307
7307
|
const $scope0_id = _scope_id();
|
|
7308
|
-
_html(`<header${_attr_class("
|
|
7308
|
+
_html(`<header${_attr_class("_dW")}>`);
|
|
7309
7309
|
_if(() => {
|
|
7310
7310
|
if (input.backHref) {
|
|
7311
7311
|
const $scope1_id = _scope_id();
|
|
7312
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7312
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gM"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7313
7313
|
icon_back_default({ size: 14 });
|
|
7314
7314
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7315
7315
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7316
7316
|
return 0;
|
|
7317
7317
|
} else if (input.onBack) {
|
|
7318
7318
|
const $scope2_id = _scope_id();
|
|
7319
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7319
|
+
_html(`<button${_attr_class([iconBtnRow, "_gM"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7320
7320
|
icon_back_default({ size: 14 });
|
|
7321
7321
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7322
7322
|
_script($scope2_id, "u0");
|
|
@@ -7324,11 +7324,11 @@ var page_head_default = _template("u", (input) => {
|
|
|
7324
7324
|
return 1;
|
|
7325
7325
|
}
|
|
7326
7326
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
7327
|
-
_html(`<div${_attr_class("
|
|
7327
|
+
_html(`<div${_attr_class("_dY")}><h1${_attr("id", input.titleId)}${_attr_class("_dX")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7328
7328
|
_if(() => {
|
|
7329
7329
|
if (input.meta) {
|
|
7330
7330
|
const $scope3_id = _scope_id();
|
|
7331
|
-
_html(`<p${_attr_class("
|
|
7331
|
+
_html(`<p${_attr_class("_dZ")}>`);
|
|
7332
7332
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7333
7333
|
_html("</p>");
|
|
7334
7334
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7339,7 +7339,7 @@ var page_head_default = _template("u", (input) => {
|
|
|
7339
7339
|
_if(() => {
|
|
7340
7340
|
if (input.actions) {
|
|
7341
7341
|
const $scope4_id = _scope_id();
|
|
7342
|
-
_html(`<div${_attr_class("
|
|
7342
|
+
_html(`<div${_attr_class("_d0")}>`);
|
|
7343
7343
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7344
7344
|
_html("</div>");
|
|
7345
7345
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7407,7 +7407,7 @@ var icon_agent_default = _template("L", (input) => {
|
|
|
7407
7407
|
n: $badge__closures
|
|
7408
7408
|
});
|
|
7409
7409
|
});
|
|
7410
|
-
var usageNote = "
|
|
7410
|
+
var usageNote = "_gT _X";
|
|
7411
7411
|
//#endregion
|
|
7412
7412
|
//#region src/tags/icons/icon-warning.marko
|
|
7413
7413
|
var icon_warning_default = _template("sb", (input) => {
|
|
@@ -7437,11 +7437,11 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7437
7437
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
7438
7438
|
const $scope0_id = _scope_id();
|
|
7439
7439
|
const agent = input.agent;
|
|
7440
|
-
_html(`<div${_attr_class(["
|
|
7440
|
+
_html(`<div${_attr_class(["_gN", { ["_gO"]: input.hideName }])}><div${_attr_class("_gP")}>`);
|
|
7441
7441
|
_if(() => {
|
|
7442
7442
|
if (!input.hideName) {
|
|
7443
7443
|
const $scope1_id = _scope_id();
|
|
7444
|
-
_html(`<strong${_attr_class("
|
|
7444
|
+
_html(`<strong${_attr_class("_g8")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7445
7445
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7446
7446
|
return 0;
|
|
7447
7447
|
}
|
|
@@ -7449,7 +7449,7 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7449
7449
|
_if(() => {
|
|
7450
7450
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7451
7451
|
const $scope2_id = _scope_id();
|
|
7452
|
-
_html(`<span${_attr_class("
|
|
7452
|
+
_html(`<span${_attr_class("_gQ")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7453
7453
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7454
7454
|
return 0;
|
|
7455
7455
|
}
|
|
@@ -7457,21 +7457,21 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7457
7457
|
_if(() => {
|
|
7458
7458
|
if (agent.stale_seconds != null) {
|
|
7459
7459
|
const $scope3_id = _scope_id();
|
|
7460
|
-
_html(`<span${_attr_class("
|
|
7460
|
+
_html(`<span${_attr_class("_gR")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7461
7461
|
icon_warning_default({ size: 12 });
|
|
7462
7462
|
_html(` ${_text_resume($scope3_id, "c", duration(agent.stale_seconds * 1e3), $sg__input_agent * 2)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
7463
7463
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7464
7464
|
return 0;
|
|
7465
7465
|
}
|
|
7466
7466
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7467
|
-
_html(`</div><div${_attr_class(["
|
|
7467
|
+
_html(`</div><div${_attr_class(["_gS", { ["_g9"]: agent.stale_seconds != null }])}>`);
|
|
7468
7468
|
_for_of(agent.windows || [], (win) => {
|
|
7469
7469
|
const $scope4_id = _scope_id();
|
|
7470
7470
|
const pct = pctText(win.used_percent);
|
|
7471
7471
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7472
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7473
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7474
|
-
_html(`<div${_attr_class("
|
|
7472
|
+
const fillClass = win.used_percent >= 90 ? "_g1" : win.used_percent >= 70 ? "_g0" : win.used_percent >= 40 ? "_gZ" : "_gY";
|
|
7473
|
+
const pctClass = win.used_percent >= 90 ? "_g6" : win.used_percent >= 70 ? "_g5" : win.used_percent >= 40 ? "_g4" : "_g3";
|
|
7474
|
+
_html(`<div${_attr_class("_gU")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_gV")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_gW")}><span${_attr_class(["_gX", 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(["_g2", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_g7")}>`);
|
|
7475
7475
|
_if(() => {
|
|
7476
7476
|
if (label) {
|
|
7477
7477
|
const $scope6_id = _scope_id();
|
|
@@ -7548,7 +7548,7 @@ var icon_check_default = _template("V", (input) => {
|
|
|
7548
7548
|
});
|
|
7549
7549
|
//#endregion
|
|
7550
7550
|
//#region src/tags/sso-auth.marko
|
|
7551
|
-
var api$
|
|
7551
|
+
var api$9;
|
|
7552
7552
|
var watchProgress$3;
|
|
7553
7553
|
var sso_auth_default = _template("D", (input) => {
|
|
7554
7554
|
const $scope0_reason = _scope_reason(), $sg__input_items = _serialize_guard($scope0_reason, 2), $sg__input_skipped__OR__input_items = _serialize_guard($scope0_reason, 0), $sg__input_skipped = _serialize_guard($scope0_reason, 1);
|
|
@@ -7574,7 +7574,7 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7574
7574
|
});
|
|
7575
7575
|
await watcher.ready;
|
|
7576
7576
|
try {
|
|
7577
|
-
await api$
|
|
7577
|
+
await api$9(`/api/setup/${encodeURIComponent(host)}`, {
|
|
7578
7578
|
method: "POST",
|
|
7579
7579
|
headers: { "content-type": "application/json" },
|
|
7580
7580
|
body: JSON.stringify({ action: "auth-refresh" })
|
|
@@ -7588,14 +7588,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7588
7588
|
localCode = null;
|
|
7589
7589
|
}
|
|
7590
7590
|
}, "D0", $scope0_id);
|
|
7591
|
-
_html(`<div${_attr_class(["
|
|
7591
|
+
_html(`<div${_attr_class(["_hU", input.class])}>`);
|
|
7592
7592
|
_for_of(input.items, (s) => {
|
|
7593
7593
|
const $scope1_id = _scope_id();
|
|
7594
|
-
_html(`<div${_attr_class("
|
|
7594
|
+
_html(`<div${_attr_class("_hV")}><span${_attr_class("_hX")}><span${_attr_class("_hY")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hZ", "_h0"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7595
7595
|
_if(() => {
|
|
7596
7596
|
if (!busy) {
|
|
7597
7597
|
const $scope2_id = _scope_id();
|
|
7598
|
-
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
7598
|
+
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_h1"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7599
7599
|
_script($scope2_id, "D1");
|
|
7600
7600
|
writeScope($scope2_id, {});
|
|
7601
7601
|
return 0;
|
|
@@ -7610,13 +7610,13 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7610
7610
|
_if(() => {
|
|
7611
7611
|
if (localBusy && localCode) {
|
|
7612
7612
|
const $scope4_id = _scope_id();
|
|
7613
|
-
_html(`<div${_attr_class(["
|
|
7613
|
+
_html(`<div${_attr_class(["_hV", "_h2"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_h3")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_h4")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7614
7614
|
_script($scope4_id, "D2");
|
|
7615
7615
|
writeScope($scope4_id, {});
|
|
7616
7616
|
return 0;
|
|
7617
7617
|
} else if (localBusy) {
|
|
7618
7618
|
const $scope6_id = _scope_id();
|
|
7619
|
-
_html(`<div${_attr_class(["
|
|
7619
|
+
_html(`<div${_attr_class(["_hV", "_h2"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7620
7620
|
writeScope($scope6_id, {});
|
|
7621
7621
|
return 1;
|
|
7622
7622
|
}
|
|
@@ -7624,14 +7624,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7624
7624
|
_if(() => {
|
|
7625
7625
|
if (localError) {
|
|
7626
7626
|
const $scope5_id = _scope_id();
|
|
7627
|
-
_html(`<p${_attr_class(["
|
|
7627
|
+
_html(`<p${_attr_class(["_hV", "_h5"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7628
7628
|
writeScope($scope5_id, {});
|
|
7629
7629
|
return 0;
|
|
7630
7630
|
}
|
|
7631
7631
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7632
7632
|
_for_of(skipped, (s) => {
|
|
7633
7633
|
const $scope3_id = _scope_id();
|
|
7634
|
-
_html(`<div${_attr_class(["
|
|
7634
|
+
_html(`<div${_attr_class(["_hV", "_hW"])}><span${_attr_class("_hX")}><span${_attr_class("_hY")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hZ")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_h1"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7635
7635
|
_script($scope3_id, "D3");
|
|
7636
7636
|
writeScope($scope3_id, {
|
|
7637
7637
|
i: s?.org,
|
|
@@ -7699,7 +7699,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7699
7699
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7700
7700
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7701
7701
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7702
|
-
_html(`<li${_attr_class("
|
|
7702
|
+
_html(`<li${_attr_class("_fi")}>`);
|
|
7703
7703
|
_if(() => {
|
|
7704
7704
|
if (input.busy != null) {
|
|
7705
7705
|
const $scope1_id = _scope_id();
|
|
@@ -7709,20 +7709,20 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7709
7709
|
} else {
|
|
7710
7710
|
const $scope2_id = _scope_id();
|
|
7711
7711
|
const popId = _id();
|
|
7712
|
-
_html(`<button${_attr_class("
|
|
7712
|
+
_html(`<button${_attr_class("_fj")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7713
7713
|
_if(() => {
|
|
7714
7714
|
if (input.hint) {
|
|
7715
7715
|
const $scope3_id = _scope_id();
|
|
7716
|
-
_html(`<span${_attr_class("
|
|
7716
|
+
_html(`<span${_attr_class("_fl")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7717
7717
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7718
7718
|
return 0;
|
|
7719
7719
|
}
|
|
7720
7720
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7721
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7721
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_cf", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7722
7722
|
_if(() => {
|
|
7723
7723
|
if (input.description) {
|
|
7724
7724
|
const $scope4_id = _scope_id();
|
|
7725
|
-
_html(`<span${_attr_class("
|
|
7725
|
+
_html(`<span${_attr_class("_ch")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7726
7726
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7727
7727
|
return 0;
|
|
7728
7728
|
}
|
|
@@ -7730,12 +7730,12 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7730
7730
|
_if(() => {
|
|
7731
7731
|
if (input.sourceUrl) {
|
|
7732
7732
|
const $scope5_id = _scope_id();
|
|
7733
|
-
_html(`<a${_attr_class(["
|
|
7733
|
+
_html(`<a${_attr_class(["_ch", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7734
7734
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7735
7735
|
return 0;
|
|
7736
7736
|
} else if (input.source) {
|
|
7737
7737
|
const $scope6_id = _scope_id();
|
|
7738
|
-
_html(`<span${_attr_class("
|
|
7738
|
+
_html(`<span${_attr_class("_ch")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7739
7739
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7740
7740
|
_: _scope_with_id($scope2_id),
|
|
7741
7741
|
Cs: $si__input_source && 1
|
|
@@ -7743,7 +7743,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7743
7743
|
return 1;
|
|
7744
7744
|
} else if (input.noteLocal) {
|
|
7745
7745
|
const $scope10_id = _scope_id();
|
|
7746
|
-
_html(`<span${_attr_class(["
|
|
7746
|
+
_html(`<span${_attr_class(["_ch", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7747
7747
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7748
7748
|
return 2;
|
|
7749
7749
|
}
|
|
@@ -7751,7 +7751,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7751
7751
|
_if(() => {
|
|
7752
7752
|
if (input.tags) {
|
|
7753
7753
|
const $scope7_id = _scope_id();
|
|
7754
|
-
_html(`<span${_attr_class("
|
|
7754
|
+
_html(`<span${_attr_class("_cg")}>`);
|
|
7755
7755
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7756
7756
|
_html("</span>");
|
|
7757
7757
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7761,7 +7761,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7761
7761
|
_if(() => {
|
|
7762
7762
|
if (input.actions) {
|
|
7763
7763
|
const $scope8_id = _scope_id();
|
|
7764
|
-
_html(`<div${_attr_class("
|
|
7764
|
+
_html(`<div${_attr_class("_fn")}>`);
|
|
7765
7765
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7766
7766
|
_html("</div>");
|
|
7767
7767
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7872,7 +7872,7 @@ var icon_moon_default = _template("jb", (input) => {
|
|
|
7872
7872
|
});
|
|
7873
7873
|
//#endregion
|
|
7874
7874
|
//#region src/tags/prompt-dialog.css.ts
|
|
7875
|
-
var promptDlg = "
|
|
7875
|
+
var promptDlg = "_hT _hP";
|
|
7876
7876
|
//#endregion
|
|
7877
7877
|
//#region src/tags/dialog-close.marko
|
|
7878
7878
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7896,7 +7896,7 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7896
7896
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
7897
7897
|
const dismissable = input.dismissable !== false;
|
|
7898
7898
|
let open = input.open;
|
|
7899
|
-
_html(`<dialog${_attr_class(["
|
|
7899
|
+
_html(`<dialog${_attr_class(["_hO", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7900
7900
|
...htmlInput,
|
|
7901
7901
|
open: null
|
|
7902
7902
|
}, {
|
|
@@ -7906,20 +7906,20 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7906
7906
|
closedby: 1,
|
|
7907
7907
|
"on-cancel": 1,
|
|
7908
7908
|
"on-close": 1
|
|
7909
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7909
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_hR")}>`);
|
|
7910
7910
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7911
7911
|
_html("</div>");
|
|
7912
7912
|
_if(() => {
|
|
7913
7913
|
if (footer) {
|
|
7914
7914
|
const $scope1_id = _scope_id();
|
|
7915
|
-
_html(`<form method=dialog${_attr_class("
|
|
7915
|
+
_html(`<form method=dialog${_attr_class("_hS")}>`);
|
|
7916
7916
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7917
7917
|
_html("</form>");
|
|
7918
7918
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7919
7919
|
return 0;
|
|
7920
7920
|
} else if (input.openChange) {
|
|
7921
7921
|
const $scope2_id = _scope_id();
|
|
7922
|
-
_html(`<form method=dialog${_attr_class("
|
|
7922
|
+
_html(`<form method=dialog${_attr_class("_hS")}>`);
|
|
7923
7923
|
dialog_close_default({
|
|
7924
7924
|
class: ["_q", "_r"],
|
|
7925
7925
|
content: _content("s0", () => {
|
|
@@ -8003,7 +8003,7 @@ var prompt_dialog_default = _template("v", (input) => {
|
|
|
8003
8003
|
content: _content("v7", () => {
|
|
8004
8004
|
_scope_reason();
|
|
8005
8005
|
const $scope2_id = _scope_id();
|
|
8006
|
-
_html(`<h2${_attr_class("
|
|
8006
|
+
_html(`<h2${_attr_class("_hQ")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
8007
8007
|
value = _new_value;
|
|
8008
8008
|
}, "v0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8009
8009
|
_script($scope2_id, "v5");
|
|
@@ -8033,7 +8033,7 @@ var prompt_dialog_default = _template("v", (input) => {
|
|
|
8033
8033
|
});
|
|
8034
8034
|
//#endregion
|
|
8035
8035
|
//#region src/tags/settings-page.marko
|
|
8036
|
-
var api$
|
|
8036
|
+
var api$8;
|
|
8037
8037
|
var isTransientApiError$2;
|
|
8038
8038
|
var watchProgress$2;
|
|
8039
8039
|
var MISSING_LABEL = {
|
|
@@ -8129,7 +8129,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8129
8129
|
}, "y9", $scope0_id);
|
|
8130
8130
|
const syncAgents = _resume(async () => {
|
|
8131
8131
|
try {
|
|
8132
|
-
const snap = await api$
|
|
8132
|
+
const snap = await api$8("/api/settings");
|
|
8133
8133
|
input$3.agentsChange?.(snap.agents);
|
|
8134
8134
|
if (snap.preferredAgent !== input$3.preferred) input$3.preferredChange?.(snap.preferredAgent);
|
|
8135
8135
|
} catch {}
|
|
@@ -8137,7 +8137,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8137
8137
|
let retryWhenBack = false;
|
|
8138
8138
|
const loadSetup = _resume(async (refresh) => {
|
|
8139
8139
|
try {
|
|
8140
|
-
applySetup(await api$
|
|
8140
|
+
applySetup(await api$8(`/api/setup${refresh ? "?refresh" : ""}`));
|
|
8141
8141
|
retryWhenBack = false;
|
|
8142
8142
|
} catch (err) {
|
|
8143
8143
|
if (isTransientApiError$2(err)) retryWhenBack = true;
|
|
@@ -8146,7 +8146,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8146
8146
|
}, "y11", $scope0_id);
|
|
8147
8147
|
const loadSelf = _resume(async (refresh) => {
|
|
8148
8148
|
try {
|
|
8149
|
-
const info = await api$
|
|
8149
|
+
const info = await api$8(`/api/setup/self${refresh ? "?refresh" : ""}`);
|
|
8150
8150
|
self = info;
|
|
8151
8151
|
if (info.updating) selfUpdating = true;
|
|
8152
8152
|
} catch {}
|
|
@@ -8156,7 +8156,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8156
8156
|
selfUpdating = true;
|
|
8157
8157
|
const from = self.version;
|
|
8158
8158
|
try {
|
|
8159
|
-
await api$
|
|
8159
|
+
await api$8("/api/setup/self", { method: "POST" });
|
|
8160
8160
|
} catch (err) {
|
|
8161
8161
|
selfUpdating = false;
|
|
8162
8162
|
error = String(err.message || err);
|
|
@@ -8165,7 +8165,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8165
8165
|
const started = Date.now();
|
|
8166
8166
|
const tick = async () => {
|
|
8167
8167
|
try {
|
|
8168
|
-
if ((await api$
|
|
8168
|
+
if ((await api$8("/api/setup/self")).version !== from) {
|
|
8169
8169
|
location.reload();
|
|
8170
8170
|
return;
|
|
8171
8171
|
}
|
|
@@ -8207,7 +8207,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8207
8207
|
});
|
|
8208
8208
|
await watcher.ready;
|
|
8209
8209
|
try {
|
|
8210
|
-
applySetup(await api$
|
|
8210
|
+
applySetup(await api$8(`/api/setup/${encodeURIComponent(id)}`, {
|
|
8211
8211
|
method: "POST",
|
|
8212
8212
|
headers: { "content-type": "application/json" },
|
|
8213
8213
|
body: JSON.stringify({
|
|
@@ -8241,7 +8241,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8241
8241
|
const loadSkills = _resume(async () => {
|
|
8242
8242
|
const seq = ++skillSeq.issued;
|
|
8243
8243
|
try {
|
|
8244
|
-
applySkills(await api$
|
|
8244
|
+
applySkills(await api$8("/api/skills"), seq);
|
|
8245
8245
|
} catch {}
|
|
8246
8246
|
}, "y20", $scope0_id);
|
|
8247
8247
|
const runSkill = _resume(async (key, body) => {
|
|
@@ -8252,7 +8252,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8252
8252
|
await watcher.ready;
|
|
8253
8253
|
const seq = ++skillSeq.issued;
|
|
8254
8254
|
try {
|
|
8255
|
-
applySkills(await api$
|
|
8255
|
+
applySkills(await api$8("/api/skills", {
|
|
8256
8256
|
method: "POST",
|
|
8257
8257
|
headers: { "content-type": "application/json" },
|
|
8258
8258
|
body: JSON.stringify(body)
|
|
@@ -8295,7 +8295,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8295
8295
|
backupBusy = "preflight";
|
|
8296
8296
|
backupLine = "";
|
|
8297
8297
|
try {
|
|
8298
|
-
const found = await api$
|
|
8298
|
+
const found = await api$8("/api/backup/preflight", { method: "POST" });
|
|
8299
8299
|
if (found.workspaces.length) preflight = found;
|
|
8300
8300
|
else downloadManifest();
|
|
8301
8301
|
} catch (err) {
|
|
@@ -8318,7 +8318,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8318
8318
|
return;
|
|
8319
8319
|
}
|
|
8320
8320
|
try {
|
|
8321
|
-
const preview = await api$
|
|
8321
|
+
const preview = await api$8("/api/backup/preview", {
|
|
8322
8322
|
method: "POST",
|
|
8323
8323
|
headers: { "content-type": "application/json" },
|
|
8324
8324
|
body: JSON.stringify(manifest)
|
|
@@ -8354,7 +8354,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8354
8354
|
});
|
|
8355
8355
|
await watcher.ready;
|
|
8356
8356
|
try {
|
|
8357
|
-
const n = (await api$
|
|
8357
|
+
const n = (await api$8("/api/backup/restore", {
|
|
8358
8358
|
method: "POST",
|
|
8359
8359
|
headers: { "content-type": "application/json" },
|
|
8360
8360
|
body: JSON.stringify({
|
|
@@ -8390,7 +8390,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8390
8390
|
skillSearching = true;
|
|
8391
8391
|
skillTimer.id = setTimeout(async () => {
|
|
8392
8392
|
try {
|
|
8393
|
-
const res = await api$
|
|
8393
|
+
const res = await api$8(`/api/skills/search?q=${encodeURIComponent(q.trim())}`);
|
|
8394
8394
|
if (skillQuery === q) skillHits = res;
|
|
8395
8395
|
} catch (err) {
|
|
8396
8396
|
error = String(err.message || err);
|
|
@@ -8403,7 +8403,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8403
8403
|
hostBusy = true;
|
|
8404
8404
|
error = null;
|
|
8405
8405
|
try {
|
|
8406
|
-
applySetup(await api$
|
|
8406
|
+
applySetup(await api$8("/api/github/hosts", {
|
|
8407
8407
|
method: "POST",
|
|
8408
8408
|
headers: { "content-type": "application/json" },
|
|
8409
8409
|
body: JSON.stringify({
|
|
@@ -8427,7 +8427,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8427
8427
|
const setPreferred = _resume(async (agent) => {
|
|
8428
8428
|
input$3.preferredChange?.(agent);
|
|
8429
8429
|
try {
|
|
8430
|
-
await api$
|
|
8430
|
+
await api$8("/api/settings", {
|
|
8431
8431
|
method: "PUT",
|
|
8432
8432
|
headers: { "content-type": "application/json" },
|
|
8433
8433
|
body: JSON.stringify({ preferredAgent: agent })
|
|
@@ -8447,7 +8447,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8447
8447
|
clearTimeout(saveTimer.id);
|
|
8448
8448
|
saveTimer.id = setTimeout(async () => {
|
|
8449
8449
|
try {
|
|
8450
|
-
const snap = await api$
|
|
8450
|
+
const snap = await api$8("/api/settings", {
|
|
8451
8451
|
method: "PUT",
|
|
8452
8452
|
headers: { "content-type": "application/json" },
|
|
8453
8453
|
body: JSON.stringify({ instance: next })
|
|
@@ -8467,7 +8467,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8467
8467
|
if (on) off.delete(id);
|
|
8468
8468
|
else off.add(id);
|
|
8469
8469
|
try {
|
|
8470
|
-
const snap = await api$
|
|
8470
|
+
const snap = await api$8("/api/settings", {
|
|
8471
8471
|
method: "PUT",
|
|
8472
8472
|
headers: { "content-type": "application/json" },
|
|
8473
8473
|
body: JSON.stringify({ disabledAgents: [...off] })
|
|
@@ -8499,7 +8499,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8499
8499
|
searching = true;
|
|
8500
8500
|
searchTimer.id = setTimeout(async () => {
|
|
8501
8501
|
try {
|
|
8502
|
-
const res = await api$
|
|
8502
|
+
const res = await api$8(`/api/setup/search?q=${encodeURIComponent(q.trim())}`);
|
|
8503
8503
|
if (query === q) hits = res;
|
|
8504
8504
|
} catch (err) {
|
|
8505
8505
|
error = String(err.message || err);
|
|
@@ -8525,7 +8525,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8525
8525
|
const githubId = _id();
|
|
8526
8526
|
const backupId = _id();
|
|
8527
8527
|
const machineId = _id();
|
|
8528
|
-
_html(`<div${_attr_class("
|
|
8528
|
+
_html(`<div${_attr_class("_dT")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dU")}><div${_attr_class("_dV")}>`);
|
|
8529
8529
|
_set_serialize_reason({
|
|
8530
8530
|
0: _serialize_guard($scope0_reason, 4),
|
|
8531
8531
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8537,7 +8537,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8537
8537
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("y44", () => {
|
|
8538
8538
|
_scope_reason();
|
|
8539
8539
|
const $scope4_id = _scope_id();
|
|
8540
|
-
_html(`<span${_attr_class("
|
|
8540
|
+
_html(`<span${_attr_class("_fz")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8541
8541
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8542
8542
|
_resume_branch($scope4_id);
|
|
8543
8543
|
}, $scope0_id) });
|
|
@@ -8590,16 +8590,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8590
8590
|
_if(() => {
|
|
8591
8591
|
if (selfUpdatePending || selfUpdating) {
|
|
8592
8592
|
const $scope44_id = _scope_id();
|
|
8593
|
-
_html(`<div${_attr_class("
|
|
8593
|
+
_html(`<div${_attr_class("_ga")} role=status><div${_attr_class("_gb")}>`);
|
|
8594
8594
|
_if(() => {
|
|
8595
8595
|
if (selfUpdating) {
|
|
8596
8596
|
const $scope79_id = _scope_id();
|
|
8597
|
-
_html(`<span${_attr_class("
|
|
8597
|
+
_html(`<span${_attr_class("_gc")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_gd")}>The app restarts and reloads when it is done.</span>`);
|
|
8598
8598
|
writeScope($scope79_id, {});
|
|
8599
8599
|
return 0;
|
|
8600
8600
|
} else {
|
|
8601
8601
|
const $scope45_id = _scope_id();
|
|
8602
|
-
_html(`<span${_attr_class("
|
|
8602
|
+
_html(`<span${_attr_class("_gc")}>Update available</span><span${_attr_class("_gd")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8603
8603
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8604
8604
|
return 1;
|
|
8605
8605
|
}
|
|
@@ -8618,11 +8618,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8618
8618
|
return 0;
|
|
8619
8619
|
}
|
|
8620
8620
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8621
|
-
_html(`<section${_attr_class("
|
|
8621
|
+
_html(`<section${_attr_class("_b9")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_b_")}><h2${_attr("id", agentsId)}${_attr_class("_cm")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_fB")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8622
8622
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8623
8623
|
setPreferred(v);
|
|
8624
8624
|
}, "y2", $scope0_id), () => {
|
|
8625
|
-
_html(`<select${_attr_class(["_p", "
|
|
8625
|
+
_html(`<select${_attr_class(["_p", "_fC"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8626
8626
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8627
8627
|
const $scope80_id = _scope_id();
|
|
8628
8628
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope80_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope80_id, "a", $sg__input_agents)}`);
|
|
@@ -8636,14 +8636,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8636
8636
|
const rows = lone ? [] : a.instances;
|
|
8637
8637
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8638
8638
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8639
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8639
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_fD", { ["_fF"]: lone && !lone.enabled }])}>`);
|
|
8640
8640
|
_set_serialize_reason(12);
|
|
8641
8641
|
const $childScope3 = _peek_scope_id();
|
|
8642
8642
|
icon_agent_default({
|
|
8643
8643
|
agent: a.id,
|
|
8644
8644
|
size: 18
|
|
8645
8645
|
});
|
|
8646
|
-
_html(`<div${_attr_class("
|
|
8646
|
+
_html(`<div${_attr_class("_ce")}><span${_attr_class("_cg")}><span${_attr_class("_cf")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8647
8647
|
_if(() => {
|
|
8648
8648
|
if (lone && input$3.preferred === lone.id) {
|
|
8649
8649
|
const $scope81_id = _scope_id();
|
|
@@ -8656,12 +8656,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8656
8656
|
_if(() => {
|
|
8657
8657
|
if (active.has(a.id)) {
|
|
8658
8658
|
const $scope12_id = _scope_id();
|
|
8659
|
-
_html(`<span${_attr_class("
|
|
8659
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8660
8660
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8661
8661
|
return 0;
|
|
8662
8662
|
} else if (!a.installed) {
|
|
8663
8663
|
const $scope82_id = _scope_id();
|
|
8664
|
-
_html(`<span${_attr_class("
|
|
8664
|
+
_html(`<span${_attr_class("_ch")}>Not installed</span>`);
|
|
8665
8665
|
writeScope($scope82_id, {});
|
|
8666
8666
|
return 1;
|
|
8667
8667
|
}
|
|
@@ -8689,15 +8689,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8689
8689
|
_if(() => {
|
|
8690
8690
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8691
8691
|
const $scope2_id = _scope_id();
|
|
8692
|
-
_html(`<ul${_attr_class(["
|
|
8692
|
+
_html(`<ul${_attr_class(["_fH", { ["_fF"]: lone && !lone.enabled }])}>`);
|
|
8693
8693
|
_for_of(rows, (inst) => {
|
|
8694
8694
|
const $scope3_id = _scope_id();
|
|
8695
8695
|
const accounts = accountsFor(inst.id);
|
|
8696
|
-
_html(`<li${_attr_class(["
|
|
8696
|
+
_html(`<li${_attr_class(["_fE", { ["_fF"]: !inst.enabled }])}><div${_attr_class("_fD")}>`);
|
|
8697
8697
|
_set_serialize_reason(12);
|
|
8698
8698
|
const $childScope4 = _peek_scope_id();
|
|
8699
8699
|
icon_agent_default({ agent: inst.id });
|
|
8700
|
-
_html(`<span${_attr_class(["
|
|
8700
|
+
_html(`<span${_attr_class(["_fG", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8701
8701
|
_if(() => {
|
|
8702
8702
|
if (input$3.preferred === inst.id) {
|
|
8703
8703
|
const $scope83_id = _scope_id();
|
|
@@ -8779,21 +8779,21 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8779
8779
|
_if(() => {
|
|
8780
8780
|
if (!usage && families.length) {
|
|
8781
8781
|
const $scope88_id = _scope_id();
|
|
8782
|
-
_html(`<p${_attr_class("
|
|
8782
|
+
_html(`<p${_attr_class("_cj")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8783
8783
|
writeScope($scope88_id, {});
|
|
8784
8784
|
return 0;
|
|
8785
8785
|
} else if (usage?.error) {
|
|
8786
8786
|
const $scope8_id = _scope_id();
|
|
8787
|
-
_html(`<p${_attr_class("
|
|
8787
|
+
_html(`<p${_attr_class("_cj")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8788
8788
|
writeScope($scope8_id, {});
|
|
8789
8789
|
return 1;
|
|
8790
8790
|
}
|
|
8791
8791
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8792
|
-
_html(`</section><section${_attr_class("
|
|
8792
|
+
_html(`</section><section${_attr_class("_b9")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_b_")}><h2${_attr("id", githubId)}${_attr_class("_cm")}>GitHub</h2>`);
|
|
8793
8793
|
_if(() => {
|
|
8794
8794
|
if (setup && !addingHost) {
|
|
8795
8795
|
const $scope42_id = _scope_id();
|
|
8796
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8796
|
+
_html(`<button${_attr_class([iconBtnRow, "_fQ"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8797
8797
|
icon_plus_default({ size: 16 });
|
|
8798
8798
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8799
8799
|
_script($scope42_id, "y51");
|
|
@@ -8805,10 +8805,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8805
8805
|
if (setup) {
|
|
8806
8806
|
const $scope41_id = _scope_id();
|
|
8807
8807
|
_html(`<form${_attr_class([
|
|
8808
|
-
"
|
|
8809
|
-
"
|
|
8810
|
-
{ ["
|
|
8811
|
-
])}><label${_attr_class(["_1", "
|
|
8808
|
+
"_fo",
|
|
8809
|
+
"_fQ",
|
|
8810
|
+
{ ["_fp"]: !addingHost }
|
|
8811
|
+
])}><label${_attr_class(["_1", "_fr"])}>`);
|
|
8812
8812
|
icon_github_default({
|
|
8813
8813
|
size: 14,
|
|
8814
8814
|
class: "_2"
|
|
@@ -8818,12 +8818,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8818
8818
|
}, "y3", $scope41_id))}${_attr_class([
|
|
8819
8819
|
"_Z",
|
|
8820
8820
|
"_3",
|
|
8821
|
-
"
|
|
8821
|
+
"_fs"
|
|
8822
8822
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8823
8823
|
btnSm,
|
|
8824
8824
|
"_r",
|
|
8825
|
-
"
|
|
8826
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
8825
|
+
"_fP"
|
|
8826
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "_ft"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8827
8827
|
icon_xmark_default({ size: 14 });
|
|
8828
8828
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8829
8829
|
_script($scope41_id, "y52");
|
|
@@ -8831,19 +8831,19 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8831
8831
|
return 0;
|
|
8832
8832
|
}
|
|
8833
8833
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8834
|
-
_html(`</div><div${_attr_class(["
|
|
8834
|
+
_html(`</div><div${_attr_class(["_cd", "_d1"])}>`);
|
|
8835
8835
|
_for_of(setup?.github || [], (h) => {
|
|
8836
8836
|
const $scope6_id = _scope_id();
|
|
8837
8837
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8838
8838
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8839
8839
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8840
8840
|
const busy = active.has(h.host);
|
|
8841
|
-
_html(`<div${_attr_class(["
|
|
8841
|
+
_html(`<div${_attr_class(["_d2", "_fR"])}><div${_attr_class("_fS")}>`);
|
|
8842
8842
|
icon_github_default({
|
|
8843
8843
|
size: 18,
|
|
8844
|
-
class: "
|
|
8844
|
+
class: "_fT"
|
|
8845
8845
|
});
|
|
8846
|
-
_html(`<div${_attr_class("
|
|
8846
|
+
_html(`<div${_attr_class("_ce")}><span${_attr_class("_cg")}><span${_attr_class("_cf")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8847
8847
|
_if(() => {
|
|
8848
8848
|
if (h.isEnterprise) {
|
|
8849
8849
|
const $scope91_id = _scope_id();
|
|
@@ -8856,25 +8856,25 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8856
8856
|
_if(() => {
|
|
8857
8857
|
if (busy) {
|
|
8858
8858
|
const $scope13_id = _scope_id();
|
|
8859
|
-
_html(`<span${_attr_class(["
|
|
8859
|
+
_html(`<span${_attr_class(["_ch", "_fU"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8860
8860
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8861
8861
|
return 0;
|
|
8862
8862
|
} else if (h.authed) {
|
|
8863
8863
|
const $scope89_id = _scope_id();
|
|
8864
|
-
_html(`<span${_attr_class(["
|
|
8864
|
+
_html(`<span${_attr_class(["_ch", "_fU"])}>`);
|
|
8865
8865
|
icon_check_default({
|
|
8866
8866
|
size: 12,
|
|
8867
|
-
class: "
|
|
8867
|
+
class: "_fV"
|
|
8868
8868
|
});
|
|
8869
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8869
|
+
_html(` Signed in as <strong${_attr_class("_fX")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8870
8870
|
writeScope($scope89_id, {});
|
|
8871
8871
|
return 1;
|
|
8872
8872
|
} else if (h.error) {
|
|
8873
8873
|
const $scope90_id = _scope_id();
|
|
8874
8874
|
_html(`<span${_attr_class([
|
|
8875
|
-
"
|
|
8876
|
-
"
|
|
8877
|
-
"
|
|
8875
|
+
"_ch",
|
|
8876
|
+
"_fU",
|
|
8877
|
+
"_fW"
|
|
8878
8878
|
])}>`);
|
|
8879
8879
|
icon_warning_default({ size: 12 });
|
|
8880
8880
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8882,7 +8882,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8882
8882
|
return 2;
|
|
8883
8883
|
} else {
|
|
8884
8884
|
const $scope92_id = _scope_id();
|
|
8885
|
-
_html(`<span${_attr_class(["
|
|
8885
|
+
_html(`<span${_attr_class(["_ch", "_fU"])}>Not signed in</span>`);
|
|
8886
8886
|
writeScope($scope92_id, {});
|
|
8887
8887
|
return 3;
|
|
8888
8888
|
}
|
|
@@ -8913,7 +8913,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8913
8913
|
if (h.isEnterprise) {
|
|
8914
8914
|
const $scope33_id = _scope_id();
|
|
8915
8915
|
_html(`<button${_attr_class([
|
|
8916
|
-
"
|
|
8916
|
+
"_ci",
|
|
8917
8917
|
"_8",
|
|
8918
8918
|
"_9",
|
|
8919
8919
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8947,7 +8947,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8947
8947
|
_if(() => {
|
|
8948
8948
|
if (busy && authCodes.has(h.host)) {
|
|
8949
8949
|
const $scope30_id = _scope_id();
|
|
8950
|
-
_html(`<div${_attr_class("
|
|
8950
|
+
_html(`<div${_attr_class("_fY")}><span${_attr_class("_fZ")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_f1")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_f0")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8951
8951
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8952
8952
|
return 0;
|
|
8953
8953
|
}
|
|
@@ -8959,7 +8959,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8959
8959
|
_set_serialize_reason(30);
|
|
8960
8960
|
const $childScope9 = _peek_scope_id();
|
|
8961
8961
|
sso_auth_default({
|
|
8962
|
-
class: ["
|
|
8962
|
+
class: ["_d2", "_f2"],
|
|
8963
8963
|
items: hostSso$1,
|
|
8964
8964
|
skipped: skippedSso,
|
|
8965
8965
|
busy,
|
|
@@ -8993,23 +8993,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8993
8993
|
_if(() => {
|
|
8994
8994
|
if (setup && !setup.github.length) {
|
|
8995
8995
|
const $scope95_id = _scope_id();
|
|
8996
|
-
_html(`<p${_attr_class("
|
|
8996
|
+
_html(`<p${_attr_class("_cj")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8997
8997
|
writeScope($scope95_id, {});
|
|
8998
8998
|
return 0;
|
|
8999
8999
|
}
|
|
9000
9000
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
9001
|
-
_html(`</section><section${_attr_class("
|
|
9001
|
+
_html(`</section><section${_attr_class("_b9")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_b_")}><h2${_attr("id", machineId)}${_attr_class("_cm")}>Machine</h2></div><div${_attr_class(["_cd", "_d1"])}><div${_attr_class(["_d2", "_d3"])}><div${_attr_class(["_d4", { ["_d5"]: skillsOpen }])}><button${_attr_class("_d6")} aria-expanded=true>`);
|
|
9002
9002
|
_set_serialize_reason(1);
|
|
9003
9003
|
const $childScope10 = _peek_scope_id();
|
|
9004
9004
|
icon_chevron_right_default({
|
|
9005
9005
|
size: 12,
|
|
9006
|
-
class: ["
|
|
9006
|
+
class: ["_d_", { ["_ea"]: skillsOpen }]
|
|
9007
9007
|
});
|
|
9008
|
-
_html(`<span${_attr_class("
|
|
9008
|
+
_html(`<span${_attr_class("_d7")}>Skills</span>`);
|
|
9009
9009
|
_if(() => {
|
|
9010
9010
|
if (skills?.global.length) {
|
|
9011
9011
|
const $scope51_id = _scope_id();
|
|
9012
|
-
_html(`<span${_attr_class("
|
|
9012
|
+
_html(`<span${_attr_class("_d8")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9013
9013
|
writeScope($scope51_id, {});
|
|
9014
9014
|
return 0;
|
|
9015
9015
|
}
|
|
@@ -9029,7 +9029,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9029
9029
|
_if(() => {
|
|
9030
9030
|
if (skills?.available && skills.agents.length) {
|
|
9031
9031
|
const $scope14_id = _scope_id();
|
|
9032
|
-
_html(`<div${_attr_class(["
|
|
9032
|
+
_html(`<div${_attr_class(["_fo", { ["_fp"]: true }])}><label${_attr_class(["_1", "_fr"])}>`);
|
|
9033
9033
|
_if(() => {
|
|
9034
9034
|
if (skillSearching) {
|
|
9035
9035
|
const $scope96_id = _scope_id();
|
|
@@ -9049,14 +9049,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9049
9049
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9050
9050
|
"_Z",
|
|
9051
9051
|
"_3",
|
|
9052
|
-
"
|
|
9053
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9052
|
+
"_fs"
|
|
9053
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_ft"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9054
9054
|
icon_xmark_default({ size: 14 });
|
|
9055
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9055
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_fv"])}${_attr("hidden", true)}>`);
|
|
9056
9056
|
_if(() => {
|
|
9057
9057
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9058
9058
|
const $scope98_id = _scope_id();
|
|
9059
|
-
_html(`<li${_attr_class("
|
|
9059
|
+
_html(`<li${_attr_class("_fw")}>Searching skills.sh…</li>`);
|
|
9060
9060
|
writeScope($scope98_id, {});
|
|
9061
9061
|
return 0;
|
|
9062
9062
|
}
|
|
@@ -9064,11 +9064,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9064
9064
|
_if(() => {
|
|
9065
9065
|
if (looksLikeSource(skillQuery)) {
|
|
9066
9066
|
const $scope15_id = _scope_id();
|
|
9067
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9067
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_ce")}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9068
9068
|
_if(() => {
|
|
9069
9069
|
if (active.has(skillQuery.trim())) {
|
|
9070
9070
|
const $scope16_id = _scope_id();
|
|
9071
|
-
_html(`<span${_attr_class("
|
|
9071
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9072
9072
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9073
9073
|
Ch2: 3,
|
|
9074
9074
|
Chr: 1
|
|
@@ -9076,7 +9076,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9076
9076
|
return 0;
|
|
9077
9077
|
} else {
|
|
9078
9078
|
const $scope99_id = _scope_id();
|
|
9079
|
-
_html(`<span${_attr_class("
|
|
9079
|
+
_html(`<span${_attr_class("_ch")}>Add straight from this source</span>`);
|
|
9080
9080
|
writeScope($scope99_id, {});
|
|
9081
9081
|
return 1;
|
|
9082
9082
|
}
|
|
@@ -9099,16 +9099,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9099
9099
|
_for_of(skillHits || [], (h) => {
|
|
9100
9100
|
const $scope17_id = _scope_id();
|
|
9101
9101
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9102
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9102
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_ce")}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9103
9103
|
_if(() => {
|
|
9104
9104
|
if (active.has(h.skillId)) {
|
|
9105
9105
|
const $scope18_id = _scope_id();
|
|
9106
|
-
_html(`<span${_attr_class("
|
|
9106
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9107
9107
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9108
9108
|
return 0;
|
|
9109
9109
|
} else {
|
|
9110
9110
|
const $scope100_id = _scope_id();
|
|
9111
|
-
_html(`<span${_attr_class("
|
|
9111
|
+
_html(`<span${_attr_class("_ch")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9112
9112
|
writeScope($scope100_id, {});
|
|
9113
9113
|
return 1;
|
|
9114
9114
|
}
|
|
@@ -9156,7 +9156,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9156
9156
|
_if(() => {
|
|
9157
9157
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9158
9158
|
const $scope53_id = _scope_id();
|
|
9159
|
-
_html(`<li${_attr_class("
|
|
9159
|
+
_html(`<li${_attr_class("_fw")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9160
9160
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9161
9161
|
return 0;
|
|
9162
9162
|
}
|
|
@@ -9171,22 +9171,22 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9171
9171
|
_if(() => {
|
|
9172
9172
|
{
|
|
9173
9173
|
const $scope19_id = _scope_id();
|
|
9174
|
-
_html(`<div${_attr_class("
|
|
9174
|
+
_html(`<div${_attr_class("_d9")}>`);
|
|
9175
9175
|
_if(() => {
|
|
9176
9176
|
if (skills && !skills.agents.length) {
|
|
9177
9177
|
const $scope103_id = _scope_id();
|
|
9178
|
-
_html(`<p${_attr_class("
|
|
9178
|
+
_html(`<p${_attr_class("_cj")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9179
9179
|
writeScope($scope103_id, {});
|
|
9180
9180
|
return 0;
|
|
9181
9181
|
} else if (skills && !skills.available) {
|
|
9182
9182
|
const $scope20_id = _scope_id();
|
|
9183
|
-
_html(`<p${_attr_class("
|
|
9183
|
+
_html(`<p${_attr_class("_cj")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope20_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope20_id, "b")}</p>`);
|
|
9184
9184
|
_script($scope20_id, "y60");
|
|
9185
9185
|
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9186
9186
|
return 1;
|
|
9187
9187
|
}
|
|
9188
9188
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9189
|
-
_html(`<ul${_attr_class("
|
|
9189
|
+
_html(`<ul${_attr_class("_fh")}>`);
|
|
9190
9190
|
_for_of(skills?.global || [], (s) => {
|
|
9191
9191
|
const $scope21_id = _scope_id();
|
|
9192
9192
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9262,7 +9262,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9262
9262
|
_if(() => {
|
|
9263
9263
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9264
9264
|
const $scope108_id = _scope_id();
|
|
9265
|
-
_html(`<p${_attr_class("
|
|
9265
|
+
_html(`<p${_attr_class("_cj")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9266
9266
|
writeScope($scope108_id, {});
|
|
9267
9267
|
return 0;
|
|
9268
9268
|
}
|
|
@@ -9272,14 +9272,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9272
9272
|
return 0;
|
|
9273
9273
|
}
|
|
9274
9274
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9275
|
-
_html(`</div><div${_attr_class(["
|
|
9275
|
+
_html(`</div><div${_attr_class(["_d2", "_d3"])}><div${_attr_class(["_d4", { ["_d5"]: machineOpen }])}><button${_attr_class("_d6")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9276
9276
|
_set_serialize_reason(1);
|
|
9277
9277
|
const $childScope12 = _peek_scope_id();
|
|
9278
9278
|
icon_chevron_right_default({
|
|
9279
9279
|
size: 12,
|
|
9280
|
-
class: ["
|
|
9280
|
+
class: ["_d_", { ["_ea"]: machineOpen }]
|
|
9281
9281
|
});
|
|
9282
|
-
_html(`<span${_attr_class("
|
|
9282
|
+
_html(`<span${_attr_class("_d7")}>Tools</span><span${_attr_class("_d8")}>${_text_resume($scope0_id, "ai", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "aj", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "ak", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
9283
9283
|
_if(() => {
|
|
9284
9284
|
if (outdatedIds.length > 1) {
|
|
9285
9285
|
const $scope22_id = _scope_id();
|
|
@@ -9312,7 +9312,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9312
9312
|
_if(() => {
|
|
9313
9313
|
if (setup && setup.mise.installed) {
|
|
9314
9314
|
const $scope24_id = _scope_id();
|
|
9315
|
-
_html(`<div${_attr_class(["
|
|
9315
|
+
_html(`<div${_attr_class(["_fo", { ["_fp"]: true }])}><label${_attr_class(["_1", "_fr"])}>`);
|
|
9316
9316
|
_if(() => {
|
|
9317
9317
|
if (searching) {
|
|
9318
9318
|
const $scope109_id = _scope_id();
|
|
@@ -9332,14 +9332,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9332
9332
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9333
9333
|
"_Z",
|
|
9334
9334
|
"_3",
|
|
9335
|
-
"
|
|
9336
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9335
|
+
"_fs"
|
|
9336
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_ft"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9337
9337
|
icon_xmark_default({ size: 14 });
|
|
9338
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9338
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_fv"])}${_attr("hidden", true)}>`);
|
|
9339
9339
|
_if(() => {
|
|
9340
9340
|
if (searching && !hits?.length) {
|
|
9341
9341
|
const $scope111_id = _scope_id();
|
|
9342
|
-
_html(`<li${_attr_class("
|
|
9342
|
+
_html(`<li${_attr_class("_fw")}>Searching the mise registry…</li>`);
|
|
9343
9343
|
writeScope($scope111_id, {});
|
|
9344
9344
|
return 0;
|
|
9345
9345
|
}
|
|
@@ -9347,23 +9347,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9347
9347
|
_if(() => {
|
|
9348
9348
|
if (hits && !hits.length && !searching) {
|
|
9349
9349
|
const $scope43_id = _scope_id();
|
|
9350
|
-
_html(`<li${_attr_class("
|
|
9350
|
+
_html(`<li${_attr_class("_fw")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9351
9351
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9352
9352
|
return 0;
|
|
9353
9353
|
}
|
|
9354
9354
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9355
9355
|
_for_of(hits || [], (h) => {
|
|
9356
9356
|
const $scope25_id = _scope_id();
|
|
9357
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9357
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_ce")}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9358
9358
|
_if(() => {
|
|
9359
9359
|
if (active.has(h.name)) {
|
|
9360
9360
|
const $scope26_id = _scope_id();
|
|
9361
|
-
_html(`<span${_attr_class("
|
|
9361
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9362
9362
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9363
9363
|
return 0;
|
|
9364
9364
|
} else if (h.description) {
|
|
9365
9365
|
const $scope112_id = _scope_id();
|
|
9366
|
-
_html(`<span${_attr_class("
|
|
9366
|
+
_html(`<span${_attr_class("_ch")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9367
9367
|
writeScope($scope112_id, {});
|
|
9368
9368
|
return 1;
|
|
9369
9369
|
}
|
|
@@ -9408,11 +9408,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9408
9408
|
_if(() => {
|
|
9409
9409
|
if (machineOpen) {
|
|
9410
9410
|
const $scope5_id = _scope_id();
|
|
9411
|
-
_html(`<div${_attr_class("
|
|
9411
|
+
_html(`<div${_attr_class("_d9")}>`);
|
|
9412
9412
|
_if(() => {
|
|
9413
9413
|
if (setup && !setup.mise.installed) {
|
|
9414
9414
|
const $scope27_id = _scope_id();
|
|
9415
|
-
_html(`<p${_attr_class("
|
|
9415
|
+
_html(`<p${_attr_class("_cj")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope27_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope27_id, "b")}</p>`);
|
|
9416
9416
|
_script($scope27_id, "y71");
|
|
9417
9417
|
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9418
9418
|
return 0;
|
|
@@ -9422,11 +9422,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9422
9422
|
_if(() => {
|
|
9423
9423
|
if (self) {
|
|
9424
9424
|
const $scope47_id = _scope_id();
|
|
9425
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9425
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_fL", "_y"])}>work</span>`);
|
|
9426
9426
|
_if(() => {
|
|
9427
9427
|
if (selfUpdating) {
|
|
9428
9428
|
const $scope114_id = _scope_id();
|
|
9429
|
-
_html(`<span${_attr_class("
|
|
9429
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9430
9430
|
writeScope($scope114_id, {});
|
|
9431
9431
|
return 0;
|
|
9432
9432
|
} else {
|
|
@@ -9440,7 +9440,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9440
9440
|
return 0;
|
|
9441
9441
|
} else if (self.latest && self.latest !== self.version) {
|
|
9442
9442
|
const $scope49_id = _scope_id();
|
|
9443
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9443
|
+
_html(`<button${_attr_class([btnSm, "_fO"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9444
9444
|
icon_arrow_up_default({ size: 12 });
|
|
9445
9445
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9446
9446
|
_script($scope49_id, "y72");
|
|
@@ -9484,11 +9484,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9484
9484
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9485
9485
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9486
9486
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9487
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9487
|
+
_html(`<li${_attr_class([toolRow, { ["_fK"]: !t.installed }])}><span${_attr_class(["_fL", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9488
9488
|
_if(() => {
|
|
9489
9489
|
if (active.has(t.id)) {
|
|
9490
9490
|
const $scope29_id = _scope_id();
|
|
9491
|
-
_html(`<span${_attr_class("
|
|
9491
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9492
9492
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9493
9493
|
return 0;
|
|
9494
9494
|
} else if (t.installed) {
|
|
@@ -9496,11 +9496,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9496
9496
|
_if(() => {
|
|
9497
9497
|
if (t.version) {
|
|
9498
9498
|
const $scope40_id = _scope_id();
|
|
9499
|
-
_html(`<button${_attr_class(["
|
|
9499
|
+
_html(`<button${_attr_class(["_fN", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope40_id, "b", t.version, 2)}`);
|
|
9500
9500
|
_if(() => {
|
|
9501
9501
|
if (aliasPin(t)) {
|
|
9502
9502
|
const $scope118_id = _scope_id();
|
|
9503
|
-
_html(`<span${_attr_class("
|
|
9503
|
+
_html(`<span${_attr_class("_fM")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9504
9504
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9505
9505
|
return 0;
|
|
9506
9506
|
}
|
|
@@ -9519,7 +9519,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9519
9519
|
_if(() => {
|
|
9520
9520
|
if (outdated(t)) {
|
|
9521
9521
|
const $scope59_id = _scope_id();
|
|
9522
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9522
|
+
_html(`<button${_attr_class([btnSm, "_fO"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9523
9523
|
icon_arrow_up_default({ size: 12 });
|
|
9524
9524
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9525
9525
|
_script($scope59_id, "y74");
|
|
@@ -9527,7 +9527,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9527
9527
|
return 0;
|
|
9528
9528
|
} else if (t.newest) {
|
|
9529
9529
|
const $scope60_id = _scope_id();
|
|
9530
|
-
_html(`<button${_attr_class(["
|
|
9530
|
+
_html(`<button${_attr_class(["_fN", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
|
|
9531
9531
|
_script($scope60_id, "y75");
|
|
9532
9532
|
_subscribe($for_content7__t_newest__closures, _subscribe($for_content7__t_pin__closures, _subscribe($for_content7__t_version__closures, _subscribe($for_content7__t_label__closures, writeScope($scope60_id, {
|
|
9533
9533
|
Cw: 1,
|
|
@@ -9643,14 +9643,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9643
9643
|
label: "Dark"
|
|
9644
9644
|
}
|
|
9645
9645
|
];
|
|
9646
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9646
|
+
_html(`</div></div></section><section${_attr_class("_b9")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_b_")}><h2${_attr("id", appearanceId)}${_attr_class("_cm")}>Appearance</h2></div><div${_attr_class(["_cd", "_f3"])}><div${_attr_class("_ge")}><img${_attr_class("_gf")}${_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("_gg")}><span${_attr_class("_gh")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_gi")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_f4")}><span${_attr_class("_f5")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9647
9647
|
setInstance({ name: v });
|
|
9648
|
-
}, "y4", $scope0_id))}${_attr_class(["_Z", "
|
|
9648
|
+
}, "y4", $scope0_id))}${_attr_class(["_Z", "_f6"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_f4")}><span${_attr_class("_f5")}>Theme</span><span${_attr_class("_f8")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9649
9649
|
_for_of(themeOpts, (opt) => {
|
|
9650
9650
|
const $scope50_id = _scope_id();
|
|
9651
9651
|
_html(`<button type=button${_attr_class([
|
|
9652
9652
|
"_bg",
|
|
9653
|
-
"
|
|
9653
|
+
"_gj",
|
|
9654
9654
|
{ ["_bf"]: themeMode === opt.id }
|
|
9655
9655
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9656
9656
|
if (opt.id === "system") {
|
|
@@ -9670,28 +9670,28 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9670
9670
|
_: _scope_with_id($scope0_id)
|
|
9671
9671
|
});
|
|
9672
9672
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9673
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9673
|
+
_html(`</span><span${_attr_class(["_o", "_f9"])}>`);
|
|
9674
9674
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9675
9675
|
setThemeMode(v);
|
|
9676
9676
|
}, "y5", $scope0_id), () => {
|
|
9677
|
-
_html(`<select${_attr_class(["_p", "
|
|
9677
|
+
_html(`<select${_attr_class(["_p", "_f_"])} aria-label="Color theme">`);
|
|
9678
9678
|
forOf(themeOpts, (opt) => {
|
|
9679
9679
|
_scope_id();
|
|
9680
9680
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9681
9681
|
});
|
|
9682
9682
|
_html("</select>");
|
|
9683
9683
|
});
|
|
9684
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9685
|
-
"
|
|
9686
|
-
"
|
|
9687
|
-
{ ["
|
|
9684
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_f4")}><span${_attr_class("_f5")}>Accent</span><span${_attr_class("_gk")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9685
|
+
"_gl",
|
|
9686
|
+
"_go",
|
|
9687
|
+
{ ["_gm"]: !accent }
|
|
9688
9688
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9689
9689
|
_if(() => {
|
|
9690
9690
|
if (!accent) {
|
|
9691
9691
|
const $scope129_id = _scope_id();
|
|
9692
9692
|
icon_check_default({
|
|
9693
9693
|
size: 12,
|
|
9694
|
-
class: "
|
|
9694
|
+
class: "_gn"
|
|
9695
9695
|
});
|
|
9696
9696
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9697
9697
|
return 0;
|
|
@@ -9699,13 +9699,13 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9699
9699
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9700
9700
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9701
9701
|
const $scope77_id = _scope_id();
|
|
9702
|
-
_html(`<button type=button${_attr_class(["
|
|
9702
|
+
_html(`<button type=button${_attr_class(["_gl", { ["_gm"]: accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}>`);
|
|
9703
9703
|
_if(() => {
|
|
9704
9704
|
if (accent === p.value) {
|
|
9705
9705
|
const $scope130_id = _scope_id();
|
|
9706
9706
|
icon_check_default({
|
|
9707
9707
|
size: 12,
|
|
9708
|
-
class: "
|
|
9708
|
+
class: "_gn"
|
|
9709
9709
|
});
|
|
9710
9710
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9711
9711
|
return 0;
|
|
@@ -9719,18 +9719,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9719
9719
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9720
9720
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9721
9721
|
_html(`<label${_attr_class([
|
|
9722
|
-
"
|
|
9723
|
-
"
|
|
9724
|
-
{ ["
|
|
9722
|
+
"_gl",
|
|
9723
|
+
"_gp",
|
|
9724
|
+
{ ["_gm"]: customOn }
|
|
9725
9725
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "bf", accent || "#3556d8", _resume(function(v) {
|
|
9726
9726
|
setInstance({ accent: v });
|
|
9727
|
-
}, "y6", $scope0_id))}${_attr_class("
|
|
9727
|
+
}, "y6", $scope0_id))}${_attr_class("_gq")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9728
9728
|
_if(() => {
|
|
9729
9729
|
if (customOn) {
|
|
9730
9730
|
const $scope131_id = _scope_id();
|
|
9731
9731
|
icon_check_default({
|
|
9732
9732
|
size: 12,
|
|
9733
|
-
class: "
|
|
9733
|
+
class: "_gn"
|
|
9734
9734
|
});
|
|
9735
9735
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9736
9736
|
return 0;
|
|
@@ -9741,16 +9741,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9741
9741
|
return 1;
|
|
9742
9742
|
}
|
|
9743
9743
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9744
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9744
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_b9")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_b_")}><h2${_attr("id", backupId)}${_attr_class("_cm")}>Backup</h2></div><div${_attr_class(["_cd", "_d1"])}><div${_attr_class("_d2")}><div${_attr_class("_gr")}><div${_attr_class("_ce")}>`);
|
|
9745
9745
|
_if(() => {
|
|
9746
9746
|
if (backupBusy === "preflight") {
|
|
9747
9747
|
const $scope65_id = _scope_id();
|
|
9748
|
-
_html(`<span${_attr_class("
|
|
9748
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9749
9749
|
writeScope($scope65_id, {});
|
|
9750
9750
|
return 0;
|
|
9751
9751
|
} else {
|
|
9752
9752
|
const $scope133_id = _scope_id();
|
|
9753
|
-
_html(`<span${_attr_class("
|
|
9753
|
+
_html(`<span${_attr_class("_ch")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9754
9754
|
writeScope($scope133_id, {});
|
|
9755
9755
|
return 1;
|
|
9756
9756
|
}
|
|
@@ -9768,7 +9768,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9768
9768
|
_if(() => {
|
|
9769
9769
|
if (preflight && !backupBusy) {
|
|
9770
9770
|
const $scope67_id = _scope_id();
|
|
9771
|
-
_html(`<div${_attr_class("
|
|
9771
|
+
_html(`<div${_attr_class("_gt")}><p${_attr_class("_gu")}>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("_gu")}>Not in the file: `);
|
|
9772
9772
|
_if(() => {
|
|
9773
9773
|
if (preflight.unpushed) {
|
|
9774
9774
|
const $scope68_id = _scope_id();
|
|
@@ -9785,15 +9785,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9785
9785
|
return 0;
|
|
9786
9786
|
}
|
|
9787
9787
|
}, $scope67_id, "m");
|
|
9788
|
-
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
9788
|
+
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_gv")}>`);
|
|
9789
9789
|
_for_of(preflight.workspaces, (w) => {
|
|
9790
9790
|
const $scope135_id = _scope_id();
|
|
9791
9791
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9792
|
-
_html(`<li${_attr_class("
|
|
9792
|
+
_html(`<li${_attr_class("_gw")}><span${_attr_class("_cf")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_gv")}>`);
|
|
9793
9793
|
_for_of(w.repos, (r) => {
|
|
9794
9794
|
const $scope136_id = _scope_id();
|
|
9795
9795
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9796
|
-
_html(`<li${_attr_class("
|
|
9796
|
+
_html(`<li${_attr_class("_gx")}><span${_attr_class("_gy")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9797
9797
|
_for_of(r.unpushed, (b) => {
|
|
9798
9798
|
const $scope137_id = _scope_id();
|
|
9799
9799
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope137_id, "b", b.count)} unpushed `);
|
|
@@ -9812,10 +9812,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9812
9812
|
_if(() => {
|
|
9813
9813
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9814
9814
|
const $scope138_id = _scope_id();
|
|
9815
|
-
_html(`<ul${_attr_class("
|
|
9815
|
+
_html(`<ul${_attr_class("_gz")}>`);
|
|
9816
9816
|
_for_of(r.modified, (f) => {
|
|
9817
9817
|
const $scope141_id = _scope_id();
|
|
9818
|
-
_html(`<li${_attr_class("
|
|
9818
|
+
_html(`<li${_attr_class("_gA")}><span${_attr_class([
|
|
9819
9819
|
"_N",
|
|
9820
9820
|
"_P",
|
|
9821
9821
|
tone.warn
|
|
@@ -9824,18 +9824,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9824
9824
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9825
9825
|
_for_of(r.untracked, (f) => {
|
|
9826
9826
|
const $scope142_id = _scope_id();
|
|
9827
|
-
_html(`<li${_attr_class("
|
|
9827
|
+
_html(`<li${_attr_class("_gA")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9828
9828
|
writeScope($scope142_id, {});
|
|
9829
9829
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9830
9830
|
_for_of(r.ignored, (f) => {
|
|
9831
9831
|
const $scope143_id = _scope_id();
|
|
9832
|
-
_html(`<li${_attr_class("
|
|
9832
|
+
_html(`<li${_attr_class("_gA")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
|
|
9833
9833
|
writeScope($scope143_id, {});
|
|
9834
9834
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9835
9835
|
_if(() => {
|
|
9836
9836
|
if (r.more) {
|
|
9837
9837
|
const $scope139_id = _scope_id();
|
|
9838
|
-
_html(`<li${_attr_class(["
|
|
9838
|
+
_html(`<li${_attr_class(["_gA", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9839
9839
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9840
9840
|
return 0;
|
|
9841
9841
|
}
|
|
@@ -9860,27 +9860,27 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9860
9860
|
i: $for_content18__w_name__closures
|
|
9861
9861
|
});
|
|
9862
9862
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9863
|
-
_html(`<div${_attr_class("
|
|
9863
|
+
_html(`<div${_attr_class("_gB")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
9864
9864
|
_script($scope67_id, "y81");
|
|
9865
9865
|
writeScope($scope67_id, {});
|
|
9866
9866
|
return 0;
|
|
9867
9867
|
}
|
|
9868
9868
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9869
|
-
_html(`</div><div${_attr_class("
|
|
9869
|
+
_html(`</div><div${_attr_class("_d2")}><div${_attr_class("_gr")}><div${_attr_class("_ce")}>`);
|
|
9870
9870
|
_if(() => {
|
|
9871
9871
|
if (backupBusy === "restore") {
|
|
9872
9872
|
const $scope66_id = _scope_id();
|
|
9873
|
-
_html(`<span${_attr_class("
|
|
9873
|
+
_html(`<span${_attr_class("_fy")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9874
9874
|
writeScope($scope66_id, {});
|
|
9875
9875
|
return 0;
|
|
9876
9876
|
} else if (restoreDone) {
|
|
9877
9877
|
const $scope74_id = _scope_id();
|
|
9878
|
-
_html(`<span${_attr_class("
|
|
9878
|
+
_html(`<span${_attr_class("_ch")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9879
9879
|
writeScope($scope74_id, {});
|
|
9880
9880
|
return 1;
|
|
9881
9881
|
} else {
|
|
9882
9882
|
const $scope144_id = _scope_id();
|
|
9883
|
-
_html(`<span${_attr_class("
|
|
9883
|
+
_html(`<span${_attr_class("_ch")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9884
9884
|
writeScope($scope144_id, {});
|
|
9885
9885
|
return 2;
|
|
9886
9886
|
}
|
|
@@ -9888,7 +9888,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9888
9888
|
_if(() => {
|
|
9889
9889
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9890
9890
|
const $scope76_id = _scope_id();
|
|
9891
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9891
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_gs")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9892
9892
|
_script($scope76_id, "y82");
|
|
9893
9893
|
writeScope($scope76_id, {});
|
|
9894
9894
|
return 0;
|
|
@@ -9899,14 +9899,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9899
9899
|
if (restorePreview && backupBusy !== "restore") {
|
|
9900
9900
|
const $scope69_id = _scope_id();
|
|
9901
9901
|
const { preview } = restorePreview;
|
|
9902
|
-
_html(`<div${_attr_class("
|
|
9902
|
+
_html(`<div${_attr_class("_gt")}><p${_attr_class("_gu")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
9903
9903
|
_if(() => {
|
|
9904
9904
|
if (preview.workspaces.length) {
|
|
9905
9905
|
const $scope70_id = _scope_id();
|
|
9906
9906
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9907
9907
|
_for_of(preview.workspaces, (w) => {
|
|
9908
9908
|
const $scope71_id = _scope_id();
|
|
9909
|
-
_html(`<li><label${_attr_class(["
|
|
9909
|
+
_html(`<li><label${_attr_class(["_gD", { ["_gF"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_gE")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_ce")}><span${_attr_class("_cg")}><span${_attr_class("_cf")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9910
9910
|
_if(() => {
|
|
9911
9911
|
if (w.status === "archived") {
|
|
9912
9912
|
const $scope148_id = _scope_id();
|
|
@@ -9928,7 +9928,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9928
9928
|
return 1;
|
|
9929
9929
|
}
|
|
9930
9930
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
9931
|
-
_html(`</span><span${_attr_class("
|
|
9931
|
+
_html(`</span><span${_attr_class("_ch")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9932
9932
|
_script($scope71_id, "y83");
|
|
9933
9933
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
9934
9934
|
n: w?.unknownHost,
|
|
@@ -9939,7 +9939,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9939
9939
|
return 0;
|
|
9940
9940
|
} else {
|
|
9941
9941
|
const $scope146_id = _scope_id();
|
|
9942
|
-
_html(`<p${_attr_class("
|
|
9942
|
+
_html(`<p${_attr_class("_cj")}>No workspaces in this file.</p>`);
|
|
9943
9943
|
writeScope($scope146_id, {});
|
|
9944
9944
|
return 1;
|
|
9945
9945
|
}
|
|
@@ -9979,7 +9979,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9979
9979
|
_if(() => {
|
|
9980
9980
|
if (p.total) {
|
|
9981
9981
|
const $scope73_id = _scope_id();
|
|
9982
|
-
_html(`<li><label${_attr_class(["
|
|
9982
|
+
_html(`<li><label${_attr_class(["_gD", { ["_gF"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_gE")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_ce")}><span${_attr_class("_cf")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_ch")}>`);
|
|
9983
9983
|
_if(() => {
|
|
9984
9984
|
if (p.key === "settings") {
|
|
9985
9985
|
const $scope145_id = _scope_id();
|
|
@@ -10026,7 +10026,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
10026
10026
|
i: $for_content10__p_total__closures
|
|
10027
10027
|
});
|
|
10028
10028
|
}, "key", $scope69_id, "h");
|
|
10029
|
-
_html(`</ul><div${_attr_class("
|
|
10029
|
+
_html(`</ul><div${_attr_class("_gB")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
10030
10030
|
_script($scope69_id, "y85");
|
|
10031
10031
|
writeScope($scope69_id, {});
|
|
10032
10032
|
return 0;
|
|
@@ -10228,13 +10228,13 @@ async function enablePush() {
|
|
|
10228
10228
|
const reg = await registration();
|
|
10229
10229
|
let sub = await reg.pushManager.getSubscription();
|
|
10230
10230
|
if (!sub) {
|
|
10231
|
-
const { publicKey } = await api$
|
|
10231
|
+
const { publicKey } = await api$10("/api/push");
|
|
10232
10232
|
sub = await reg.pushManager.subscribe({
|
|
10233
10233
|
userVisibleOnly: true,
|
|
10234
10234
|
applicationServerKey: vapidKey(publicKey)
|
|
10235
10235
|
});
|
|
10236
10236
|
}
|
|
10237
|
-
await api$
|
|
10237
|
+
await api$10("/api/push", {
|
|
10238
10238
|
method: "POST",
|
|
10239
10239
|
headers: { "content-type": "application/json" },
|
|
10240
10240
|
body: JSON.stringify(sub.toJSON())
|
|
@@ -10244,7 +10244,7 @@ async function enablePush() {
|
|
|
10244
10244
|
async function disablePush() {
|
|
10245
10245
|
const sub = await pushSubscription();
|
|
10246
10246
|
if (!sub) return;
|
|
10247
|
-
await api$
|
|
10247
|
+
await api$10(`/api/push?endpoint=${encodeURIComponent(sub.endpoint)}`, { method: "DELETE" }).catch(() => {});
|
|
10248
10248
|
await sub.unsubscribe();
|
|
10249
10249
|
}
|
|
10250
10250
|
async function registration() {
|
|
@@ -10255,9 +10255,9 @@ function vapidKey(base64) {
|
|
|
10255
10255
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10256
10256
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10257
10257
|
}
|
|
10258
|
-
var iconBtn = "
|
|
10259
|
-
var settingsDot = "
|
|
10260
|
-
var navToggle = "
|
|
10258
|
+
var iconBtn = "_bN _l";
|
|
10259
|
+
var settingsDot = "_bO _bc";
|
|
10260
|
+
var navToggle = "_bS _l";
|
|
10261
10261
|
_template("T", (input) => {
|
|
10262
10262
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10263
10263
|
const $scope0_id = _scope_id();
|
|
@@ -10311,8 +10311,7 @@ function activeAgent(session) {
|
|
|
10311
10311
|
const command = session.state?.command?.trim();
|
|
10312
10312
|
return command && agentFromCommand(command) || session.agent;
|
|
10313
10313
|
}
|
|
10314
|
-
var rowState = "
|
|
10315
|
-
var rowArchive = "_fu _q _L";
|
|
10314
|
+
var rowState = "_c_ _N";
|
|
10316
10315
|
//#endregion
|
|
10317
10316
|
//#region src/client/arm.ts
|
|
10318
10317
|
/** Two-step destructive controls: first click arms (label/colour flips),
|
|
@@ -10323,12 +10322,12 @@ var ARM_MS = 3500;
|
|
|
10323
10322
|
function disarmLater(fn) {
|
|
10324
10323
|
return setTimeout(fn, ARM_MS);
|
|
10325
10324
|
}
|
|
10326
|
-
var prChip = "
|
|
10327
|
-
var portChip = "
|
|
10325
|
+
var prChip = "_iA _u _iz";
|
|
10326
|
+
var portChip = "_iB _u _iz";
|
|
10328
10327
|
var prState = {
|
|
10329
|
-
open: "
|
|
10330
|
-
merged: "
|
|
10331
|
-
closed: "
|
|
10328
|
+
open: "_iF",
|
|
10329
|
+
merged: "_iG",
|
|
10330
|
+
closed: "_iH"
|
|
10332
10331
|
};
|
|
10333
10332
|
//#endregion
|
|
10334
10333
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10419,7 +10418,7 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10419
10418
|
const name = repo.full_name.split("/").at(-1);
|
|
10420
10419
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10421
10420
|
}, "z4", $scope1_id);
|
|
10422
|
-
_html(`<div${_attr_class("
|
|
10421
|
+
_html(`<div${_attr_class("_iy")}>`);
|
|
10423
10422
|
_for_of(repos, (repo) => {
|
|
10424
10423
|
const $scope2_id = _scope_id();
|
|
10425
10424
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10435,11 +10434,11 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10435
10434
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10436
10435
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10437
10436
|
}
|
|
10438
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10437
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_iC", { ["_iK"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10439
10438
|
_if(() => {
|
|
10440
10439
|
if (open) {
|
|
10441
10440
|
const $scope4_id = _scope_id();
|
|
10442
|
-
_html(`<a${_attr_class(["
|
|
10441
|
+
_html(`<a${_attr_class(["_iC", "_iD"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10443
10442
|
icon_diff_default({ size: 12 });
|
|
10444
10443
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10445
10444
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10447,9 +10446,9 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10447
10446
|
} else {
|
|
10448
10447
|
const $scope6_id = _scope_id();
|
|
10449
10448
|
_html(`<button type=button${_attr_class([
|
|
10450
|
-
"
|
|
10451
|
-
"
|
|
10452
|
-
"
|
|
10449
|
+
"_iC",
|
|
10450
|
+
"_iD",
|
|
10451
|
+
"_iE"
|
|
10453
10452
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10454
10453
|
icon_xmark_default({ size: 12 });
|
|
10455
10454
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10477,21 +10476,21 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10477
10476
|
_if(() => {
|
|
10478
10477
|
if (dead.has(p.port)) {
|
|
10479
10478
|
const $scope7_id = _scope_id();
|
|
10480
|
-
_html(`<span${_attr_class(["
|
|
10479
|
+
_html(`<span${_attr_class(["_iC", "_iI"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10481
10480
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10482
10481
|
return 0;
|
|
10483
10482
|
} else {
|
|
10484
10483
|
const $scope8_id = _scope_id();
|
|
10485
|
-
_html(`<button type=button${_attr_class(["
|
|
10484
|
+
_html(`<button type=button${_attr_class(["_iC", "_iJ"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10486
10485
|
_script($scope8_id, "z6");
|
|
10487
10486
|
writeScope($scope8_id, {});
|
|
10488
10487
|
return 1;
|
|
10489
10488
|
}
|
|
10490
10489
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10491
10490
|
_html(`<button type=button${_attr_class([
|
|
10492
|
-
"
|
|
10493
|
-
"
|
|
10494
|
-
"
|
|
10491
|
+
"_iC",
|
|
10492
|
+
"_iD",
|
|
10493
|
+
"_iE",
|
|
10495
10494
|
{ ["_s"]: armedPid === p.pid }
|
|
10496
10495
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10497
10496
|
icon_xmark_default({ size: 12 });
|
|
@@ -10534,33 +10533,16 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10534
10533
|
});
|
|
10535
10534
|
_resume_branch($scope0_id);
|
|
10536
10535
|
});
|
|
10537
|
-
var railBtn = "
|
|
10538
|
-
var wsBtn = "
|
|
10539
|
-
var rowIcon = "
|
|
10540
|
-
var close = "
|
|
10541
|
-
var sessRename$1 = "
|
|
10542
|
-
var sessBtn$1 = "
|
|
10536
|
+
var railBtn = "_dq _l";
|
|
10537
|
+
var wsBtn = "_dv _I";
|
|
10538
|
+
var rowIcon = "_dy _4 _l";
|
|
10539
|
+
var close = "_dz _7 _l _8";
|
|
10540
|
+
var sessRename$1 = "_dK _J";
|
|
10541
|
+
var sessBtn$1 = "_dM _I";
|
|
10543
10542
|
//#endregion
|
|
10544
10543
|
//#region src/styles/session-pop.css.ts
|
|
10545
|
-
var sessionPop = "
|
|
10546
|
-
var sessionPopBtn = "
|
|
10547
|
-
//#endregion
|
|
10548
|
-
//#region src/tags/icons/icon-archive.marko
|
|
10549
|
-
var icon_archive_default = _template("M", (input) => {
|
|
10550
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10551
|
-
const $scope0_id = _scope_id();
|
|
10552
|
-
_set_serialize_reason({
|
|
10553
|
-
0: $sg__input_size__OR__input_class,
|
|
10554
|
-
1: $sg__input_size__OR__input_class
|
|
10555
|
-
});
|
|
10556
|
-
const $childScope = _peek_scope_id();
|
|
10557
|
-
icon_base_default({
|
|
10558
|
-
d: "M7 6L17 6 M7 9L17 9 M9 17H15 M3 12H2.6C2.26863 12 2 12.2686 2 12.6V21.4C2 21.7314 2.26863 22 2.6 22H21.4C21.7314 22 22 21.7314 22 21.4V12.6C22 12.2686 21.7314 12 21.4 12H21M3 12V2.6C3 2.26863 3.26863 2 3.6 2H20.4C20.7314 2 21 2.26863 21 2.6V12M3 12H21",
|
|
10559
|
-
size: input.size,
|
|
10560
|
-
class: input.class
|
|
10561
|
-
});
|
|
10562
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
10563
|
-
});
|
|
10544
|
+
var sessionPop = "_dm __";
|
|
10545
|
+
var sessionPopBtn = "_dn _I";
|
|
10564
10546
|
//#endregion
|
|
10565
10547
|
//#region src/tags/icons/icon-manage.marko
|
|
10566
10548
|
var icon_manage_default = _template("hb", (input) => {
|
|
@@ -10589,22 +10571,22 @@ var usage_pcts_default = _template("I", (input) => {
|
|
|
10589
10571
|
if (windows.length) {
|
|
10590
10572
|
const $scope1_id = _scope_id();
|
|
10591
10573
|
_html(`<span${_attr_class([
|
|
10592
|
-
"
|
|
10574
|
+
"_gG",
|
|
10593
10575
|
input.class,
|
|
10594
|
-
{ ["
|
|
10576
|
+
{ ["_gH"]: agent.stale_seconds != null }
|
|
10595
10577
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10596
10578
|
_for_of(windows, (win$1, i) => {
|
|
10597
10579
|
const $scope2_id = _scope_id();
|
|
10598
|
-
_html(`<span${_attr_class("
|
|
10580
|
+
_html(`<span${_attr_class("_gI")}>`);
|
|
10599
10581
|
_if(() => {
|
|
10600
10582
|
if (i) {
|
|
10601
10583
|
const $scope3_id = _scope_id();
|
|
10602
|
-
_html(`<span${_attr_class("
|
|
10584
|
+
_html(`<span${_attr_class("_gL")} aria-hidden=true>·</span>`);
|
|
10603
10585
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10604
10586
|
return 0;
|
|
10605
10587
|
}
|
|
10606
10588
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10607
|
-
_html(`<span${_attr_class("
|
|
10589
|
+
_html(`<span${_attr_class("_gJ")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_gK", win$1.used_percent >= 90 ? "_g6" : win$1.used_percent >= 70 ? "_g5" : win$1.used_percent >= 40 ? "_g4" : "_g3"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10608
10590
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10609
10591
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10610
10592
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10637,9 +10619,9 @@ var icon_edit_default = _template("bb", (input) => {
|
|
|
10637
10619
|
});
|
|
10638
10620
|
//#endregion
|
|
10639
10621
|
//#region src/tags/side-nav-item.marko
|
|
10640
|
-
var api$
|
|
10622
|
+
var api$7;
|
|
10641
10623
|
var side_nav_item_default = _template("A", (input) => {
|
|
10642
|
-
const $scope0_reason = _scope_reason(), $si__input_workspace = _serialize_if($scope0_reason,
|
|
10624
|
+
const $scope0_reason = _scope_reason(), $si__input_workspace = _serialize_if($scope0_reason, 24), $sg__input_workspace = _serialize_guard($scope0_reason, 24), $sg__input_status = _serialize_guard($scope0_reason, 26), $sg__input_sessions = _serialize_guard($scope0_reason, 22), $sg__input_page__OR__input_sessions__OR__input_status = _serialize_guard($scope0_reason, 8), $si__input_agents = _serialize_if($scope0_reason, 30), $sg__input_onNewSession = _serialize_guard($scope0_reason, 29), $sg__input_onNewSession__OR__input_onReview = _serialize_guard($scope0_reason, 6), $sg__input_onReview = _serialize_guard($scope0_reason, 31), $sg__input_page = _serialize_guard($scope0_reason, 21), $si__input_sessions = _serialize_if($scope0_reason, 22), $si__input_current = _serialize_if($scope0_reason, 20), $si__input_page = _serialize_if($scope0_reason, 21), $si__input_railPop = _serialize_if($scope0_reason, 28), $si__input_page__OR__input_sessions__OR__input_status = _serialize_if($scope0_reason, 8), $sg__input_rail__OR__input_workspace = _serialize_guard($scope0_reason, 1), $si__input_rail__OR__input_workspace = _serialize_if($scope0_reason, 1), $sg__input_rail__OR__input_workspace__OR__input_status = _serialize_guard($scope0_reason, 10), $si__input_page__OR__input_rail__OR__input_workspace = _serialize_if($scope0_reason, 7), $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab = _serialize_if($scope0_reason, 13), $si__input_index = _serialize_if($scope0_reason, 27), $si__input_onNewSession = _serialize_if($scope0_reason, 29), $si__input_onReview = _serialize_if($scope0_reason, 31), $si__input_managing = _serialize_if($scope0_reason, 32), $si__input_currentTab = _serialize_if($scope0_reason, 23), $si__input_workspaceId = _serialize_if($scope0_reason, 25);
|
|
10643
10625
|
const $scope0_id = _scope_id();
|
|
10644
10626
|
const $input_current__closures = /* @__PURE__ */ new Set();
|
|
10645
10627
|
const $input_index__closures = /* @__PURE__ */ new Set();
|
|
@@ -10652,7 +10634,6 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10652
10634
|
const $ws_pending_error__closures = /* @__PURE__ */ new Set();
|
|
10653
10635
|
const $restoreLine__closures = /* @__PURE__ */ new Set();
|
|
10654
10636
|
const $retrying__closures = /* @__PURE__ */ new Set();
|
|
10655
|
-
const $input_onArchive__closures = /* @__PURE__ */ new Set();
|
|
10656
10637
|
const $input_agents__closures = /* @__PURE__ */ new Set();
|
|
10657
10638
|
const $input_onNewSession__closures = /* @__PURE__ */ new Set();
|
|
10658
10639
|
const $input_onReview__closures = /* @__PURE__ */ new Set();
|
|
@@ -10697,7 +10678,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10697
10678
|
retrying = action === "retry";
|
|
10698
10679
|
armedDelete = false;
|
|
10699
10680
|
try {
|
|
10700
|
-
await api$
|
|
10681
|
+
await api$7(`/api/workspaces/${input.workspaceId}`, {
|
|
10701
10682
|
method: "POST",
|
|
10702
10683
|
headers: { "content-type": "application/json" },
|
|
10703
10684
|
body: JSON.stringify({ action })
|
|
@@ -10716,76 +10697,76 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10716
10697
|
_if(() => {
|
|
10717
10698
|
if (input.rail) {
|
|
10718
10699
|
const $scope2_id = _scope_id();
|
|
10719
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10700
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_do"]: 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([
|
|
10720
10701
|
"_A",
|
|
10721
10702
|
phase[dot$1],
|
|
10722
10703
|
"_bc"
|
|
10723
10704
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
10724
|
-
_serialize_if($scope0_reason,
|
|
10705
|
+
_serialize_if($scope0_reason, 17) && _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_workspace && $ws_pending__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))))));
|
|
10725
10706
|
return 0;
|
|
10726
10707
|
} else if (ws$1.pending) {
|
|
10727
10708
|
const $scope3_id = _scope_id();
|
|
10728
10709
|
_html(`<section${_attr_class([
|
|
10729
|
-
"
|
|
10730
|
-
"
|
|
10710
|
+
"_ds",
|
|
10711
|
+
"_dO",
|
|
10731
10712
|
{
|
|
10732
|
-
["
|
|
10733
|
-
["
|
|
10713
|
+
["_dt"]: input.railPop,
|
|
10714
|
+
["_dr"]: input.page
|
|
10734
10715
|
}
|
|
10735
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10716
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_du")}><div${_attr_class(wsBtn)}>`);
|
|
10736
10717
|
_if(() => {
|
|
10737
10718
|
if (ws$1.pending_error) {
|
|
10738
|
-
const $
|
|
10719
|
+
const $scope15_id = _scope_id();
|
|
10739
10720
|
icon_warning_default({
|
|
10740
10721
|
size: 12,
|
|
10741
|
-
class: "
|
|
10722
|
+
class: "_dQ"
|
|
10742
10723
|
});
|
|
10743
|
-
$si__input_workspace && writeScope($
|
|
10724
|
+
$si__input_workspace && writeScope($scope15_id, {});
|
|
10744
10725
|
return 0;
|
|
10745
10726
|
} else {
|
|
10746
|
-
const $
|
|
10747
|
-
_html(`<span${_attr_class(["_G", "
|
|
10748
|
-
$si__input_workspace && writeScope($
|
|
10727
|
+
const $scope16_id = _scope_id();
|
|
10728
|
+
_html(`<span${_attr_class(["_G", "_dP"])}></span>`);
|
|
10729
|
+
$si__input_workspace && writeScope($scope16_id, {});
|
|
10749
10730
|
return 1;
|
|
10750
10731
|
}
|
|
10751
10732
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10752
|
-
_html(`<span${_attr_class("
|
|
10733
|
+
_html(`<span${_attr_class("_dB")}><span${_attr_class("_dC")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_dS")}${_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>`);
|
|
10753
10734
|
_if(() => {
|
|
10754
10735
|
if (ws$1.pending_error && !retrying) {
|
|
10755
|
-
const $
|
|
10756
|
-
_html(`<div${_attr_class("
|
|
10736
|
+
const $scope14_id = _scope_id();
|
|
10737
|
+
_html(`<div${_attr_class("_dR")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope14_id, "b")}<button type=button${_attr_class([
|
|
10757
10738
|
"_q",
|
|
10758
10739
|
btnSm,
|
|
10759
10740
|
{ ["_s"]: armedDelete }
|
|
10760
|
-
])} title=${armedDelete ? "\"Delete this workspace?\"" : "\"Delete workspace\""}>${_text_resume($
|
|
10761
|
-
_script($
|
|
10762
|
-
_subscribe($armedDelete__closures, writeScope($
|
|
10741
|
+
])} title=${armedDelete ? "\"Delete this workspace?\"" : "\"Delete workspace\""}>${_text_resume($scope14_id, "d", armedDelete ? "Delete?" : "Delete")}</button>${_el_resume($scope14_id, "c")}</div>`);
|
|
10742
|
+
_script($scope14_id, "A4");
|
|
10743
|
+
_subscribe($armedDelete__closures, writeScope($scope14_id, {}));
|
|
10763
10744
|
return 0;
|
|
10764
10745
|
}
|
|
10765
10746
|
}, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
10766
|
-
_html(`</section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason,
|
|
10747
|
+
_html(`</section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 9))}`);
|
|
10767
10748
|
_subscribe($retrying__closures, _subscribe($restoreLine__closures, _subscribe($si__input_workspace && $ws_pending_error__closures, _subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
|
|
10768
10749
|
_: _scope_with_id($scope1_id),
|
|
10769
|
-
|
|
10750
|
+
Cb2: $si__input_workspace && 1
|
|
10770
10751
|
})))))));
|
|
10771
10752
|
return 1;
|
|
10772
10753
|
} else {
|
|
10773
10754
|
const $scope4_id = _scope_id();
|
|
10774
10755
|
const sessions$1 = input.sessions || [];
|
|
10775
10756
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10776
|
-
_html(`<section${_attr_class(["
|
|
10777
|
-
["
|
|
10757
|
+
_html(`<section${_attr_class(["_ds", {
|
|
10758
|
+
["_do"]: input.current,
|
|
10778
10759
|
["_bd"]: input.current,
|
|
10779
|
-
["
|
|
10780
|
-
["
|
|
10781
|
-
}])}><div${_attr_class("
|
|
10760
|
+
["_dt"]: input.railPop,
|
|
10761
|
+
["_dr"]: input.page
|
|
10762
|
+
}])}><div${_attr_class("_du")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10782
10763
|
"_A",
|
|
10783
10764
|
phase[dot$1],
|
|
10784
|
-
"
|
|
10765
|
+
"_dG"
|
|
10785
10766
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10786
10767
|
_if(() => {
|
|
10787
10768
|
if (sessions$1.length === 1) {
|
|
10788
|
-
const $
|
|
10769
|
+
const $scope17_id = _scope_id();
|
|
10789
10770
|
_set_serialize_reason({
|
|
10790
10771
|
1: $sg__input_sessions,
|
|
10791
10772
|
2: $sg__input_sessions
|
|
@@ -10794,9 +10775,9 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10794
10775
|
icon_agent_default({
|
|
10795
10776
|
agent: activeAgent(sessions$1[0]),
|
|
10796
10777
|
size: 12,
|
|
10797
|
-
class: "
|
|
10778
|
+
class: "_dA"
|
|
10798
10779
|
});
|
|
10799
|
-
$si__input_sessions && writeScope($
|
|
10780
|
+
$si__input_sessions && writeScope($scope17_id, {
|
|
10800
10781
|
_: _scope_with_id($scope4_id),
|
|
10801
10782
|
a: _existing_scope($childScope)
|
|
10802
10783
|
});
|
|
@@ -10804,12 +10785,12 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10804
10785
|
}
|
|
10805
10786
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10806
10787
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10807
|
-
_html(`<span${_attr_class("
|
|
10788
|
+
_html(`<span${_attr_class("_dB")}><span${_attr_class("_dC")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10808
10789
|
_if(() => {
|
|
10809
10790
|
if (input.page && metaText) {
|
|
10810
|
-
const $
|
|
10811
|
-
_html(`<span${_attr_class("
|
|
10812
|
-
$si__input_page__OR__input_sessions__OR__input_status && writeScope($
|
|
10791
|
+
const $scope18_id = _scope_id();
|
|
10792
|
+
_html(`<span${_attr_class("_dF")}>${_text_resume($scope18_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10793
|
+
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10813
10794
|
return 0;
|
|
10814
10795
|
}
|
|
10815
10796
|
}, $scope4_id, "i", $sg__input_page__OR__input_sessions__OR__input_status, $sg__input_page__OR__input_sessions__OR__input_status, 1, 0, 1);
|
|
@@ -10817,26 +10798,10 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10817
10798
|
_if(() => {
|
|
10818
10799
|
if (!input.page) {
|
|
10819
10800
|
const $scope5_id = _scope_id();
|
|
10820
|
-
_html(`<div${_attr_class("
|
|
10821
|
-
_if(() => {
|
|
10822
|
-
if (input.onArchive) {
|
|
10823
|
-
const $scope6_id = _scope_id();
|
|
10824
|
-
const archiveRow = input.onArchive;
|
|
10825
|
-
_html(`<button${_attr_class(rowIcon)} title="Every PR is finished. Archive this workspace">`);
|
|
10826
|
-
icon_archive_default({ size: 12 });
|
|
10827
|
-
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
10828
|
-
_script($scope6_id, "A5");
|
|
10829
|
-
_subscribe($si__input_onArchive && $input_onArchive__closures, writeScope($scope6_id, {
|
|
10830
|
-
c: archiveRow,
|
|
10831
|
-
_: $si__input_page__OR__input_rail__OR__input_workspace__OR__input_onArchive && _scope_with_id($scope5_id),
|
|
10832
|
-
Cas: $si__input_onArchive && 1
|
|
10833
|
-
}));
|
|
10834
|
-
return 0;
|
|
10835
|
-
}
|
|
10836
|
-
}, $scope5_id, "b", $sg__input_onArchive, $sg__input_onArchive, $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10801
|
+
_html(`<div${_attr_class("_dw")}>`);
|
|
10837
10802
|
_if(() => {
|
|
10838
10803
|
if (input.onNewSession) {
|
|
10839
|
-
const $
|
|
10804
|
+
const $scope6_id = _scope_id();
|
|
10840
10805
|
const newPopId = _id();
|
|
10841
10806
|
let pickerReady = false;
|
|
10842
10807
|
_html(`<button${_attr_class(rowIcon)} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
@@ -10844,9 +10809,9 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10844
10809
|
agent: "shell",
|
|
10845
10810
|
size: 12
|
|
10846
10811
|
});
|
|
10847
|
-
_html(`</button>${_el_resume($
|
|
10812
|
+
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
10848
10813
|
_for_of([], (agent) => {
|
|
10849
|
-
const $
|
|
10814
|
+
const $scope7_id = _scope_id();
|
|
10850
10815
|
_html(`<button${_attr_class(sessionPopBtn)}>`);
|
|
10851
10816
|
_set_serialize_reason(12);
|
|
10852
10817
|
const $childScope2 = _peek_scope_id();
|
|
@@ -10854,72 +10819,72 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10854
10819
|
agent,
|
|
10855
10820
|
size: 14
|
|
10856
10821
|
});
|
|
10857
|
-
_html(`${_text_resume($
|
|
10858
|
-
_script($
|
|
10859
|
-
writeScope($
|
|
10822
|
+
_html(`${_text_resume($scope7_id, "c", agent, 2)}</button>${_el_resume($scope7_id, "a")}`);
|
|
10823
|
+
_script($scope7_id, "A5");
|
|
10824
|
+
writeScope($scope7_id, {
|
|
10860
10825
|
e: agent,
|
|
10861
10826
|
b: _existing_scope($childScope2)
|
|
10862
10827
|
});
|
|
10863
|
-
}, (a) => a, $
|
|
10864
|
-
_script($
|
|
10865
|
-
_subscribe($si__input_agents && $input_agents__closures, writeScope($
|
|
10828
|
+
}, (a) => a, $scope6_id, "c", 1, 1, 1, "</div>", 1);
|
|
10829
|
+
_script($scope6_id, "A6");
|
|
10830
|
+
_subscribe($si__input_agents && $input_agents__closures, writeScope($scope6_id, {
|
|
10866
10831
|
e: $si__input_agents && pickerReady,
|
|
10867
10832
|
_: _scope_with_id($scope5_id)
|
|
10868
10833
|
}));
|
|
10869
10834
|
return 0;
|
|
10870
10835
|
}
|
|
10871
|
-
}, $scope5_id, "
|
|
10836
|
+
}, $scope5_id, "b", $sg__input_onNewSession, $sg__input_onNewSession, $sg__input_onNewSession__OR__input_onReview);
|
|
10872
10837
|
_if(() => {
|
|
10873
10838
|
if (input.onReview) {
|
|
10874
|
-
const $
|
|
10839
|
+
const $scope13_id = _scope_id();
|
|
10875
10840
|
_html(`<a${_attr("href", `/w/${ws$1.id}/review`)}${_attr_class(rowIcon)} title="Review changes">`);
|
|
10876
10841
|
icon_diff_default({ size: 12 });
|
|
10877
|
-
_html(`</a>${_el_resume($
|
|
10878
|
-
_serialize_if($scope0_reason,
|
|
10842
|
+
_html(`</a>${_el_resume($scope13_id, "a", $sg__input_workspace)}`);
|
|
10843
|
+
_serialize_if($scope0_reason, 12) && _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope13_id, {
|
|
10879
10844
|
_: _scope_with_id($scope5_id),
|
|
10880
|
-
|
|
10845
|
+
Cb1: $si__input_workspace && 4
|
|
10881
10846
|
}));
|
|
10882
10847
|
return 0;
|
|
10883
10848
|
}
|
|
10884
|
-
}, $scope5_id, "
|
|
10885
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10849
|
+
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10850
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_dp"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10886
10851
|
icon_manage_default({ size: 12 });
|
|
10887
|
-
_html(`</a>${_el_resume($scope5_id, "
|
|
10888
|
-
_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,
|
|
10852
|
+
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10853
|
+
_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, {
|
|
10889
10854
|
_: _scope_with_id($scope4_id),
|
|
10890
|
-
|
|
10891
|
-
})))))
|
|
10855
|
+
Cb1: $si__input_workspace && 2
|
|
10856
|
+
})))));
|
|
10892
10857
|
return 0;
|
|
10893
10858
|
}
|
|
10894
10859
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10895
|
-
_html(`</div><div${_attr_class("
|
|
10860
|
+
_html(`</div><div${_attr_class("_dL")}>`);
|
|
10896
10861
|
_if(() => {
|
|
10897
10862
|
if (sessions$1.length === 1 && openPlan) {
|
|
10898
|
-
const $
|
|
10863
|
+
const $scope11_id = _scope_id();
|
|
10899
10864
|
_set_serialize_reason(1);
|
|
10900
10865
|
const $childScope3 = _peek_scope_id();
|
|
10901
10866
|
usage_pcts_default({
|
|
10902
10867
|
agent: openPlan,
|
|
10903
|
-
class: "
|
|
10868
|
+
class: "_dD"
|
|
10904
10869
|
});
|
|
10905
|
-
_subscribe($openPlan__closures, writeScope($
|
|
10870
|
+
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
10906
10871
|
a: _existing_scope($childScope3),
|
|
10907
|
-
|
|
10872
|
+
Caz: 2
|
|
10908
10873
|
}));
|
|
10909
10874
|
return 0;
|
|
10910
10875
|
}
|
|
10911
10876
|
}, $scope4_id, "l");
|
|
10912
10877
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10913
|
-
const $
|
|
10914
|
-
_html(`<div${_attr_class(["
|
|
10878
|
+
const $scope8_id = _scope_id();
|
|
10879
|
+
_html(`<div${_attr_class(["_dx", { ["_do"]: s.id === input.currentTab }])}>`);
|
|
10915
10880
|
_if(() => {
|
|
10916
10881
|
if (renamingId === s.id) {
|
|
10917
|
-
const $
|
|
10882
|
+
const $scope10_id = _scope_id();
|
|
10918
10883
|
_html(`<span${_attr_class([
|
|
10919
10884
|
"_A",
|
|
10920
10885
|
phase[sessionPhase(s.state)],
|
|
10921
|
-
"
|
|
10922
|
-
])}></span>${_el_resume($
|
|
10886
|
+
"_dJ"
|
|
10887
|
+
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
10923
10888
|
_set_serialize_reason({
|
|
10924
10889
|
1: $sg__input_sessions,
|
|
10925
10890
|
2: $sg__input_sessions
|
|
@@ -10928,17 +10893,17 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10928
10893
|
icon_agent_default({
|
|
10929
10894
|
agent: activeAgent(s),
|
|
10930
10895
|
size: 12,
|
|
10931
|
-
class: "
|
|
10896
|
+
class: "_dN"
|
|
10932
10897
|
});
|
|
10933
|
-
_html(`<input${_attr_input_value($
|
|
10898
|
+
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10934
10899
|
renameValue = _new_renameValue;
|
|
10935
|
-
}, "A0", $
|
|
10936
|
-
_script($
|
|
10937
|
-
_subscribe($renameValue__closures, writeScope($
|
|
10900
|
+
}, "A0", $scope10_id))}${_attr_class(["_Z", sessRename$1])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
10901
|
+
_script($scope10_id, "A7");
|
|
10902
|
+
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
10938
10903
|
return 0;
|
|
10939
10904
|
} else {
|
|
10940
|
-
const $
|
|
10941
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class(sessBtn$1)}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($
|
|
10905
|
+
const $scope9_id = _scope_id();
|
|
10906
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class(sessBtn$1)}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
10942
10907
|
_set_serialize_reason({
|
|
10943
10908
|
1: $sg__input_sessions,
|
|
10944
10909
|
2: $sg__input_sessions
|
|
@@ -10947,39 +10912,39 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10947
10912
|
icon_agent_default({
|
|
10948
10913
|
agent: activeAgent(s),
|
|
10949
10914
|
size: 12,
|
|
10950
|
-
class: "
|
|
10915
|
+
class: "_dN"
|
|
10951
10916
|
});
|
|
10952
|
-
_html(`<span${_attr_class("
|
|
10917
|
+
_html(`<span${_attr_class("_dH")}>${_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("_dI")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10953
10918
|
icon_edit_default({ size: 12 });
|
|
10954
|
-
_html(`</button>${_el_resume($
|
|
10919
|
+
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10955
10920
|
icon_xmark_default({ size: 12 });
|
|
10956
|
-
_html(`</button>${_el_resume($
|
|
10921
|
+
_html(`</button>${_el_resume($scope9_id, "i")}</div>`);
|
|
10957
10922
|
_if(() => {
|
|
10958
10923
|
if (openPlan && s.id === openSess?.id) {
|
|
10959
|
-
const $
|
|
10924
|
+
const $scope12_id = _scope_id();
|
|
10960
10925
|
_set_serialize_reason(1);
|
|
10961
10926
|
const $childScope6 = _peek_scope_id();
|
|
10962
10927
|
usage_pcts_default({
|
|
10963
10928
|
agent: openPlan,
|
|
10964
|
-
class: "
|
|
10929
|
+
class: "_dE"
|
|
10965
10930
|
});
|
|
10966
|
-
_subscribe($openPlan__closures, writeScope($
|
|
10931
|
+
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10967
10932
|
a: _existing_scope($childScope6),
|
|
10968
|
-
|
|
10933
|
+
Caz: 3
|
|
10969
10934
|
}));
|
|
10970
10935
|
return 0;
|
|
10971
10936
|
}
|
|
10972
|
-
}, $
|
|
10973
|
-
_script($
|
|
10974
|
-
_subscribe($si__input_workspace && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures, _subscribe($armedKill__closures, writeScope($
|
|
10937
|
+
}, $scope9_id, "k");
|
|
10938
|
+
_script($scope9_id, "A8");
|
|
10939
|
+
_subscribe($si__input_workspace && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures, _subscribe($armedKill__closures, writeScope($scope9_id, {
|
|
10975
10940
|
c: $si__input_sessions && _existing_scope($childScope5),
|
|
10976
|
-
|
|
10977
|
-
|
|
10941
|
+
Caz: 1,
|
|
10942
|
+
Cb1: $si__input_workspace && 3
|
|
10978
10943
|
})))));
|
|
10979
10944
|
return 1;
|
|
10980
10945
|
}
|
|
10981
|
-
}, $
|
|
10982
|
-
_subscribe($renamingId__closures, _subscribe($si__input_currentTab && $input_currentTab__closures, writeScope($
|
|
10946
|
+
}, $scope8_id, "a", 1, 1, 1, "</div>");
|
|
10947
|
+
_subscribe($renamingId__closures, _subscribe($si__input_currentTab && $input_currentTab__closures, writeScope($scope8_id, {
|
|
10983
10948
|
c: s,
|
|
10984
10949
|
d: s?.id,
|
|
10985
10950
|
g: s?.state,
|
|
@@ -10988,14 +10953,14 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10988
10953
|
_: _scope_with_id($scope4_id)
|
|
10989
10954
|
})));
|
|
10990
10955
|
}, "id", $scope4_id, "m", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
|
|
10991
|
-
_set_serialize_reason(_serialize_guard($scope0_reason,
|
|
10956
|
+
_set_serialize_reason(_serialize_guard($scope0_reason, 25));
|
|
10992
10957
|
const $childScope7 = _peek_scope_id();
|
|
10993
10958
|
side_nav_chips_default({
|
|
10994
10959
|
workspaceId: input.workspaceId,
|
|
10995
10960
|
status: st
|
|
10996
10961
|
});
|
|
10997
10962
|
_html(`</div></section>${_el_resume($scope4_id, "a")}`);
|
|
10998
|
-
_script($scope4_id, "
|
|
10963
|
+
_script($scope4_id, "A9");
|
|
10999
10964
|
_subscribe($si__input_workspace && $ws_name__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($openPlan__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_page && $input_page__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
11000
10965
|
q: sessions$1.length,
|
|
11001
10966
|
s: $si__input_sessions && sessions$1[0],
|
|
@@ -11003,11 +10968,11 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
11003
10968
|
v: $si__input_page__OR__input_sessions__OR__input_status && metaText,
|
|
11004
10969
|
_: _scope_with_id($scope1_id),
|
|
11005
10970
|
n: _serialize_if($scope0_reason, 5) && _existing_scope($childScope7),
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
10971
|
+
Cai: $si__input_current && 1,
|
|
10972
|
+
Caj: $si__input_page && 1,
|
|
10973
|
+
Caq: $si__input_railPop && 1,
|
|
10974
|
+
Cb1: $si__input_workspace && 1,
|
|
10975
|
+
Cb2: $si__input_workspace && 2
|
|
11011
10976
|
})))))))));
|
|
11012
10977
|
return 2;
|
|
11013
10978
|
}
|
|
@@ -11020,76 +10985,74 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
11020
10985
|
return 0;
|
|
11021
10986
|
}
|
|
11022
10987
|
}, $scope0_id, "a", $sg__input_rail__OR__input_workspace__OR__input_status, $sg__input_workspace, $sg__input_workspace);
|
|
10988
|
+
_script($scope0_id, "A10");
|
|
11023
10989
|
_script($scope0_id, "A11");
|
|
11024
10990
|
_script($scope0_id, "A12");
|
|
11025
|
-
_script($scope0_id, "A13");
|
|
11026
10991
|
writeScope($scope0_id, {
|
|
11027
10992
|
d: input.onRenameSession,
|
|
11028
|
-
e: _serialize_if($scope0_reason,
|
|
11029
|
-
f: _serialize_if($scope0_reason,
|
|
11030
|
-
g: _serialize_if($scope0_reason,
|
|
11031
|
-
h: _serialize_if($scope0_reason,
|
|
11032
|
-
i: _serialize_if($scope0_reason,
|
|
10993
|
+
e: _serialize_if($scope0_reason, 18) && input.current,
|
|
10994
|
+
f: _serialize_if($scope0_reason, 19) && input.page,
|
|
10995
|
+
g: _serialize_if($scope0_reason, 16) && input.rail,
|
|
10996
|
+
h: _serialize_if($scope0_reason, 15) && input.sessions,
|
|
10997
|
+
i: _serialize_if($scope0_reason, 14) && input.currentTab,
|
|
11033
10998
|
l: input.workspaceId,
|
|
11034
10999
|
m: $si__input_workspace && input.status,
|
|
11035
11000
|
n: $si__input_rail__OR__input_workspace && input.index,
|
|
11036
11001
|
o: _serialize_if($scope0_reason, 11) && input.railPop,
|
|
11037
11002
|
p: input.onSelect,
|
|
11038
|
-
q:
|
|
11039
|
-
r: input.
|
|
11040
|
-
s: input.
|
|
11041
|
-
t: $si__input_page__OR__input_rail__OR__input_workspace && input.
|
|
11042
|
-
u:
|
|
11043
|
-
v:
|
|
11044
|
-
|
|
11045
|
-
y:
|
|
11046
|
-
z:
|
|
11047
|
-
a0:
|
|
11048
|
-
|
|
11049
|
-
a3:
|
|
11050
|
-
a4:
|
|
11051
|
-
|
|
11052
|
-
a7:
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
ac: ws$1?.
|
|
11056
|
-
ad:
|
|
11057
|
-
ae:
|
|
11058
|
-
af:
|
|
11059
|
-
ag:
|
|
11060
|
-
ah:
|
|
11061
|
-
ai:
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11067
|
-
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
b6: $
|
|
11072
|
-
|
|
11073
|
-
|
|
11074
|
-
|
|
11075
|
-
|
|
11076
|
-
|
|
11077
|
-
|
|
11078
|
-
|
|
11079
|
-
|
|
11080
|
-
|
|
11081
|
-
|
|
11082
|
-
|
|
11083
|
-
|
|
11084
|
-
am: $si__input_sessions && $input_sessions__closures,
|
|
11085
|
-
ao: $si__input_workspaceId && $input_workspaceId__closures
|
|
11003
|
+
q: input.onNewSession,
|
|
11004
|
+
r: input.agents,
|
|
11005
|
+
s: $si__input_page__OR__input_rail__OR__input_workspace && input.onReview,
|
|
11006
|
+
t: $si__input_page__OR__input_rail__OR__input_workspace && input.managing,
|
|
11007
|
+
u: input.onCloseSession,
|
|
11008
|
+
v: armedKill,
|
|
11009
|
+
x: armBox.timer,
|
|
11010
|
+
y: arm,
|
|
11011
|
+
z: renamingId,
|
|
11012
|
+
a0: renameValue,
|
|
11013
|
+
a2: commitRename,
|
|
11014
|
+
a3: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && usage,
|
|
11015
|
+
a4: openSess,
|
|
11016
|
+
a6: openSess?.id,
|
|
11017
|
+
a7: openPlan,
|
|
11018
|
+
a9: ws$1?.pending,
|
|
11019
|
+
ab: ws$1?.id,
|
|
11020
|
+
ac: $si__input_rail__OR__input_workspace && ws$1?.name,
|
|
11021
|
+
ad: ws$1?.pending_error,
|
|
11022
|
+
ae: $si__input_rail__OR__input_workspace && restoreLine,
|
|
11023
|
+
af: armedDelete,
|
|
11024
|
+
ag: $si__input_rail__OR__input_workspace && retrying,
|
|
11025
|
+
ah: restoreAction,
|
|
11026
|
+
ai: $si__input_current && $input_current__closures,
|
|
11027
|
+
ap: $si__input_index && $input_index__closures,
|
|
11028
|
+
b0: $si__input_workspace && $ws_pending__closures,
|
|
11029
|
+
b1: $si__input_workspace && $ws_id__closures,
|
|
11030
|
+
b2: $si__input_workspace && $ws_name__closures,
|
|
11031
|
+
b5: $armedDelete__closures,
|
|
11032
|
+
aj: $si__input_page && $input_page__closures,
|
|
11033
|
+
aq: $si__input_railPop && $input_railPop__closures,
|
|
11034
|
+
b3: $si__input_workspace && $ws_pending_error__closures,
|
|
11035
|
+
b4: $restoreLine__closures,
|
|
11036
|
+
b6: $retrying__closures,
|
|
11037
|
+
as: $si__input_agents && $input_agents__closures,
|
|
11038
|
+
ar: $si__input_onNewSession && $input_onNewSession__closures,
|
|
11039
|
+
at: $si__input_onReview && $input_onReview__closures,
|
|
11040
|
+
au: $si__input_managing && $input_managing__closures,
|
|
11041
|
+
az: $openPlan__closures,
|
|
11042
|
+
ax: $renameValue__closures,
|
|
11043
|
+
av: $armedKill__closures,
|
|
11044
|
+
ay: $si__input_current__OR__input_page__OR__input_rail__OR__input_sessions__OR__input_currentTab && $openSess_id__closures,
|
|
11045
|
+
am: $si__input_currentTab && $input_currentTab__closures,
|
|
11046
|
+
aw: $renamingId__closures,
|
|
11047
|
+
al: $si__input_sessions && $input_sessions__closures,
|
|
11048
|
+
an: $si__input_workspaceId && $input_workspaceId__closures
|
|
11086
11049
|
});
|
|
11087
11050
|
_resume_branch($scope0_id);
|
|
11088
11051
|
});
|
|
11089
11052
|
//#endregion
|
|
11090
11053
|
//#region src/tags/workspace-switcher.marko
|
|
11091
11054
|
var workspace_switcher_default = _template("K", (input) => {
|
|
11092
|
-
const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason,
|
|
11055
|
+
const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 4), $sg__input_workspace = _serialize_guard($scope0_reason, 10), $si__input_tab = _serialize_if($scope0_reason, 13), $si__input_workspace__OR__input_allStatus__OR__input_sessions = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab = _serialize_if($scope0_reason, 7), $sg__input_ids__OR__input_byId = _serialize_guard($scope0_reason, 3), $sg__input_allStatus__OR__input_ids = _serialize_guard($scope0_reason, 2), $sg__input_allStatus__OR__input_ids__OR__input_byId = _serialize_guard($scope0_reason, 6), $si__input_allStatus__OR__input_ids = _serialize_if($scope0_reason, 2), $sg__input_ids = _serialize_guard($scope0_reason, 14), $si__input_allStatus = _serialize_if($scope0_reason, 11), $si__input_allStatus__OR__input_ids__OR__input_byId = _serialize_if($scope0_reason, 6), $si__input_ids__OR__input_byId = _serialize_if($scope0_reason, 3), $sg__input_workspace__OR__input_ids_length = _serialize_guard($scope0_reason, 1), $si__input_workspace__OR__input_allStatus = _serialize_if($scope0_reason, 0), $si__input_workspace = _serialize_if($scope0_reason, 10), $si__input_byId = _serialize_if($scope0_reason, 16);
|
|
11093
11056
|
const $scope0_id = _scope_id();
|
|
11094
11057
|
const $sessions___closures = /* @__PURE__ */ new Set();
|
|
11095
11058
|
const $input_tab__closures = /* @__PURE__ */ new Set();
|
|
@@ -11103,14 +11066,14 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11103
11066
|
const sessions = input.sessions || st?.sessions || [];
|
|
11104
11067
|
const manySessions = sessions.length > 1;
|
|
11105
11068
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11106
|
-
_html(`<div${_attr_class("
|
|
11069
|
+
_html(`<div${_attr_class("_cV")}>`);
|
|
11107
11070
|
_if(() => {
|
|
11108
11071
|
if (ws) {
|
|
11109
11072
|
const $scope1_id = _scope_id();
|
|
11110
|
-
_html(`<section${_attr_class("
|
|
11073
|
+
_html(`<section${_attr_class("_cW")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_cX")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11111
11074
|
_if(() => {
|
|
11112
11075
|
if (sessions.length === 1) {
|
|
11113
|
-
const $
|
|
11076
|
+
const $scope8_id = _scope_id();
|
|
11114
11077
|
_set_serialize_reason({
|
|
11115
11078
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11116
11079
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11119,23 +11082,23 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11119
11082
|
icon_agent_default({
|
|
11120
11083
|
agent: activeAgent(sessions[0]),
|
|
11121
11084
|
size: 16,
|
|
11122
|
-
class: "
|
|
11085
|
+
class: "_c0"
|
|
11123
11086
|
});
|
|
11124
|
-
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($
|
|
11087
|
+
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11125
11088
|
_: _scope_with_id($scope1_id),
|
|
11126
11089
|
a: _existing_scope($childScope)
|
|
11127
11090
|
}));
|
|
11128
11091
|
return 0;
|
|
11129
11092
|
}
|
|
11130
11093
|
}, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
|
|
11131
|
-
_html(`<span${_attr_class("
|
|
11094
|
+
_html(`<span${_attr_class("_cY")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_cZ")}>${_text_resume($scope1_id, "h", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11132
11095
|
_if(() => {
|
|
11133
11096
|
if (manySessions) {
|
|
11134
11097
|
const $scope2_id = _scope_id();
|
|
11135
|
-
_html(`<div${_attr_class("
|
|
11098
|
+
_html(`<div${_attr_class("_c1")}>`);
|
|
11136
11099
|
_for_of(sessions, (s) => {
|
|
11137
11100
|
const $scope3_id = _scope_id();
|
|
11138
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11101
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_c3", { ["_c2"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
|
|
11139
11102
|
_set_serialize_reason({
|
|
11140
11103
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11141
11104
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11145,7 +11108,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11145
11108
|
agent: activeAgent(s),
|
|
11146
11109
|
size: 14
|
|
11147
11110
|
});
|
|
11148
|
-
_html(`<span${_attr_class("
|
|
11111
|
+
_html(`<span${_attr_class("_c4")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 7))}`);
|
|
11149
11112
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
|
|
11150
11113
|
h: $si__input_tab && s?.id,
|
|
11151
11114
|
_: _scope_with_id($scope2_id),
|
|
@@ -11170,189 +11133,147 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11170
11133
|
});
|
|
11171
11134
|
return 0;
|
|
11172
11135
|
}
|
|
11173
|
-
}, $scope0_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace, $
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
|
|
11136
|
+
}, $scope0_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace, $sg__input_workspace__OR__input_ids_length, 0, 1);
|
|
11137
|
+
_if(() => {
|
|
11138
|
+
if (input.ids.length) {
|
|
11139
|
+
const $scope4_id = _scope_id();
|
|
11140
|
+
_html(`<div${_attr_class("_c5")}>`);
|
|
11141
|
+
_for_of(input.ids, (id) => {
|
|
11178
11142
|
const $scope5_id = _scope_id();
|
|
11179
|
-
const
|
|
11180
|
-
const done = i === 1;
|
|
11181
|
-
_html(`<section${_attr_class("_fl")}>`);
|
|
11143
|
+
const w = input.byId.get(id);
|
|
11182
11144
|
_if(() => {
|
|
11183
|
-
if (
|
|
11184
|
-
const $
|
|
11185
|
-
|
|
11186
|
-
|
|
11145
|
+
if (w?.pending) {
|
|
11146
|
+
const $scope6_id = _scope_id();
|
|
11147
|
+
_set_serialize_reason({
|
|
11148
|
+
0: $sg__input_ids__OR__input_byId,
|
|
11149
|
+
1: $sg__input_ids__OR__input_byId,
|
|
11150
|
+
2: $sg__input_ids__OR__input_byId,
|
|
11151
|
+
3: $sg__input_allStatus__OR__input_ids,
|
|
11152
|
+
4: $sg__input_ids__OR__input_byId,
|
|
11153
|
+
5: $sg__input_allStatus__OR__input_ids,
|
|
11154
|
+
7: $sg__input_ids__OR__input_byId,
|
|
11155
|
+
8: $sg__input_allStatus__OR__input_ids,
|
|
11156
|
+
9: $sg__input_ids__OR__input_byId,
|
|
11157
|
+
10: $sg__input_allStatus__OR__input_ids__OR__input_byId,
|
|
11158
|
+
11: $sg__input_ids__OR__input_byId,
|
|
11159
|
+
12: $sg__input_ids__OR__input_byId,
|
|
11160
|
+
14: $sg__input_ids__OR__input_byId,
|
|
11161
|
+
15: $sg__input_ids__OR__input_byId,
|
|
11162
|
+
16: $sg__input_ids__OR__input_byId,
|
|
11163
|
+
17: $sg__input_allStatus__OR__input_ids__OR__input_byId,
|
|
11164
|
+
18: $sg__input_ids__OR__input_byId,
|
|
11165
|
+
19: $sg__input_allStatus__OR__input_ids__OR__input_byId,
|
|
11166
|
+
24: $sg__input_ids__OR__input_byId,
|
|
11167
|
+
25: $sg__input_ids,
|
|
11168
|
+
26: $sg__input_allStatus__OR__input_ids
|
|
11169
|
+
});
|
|
11170
|
+
const $childScope4 = _peek_scope_id();
|
|
11171
|
+
side_nav_item_default({
|
|
11172
|
+
page: true,
|
|
11173
|
+
workspaceId: id,
|
|
11174
|
+
workspace: w,
|
|
11175
|
+
status: input.allStatus[id],
|
|
11176
|
+
current: false,
|
|
11177
|
+
onSelect: _resume(function() {}, "K0")
|
|
11178
|
+
});
|
|
11179
|
+
$si__input_allStatus__OR__input_ids__OR__input_byId && _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope6_id, {
|
|
11180
|
+
_: _scope_with_id($scope5_id),
|
|
11181
|
+
a: _existing_scope($childScope4)
|
|
11182
|
+
}));
|
|
11187
11183
|
return 0;
|
|
11184
|
+
} else if (w) {
|
|
11185
|
+
const $scope7_id = _scope_id();
|
|
11186
|
+
const rs = input.allStatus[id];
|
|
11187
|
+
const rp = phaseOf(rs);
|
|
11188
|
+
const rowSessions = rs?.sessions || [];
|
|
11189
|
+
const many = rowSessions.length > 1;
|
|
11190
|
+
_html(`<div${_attr_class("_c6")}><a${_attr("href", `/w/${id}`)}${_attr_class("_c7")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11191
|
+
_if(() => {
|
|
11192
|
+
if (rowSessions.length === 1) {
|
|
11193
|
+
const $scope9_id = _scope_id();
|
|
11194
|
+
_set_serialize_reason({
|
|
11195
|
+
1: $sg__input_allStatus__OR__input_ids,
|
|
11196
|
+
2: $sg__input_allStatus__OR__input_ids
|
|
11197
|
+
});
|
|
11198
|
+
const $childScope5 = _peek_scope_id();
|
|
11199
|
+
icon_agent_default({
|
|
11200
|
+
agent: activeAgent(rowSessions[0]),
|
|
11201
|
+
size: 16,
|
|
11202
|
+
class: "_c9"
|
|
11203
|
+
});
|
|
11204
|
+
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11205
|
+
_: _scope_with_id($scope7_id),
|
|
11206
|
+
a: _existing_scope($childScope5)
|
|
11207
|
+
});
|
|
11208
|
+
return 0;
|
|
11209
|
+
}
|
|
11210
|
+
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11211
|
+
_html(`<span${_attr_class("_c8")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11212
|
+
_if(() => {
|
|
11213
|
+
if (many) {
|
|
11214
|
+
const $scope10_id = _scope_id();
|
|
11215
|
+
_html(`<span${_attr_class(rowState)}>${_text_resume($scope10_id, "b", rowSessions.length, $sg__input_allStatus__OR__input_ids)} sessions</span>`);
|
|
11216
|
+
$si__input_allStatus__OR__input_ids && writeScope($scope10_id, { _: _scope_with_id($scope7_id) });
|
|
11217
|
+
return 0;
|
|
11218
|
+
}
|
|
11219
|
+
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11220
|
+
icon_chevron_right_default({
|
|
11221
|
+
size: 14,
|
|
11222
|
+
class: "_da"
|
|
11223
|
+
});
|
|
11224
|
+
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11225
|
+
_set_serialize_reason($sg__input_ids);
|
|
11226
|
+
const $childScope6 = _peek_scope_id();
|
|
11227
|
+
side_nav_chips_default({
|
|
11228
|
+
workspaceId: id,
|
|
11229
|
+
status: rs
|
|
11230
|
+
});
|
|
11231
|
+
_html("</div>");
|
|
11232
|
+
$si__input_allStatus__OR__input_ids__OR__input_byId && _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope7_id, {
|
|
11233
|
+
o: $si__input_allStatus__OR__input_ids && rowSessions.length,
|
|
11234
|
+
p: $si__input_allStatus__OR__input_ids && rowSessions[0],
|
|
11235
|
+
_: _scope_with_id($scope5_id),
|
|
11236
|
+
i: $si__input_allStatus__OR__input_ids && _existing_scope($childScope6),
|
|
11237
|
+
Ca0: $si__input_allStatus && 1
|
|
11238
|
+
}));
|
|
11239
|
+
return 1;
|
|
11188
11240
|
}
|
|
11189
|
-
}, $scope5_id, "
|
|
11190
|
-
|
|
11191
|
-
|
|
11192
|
-
|
|
11193
|
-
|
|
11194
|
-
|
|
11195
|
-
|
|
11196
|
-
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
|
|
11200
|
-
|
|
11201
|
-
3: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
|
|
11202
|
-
4: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11203
|
-
5: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
|
|
11204
|
-
6: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11205
|
-
7: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
|
|
11206
|
-
8: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11207
|
-
9: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11208
|
-
11: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11209
|
-
12: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11210
|
-
13: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11211
|
-
15: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11212
|
-
16: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11213
|
-
17: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11214
|
-
18: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11215
|
-
19: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11216
|
-
20: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11217
|
-
25: $sg__input_openIds__OR__input_doneIds__OR__input_byId,
|
|
11218
|
-
26: $sg__input_openIds__OR__input_doneIds,
|
|
11219
|
-
27: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds
|
|
11220
|
-
});
|
|
11221
|
-
const $childScope4 = _peek_scope_id();
|
|
11222
|
-
side_nav_item_default({
|
|
11223
|
-
page: true,
|
|
11224
|
-
workspaceId: id,
|
|
11225
|
-
workspace: w,
|
|
11226
|
-
status: input.allStatus[id],
|
|
11227
|
-
current: false,
|
|
11228
|
-
onSelect: _resume(function() {}, "K0")
|
|
11229
|
-
});
|
|
11230
|
-
_serialize_if($scope0_reason, 7) && _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope7_id, {
|
|
11231
|
-
_: _scope_with_id($scope6_id),
|
|
11232
|
-
a: _existing_scope($childScope4)
|
|
11233
|
-
}));
|
|
11234
|
-
return 0;
|
|
11235
|
-
} else if (w) {
|
|
11236
|
-
const $scope8_id = _scope_id();
|
|
11237
|
-
const rs = input.allStatus[id];
|
|
11238
|
-
const rp = phaseOf(rs);
|
|
11239
|
-
const rowSessions = rs?.sessions || [];
|
|
11240
|
-
const many = rowSessions.length > 1;
|
|
11241
|
-
_html(`<div${_attr_class("_fo")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fp")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope8_id, "c", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds)}`);
|
|
11242
|
-
_if(() => {
|
|
11243
|
-
if (rowSessions.length === 1) {
|
|
11244
|
-
const $scope12_id = _scope_id();
|
|
11245
|
-
_set_serialize_reason({
|
|
11246
|
-
1: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds,
|
|
11247
|
-
2: $sg__input_allStatus__OR__input_openIds__OR__input_doneIds
|
|
11248
|
-
});
|
|
11249
|
-
const $childScope5 = _peek_scope_id();
|
|
11250
|
-
icon_agent_default({
|
|
11251
|
-
agent: activeAgent(rowSessions[0]),
|
|
11252
|
-
size: 16,
|
|
11253
|
-
class: "_fr"
|
|
11254
|
-
});
|
|
11255
|
-
$si__input_allStatus__OR__input_openIds__OR__input_doneIds && writeScope($scope12_id, {
|
|
11256
|
-
_: _scope_with_id($scope8_id),
|
|
11257
|
-
a: _existing_scope($childScope5)
|
|
11258
|
-
});
|
|
11259
|
-
return 0;
|
|
11260
|
-
}
|
|
11261
|
-
}, $scope8_id, "d", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds);
|
|
11262
|
-
_html(`<span${_attr_class("_fq")}>${_text_resume($scope8_id, "f", w.name, $sg__input_openIds__OR__input_doneIds__OR__input_byId)}</span>`);
|
|
11263
|
-
_if(() => {
|
|
11264
|
-
if (many) {
|
|
11265
|
-
const $scope13_id = _scope_id();
|
|
11266
|
-
_html(`<span${_attr_class(rowState)}>${_text_resume($scope13_id, "b", rowSessions.length, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds)} sessions</span>`);
|
|
11267
|
-
$si__input_allStatus__OR__input_openIds__OR__input_doneIds && writeScope($scope13_id, { _: _scope_with_id($scope8_id) });
|
|
11268
|
-
return 0;
|
|
11269
|
-
}
|
|
11270
|
-
}, $scope8_id, "g", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, 0, 1);
|
|
11271
|
-
_if(() => {
|
|
11272
|
-
if (done) {
|
|
11273
|
-
const $scope9_id = _scope_id();
|
|
11274
|
-
_html(`<button${_attr_class(rowArchive)} title="Every PR is finished. Archive this workspace">`);
|
|
11275
|
-
icon_archive_default({ size: 12 });
|
|
11276
|
-
_html(` Archive</button>${_el_resume($scope9_id, "a")}`);
|
|
11277
|
-
_script($scope9_id, "K2");
|
|
11278
|
-
writeScope($scope9_id, { _: _scope_with_id($scope8_id) });
|
|
11279
|
-
return 0;
|
|
11280
|
-
} else {
|
|
11281
|
-
const $scope14_id = _scope_id();
|
|
11282
|
-
icon_chevron_right_default({
|
|
11283
|
-
size: 14,
|
|
11284
|
-
class: "_ft"
|
|
11285
|
-
});
|
|
11286
|
-
$si__input_openIds__OR__input_doneIds && writeScope($scope14_id, {});
|
|
11287
|
-
return 1;
|
|
11288
|
-
}
|
|
11289
|
-
}, $scope8_id, "h", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, 0, 1);
|
|
11290
|
-
_html(`</a>${_el_resume($scope8_id, "b", $sg__input_openIds__OR__input_doneIds)}`);
|
|
11291
|
-
_set_serialize_reason($sg__input_openIds__OR__input_doneIds);
|
|
11292
|
-
const $childScope6 = _peek_scope_id();
|
|
11293
|
-
side_nav_chips_default({
|
|
11294
|
-
workspaceId: id,
|
|
11295
|
-
status: rs
|
|
11296
|
-
});
|
|
11297
|
-
_html("</div>");
|
|
11298
|
-
_subscribe($si__input_openIds__OR__input_doneIds && $if_content3__done__closures, _subscribe($si__input_allStatus && $input_allStatus__closures, writeScope($scope8_id, {
|
|
11299
|
-
o: $si__input_allStatus__OR__input_openIds__OR__input_doneIds && rowSessions.length,
|
|
11300
|
-
p: $si__input_allStatus__OR__input_openIds__OR__input_doneIds && rowSessions[0],
|
|
11301
|
-
_: _scope_with_id($scope6_id),
|
|
11302
|
-
i: $si__input_allStatus__OR__input_openIds__OR__input_doneIds && _existing_scope($childScope6),
|
|
11303
|
-
Ca2: $si__input_allStatus && 1
|
|
11304
|
-
})));
|
|
11305
|
-
return 1;
|
|
11306
|
-
}
|
|
11307
|
-
}, $scope6_id, "a", $sg__input_openIds__OR__input_doneIds__OR__input_byId, $sg__input_openIds__OR__input_doneIds__OR__input_byId, $sg__input_openIds__OR__input_doneIds__OR__input_byId);
|
|
11308
|
-
_subscribe($si__input_byId && $input_byId__closures, writeScope($scope6_id, {
|
|
11309
|
-
c: id,
|
|
11310
|
-
e: $si__input_openIds__OR__input_doneIds__OR__input_byId && w,
|
|
11311
|
-
f: $si__input_openIds__OR__input_doneIds__OR__input_byId && w?.name,
|
|
11312
|
-
_: _scope_with_id($scope5_id)
|
|
11313
|
-
}));
|
|
11314
|
-
}, (id) => id, $scope5_id, "c", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, "</div>");
|
|
11315
|
-
_html("</section>");
|
|
11316
|
-
writeScope($scope5_id, {
|
|
11317
|
-
d: $si__input_openIds__OR__input_doneIds__OR__input_byId && done,
|
|
11318
|
-
_: _scope_with_id($scope4_id),
|
|
11319
|
-
e: $si__input_openIds__OR__input_doneIds && $if_content3__done__closures
|
|
11320
|
-
});
|
|
11321
|
-
return 0;
|
|
11322
|
-
}
|
|
11323
|
-
}, $scope4_id, "a", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, 0, 1);
|
|
11324
|
-
writeScope($scope4_id, {
|
|
11325
|
-
c: $si__input_openIds__OR__input_doneIds && ids,
|
|
11326
|
-
e: $si__input_openIds__OR__input_doneIds && i,
|
|
11327
|
-
_: _scope_with_id($scope0_id)
|
|
11328
|
-
});
|
|
11329
|
-
}, (_, i) => String(i), $scope0_id, "c", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds);
|
|
11241
|
+
}, $scope5_id, "a", $sg__input_ids__OR__input_byId, $sg__input_ids__OR__input_byId, $sg__input_ids__OR__input_byId);
|
|
11242
|
+
$si__input_allStatus__OR__input_ids__OR__input_byId && _subscribe($si__input_byId && $input_byId__closures, writeScope($scope5_id, {
|
|
11243
|
+
c: id,
|
|
11244
|
+
e: $si__input_ids__OR__input_byId && w,
|
|
11245
|
+
f: $si__input_ids__OR__input_byId && w?.name,
|
|
11246
|
+
_: _scope_with_id($scope4_id)
|
|
11247
|
+
}));
|
|
11248
|
+
}, (id) => id, $scope4_id, "a", $sg__input_ids, $sg__input_ids, $sg__input_ids, "</div>");
|
|
11249
|
+
$si__input_allStatus__OR__input_ids__OR__input_byId && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
11250
|
+
return 0;
|
|
11251
|
+
}
|
|
11252
|
+
}, $scope0_id, "c", $sg__input_ids, _serialize_guard($scope0_reason, 15), $sg__input_workspace__OR__input_ids_length, 0, 1);
|
|
11330
11253
|
_html("</div>");
|
|
11331
|
-
writeScope($scope0_id, {
|
|
11332
|
-
g: _serialize_if($scope0_reason,
|
|
11254
|
+
_serialize_if($scope0_reason, 9) && writeScope($scope0_id, {
|
|
11255
|
+
g: _serialize_if($scope0_reason, 5) && input.allStatus,
|
|
11333
11256
|
h: $si__input_workspace__OR__input_allStatus && input.sessions,
|
|
11334
11257
|
i: $si__input_workspace__OR__input_allStatus__OR__input_sessions && input.tab,
|
|
11335
|
-
j: _serialize_if($scope0_reason,
|
|
11336
|
-
|
|
11337
|
-
m: $
|
|
11338
|
-
|
|
11339
|
-
|
|
11340
|
-
q: $
|
|
11341
|
-
r: $
|
|
11342
|
-
|
|
11343
|
-
|
|
11344
|
-
v: $si__input_workspace &&
|
|
11345
|
-
w: $si__input_workspace__OR__input_allStatus__OR__input_sessions && sessions,
|
|
11346
|
-
x: $si__input_workspace &&
|
|
11347
|
-
|
|
11348
|
-
|
|
11349
|
-
a1: $
|
|
11350
|
-
|
|
11351
|
-
|
|
11352
|
-
|
|
11353
|
-
|
|
11354
|
-
a2: $si__input_allStatus && $input_allStatus__closures,
|
|
11355
|
-
a4: $si__input_byId && $input_byId__closures
|
|
11258
|
+
j: _serialize_if($scope0_reason, 15) && input.ids,
|
|
11259
|
+
l: _serialize_if($scope0_reason, 14) && input.byId,
|
|
11260
|
+
m: $si__input_allStatus && ws,
|
|
11261
|
+
o: $si__input_workspace__OR__input_allStatus__OR__input_sessions && ws?.id,
|
|
11262
|
+
p: $si__input_workspace && ws?.name,
|
|
11263
|
+
q: $si__input_workspace && st,
|
|
11264
|
+
r: _serialize_if($scope0_reason, 12) && st?.sessions,
|
|
11265
|
+
t: $si__input_workspace && phase$1,
|
|
11266
|
+
u: $si__input_workspace__OR__input_allStatus__OR__input_sessions && sessions,
|
|
11267
|
+
v: $si__input_workspace && sessions.length,
|
|
11268
|
+
w: $si__input_workspace__OR__input_allStatus__OR__input_sessions && sessions[0],
|
|
11269
|
+
x: $si__input_workspace && manySessions,
|
|
11270
|
+
z: $si__input_workspace && heroMeta$1,
|
|
11271
|
+
aa: $si__input_workspace__OR__input_allStatus__OR__input_sessions && $sessions___closures,
|
|
11272
|
+
a1: $si__input_tab && $input_tab__closures,
|
|
11273
|
+
a4: $si__input_workspace && $ws_id__closures,
|
|
11274
|
+
a8: $si__input_workspace__OR__input_allStatus__OR__input_sessions && $sessions__closures,
|
|
11275
|
+
a0: $si__input_allStatus && $input_allStatus__closures,
|
|
11276
|
+
a3: $si__input_byId && $input_byId__closures
|
|
11356
11277
|
});
|
|
11357
11278
|
});
|
|
11358
11279
|
//#endregion
|
|
@@ -11408,50 +11329,15 @@ var icon_sidebar_default = _template("pb", (input) => {
|
|
|
11408
11329
|
});
|
|
11409
11330
|
//#endregion
|
|
11410
11331
|
//#region src/tags/side-nav.marko
|
|
11411
|
-
|
|
11412
|
-
|
|
11413
|
-
var GROUP_LABEL = {
|
|
11414
|
-
open: "",
|
|
11415
|
-
done: "Done"
|
|
11416
|
-
};
|
|
11417
|
-
function groupOf(w, st) {
|
|
11418
|
-
if (!st || w.pending || st.working > 0 || st.waiting > 0) return "open";
|
|
11419
|
-
const prs = st.repos.flatMap((r) => r.prs);
|
|
11420
|
-
return prs.length && !prs.some((p) => p.state === "OPEN") ? "done" : "open";
|
|
11421
|
-
}
|
|
11422
|
-
function groupIdsOf(ids, byId, allStatus) {
|
|
11423
|
-
const groups = new Map(GROUP_ORDER.map((g) => [g, []]));
|
|
11424
|
-
const of = /* @__PURE__ */ new Map();
|
|
11425
|
-
for (const id of ids) {
|
|
11426
|
-
const w = byId.get(id);
|
|
11427
|
-
if (!w) continue;
|
|
11428
|
-
const g = groupOf(w, allStatus[id]);
|
|
11429
|
-
of.set(id, g);
|
|
11430
|
-
groups.get(g).push(id);
|
|
11431
|
-
}
|
|
11432
|
-
for (const list of groups.values()) list.sort((a, b) => byId.get(a).name.localeCompare(byId.get(b).name));
|
|
11433
|
-
const start = /* @__PURE__ */ new Map();
|
|
11434
|
-
let sections = 0;
|
|
11435
|
-
for (const g of GROUP_ORDER) {
|
|
11436
|
-
const list = groups.get(g);
|
|
11437
|
-
if (!list.length) continue;
|
|
11438
|
-
sections++;
|
|
11439
|
-
start.set(list[0], g);
|
|
11440
|
-
}
|
|
11441
|
-
return {
|
|
11442
|
-
ids: GROUP_ORDER.flatMap((g) => groups.get(g)),
|
|
11443
|
-
of,
|
|
11444
|
-
done: new Set(groups.get("done")),
|
|
11445
|
-
start: sections > 1 ? start : /* @__PURE__ */ new Map()
|
|
11446
|
-
};
|
|
11332
|
+
function sortedIds(ids, byId) {
|
|
11333
|
+
return ids.filter((id) => byId.has(id)).sort((a, b) => byId.get(a).name.localeCompare(byId.get(b).name));
|
|
11447
11334
|
}
|
|
11448
11335
|
var side_nav_default = _template("B", (input) => {
|
|
11449
|
-
const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason,
|
|
11336
|
+
const $scope0_reason = _scope_reason(), $sg__input_instanceName = _serialize_guard($scope0_reason, 16), $sg__input_setupReady = _serialize_guard($scope0_reason, 17), $sg__input_instanceAccent = _serialize_guard($scope0_reason, 15), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 4), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 6), $si__input_workspace = _serialize_if($scope0_reason, 9), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 14), $sg__input_agents = _serialize_guard($scope0_reason, 19), $si__input_sessions = _serialize_if($scope0_reason, 18), $si__input_agents = _serialize_if($scope0_reason, 19), $si__input_onNewSession = _serialize_if($scope0_reason, 20), $si__input_onReviewOpened = _serialize_if($scope0_reason, 21), $si__input_onReviewOther = _serialize_if($scope0_reason, 22), $si__input_onRenameSession = _serialize_if($scope0_reason, 23), $si__input_onCloseSession = _serialize_if($scope0_reason, 24), $si__input_tab__OR__input_tabChange = _serialize_if($scope0_reason, 2), $si__input_setupReady = _serialize_if($scope0_reason, 17), $si__input_instanceName = _serialize_if($scope0_reason, 16), $si__input_instanceAccent = _serialize_if($scope0_reason, 15);
|
|
11450
11337
|
const $scope0_id = _scope_id();
|
|
11451
11338
|
const $input_instanceName__closures = /* @__PURE__ */ new Set();
|
|
11452
11339
|
const $iconSrc__closures = /* @__PURE__ */ new Set();
|
|
11453
11340
|
const $notifyOn__closures = /* @__PURE__ */ new Set();
|
|
11454
|
-
const $grouped_start__closures = /* @__PURE__ */ new Set();
|
|
11455
11341
|
const $input_sessions__closures = /* @__PURE__ */ new Set();
|
|
11456
11342
|
const $input_agents__closures = /* @__PURE__ */ new Set();
|
|
11457
11343
|
const $input_onNewSession__closures = /* @__PURE__ */ new Set();
|
|
@@ -11465,8 +11351,6 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11465
11351
|
const $leaveNav2__closures = /* @__PURE__ */ new Set();
|
|
11466
11352
|
const $byId__closures = /* @__PURE__ */ new Set();
|
|
11467
11353
|
const $allStatus__closures = /* @__PURE__ */ new Set();
|
|
11468
|
-
const $grouped_done__closures = /* @__PURE__ */ new Set();
|
|
11469
|
-
const $archive2__closures = /* @__PURE__ */ new Set();
|
|
11470
11354
|
const $keyIndex__closures = /* @__PURE__ */ new Set();
|
|
11471
11355
|
const ws = input.workspace || null;
|
|
11472
11356
|
let tab = input.tab;
|
|
@@ -11495,58 +11379,46 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11495
11379
|
const workspaces = input.allWorkspaces || (ws ? [ws] : []);
|
|
11496
11380
|
const byId = new Map(workspaces.map((w) => [w.id, w]));
|
|
11497
11381
|
const allStatus = input.allStatus || {};
|
|
11498
|
-
const
|
|
11382
|
+
const orderedIds = sortedIds(itemIds, byId);
|
|
11499
11383
|
const keyIndex = (() => {
|
|
11500
11384
|
const m = /* @__PURE__ */ new Map();
|
|
11501
11385
|
let n = 0;
|
|
11502
|
-
for (const id of
|
|
11386
|
+
for (const id of orderedIds) if (!byId.get(id)?.pending) m.set(id, n++);
|
|
11503
11387
|
return m;
|
|
11504
11388
|
})();
|
|
11505
|
-
const archive = _resume(async (id) => {
|
|
11506
|
-
try {
|
|
11507
|
-
await api$7(`/api/workspaces/${id}`, {
|
|
11508
|
-
method: "POST",
|
|
11509
|
-
headers: { "content-type": "application/json" },
|
|
11510
|
-
body: JSON.stringify({ action: "archive" })
|
|
11511
|
-
});
|
|
11512
|
-
} catch (err) {
|
|
11513
|
-
input.onError?.(`Archive failed: ${String(err.message || err)}`);
|
|
11514
|
-
}
|
|
11515
|
-
}, "B2", $scope0_id);
|
|
11516
11389
|
const isPage = view === "nav";
|
|
11517
11390
|
const backHref = ws ? `/w/${ws.id}` : "/new";
|
|
11518
11391
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11519
|
-
const
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
["
|
|
11523
|
-
["_cc"]: isPage
|
|
11392
|
+
const pageIds = orderedIds.filter((id) => id !== ws?.id);
|
|
11393
|
+
_html(`<aside${_attr_class(["_bR", {
|
|
11394
|
+
["_bP"]: !navOpen,
|
|
11395
|
+
["_bQ"]: isPage
|
|
11524
11396
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11525
11397
|
_if(() => {
|
|
11526
11398
|
if (isPage) {
|
|
11527
11399
|
const $scope1_id = _scope_id();
|
|
11528
|
-
_html(`<header${_attr_class("
|
|
11400
|
+
_html(`<header${_attr_class("_bU")}><div${_attr_class("_b2")}>`);
|
|
11529
11401
|
_if(() => {
|
|
11530
11402
|
if (input.instanceName) {
|
|
11531
11403
|
const $scope2_id = _scope_id();
|
|
11532
|
-
_html(`<div${_attr_class("
|
|
11404
|
+
_html(`<div${_attr_class("_bZ")} title="This work server (Settings → Appearance)"><img${_attr_class("_b0")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b1")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11533
11405
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11534
11406
|
return 0;
|
|
11535
11407
|
}
|
|
11536
11408
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11537
|
-
_html(`<h1${_attr_class("
|
|
11409
|
+
_html(`<h1${_attr_class("_bV")}>Workspaces</h1></div><div${_attr_class("_bW")}>`);
|
|
11538
11410
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11539
11411
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11540
11412
|
iconBtn,
|
|
11541
|
-
"
|
|
11542
|
-
{ ["
|
|
11413
|
+
"_bX",
|
|
11414
|
+
{ ["_bM"]: view === "settings" }
|
|
11543
11415
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11544
11416
|
icon_settings_default({ size: 16 });
|
|
11545
11417
|
_if(() => {
|
|
11546
11418
|
if (input.setupReady === false) {
|
|
11547
|
-
const $
|
|
11419
|
+
const $scope14_id = _scope_id();
|
|
11548
11420
|
_html(`<span${_attr_class(["_A", settingsDot])} title="Machine setup incomplete"></span>`);
|
|
11549
|
-
$si__input_setupReady && writeScope($
|
|
11421
|
+
$si__input_setupReady && writeScope($scope14_id, {});
|
|
11550
11422
|
return 0;
|
|
11551
11423
|
}
|
|
11552
11424
|
}, $scope1_id, "i", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
@@ -11558,7 +11430,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11558
11430
|
_if(() => {
|
|
11559
11431
|
if (!isPage && input.instanceName) {
|
|
11560
11432
|
const $scope3_id = _scope_id();
|
|
11561
|
-
_html(`<div${_attr_class("
|
|
11433
|
+
_html(`<div${_attr_class("_bZ")} title="This work server (Settings → Appearance)"><img${_attr_class("_b0")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b1")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11562
11434
|
writeScope($scope3_id, {});
|
|
11563
11435
|
return 0;
|
|
11564
11436
|
}
|
|
@@ -11568,84 +11440,70 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11568
11440
|
const $scope4_id = _scope_id();
|
|
11569
11441
|
_set_serialize_reason({
|
|
11570
11442
|
0: _serialize_guard($scope0_reason, 1),
|
|
11571
|
-
1: $
|
|
11572
|
-
2:
|
|
11573
|
-
3: $
|
|
11574
|
-
4: $
|
|
11575
|
-
5:
|
|
11443
|
+
1: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11444
|
+
2: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11445
|
+
3: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11446
|
+
4: _serialize_guard($scope0_reason, 5),
|
|
11447
|
+
5: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11576
11448
|
6: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11577
|
-
7: $
|
|
11449
|
+
7: _serialize_guard($scope0_reason, 7),
|
|
11578
11450
|
8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
11579
|
-
9: _serialize_guard($scope0_reason,
|
|
11580
|
-
10: _serialize_guard($scope0_reason,
|
|
11581
|
-
11: _serialize_guard($scope0_reason,
|
|
11582
|
-
12: _serialize_guard($scope0_reason,
|
|
11583
|
-
13: $
|
|
11584
|
-
14: $
|
|
11585
|
-
15:
|
|
11451
|
+
9: _serialize_guard($scope0_reason, 8),
|
|
11452
|
+
10: _serialize_guard($scope0_reason, 9),
|
|
11453
|
+
11: _serialize_guard($scope0_reason, 14),
|
|
11454
|
+
12: _serialize_guard($scope0_reason, 18),
|
|
11455
|
+
13: _serialize_guard($scope0_reason, 2),
|
|
11456
|
+
14: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11457
|
+
15: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11458
|
+
16: $sg__input_workspace__OR__input_allWorkspaces
|
|
11586
11459
|
});
|
|
11587
11460
|
const $childScope = _peek_scope_id();
|
|
11588
11461
|
workspace_switcher_default({
|
|
11589
11462
|
workspace: ws,
|
|
11590
11463
|
sessions: input.sessions,
|
|
11591
11464
|
tab,
|
|
11592
|
-
|
|
11593
|
-
doneIds: pageDone,
|
|
11465
|
+
ids: pageIds,
|
|
11594
11466
|
byId,
|
|
11595
|
-
allStatus
|
|
11596
|
-
onArchive: archive
|
|
11467
|
+
allStatus
|
|
11597
11468
|
});
|
|
11598
|
-
writeScope($scope4_id, { a: _serialize_if($scope0_reason,
|
|
11469
|
+
writeScope($scope4_id, { a: _serialize_if($scope0_reason, 8) && _existing_scope($childScope) });
|
|
11599
11470
|
return 0;
|
|
11600
11471
|
} else if (navOpen) {
|
|
11601
11472
|
const $scope5_id = _scope_id();
|
|
11602
|
-
_html(`<div${_attr_class("
|
|
11603
|
-
_for_of(
|
|
11473
|
+
_html(`<div${_attr_class("_b3")}>`);
|
|
11474
|
+
_for_of(orderedIds, (wsId) => {
|
|
11604
11475
|
const $scope6_id = _scope_id();
|
|
11605
|
-
_if(() => {
|
|
11606
|
-
if (grouped.start.has(wsId) && GROUP_LABEL[grouped.start.get(wsId)]) {
|
|
11607
|
-
const $scope14_id = _scope_id();
|
|
11608
|
-
_html(`<h2${_attr_class(["_b8", "_ck"])}>${_text_resume($scope14_id, "b", GROUP_LABEL[grouped.start.get(wsId)], $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus)}</h2>`);
|
|
11609
|
-
_subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures, writeScope($scope14_id, {
|
|
11610
|
-
_: _scope_with_id($scope6_id),
|
|
11611
|
-
Cbm: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && 1
|
|
11612
|
-
}));
|
|
11613
|
-
return 0;
|
|
11614
|
-
}
|
|
11615
|
-
}, $scope6_id, "a", $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus, 0, 1);
|
|
11616
11476
|
_set_serialize_reason({
|
|
11617
|
-
0: $
|
|
11618
|
-
1: $
|
|
11477
|
+
0: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11478
|
+
1: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11619
11479
|
2: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
11620
11480
|
3: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
11621
11481
|
4: 1,
|
|
11622
11482
|
5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11623
|
-
6:
|
|
11624
|
-
7: $
|
|
11625
|
-
8: $
|
|
11626
|
-
9: $
|
|
11627
|
-
10:
|
|
11628
|
-
11: $
|
|
11629
|
-
12:
|
|
11483
|
+
6: 1,
|
|
11484
|
+
7: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11485
|
+
8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
11486
|
+
9: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11487
|
+
10: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11488
|
+
11: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11489
|
+
12: 1,
|
|
11630
11490
|
13: 1,
|
|
11631
|
-
14:
|
|
11632
|
-
15:
|
|
11491
|
+
14: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
11492
|
+
15: 1,
|
|
11633
11493
|
16: 1,
|
|
11634
|
-
17:
|
|
11635
|
-
18:
|
|
11494
|
+
17: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11495
|
+
18: 1,
|
|
11636
11496
|
19: 1,
|
|
11637
|
-
20:
|
|
11638
|
-
|
|
11639
|
-
23:
|
|
11640
|
-
24:
|
|
11641
|
-
25: $
|
|
11497
|
+
20: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11498
|
+
22: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
11499
|
+
23: 1,
|
|
11500
|
+
24: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11501
|
+
25: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11642
11502
|
26: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11643
|
-
|
|
11644
|
-
30: $
|
|
11503
|
+
29: 1,
|
|
11504
|
+
30: $sg__input_agents,
|
|
11645
11505
|
31: 1,
|
|
11646
|
-
32:
|
|
11647
|
-
33: 1,
|
|
11648
|
-
34: 1
|
|
11506
|
+
32: 1
|
|
11649
11507
|
});
|
|
11650
11508
|
const $childScope2 = _peek_scope_id();
|
|
11651
11509
|
side_nav_item_default({
|
|
@@ -11660,30 +11518,29 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11660
11518
|
leaveNav();
|
|
11661
11519
|
input.onSelectWorkspace?.(wsId);
|
|
11662
11520
|
} else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
|
|
11663
|
-
}, "
|
|
11664
|
-
onArchive: grouped.done.has(wsId) && _resume(() => archive(wsId), "B4", $scope6_id),
|
|
11521
|
+
}, "B2", $scope6_id),
|
|
11665
11522
|
agents: input.agents,
|
|
11666
11523
|
onNewSession: _resume(function(agent) {
|
|
11667
11524
|
leaveNav();
|
|
11668
11525
|
input.onNewSession(wsId, agent);
|
|
11669
|
-
}, "
|
|
11526
|
+
}, "B3", $scope6_id),
|
|
11670
11527
|
onReview: _resume(function() {
|
|
11671
11528
|
if (wsId === ws?.id) {
|
|
11672
11529
|
if (view === "diff") view = "term";
|
|
11673
11530
|
else input.onReviewOpened?.();
|
|
11674
11531
|
} else input.onReviewOther?.(wsId);
|
|
11675
|
-
}, "
|
|
11532
|
+
}, "B4", $scope6_id),
|
|
11676
11533
|
sessions: wsId === ws?.id && input.sessions ? input.sessions : allStatus[wsId]?.sessions || [],
|
|
11677
11534
|
currentTab: wsId === ws?.id && view === "term" ? tab : null,
|
|
11678
11535
|
onRenameSession: input.onRenameSession,
|
|
11679
11536
|
onCloseSession: input.onCloseSession
|
|
11680
11537
|
});
|
|
11681
|
-
_subscribe($
|
|
11682
|
-
|
|
11538
|
+
_subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($leaveNav2__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope6_id, {
|
|
11539
|
+
c: wsId,
|
|
11683
11540
|
_: _scope_with_id($scope5_id),
|
|
11684
|
-
|
|
11685
|
-
}))))))))))))))
|
|
11686
|
-
}, (id) => id, $scope5_id, "a", $
|
|
11541
|
+
a: _existing_scope($childScope2)
|
|
11542
|
+
}))))))))))))));
|
|
11543
|
+
}, (id) => id, $scope5_id, "a", $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, "</div>");
|
|
11687
11544
|
writeScope($scope5_id, {});
|
|
11688
11545
|
return 1;
|
|
11689
11546
|
}
|
|
@@ -11693,43 +11550,42 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11693
11550
|
const $scope7_id = _scope_id();
|
|
11694
11551
|
let railHover = null;
|
|
11695
11552
|
const railHoverBox = { timer: 0 };
|
|
11696
|
-
const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "
|
|
11553
|
+
const railKeep = _resume(() => clearTimeout(railHoverBox.timer), "B5", $scope7_id);
|
|
11697
11554
|
const railHide = _resume(() => {
|
|
11698
11555
|
clearTimeout(railHoverBox.timer);
|
|
11699
11556
|
railHoverBox.timer = setTimeout(() => {
|
|
11700
11557
|
railHover = null;
|
|
11701
11558
|
}, 150);
|
|
11702
|
-
}, "
|
|
11703
|
-
_html(`<div${_attr_class("
|
|
11704
|
-
_for_of(
|
|
11559
|
+
}, "B6", $scope7_id);
|
|
11560
|
+
_html(`<div${_attr_class("_b4")}>`);
|
|
11561
|
+
_for_of(orderedIds, (wsId, i) => {
|
|
11705
11562
|
const $scope8_id = _scope_id();
|
|
11706
11563
|
_html("<span>");
|
|
11707
11564
|
_set_serialize_reason({
|
|
11708
|
-
0: $
|
|
11709
|
-
1: $
|
|
11710
|
-
2: $
|
|
11565
|
+
0: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11566
|
+
1: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11567
|
+
2: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11711
11568
|
3: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11712
|
-
4: $
|
|
11569
|
+
4: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11713
11570
|
5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11714
|
-
|
|
11715
|
-
7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11571
|
+
7: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11716
11572
|
8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11717
|
-
9: $
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11573
|
+
9: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11574
|
+
10: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11575
|
+
11: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11576
|
+
12: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11577
|
+
13: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11578
|
+
14: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11579
|
+
15: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11580
|
+
16: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11724
11581
|
17: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11725
|
-
18: $
|
|
11582
|
+
18: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11726
11583
|
19: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11727
|
-
20: $
|
|
11728
|
-
|
|
11729
|
-
25: $
|
|
11584
|
+
20: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11585
|
+
24: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11586
|
+
25: $sg__input_workspace__OR__input_allWorkspaces,
|
|
11730
11587
|
26: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
11731
|
-
27: $
|
|
11732
|
-
28: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus
|
|
11588
|
+
27: $sg__input_workspace__OR__input_allWorkspaces
|
|
11733
11589
|
});
|
|
11734
11590
|
const $childScope3 = _peek_scope_id();
|
|
11735
11591
|
side_nav_item_default({
|
|
@@ -11742,24 +11598,24 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11742
11598
|
onSelect: _resume(function() {
|
|
11743
11599
|
if (wsId !== ws?.id) input.onSelectWorkspace?.(wsId);
|
|
11744
11600
|
else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
|
|
11745
|
-
}, "
|
|
11601
|
+
}, "B7", $scope8_id)
|
|
11746
11602
|
});
|
|
11747
11603
|
_html(`</span>${_el_resume($scope8_id, "a")}`);
|
|
11748
|
-
_script($scope8_id, "
|
|
11749
|
-
_subscribe($
|
|
11604
|
+
_script($scope8_id, "B12");
|
|
11605
|
+
_subscribe($si__input_workspace__OR__input_allWorkspaces && $keyIndex__closures, _subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($si__input_workspace && $ws_id__closures, writeScope($scope8_id, {
|
|
11750
11606
|
d: wsId,
|
|
11751
11607
|
_: _scope_with_id($scope7_id),
|
|
11752
|
-
b: $
|
|
11753
|
-
|
|
11754
|
-
|
|
11755
|
-
|
|
11608
|
+
b: _serialize_if($scope0_reason, 4) && _existing_scope($childScope3),
|
|
11609
|
+
Cb6: $si__input_workspace && 1,
|
|
11610
|
+
Cbd: $si__input_workspace__OR__input_allWorkspaces && 1,
|
|
11611
|
+
Cbe: $si__input_allStatus && 1
|
|
11756
11612
|
})))));
|
|
11757
|
-
}, (id) => id, $scope7_id, "a", $
|
|
11613
|
+
}, (id) => id, $scope7_id, "a", $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, $sg__input_workspace__OR__input_allWorkspaces, "</div>", 1);
|
|
11758
11614
|
_if(() => {
|
|
11759
11615
|
if (railHover) {
|
|
11760
11616
|
const $scope9_id = _scope_id();
|
|
11761
11617
|
const hoverId = railHover.id;
|
|
11762
|
-
_html(`<div${_attr_class(["__", "
|
|
11618
|
+
_html(`<div${_attr_class(["__", "_b7"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11763
11619
|
_set_serialize_reason({
|
|
11764
11620
|
0: 1,
|
|
11765
11621
|
1: 1,
|
|
@@ -11782,17 +11638,15 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11782
11638
|
18: 1,
|
|
11783
11639
|
19: 1,
|
|
11784
11640
|
20: 1,
|
|
11785
|
-
|
|
11641
|
+
22: 1,
|
|
11786
11642
|
23: 1,
|
|
11787
11643
|
24: 1,
|
|
11788
11644
|
25: 1,
|
|
11789
11645
|
26: 1,
|
|
11790
|
-
|
|
11791
|
-
30:
|
|
11646
|
+
29: 1,
|
|
11647
|
+
30: $sg__input_agents,
|
|
11792
11648
|
31: 1,
|
|
11793
|
-
32:
|
|
11794
|
-
33: 1,
|
|
11795
|
-
34: 1
|
|
11649
|
+
32: 1
|
|
11796
11650
|
});
|
|
11797
11651
|
const $childScope4 = _peek_scope_id();
|
|
11798
11652
|
side_nav_item_default({
|
|
@@ -11802,49 +11656,46 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11802
11656
|
current: hoverId === ws?.id,
|
|
11803
11657
|
managing: view === "manage" && hoverId === ws?.id,
|
|
11804
11658
|
railPop: true,
|
|
11805
|
-
onArchive: grouped.done.has(hoverId) && _resume(() => archive(hoverId), "B10", $scope9_id),
|
|
11806
11659
|
onSelect: _resume(function() {
|
|
11807
11660
|
railHover = null;
|
|
11808
11661
|
if (hoverId !== ws?.id) input.onSelectWorkspace?.(hoverId);
|
|
11809
11662
|
else if (view === "nav" || view === "manage" || view === "settings" || view === "new") view = "term";
|
|
11810
|
-
}, "
|
|
11663
|
+
}, "B8", $scope9_id),
|
|
11811
11664
|
agents: input.agents,
|
|
11812
11665
|
onNewSession: _resume(function(agent) {
|
|
11813
11666
|
railHover = null;
|
|
11814
11667
|
input.onNewSession(hoverId, agent);
|
|
11815
|
-
}, "
|
|
11668
|
+
}, "B9", $scope9_id),
|
|
11816
11669
|
onReview: _resume(function() {
|
|
11817
11670
|
railHover = null;
|
|
11818
11671
|
if (hoverId === ws?.id) {
|
|
11819
11672
|
if (view === "diff") view = "term";
|
|
11820
11673
|
else input.onReviewOpened?.();
|
|
11821
11674
|
} else input.onReviewOther?.(hoverId);
|
|
11822
|
-
}, "
|
|
11675
|
+
}, "B10", $scope9_id),
|
|
11823
11676
|
sessions: hoverId === ws?.id && input.sessions ? input.sessions : allStatus[hoverId]?.sessions || [],
|
|
11824
11677
|
currentTab: hoverId === ws?.id && view === "term" ? tab : null,
|
|
11825
11678
|
onRenameSession: input.onRenameSession,
|
|
11826
11679
|
onCloseSession: input.onCloseSession
|
|
11827
11680
|
});
|
|
11828
11681
|
_html(`</div>${_el_resume($scope9_id, "a")}`);
|
|
11829
|
-
_script($scope9_id, "
|
|
11830
|
-
_subscribe($
|
|
11682
|
+
_script($scope9_id, "B13");
|
|
11683
|
+
_subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $byId__closures, _subscribe($view__closures, _subscribe($si__input_tab__OR__input_tabChange && $tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_onReviewOther && $input_onReviewOther__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope9_id, {
|
|
11831
11684
|
d: hoverId,
|
|
11832
11685
|
b: _existing_scope($childScope4),
|
|
11833
|
-
|
|
11834
|
-
|
|
11835
|
-
|
|
11836
|
-
|
|
11837
|
-
|
|
11838
|
-
|
|
11839
|
-
|
|
11840
|
-
|
|
11841
|
-
|
|
11842
|
-
|
|
11843
|
-
|
|
11844
|
-
|
|
11845
|
-
|
|
11846
|
-
Cbo: $si__input_onError && 1
|
|
11847
|
-
})))))))))))))));
|
|
11686
|
+
Cay: $si__input_sessions && 1,
|
|
11687
|
+
Caz: $si__input_agents && 1,
|
|
11688
|
+
Cb0: $si__input_onNewSession && 1,
|
|
11689
|
+
Cb1: $si__input_onReviewOpened && 1,
|
|
11690
|
+
Cb2: $si__input_onReviewOther && 1,
|
|
11691
|
+
Cb3: $si__input_onRenameSession && 1,
|
|
11692
|
+
Cb4: $si__input_onCloseSession && 1,
|
|
11693
|
+
Cb6: $si__input_workspace && 2,
|
|
11694
|
+
Cb7: $si__input_tab__OR__input_tabChange && 1,
|
|
11695
|
+
Cb8: 1,
|
|
11696
|
+
Cbd: $si__input_workspace__OR__input_allWorkspaces && 2,
|
|
11697
|
+
Cbe: $si__input_allStatus && 2
|
|
11698
|
+
})))))))))))));
|
|
11848
11699
|
return 0;
|
|
11849
11700
|
}
|
|
11850
11701
|
}, $scope7_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -11859,7 +11710,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11859
11710
|
return 0;
|
|
11860
11711
|
}
|
|
11861
11712
|
}, $scope0_id, "e");
|
|
11862
|
-
_html(`<div${_attr_class("
|
|
11713
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11863
11714
|
_if(() => {
|
|
11864
11715
|
if (isPage) {
|
|
11865
11716
|
const $scope11_id = _scope_id();
|
|
@@ -11867,7 +11718,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11867
11718
|
"_q",
|
|
11868
11719
|
"_r",
|
|
11869
11720
|
btnLg,
|
|
11870
|
-
"
|
|
11721
|
+
"_bY"
|
|
11871
11722
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11872
11723
|
icon_folder_plus_default({ size: 16 });
|
|
11873
11724
|
_html(` New workspace</a>${_el_resume($scope11_id, "a")}`);
|
|
@@ -11878,45 +11729,45 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11878
11729
|
_html(`<button${_attr_class(navToggle)} title=${navOpen ? "\"Collapse sidebar\"" : "\"Expand sidebar\""}>`);
|
|
11879
11730
|
_if(() => {
|
|
11880
11731
|
if (navOpen) {
|
|
11881
|
-
const $
|
|
11732
|
+
const $scope15_id = _scope_id();
|
|
11882
11733
|
icon_sidebar_collapse_default({});
|
|
11883
|
-
writeScope($
|
|
11734
|
+
writeScope($scope15_id, {});
|
|
11884
11735
|
return 0;
|
|
11885
11736
|
} else {
|
|
11886
|
-
const $
|
|
11737
|
+
const $scope16_id = _scope_id();
|
|
11887
11738
|
icon_sidebar_default({});
|
|
11888
|
-
writeScope($
|
|
11739
|
+
writeScope($scope16_id, {});
|
|
11889
11740
|
return 1;
|
|
11890
11741
|
}
|
|
11891
11742
|
}, $scope10_id, "a", 1, 1, 1, "</button>", 1);
|
|
11892
|
-
_html(`<div${_attr_class(["_z", "
|
|
11743
|
+
_html(`<div${_attr_class(["_z", "_b6"])}></div>`);
|
|
11893
11744
|
_if(() => {}, $scope10_id, "c", 1, 1, 1, 0, 1);
|
|
11894
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11745
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bM"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11895
11746
|
icon_settings_default({});
|
|
11896
11747
|
_if(() => {
|
|
11897
11748
|
if (input.setupReady === false) {
|
|
11898
|
-
const $
|
|
11749
|
+
const $scope17_id = _scope_id();
|
|
11899
11750
|
_html(`<span${_attr_class(["_A", settingsDot])} title="Machine setup incomplete"></span>`);
|
|
11900
|
-
$si__input_setupReady && writeScope($
|
|
11751
|
+
$si__input_setupReady && writeScope($scope17_id, {});
|
|
11901
11752
|
return 0;
|
|
11902
11753
|
}
|
|
11903
11754
|
}, $scope10_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11904
|
-
_html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11755
|
+
_html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bM"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11905
11756
|
icon_folder_plus_default({ size: 16 });
|
|
11906
11757
|
_html(`</a>${_el_resume($scope10_id, "g")}`);
|
|
11907
|
-
_script($scope10_id, "
|
|
11758
|
+
_script($scope10_id, "B15");
|
|
11908
11759
|
writeScope($scope10_id, {});
|
|
11909
11760
|
return 1;
|
|
11910
11761
|
}
|
|
11911
11762
|
}, $scope0_id, "f", 1, 1, 1, "</div>");
|
|
11912
11763
|
_html(`</aside>${_el_resume($scope0_id, "a")}`);
|
|
11913
|
-
_script($scope0_id, "
|
|
11914
|
-
_script($scope0_id, "
|
|
11764
|
+
_script($scope0_id, "B16");
|
|
11765
|
+
_script($scope0_id, "B17");
|
|
11915
11766
|
writeScope($scope0_id, {
|
|
11916
|
-
j: _serialize_if($scope0_reason,
|
|
11917
|
-
k: _serialize_if($scope0_reason,
|
|
11918
|
-
m: _serialize_if($scope0_reason,
|
|
11919
|
-
n: _serialize_if($scope0_reason,
|
|
11767
|
+
j: _serialize_if($scope0_reason, 11) && input.tab,
|
|
11768
|
+
k: _serialize_if($scope0_reason, 10) && input.tabChange,
|
|
11769
|
+
m: _serialize_if($scope0_reason, 13) && input.view,
|
|
11770
|
+
n: _serialize_if($scope0_reason, 12) && input.viewChange,
|
|
11920
11771
|
p: input.onError,
|
|
11921
11772
|
q: input.active,
|
|
11922
11773
|
r: $si__input_workspace && input.allWorkspaces,
|
|
@@ -11939,40 +11790,32 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11939
11790
|
ae: canPush,
|
|
11940
11791
|
af: leaveNav,
|
|
11941
11792
|
ag: toggleNotify,
|
|
11942
|
-
ah: $si__input_allStatus && itemIds,
|
|
11943
11793
|
aj: byId,
|
|
11944
|
-
|
|
11945
|
-
|
|
11946
|
-
ap:
|
|
11947
|
-
|
|
11948
|
-
|
|
11949
|
-
|
|
11950
|
-
|
|
11951
|
-
ax: backHref,
|
|
11952
|
-
ay: iconSrc,
|
|
11953
|
-
az: pageOpen,
|
|
11954
|
-
b0: pageDone,
|
|
11794
|
+
al: allStatus,
|
|
11795
|
+
am: orderedIds,
|
|
11796
|
+
ap: keyIndex,
|
|
11797
|
+
aq: isPage,
|
|
11798
|
+
at: backHref,
|
|
11799
|
+
au: iconSrc,
|
|
11800
|
+
av: pageIds,
|
|
11955
11801
|
aa: input.viewChange || void 0,
|
|
11956
|
-
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11961
|
-
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
11965
|
-
|
|
11966
|
-
|
|
11967
|
-
|
|
11968
|
-
|
|
11969
|
-
|
|
11970
|
-
|
|
11971
|
-
|
|
11972
|
-
|
|
11973
|
-
bl: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_done__closures,
|
|
11974
|
-
bo: $si__input_onError && $archive2__closures,
|
|
11975
|
-
bn: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $keyIndex__closures
|
|
11802
|
+
aw: $si__input_instanceName && $input_instanceName__closures,
|
|
11803
|
+
bi: $si__input_instanceAccent && $iconSrc__closures,
|
|
11804
|
+
ba: $notifyOn__closures,
|
|
11805
|
+
ay: $si__input_sessions && $input_sessions__closures,
|
|
11806
|
+
az: $si__input_agents && $input_agents__closures,
|
|
11807
|
+
b0: $si__input_onNewSession && $input_onNewSession__closures,
|
|
11808
|
+
b1: $si__input_onReviewOpened && $input_onReviewOpened__closures,
|
|
11809
|
+
b2: $si__input_onReviewOther && $input_onReviewOther__closures,
|
|
11810
|
+
b3: $si__input_onRenameSession && $input_onRenameSession__closures,
|
|
11811
|
+
b4: $si__input_onCloseSession && $input_onCloseSession__closures,
|
|
11812
|
+
b6: $si__input_workspace && $ws_id__closures,
|
|
11813
|
+
b7: $si__input_tab__OR__input_tabChange && $tab__closures,
|
|
11814
|
+
b8: $view__closures,
|
|
11815
|
+
bc: $leaveNav2__closures,
|
|
11816
|
+
bd: $si__input_workspace__OR__input_allWorkspaces && $byId__closures,
|
|
11817
|
+
be: $si__input_allStatus && $allStatus__closures,
|
|
11818
|
+
bg: $si__input_workspace__OR__input_allWorkspaces && $keyIndex__closures
|
|
11976
11819
|
});
|
|
11977
11820
|
_resume_branch($scope0_id);
|
|
11978
11821
|
});
|
|
@@ -12244,8 +12087,8 @@ function treeDirs(files) {
|
|
|
12244
12087
|
};
|
|
12245
12088
|
return build(root, "", "", -1);
|
|
12246
12089
|
}
|
|
12247
|
-
var treeToggle = "
|
|
12248
|
-
var pageTitle = "
|
|
12090
|
+
var treeToggle = "_eV _5 _l";
|
|
12091
|
+
var pageTitle = "_e2 _dX";
|
|
12249
12092
|
//#endregion
|
|
12250
12093
|
//#region src/tags/diff-send.marko
|
|
12251
12094
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -12255,7 +12098,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12255
12098
|
let sendTarget = null;
|
|
12256
12099
|
const sessions = input.sessions || [];
|
|
12257
12100
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12258
|
-
_html(`<span${_attr_class("
|
|
12101
|
+
_html(`<span${_attr_class("_ht")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12259
12102
|
_if(() => {
|
|
12260
12103
|
if (sessions.length === 1) {
|
|
12261
12104
|
const $scope1_id = _scope_id();
|
|
@@ -12265,11 +12108,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12265
12108
|
return 0;
|
|
12266
12109
|
} else if (sessions.length) {
|
|
12267
12110
|
const $scope2_id = _scope_id();
|
|
12268
|
-
_html(`<span${_attr_class("
|
|
12111
|
+
_html(`<span${_attr_class("_hu")}><button type=button${_attr_class(["_r", "_hv"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12269
12112
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12270
12113
|
sendTarget = _new_sendTarget;
|
|
12271
12114
|
}, "j0", $scope2_id), () => {
|
|
12272
|
-
_html(`<select${_attr_class("
|
|
12115
|
+
_html(`<select${_attr_class("_hw")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12273
12116
|
_for_of(sessions, (s) => {
|
|
12274
12117
|
const $scope3_id = _scope_id();
|
|
12275
12118
|
_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)}`);
|
|
@@ -13781,8 +13624,8 @@ function clip(line, at, len) {
|
|
|
13781
13624
|
const end = Math.min(line.length, at + len + pad);
|
|
13782
13625
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13783
13626
|
}
|
|
13784
|
-
var findInput = "
|
|
13785
|
-
var findIconBtn = "
|
|
13627
|
+
var findInput = "_cw _n";
|
|
13628
|
+
var findIconBtn = "_cz _l";
|
|
13786
13629
|
//#endregion
|
|
13787
13630
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13788
13631
|
var icon_arrow_down_default = _template("N", (input) => {
|
|
@@ -13870,9 +13713,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13870
13713
|
el.select();
|
|
13871
13714
|
}, 0);
|
|
13872
13715
|
}, "i0", $scope0_id);
|
|
13873
|
-
_html(`<div${_attr_class(["
|
|
13716
|
+
_html(`<div${_attr_class(["_cv", !open && "_cu"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13874
13717
|
type(v);
|
|
13875
|
-
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
13718
|
+
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_cy")}>${_text_resume($scope0_id, "d", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13876
13719
|
icon_arrow_up_default({ size: 14 });
|
|
13877
13720
|
_html(`</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
13878
13721
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13974,9 +13817,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13974
13817
|
}
|
|
13975
13818
|
return shortHeadFallback(head);
|
|
13976
13819
|
}
|
|
13977
|
-
var repoWorktree = "
|
|
13978
|
-
var repoTitle = "
|
|
13979
|
-
var path$1 = "
|
|
13820
|
+
var repoWorktree = "_iR _y";
|
|
13821
|
+
var repoTitle = "_iX _x";
|
|
13822
|
+
var path$1 = "_jd _bb";
|
|
13980
13823
|
//#endregion
|
|
13981
13824
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13982
13825
|
var icon_chevron_down_default = _template("W", (input) => {
|
|
@@ -14016,7 +13859,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
14016
13859
|
_scope_reason();
|
|
14017
13860
|
const $scope0_id = _scope_id();
|
|
14018
13861
|
_el($scope0_id, "h0");
|
|
14019
|
-
_html(`<div${_attr_class(["
|
|
13862
|
+
_html(`<div${_attr_class(["_jh", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
14020
13863
|
_script($scope0_id, "h1");
|
|
14021
13864
|
writeScope($scope0_id, {
|
|
14022
13865
|
e: input.file,
|
|
@@ -14075,14 +13918,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14075
13918
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
14076
13919
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
14077
13920
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
14078
|
-
_html(`<section${_attr_class("
|
|
13921
|
+
_html(`<section${_attr_class("_iN")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iO", { ["_iP"]: input.collapsible && input.collapsed }])}>`);
|
|
14079
13922
|
_if(() => {
|
|
14080
13923
|
if (input.collapsible) {
|
|
14081
13924
|
const $scope1_id = _scope_id();
|
|
14082
|
-
_html(`<button type=button${_attr_class("
|
|
14083
|
-
"
|
|
14084
|
-
!input.collapsed && "
|
|
14085
|
-
input.expanding && "
|
|
13925
|
+
_html(`<button type=button${_attr_class("_iQ")} aria-expanded=${!input.collapsed ? "true" : "false"} aria-busy=${input.expanding ? "true" : "false"}${input.collapsed ? _attr("title", `Show ${countLabel} files`) : " title=\"Hide files\""}><span${_attr_class([
|
|
13926
|
+
"_ja",
|
|
13927
|
+
!input.collapsed && "_jb",
|
|
13928
|
+
input.expanding && "_jc"
|
|
14086
13929
|
])} aria-hidden=true>`);
|
|
14087
13930
|
_if(() => {
|
|
14088
13931
|
if (input.collapsed) {
|
|
@@ -14121,14 +13964,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14121
13964
|
return 1;
|
|
14122
13965
|
}
|
|
14123
13966
|
}, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened);
|
|
14124
|
-
_html(`<span${_attr_class("
|
|
13967
|
+
_html(`<span${_attr_class("_iY")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_iZ"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i1"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i0"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
14125
13968
|
_if(() => {
|
|
14126
13969
|
if (compare$1.topic) {
|
|
14127
13970
|
const $scope15_id = _scope_id();
|
|
14128
13971
|
_html(`<span${_attr_class([
|
|
14129
13972
|
"_N",
|
|
14130
13973
|
tone.accent,
|
|
14131
|
-
"
|
|
13974
|
+
"_i2"
|
|
14132
13975
|
])}>${_text_resume($scope15_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
14133
13976
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
14134
13977
|
return 0;
|
|
@@ -14141,7 +13984,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14141
13984
|
_html(`<button type=button${_attr_class([
|
|
14142
13985
|
"_N",
|
|
14143
13986
|
tone.warn,
|
|
14144
|
-
"
|
|
13987
|
+
"_i3"
|
|
14145
13988
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope2_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope2_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope2_id, "a")}`);
|
|
14146
13989
|
_script($scope2_id, "x10");
|
|
14147
13990
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -14151,7 +13994,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14151
13994
|
_if(() => {
|
|
14152
13995
|
if (repo.contained && input.files.length) {
|
|
14153
13996
|
const $scope13_id = _scope_id();
|
|
14154
|
-
_html(`<span${_attr_class(["_N", "
|
|
13997
|
+
_html(`<span${_attr_class(["_N", "_i3"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope13_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope13_id, "a", $sg__input_repo)}`);
|
|
14155
13998
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
14156
13999
|
return 0;
|
|
14157
14000
|
}
|
|
@@ -14159,16 +14002,16 @@ var review_section_default = _template("x", (input) => {
|
|
|
14159
14002
|
_if(() => {
|
|
14160
14003
|
if (input.localDiffers) {
|
|
14161
14004
|
const $scope3_id = _scope_id();
|
|
14162
|
-
_html(`<span${_attr_class(["_N", "
|
|
14005
|
+
_html(`<span${_attr_class(["_N", "_i3"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope3_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
|
|
14163
14006
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope3_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
14164
14007
|
return 0;
|
|
14165
14008
|
}
|
|
14166
14009
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 39), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
14167
|
-
_html(`<span${_attr_class("
|
|
14010
|
+
_html(`<span${_attr_class("_iS")}><span>${_text_resume($scope0_id, "p", countLabel, $sg__input_files__OR__input_shownKeys)} file${_text_resume($scope0_id, "q", countLabel === 1 ? "" : "s", $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
14168
14011
|
_if(() => {
|
|
14169
14012
|
if (stats.additions || stats.deletions) {
|
|
14170
14013
|
const $scope14_id = _scope_id();
|
|
14171
|
-
_html(`<span${_attr_class("
|
|
14014
|
+
_html(`<span${_attr_class("_iT")}>+${_text_resume($scope14_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iU")}>−${_text_resume($scope14_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
14172
14015
|
$si__input_files__OR__input_shownKeys && writeScope($scope14_id, { _: _scope_with_id($scope0_id) });
|
|
14173
14016
|
return 0;
|
|
14174
14017
|
}
|
|
@@ -14176,7 +14019,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14176
14019
|
_if(() => {
|
|
14177
14020
|
if (newCount || input.onlyNew) {
|
|
14178
14021
|
const $scope4_id = _scope_id();
|
|
14179
|
-
_html(`<button type=button${_attr_class(["
|
|
14022
|
+
_html(`<button type=button${_attr_class(["_iW", { ["_iV"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope4_id, "b", newCount, $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
|
|
14180
14023
|
_script($scope4_id, "x11");
|
|
14181
14024
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
14182
14025
|
return 0;
|
|
@@ -14186,7 +14029,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14186
14029
|
_if(() => {
|
|
14187
14030
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
14188
14031
|
const $scope5_id = _scope_id();
|
|
14189
|
-
_html(`<div${_attr_class("
|
|
14032
|
+
_html(`<div${_attr_class("_i5")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
14190
14033
|
_for_of(input.files, (file$2) => {
|
|
14191
14034
|
const $scope6_id = _scope_id();
|
|
14192
14035
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -14199,14 +14042,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14199
14042
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
14200
14043
|
input.onFileToggle(file$2.key, open);
|
|
14201
14044
|
}, "x0", $scope6_id))}${_attr_class([
|
|
14202
|
-
"
|
|
14203
|
-
forceNear && "
|
|
14204
|
-
input.findHit?.key === file$2.key && "
|
|
14205
|
-
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("
|
|
14045
|
+
"_i6",
|
|
14046
|
+
forceNear && "_i7",
|
|
14047
|
+
input.findHit?.key === file$2.key && "_iL"
|
|
14048
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_i9")}><span${_attr_class("_ba")}${_attr("data-status", file$2.status)}>${_text_resume($scope6_id, "d", file$2.status, $sg__input_files)}</span>${_el_resume($scope6_id, "c", $sg__input_files)}<span${_attr_class([path$1, input.findHit?.key === file$2.key && input.findHit.line < 1 && "_iM"])}${_attr("title", file$2.path)}><bdi>${_text_resume($scope6_id, "f", file$2.path, $sg__input_files)}</bdi></span>${_el_resume($scope6_id, "e", _serialize_guard($scope0_reason, 19))}`);
|
|
14206
14049
|
_if(() => {
|
|
14207
14050
|
if (file$2.changedSince) {
|
|
14208
14051
|
const $scope19_id = _scope_id();
|
|
14209
|
-
_html(`<span${_attr_class(["_A", "
|
|
14052
|
+
_html(`<span${_attr_class(["_A", "_i4"])} title="Changed since your last visit"></span>`);
|
|
14210
14053
|
$si__input_files && writeScope($scope19_id, {});
|
|
14211
14054
|
return 0;
|
|
14212
14055
|
}
|
|
@@ -14225,17 +14068,17 @@ var review_section_default = _template("x", (input) => {
|
|
|
14225
14068
|
_if(() => {
|
|
14226
14069
|
if (file$2.binary) {
|
|
14227
14070
|
const $scope20_id = _scope_id();
|
|
14228
|
-
_html(`<p${_attr_class(["
|
|
14071
|
+
_html(`<p${_attr_class(["_je", "_i8"])}>binary file</p>`);
|
|
14229
14072
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope20_id, {});
|
|
14230
14073
|
return 0;
|
|
14231
14074
|
} else if (file$2.tooLarge) {
|
|
14232
14075
|
const $scope21_id = _scope_id();
|
|
14233
|
-
_html(`<p${_attr_class(["
|
|
14076
|
+
_html(`<p${_attr_class(["_je", "_i8"])}>file too large to display</p>`);
|
|
14234
14077
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope21_id, {});
|
|
14235
14078
|
return 1;
|
|
14236
14079
|
} else if (file$2.old == null && file$2.new == null) {
|
|
14237
14080
|
const $scope22_id = _scope_id();
|
|
14238
|
-
_html(`<p${_attr_class(["
|
|
14081
|
+
_html(`<p${_attr_class(["_je", "_i8"])}>file could not be read</p>`);
|
|
14239
14082
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope22_id, {});
|
|
14240
14083
|
return 2;
|
|
14241
14084
|
} else if (expanded) {
|
|
@@ -14243,7 +14086,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14243
14086
|
_if(() => {
|
|
14244
14087
|
if (!forceNear) {
|
|
14245
14088
|
const $scope8_id = _scope_id();
|
|
14246
|
-
_html(`<div${_attr_class("
|
|
14089
|
+
_html(`<div${_attr_class("_i_")}></div>${_el_resume($scope8_id, "a")}`);
|
|
14247
14090
|
_script($scope8_id, "x12");
|
|
14248
14091
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
14249
14092
|
return 0;
|
|
@@ -14251,7 +14094,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14251
14094
|
const $scope9_id = _scope_id();
|
|
14252
14095
|
const $childScope = _peek_scope_id();
|
|
14253
14096
|
diff_file_default({
|
|
14254
|
-
class: "
|
|
14097
|
+
class: "_i8",
|
|
14255
14098
|
file: file$2,
|
|
14256
14099
|
comments: fileComments,
|
|
14257
14100
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -14388,7 +14231,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14388
14231
|
cd: $si__input_findHit_line && $input_findHit_line__closures
|
|
14389
14232
|
});
|
|
14390
14233
|
});
|
|
14391
|
-
var fileFilter = "
|
|
14234
|
+
var fileFilter = "_jg _n";
|
|
14392
14235
|
//#endregion
|
|
14393
14236
|
//#region src/tags/file-filter.marko
|
|
14394
14237
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -14418,7 +14261,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
14418
14261
|
pending = v;
|
|
14419
14262
|
box.timer = setTimeout(flush, 150);
|
|
14420
14263
|
}, "n2", $scope0_id);
|
|
14421
|
-
_html(`<div${_attr_class("
|
|
14264
|
+
_html(`<div${_attr_class("_jf")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
14422
14265
|
type(v);
|
|
14423
14266
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
14424
14267
|
_script($scope0_id, "n3");
|
|
@@ -14451,7 +14294,7 @@ var $content = (input) => {
|
|
|
14451
14294
|
_for_of(dir.dirs, (child) => {
|
|
14452
14295
|
const $scope1_id = _scope_id();
|
|
14453
14296
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14454
|
-
_html(`<div${_attr_class("
|
|
14297
|
+
_html(`<div${_attr_class("_hF")}><button type=button${_attr_class(["_hG", { ["_hx"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_hN")}>`);
|
|
14455
14298
|
_if(() => {
|
|
14456
14299
|
if (shut) {
|
|
14457
14300
|
const $scope4_id = _scope_id();
|
|
@@ -14465,7 +14308,7 @@ var $content = (input) => {
|
|
|
14465
14308
|
return 1;
|
|
14466
14309
|
}
|
|
14467
14310
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14468
|
-
_html(`<span${_attr_class("
|
|
14311
|
+
_html(`<span${_attr_class("_hH")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14469
14312
|
_if(() => {
|
|
14470
14313
|
if (!shut) {
|
|
14471
14314
|
const $scope2_id = _scope_id();
|
|
@@ -14512,11 +14355,11 @@ var $content = (input) => {
|
|
|
14512
14355
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14513
14356
|
_for_of(dir.files, ({ file, name }) => {
|
|
14514
14357
|
const $scope3_id = _scope_id();
|
|
14515
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14358
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_hJ", { ["_hI"]: input.collapsedFiles?.has(file.key) }])}${input.collapsedFiles?.has(file.key) ? _attr("title", `${file.path} (folded — click to open)`) : _attr("title", file.path)}${_attr_style(`--depth:${dir.depth + 1}`)}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope3_id, "c", file.status, $sg__input_dir)}</span>${_el_resume($scope3_id, "b", $sg__input_dir)}<span${_attr_class("_hK")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14516
14359
|
_if(() => {
|
|
14517
14360
|
if (input.newKeys.has(file.key)) {
|
|
14518
14361
|
const $scope6_id = _scope_id();
|
|
14519
|
-
_html(`<span${_attr_class(["_A", "
|
|
14362
|
+
_html(`<span${_attr_class(["_A", "_hL"])} title="Changed since your last visit"></span>`);
|
|
14520
14363
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14521
14364
|
return 0;
|
|
14522
14365
|
}
|
|
@@ -14524,7 +14367,7 @@ var $content = (input) => {
|
|
|
14524
14367
|
_if(() => {
|
|
14525
14368
|
if (input.commentKeys.has(file.key)) {
|
|
14526
14369
|
const $scope7_id = _scope_id();
|
|
14527
|
-
_html(`<span${_attr_class("
|
|
14370
|
+
_html(`<span${_attr_class("_hM")}>`);
|
|
14528
14371
|
icon_comment_default({ size: 12 });
|
|
14529
14372
|
_html("</span>");
|
|
14530
14373
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14582,7 +14425,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14582
14425
|
scope: input.scope ?? null,
|
|
14583
14426
|
file: key
|
|
14584
14427
|
}), "l0", $scope0_id);
|
|
14585
|
-
_html(`<aside${_attr_class(["
|
|
14428
|
+
_html(`<aside${_attr_class(["_hy", { ["_hx"]: input.open === false }])}><div${_attr_class("_hz")}>`);
|
|
14586
14429
|
_set_serialize_reason(2);
|
|
14587
14430
|
const $childScope = _peek_scope_id();
|
|
14588
14431
|
file_filter_default({
|
|
@@ -14591,18 +14434,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14591
14434
|
filter = _new_filter;
|
|
14592
14435
|
}, "l1", $scope0_id)
|
|
14593
14436
|
});
|
|
14594
|
-
_html(`</div><div${_attr_class("
|
|
14437
|
+
_html(`</div><div${_attr_class("_hA")}>`);
|
|
14595
14438
|
_if(() => {
|
|
14596
14439
|
if (!input.sections.length && filter) {
|
|
14597
14440
|
const $scope3_id = _scope_id();
|
|
14598
|
-
_html(`<p${_attr_class("
|
|
14441
|
+
_html(`<p${_attr_class("_hB")}>No files match.</p>`);
|
|
14599
14442
|
writeScope($scope3_id, {});
|
|
14600
14443
|
return 0;
|
|
14601
14444
|
}
|
|
14602
14445
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14603
14446
|
_for_of(input.sections, (section) => {
|
|
14604
14447
|
const $scope1_id = _scope_id();
|
|
14605
|
-
_html(`<div${_attr_class("
|
|
14448
|
+
_html(`<div${_attr_class("_hC")}><button type=button${_attr_class(["_hD", { ["_hx"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_hN")}>`);
|
|
14606
14449
|
_if(() => {
|
|
14607
14450
|
if (collapsedRepos.has(section.id)) {
|
|
14608
14451
|
const $scope4_id = _scope_id();
|
|
@@ -14616,12 +14459,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14616
14459
|
return 1;
|
|
14617
14460
|
}
|
|
14618
14461
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14619
|
-
_html(`<span${_attr_class("
|
|
14462
|
+
_html(`<span${_attr_class("_hH")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14620
14463
|
_if(() => {
|
|
14621
14464
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14622
14465
|
const $scope2_id = _scope_id();
|
|
14623
14466
|
const root = treeDirs(section.files);
|
|
14624
|
-
_html(`<div${_attr_class("
|
|
14467
|
+
_html(`<div${_attr_class("_hE")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14625
14468
|
_set_serialize_reason(1);
|
|
14626
14469
|
const $childScope2 = _peek_scope_id();
|
|
14627
14470
|
diff_tree_dir_default({
|
|
@@ -14691,7 +14534,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14691
14534
|
});
|
|
14692
14535
|
_resume_branch($scope0_id);
|
|
14693
14536
|
});
|
|
14694
|
-
var sheetDir = "
|
|
14537
|
+
var sheetDir = "_ig _bb";
|
|
14695
14538
|
//#endregion
|
|
14696
14539
|
//#region src/tags/diff-file-sheet.marko
|
|
14697
14540
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14747,9 +14590,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14747
14590
|
_if(() => {
|
|
14748
14591
|
if (open) {
|
|
14749
14592
|
const $scope1_id = _scope_id();
|
|
14750
|
-
_html(`<div${_attr_class("
|
|
14593
|
+
_html(`<div${_attr_class("_h8")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_h9")} role=dialog aria-label="Jump to file"><div${_attr_class("_h_")}><strong${_attr_class("_h7")}>Files</strong><span${_attr_class("_ia")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_h6"])} title=Close aria-label=Close>`);
|
|
14751
14594
|
icon_xmark_default({ size: 16 });
|
|
14752
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14595
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_ii")}>`);
|
|
14753
14596
|
_set_serialize_reason(2);
|
|
14754
14597
|
const $childScope = _peek_scope_id();
|
|
14755
14598
|
file_filter_default({
|
|
@@ -14758,13 +14601,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14758
14601
|
filter = _new_filter;
|
|
14759
14602
|
}, "g1", $scope1_id)
|
|
14760
14603
|
});
|
|
14761
|
-
_html(`</div><div${_attr_class("
|
|
14604
|
+
_html(`</div><div${_attr_class("_ib")}>`);
|
|
14762
14605
|
_for_of(groups, (group) => {
|
|
14763
14606
|
const $scope2_id = _scope_id();
|
|
14764
|
-
_html(`<div${_attr_class("
|
|
14607
|
+
_html(`<div${_attr_class("_ic")}><div${_attr_class("_id")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14765
14608
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14766
14609
|
const $scope3_id = _scope_id();
|
|
14767
|
-
_html(`<div${_attr_class("
|
|
14610
|
+
_html(`<div${_attr_class("_ie")}>`);
|
|
14768
14611
|
_if(() => {
|
|
14769
14612
|
if (dir) {
|
|
14770
14613
|
const $scope5_id = _scope_id();
|
|
@@ -14775,11 +14618,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14775
14618
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14776
14619
|
_for_of(files, ({ file, name }) => {
|
|
14777
14620
|
const $scope4_id = _scope_id();
|
|
14778
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14621
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_if", "_y"])}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_ih")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14779
14622
|
_if(() => {
|
|
14780
14623
|
if (newKeys.has(file.key)) {
|
|
14781
14624
|
const $scope6_id = _scope_id();
|
|
14782
|
-
_html(`<span${_attr_class(["_A", "
|
|
14625
|
+
_html(`<span${_attr_class(["_A", "_ik"])} title="Changed since your last visit"></span>`);
|
|
14783
14626
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14784
14627
|
return 0;
|
|
14785
14628
|
}
|
|
@@ -14789,7 +14632,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14789
14632
|
const $scope7_id = _scope_id();
|
|
14790
14633
|
icon_comment_default({
|
|
14791
14634
|
size: 12,
|
|
14792
|
-
class: "
|
|
14635
|
+
class: "_il"
|
|
14793
14636
|
});
|
|
14794
14637
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14795
14638
|
return 0;
|
|
@@ -14814,7 +14657,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14814
14657
|
_if(() => {
|
|
14815
14658
|
if (!input.files.length) {
|
|
14816
14659
|
const $scope8_id = _scope_id();
|
|
14817
|
-
_html(`<p${_attr_class("
|
|
14660
|
+
_html(`<p${_attr_class("_ij")}>No files match.</p>`);
|
|
14818
14661
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14819
14662
|
return 0;
|
|
14820
14663
|
}
|
|
@@ -15354,11 +15197,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15354
15197
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
15355
15198
|
}
|
|
15356
15199
|
}, "m33", $scope0_id);
|
|
15357
|
-
_html(`<div${_attr_class("
|
|
15200
|
+
_html(`<div${_attr_class("_eS")}><div${_attr_class("_eX")}><div${_attr_class("_eY")}><div${_attr_class(["_e8", { ["_e7"]: !comments.length }])}>`);
|
|
15358
15201
|
_if(() => {
|
|
15359
15202
|
if (input.onExit) {
|
|
15360
15203
|
const $scope1_id = _scope_id();
|
|
15361
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
15204
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_eZ"])} title="Back to terminal (Esc)">`);
|
|
15362
15205
|
icon_back_default({ size: 14 });
|
|
15363
15206
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
15364
15207
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -15369,7 +15212,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15369
15212
|
_if(() => {
|
|
15370
15213
|
if (comments.length) {
|
|
15371
15214
|
const $scope5_id = _scope_id();
|
|
15372
|
-
_html(`<span${_attr_class("
|
|
15215
|
+
_html(`<span${_attr_class("_e1")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
15373
15216
|
writeScope($scope5_id, {});
|
|
15374
15217
|
return 0;
|
|
15375
15218
|
}
|
|
@@ -15377,7 +15220,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15377
15220
|
_if(() => {
|
|
15378
15221
|
if (comments.length) {
|
|
15379
15222
|
const $scope2_id = _scope_id();
|
|
15380
|
-
_html(`<span${_attr_class("
|
|
15223
|
+
_html(`<span${_attr_class("_e0")}>`);
|
|
15381
15224
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
15382
15225
|
const $childScope = _peek_scope_id();
|
|
15383
15226
|
diff_send_default({
|
|
@@ -15390,14 +15233,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15390
15233
|
return 0;
|
|
15391
15234
|
}
|
|
15392
15235
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
15393
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15236
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_eW")}>`);
|
|
15394
15237
|
_if(() => {
|
|
15395
15238
|
if (hasFiles) {
|
|
15396
15239
|
const $scope12_id = _scope_id();
|
|
15397
15240
|
_html(`<button${_attr_class([
|
|
15398
15241
|
treeToggle,
|
|
15399
|
-
"
|
|
15400
|
-
{ ["
|
|
15242
|
+
"_eU",
|
|
15243
|
+
{ ["_eT"]: treeOpen }
|
|
15401
15244
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
15402
15245
|
icon_sidebar_default({ size: 14 });
|
|
15403
15246
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -15406,7 +15249,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15406
15249
|
return 0;
|
|
15407
15250
|
}
|
|
15408
15251
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15409
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15252
|
+
_html(`<button${_attr_class([iconBtnRow, "_eU"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
15410
15253
|
_set_serialize_reason(1);
|
|
15411
15254
|
const $childScope2 = _peek_scope_id();
|
|
15412
15255
|
icon_refresh_default({
|
|
@@ -15417,19 +15260,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15417
15260
|
_if(() => {
|
|
15418
15261
|
if (hasFiles) {
|
|
15419
15262
|
const $scope13_id = _scope_id();
|
|
15420
|
-
_html(`<button${_attr_class(["_q", "
|
|
15263
|
+
_html(`<button${_attr_class(["_q", "_fg"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
15421
15264
|
_script($scope13_id, "m53");
|
|
15422
15265
|
writeScope($scope13_id, {});
|
|
15423
15266
|
return 0;
|
|
15424
15267
|
}
|
|
15425
15268
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15426
|
-
_html(`<span${_attr_class(["_o", "
|
|
15269
|
+
_html(`<span${_attr_class(["_o", "_e9"])}>`);
|
|
15427
15270
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15428
15271
|
setScope(v);
|
|
15429
15272
|
}, "m0", $scope0_id), () => {
|
|
15430
|
-
_html(`<select${_attr_class(["_p", "
|
|
15273
|
+
_html(`<select${_attr_class(["_p", "_e_"])} aria-label="Review scope"${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option></select>`);
|
|
15431
15274
|
});
|
|
15432
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15275
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_e5", { ["_e4"]: !findOpen }])}>`);
|
|
15433
15276
|
_set_serialize_reason(2);
|
|
15434
15277
|
const $childScope3 = _peek_scope_id();
|
|
15435
15278
|
let findFocus = diff_find_default({
|
|
@@ -15450,8 +15293,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15450
15293
|
const $scope14_id = _scope_id();
|
|
15451
15294
|
_html(`<button${_attr_class([
|
|
15452
15295
|
iconBtnRow,
|
|
15453
|
-
"
|
|
15454
|
-
"
|
|
15296
|
+
"_e3",
|
|
15297
|
+
"_eU"
|
|
15455
15298
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15456
15299
|
icon_search_default({ size: 14 });
|
|
15457
15300
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15460,7 +15303,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15460
15303
|
return 0;
|
|
15461
15304
|
}
|
|
15462
15305
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15463
|
-
_html(`</div></div><div${_attr_class("
|
|
15306
|
+
_html(`</div></div><div${_attr_class("_e6")} data-diff-main>`);
|
|
15464
15307
|
_if(() => {
|
|
15465
15308
|
if (error) {
|
|
15466
15309
|
const $scope6_id = _scope_id();
|
|
@@ -15483,7 +15326,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15483
15326
|
_if(() => {
|
|
15484
15327
|
if (!repos && loading) {
|
|
15485
15328
|
const $scope15_id = _scope_id();
|
|
15486
|
-
_html(`<div${_attr_class("
|
|
15329
|
+
_html(`<div${_attr_class("_fb")} aria-hidden=true><div${_attr_class(["_fc", "_fd"])}></div><div${_attr_class(["_fc", "_fe"])}></div><div${_attr_class(["_fc", "_ff"])}></div><div${_attr_class(["_fc", "_fe"])}></div><div${_attr_class(["_fc", "_ff"])}></div></div>`);
|
|
15487
15330
|
writeScope($scope15_id, {});
|
|
15488
15331
|
return 0;
|
|
15489
15332
|
}
|
|
@@ -15513,12 +15356,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15513
15356
|
_if(() => {
|
|
15514
15357
|
if (repos && !allFiles.length) {
|
|
15515
15358
|
const $scope11_id = _scope_id();
|
|
15516
|
-
_html(`<p${_attr_class("
|
|
15359
|
+
_html(`<p${_attr_class("_ck")}>${_text_resume($scope11_id, "b", repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
15517
15360
|
writeScope($scope11_id, {});
|
|
15518
15361
|
return 0;
|
|
15519
15362
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
15520
15363
|
const $scope8_id = _scope_id();
|
|
15521
|
-
_html(`<p${_attr_class("
|
|
15364
|
+
_html(`<p${_attr_class("_ck")}>${_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>`);
|
|
15522
15365
|
writeScope($scope8_id, {});
|
|
15523
15366
|
return 1;
|
|
15524
15367
|
}
|
|
@@ -15885,12 +15728,12 @@ function parseInvite(text) {
|
|
|
15885
15728
|
}
|
|
15886
15729
|
//#endregion
|
|
15887
15730
|
//#region src/tags/manage-workspace.css.ts
|
|
15888
|
-
var pageMeta = "
|
|
15889
|
-
var pathMeta = "
|
|
15890
|
-
var skillRow = "
|
|
15891
|
-
var skillName = "
|
|
15892
|
-
var skillDesc = "
|
|
15893
|
-
var skillEnd = "
|
|
15731
|
+
var pageMeta = "_ez _dZ";
|
|
15732
|
+
var pathMeta = "_eC _y";
|
|
15733
|
+
var skillRow = "_eI _eD";
|
|
15734
|
+
var skillName = "_eK _eE";
|
|
15735
|
+
var skillDesc = "_eN _eF";
|
|
15736
|
+
var skillEnd = "_eO _eG";
|
|
15894
15737
|
//#endregion
|
|
15895
15738
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15896
15739
|
var icon_clipboard_default = _template("Y", (input) => {
|
|
@@ -15908,8 +15751,8 @@ var icon_clipboard_default = _template("Y", (input) => {
|
|
|
15908
15751
|
});
|
|
15909
15752
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15910
15753
|
});
|
|
15911
|
-
var resultRow = "
|
|
15912
|
-
var resultBranch = "
|
|
15754
|
+
var resultRow = "_hh _I";
|
|
15755
|
+
var resultBranch = "_hj _4 _l";
|
|
15913
15756
|
//#endregion
|
|
15914
15757
|
//#region src/tags/icons/icon-branch.marko
|
|
15915
15758
|
var icon_branch_default = _template("U", (input) => {
|
|
@@ -15939,11 +15782,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15939
15782
|
let branchFilter = "";
|
|
15940
15783
|
let reloadTick = 0;
|
|
15941
15784
|
let refreshing = false;
|
|
15942
|
-
_html(`<div${_attr_class("
|
|
15785
|
+
_html(`<div${_attr_class("_hl")}>`);
|
|
15943
15786
|
_if(() => {
|
|
15944
15787
|
{
|
|
15945
15788
|
const $scope4_id = _scope_id();
|
|
15946
|
-
_html(`<p${_attr_class("
|
|
15789
|
+
_html(`<p${_attr_class("_cj")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15947
15790
|
writeScope($scope4_id, {});
|
|
15948
15791
|
return 0;
|
|
15949
15792
|
}
|
|
@@ -16044,21 +15887,21 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16044
15887
|
_resume_branch($scope9_id);
|
|
16045
15888
|
}, $scope0_id) };
|
|
16046
15889
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
16047
|
-
_html(`<div${_attr_class([compact ? "
|
|
16048
|
-
["
|
|
16049
|
-
["
|
|
15890
|
+
_html(`<div${_attr_class([compact ? "_fo" : "_g_", {
|
|
15891
|
+
["_fp"]: compact && !input$2.open,
|
|
15892
|
+
["_fq"]: input$2.pinned
|
|
16050
15893
|
}])}>`);
|
|
16051
15894
|
_if(() => {
|
|
16052
15895
|
if (!compact && ssoPending.length) {
|
|
16053
15896
|
const $scope11_id = _scope_id();
|
|
16054
|
-
_html(`<div${_attr_class("
|
|
15897
|
+
_html(`<div${_attr_class("_hc")}>`);
|
|
16055
15898
|
ssoBlock.content({});
|
|
16056
15899
|
_html("</div>");
|
|
16057
15900
|
writeScope($scope11_id, {});
|
|
16058
15901
|
return 0;
|
|
16059
15902
|
}
|
|
16060
15903
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
16061
|
-
_html(`<div${!compact && input$2.action ? _attr_class("
|
|
15904
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_ha") : _attr_class("_hb")}><label${_attr_class(["_1", compact && "_fr"])}>`);
|
|
16062
15905
|
icon_search_default({
|
|
16063
15906
|
size: 14,
|
|
16064
15907
|
class: "_2"
|
|
@@ -16070,7 +15913,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16070
15913
|
}, "w0", $scope0_id))}${_attr_class([
|
|
16071
15914
|
compact ? "_Z" : inputLg,
|
|
16072
15915
|
"_3",
|
|
16073
|
-
compact && "
|
|
15916
|
+
compact && "_fs"
|
|
16074
15917
|
])} 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)}`);
|
|
16075
15918
|
_if(() => {
|
|
16076
15919
|
if (!compact && input$2.action) {
|
|
@@ -16084,7 +15927,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16084
15927
|
_if(() => {
|
|
16085
15928
|
if (compact) {
|
|
16086
15929
|
const $scope2_id = _scope_id();
|
|
16087
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15930
|
+
_html(`<button${_attr_class([iconBtnRow, "_ft"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
16088
15931
|
icon_xmark_default({ size: 14 });
|
|
16089
15932
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
16090
15933
|
_script($scope2_id, "w14");
|
|
@@ -16092,11 +15935,11 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16092
15935
|
return 0;
|
|
16093
15936
|
}
|
|
16094
15937
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
16095
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
15938
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hd"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
16096
15939
|
_if(() => {
|
|
16097
15940
|
if (compact && ssoPending.length) {
|
|
16098
15941
|
const $scope12_id = _scope_id();
|
|
16099
|
-
_html(`<div${_attr_class("
|
|
15942
|
+
_html(`<div${_attr_class("_hc")}>`);
|
|
16100
15943
|
ssoBlock.content({});
|
|
16101
15944
|
_html("</div>");
|
|
16102
15945
|
writeScope($scope12_id, {});
|
|
@@ -16106,16 +15949,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16106
15949
|
_if(() => {
|
|
16107
15950
|
if (pasted) {
|
|
16108
15951
|
const $scope3_id = _scope_id();
|
|
16109
|
-
_html(`<ul${_attr_class("
|
|
15952
|
+
_html(`<ul${_attr_class("_he")}><li><div${_attr_class(["_hg", "_hf"])}><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)`)}>`);
|
|
16110
15953
|
icon_plus_default({
|
|
16111
15954
|
size: 12,
|
|
16112
|
-
class: "
|
|
15955
|
+
class: "_hn"
|
|
16113
15956
|
});
|
|
16114
|
-
_html(`<span${_attr_class("
|
|
15957
|
+
_html(`<span${_attr_class("_ho")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
16115
15958
|
_if(() => {
|
|
16116
15959
|
if (pastedForkable) {
|
|
16117
15960
|
const $scope10_id = _scope_id();
|
|
16118
|
-
_html(`<button${_attr_class(["
|
|
15961
|
+
_html(`<button${_attr_class(["_hk", { ["_hi"]: 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"}>`);
|
|
16119
15962
|
_if(() => {
|
|
16120
15963
|
if (pasteWillFork) {
|
|
16121
15964
|
const $scope14_id = _scope_id();
|
|
@@ -16135,7 +15978,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16135
15978
|
return 0;
|
|
16136
15979
|
}
|
|
16137
15980
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
16138
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15981
|
+
_html(`<button${_attr_class([resultBranch, { ["_hi"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
16139
15982
|
icon_branch_default({ size: 12 });
|
|
16140
15983
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
16141
15984
|
_if(() => {
|
|
@@ -16162,7 +16005,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16162
16005
|
return 0;
|
|
16163
16006
|
} else if (filter && !catalog) {
|
|
16164
16007
|
const $scope13_id = _scope_id();
|
|
16165
|
-
_html(`<p${_attr_class("
|
|
16008
|
+
_html(`<p${_attr_class("_cj")}>Loading repos…</p>`);
|
|
16166
16009
|
writeScope($scope13_id, {});
|
|
16167
16010
|
return 1;
|
|
16168
16011
|
}
|
|
@@ -16170,15 +16013,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16170
16013
|
_if(() => {
|
|
16171
16014
|
if (results.length) {
|
|
16172
16015
|
const $scope5_id = _scope_id();
|
|
16173
|
-
_html(`<ul${_attr_class("
|
|
16016
|
+
_html(`<ul${_attr_class("_he")}>`);
|
|
16174
16017
|
_for_of(results, (repo, i) => {
|
|
16175
16018
|
const $scope6_id = _scope_id();
|
|
16176
|
-
_html(`<li><div${_attr_class(["
|
|
16019
|
+
_html(`<li><div${_attr_class(["_hg", { ["_hf"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
16177
16020
|
icon_plus_default({
|
|
16178
16021
|
size: 12,
|
|
16179
|
-
class: "
|
|
16022
|
+
class: "_hn"
|
|
16180
16023
|
});
|
|
16181
|
-
_html(`<span${_attr_class("
|
|
16024
|
+
_html(`<span${_attr_class("_ho")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hi"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
16182
16025
|
icon_branch_default({ size: 12 });
|
|
16183
16026
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
16184
16027
|
_if(() => {
|
|
@@ -16213,7 +16056,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16213
16056
|
return 0;
|
|
16214
16057
|
} else if (filter && catalog && !pasted) {
|
|
16215
16058
|
const $scope8_id = _scope_id();
|
|
16216
|
-
_html(`<p${_attr_class("
|
|
16059
|
+
_html(`<p${_attr_class("_cj")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
16217
16060
|
writeScope($scope8_id, {});
|
|
16218
16061
|
return 1;
|
|
16219
16062
|
}
|
|
@@ -16433,7 +16276,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16433
16276
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16434
16277
|
}, "r10", $scope0_id);
|
|
16435
16278
|
const titleId = _id();
|
|
16436
|
-
_html(`<div${_attr_class("
|
|
16279
|
+
_html(`<div${_attr_class("_dT")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dU")}><div${_attr_class("_dV")}>`);
|
|
16437
16280
|
_set_serialize_reason(30);
|
|
16438
16281
|
const $childScope = _peek_scope_id();
|
|
16439
16282
|
page_head_default({
|
|
@@ -16446,7 +16289,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16446
16289
|
meta: attrTag({ content: _content("r20", () => {
|
|
16447
16290
|
_scope_reason();
|
|
16448
16291
|
const $scope13_id = _scope_id();
|
|
16449
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16292
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_eA")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
16450
16293
|
_if(() => {
|
|
16451
16294
|
if (ws.status !== "active") {
|
|
16452
16295
|
const $scope17_id = _scope_id();
|
|
@@ -16455,7 +16298,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16455
16298
|
return 0;
|
|
16456
16299
|
}
|
|
16457
16300
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
16458
|
-
_html(`<span${_attr_class("
|
|
16301
|
+
_html(`<span${_attr_class("_eB")} 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")}`);
|
|
16459
16302
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
16460
16303
|
_: _scope_with_id($scope0_id),
|
|
16461
16304
|
Ccf: 1
|
|
@@ -16535,12 +16378,12 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16535
16378
|
_if(() => {
|
|
16536
16379
|
if (pendingAction && actionStep) {
|
|
16537
16380
|
const $scope10_id = _scope_id();
|
|
16538
|
-
_html(`<p${_attr_class("
|
|
16381
|
+
_html(`<p${_attr_class("_b8")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
16539
16382
|
writeScope($scope10_id, {});
|
|
16540
16383
|
return 0;
|
|
16541
16384
|
}
|
|
16542
16385
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16543
|
-
_html(`<section${_attr_class("
|
|
16386
|
+
_html(`<section${_attr_class("_b9")}><div${_attr_class("_b_")}><h2${_attr_class("_cm")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_eR"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16544
16387
|
icon_plus_default({ size: 16 });
|
|
16545
16388
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16546
16389
|
_set_serialize_reason(26);
|
|
@@ -16574,7 +16417,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16574
16417
|
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
|
|
16575
16418
|
_for_of(ws.repos, (row) => {
|
|
16576
16419
|
const $scope1_id = _scope_id();
|
|
16577
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16420
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_ce")}><span${_attr_class(["_cf", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_cg")}><a${_attr_class(["_ch", "_K"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "g", repoLabel(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
|
|
16578
16421
|
_if(() => {
|
|
16579
16422
|
if (row.base_branch !== row.default_branch) {
|
|
16580
16423
|
const $scope20_id = _scope_id();
|
|
@@ -16595,7 +16438,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16595
16438
|
} else {
|
|
16596
16439
|
const $scope9_id = _scope_id();
|
|
16597
16440
|
_html(`<button${_attr_class([
|
|
16598
|
-
"
|
|
16441
|
+
"_ci",
|
|
16599
16442
|
"_8",
|
|
16600
16443
|
"_9",
|
|
16601
16444
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -16628,13 +16471,13 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16628
16471
|
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
16629
16472
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16630
16473
|
const $scope24_id = _scope_id();
|
|
16631
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16474
|
+
_html(`<li${_attr_class([flatCardRow, "_cc"])}><span${_attr_class("_G")}></span><div${_attr_class("_ce")}><span${_attr_class("_ch")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
|
|
16632
16475
|
writeScope($scope24_id, {});
|
|
16633
16476
|
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
16634
16477
|
_if(() => {
|
|
16635
16478
|
if (!ws.repos.length && !busy.size) {
|
|
16636
16479
|
const $scope25_id = _scope_id();
|
|
16637
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16480
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_ch")}>No repos yet. Add one to start.</span></li>`);
|
|
16638
16481
|
writeScope($scope25_id, {});
|
|
16639
16482
|
return 0;
|
|
16640
16483
|
}
|
|
@@ -16652,18 +16495,18 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16652
16495
|
_if(() => {
|
|
16653
16496
|
if (allSkills.length) {
|
|
16654
16497
|
const $scope2_id = _scope_id();
|
|
16655
|
-
_html(`<section${_attr_class("
|
|
16498
|
+
_html(`<section${_attr_class("_b9")}><div${_attr_class("_b_")}><h2${_attr_class("_cm")}>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)}>`);
|
|
16656
16499
|
_for_of(allSkills, ({ s, linked }) => {
|
|
16657
16500
|
const $scope3_id = _scope_id();
|
|
16658
16501
|
const isBusy = skillBusy.has(s.id);
|
|
16659
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
16502
|
+
_html(`<li${_attr_class([skillRow, { ["_eJ"]: !linked }])}><span${_attr_class("_eL")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16660
16503
|
_if(() => {
|
|
16661
16504
|
if (s.worktree && !s.broken) {
|
|
16662
16505
|
const $scope26_id = _scope_id();
|
|
16663
16506
|
_html(`<span${_attr_class([
|
|
16664
16507
|
"_N",
|
|
16665
16508
|
"_y",
|
|
16666
|
-
"
|
|
16509
|
+
"_eM"
|
|
16667
16510
|
])}${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")}`);
|
|
16668
16511
|
writeScope($scope26_id, {});
|
|
16669
16512
|
return 0;
|
|
@@ -16715,10 +16558,10 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16715
16558
|
if (linked) {
|
|
16716
16559
|
const $scope11_id = _scope_id();
|
|
16717
16560
|
_html(`<button${_attr_class([
|
|
16718
|
-
"
|
|
16561
|
+
"_ci",
|
|
16719
16562
|
"_8",
|
|
16720
16563
|
"_9",
|
|
16721
|
-
"
|
|
16564
|
+
"_eP",
|
|
16722
16565
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16723
16566
|
])} 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}`)}>`);
|
|
16724
16567
|
_if(() => {
|
|
@@ -16768,20 +16611,20 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16768
16611
|
_if(() => {
|
|
16769
16612
|
if (running.length) {
|
|
16770
16613
|
const $scope15_id = _scope_id();
|
|
16771
|
-
_html(`<section${_attr_class("
|
|
16614
|
+
_html(`<section${_attr_class("_b9")}><div${_attr_class("_b_")}><h2${_attr_class("_cm")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16772
16615
|
_for_of(running, (p) => {
|
|
16773
16616
|
const $scope16_id = _scope_id();
|
|
16774
|
-
_html(`<li${_attr_class("
|
|
16617
|
+
_html(`<li${_attr_class("_eD")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_eE"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_eF"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_eG")}>`);
|
|
16775
16618
|
_for_of(p.ports, (port) => {
|
|
16776
16619
|
const $scope34_id = _scope_id();
|
|
16777
16620
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
16778
16621
|
_script($scope34_id, "r27");
|
|
16779
16622
|
writeScope($scope34_id, { d: port });
|
|
16780
16623
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
16781
|
-
_html(`<span${_attr_class(["_y", "
|
|
16782
|
-
"
|
|
16624
|
+
_html(`<span${_attr_class(["_y", "_eH"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
16625
|
+
"_ci",
|
|
16783
16626
|
"_8",
|
|
16784
|
-
"
|
|
16627
|
+
"_eQ"
|
|
16785
16628
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16786
16629
|
icon_xmark_default({ size: 14 });
|
|
16787
16630
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -16862,14 +16705,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16862
16705
|
});
|
|
16863
16706
|
_resume_branch($scope0_id);
|
|
16864
16707
|
});
|
|
16865
|
-
var curRepos = "
|
|
16866
|
-
var curRow = "
|
|
16867
|
-
var curEmpty = "
|
|
16868
|
-
var curBase = "
|
|
16869
|
-
var archived = "
|
|
16870
|
-
var archivedHint = "
|
|
16871
|
-
var archivedList = "
|
|
16872
|
-
var archivedRow = "
|
|
16708
|
+
var curRepos = "_ed _cd _d1 _eb";
|
|
16709
|
+
var curRow = "_el _ee _ec";
|
|
16710
|
+
var curEmpty = "_en _cj";
|
|
16711
|
+
var curBase = "_eq _Y _X";
|
|
16712
|
+
var archived = "_ev _b9";
|
|
16713
|
+
var archivedHint = "_ew _X";
|
|
16714
|
+
var archivedList = "_ed _cd _d1 _eb";
|
|
16715
|
+
var archivedRow = "_ex _ee _ec";
|
|
16873
16716
|
//#endregion
|
|
16874
16717
|
//#region src/tags/icons/icon-group.marko
|
|
16875
16718
|
var icon_group_default = _template("fb", (input) => {
|
|
@@ -16889,8 +16732,8 @@ var icon_group_default = _template("fb", (input) => {
|
|
|
16889
16732
|
});
|
|
16890
16733
|
//#endregion
|
|
16891
16734
|
//#region src/tags/join-dialog.css.ts
|
|
16892
|
-
var dlg = "
|
|
16893
|
-
var hint = "
|
|
16735
|
+
var dlg = "_im _hP";
|
|
16736
|
+
var hint = "_in _X";
|
|
16894
16737
|
//#endregion
|
|
16895
16738
|
//#region src/tags/join-dialog.marko
|
|
16896
16739
|
var api$3;
|
|
@@ -17019,26 +16862,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17019
16862
|
content: _content("o12", () => {
|
|
17020
16863
|
_scope_reason();
|
|
17021
16864
|
const $scope1_id = _scope_id();
|
|
17022
|
-
_html(`<h2${_attr_class("
|
|
16865
|
+
_html(`<h2${_attr_class("_hQ")}${_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([
|
|
17023
16866
|
"_Z",
|
|
17024
16867
|
"_y",
|
|
17025
|
-
"
|
|
16868
|
+
"_ip"
|
|
17026
16869
|
])} 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")}`);
|
|
17027
16870
|
_if(() => {
|
|
17028
16871
|
if (parsed.error) {
|
|
17029
16872
|
const $scope8_id = _scope_id();
|
|
17030
|
-
_html(`<p${_attr_class([hint, "
|
|
16873
|
+
_html(`<p${_attr_class([hint, "_io"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
17031
16874
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
17032
16875
|
return 0;
|
|
17033
16876
|
} else if (parsed.ok) {
|
|
17034
16877
|
const $scope3_id = _scope_id();
|
|
17035
|
-
_html(`<ul${_attr_class("
|
|
16878
|
+
_html(`<ul${_attr_class("_iq")}>`);
|
|
17036
16879
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
17037
16880
|
const $scope9_id = _scope_id();
|
|
17038
|
-
_html(`<li${_attr_class("
|
|
16881
|
+
_html(`<li${_attr_class("_ir")}><span${_attr_class("_is")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
17039
16882
|
writeScope($scope9_id, {});
|
|
17040
16883
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
17041
|
-
_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("
|
|
16884
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_it")}><span${_attr_class("_cm")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
17042
16885
|
name = _new_name;
|
|
17043
16886
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
17044
16887
|
_script($scope3_id, "o8");
|
|
@@ -17075,10 +16918,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17075
16918
|
_if(() => {
|
|
17076
16919
|
if (busy && steps$2.length) {
|
|
17077
16920
|
const $scope6_id = _scope_id();
|
|
17078
|
-
_html(`<ul${_attr_class("
|
|
16921
|
+
_html(`<ul${_attr_class("_iu")}>`);
|
|
17079
16922
|
_for_of(steps$2, (step$2, i) => {
|
|
17080
16923
|
const $scope7_id = _scope_id();
|
|
17081
|
-
_html(`<li${_attr_class(["
|
|
16924
|
+
_html(`<li${_attr_class(["_iw", { ["_iv"]: i === steps$2.length - 1 }])}>`);
|
|
17082
16925
|
_if(() => {
|
|
17083
16926
|
if (i === steps$2.length - 1) {
|
|
17084
16927
|
const $scope10_id = _scope_id();
|
|
@@ -17087,7 +16930,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17087
16930
|
return 0;
|
|
17088
16931
|
} else {
|
|
17089
16932
|
const $scope11_id = _scope_id();
|
|
17090
|
-
_html(`<span${_attr_class("
|
|
16933
|
+
_html(`<span${_attr_class("_ix")}>`);
|
|
17091
16934
|
icon_check_default({ size: 14 });
|
|
17092
16935
|
_html("</span>");
|
|
17093
16936
|
writeScope($scope11_id, {});
|
|
@@ -17245,7 +17088,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17245
17088
|
}
|
|
17246
17089
|
}, "t6", $scope0_id);
|
|
17247
17090
|
const titleId = _id();
|
|
17248
|
-
_html(`<div${_attr_class("
|
|
17091
|
+
_html(`<div${_attr_class("_dT")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_dU")}><div${_attr_class("_dV")}>`);
|
|
17249
17092
|
_set_serialize_reason({
|
|
17250
17093
|
0: _serialize_guard($scope0_reason, 2),
|
|
17251
17094
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17294,16 +17137,16 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17294
17137
|
return 0;
|
|
17295
17138
|
}
|
|
17296
17139
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17297
|
-
_html(`<label${_attr_class("
|
|
17140
|
+
_html(`<label${_attr_class("_eh")}><span${_attr_class("_cm")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17298
17141
|
name = _new_name;
|
|
17299
|
-
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
17142
|
+
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_b9")}><div${_attr_class("_ej")}><h2${_attr_class("_cm")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
17300
17143
|
_for_of(selected, (repo) => {
|
|
17301
17144
|
const $scope4_id = _scope_id();
|
|
17302
|
-
_html(`<li${_attr_class("
|
|
17145
|
+
_html(`<li${_attr_class("_ek")}><div${_attr_class(curRow)}><span${_attr_class("_eo")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
|
|
17303
17146
|
_if(() => {
|
|
17304
17147
|
if (repo.fork !== void 0) {
|
|
17305
17148
|
const $scope5_id = _scope_id();
|
|
17306
|
-
_html(`<button${_attr_class(["
|
|
17149
|
+
_html(`<button${_attr_class(["_er", { ["_ep"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
17307
17150
|
_if(() => {
|
|
17308
17151
|
if (repo.fork) {
|
|
17309
17152
|
const $scope14_id = _scope_id();
|
|
@@ -17326,7 +17169,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17326
17169
|
_html(`<button${_attr_class([
|
|
17327
17170
|
curBase,
|
|
17328
17171
|
"_y",
|
|
17329
|
-
{ ["
|
|
17172
|
+
{ ["_ep"]: branchesFor === repo.fullName }
|
|
17330
17173
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17331
17174
|
icon_branch_default({ size: 12 });
|
|
17332
17175
|
_html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -17335,7 +17178,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17335
17178
|
_if(() => {
|
|
17336
17179
|
if (branchesFor === repo.fullName) {
|
|
17337
17180
|
const $scope10_id = _scope_id();
|
|
17338
|
-
_html(`<div${_attr_class("
|
|
17181
|
+
_html(`<div${_attr_class("_em")}>`);
|
|
17339
17182
|
const $childScope2 = _peek_scope_id();
|
|
17340
17183
|
branch_pick_default({
|
|
17341
17184
|
repo: repo.fullName,
|
|
@@ -17386,7 +17229,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17386
17229
|
action: attrTag({ content: _content("t21", () => {
|
|
17387
17230
|
_scope_reason();
|
|
17388
17231
|
const $scope2_id = _scope_id();
|
|
17389
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
17232
|
+
_html(`<button${_attr_class([iconBtnRow, "_ei"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17390
17233
|
_set_serialize_reason(1);
|
|
17391
17234
|
const $childScope3 = _peek_scope_id();
|
|
17392
17235
|
icon_refresh_default({
|
|
@@ -17407,10 +17250,10 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17407
17250
|
_if(() => {
|
|
17408
17251
|
if (busy && steps.length) {
|
|
17409
17252
|
const $scope11_id = _scope_id();
|
|
17410
|
-
_html(`<ul${_attr_class("
|
|
17253
|
+
_html(`<ul${_attr_class("_es")}>`);
|
|
17411
17254
|
_for_of(steps, (step, i) => {
|
|
17412
17255
|
const $scope12_id = _scope_id();
|
|
17413
|
-
_html(`<li${_attr_class(["
|
|
17256
|
+
_html(`<li${_attr_class(["_ey", { ["_et"]: i === steps.length - 1 }])}>`);
|
|
17414
17257
|
_if(() => {
|
|
17415
17258
|
if (i === steps.length - 1) {
|
|
17416
17259
|
const $scope17_id = _scope_id();
|
|
@@ -17419,7 +17262,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17419
17262
|
return 0;
|
|
17420
17263
|
} else {
|
|
17421
17264
|
const $scope18_id = _scope_id();
|
|
17422
|
-
_html(`<span${_attr_class("
|
|
17265
|
+
_html(`<span${_attr_class("_eu")}>`);
|
|
17423
17266
|
icon_check_default({ size: 14 });
|
|
17424
17267
|
_html("</span>");
|
|
17425
17268
|
writeScope($scope18_id, {});
|
|
@@ -17433,18 +17276,18 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17433
17276
|
return 0;
|
|
17434
17277
|
}
|
|
17435
17278
|
}, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
17436
|
-
_html(`<div${_attr_class("
|
|
17279
|
+
_html(`<div${_attr_class("_ef")}><button type=button${_attr_class([
|
|
17437
17280
|
btnLg,
|
|
17438
17281
|
"_r",
|
|
17439
|
-
"
|
|
17282
|
+
"_eg"
|
|
17440
17283
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
|
|
17441
17284
|
_if(() => {
|
|
17442
17285
|
if (archived$1.length) {
|
|
17443
17286
|
const $scope6_id = _scope_id();
|
|
17444
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17287
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_ej")}><h2${_attr_class("_cm")}>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)}>`);
|
|
17445
17288
|
_for_of(archived$1, (ws) => {
|
|
17446
17289
|
const $scope7_id = _scope_id();
|
|
17447
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
17290
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_ce")}><span${_attr_class("_cf")}>${_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)}>`);
|
|
17448
17291
|
_if(() => {
|
|
17449
17292
|
if (restoring === ws.id) {
|
|
17450
17293
|
const $scope19_id = _scope_id();
|
|
@@ -17560,19 +17403,19 @@ var term_find_default = _template("E", (input) => {
|
|
|
17560
17403
|
const canStep = hasQuery && open;
|
|
17561
17404
|
const keybar = input.placement === "keybar";
|
|
17562
17405
|
_html(`<div${_attr_class([
|
|
17563
|
-
"
|
|
17564
|
-
keybar ? "
|
|
17565
|
-
!open && "
|
|
17566
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17406
|
+
"_cA",
|
|
17407
|
+
keybar ? "_cC" : "_cB",
|
|
17408
|
+
!open && "_cE"
|
|
17409
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_cv", keybar ? "_cD" : "_cx"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17567
17410
|
if (!open) return;
|
|
17568
17411
|
query = v;
|
|
17569
17412
|
live.query = v;
|
|
17570
17413
|
run(0);
|
|
17571
|
-
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17414
|
+
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "_cF"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_cG"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17572
17415
|
icon_arrow_up_default({ size: 14 });
|
|
17573
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17416
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_cG"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17574
17417
|
icon_arrow_down_default({ size: 14 });
|
|
17575
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17418
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_cG"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17576
17419
|
icon_xmark_default({ size: 14 });
|
|
17577
17420
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
17578
17421
|
const $return = focusInput;
|
|
@@ -17723,7 +17566,7 @@ var term_default = _template("F", (input) => {
|
|
|
17723
17566
|
}
|
|
17724
17567
|
}, "F9", $scope0_id);
|
|
17725
17568
|
input.keys;
|
|
17726
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17569
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_db")}><div${_attr_class("_dc")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17727
17570
|
_if(() => {
|
|
17728
17571
|
if (findOpen) {
|
|
17729
17572
|
const $scope4_id = _scope_id();
|
|
@@ -17750,7 +17593,7 @@ var term_default = _template("F", (input) => {
|
|
|
17750
17593
|
_if(() => {
|
|
17751
17594
|
if (uploading) {
|
|
17752
17595
|
const $scope5_id = _scope_id();
|
|
17753
|
-
_html(`<div${_attr_class("
|
|
17596
|
+
_html(`<div${_attr_class("_di")}>uploading…</div>`);
|
|
17754
17597
|
writeScope($scope5_id, {});
|
|
17755
17598
|
return 0;
|
|
17756
17599
|
}
|
|
@@ -17758,7 +17601,7 @@ var term_default = _template("F", (input) => {
|
|
|
17758
17601
|
_if(() => {
|
|
17759
17602
|
if (copiedFlash) {
|
|
17760
17603
|
const $scope6_id = _scope_id();
|
|
17761
|
-
_html(`<div${_attr_class("
|
|
17604
|
+
_html(`<div${_attr_class("_dh")}>Copied</div>`);
|
|
17762
17605
|
writeScope($scope6_id, {});
|
|
17763
17606
|
return 0;
|
|
17764
17607
|
}
|
|
@@ -17767,7 +17610,7 @@ var term_default = _template("F", (input) => {
|
|
|
17767
17610
|
_if(() => {
|
|
17768
17611
|
if (trapOpen) {
|
|
17769
17612
|
const $scope3_id = _scope_id();
|
|
17770
|
-
_html(`<div${_attr_class("
|
|
17613
|
+
_html(`<div${_attr_class("_dj")}><div${_attr_class("_dk")}><p${_attr_class("_dl")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
|
|
17771
17614
|
_script($scope3_id, "F16");
|
|
17772
17615
|
_script($scope3_id, "F17");
|
|
17773
17616
|
writeScope($scope3_id, {});
|
|
@@ -18028,10 +17871,10 @@ var work_view_default = _template("J", (input) => {
|
|
|
18028
17871
|
}
|
|
18029
17872
|
}, "J14", $scope0_id);
|
|
18030
17873
|
const navShown = view === "nav" && input.navState?.view === "nav";
|
|
18031
|
-
_html(`<div${_attr_class(["
|
|
18032
|
-
["
|
|
18033
|
-
["
|
|
18034
|
-
}])}><div${_attr_class("
|
|
17874
|
+
_html(`<div${_attr_class(["_cp", {
|
|
17875
|
+
["_cn"]: navShown,
|
|
17876
|
+
["_co"]: !input.active
|
|
17877
|
+
}])}><div${_attr_class("_cq")}>`);
|
|
18035
17878
|
_if(() => {
|
|
18036
17879
|
if (error) {
|
|
18037
17880
|
const $scope8_id = _scope_id();
|
|
@@ -18054,7 +17897,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18054
17897
|
_if(() => {
|
|
18055
17898
|
if (diffMounted && ws) {
|
|
18056
17899
|
const $scope1_id = _scope_id();
|
|
18057
|
-
_html(`<div${_attr_class("
|
|
17900
|
+
_html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
18058
17901
|
_set_serialize_reason({
|
|
18059
17902
|
0: $sg__input_workspace,
|
|
18060
17903
|
1: $sg__input_workspace,
|
|
@@ -18111,7 +17954,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18111
17954
|
_if(() => {
|
|
18112
17955
|
if (manageMounted && ws) {
|
|
18113
17956
|
const $scope2_id = _scope_id();
|
|
18114
|
-
_html(`<div${_attr_class("
|
|
17957
|
+
_html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
18115
17958
|
_set_serialize_reason({
|
|
18116
17959
|
0: $sg__input_workspace,
|
|
18117
17960
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -18137,7 +17980,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18137
17980
|
_if(() => {
|
|
18138
17981
|
if (settingsMounted) {
|
|
18139
17982
|
const $scope3_id = _scope_id();
|
|
18140
|
-
_html(`<div${_attr_class("
|
|
17983
|
+
_html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
18141
17984
|
_set_serialize_reason({
|
|
18142
17985
|
0: _serialize_guard($scope0_reason, 0),
|
|
18143
17986
|
1: $sg__input_workspace,
|
|
@@ -18179,7 +18022,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18179
18022
|
_if(() => {
|
|
18180
18023
|
if (newMounted) {
|
|
18181
18024
|
const $scope4_id = _scope_id();
|
|
18182
|
-
_html(`<div${_attr_class("
|
|
18025
|
+
_html(`<div${_attr_class("_cr")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18183
18026
|
_set_serialize_reason({
|
|
18184
18027
|
0: 1,
|
|
18185
18028
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -18204,13 +18047,13 @@ var work_view_default = _template("J", (input) => {
|
|
|
18204
18047
|
return 0;
|
|
18205
18048
|
}
|
|
18206
18049
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
18207
|
-
_html(`<div${_attr_class("
|
|
18050
|
+
_html(`<div${_attr_class("_cs")}${_attr("inert", view !== "term")}>`);
|
|
18208
18051
|
_if(() => {
|
|
18209
18052
|
if (ws && shownSessions) {
|
|
18210
18053
|
const $scope5_id = _scope_id();
|
|
18211
18054
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18212
18055
|
const $scope6_id = _scope_id();
|
|
18213
|
-
_html(`<div${_attr_class("
|
|
18056
|
+
_html(`<div${_attr_class("_ct")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18214
18057
|
_set_serialize_reason(2);
|
|
18215
18058
|
const $childScope5 = _peek_scope_id();
|
|
18216
18059
|
term_default({
|
|
@@ -18236,7 +18079,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18236
18079
|
_if(() => {
|
|
18237
18080
|
if (!shownSessions.length && view === "term") {
|
|
18238
18081
|
const $scope7_id = _scope_id();
|
|
18239
|
-
_html(`<div${_attr_class("
|
|
18082
|
+
_html(`<div${_attr_class("_ck")}><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>`);
|
|
18240
18083
|
_script($scope7_id, "J38");
|
|
18241
18084
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
18242
18085
|
return 0;
|
|
@@ -18246,7 +18089,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18246
18089
|
return 0;
|
|
18247
18090
|
} else if (ws) {
|
|
18248
18091
|
const $scope10_id = _scope_id();
|
|
18249
|
-
_html(`<p${_attr_class("
|
|
18092
|
+
_html(`<p${_attr_class("_ck")}>Loading sessions…</p>`);
|
|
18250
18093
|
writeScope($scope10_id, {});
|
|
18251
18094
|
return 1;
|
|
18252
18095
|
}
|
|
@@ -18366,8 +18209,8 @@ _template("tb", (input) => {
|
|
|
18366
18209
|
});
|
|
18367
18210
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
18368
18211
|
});
|
|
18369
|
-
var sessOpen = "
|
|
18370
|
-
var sessRename = "
|
|
18212
|
+
var sessOpen = "_cL _I";
|
|
18213
|
+
var sessRename = "_cP _J";
|
|
18371
18214
|
//#endregion
|
|
18372
18215
|
//#region src/tags/key-bar-sessions.marko
|
|
18373
18216
|
var usageFor;
|
|
@@ -18398,7 +18241,7 @@ _template("p", (input) => {
|
|
|
18398
18241
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
18399
18242
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
18400
18243
|
}, "p2", $scope0_id);
|
|
18401
|
-
_html(`<button${_attr_class([kbtn, "
|
|
18244
|
+
_html(`<button${_attr_class([kbtn, "_cH"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
18402
18245
|
_set_serialize_reason({
|
|
18403
18246
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
18404
18247
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -18412,12 +18255,12 @@ _template("p", (input) => {
|
|
|
18412
18255
|
"_A",
|
|
18413
18256
|
"_bc",
|
|
18414
18257
|
phase[sessionPhase(current$2?.state)]
|
|
18415
|
-
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "
|
|
18258
|
+
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "_cI"])}>`);
|
|
18416
18259
|
_for_of(input.sessions, (s) => {
|
|
18417
18260
|
const $scope1_id = _scope_id();
|
|
18418
18261
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
18419
18262
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
18420
|
-
_html(`<div${_attr_class(["
|
|
18263
|
+
_html(`<div${_attr_class(["_cK", { ["_cJ"]: s.id === input.sessionId }])}>`);
|
|
18421
18264
|
_if(() => {
|
|
18422
18265
|
if (renamingId === s.id) {
|
|
18423
18266
|
const $scope5_id = _scope_id();
|
|
@@ -18449,7 +18292,7 @@ _template("p", (input) => {
|
|
|
18449
18292
|
agent: activeAgent(s),
|
|
18450
18293
|
size: 14
|
|
18451
18294
|
});
|
|
18452
|
-
_html(`<span${_attr_class("
|
|
18295
|
+
_html(`<span${_attr_class("_cM")}><span${_attr_class("_cO")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
18453
18296
|
_if(() => {
|
|
18454
18297
|
if (s.id === input.sessionId) {
|
|
18455
18298
|
const $scope7_id = _scope_id();
|
|
@@ -18461,7 +18304,7 @@ _template("p", (input) => {
|
|
|
18461
18304
|
const $childScope4 = _peek_scope_id();
|
|
18462
18305
|
usage_pcts_default({
|
|
18463
18306
|
agent: plan,
|
|
18464
|
-
class: "
|
|
18307
|
+
class: "_cN"
|
|
18465
18308
|
});
|
|
18466
18309
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
18467
18310
|
return 0;
|
|
@@ -18478,7 +18321,7 @@ _template("p", (input) => {
|
|
|
18478
18321
|
_if(() => {
|
|
18479
18322
|
if (input.onRenameSession) {
|
|
18480
18323
|
const $scope6_id = _scope_id();
|
|
18481
|
-
_html(`<button${_attr_class(["
|
|
18324
|
+
_html(`<button${_attr_class(["_cQ", "_cR"])} title="Rename session">`);
|
|
18482
18325
|
icon_edit_default({ size: 12 });
|
|
18483
18326
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
18484
18327
|
_script($scope6_id, "p4");
|
|
@@ -18490,7 +18333,7 @@ _template("p", (input) => {
|
|
|
18490
18333
|
if (input.onCloseSession) {
|
|
18491
18334
|
const $scope3_id = _scope_id();
|
|
18492
18335
|
_html(`<button${_attr_class([
|
|
18493
|
-
"
|
|
18336
|
+
"_cQ",
|
|
18494
18337
|
"_8",
|
|
18495
18338
|
{ ["_s"]: armedClose === s.id }
|
|
18496
18339
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -18517,7 +18360,7 @@ _template("p", (input) => {
|
|
|
18517
18360
|
k: $si__input_sessions && $for_content__s_id__closures
|
|
18518
18361
|
});
|
|
18519
18362
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
18520
|
-
_html(`<div${_attr_class("
|
|
18363
|
+
_html(`<div${_attr_class("_cS")}><span${_attr_class("_cT")}>New session</span><div${_attr_class("_cU")}>`);
|
|
18521
18364
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
18522
18365
|
const $scope4_id = _scope_id();
|
|
18523
18366
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -18993,7 +18836,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18993
18836
|
["_g"]: !selectedId && showSetup,
|
|
18994
18837
|
["_e"]: navView === "nav"
|
|
18995
18838
|
}])}>`);
|
|
18996
|
-
_set_serialize_reason(
|
|
18839
|
+
_set_serialize_reason(33554430);
|
|
18997
18840
|
const $childScope2 = _peek_scope_id();
|
|
18998
18841
|
side_nav_default({
|
|
18999
18842
|
workspace: navWs,
|
|
@@ -27527,4 +27370,4 @@ server.listen(port, () => {
|
|
|
27527
27370
|
//#endregion
|
|
27528
27371
|
export {};
|
|
27529
27372
|
|
|
27530
|
-
;var __MARKO_MANIFEST__={"
|
|
27373
|
+
;var __MARKO_MANIFEST__={"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/settings-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/new-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/w-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/w._-xKLJRIst.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-xKLJRIst.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">",2,"stylesheet#/assets/app-page-D2BI9pqy.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-D2BI9pqy.css\"",">"],"defer":[2,"/assets/w._-CaFh5fWn.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CaFh5fWn.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">",2,"modulepreload#/assets/_hePW80VL.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_hePW80VL.js\"",">",2,"modulepreload#/assets/_Cjgj-pBB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Cjgj-pBB.js\"",">",2,"modulepreload#/assets/_CUAQigw_.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CUAQigw_.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-CDR_rQOe.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-CDR_rQOe.css\"",">",2,"stylesheet#/assets/icon-arrow-down-xhBqf52S.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-xhBqf52S.css\"",">"],"defer":[2,"/assets/diff-view-CyDQspSd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-CyDQspSd.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|