@dylanpiercey/work 0.0.148 → 0.0.149
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 +517 -476
- package/dist/public/assets/_7nS5DHrB.js +1 -0
- package/dist/public/assets/_B1zVFrqA.js +1 -0
- package/dist/public/assets/_B2jTw69S.js +1 -0
- package/dist/public/assets/_BfeoGw7I.js +1 -0
- package/dist/public/assets/_C0pMVET4.js +1 -0
- package/dist/public/assets/_CGFRuaty.js +1 -0
- package/dist/public/assets/_CUJD0FoO.js +1 -0
- package/dist/public/assets/{_B5AO_PK0.js → _CbiKcUea.js} +4 -4
- package/dist/public/assets/_CbiKcUea.js.br +0 -0
- package/dist/public/assets/_Cj2nLZwI.js +1 -0
- package/dist/public/assets/_D7R73uuy.js +1 -0
- package/dist/public/assets/_D8c-yuh-.js +1 -0
- package/dist/public/assets/_DAuz95AE.js +1 -0
- package/dist/public/assets/{_BLa6qQRI.js → _DDw0OY_l.js} +1 -1
- package/dist/public/assets/_DDw0OY_l.js.br +0 -0
- package/dist/public/assets/_DIRvUWwm.js +1 -0
- package/dist/public/assets/_DO207rwp.js +1 -0
- package/dist/public/assets/_DP7TieId.js +1 -0
- package/dist/public/assets/_K5VzMaPM.js +1 -0
- package/dist/public/assets/{_WKZUfa9i.js → _L7D-PU41.js} +20 -20
- package/dist/public/assets/_L7D-PU41.js.br +0 -0
- package/dist/public/assets/_Sb7sRy6l.js +1 -0
- package/dist/public/assets/_apIFOh77.js +1 -0
- package/dist/public/assets/_itssyUra.js +1 -0
- package/dist/public/assets/_rxz4BJjC.js +1 -0
- package/dist/public/assets/app-page-IB6TT3tX.css +1 -0
- package/dist/public/assets/app-page-IB6TT3tX.css.br +0 -0
- package/dist/public/assets/diff-view-9CwFW8SS.js +2 -0
- package/dist/public/assets/diff-view-B_sKkKdf.css +1 -0
- package/dist/public/assets/diff-view-B_sKkKdf.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-DqH6wYIn.css → icon-arrow-down-BeyNPx46.css} +1 -1
- package/dist/public/assets/icon-arrow-down-BeyNPx46.css.br +0 -0
- package/dist/public/assets/new-B9nb-hJx.js +1 -0
- package/dist/public/assets/settings-B9nb-hJx.js +1 -0
- package/dist/public/assets/w-B9nb-hJx.js +1 -0
- package/dist/public/assets/w._-B9nb-hJx.js +1 -0
- package/dist/public/assets/w._-DLJZ7pvD.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_B5AO_PK0.js.br +0 -0
- package/dist/public/assets/_B6-AL2IW.js +0 -1
- package/dist/public/assets/_B6e0REjB.js +0 -1
- package/dist/public/assets/_BDPeW18V.js +0 -1
- package/dist/public/assets/_BLa6qQRI.js.br +0 -0
- package/dist/public/assets/_BUi3ZmzD.js +0 -1
- package/dist/public/assets/_BbmkxODJ.js +0 -1
- package/dist/public/assets/_Bh3PoiE1.js +0 -1
- package/dist/public/assets/_C-adqHHO.js +0 -1
- package/dist/public/assets/_C8kBw58V.js +0 -1
- package/dist/public/assets/_CAlPmNE1.js +0 -1
- package/dist/public/assets/_CC71bXNs.js +0 -1
- package/dist/public/assets/_CLcMxLyh.js +0 -1
- package/dist/public/assets/_C_zibmPN.js +0 -1
- package/dist/public/assets/_Cqr7mL5Y.js +0 -1
- package/dist/public/assets/_D5_AQNJN.js +0 -1
- package/dist/public/assets/_DDrwkoeT.js +0 -1
- package/dist/public/assets/_DhFH3piZ.js +0 -1
- package/dist/public/assets/_DtSBLUpQ.js +0 -1
- package/dist/public/assets/_DzRW5uyZ.js +0 -1
- package/dist/public/assets/_WKZUfa9i.js.br +0 -0
- package/dist/public/assets/_pBok7Jmw.js +0 -1
- package/dist/public/assets/app-page-C84CTqGX.css +0 -1
- package/dist/public/assets/app-page-C84CTqGX.css.br +0 -0
- package/dist/public/assets/diff-view-C3OrqoXk.css +0 -1
- package/dist/public/assets/diff-view-C3OrqoXk.css.br +0 -0
- package/dist/public/assets/diff-view-C_km5-JP.js +0 -2
- package/dist/public/assets/icon-arrow-down-DqH6wYIn.css.br +0 -0
- package/dist/public/assets/new-B2aqg9wv.js +0 -1
- package/dist/public/assets/settings-B2aqg9wv.js +0 -1
- package/dist/public/assets/w-B2aqg9wv.js +0 -1
- package/dist/public/assets/w._-B2aqg9wv.js +0 -1
- package/dist/public/assets/w._-CpTBl6kw.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -2722,6 +2722,11 @@ var exists = (file) => fs$1.stat(file).then(() => true, () => false);
|
|
|
2722
2722
|
var isDir = (file) => fs$1.stat(file).then((s) => s.isDirectory(), () => false);
|
|
2723
2723
|
//#endregion
|
|
2724
2724
|
//#region src/server/procs.ts
|
|
2725
|
+
/** `127.0.0.1`, `[::1]`, `localhost` — the binds a LAN or tailnet device
|
|
2726
|
+
* cannot reach. Wildcards and specific interface addresses are open. */
|
|
2727
|
+
function loopbackOnly(addr) {
|
|
2728
|
+
return /^(127\.|\[::1\]|localhost)/.test(addr);
|
|
2729
|
+
}
|
|
2725
2730
|
var darwin = process.platform === "darwin";
|
|
2726
2731
|
/** Reads of /proc are cheap but each is an async round trip; keep a bounded
|
|
2727
2732
|
* batch in flight rather than one at a time or all at once. */
|
|
@@ -2836,28 +2841,44 @@ async function listeningPortsNow() {
|
|
|
2836
2841
|
for (const line of out.split("\n")) if (line.startsWith("p")) pid = Number(line.slice(1));
|
|
2837
2842
|
else if (line.startsWith("c")) cmd = line.slice(1) || "?";
|
|
2838
2843
|
else if (line.startsWith("n")) {
|
|
2839
|
-
const
|
|
2840
|
-
|
|
2841
|
-
|
|
2844
|
+
const addr = line.slice(1);
|
|
2845
|
+
const port = Number(addr.match(/:(\d+)$/)?.[1]);
|
|
2846
|
+
if (!port || !pid) continue;
|
|
2847
|
+
const key = `${pid}:${port}`;
|
|
2848
|
+
const prev = ports.find((p) => seen.has(key) && p.pid === pid && p.port === port);
|
|
2849
|
+
if (prev) {
|
|
2850
|
+
if (!loopbackOnly(addr)) delete prev.local;
|
|
2851
|
+
continue;
|
|
2852
|
+
}
|
|
2853
|
+
seen.add(key);
|
|
2842
2854
|
ports.push({
|
|
2843
2855
|
port,
|
|
2844
2856
|
pid,
|
|
2845
|
-
cmd
|
|
2857
|
+
cmd,
|
|
2858
|
+
...loopbackOnly(addr) && { local: true }
|
|
2846
2859
|
});
|
|
2847
2860
|
}
|
|
2848
2861
|
return ports;
|
|
2849
2862
|
}
|
|
2850
2863
|
const out = await probe("ss", ["-tlnpH"]).catch(() => "");
|
|
2851
2864
|
for (const line of out.split("\n")) {
|
|
2852
|
-
const
|
|
2865
|
+
const addr = line.match(/^\S+\s+\d+\s+\d+\s+(\S+)/)?.[1] || "";
|
|
2866
|
+
const port = Number(addr.match(/:(\d+)$/)?.[1]);
|
|
2853
2867
|
const pid = Number(line.match(/pid=(\d+)/)?.[1]);
|
|
2854
2868
|
const cmd = line.match(/users:\(\("([^"]+)"/)?.[1] || "?";
|
|
2855
|
-
if (!port || !pid
|
|
2856
|
-
|
|
2869
|
+
if (!port || !pid) continue;
|
|
2870
|
+
const key = `${pid}:${port}`;
|
|
2871
|
+
const prev = ports.find((p) => seen.has(key) && p.pid === pid && p.port === port);
|
|
2872
|
+
if (prev) {
|
|
2873
|
+
if (!loopbackOnly(addr)) delete prev.local;
|
|
2874
|
+
continue;
|
|
2875
|
+
}
|
|
2876
|
+
seen.add(key);
|
|
2857
2877
|
ports.push({
|
|
2858
2878
|
port,
|
|
2859
2879
|
pid,
|
|
2860
|
-
cmd
|
|
2880
|
+
cmd,
|
|
2881
|
+
...loopbackOnly(addr) && { local: true }
|
|
2861
2882
|
});
|
|
2862
2883
|
}
|
|
2863
2884
|
return ports;
|
|
@@ -7223,20 +7244,20 @@ function applyInstance(inst) {
|
|
|
7223
7244
|
}
|
|
7224
7245
|
//#endregion
|
|
7225
7246
|
//#region src/tags/settings-page.css.ts
|
|
7226
|
-
var content$2 = "
|
|
7227
|
-
var agentGrid = "
|
|
7228
|
-
var toolGrid = "
|
|
7229
|
-
var toolRow = "
|
|
7230
|
-
var themeSeg = "
|
|
7231
|
-
var swatches = "
|
|
7232
|
-
var checkList = "
|
|
7233
|
-
var flatCardRow = "
|
|
7234
|
-
var pop$1 = "
|
|
7235
|
-
var spinner = "
|
|
7236
|
-
var busy = "
|
|
7237
|
-
var pop = "
|
|
7238
|
-
var sectionCount = "
|
|
7239
|
-
var row = "
|
|
7247
|
+
var content$2 = "_eU _cj _ck";
|
|
7248
|
+
var agentGrid = "_eX _bB";
|
|
7249
|
+
var toolGrid = "_e7 _ei";
|
|
7250
|
+
var toolRow = "_e8 _ej";
|
|
7251
|
+
var themeSeg = "_fv _be";
|
|
7252
|
+
var swatches = "_fD _be";
|
|
7253
|
+
var checkList = "_fU _bB";
|
|
7254
|
+
var flatCardRow = "_ek _ej";
|
|
7255
|
+
var pop$1 = "_eQ __";
|
|
7256
|
+
var spinner = "_eT _2 _G";
|
|
7257
|
+
var busy = "_dw _dv";
|
|
7258
|
+
var pop = "_dy __";
|
|
7259
|
+
var sectionCount = "_bA _N _O";
|
|
7260
|
+
var row = "_bL _bD";
|
|
7240
7261
|
var iconBtn$1 = "_5 _l";
|
|
7241
7262
|
//#endregion
|
|
7242
7263
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7277,18 +7298,18 @@ var icon_back_default = _template("O", (input) => {
|
|
|
7277
7298
|
var page_head_default = _template("t", (input) => {
|
|
7278
7299
|
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);
|
|
7279
7300
|
const $scope0_id = _scope_id();
|
|
7280
|
-
_html(`<header${_attr_class("
|
|
7301
|
+
_html(`<header${_attr_class("_cl")}>`);
|
|
7281
7302
|
_if(() => {
|
|
7282
7303
|
if (input.backHref) {
|
|
7283
7304
|
const $scope1_id = _scope_id();
|
|
7284
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7305
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_fY"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7285
7306
|
icon_back_default({ size: 16 });
|
|
7286
7307
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7287
7308
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7288
7309
|
return 0;
|
|
7289
7310
|
} else if (input.onBack) {
|
|
7290
7311
|
const $scope2_id = _scope_id();
|
|
7291
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7312
|
+
_html(`<button${_attr_class([iconBtnRow, "_fY"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7292
7313
|
icon_back_default({ size: 16 });
|
|
7293
7314
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7294
7315
|
_script($scope2_id, "t0");
|
|
@@ -7296,11 +7317,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7296
7317
|
return 1;
|
|
7297
7318
|
}
|
|
7298
7319
|
}, $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);
|
|
7299
|
-
_html(`<div${_attr_class("
|
|
7320
|
+
_html(`<div${_attr_class("_cn")}><h1${_attr("id", input.titleId)}${_attr_class("_cm")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7300
7321
|
_if(() => {
|
|
7301
7322
|
if (input.meta) {
|
|
7302
7323
|
const $scope3_id = _scope_id();
|
|
7303
|
-
_html(`<p${_attr_class("
|
|
7324
|
+
_html(`<p${_attr_class("_co")}>`);
|
|
7304
7325
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7305
7326
|
_html("</p>");
|
|
7306
7327
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7311,7 +7332,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7311
7332
|
_if(() => {
|
|
7312
7333
|
if (input.actions) {
|
|
7313
7334
|
const $scope4_id = _scope_id();
|
|
7314
|
-
_html(`<div${_attr_class("
|
|
7335
|
+
_html(`<div${_attr_class("_cp")}>`);
|
|
7315
7336
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7316
7337
|
_html("</div>");
|
|
7317
7338
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7379,7 +7400,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7379
7400
|
n: $badge__closures
|
|
7380
7401
|
});
|
|
7381
7402
|
});
|
|
7382
|
-
var usageNote = "
|
|
7403
|
+
var usageNote = "_gN _X";
|
|
7383
7404
|
//#endregion
|
|
7384
7405
|
//#region src/tags/icons/icon-warning.marko
|
|
7385
7406
|
var icon_warning_default = _template("ob", (input) => {
|
|
@@ -7409,11 +7430,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7409
7430
|
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);
|
|
7410
7431
|
const $scope0_id = _scope_id();
|
|
7411
7432
|
const agent = input.agent;
|
|
7412
|
-
_html(`<div${_attr_class(["
|
|
7433
|
+
_html(`<div${_attr_class(["_gH", { ["_gI"]: input.hideName }])}><div${_attr_class("_gJ")}>`);
|
|
7413
7434
|
_if(() => {
|
|
7414
7435
|
if (!input.hideName) {
|
|
7415
7436
|
const $scope1_id = _scope_id();
|
|
7416
|
-
_html(`<strong${_attr_class("
|
|
7437
|
+
_html(`<strong${_attr_class("_g2")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7417
7438
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7418
7439
|
return 0;
|
|
7419
7440
|
}
|
|
@@ -7421,7 +7442,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7421
7442
|
_if(() => {
|
|
7422
7443
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7423
7444
|
const $scope2_id = _scope_id();
|
|
7424
|
-
_html(`<span${_attr_class("
|
|
7445
|
+
_html(`<span${_attr_class("_gK")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7425
7446
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7426
7447
|
return 0;
|
|
7427
7448
|
}
|
|
@@ -7429,21 +7450,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7429
7450
|
_if(() => {
|
|
7430
7451
|
if (agent.stale_seconds != null) {
|
|
7431
7452
|
const $scope3_id = _scope_id();
|
|
7432
|
-
_html(`<span${_attr_class("
|
|
7453
|
+
_html(`<span${_attr_class("_gL")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7433
7454
|
icon_warning_default({ size: 12 });
|
|
7434
7455
|
_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)}`);
|
|
7435
7456
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7436
7457
|
return 0;
|
|
7437
7458
|
}
|
|
7438
7459
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7439
|
-
_html(`</div><div${_attr_class(["
|
|
7460
|
+
_html(`</div><div${_attr_class(["_gM", { ["_g3"]: agent.stale_seconds != null }])}>`);
|
|
7440
7461
|
_for_of(agent.windows || [], (win) => {
|
|
7441
7462
|
const $scope4_id = _scope_id();
|
|
7442
7463
|
const pct = pctText(win.used_percent);
|
|
7443
7464
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7444
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7445
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7446
|
-
_html(`<div${_attr_class("
|
|
7465
|
+
const fillClass = win.used_percent >= 90 ? "_gV" : win.used_percent >= 70 ? "_gU" : win.used_percent >= 40 ? "_gT" : "_gS";
|
|
7466
|
+
const pctClass = win.used_percent >= 90 ? "_g0" : win.used_percent >= 70 ? "_gZ" : win.used_percent >= 40 ? "_gY" : "_gX";
|
|
7467
|
+
_html(`<div${_attr_class("_gO")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_gP")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_gQ")}><span${_attr_class(["_gR", 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(["_gW", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_g1")}>`);
|
|
7447
7468
|
_if(() => {
|
|
7448
7469
|
if (label) {
|
|
7449
7470
|
const $scope6_id = _scope_id();
|
|
@@ -7560,14 +7581,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7560
7581
|
localCode = null;
|
|
7561
7582
|
}
|
|
7562
7583
|
}, "C0", $scope0_id);
|
|
7563
|
-
_html(`<div${_attr_class(["
|
|
7584
|
+
_html(`<div${_attr_class(["_h1", input.class])}>`);
|
|
7564
7585
|
_for_of(input.items, (s) => {
|
|
7565
7586
|
const $scope1_id = _scope_id();
|
|
7566
|
-
_html(`<div${_attr_class("
|
|
7587
|
+
_html(`<div${_attr_class("_h2")}><span${_attr_class("_h4")}><span${_attr_class("_h5")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_h6", "_h7"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7567
7588
|
_if(() => {
|
|
7568
7589
|
if (!busy) {
|
|
7569
7590
|
const $scope2_id = _scope_id();
|
|
7570
|
-
_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, "
|
|
7591
|
+
_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, "_h8"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7571
7592
|
_script($scope2_id, "C1");
|
|
7572
7593
|
writeScope($scope2_id, {});
|
|
7573
7594
|
return 0;
|
|
@@ -7582,13 +7603,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7582
7603
|
_if(() => {
|
|
7583
7604
|
if (localBusy && localCode) {
|
|
7584
7605
|
const $scope4_id = _scope_id();
|
|
7585
|
-
_html(`<div${_attr_class(["
|
|
7606
|
+
_html(`<div${_attr_class(["_h2", "_h9"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_h_")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_ia")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7586
7607
|
_script($scope4_id, "C2");
|
|
7587
7608
|
writeScope($scope4_id, {});
|
|
7588
7609
|
return 0;
|
|
7589
7610
|
} else if (localBusy) {
|
|
7590
7611
|
const $scope6_id = _scope_id();
|
|
7591
|
-
_html(`<div${_attr_class(["
|
|
7612
|
+
_html(`<div${_attr_class(["_h2", "_h9"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7592
7613
|
writeScope($scope6_id, {});
|
|
7593
7614
|
return 1;
|
|
7594
7615
|
}
|
|
@@ -7596,14 +7617,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7596
7617
|
_if(() => {
|
|
7597
7618
|
if (localError) {
|
|
7598
7619
|
const $scope5_id = _scope_id();
|
|
7599
|
-
_html(`<p${_attr_class(["
|
|
7620
|
+
_html(`<p${_attr_class(["_h2", "_ib"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7600
7621
|
writeScope($scope5_id, {});
|
|
7601
7622
|
return 0;
|
|
7602
7623
|
}
|
|
7603
7624
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7604
7625
|
_for_of(skipped, (s) => {
|
|
7605
7626
|
const $scope3_id = _scope_id();
|
|
7606
|
-
_html(`<div${_attr_class(["
|
|
7627
|
+
_html(`<div${_attr_class(["_h2", "_h3"])}><span${_attr_class("_h4")}><span${_attr_class("_h5")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_h6")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_h8"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7607
7628
|
_script($scope3_id, "C3");
|
|
7608
7629
|
writeScope($scope3_id, {
|
|
7609
7630
|
i: s?.org,
|
|
@@ -7671,7 +7692,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7671
7692
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7672
7693
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7673
7694
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7674
|
-
_html(`<li${_attr_class("
|
|
7695
|
+
_html(`<li${_attr_class("_du")}>`);
|
|
7675
7696
|
_if(() => {
|
|
7676
7697
|
if (input.busy != null) {
|
|
7677
7698
|
const $scope1_id = _scope_id();
|
|
@@ -7681,20 +7702,20 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7681
7702
|
} else {
|
|
7682
7703
|
const $scope2_id = _scope_id();
|
|
7683
7704
|
const popId = _id();
|
|
7684
|
-
_html(`<button${_attr_class("
|
|
7705
|
+
_html(`<button${_attr_class("_dv")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7685
7706
|
_if(() => {
|
|
7686
7707
|
if (input.hint) {
|
|
7687
7708
|
const $scope3_id = _scope_id();
|
|
7688
|
-
_html(`<span${_attr_class("
|
|
7709
|
+
_html(`<span${_attr_class("_dx")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7689
7710
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7690
7711
|
return 0;
|
|
7691
7712
|
}
|
|
7692
7713
|
}, $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);
|
|
7693
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7714
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_bF", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7694
7715
|
_if(() => {
|
|
7695
7716
|
if (input.description) {
|
|
7696
7717
|
const $scope4_id = _scope_id();
|
|
7697
|
-
_html(`<span${_attr_class("
|
|
7718
|
+
_html(`<span${_attr_class("_bH")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7698
7719
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7699
7720
|
return 0;
|
|
7700
7721
|
}
|
|
@@ -7702,12 +7723,12 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7702
7723
|
_if(() => {
|
|
7703
7724
|
if (input.sourceUrl) {
|
|
7704
7725
|
const $scope5_id = _scope_id();
|
|
7705
|
-
_html(`<a${_attr_class(["
|
|
7726
|
+
_html(`<a${_attr_class(["_bH", "_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))}`);
|
|
7706
7727
|
$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) })));
|
|
7707
7728
|
return 0;
|
|
7708
7729
|
} else if (input.source) {
|
|
7709
7730
|
const $scope6_id = _scope_id();
|
|
7710
|
-
_html(`<span${_attr_class("
|
|
7731
|
+
_html(`<span${_attr_class("_bH")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7711
7732
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7712
7733
|
_: _scope_with_id($scope2_id),
|
|
7713
7734
|
Cs: $si__input_source && 1
|
|
@@ -7715,7 +7736,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7715
7736
|
return 1;
|
|
7716
7737
|
} else if (input.noteLocal) {
|
|
7717
7738
|
const $scope10_id = _scope_id();
|
|
7718
|
-
_html(`<span${_attr_class(["
|
|
7739
|
+
_html(`<span${_attr_class(["_bH", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7719
7740
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7720
7741
|
return 2;
|
|
7721
7742
|
}
|
|
@@ -7723,7 +7744,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7723
7744
|
_if(() => {
|
|
7724
7745
|
if (input.tags) {
|
|
7725
7746
|
const $scope7_id = _scope_id();
|
|
7726
|
-
_html(`<span${_attr_class("
|
|
7747
|
+
_html(`<span${_attr_class("_bG")}>`);
|
|
7727
7748
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7728
7749
|
_html("</span>");
|
|
7729
7750
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7733,7 +7754,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7733
7754
|
_if(() => {
|
|
7734
7755
|
if (input.actions) {
|
|
7735
7756
|
const $scope8_id = _scope_id();
|
|
7736
|
-
_html(`<div${_attr_class("
|
|
7757
|
+
_html(`<div${_attr_class("_dz")}>`);
|
|
7737
7758
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7738
7759
|
_html("</div>");
|
|
7739
7760
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7793,7 +7814,7 @@ var icon_arrow_up_default = _template("N", (input) => {
|
|
|
7793
7814
|
});
|
|
7794
7815
|
//#endregion
|
|
7795
7816
|
//#region src/tags/prompt-dialog.css.ts
|
|
7796
|
-
var promptDlg = "
|
|
7817
|
+
var promptDlg = "_ic _f0";
|
|
7797
7818
|
//#endregion
|
|
7798
7819
|
//#region src/tags/dialog-close.marko
|
|
7799
7820
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7817,7 +7838,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7817
7838
|
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;
|
|
7818
7839
|
const dismissable = input.dismissable !== false;
|
|
7819
7840
|
let open = input.open;
|
|
7820
|
-
_html(`<dialog${_attr_class(["
|
|
7841
|
+
_html(`<dialog${_attr_class(["_fZ", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7821
7842
|
...htmlInput,
|
|
7822
7843
|
open: null
|
|
7823
7844
|
}, {
|
|
@@ -7827,20 +7848,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7827
7848
|
closedby: 1,
|
|
7828
7849
|
"on-cancel": 1,
|
|
7829
7850
|
"on-close": 1
|
|
7830
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7851
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_f2")}>`);
|
|
7831
7852
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7832
7853
|
_html("</div>");
|
|
7833
7854
|
_if(() => {
|
|
7834
7855
|
if (footer) {
|
|
7835
7856
|
const $scope1_id = _scope_id();
|
|
7836
|
-
_html(`<form method=dialog${_attr_class("
|
|
7857
|
+
_html(`<form method=dialog${_attr_class("_f3")}>`);
|
|
7837
7858
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7838
7859
|
_html("</form>");
|
|
7839
7860
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7840
7861
|
return 0;
|
|
7841
7862
|
} else if (input.openChange) {
|
|
7842
7863
|
const $scope2_id = _scope_id();
|
|
7843
|
-
_html(`<form method=dialog${_attr_class("
|
|
7864
|
+
_html(`<form method=dialog${_attr_class("_f3")}>`);
|
|
7844
7865
|
dialog_close_default({
|
|
7845
7866
|
class: ["_q", "_r"],
|
|
7846
7867
|
content: _content("r0", () => {
|
|
@@ -7924,7 +7945,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
7924
7945
|
content: _content("u7", () => {
|
|
7925
7946
|
_scope_reason();
|
|
7926
7947
|
const $scope2_id = _scope_id();
|
|
7927
|
-
_html(`<h2${_attr_class("
|
|
7948
|
+
_html(`<h2${_attr_class("_f1")}${_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) => {
|
|
7928
7949
|
value = _new_value;
|
|
7929
7950
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
7930
7951
|
_script($scope2_id, "u5");
|
|
@@ -8446,7 +8467,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8446
8467
|
const githubId = _id();
|
|
8447
8468
|
const backupId = _id();
|
|
8448
8469
|
const machineId = _id();
|
|
8449
|
-
_html(`<div${_attr_class("
|
|
8470
|
+
_html(`<div${_attr_class("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><div${_attr_class(content$2)}>`);
|
|
8450
8471
|
_set_serialize_reason({
|
|
8451
8472
|
0: _serialize_guard($scope0_reason, 4),
|
|
8452
8473
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8458,7 +8479,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8458
8479
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x44", () => {
|
|
8459
8480
|
_scope_reason();
|
|
8460
8481
|
const $scope5_id = _scope_id();
|
|
8461
|
-
_html(`<span${_attr_class("
|
|
8482
|
+
_html(`<span${_attr_class("_eW")}>Not ready</span>. Missing ${_text_resume($scope5_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8462
8483
|
_subscribe($setup_missing__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
8463
8484
|
_resume_branch($scope5_id);
|
|
8464
8485
|
}, $scope0_id) });
|
|
@@ -8511,16 +8532,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8511
8532
|
_if(() => {
|
|
8512
8533
|
if (selfUpdatePending || selfUpdating) {
|
|
8513
8534
|
const $scope45_id = _scope_id();
|
|
8514
|
-
_html(`<div${_attr_class("
|
|
8535
|
+
_html(`<div${_attr_class("_fz")} role=status><div${_attr_class("_fA")}>`);
|
|
8515
8536
|
_if(() => {
|
|
8516
8537
|
if (selfUpdating) {
|
|
8517
8538
|
const $scope79_id = _scope_id();
|
|
8518
|
-
_html(`<span${_attr_class("
|
|
8539
|
+
_html(`<span${_attr_class("_fB")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_fC")}>The app restarts and reloads when it is done.</span>`);
|
|
8519
8540
|
writeScope($scope79_id, {});
|
|
8520
8541
|
return 0;
|
|
8521
8542
|
} else {
|
|
8522
8543
|
const $scope46_id = _scope_id();
|
|
8523
|
-
_html(`<span${_attr_class("
|
|
8544
|
+
_html(`<span${_attr_class("_fB")}>Update available</span><span${_attr_class("_fC")}>v${_text_resume($scope46_id, "c", self.version, 2)} → v${_text_resume($scope46_id, "d", self.latest, 2)}</span>`);
|
|
8524
8545
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope46_id, {})));
|
|
8525
8546
|
return 1;
|
|
8526
8547
|
}
|
|
@@ -8539,11 +8560,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8539
8560
|
return 0;
|
|
8540
8561
|
}
|
|
8541
8562
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8542
|
-
_html(`<section${_attr_class("
|
|
8563
|
+
_html(`<section${_attr_class("_by")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bz")}><h2${_attr("id", agentsId)}${_attr_class("_bM")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_eZ")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8543
8564
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8544
8565
|
setPreferred(v);
|
|
8545
8566
|
}, "x2", $scope0_id), () => {
|
|
8546
|
-
_html(`<select${_attr_class(["_p", "
|
|
8567
|
+
_html(`<select${_attr_class(["_p", "_e0"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8547
8568
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8548
8569
|
const $scope80_id = _scope_id();
|
|
8549
8570
|
_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)}`);
|
|
@@ -8557,14 +8578,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8557
8578
|
const rows = lone ? [] : a.instances;
|
|
8558
8579
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8559
8580
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8560
|
-
_html(`<li${_attr_class(["
|
|
8581
|
+
_html(`<li${_attr_class(["_bD", "_eY"])}><div${_attr_class(["_e1", { ["_e4"]: lone && !lone.enabled }])}>`);
|
|
8561
8582
|
_set_serialize_reason(12);
|
|
8562
8583
|
const $childScope3 = _peek_scope_id();
|
|
8563
8584
|
icon_agent_default({
|
|
8564
8585
|
agent: a.id,
|
|
8565
8586
|
size: 18
|
|
8566
8587
|
});
|
|
8567
|
-
_html(`<div${_attr_class("
|
|
8588
|
+
_html(`<div${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8568
8589
|
_if(() => {
|
|
8569
8590
|
if (lone && input$3.preferred === lone.id) {
|
|
8570
8591
|
const $scope81_id = _scope_id();
|
|
@@ -8577,12 +8598,12 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8577
8598
|
_if(() => {
|
|
8578
8599
|
if (active.has(a.id)) {
|
|
8579
8600
|
const $scope13_id = _scope_id();
|
|
8580
|
-
_html(`<span${_attr_class("
|
|
8601
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8581
8602
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8582
8603
|
return 0;
|
|
8583
8604
|
} else if (!a.installed) {
|
|
8584
8605
|
const $scope82_id = _scope_id();
|
|
8585
|
-
_html(`<span${_attr_class("
|
|
8606
|
+
_html(`<span${_attr_class("_bH")}>Not installed</span>`);
|
|
8586
8607
|
writeScope($scope82_id, {});
|
|
8587
8608
|
return 1;
|
|
8588
8609
|
}
|
|
@@ -8610,15 +8631,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8610
8631
|
_if(() => {
|
|
8611
8632
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8612
8633
|
const $scope2_id = _scope_id();
|
|
8613
|
-
_html(`<ul${_attr_class(["
|
|
8634
|
+
_html(`<ul${_attr_class(["_e6", { ["_e4"]: lone && !lone.enabled }])}>`);
|
|
8614
8635
|
_for_of(rows, (inst) => {
|
|
8615
8636
|
const $scope3_id = _scope_id();
|
|
8616
8637
|
const accounts = accountsFor(inst.id);
|
|
8617
|
-
_html(`<li${_attr_class(["
|
|
8638
|
+
_html(`<li${_attr_class(["_e2", { ["_e4"]: !inst.enabled }])}><div${_attr_class("_e3")}>`);
|
|
8618
8639
|
_set_serialize_reason(12);
|
|
8619
8640
|
const $childScope4 = _peek_scope_id();
|
|
8620
8641
|
icon_agent_default({ agent: inst.id });
|
|
8621
|
-
_html(`<span${_attr_class(["
|
|
8642
|
+
_html(`<span${_attr_class(["_e5", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8622
8643
|
_if(() => {
|
|
8623
8644
|
if (input$3.preferred === inst.id) {
|
|
8624
8645
|
const $scope83_id = _scope_id();
|
|
@@ -8689,7 +8710,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8689
8710
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8690
8711
|
_for_of(otherUsage, (u) => {
|
|
8691
8712
|
const $scope87_id = _scope_id();
|
|
8692
|
-
_html(`<li${_attr_class(["
|
|
8713
|
+
_html(`<li${_attr_class(["_bD", "_eY"])}>`);
|
|
8693
8714
|
_set_serialize_reason(6);
|
|
8694
8715
|
const $childScope8 = _peek_scope_id();
|
|
8695
8716
|
usage_meters_default({ agent: u });
|
|
@@ -8700,21 +8721,21 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8700
8721
|
_if(() => {
|
|
8701
8722
|
if (!usage && families.length) {
|
|
8702
8723
|
const $scope88_id = _scope_id();
|
|
8703
|
-
_html(`<p${_attr_class("
|
|
8724
|
+
_html(`<p${_attr_class("_bJ")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8704
8725
|
writeScope($scope88_id, {});
|
|
8705
8726
|
return 0;
|
|
8706
8727
|
} else if (usage?.error) {
|
|
8707
8728
|
const $scope9_id = _scope_id();
|
|
8708
|
-
_html(`<p${_attr_class("
|
|
8729
|
+
_html(`<p${_attr_class("_bJ")}>${_text_resume($scope9_id, "b", usage.error)}</p>`);
|
|
8709
8730
|
writeScope($scope9_id, {});
|
|
8710
8731
|
return 1;
|
|
8711
8732
|
}
|
|
8712
8733
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8713
|
-
_html(`</section><section${_attr_class("
|
|
8734
|
+
_html(`</section><section${_attr_class("_by")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bz")}><h2${_attr("id", githubId)}${_attr_class("_bM")}>GitHub</h2>`);
|
|
8714
8735
|
_if(() => {
|
|
8715
8736
|
if (setup && !addingHost) {
|
|
8716
8737
|
const $scope43_id = _scope_id();
|
|
8717
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8738
|
+
_html(`<button${_attr_class([iconBtnRow, "_fe"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8718
8739
|
icon_plus_default({ size: 16 });
|
|
8719
8740
|
_html(`</button>${_el_resume($scope43_id, "a")}`);
|
|
8720
8741
|
_script($scope43_id, "x51");
|
|
@@ -8726,10 +8747,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8726
8747
|
if (setup) {
|
|
8727
8748
|
const $scope42_id = _scope_id();
|
|
8728
8749
|
_html(`<form${_attr_class([
|
|
8729
|
-
"
|
|
8730
|
-
"
|
|
8731
|
-
{ ["
|
|
8732
|
-
])}><label${_attr_class(["_1", "
|
|
8750
|
+
"_eL",
|
|
8751
|
+
"_fe",
|
|
8752
|
+
{ ["_eM"]: !addingHost }
|
|
8753
|
+
])}><label${_attr_class(["_1", "_eN"])}>`);
|
|
8733
8754
|
icon_github_default({
|
|
8734
8755
|
size: 14,
|
|
8735
8756
|
class: "_2"
|
|
@@ -8739,12 +8760,12 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8739
8760
|
}, "x3", $scope42_id))}${_attr_class([
|
|
8740
8761
|
"_Z",
|
|
8741
8762
|
"_3",
|
|
8742
|
-
"
|
|
8763
|
+
"_eO"
|
|
8743
8764
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope42_id, "d")}</label><button${_attr_class([
|
|
8744
8765
|
btnSm,
|
|
8745
8766
|
"_r",
|
|
8746
|
-
"
|
|
8747
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope42_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
8767
|
+
"_fd"
|
|
8768
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope42_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "_eP"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8748
8769
|
icon_xmark_default({ size: 12 });
|
|
8749
8770
|
_html(`</button>${_el_resume($scope42_id, "g")}</form>${_el_resume($scope42_id, "a")}`);
|
|
8750
8771
|
_script($scope42_id, "x52");
|
|
@@ -8752,19 +8773,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8752
8773
|
return 0;
|
|
8753
8774
|
}
|
|
8754
8775
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8755
|
-
_html(`</div><div${_attr_class(["
|
|
8776
|
+
_html(`</div><div${_attr_class(["_bD", "_d5"])}>`);
|
|
8756
8777
|
_for_of(setup?.github || [], (h) => {
|
|
8757
8778
|
const $scope7_id = _scope_id();
|
|
8758
8779
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
8759
8780
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8760
8781
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8761
8782
|
const busy = active.has(h.host);
|
|
8762
|
-
_html(`<div${_attr_class(["
|
|
8783
|
+
_html(`<div${_attr_class(["_d6", "_ff"])}><div${_attr_class("_fg")}>`);
|
|
8763
8784
|
icon_github_default({
|
|
8764
8785
|
size: 18,
|
|
8765
|
-
class: "
|
|
8786
|
+
class: "_fh"
|
|
8766
8787
|
});
|
|
8767
|
-
_html(`<div${_attr_class("
|
|
8788
|
+
_html(`<div${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
8768
8789
|
_if(() => {
|
|
8769
8790
|
if (h.isEnterprise) {
|
|
8770
8791
|
const $scope91_id = _scope_id();
|
|
@@ -8777,25 +8798,25 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8777
8798
|
_if(() => {
|
|
8778
8799
|
if (busy) {
|
|
8779
8800
|
const $scope14_id = _scope_id();
|
|
8780
|
-
_html(`<span${_attr_class(["
|
|
8801
|
+
_html(`<span${_attr_class(["_bH", "_fi"])}><span${_attr_class("_G")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8781
8802
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Cgv: 1 })));
|
|
8782
8803
|
return 0;
|
|
8783
8804
|
} else if (h.authed) {
|
|
8784
8805
|
const $scope89_id = _scope_id();
|
|
8785
|
-
_html(`<span${_attr_class(["
|
|
8806
|
+
_html(`<span${_attr_class(["_bH", "_fi"])}>`);
|
|
8786
8807
|
icon_check_default({
|
|
8787
8808
|
size: 12,
|
|
8788
|
-
class: "
|
|
8809
|
+
class: "_fj"
|
|
8789
8810
|
});
|
|
8790
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8811
|
+
_html(` Signed in as <strong${_attr_class("_fl")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8791
8812
|
writeScope($scope89_id, {});
|
|
8792
8813
|
return 1;
|
|
8793
8814
|
} else if (h.error) {
|
|
8794
8815
|
const $scope90_id = _scope_id();
|
|
8795
8816
|
_html(`<span${_attr_class([
|
|
8796
|
-
"
|
|
8797
|
-
"
|
|
8798
|
-
"
|
|
8817
|
+
"_bH",
|
|
8818
|
+
"_fi",
|
|
8819
|
+
"_fk"
|
|
8799
8820
|
])}>`);
|
|
8800
8821
|
icon_warning_default({ size: 12 });
|
|
8801
8822
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8803,7 +8824,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8803
8824
|
return 2;
|
|
8804
8825
|
} else {
|
|
8805
8826
|
const $scope92_id = _scope_id();
|
|
8806
|
-
_html(`<span${_attr_class(["
|
|
8827
|
+
_html(`<span${_attr_class(["_bH", "_fi"])}>Not signed in</span>`);
|
|
8807
8828
|
writeScope($scope92_id, {});
|
|
8808
8829
|
return 3;
|
|
8809
8830
|
}
|
|
@@ -8834,7 +8855,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8834
8855
|
if (h.isEnterprise) {
|
|
8835
8856
|
const $scope34_id = _scope_id();
|
|
8836
8857
|
_html(`<button${_attr_class([
|
|
8837
|
-
"
|
|
8858
|
+
"_bI",
|
|
8838
8859
|
"_8",
|
|
8839
8860
|
"_9",
|
|
8840
8861
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8868,7 +8889,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8868
8889
|
_if(() => {
|
|
8869
8890
|
if (busy && authCodes.has(h.host)) {
|
|
8870
8891
|
const $scope31_id = _scope_id();
|
|
8871
|
-
_html(`<div${_attr_class("
|
|
8892
|
+
_html(`<div${_attr_class("_fm")}><span${_attr_class("_fn")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_fp")}>${_text_resume($scope31_id, "d", h.host)}/login/device</a>${_el_resume($scope31_id, "c")}</span><code${_attr_class("_fo")}>${_text_resume($scope31_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8872
8893
|
_subscribe($authCodes__closures, writeScope($scope31_id, { Cgx: 1 }));
|
|
8873
8894
|
return 0;
|
|
8874
8895
|
}
|
|
@@ -8880,7 +8901,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8880
8901
|
_set_serialize_reason(30);
|
|
8881
8902
|
const $childScope9 = _peek_scope_id();
|
|
8882
8903
|
sso_auth_default({
|
|
8883
|
-
class: ["
|
|
8904
|
+
class: ["_d6", "_fq"],
|
|
8884
8905
|
items: hostSso$1,
|
|
8885
8906
|
skipped: skippedSso,
|
|
8886
8907
|
busy,
|
|
@@ -8914,23 +8935,23 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8914
8935
|
_if(() => {
|
|
8915
8936
|
if (setup && !setup.github.length) {
|
|
8916
8937
|
const $scope95_id = _scope_id();
|
|
8917
|
-
_html(`<p${_attr_class("
|
|
8938
|
+
_html(`<p${_attr_class("_bJ")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8918
8939
|
writeScope($scope95_id, {});
|
|
8919
8940
|
return 0;
|
|
8920
8941
|
}
|
|
8921
8942
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8922
|
-
_html(`</section><section${_attr_class("
|
|
8943
|
+
_html(`</section><section${_attr_class("_by")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bz")}><h2${_attr("id", machineId)}${_attr_class("_bM")}>Machine</h2></div><div${_attr_class(["_bD", "_d5"])}><div${_attr_class(["_d6", "_d_"])}><div${_attr_class(["_ea", { ["_eb"]: skillsOpen }])}><button${_attr_class("_ec")} aria-expanded=true>`);
|
|
8923
8944
|
_set_serialize_reason(1);
|
|
8924
8945
|
const $childScope10 = _peek_scope_id();
|
|
8925
8946
|
icon_chevron_right_default({
|
|
8926
8947
|
size: 12,
|
|
8927
|
-
class: ["
|
|
8948
|
+
class: ["_eg", { ["_eh"]: skillsOpen }]
|
|
8928
8949
|
});
|
|
8929
|
-
_html(`<span${_attr_class("
|
|
8950
|
+
_html(`<span${_attr_class("_ed")}>Skills</span>`);
|
|
8930
8951
|
_if(() => {
|
|
8931
8952
|
if (skills?.global.length) {
|
|
8932
8953
|
const $scope52_id = _scope_id();
|
|
8933
|
-
_html(`<span${_attr_class("
|
|
8954
|
+
_html(`<span${_attr_class("_ee")}>${_text_resume($scope52_id, "b", skills.global.length)} installed</span>`);
|
|
8934
8955
|
writeScope($scope52_id, {});
|
|
8935
8956
|
return 0;
|
|
8936
8957
|
}
|
|
@@ -8950,7 +8971,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8950
8971
|
_if(() => {
|
|
8951
8972
|
if (skills?.available && skills.agents.length) {
|
|
8952
8973
|
const $scope15_id = _scope_id();
|
|
8953
|
-
_html(`<div${_attr_class(["
|
|
8974
|
+
_html(`<div${_attr_class(["_eL", { ["_eM"]: true }])}><label${_attr_class(["_1", "_eN"])}>`);
|
|
8954
8975
|
_if(() => {
|
|
8955
8976
|
if (skillSearching) {
|
|
8956
8977
|
const $scope96_id = _scope_id();
|
|
@@ -8970,14 +8991,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8970
8991
|
_html(`<input${_attr_input_value($scope15_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
8971
8992
|
"_Z",
|
|
8972
8993
|
"_3",
|
|
8973
|
-
"
|
|
8974
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
8994
|
+
"_eO"
|
|
8995
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "_eP"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
8975
8996
|
icon_xmark_default({ size: 12 });
|
|
8976
|
-
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "
|
|
8997
|
+
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "_eR"])}${_attr("hidden", true)}>`);
|
|
8977
8998
|
_if(() => {
|
|
8978
8999
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
8979
9000
|
const $scope98_id = _scope_id();
|
|
8980
|
-
_html(`<li${_attr_class("
|
|
9001
|
+
_html(`<li${_attr_class("_eS")}>Searching skills.sh…</li>`);
|
|
8981
9002
|
writeScope($scope98_id, {});
|
|
8982
9003
|
return 0;
|
|
8983
9004
|
}
|
|
@@ -8985,11 +9006,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8985
9006
|
_if(() => {
|
|
8986
9007
|
if (looksLikeSource(skillQuery)) {
|
|
8987
9008
|
const $scope16_id = _scope_id();
|
|
8988
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9009
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_attr_class(["_e_", "_y"])}>${_text_resume($scope16_id, "d", skillQuery.trim())}</span>`);
|
|
8989
9010
|
_if(() => {
|
|
8990
9011
|
if (active.has(skillQuery.trim())) {
|
|
8991
9012
|
const $scope17_id = _scope_id();
|
|
8992
|
-
_html(`<span${_attr_class("
|
|
9013
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>${_text_resume($scope17_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
8993
9014
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope17_id, {
|
|
8994
9015
|
Cgv: 3,
|
|
8995
9016
|
Chk: 1
|
|
@@ -8997,7 +9018,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8997
9018
|
return 0;
|
|
8998
9019
|
} else {
|
|
8999
9020
|
const $scope99_id = _scope_id();
|
|
9000
|
-
_html(`<span${_attr_class("
|
|
9021
|
+
_html(`<span${_attr_class("_bH")}>Add straight from this source</span>`);
|
|
9001
9022
|
writeScope($scope99_id, {});
|
|
9002
9023
|
return 1;
|
|
9003
9024
|
}
|
|
@@ -9020,16 +9041,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9020
9041
|
_for_of(skillHits || [], (h) => {
|
|
9021
9042
|
const $scope18_id = _scope_id();
|
|
9022
9043
|
const $for_content5__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9023
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9044
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_attr_class(["_e_", "_y"])}>${_text_resume($scope18_id, "d", h.name)}</span>`);
|
|
9024
9045
|
_if(() => {
|
|
9025
9046
|
if (active.has(h.skillId)) {
|
|
9026
9047
|
const $scope19_id = _scope_id();
|
|
9027
|
-
_html(`<span${_attr_class("
|
|
9048
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>${_text_resume($scope19_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9028
9049
|
_subscribe($active__closures, writeScope($scope19_id, { Cgv: 5 }));
|
|
9029
9050
|
return 0;
|
|
9030
9051
|
} else {
|
|
9031
9052
|
const $scope100_id = _scope_id();
|
|
9032
|
-
_html(`<span${_attr_class("
|
|
9053
|
+
_html(`<span${_attr_class("_bH")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9033
9054
|
writeScope($scope100_id, {});
|
|
9034
9055
|
return 1;
|
|
9035
9056
|
}
|
|
@@ -9077,7 +9098,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9077
9098
|
_if(() => {
|
|
9078
9099
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9079
9100
|
const $scope54_id = _scope_id();
|
|
9080
|
-
_html(`<li${_attr_class("
|
|
9101
|
+
_html(`<li${_attr_class("_eS")}>No skills match "${_text_resume($scope54_id, "b", skillQuery, 2)}".</li>`);
|
|
9081
9102
|
_subscribe($skillQuery__closures, writeScope($scope54_id, { Chk: 2 }));
|
|
9082
9103
|
return 0;
|
|
9083
9104
|
}
|
|
@@ -9092,22 +9113,22 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9092
9113
|
_if(() => {
|
|
9093
9114
|
{
|
|
9094
9115
|
const $scope20_id = _scope_id();
|
|
9095
|
-
_html(`<div${_attr_class("
|
|
9116
|
+
_html(`<div${_attr_class("_ef")}>`);
|
|
9096
9117
|
_if(() => {
|
|
9097
9118
|
if (skills && !skills.agents.length) {
|
|
9098
9119
|
const $scope103_id = _scope_id();
|
|
9099
|
-
_html(`<p${_attr_class("
|
|
9120
|
+
_html(`<p${_attr_class("_bJ")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9100
9121
|
writeScope($scope103_id, {});
|
|
9101
9122
|
return 0;
|
|
9102
9123
|
} else if (skills && !skills.available) {
|
|
9103
9124
|
const $scope21_id = _scope_id();
|
|
9104
|
-
_html(`<p${_attr_class("
|
|
9125
|
+
_html(`<p${_attr_class("_bJ")}>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($scope21_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope21_id, "b")}</p>`);
|
|
9105
9126
|
_script($scope21_id, "x60");
|
|
9106
9127
|
_subscribe($active__closures, writeScope($scope21_id, { Cgv: 6 }));
|
|
9107
9128
|
return 1;
|
|
9108
9129
|
}
|
|
9109
9130
|
}, $scope20_id, "b", 1, 1, 1, 0, 1);
|
|
9110
|
-
_html(`<ul${_attr_class("
|
|
9131
|
+
_html(`<ul${_attr_class("_dt")}>`);
|
|
9111
9132
|
_for_of(skills?.global || [], (s) => {
|
|
9112
9133
|
const $scope22_id = _scope_id();
|
|
9113
9134
|
const $for_content6__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9183,7 +9204,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9183
9204
|
_if(() => {
|
|
9184
9205
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9185
9206
|
const $scope108_id = _scope_id();
|
|
9186
|
-
_html(`<p${_attr_class("
|
|
9207
|
+
_html(`<p${_attr_class("_bJ")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9187
9208
|
writeScope($scope108_id, {});
|
|
9188
9209
|
return 0;
|
|
9189
9210
|
}
|
|
@@ -9193,14 +9214,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9193
9214
|
return 0;
|
|
9194
9215
|
}
|
|
9195
9216
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9196
|
-
_html(`</div><div${_attr_class(["
|
|
9217
|
+
_html(`</div><div${_attr_class(["_d6", "_d_"])}><div${_attr_class(["_ea", { ["_eb"]: machineOpen }])}><button${_attr_class("_ec")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9197
9218
|
_set_serialize_reason(1);
|
|
9198
9219
|
const $childScope12 = _peek_scope_id();
|
|
9199
9220
|
icon_chevron_right_default({
|
|
9200
9221
|
size: 12,
|
|
9201
|
-
class: ["
|
|
9222
|
+
class: ["_eg", { ["_eh"]: machineOpen }]
|
|
9202
9223
|
});
|
|
9203
|
-
_html(`<span${_attr_class("
|
|
9224
|
+
_html(`<span${_attr_class("_ed")}>Tools</span><span${_attr_class("_ee")}>${_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")}`);
|
|
9204
9225
|
_if(() => {
|
|
9205
9226
|
if (outdatedIds.length > 1) {
|
|
9206
9227
|
const $scope23_id = _scope_id();
|
|
@@ -9233,7 +9254,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9233
9254
|
_if(() => {
|
|
9234
9255
|
if (setup && setup.mise.installed) {
|
|
9235
9256
|
const $scope25_id = _scope_id();
|
|
9236
|
-
_html(`<div${_attr_class(["
|
|
9257
|
+
_html(`<div${_attr_class(["_eL", { ["_eM"]: true }])}><label${_attr_class(["_1", "_eN"])}>`);
|
|
9237
9258
|
_if(() => {
|
|
9238
9259
|
if (searching) {
|
|
9239
9260
|
const $scope109_id = _scope_id();
|
|
@@ -9253,14 +9274,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9253
9274
|
_html(`<input${_attr_input_value($scope25_id, "d", query, search)}${_attr_class([
|
|
9254
9275
|
"_Z",
|
|
9255
9276
|
"_3",
|
|
9256
|
-
"
|
|
9257
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9277
|
+
"_eO"
|
|
9278
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "_eP"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9258
9279
|
icon_xmark_default({ size: 12 });
|
|
9259
|
-
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "
|
|
9280
|
+
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "_eR"])}${_attr("hidden", true)}>`);
|
|
9260
9281
|
_if(() => {
|
|
9261
9282
|
if (searching && !hits?.length) {
|
|
9262
9283
|
const $scope111_id = _scope_id();
|
|
9263
|
-
_html(`<li${_attr_class("
|
|
9284
|
+
_html(`<li${_attr_class("_eS")}>Searching the mise registry…</li>`);
|
|
9264
9285
|
writeScope($scope111_id, {});
|
|
9265
9286
|
return 0;
|
|
9266
9287
|
}
|
|
@@ -9268,23 +9289,23 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9268
9289
|
_if(() => {
|
|
9269
9290
|
if (hits && !hits.length && !searching) {
|
|
9270
9291
|
const $scope44_id = _scope_id();
|
|
9271
|
-
_html(`<li${_attr_class("
|
|
9292
|
+
_html(`<li${_attr_class("_eS")}>No tools match "${_text_resume($scope44_id, "b", query, 2)}".</li>`);
|
|
9272
9293
|
_subscribe($query__closures, writeScope($scope44_id, {}));
|
|
9273
9294
|
return 0;
|
|
9274
9295
|
}
|
|
9275
9296
|
}, $scope25_id, "i", 1, 1, 1, 0, 1);
|
|
9276
9297
|
_for_of(hits || [], (h) => {
|
|
9277
9298
|
const $scope26_id = _scope_id();
|
|
9278
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9299
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_attr_class(["_e_", "_y"])}>${_text_resume($scope26_id, "d", h.name)}</span>`);
|
|
9279
9300
|
_if(() => {
|
|
9280
9301
|
if (active.has(h.name)) {
|
|
9281
9302
|
const $scope27_id = _scope_id();
|
|
9282
|
-
_html(`<span${_attr_class("
|
|
9303
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>${_text_resume($scope27_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9283
9304
|
_subscribe($active__closures, writeScope($scope27_id, { Cgv: 9 }));
|
|
9284
9305
|
return 0;
|
|
9285
9306
|
} else if (h.description) {
|
|
9286
9307
|
const $scope112_id = _scope_id();
|
|
9287
|
-
_html(`<span${_attr_class("
|
|
9308
|
+
_html(`<span${_attr_class("_bH")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9288
9309
|
writeScope($scope112_id, {});
|
|
9289
9310
|
return 1;
|
|
9290
9311
|
}
|
|
@@ -9329,11 +9350,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9329
9350
|
_if(() => {
|
|
9330
9351
|
if (machineOpen) {
|
|
9331
9352
|
const $scope6_id = _scope_id();
|
|
9332
|
-
_html(`<div${_attr_class("
|
|
9353
|
+
_html(`<div${_attr_class("_ef")}>`);
|
|
9333
9354
|
_if(() => {
|
|
9334
9355
|
if (setup && !setup.mise.installed) {
|
|
9335
9356
|
const $scope28_id = _scope_id();
|
|
9336
|
-
_html(`<p${_attr_class("
|
|
9357
|
+
_html(`<p${_attr_class("_bJ")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope28_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope28_id, "b")}</p>`);
|
|
9337
9358
|
_script($scope28_id, "x71");
|
|
9338
9359
|
_subscribe($active__closures, writeScope($scope28_id, { Cgv: 10 }));
|
|
9339
9360
|
return 0;
|
|
@@ -9343,11 +9364,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9343
9364
|
_if(() => {
|
|
9344
9365
|
if (self) {
|
|
9345
9366
|
const $scope48_id = _scope_id();
|
|
9346
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9367
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_e_", "_y"])}>work</span>`);
|
|
9347
9368
|
_if(() => {
|
|
9348
9369
|
if (selfUpdating) {
|
|
9349
9370
|
const $scope114_id = _scope_id();
|
|
9350
|
-
_html(`<span${_attr_class("
|
|
9371
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9351
9372
|
writeScope($scope114_id, {});
|
|
9352
9373
|
return 0;
|
|
9353
9374
|
} else {
|
|
@@ -9361,7 +9382,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9361
9382
|
return 0;
|
|
9362
9383
|
} else if (self.latest && self.latest !== self.version) {
|
|
9363
9384
|
const $scope50_id = _scope_id();
|
|
9364
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9385
|
+
_html(`<button${_attr_class([btnSm, "_fc"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9365
9386
|
icon_arrow_up_default({ size: 12 });
|
|
9366
9387
|
_html(` ${_text_resume($scope50_id, "c", self.latest, 2)}</button>${_el_resume($scope50_id, "a")}`);
|
|
9367
9388
|
_script($scope50_id, "x72");
|
|
@@ -9405,11 +9426,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9405
9426
|
const $for_content8__t_label__closures = /* @__PURE__ */ new Set();
|
|
9406
9427
|
const $for_content8__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9407
9428
|
const $for_content8__t_id__closures = /* @__PURE__ */ new Set();
|
|
9408
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9429
|
+
_html(`<li${_attr_class([toolRow, { ["_e9"]: !t.installed }])}><span${_attr_class(["_e_", "_y"])}>${_text_resume($scope29_id, "c", t.label)}</span>`);
|
|
9409
9430
|
_if(() => {
|
|
9410
9431
|
if (active.has(t.id)) {
|
|
9411
9432
|
const $scope30_id = _scope_id();
|
|
9412
|
-
_html(`<span${_attr_class("
|
|
9433
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>${_text_resume($scope30_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9413
9434
|
_subscribe($active__closures, writeScope($scope30_id, { Cgv: 12 }));
|
|
9414
9435
|
return 0;
|
|
9415
9436
|
} else if (t.installed) {
|
|
@@ -9417,11 +9438,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9417
9438
|
_if(() => {
|
|
9418
9439
|
if (t.version) {
|
|
9419
9440
|
const $scope41_id = _scope_id();
|
|
9420
|
-
_html(`<button${_attr_class(["
|
|
9441
|
+
_html(`<button${_attr_class(["_fb", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope41_id, "b", t.version, 2)}`);
|
|
9421
9442
|
_if(() => {
|
|
9422
9443
|
if (aliasPin(t)) {
|
|
9423
9444
|
const $scope118_id = _scope_id();
|
|
9424
|
-
_html(`<span${_attr_class("
|
|
9445
|
+
_html(`<span${_attr_class("_fa")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9425
9446
|
_subscribe($for_content8__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9426
9447
|
return 0;
|
|
9427
9448
|
}
|
|
@@ -9440,7 +9461,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9440
9461
|
_if(() => {
|
|
9441
9462
|
if (outdated(t)) {
|
|
9442
9463
|
const $scope60_id = _scope_id();
|
|
9443
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9464
|
+
_html(`<button${_attr_class([btnSm, "_fc"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9444
9465
|
icon_arrow_up_default({ size: 12 });
|
|
9445
9466
|
_html(` ${_text_resume($scope60_id, "c", t.latest, 2)}</button>${_el_resume($scope60_id, "a")}`);
|
|
9446
9467
|
_script($scope60_id, "x74");
|
|
@@ -9448,7 +9469,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9448
9469
|
return 0;
|
|
9449
9470
|
} else if (t.newest) {
|
|
9450
9471
|
const $scope61_id = _scope_id();
|
|
9451
|
-
_html(`<button${_attr_class(["
|
|
9472
|
+
_html(`<button${_attr_class(["_fb", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope61_id, "b", t.newest)} available</button>${_el_resume($scope61_id, "a")}`);
|
|
9452
9473
|
_script($scope61_id, "x75");
|
|
9453
9474
|
_subscribe($for_content8__t_newest__closures, _subscribe($for_content8__t_pin__closures, _subscribe($for_content8__t_version__closures, _subscribe($for_content8__t_label__closures, writeScope($scope61_id, {
|
|
9454
9475
|
Cw: 1,
|
|
@@ -9563,9 +9584,9 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9563
9584
|
label: "Dark"
|
|
9564
9585
|
}
|
|
9565
9586
|
];
|
|
9566
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9587
|
+
_html(`</div></div></section><section${_attr_class("_by")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bz")}><h2${_attr("id", appearanceId)}${_attr_class("_bM")}>Appearance</h2></div><div${_attr_class(["_bD", "_fr"])}><label${_attr_class("_fs")}><span${_attr_class("_ft")}>Name</span><input${_attr_input_value($scope0_id, "aw", input$3.instance.name, _resume(function(v) {
|
|
9567
9588
|
setInstance({ name: v });
|
|
9568
|
-
}, "x4", $scope0_id))}${_attr_class(["_Z", "
|
|
9589
|
+
}, "x4", $scope0_id))}${_attr_class(["_Z", "_fu"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "aw")}</label><div${_attr_class("_fs")}><span${_attr_class("_ft")}>Theme</span><span${_attr_class("_fw")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9569
9590
|
_for_of(themeOpts, (opt) => {
|
|
9570
9591
|
const $scope51_id = _scope_id();
|
|
9571
9592
|
_html(`<button type=button${_attr_class(["_bg", { ["_bf"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope51_id, "a")}`);
|
|
@@ -9575,25 +9596,25 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9575
9596
|
_: _scope_with_id($scope0_id)
|
|
9576
9597
|
});
|
|
9577
9598
|
}, "id", $scope0_id, "b0", 1, 0, 1, 0, 1);
|
|
9578
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9599
|
+
_html(`</span><span${_attr_class(["_o", "_fx"])}>`);
|
|
9579
9600
|
_attr_select_value($scope0_id, "b2", themeMode, _resume(function(v) {
|
|
9580
9601
|
setThemeMode(v);
|
|
9581
9602
|
}, "x5", $scope0_id), () => {
|
|
9582
|
-
_html(`<select${_attr_class(["_p", "
|
|
9603
|
+
_html(`<select${_attr_class(["_p", "_fy"])} aria-label="Color theme">`);
|
|
9583
9604
|
forOf(themeOpts, (opt) => {
|
|
9584
9605
|
_scope_id();
|
|
9585
9606
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9586
9607
|
});
|
|
9587
9608
|
_html("</select>");
|
|
9588
9609
|
});
|
|
9589
|
-
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("
|
|
9590
|
-
"
|
|
9591
|
-
"
|
|
9592
|
-
{ ["
|
|
9610
|
+
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("_fs")}><span${_attr_class("_ft")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9611
|
+
"_fE",
|
|
9612
|
+
"_fG",
|
|
9613
|
+
{ ["_fF"]: !input$3.instance.accent }
|
|
9593
9614
|
])} role=radio aria-checked=${!input$3.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "b6")}`);
|
|
9594
9615
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9595
9616
|
const $scope4_id = _scope_id();
|
|
9596
|
-
_html(`<button type=button${_attr_class(["
|
|
9617
|
+
_html(`<button type=button${_attr_class(["_fE", { ["_fF"]: input$3.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input$3.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
9597
9618
|
_script($scope4_id, "x79");
|
|
9598
9619
|
writeScope($scope4_id, {
|
|
9599
9620
|
d: p?.value,
|
|
@@ -9602,21 +9623,21 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9602
9623
|
}, "value", $scope0_id, "b7", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9603
9624
|
const customOn = !!input$3.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input$3.instance.accent);
|
|
9604
9625
|
_html(`<label${_attr_class([
|
|
9605
|
-
"
|
|
9606
|
-
"
|
|
9607
|
-
{ ["
|
|
9626
|
+
"_fE",
|
|
9627
|
+
"_fH",
|
|
9628
|
+
{ ["_fF"]: customOn }
|
|
9608
9629
|
])}${customOn ? _attr_style(`--swatch:${input$3.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b9", input$3.instance.accent || "#3556d8", _resume(function(v) {
|
|
9609
9630
|
setInstance({ accent: v });
|
|
9610
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
9631
|
+
}, "x6", $scope0_id))}${_attr_class("_fI")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b9")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b8", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_by")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bz")}><h2${_attr("id", backupId)}${_attr_class("_bM")}>Backup</h2></div><div${_attr_class(["_bD", "_d5"])}><div${_attr_class("_d6")}><div${_attr_class("_fJ")}><div${_attr_class("_bE")}>`);
|
|
9611
9632
|
_if(() => {
|
|
9612
9633
|
if (backupBusy === "preflight") {
|
|
9613
9634
|
const $scope66_id = _scope_id();
|
|
9614
|
-
_html(`<span${_attr_class("
|
|
9635
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9615
9636
|
writeScope($scope66_id, {});
|
|
9616
9637
|
return 0;
|
|
9617
9638
|
} else {
|
|
9618
9639
|
const $scope126_id = _scope_id();
|
|
9619
|
-
_html(`<span${_attr_class("
|
|
9640
|
+
_html(`<span${_attr_class("_bH")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9620
9641
|
writeScope($scope126_id, {});
|
|
9621
9642
|
return 1;
|
|
9622
9643
|
}
|
|
@@ -9634,7 +9655,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9634
9655
|
_if(() => {
|
|
9635
9656
|
if (preflight && !backupBusy) {
|
|
9636
9657
|
const $scope68_id = _scope_id();
|
|
9637
|
-
_html(`<div${_attr_class("
|
|
9658
|
+
_html(`<div${_attr_class("_fL")}><p${_attr_class("_fM")}>In the file: ${_text_resume($scope68_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope68_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope68_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope68_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope68_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope68_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope68_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_fM")}>Not in the file: `);
|
|
9638
9659
|
_if(() => {
|
|
9639
9660
|
if (preflight.unpushed) {
|
|
9640
9661
|
const $scope69_id = _scope_id();
|
|
@@ -9651,15 +9672,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9651
9672
|
return 0;
|
|
9652
9673
|
}
|
|
9653
9674
|
}, $scope68_id, "m");
|
|
9654
|
-
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
9675
|
+
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_fN")}>`);
|
|
9655
9676
|
_for_of(preflight.workspaces, (w) => {
|
|
9656
9677
|
const $scope128_id = _scope_id();
|
|
9657
9678
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9658
|
-
_html(`<li${_attr_class("
|
|
9679
|
+
_html(`<li${_attr_class("_fO")}><span${_attr_class("_bF")}>${_text_resume($scope128_id, "c", w.name)}</span><ul${_attr_class("_fN")}>`);
|
|
9659
9680
|
_for_of(w.repos, (r) => {
|
|
9660
9681
|
const $scope129_id = _scope_id();
|
|
9661
9682
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9662
|
-
_html(`<li${_attr_class("
|
|
9683
|
+
_html(`<li${_attr_class("_fP")}><span${_attr_class("_fQ")}><span${_attr_class("_y")}>${_text_resume($scope129_id, "d", r.worktree)}/</span>`);
|
|
9663
9684
|
_for_of(r.unpushed, (b) => {
|
|
9664
9685
|
const $scope130_id = _scope_id();
|
|
9665
9686
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope130_id, "b", b.count)} unpushed `);
|
|
@@ -9678,10 +9699,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9678
9699
|
_if(() => {
|
|
9679
9700
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9680
9701
|
const $scope131_id = _scope_id();
|
|
9681
|
-
_html(`<ul${_attr_class("
|
|
9702
|
+
_html(`<ul${_attr_class("_fR")}>`);
|
|
9682
9703
|
_for_of(r.modified, (f) => {
|
|
9683
9704
|
const $scope134_id = _scope_id();
|
|
9684
|
-
_html(`<li${_attr_class("
|
|
9705
|
+
_html(`<li${_attr_class("_fS")}><span${_attr_class([
|
|
9685
9706
|
"_N",
|
|
9686
9707
|
"_P",
|
|
9687
9708
|
tone.warn
|
|
@@ -9690,18 +9711,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9690
9711
|
}, (f) => f, $scope131_id, "b", 1, 1, 1, 0, 1);
|
|
9691
9712
|
_for_of(r.untracked, (f) => {
|
|
9692
9713
|
const $scope135_id = _scope_id();
|
|
9693
|
-
_html(`<li${_attr_class("
|
|
9714
|
+
_html(`<li${_attr_class("_fS")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope135_id, "d", f)}</span></li>`);
|
|
9694
9715
|
writeScope($scope135_id, {});
|
|
9695
9716
|
}, (f) => f, $scope131_id, "c", 1, 1, 1, 0, 1);
|
|
9696
9717
|
_for_of(r.ignored, (f) => {
|
|
9697
9718
|
const $scope136_id = _scope_id();
|
|
9698
|
-
_html(`<li${_attr_class("
|
|
9719
|
+
_html(`<li${_attr_class("_fS")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope136_id, "d", f)}</span></li>`);
|
|
9699
9720
|
writeScope($scope136_id, {});
|
|
9700
9721
|
}, (f) => f, $scope131_id, "d", 1, 1, 1, 0, 1);
|
|
9701
9722
|
_if(() => {
|
|
9702
9723
|
if (r.more) {
|
|
9703
9724
|
const $scope132_id = _scope_id();
|
|
9704
|
-
_html(`<li${_attr_class(["
|
|
9725
|
+
_html(`<li${_attr_class(["_fS", "_x"])}>+${_text_resume($scope132_id, "b", r.more, 2)} more</li>`);
|
|
9705
9726
|
_subscribe($for_content19__r_more__closures, writeScope($scope132_id, {}));
|
|
9706
9727
|
return 0;
|
|
9707
9728
|
}
|
|
@@ -9726,27 +9747,27 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9726
9747
|
i: $for_content18__w_name__closures
|
|
9727
9748
|
});
|
|
9728
9749
|
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9729
|
-
_html(`<div${_attr_class("
|
|
9750
|
+
_html(`<div${_attr_class("_fT")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope68_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope68_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope68_id, "s")}</div></div>`);
|
|
9730
9751
|
_script($scope68_id, "x81");
|
|
9731
9752
|
writeScope($scope68_id, {});
|
|
9732
9753
|
return 0;
|
|
9733
9754
|
}
|
|
9734
9755
|
}, $scope0_id, "bi", 1, 1, 1, 0, 1);
|
|
9735
|
-
_html(`</div><div${_attr_class("
|
|
9756
|
+
_html(`</div><div${_attr_class("_d6")}><div${_attr_class("_fJ")}><div${_attr_class("_bE")}>`);
|
|
9736
9757
|
_if(() => {
|
|
9737
9758
|
if (backupBusy === "restore") {
|
|
9738
9759
|
const $scope67_id = _scope_id();
|
|
9739
|
-
_html(`<span${_attr_class("
|
|
9760
|
+
_html(`<span${_attr_class("_eV")}><span${_attr_class("_G")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9740
9761
|
writeScope($scope67_id, {});
|
|
9741
9762
|
return 0;
|
|
9742
9763
|
} else if (restoreDone) {
|
|
9743
9764
|
const $scope75_id = _scope_id();
|
|
9744
|
-
_html(`<span${_attr_class("
|
|
9765
|
+
_html(`<span${_attr_class("_bH")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
9745
9766
|
writeScope($scope75_id, {});
|
|
9746
9767
|
return 1;
|
|
9747
9768
|
} else {
|
|
9748
9769
|
const $scope137_id = _scope_id();
|
|
9749
|
-
_html(`<span${_attr_class("
|
|
9770
|
+
_html(`<span${_attr_class("_bH")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9750
9771
|
writeScope($scope137_id, {});
|
|
9751
9772
|
return 2;
|
|
9752
9773
|
}
|
|
@@ -9754,7 +9775,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9754
9775
|
_if(() => {
|
|
9755
9776
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9756
9777
|
const $scope77_id = _scope_id();
|
|
9757
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9778
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_fK")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
9758
9779
|
_script($scope77_id, "x82");
|
|
9759
9780
|
writeScope($scope77_id, {});
|
|
9760
9781
|
return 0;
|
|
@@ -9765,14 +9786,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9765
9786
|
if (restorePreview && backupBusy !== "restore") {
|
|
9766
9787
|
const $scope70_id = _scope_id();
|
|
9767
9788
|
const { preview } = restorePreview;
|
|
9768
|
-
_html(`<div${_attr_class("
|
|
9789
|
+
_html(`<div${_attr_class("_fL")}><p${_attr_class("_fM")}>From ${_text_resume($scope70_id, "c", preview.from.host, 2)} on ${_text_resume($scope70_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope70_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
9769
9790
|
_if(() => {
|
|
9770
9791
|
if (preview.workspaces.length) {
|
|
9771
9792
|
const $scope71_id = _scope_id();
|
|
9772
9793
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9773
9794
|
_for_of(preview.workspaces, (w) => {
|
|
9774
9795
|
const $scope72_id = _scope_id();
|
|
9775
|
-
_html(`<li><label${_attr_class(["
|
|
9796
|
+
_html(`<li><label${_attr_class(["_fV", { ["_fX"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_fW")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
|
|
9776
9797
|
_if(() => {
|
|
9777
9798
|
if (w.status === "archived") {
|
|
9778
9799
|
const $scope141_id = _scope_id();
|
|
@@ -9794,7 +9815,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9794
9815
|
return 1;
|
|
9795
9816
|
}
|
|
9796
9817
|
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
9797
|
-
_html(`</span><span${_attr_class("
|
|
9818
|
+
_html(`</span><span${_attr_class("_bH")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
9798
9819
|
_script($scope72_id, "x83");
|
|
9799
9820
|
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
9800
9821
|
n: w?.unknownHost,
|
|
@@ -9805,7 +9826,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9805
9826
|
return 0;
|
|
9806
9827
|
} else {
|
|
9807
9828
|
const $scope139_id = _scope_id();
|
|
9808
|
-
_html(`<p${_attr_class("
|
|
9829
|
+
_html(`<p${_attr_class("_bJ")}>No workspaces in this file.</p>`);
|
|
9809
9830
|
writeScope($scope139_id, {});
|
|
9810
9831
|
return 1;
|
|
9811
9832
|
}
|
|
@@ -9845,7 +9866,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9845
9866
|
_if(() => {
|
|
9846
9867
|
if (p.total) {
|
|
9847
9868
|
const $scope74_id = _scope_id();
|
|
9848
|
-
_html(`<li><label${_attr_class(["
|
|
9869
|
+
_html(`<li><label${_attr_class(["_fV", { ["_fX"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_fW")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_bE")}><span${_attr_class("_bF")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_bH")}>`);
|
|
9849
9870
|
_if(() => {
|
|
9850
9871
|
if (p.key === "settings") {
|
|
9851
9872
|
const $scope138_id = _scope_id();
|
|
@@ -9892,7 +9913,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9892
9913
|
i: $for_content11__p_total__closures
|
|
9893
9914
|
});
|
|
9894
9915
|
}, "key", $scope70_id, "h");
|
|
9895
|
-
_html(`</ul><div${_attr_class("
|
|
9916
|
+
_html(`</ul><div${_attr_class("_fT")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope70_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope70_id, "k")}</div></div>`);
|
|
9896
9917
|
_script($scope70_id, "x85");
|
|
9897
9918
|
writeScope($scope70_id, {});
|
|
9898
9919
|
return 0;
|
|
@@ -10121,9 +10142,9 @@ function vapidKey(base64) {
|
|
|
10121
10142
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10122
10143
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10123
10144
|
}
|
|
10124
|
-
var iconBtn = "
|
|
10125
|
-
var settingsDot = "
|
|
10126
|
-
var navToggle = "
|
|
10145
|
+
var iconBtn = "_bW _l";
|
|
10146
|
+
var settingsDot = "_bX _bc";
|
|
10147
|
+
var navToggle = "_b1 _l";
|
|
10127
10148
|
_template("Q", (input) => {
|
|
10128
10149
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10129
10150
|
const $scope0_id = _scope_id();
|
|
@@ -10166,16 +10187,16 @@ var ARM_MS = 3500;
|
|
|
10166
10187
|
function disarmLater(fn) {
|
|
10167
10188
|
return setTimeout(fn, ARM_MS);
|
|
10168
10189
|
}
|
|
10169
|
-
var railBtn = "
|
|
10170
|
-
var wsBtn = "
|
|
10171
|
-
var rowIcon = "
|
|
10172
|
-
var close = "
|
|
10173
|
-
var sessRename$1 = "
|
|
10174
|
-
var sessBtn$1 = "
|
|
10190
|
+
var railBtn = "_c0 _l";
|
|
10191
|
+
var wsBtn = "_c5 _I";
|
|
10192
|
+
var rowIcon = "_c8 _4 _l";
|
|
10193
|
+
var close = "_c9 _7 _l _8";
|
|
10194
|
+
var sessRename$1 = "_dk _J";
|
|
10195
|
+
var sessBtn$1 = "_dm _I";
|
|
10175
10196
|
//#endregion
|
|
10176
10197
|
//#region src/styles/session-pop.css.ts
|
|
10177
|
-
var sessionPop = "
|
|
10178
|
-
var sessionPopBtn = "
|
|
10198
|
+
var sessionPop = "_cQ __";
|
|
10199
|
+
var sessionPopBtn = "_cR _I";
|
|
10179
10200
|
//#endregion
|
|
10180
10201
|
//#region src/client/status.ts
|
|
10181
10202
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -10242,22 +10263,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
10242
10263
|
if (windows.length) {
|
|
10243
10264
|
const $scope1_id = _scope_id();
|
|
10244
10265
|
_html(`<span${_attr_class([
|
|
10245
|
-
"
|
|
10266
|
+
"_gB",
|
|
10246
10267
|
input.class,
|
|
10247
|
-
{ ["
|
|
10268
|
+
{ ["_gC"]: agent.stale_seconds != null }
|
|
10248
10269
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10249
10270
|
_for_of(windows, (win$1, i) => {
|
|
10250
10271
|
const $scope2_id = _scope_id();
|
|
10251
|
-
_html(`<span${_attr_class("
|
|
10272
|
+
_html(`<span${_attr_class("_gD")}>`);
|
|
10252
10273
|
_if(() => {
|
|
10253
10274
|
if (i) {
|
|
10254
10275
|
const $scope3_id = _scope_id();
|
|
10255
|
-
_html(`<span${_attr_class("
|
|
10276
|
+
_html(`<span${_attr_class("_gG")} aria-hidden=true>·</span>`);
|
|
10256
10277
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10257
10278
|
return 0;
|
|
10258
10279
|
}
|
|
10259
10280
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10260
|
-
_html(`<span${_attr_class("
|
|
10281
|
+
_html(`<span${_attr_class("_gE")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_gF", win$1.used_percent >= 90 ? "_g0" : win$1.used_percent >= 70 ? "_gZ" : win$1.used_percent >= 40 ? "_gY" : "_gX"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10261
10282
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10262
10283
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10263
10284
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10288,12 +10309,12 @@ var icon_edit_default = _template("$", (input) => {
|
|
|
10288
10309
|
});
|
|
10289
10310
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
10290
10311
|
});
|
|
10291
|
-
var prChip = "
|
|
10292
|
-
var portChip = "
|
|
10312
|
+
var prChip = "_hD _u _hC";
|
|
10313
|
+
var portChip = "_hE _u _hC";
|
|
10293
10314
|
var prState = {
|
|
10294
|
-
open: "
|
|
10295
|
-
merged: "
|
|
10296
|
-
closed: "
|
|
10315
|
+
open: "_hI",
|
|
10316
|
+
merged: "_hJ",
|
|
10317
|
+
closed: "_hK"
|
|
10297
10318
|
};
|
|
10298
10319
|
//#endregion
|
|
10299
10320
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -10310,6 +10331,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10310
10331
|
const $si__input_workspaceId = _serialize_if(_scope_reason(), 0);
|
|
10311
10332
|
const $scope0_id = _scope_id();
|
|
10312
10333
|
const $input_workspaceId__closures = /* @__PURE__ */ new Set();
|
|
10334
|
+
const $dead__closures = /* @__PURE__ */ new Set();
|
|
10313
10335
|
const $armedPid__closures = /* @__PURE__ */ new Set();
|
|
10314
10336
|
let armedPid = null;
|
|
10315
10337
|
const armBox = { timer: 0 };
|
|
@@ -10356,6 +10378,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10356
10378
|
prs: (r.prs || []).filter((pr) => !dismissed.has(prKey(r.full_name, pr.number)))
|
|
10357
10379
|
}));
|
|
10358
10380
|
const ports = (input.status?.ports || []).filter((p) => !killed.has(p.pid));
|
|
10381
|
+
let dead = /* @__PURE__ */ new Map();
|
|
10359
10382
|
_if(() => {
|
|
10360
10383
|
if (repos.some((r) => (r.prs || []).length) || ports.length) {
|
|
10361
10384
|
const $scope1_id = _scope_id();
|
|
@@ -10365,7 +10388,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10365
10388
|
const name = repo.full_name.split("/").at(-1);
|
|
10366
10389
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10367
10390
|
}, "y4", $scope1_id);
|
|
10368
|
-
_html(`<div${_attr_class("
|
|
10391
|
+
_html(`<div${_attr_class("_hB")}>`);
|
|
10369
10392
|
_for_of(repos, (repo) => {
|
|
10370
10393
|
const $scope2_id = _scope_id();
|
|
10371
10394
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10381,11 +10404,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10381
10404
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10382
10405
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10383
10406
|
}
|
|
10384
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10407
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_hF", { ["_hN"]: !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")}`);
|
|
10385
10408
|
_if(() => {
|
|
10386
10409
|
if (open) {
|
|
10387
10410
|
const $scope4_id = _scope_id();
|
|
10388
|
-
_html(`<a${_attr_class(["
|
|
10411
|
+
_html(`<a${_attr_class(["_hF", "_hG"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10389
10412
|
icon_diff_default({ size: 12 });
|
|
10390
10413
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10391
10414
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10393,9 +10416,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10393
10416
|
} else {
|
|
10394
10417
|
const $scope6_id = _scope_id();
|
|
10395
10418
|
_html(`<button type=button${_attr_class([
|
|
10396
|
-
"
|
|
10397
|
-
"
|
|
10398
|
-
"
|
|
10419
|
+
"_hF",
|
|
10420
|
+
"_hG",
|
|
10421
|
+
"_hH"
|
|
10399
10422
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10400
10423
|
icon_xmark_default({ size: 12 });
|
|
10401
10424
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10419,20 +10442,35 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10419
10442
|
}, "full_name", $scope1_id, "b");
|
|
10420
10443
|
_for_of(ports, (p) => {
|
|
10421
10444
|
const $scope5_id = _scope_id();
|
|
10422
|
-
_html(`<span${_attr_class(["_u", portChip])}${_attr("title", p.cmd)}
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10445
|
+
_html(`<span${_attr_class(["_u", portChip])}${_attr("title", p.cmd)}>`);
|
|
10446
|
+
_if(() => {
|
|
10447
|
+
if (dead.has(p.port)) {
|
|
10448
|
+
const $scope7_id = _scope_id();
|
|
10449
|
+
_html(`<span${_attr_class(["_hF", "_hL"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10450
|
+
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10451
|
+
return 0;
|
|
10452
|
+
} else {
|
|
10453
|
+
const $scope8_id = _scope_id();
|
|
10454
|
+
_html(`<button type=button${_attr_class(["_hF", "_hM"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10455
|
+
_script($scope8_id, "y6");
|
|
10456
|
+
writeScope($scope8_id, {});
|
|
10457
|
+
return 1;
|
|
10458
|
+
}
|
|
10459
|
+
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10460
|
+
_html(`<button type=button${_attr_class([
|
|
10461
|
+
"_hF",
|
|
10462
|
+
"_hG",
|
|
10463
|
+
"_hH",
|
|
10426
10464
|
{ ["_s"]: armedPid === p.pid }
|
|
10427
10465
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10428
10466
|
icon_xmark_default({ size: 12 });
|
|
10429
|
-
_html(`</button>${_el_resume($scope5_id, "
|
|
10430
|
-
_script($scope5_id, "
|
|
10431
|
-
_subscribe($armedPid__closures, writeScope($scope5_id, {
|
|
10432
|
-
|
|
10433
|
-
|
|
10467
|
+
_html(`</button>${_el_resume($scope5_id, "c")}</span>${_el_resume($scope5_id, "a")}`);
|
|
10468
|
+
_script($scope5_id, "y7");
|
|
10469
|
+
_subscribe($dead__closures, _subscribe($armedPid__closures, writeScope($scope5_id, {
|
|
10470
|
+
g: p?.cmd,
|
|
10471
|
+
h: p?.port,
|
|
10434
10472
|
j: p?.pid
|
|
10435
|
-
}));
|
|
10473
|
+
})));
|
|
10436
10474
|
}, "port", $scope1_id, "c", 1, 1, 1, 0, 1);
|
|
10437
10475
|
_html("</div>");
|
|
10438
10476
|
writeScope($scope1_id, {
|
|
@@ -10442,6 +10480,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10442
10480
|
return 0;
|
|
10443
10481
|
}
|
|
10444
10482
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
10483
|
+
_script($scope0_id, "y8");
|
|
10445
10484
|
writeScope($scope0_id, {
|
|
10446
10485
|
d: input.workspaceId,
|
|
10447
10486
|
f: input.status?.repos,
|
|
@@ -10457,8 +10496,10 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10457
10496
|
t: repos,
|
|
10458
10497
|
u: ports,
|
|
10459
10498
|
v: ports?.length,
|
|
10460
|
-
x:
|
|
10461
|
-
|
|
10499
|
+
x: dead,
|
|
10500
|
+
z: $si__input_workspaceId && $input_workspaceId__closures,
|
|
10501
|
+
a3: $dead__closures,
|
|
10502
|
+
a0: $armedPid__closures
|
|
10462
10503
|
});
|
|
10463
10504
|
_resume_branch($scope0_id);
|
|
10464
10505
|
});
|
|
@@ -10542,7 +10583,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10542
10583
|
_if(() => {
|
|
10543
10584
|
if (input.rail) {
|
|
10544
10585
|
const $scope2_id = _scope_id();
|
|
10545
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10586
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_cY"]: 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([
|
|
10546
10587
|
"_A",
|
|
10547
10588
|
phase[dot$1],
|
|
10548
10589
|
"_bc"
|
|
@@ -10552,34 +10593,34 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10552
10593
|
} else if (ws$1.pending) {
|
|
10553
10594
|
const $scope3_id = _scope_id();
|
|
10554
10595
|
_html(`<section${_attr_class([
|
|
10555
|
-
"
|
|
10556
|
-
"
|
|
10596
|
+
"_c2",
|
|
10597
|
+
"_do",
|
|
10557
10598
|
{
|
|
10558
|
-
["
|
|
10559
|
-
["
|
|
10599
|
+
["_c3"]: input.railPop,
|
|
10600
|
+
["_c1"]: input.page
|
|
10560
10601
|
}
|
|
10561
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10602
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_c4")}><div${_attr_class(wsBtn)}>`);
|
|
10562
10603
|
_if(() => {
|
|
10563
10604
|
if (ws$1.pending_error) {
|
|
10564
10605
|
const $scope16_id = _scope_id();
|
|
10565
10606
|
icon_warning_default({
|
|
10566
10607
|
size: 12,
|
|
10567
|
-
class: "
|
|
10608
|
+
class: "_dq"
|
|
10568
10609
|
});
|
|
10569
10610
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10570
10611
|
return 0;
|
|
10571
10612
|
} else {
|
|
10572
10613
|
const $scope17_id = _scope_id();
|
|
10573
|
-
_html(`<span${_attr_class(["_G", "
|
|
10614
|
+
_html(`<span${_attr_class(["_G", "_dp"])}></span>`);
|
|
10574
10615
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10575
10616
|
return 1;
|
|
10576
10617
|
}
|
|
10577
10618
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10578
|
-
_html(`<span${_attr_class("
|
|
10619
|
+
_html(`<span${_attr_class("_da")}><span${_attr_class("_db")}>${_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>`);
|
|
10579
10620
|
_if(() => {
|
|
10580
10621
|
if (ws$1.pending_error && !retrying) {
|
|
10581
10622
|
const $scope15_id = _scope_id();
|
|
10582
|
-
_html(`<div${_attr_class("
|
|
10623
|
+
_html(`<div${_attr_class("_dr")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope15_id, "b")}<button type=button${_attr_class([
|
|
10583
10624
|
"_q",
|
|
10584
10625
|
btnSm,
|
|
10585
10626
|
{ ["_s"]: armedDelete }
|
|
@@ -10599,15 +10640,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10599
10640
|
const $scope4_id = _scope_id();
|
|
10600
10641
|
const sessions$1 = input.sessions || [];
|
|
10601
10642
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10602
|
-
_html(`<section${_attr_class(["
|
|
10603
|
-
["
|
|
10643
|
+
_html(`<section${_attr_class(["_c2", {
|
|
10644
|
+
["_cY"]: input.current,
|
|
10604
10645
|
["_bd"]: input.current,
|
|
10605
|
-
["
|
|
10606
|
-
["
|
|
10607
|
-
}])}><div${_attr_class("
|
|
10646
|
+
["_c3"]: input.railPop,
|
|
10647
|
+
["_c1"]: input.page
|
|
10648
|
+
}])}><div${_attr_class("_c4")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10608
10649
|
"_A",
|
|
10609
10650
|
phase[dot$1],
|
|
10610
|
-
"
|
|
10651
|
+
"_dg"
|
|
10611
10652
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10612
10653
|
_if(() => {
|
|
10613
10654
|
if (sessions$1.length === 1) {
|
|
@@ -10620,7 +10661,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10620
10661
|
icon_agent_default({
|
|
10621
10662
|
agent: activeAgent(sessions$1[0]),
|
|
10622
10663
|
size: 12,
|
|
10623
|
-
class: "
|
|
10664
|
+
class: "_c_"
|
|
10624
10665
|
});
|
|
10625
10666
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10626
10667
|
_: _scope_with_id($scope4_id),
|
|
@@ -10630,11 +10671,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10630
10671
|
}
|
|
10631
10672
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10632
10673
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10633
|
-
_html(`<span${_attr_class("
|
|
10674
|
+
_html(`<span${_attr_class("_da")}><span${_attr_class("_db")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10634
10675
|
_if(() => {
|
|
10635
10676
|
if (input.page && metaText) {
|
|
10636
10677
|
const $scope19_id = _scope_id();
|
|
10637
|
-
_html(`<span${_attr_class("
|
|
10678
|
+
_html(`<span${_attr_class("_de")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10638
10679
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10639
10680
|
return 0;
|
|
10640
10681
|
}
|
|
@@ -10647,7 +10688,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10647
10688
|
"_N",
|
|
10648
10689
|
"_W",
|
|
10649
10690
|
"_P",
|
|
10650
|
-
"
|
|
10691
|
+
"_df"
|
|
10651
10692
|
])}>${_text_resume($scope5_id, "b", input.current ? "Open" : "", _serialize_guard($scope0_reason, 20))}</span>`);
|
|
10652
10693
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspace && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
10653
10694
|
_: _scope_with_id($scope4_id),
|
|
@@ -10660,7 +10701,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10660
10701
|
_if(() => {
|
|
10661
10702
|
if (!input.page) {
|
|
10662
10703
|
const $scope6_id = _scope_id();
|
|
10663
|
-
_html(`<div${_attr_class("
|
|
10704
|
+
_html(`<div${_attr_class("_c6")}>`);
|
|
10664
10705
|
_if(() => {
|
|
10665
10706
|
if (input.onNewSession) {
|
|
10666
10707
|
const $scope7_id = _scope_id();
|
|
@@ -10709,7 +10750,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10709
10750
|
return 0;
|
|
10710
10751
|
}
|
|
10711
10752
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10712
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10753
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_cZ"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10713
10754
|
icon_manage_default({ size: 12 });
|
|
10714
10755
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10715
10756
|
_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($scope6_id, {
|
|
@@ -10719,7 +10760,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10719
10760
|
return 0;
|
|
10720
10761
|
}
|
|
10721
10762
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10722
|
-
_html(`</div><div${_attr_class("
|
|
10763
|
+
_html(`</div><div${_attr_class("_dl")}>`);
|
|
10723
10764
|
_if(() => {
|
|
10724
10765
|
if (sessions$1.length === 1 && openPlan) {
|
|
10725
10766
|
const $scope12_id = _scope_id();
|
|
@@ -10727,7 +10768,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10727
10768
|
const $childScope3 = _peek_scope_id();
|
|
10728
10769
|
usage_pcts_default({
|
|
10729
10770
|
agent: openPlan,
|
|
10730
|
-
class: "
|
|
10771
|
+
class: "_dc"
|
|
10731
10772
|
});
|
|
10732
10773
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10733
10774
|
a: _existing_scope($childScope3),
|
|
@@ -10738,14 +10779,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10738
10779
|
}, $scope4_id, "m");
|
|
10739
10780
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10740
10781
|
const $scope9_id = _scope_id();
|
|
10741
|
-
_html(`<div${_attr_class(["
|
|
10782
|
+
_html(`<div${_attr_class(["_c7", { ["_cY"]: s.id === input.currentTab }])}>`);
|
|
10742
10783
|
_if(() => {
|
|
10743
10784
|
if (renamingId === s.id) {
|
|
10744
10785
|
const $scope11_id = _scope_id();
|
|
10745
10786
|
_html(`<span${_attr_class([
|
|
10746
10787
|
"_A",
|
|
10747
10788
|
phase[sessionPhase(s.state)],
|
|
10748
|
-
"
|
|
10789
|
+
"_dj"
|
|
10749
10790
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10750
10791
|
_set_serialize_reason({
|
|
10751
10792
|
1: $sg__input_sessions,
|
|
@@ -10755,7 +10796,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10755
10796
|
icon_agent_default({
|
|
10756
10797
|
agent: activeAgent(s),
|
|
10757
10798
|
size: 12,
|
|
10758
|
-
class: "
|
|
10799
|
+
class: "_dn"
|
|
10759
10800
|
});
|
|
10760
10801
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10761
10802
|
renameValue = _new_renameValue;
|
|
@@ -10774,9 +10815,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10774
10815
|
icon_agent_default({
|
|
10775
10816
|
agent: activeAgent(s),
|
|
10776
10817
|
size: 12,
|
|
10777
|
-
class: "
|
|
10818
|
+
class: "_dn"
|
|
10778
10819
|
});
|
|
10779
|
-
_html(`<span${_attr_class("
|
|
10820
|
+
_html(`<span${_attr_class("_dh")}>${_text_resume($scope10_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_di")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10780
10821
|
icon_edit_default({ size: 12 });
|
|
10781
10822
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10782
10823
|
icon_xmark_default({ size: 12 });
|
|
@@ -10788,7 +10829,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10788
10829
|
const $childScope6 = _peek_scope_id();
|
|
10789
10830
|
usage_pcts_default({
|
|
10790
10831
|
agent: openPlan,
|
|
10791
|
-
class: "
|
|
10832
|
+
class: "_dd"
|
|
10792
10833
|
});
|
|
10793
10834
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10794
10835
|
a: _existing_scope($childScope6),
|
|
@@ -11028,28 +11069,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11028
11069
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11029
11070
|
const otherIds = itemIds.filter((id) => id !== ws?.id);
|
|
11030
11071
|
const listIds = isPage && ws ? [ws.id, ...otherIds] : itemIds;
|
|
11031
|
-
_html(`<aside${_attr_class(["
|
|
11032
|
-
["
|
|
11033
|
-
["
|
|
11072
|
+
_html(`<aside${_attr_class(["_b0", {
|
|
11073
|
+
["_bY"]: !navOpen,
|
|
11074
|
+
["_bZ"]: isPage
|
|
11034
11075
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11035
11076
|
_if(() => {
|
|
11036
11077
|
if (isPage) {
|
|
11037
11078
|
const $scope1_id = _scope_id();
|
|
11038
|
-
_html(`<header${_attr_class("
|
|
11079
|
+
_html(`<header${_attr_class("_b3")}><div${_attr_class("_cb")}>`);
|
|
11039
11080
|
_if(() => {
|
|
11040
11081
|
if (input.instanceName) {
|
|
11041
11082
|
const $scope2_id = _scope_id();
|
|
11042
|
-
_html(`<div${_attr_class("
|
|
11083
|
+
_html(`<div${_attr_class("_b9")} title="This work server (Settings → Appearance)"><img${_attr_class("_b_")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ca")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11043
11084
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11044
11085
|
return 0;
|
|
11045
11086
|
}
|
|
11046
11087
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11047
|
-
_html(`<h1${_attr_class("
|
|
11088
|
+
_html(`<h1${_attr_class("_b4")}>Workspaces</h1></div><div${_attr_class("_b5")}>`);
|
|
11048
11089
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11049
11090
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11050
11091
|
iconBtn,
|
|
11051
|
-
"
|
|
11052
|
-
{ ["
|
|
11092
|
+
"_b6",
|
|
11093
|
+
{ ["_bV"]: view === "settings" }
|
|
11053
11094
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11054
11095
|
icon_settings_default({ size: 16 });
|
|
11055
11096
|
_if(() => {
|
|
@@ -11068,7 +11109,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11068
11109
|
_if(() => {
|
|
11069
11110
|
if (!isPage && input.instanceName) {
|
|
11070
11111
|
const $scope3_id = _scope_id();
|
|
11071
|
-
_html(`<div${_attr_class("
|
|
11112
|
+
_html(`<div${_attr_class("_b9")} title="This work server (Settings → Appearance)"><img${_attr_class("_b_")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_ca")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11072
11113
|
writeScope($scope3_id, {});
|
|
11073
11114
|
return 0;
|
|
11074
11115
|
}
|
|
@@ -11076,13 +11117,13 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11076
11117
|
_if(() => {
|
|
11077
11118
|
if (navOpen || isPage) {
|
|
11078
11119
|
const $scope4_id = _scope_id();
|
|
11079
|
-
_html(`<div${_attr_class("
|
|
11120
|
+
_html(`<div${_attr_class("_cc")}>`);
|
|
11080
11121
|
_for_of(listIds, (wsId) => {
|
|
11081
11122
|
const $scope5_id = _scope_id();
|
|
11082
11123
|
_if(() => {
|
|
11083
11124
|
if (isPage && wsId === ws?.id) {
|
|
11084
11125
|
const $scope14_id = _scope_id();
|
|
11085
|
-
_html(`<h2${_attr_class(["
|
|
11126
|
+
_html(`<h2${_attr_class(["_bM", "_b7"])}>Current</h2>`);
|
|
11086
11127
|
writeScope($scope14_id, {});
|
|
11087
11128
|
return 0;
|
|
11088
11129
|
}
|
|
@@ -11090,7 +11131,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11090
11131
|
_if(() => {
|
|
11091
11132
|
if (isPage && ws && wsId !== ws.id && wsId === otherIds[0]) {
|
|
11092
11133
|
const $scope15_id = _scope_id();
|
|
11093
|
-
_html(`<h2${_attr_class(["
|
|
11134
|
+
_html(`<h2${_attr_class(["_bM", "_b7"])}>Other workspaces</h2>`);
|
|
11094
11135
|
writeScope($scope15_id, {});
|
|
11095
11136
|
return 0;
|
|
11096
11137
|
}
|
|
@@ -11179,7 +11220,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11179
11220
|
railHover = null;
|
|
11180
11221
|
}, 150);
|
|
11181
11222
|
}, "A6", $scope6_id);
|
|
11182
|
-
_html(`<div${_attr_class("
|
|
11223
|
+
_html(`<div${_attr_class("_cd")}>`);
|
|
11183
11224
|
_for_of(itemIds, (wsId, i) => {
|
|
11184
11225
|
const $scope7_id = _scope_id();
|
|
11185
11226
|
_html("<span>");
|
|
@@ -11237,7 +11278,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11237
11278
|
if (railHover) {
|
|
11238
11279
|
const $scope8_id = _scope_id();
|
|
11239
11280
|
const hoverId = railHover.id;
|
|
11240
|
-
_html(`<div${_attr_class(["__", "
|
|
11281
|
+
_html(`<div${_attr_class(["__", "_cg"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11241
11282
|
_set_serialize_reason({
|
|
11242
11283
|
0: 1,
|
|
11243
11284
|
1: 1,
|
|
@@ -11332,7 +11373,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11332
11373
|
return 0;
|
|
11333
11374
|
}
|
|
11334
11375
|
}, $scope0_id, "e");
|
|
11335
|
-
_html(`<div${_attr_class("
|
|
11376
|
+
_html(`<div${_attr_class("_ce")}>`);
|
|
11336
11377
|
_if(() => {
|
|
11337
11378
|
if (isPage) {
|
|
11338
11379
|
const $scope10_id = _scope_id();
|
|
@@ -11340,7 +11381,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11340
11381
|
"_q",
|
|
11341
11382
|
"_r",
|
|
11342
11383
|
btnLg,
|
|
11343
|
-
"
|
|
11384
|
+
"_b8"
|
|
11344
11385
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11345
11386
|
icon_folder_plus_default({ size: 16 });
|
|
11346
11387
|
_html(` New workspace</a>${_el_resume($scope10_id, "a")}`);
|
|
@@ -11362,9 +11403,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11362
11403
|
return 1;
|
|
11363
11404
|
}
|
|
11364
11405
|
}, $scope9_id, "a", 1, 1, 1, "</button>", 1);
|
|
11365
|
-
_html(`<div${_attr_class(["_z", "
|
|
11406
|
+
_html(`<div${_attr_class(["_z", "_cf"])}></div>`);
|
|
11366
11407
|
_if(() => {}, $scope9_id, "c", 1, 1, 1, 0, 1);
|
|
11367
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11408
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bV"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11368
11409
|
icon_settings_default({});
|
|
11369
11410
|
_if(() => {
|
|
11370
11411
|
if (input.setupReady === false) {
|
|
@@ -11374,7 +11415,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11374
11415
|
return 0;
|
|
11375
11416
|
}
|
|
11376
11417
|
}, $scope9_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11377
|
-
_html(`</a>${_el_resume($scope9_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11418
|
+
_html(`</a>${_el_resume($scope9_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bV"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11378
11419
|
icon_folder_plus_default({ size: 16 });
|
|
11379
11420
|
_html(`</a>${_el_resume($scope9_id, "g")}`);
|
|
11380
11421
|
_script($scope9_id, "A15");
|
|
@@ -11714,8 +11755,8 @@ function treeDirs(files) {
|
|
|
11714
11755
|
};
|
|
11715
11756
|
return build(root, "", "", -1);
|
|
11716
11757
|
}
|
|
11717
|
-
var treeToggle = "
|
|
11718
|
-
var pageTitle = "
|
|
11758
|
+
var treeToggle = "_eo _5 _l";
|
|
11759
|
+
var pageTitle = "_ev _cm";
|
|
11719
11760
|
//#endregion
|
|
11720
11761
|
//#region src/tags/diff-send.marko
|
|
11721
11762
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -11725,7 +11766,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11725
11766
|
let sendTarget = null;
|
|
11726
11767
|
const sessions = input.sessions || [];
|
|
11727
11768
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
11728
|
-
_html(`<span${_attr_class("
|
|
11769
|
+
_html(`<span${_attr_class("_gx")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
11729
11770
|
_if(() => {
|
|
11730
11771
|
if (sessions.length === 1) {
|
|
11731
11772
|
const $scope1_id = _scope_id();
|
|
@@ -11735,11 +11776,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11735
11776
|
return 0;
|
|
11736
11777
|
} else if (sessions.length) {
|
|
11737
11778
|
const $scope2_id = _scope_id();
|
|
11738
|
-
_html(`<span${_attr_class("
|
|
11779
|
+
_html(`<span${_attr_class("_gy")}><button type=button${_attr_class(["_r", "_gz"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
11739
11780
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
11740
11781
|
sendTarget = _new_sendTarget;
|
|
11741
11782
|
}, "j0", $scope2_id), () => {
|
|
11742
|
-
_html(`<select${_attr_class("
|
|
11783
|
+
_html(`<select${_attr_class("_gA")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
11743
11784
|
_for_of(sessions, (s) => {
|
|
11744
11785
|
const $scope3_id = _scope_id();
|
|
11745
11786
|
_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)}`);
|
|
@@ -13251,8 +13292,8 @@ function clip(line, at, len) {
|
|
|
13251
13292
|
const end = Math.min(line.length, at + len + pad);
|
|
13252
13293
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13253
13294
|
}
|
|
13254
|
-
var findInput = "
|
|
13255
|
-
var findIconBtn = "
|
|
13295
|
+
var findInput = "_hQ _n";
|
|
13296
|
+
var findIconBtn = "_hT _l";
|
|
13256
13297
|
//#endregion
|
|
13257
13298
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13258
13299
|
var icon_arrow_down_default = _template("K", (input) => {
|
|
@@ -13340,9 +13381,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13340
13381
|
el.select();
|
|
13341
13382
|
}, 0);
|
|
13342
13383
|
}, "i0", $scope0_id);
|
|
13343
|
-
_html(`<div${_attr_class(["
|
|
13384
|
+
_html(`<div${_attr_class(["_hP", !open && "_hO"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13344
13385
|
type(v);
|
|
13345
|
-
}, "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("
|
|
13386
|
+
}, "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("_hS")}>${_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"}>`);
|
|
13346
13387
|
icon_arrow_up_default({ size: 14 });
|
|
13347
13388
|
_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"}>`);
|
|
13348
13389
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13444,9 +13485,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13444
13485
|
}
|
|
13445
13486
|
return shortHeadFallback(head);
|
|
13446
13487
|
}
|
|
13447
|
-
var repoWorktree = "
|
|
13448
|
-
var repoTitle = "
|
|
13449
|
-
var path$1 = "
|
|
13488
|
+
var repoWorktree = "_ij _y";
|
|
13489
|
+
var repoTitle = "_ip _x";
|
|
13490
|
+
var path$1 = "_iG _bb";
|
|
13450
13491
|
//#endregion
|
|
13451
13492
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13452
13493
|
var icon_chevron_down_default = _template("T", (input) => {
|
|
@@ -13520,7 +13561,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
13520
13561
|
_scope_reason();
|
|
13521
13562
|
const $scope0_id = _scope_id();
|
|
13522
13563
|
_el($scope0_id, "h0");
|
|
13523
|
-
_html(`<div${_attr_class(["
|
|
13564
|
+
_html(`<div${_attr_class(["_iM", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
13524
13565
|
_script($scope0_id, "h1");
|
|
13525
13566
|
writeScope($scope0_id, {
|
|
13526
13567
|
e: input.file,
|
|
@@ -13582,14 +13623,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13582
13623
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
13583
13624
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13584
13625
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
13585
|
-
_html(`<section${_attr_class("
|
|
13626
|
+
_html(`<section${_attr_class("_if")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_ig", { ["_ih"]: input.collapsible && input.collapsed }])}>`);
|
|
13586
13627
|
_if(() => {
|
|
13587
13628
|
if (input.collapsible) {
|
|
13588
13629
|
const $scope1_id = _scope_id();
|
|
13589
|
-
_html(`<button type=button${_attr_class("
|
|
13590
|
-
"
|
|
13591
|
-
!input.collapsed && "
|
|
13592
|
-
input.expanding && "
|
|
13630
|
+
_html(`<button type=button${_attr_class("_ii")} 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([
|
|
13631
|
+
"_iD",
|
|
13632
|
+
!input.collapsed && "_iE",
|
|
13633
|
+
input.expanding && "_iF"
|
|
13593
13634
|
])} aria-hidden=true>`);
|
|
13594
13635
|
_if(() => {
|
|
13595
13636
|
if (input.collapsed) {
|
|
@@ -13628,14 +13669,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13628
13669
|
return 1;
|
|
13629
13670
|
}
|
|
13630
13671
|
}, $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);
|
|
13631
|
-
_html(`<span${_attr_class("
|
|
13672
|
+
_html(`<span${_attr_class("_iq")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_ir"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_it"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_is"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13632
13673
|
_if(() => {
|
|
13633
13674
|
if (compare$1.topic) {
|
|
13634
13675
|
const $scope16_id = _scope_id();
|
|
13635
13676
|
_html(`<span${_attr_class([
|
|
13636
13677
|
"_N",
|
|
13637
13678
|
tone.accent,
|
|
13638
|
-
"
|
|
13679
|
+
"_iu"
|
|
13639
13680
|
])}>${_text_resume($scope16_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13640
13681
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
13641
13682
|
return 0;
|
|
@@ -13648,7 +13689,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13648
13689
|
_html(`<button type=button${_attr_class([
|
|
13649
13690
|
"_N",
|
|
13650
13691
|
tone.warn,
|
|
13651
|
-
"
|
|
13692
|
+
"_iv"
|
|
13652
13693
|
])}${_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")}`);
|
|
13653
13694
|
_script($scope2_id, "w10");
|
|
13654
13695
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13658,7 +13699,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13658
13699
|
_if(() => {
|
|
13659
13700
|
if (repo.contained && input.files.length) {
|
|
13660
13701
|
const $scope13_id = _scope_id();
|
|
13661
|
-
_html(`<span${_attr_class(["_N", "
|
|
13702
|
+
_html(`<span${_attr_class(["_N", "_iv"])}${_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)}`);
|
|
13662
13703
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13663
13704
|
return 0;
|
|
13664
13705
|
}
|
|
@@ -13666,16 +13707,16 @@ var review_section_default = _template("w", (input) => {
|
|
|
13666
13707
|
_if(() => {
|
|
13667
13708
|
if (input.localDiffers) {
|
|
13668
13709
|
const $scope3_id = _scope_id();
|
|
13669
|
-
_html(`<span${_attr_class(["_N", "
|
|
13710
|
+
_html(`<span${_attr_class(["_N", "_iv"])}${_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)}`);
|
|
13670
13711
|
$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) });
|
|
13671
13712
|
return 0;
|
|
13672
13713
|
}
|
|
13673
13714
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 38), $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);
|
|
13674
|
-
_html(`<span${_attr_class("
|
|
13715
|
+
_html(`<span${_attr_class("_ik")}><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>`);
|
|
13675
13716
|
_if(() => {
|
|
13676
13717
|
if (stats.additions || stats.deletions) {
|
|
13677
13718
|
const $scope15_id = _scope_id();
|
|
13678
|
-
_html(`<span${_attr_class("
|
|
13719
|
+
_html(`<span${_attr_class("_il")}>+${_text_resume($scope15_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_im")}>−${_text_resume($scope15_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
13679
13720
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
13680
13721
|
return 0;
|
|
13681
13722
|
}
|
|
@@ -13683,7 +13724,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13683
13724
|
_if(() => {
|
|
13684
13725
|
if (newCount || input.onlyNew) {
|
|
13685
13726
|
const $scope4_id = _scope_id();
|
|
13686
|
-
_html(`<button type=button${_attr_class(["
|
|
13727
|
+
_html(`<button type=button${_attr_class(["_io", { ["_in"]: 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")}`);
|
|
13687
13728
|
_script($scope4_id, "w11");
|
|
13688
13729
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13689
13730
|
return 0;
|
|
@@ -13693,7 +13734,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13693
13734
|
_if(() => {
|
|
13694
13735
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
13695
13736
|
const $scope5_id = _scope_id();
|
|
13696
|
-
_html(`<div${_attr_class("
|
|
13737
|
+
_html(`<div${_attr_class("_ix")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
13697
13738
|
_for_of(input.files, (file$2) => {
|
|
13698
13739
|
const $scope6_id = _scope_id();
|
|
13699
13740
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -13706,14 +13747,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13706
13747
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
13707
13748
|
input.onFileToggle(file$2.key, open);
|
|
13708
13749
|
}, "w0", $scope6_id))}${_attr_class([
|
|
13709
|
-
"
|
|
13710
|
-
forceNear && "
|
|
13711
|
-
input.findHit?.key === file$2.key && "
|
|
13712
|
-
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("
|
|
13750
|
+
"_iy",
|
|
13751
|
+
forceNear && "_iz",
|
|
13752
|
+
input.findHit?.key === file$2.key && "_id"
|
|
13753
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_iB")}><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 && "_ie"])}${_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))}`);
|
|
13713
13754
|
_if(() => {
|
|
13714
13755
|
if (file$2.changedSince) {
|
|
13715
13756
|
const $scope20_id = _scope_id();
|
|
13716
|
-
_html(`<span${_attr_class(["_A", "
|
|
13757
|
+
_html(`<span${_attr_class(["_A", "_iw"])} title="Changed since your last visit"></span>`);
|
|
13717
13758
|
$si__input_files && writeScope($scope20_id, {});
|
|
13718
13759
|
return 0;
|
|
13719
13760
|
}
|
|
@@ -13733,8 +13774,8 @@ var review_section_default = _template("w", (input) => {
|
|
|
13733
13774
|
const $scope14_id = _scope_id();
|
|
13734
13775
|
_html(`<button type=button${_attr_class([
|
|
13735
13776
|
iconBtnXs,
|
|
13736
|
-
"
|
|
13737
|
-
{ ["
|
|
13777
|
+
"_iI",
|
|
13778
|
+
{ ["_iJ"]: wholeFiles.has(file$2.key) }
|
|
13738
13779
|
])} title=${wholeFiles.has(file$2.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-label=${wholeFiles.has(file$2.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-pressed=${wholeFiles.has(file$2.key) ? "true" : "false"}>`);
|
|
13739
13780
|
_if(() => {
|
|
13740
13781
|
if (wholeFiles.has(file$2.key)) {
|
|
@@ -13761,17 +13802,17 @@ var review_section_default = _template("w", (input) => {
|
|
|
13761
13802
|
_if(() => {
|
|
13762
13803
|
if (file$2.binary) {
|
|
13763
13804
|
const $scope23_id = _scope_id();
|
|
13764
|
-
_html(`<p${_attr_class(["
|
|
13805
|
+
_html(`<p${_attr_class(["_iH", "_iA"])}>binary file</p>`);
|
|
13765
13806
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
13766
13807
|
return 0;
|
|
13767
13808
|
} else if (file$2.tooLarge) {
|
|
13768
13809
|
const $scope24_id = _scope_id();
|
|
13769
|
-
_html(`<p${_attr_class(["
|
|
13810
|
+
_html(`<p${_attr_class(["_iH", "_iA"])}>file too large to display</p>`);
|
|
13770
13811
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
13771
13812
|
return 1;
|
|
13772
13813
|
} else if (file$2.old == null && file$2.new == null) {
|
|
13773
13814
|
const $scope25_id = _scope_id();
|
|
13774
|
-
_html(`<p${_attr_class(["
|
|
13815
|
+
_html(`<p${_attr_class(["_iH", "_iA"])}>file could not be read</p>`);
|
|
13775
13816
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
13776
13817
|
return 2;
|
|
13777
13818
|
} else if (expanded) {
|
|
@@ -13779,7 +13820,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13779
13820
|
_if(() => {
|
|
13780
13821
|
if (!forceNear) {
|
|
13781
13822
|
const $scope8_id = _scope_id();
|
|
13782
|
-
_html(`<div${_attr_class("
|
|
13823
|
+
_html(`<div${_attr_class("_iC")}></div>${_el_resume($scope8_id, "a")}`);
|
|
13783
13824
|
_script($scope8_id, "w13");
|
|
13784
13825
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
13785
13826
|
return 0;
|
|
@@ -13787,7 +13828,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13787
13828
|
const $scope9_id = _scope_id();
|
|
13788
13829
|
const $childScope = _peek_scope_id();
|
|
13789
13830
|
diff_file_default({
|
|
13790
|
-
class: "
|
|
13831
|
+
class: "_iA",
|
|
13791
13832
|
file: file$2,
|
|
13792
13833
|
comments: fileComments,
|
|
13793
13834
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -13928,7 +13969,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13928
13969
|
});
|
|
13929
13970
|
_resume_branch($scope0_id);
|
|
13930
13971
|
});
|
|
13931
|
-
var fileFilter = "
|
|
13972
|
+
var fileFilter = "_iL _n";
|
|
13932
13973
|
//#endregion
|
|
13933
13974
|
//#region src/tags/file-filter.marko
|
|
13934
13975
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -13958,7 +13999,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
13958
13999
|
pending = v;
|
|
13959
14000
|
box.timer = setTimeout(flush, 150);
|
|
13960
14001
|
}, "n2", $scope0_id);
|
|
13961
|
-
_html(`<div${_attr_class("
|
|
14002
|
+
_html(`<div${_attr_class("_iK")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
13962
14003
|
type(v);
|
|
13963
14004
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
13964
14005
|
_script($scope0_id, "n3");
|
|
@@ -13991,7 +14032,7 @@ var $content = (input) => {
|
|
|
13991
14032
|
_for_of(dir.dirs, (child) => {
|
|
13992
14033
|
const $scope1_id = _scope_id();
|
|
13993
14034
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
13994
|
-
_html(`<div${_attr_class("
|
|
14035
|
+
_html(`<div${_attr_class("_hb")}><button type=button${_attr_class(["_hc", { ["_g4"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_hj")}>`);
|
|
13995
14036
|
_if(() => {
|
|
13996
14037
|
if (shut) {
|
|
13997
14038
|
const $scope4_id = _scope_id();
|
|
@@ -14005,7 +14046,7 @@ var $content = (input) => {
|
|
|
14005
14046
|
return 1;
|
|
14006
14047
|
}
|
|
14007
14048
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14008
|
-
_html(`<span${_attr_class("
|
|
14049
|
+
_html(`<span${_attr_class("_hd")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14009
14050
|
_if(() => {
|
|
14010
14051
|
if (!shut) {
|
|
14011
14052
|
const $scope2_id = _scope_id();
|
|
@@ -14052,11 +14093,11 @@ var $content = (input) => {
|
|
|
14052
14093
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14053
14094
|
_for_of(dir.files, ({ file, name }) => {
|
|
14054
14095
|
const $scope3_id = _scope_id();
|
|
14055
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14096
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_hf", { ["_he"]: 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("_hg")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14056
14097
|
_if(() => {
|
|
14057
14098
|
if (input.newKeys.has(file.key)) {
|
|
14058
14099
|
const $scope6_id = _scope_id();
|
|
14059
|
-
_html(`<span${_attr_class(["_A", "
|
|
14100
|
+
_html(`<span${_attr_class(["_A", "_hh"])} title="Changed since your last visit"></span>`);
|
|
14060
14101
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14061
14102
|
return 0;
|
|
14062
14103
|
}
|
|
@@ -14064,7 +14105,7 @@ var $content = (input) => {
|
|
|
14064
14105
|
_if(() => {
|
|
14065
14106
|
if (input.commentKeys.has(file.key)) {
|
|
14066
14107
|
const $scope7_id = _scope_id();
|
|
14067
|
-
_html(`<span${_attr_class("
|
|
14108
|
+
_html(`<span${_attr_class("_hi")}>`);
|
|
14068
14109
|
icon_comment_default({ size: 12 });
|
|
14069
14110
|
_html("</span>");
|
|
14070
14111
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14122,7 +14163,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14122
14163
|
scope: input.scope ?? null,
|
|
14123
14164
|
file: key
|
|
14124
14165
|
}), "l0", $scope0_id);
|
|
14125
|
-
_html(`<aside${_attr_class(["
|
|
14166
|
+
_html(`<aside${_attr_class(["_g5", { ["_g4"]: input.open === false }])}><div${_attr_class("_g6")}>`);
|
|
14126
14167
|
_set_serialize_reason(2);
|
|
14127
14168
|
const $childScope = _peek_scope_id();
|
|
14128
14169
|
file_filter_default({
|
|
@@ -14131,18 +14172,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14131
14172
|
filter = _new_filter;
|
|
14132
14173
|
}, "l1", $scope0_id)
|
|
14133
14174
|
});
|
|
14134
|
-
_html(`</div><div${_attr_class("
|
|
14175
|
+
_html(`</div><div${_attr_class("_g7")}>`);
|
|
14135
14176
|
_if(() => {
|
|
14136
14177
|
if (!input.sections.length && filter) {
|
|
14137
14178
|
const $scope3_id = _scope_id();
|
|
14138
|
-
_html(`<p${_attr_class("
|
|
14179
|
+
_html(`<p${_attr_class("_g8")}>No files match.</p>`);
|
|
14139
14180
|
writeScope($scope3_id, {});
|
|
14140
14181
|
return 0;
|
|
14141
14182
|
}
|
|
14142
14183
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14143
14184
|
_for_of(input.sections, (section) => {
|
|
14144
14185
|
const $scope1_id = _scope_id();
|
|
14145
|
-
_html(`<div${_attr_class("
|
|
14186
|
+
_html(`<div${_attr_class("_g9")}><button type=button${_attr_class(["_g_", { ["_g4"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_hj")}>`);
|
|
14146
14187
|
_if(() => {
|
|
14147
14188
|
if (collapsedRepos.has(section.id)) {
|
|
14148
14189
|
const $scope4_id = _scope_id();
|
|
@@ -14156,12 +14197,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14156
14197
|
return 1;
|
|
14157
14198
|
}
|
|
14158
14199
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14159
|
-
_html(`<span${_attr_class("
|
|
14200
|
+
_html(`<span${_attr_class("_hd")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14160
14201
|
_if(() => {
|
|
14161
14202
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14162
14203
|
const $scope2_id = _scope_id();
|
|
14163
14204
|
const root = treeDirs(section.files);
|
|
14164
|
-
_html(`<div${_attr_class("
|
|
14205
|
+
_html(`<div${_attr_class("_ha")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14165
14206
|
_set_serialize_reason(1);
|
|
14166
14207
|
const $childScope2 = _peek_scope_id();
|
|
14167
14208
|
diff_tree_dir_default({
|
|
@@ -14231,7 +14272,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14231
14272
|
});
|
|
14232
14273
|
_resume_branch($scope0_id);
|
|
14233
14274
|
});
|
|
14234
|
-
var sheetDir = "
|
|
14275
|
+
var sheetDir = "_hv _bb";
|
|
14235
14276
|
//#endregion
|
|
14236
14277
|
//#region src/tags/diff-file-sheet.marko
|
|
14237
14278
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14287,9 +14328,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14287
14328
|
_if(() => {
|
|
14288
14329
|
if (open) {
|
|
14289
14330
|
const $scope1_id = _scope_id();
|
|
14290
|
-
_html(`<div${_attr_class("
|
|
14331
|
+
_html(`<div${_attr_class("_hm")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_hn")} role=dialog aria-label="Jump to file"><div${_attr_class("_ho")}><strong${_attr_class("_hl")}>Files</strong><span${_attr_class("_hp")}>${_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, "_hk"])} title=Close aria-label=Close>`);
|
|
14291
14332
|
icon_xmark_default({ size: 16 });
|
|
14292
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14333
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_hx")}>`);
|
|
14293
14334
|
_set_serialize_reason(2);
|
|
14294
14335
|
const $childScope = _peek_scope_id();
|
|
14295
14336
|
file_filter_default({
|
|
@@ -14298,13 +14339,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14298
14339
|
filter = _new_filter;
|
|
14299
14340
|
}, "g1", $scope1_id)
|
|
14300
14341
|
});
|
|
14301
|
-
_html(`</div><div${_attr_class("
|
|
14342
|
+
_html(`</div><div${_attr_class("_hq")}>`);
|
|
14302
14343
|
_for_of(groups, (group) => {
|
|
14303
14344
|
const $scope2_id = _scope_id();
|
|
14304
|
-
_html(`<div${_attr_class("
|
|
14345
|
+
_html(`<div${_attr_class("_hr")}><div${_attr_class("_hs")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14305
14346
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14306
14347
|
const $scope3_id = _scope_id();
|
|
14307
|
-
_html(`<div${_attr_class("
|
|
14348
|
+
_html(`<div${_attr_class("_ht")}>`);
|
|
14308
14349
|
_if(() => {
|
|
14309
14350
|
if (dir) {
|
|
14310
14351
|
const $scope5_id = _scope_id();
|
|
@@ -14315,11 +14356,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14315
14356
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14316
14357
|
_for_of(files, ({ file, name }) => {
|
|
14317
14358
|
const $scope4_id = _scope_id();
|
|
14318
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14359
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_hu", "_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("_hw")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14319
14360
|
_if(() => {
|
|
14320
14361
|
if (newKeys.has(file.key)) {
|
|
14321
14362
|
const $scope6_id = _scope_id();
|
|
14322
|
-
_html(`<span${_attr_class(["_A", "
|
|
14363
|
+
_html(`<span${_attr_class(["_A", "_hz"])} title="Changed since your last visit"></span>`);
|
|
14323
14364
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14324
14365
|
return 0;
|
|
14325
14366
|
}
|
|
@@ -14329,7 +14370,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14329
14370
|
const $scope7_id = _scope_id();
|
|
14330
14371
|
icon_comment_default({
|
|
14331
14372
|
size: 12,
|
|
14332
|
-
class: "
|
|
14373
|
+
class: "_hA"
|
|
14333
14374
|
});
|
|
14334
14375
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14335
14376
|
return 0;
|
|
@@ -14354,7 +14395,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14354
14395
|
_if(() => {
|
|
14355
14396
|
if (!input.files.length) {
|
|
14356
14397
|
const $scope8_id = _scope_id();
|
|
14357
|
-
_html(`<p${_attr_class("
|
|
14398
|
+
_html(`<p${_attr_class("_hy")}>No files match.</p>`);
|
|
14358
14399
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14359
14400
|
return 0;
|
|
14360
14401
|
}
|
|
@@ -14894,11 +14935,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14894
14935
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
14895
14936
|
}
|
|
14896
14937
|
}, "m33", $scope0_id);
|
|
14897
|
-
_html(`<div${_attr_class("
|
|
14938
|
+
_html(`<div${_attr_class("_el")}><div${_attr_class("_eq")}><div${_attr_class("_er")}><div${_attr_class(["_eB", { ["_eA"]: !comments.length }])}>`);
|
|
14898
14939
|
_if(() => {
|
|
14899
14940
|
if (input.onExit) {
|
|
14900
14941
|
const $scope1_id = _scope_id();
|
|
14901
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
14942
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_es"])} title="Back to terminal (Esc)">`);
|
|
14902
14943
|
icon_back_default({ size: 14 });
|
|
14903
14944
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
14904
14945
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -14909,7 +14950,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14909
14950
|
_if(() => {
|
|
14910
14951
|
if (comments.length) {
|
|
14911
14952
|
const $scope5_id = _scope_id();
|
|
14912
|
-
_html(`<span${_attr_class("
|
|
14953
|
+
_html(`<span${_attr_class("_eu")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
14913
14954
|
writeScope($scope5_id, {});
|
|
14914
14955
|
return 0;
|
|
14915
14956
|
}
|
|
@@ -14917,7 +14958,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14917
14958
|
_if(() => {
|
|
14918
14959
|
if (comments.length) {
|
|
14919
14960
|
const $scope2_id = _scope_id();
|
|
14920
|
-
_html(`<span${_attr_class("
|
|
14961
|
+
_html(`<span${_attr_class("_et")}>`);
|
|
14921
14962
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
14922
14963
|
const $childScope = _peek_scope_id();
|
|
14923
14964
|
diff_send_default({
|
|
@@ -14930,14 +14971,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14930
14971
|
return 0;
|
|
14931
14972
|
}
|
|
14932
14973
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
14933
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
14974
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_ep")}>`);
|
|
14934
14975
|
_if(() => {
|
|
14935
14976
|
if (hasFiles) {
|
|
14936
14977
|
const $scope12_id = _scope_id();
|
|
14937
14978
|
_html(`<button${_attr_class([
|
|
14938
14979
|
treeToggle,
|
|
14939
|
-
"
|
|
14940
|
-
{ ["
|
|
14980
|
+
"_en",
|
|
14981
|
+
{ ["_em"]: treeOpen }
|
|
14941
14982
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
14942
14983
|
icon_sidebar_default({ size: 14 });
|
|
14943
14984
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -14946,7 +14987,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14946
14987
|
return 0;
|
|
14947
14988
|
}
|
|
14948
14989
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
14949
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14990
|
+
_html(`<button${_attr_class([iconBtnRow, "_en"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
14950
14991
|
_set_serialize_reason(1);
|
|
14951
14992
|
const $childScope2 = _peek_scope_id();
|
|
14952
14993
|
icon_refresh_default({
|
|
@@ -14957,19 +14998,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14957
14998
|
_if(() => {
|
|
14958
14999
|
if (hasFiles) {
|
|
14959
15000
|
const $scope13_id = _scope_id();
|
|
14960
|
-
_html(`<button${_attr_class(["_q", "
|
|
15001
|
+
_html(`<button${_attr_class(["_q", "_eK"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
14961
15002
|
_script($scope13_id, "m53");
|
|
14962
15003
|
writeScope($scope13_id, {});
|
|
14963
15004
|
return 0;
|
|
14964
15005
|
}
|
|
14965
15006
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
14966
|
-
_html(`<span${_attr_class(["_o", "
|
|
15007
|
+
_html(`<span${_attr_class(["_o", "_eC"])}>`);
|
|
14967
15008
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
14968
15009
|
setScope(v);
|
|
14969
15010
|
}, "m0", $scope0_id), () => {
|
|
14970
|
-
_html(`<select${_attr_class(["_p", "
|
|
15011
|
+
_html(`<select${_attr_class(["_p", "_eD"])} 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>`);
|
|
14971
15012
|
});
|
|
14972
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15013
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_ey", { ["_ex"]: !findOpen }])}>`);
|
|
14973
15014
|
_set_serialize_reason(2);
|
|
14974
15015
|
const $childScope3 = _peek_scope_id();
|
|
14975
15016
|
let findFocus = diff_find_default({
|
|
@@ -14990,8 +15031,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14990
15031
|
const $scope14_id = _scope_id();
|
|
14991
15032
|
_html(`<button${_attr_class([
|
|
14992
15033
|
iconBtnRow,
|
|
14993
|
-
"
|
|
14994
|
-
"
|
|
15034
|
+
"_ew",
|
|
15035
|
+
"_en"
|
|
14995
15036
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
14996
15037
|
icon_search_default({ size: 14 });
|
|
14997
15038
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15000,7 +15041,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15000
15041
|
return 0;
|
|
15001
15042
|
}
|
|
15002
15043
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15003
|
-
_html(`</div></div><div${_attr_class("
|
|
15044
|
+
_html(`</div></div><div${_attr_class("_ez")} data-diff-main>`);
|
|
15004
15045
|
_if(() => {
|
|
15005
15046
|
if (error) {
|
|
15006
15047
|
const $scope6_id = _scope_id();
|
|
@@ -15023,7 +15064,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15023
15064
|
_if(() => {
|
|
15024
15065
|
if (!repos && loading) {
|
|
15025
15066
|
const $scope15_id = _scope_id();
|
|
15026
|
-
_html(`<div${_attr_class("
|
|
15067
|
+
_html(`<div${_attr_class("_eF")} aria-hidden=true><div${_attr_class(["_eG", "_eH"])}></div><div${_attr_class(["_eG", "_eI"])}></div><div${_attr_class(["_eG", "_eJ"])}></div><div${_attr_class(["_eG", "_eI"])}></div><div${_attr_class(["_eG", "_eJ"])}></div></div>`);
|
|
15027
15068
|
writeScope($scope15_id, {});
|
|
15028
15069
|
return 0;
|
|
15029
15070
|
}
|
|
@@ -15053,12 +15094,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15053
15094
|
_if(() => {
|
|
15054
15095
|
if (repos && !allFiles.length) {
|
|
15055
15096
|
const $scope11_id = _scope_id();
|
|
15056
|
-
_html(`<p${_attr_class("
|
|
15097
|
+
_html(`<p${_attr_class("_bK")}>${_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>`);
|
|
15057
15098
|
writeScope($scope11_id, {});
|
|
15058
15099
|
return 0;
|
|
15059
15100
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
15060
15101
|
const $scope8_id = _scope_id();
|
|
15061
|
-
_html(`<p${_attr_class("
|
|
15102
|
+
_html(`<p${_attr_class("_bK")}>${_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>`);
|
|
15062
15103
|
writeScope($scope8_id, {});
|
|
15063
15104
|
return 1;
|
|
15064
15105
|
}
|
|
@@ -15425,9 +15466,9 @@ function parseInvite(text) {
|
|
|
15425
15466
|
}
|
|
15426
15467
|
//#endregion
|
|
15427
15468
|
//#region src/tags/manage-workspace.css.ts
|
|
15428
|
-
var content$1 = "
|
|
15429
|
-
var pageMeta = "
|
|
15430
|
-
var pathMeta = "
|
|
15469
|
+
var content$1 = "_cS _cj";
|
|
15470
|
+
var pageMeta = "_cT _co";
|
|
15471
|
+
var pathMeta = "_cW _y";
|
|
15431
15472
|
//#endregion
|
|
15432
15473
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15433
15474
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -15445,8 +15486,8 @@ var icon_clipboard_default = _template("V", (input) => {
|
|
|
15445
15486
|
});
|
|
15446
15487
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15447
15488
|
});
|
|
15448
|
-
var resultRow = "
|
|
15449
|
-
var resultBranch = "
|
|
15489
|
+
var resultRow = "_gl _I";
|
|
15490
|
+
var resultBranch = "_gn _4 _l";
|
|
15450
15491
|
//#endregion
|
|
15451
15492
|
//#region src/tags/icons/icon-branch.marko
|
|
15452
15493
|
var icon_branch_default = _template("R", (input) => {
|
|
@@ -15476,11 +15517,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15476
15517
|
let branchFilter = "";
|
|
15477
15518
|
let reloadTick = 0;
|
|
15478
15519
|
let refreshing = false;
|
|
15479
|
-
_html(`<div${_attr_class("
|
|
15520
|
+
_html(`<div${_attr_class("_gp")}>`);
|
|
15480
15521
|
_if(() => {
|
|
15481
15522
|
{
|
|
15482
15523
|
const $scope4_id = _scope_id();
|
|
15483
|
-
_html(`<p${_attr_class("
|
|
15524
|
+
_html(`<p${_attr_class("_bJ")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15484
15525
|
writeScope($scope4_id, {});
|
|
15485
15526
|
return 0;
|
|
15486
15527
|
}
|
|
@@ -15581,18 +15622,18 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15581
15622
|
_resume_branch($scope8_id);
|
|
15582
15623
|
}, $scope0_id) };
|
|
15583
15624
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
15584
|
-
_html(`<div${_attr_class([compact ? "
|
|
15625
|
+
_html(`<div${_attr_class([compact ? "_eL" : "_gf", { ["_eM"]: compact && !input$2.open }])}>`);
|
|
15585
15626
|
_if(() => {
|
|
15586
15627
|
if (!compact && ssoPending.length) {
|
|
15587
15628
|
const $scope10_id = _scope_id();
|
|
15588
|
-
_html(`<div${_attr_class("
|
|
15629
|
+
_html(`<div${_attr_class("_gg")}>`);
|
|
15589
15630
|
ssoBlock.content({});
|
|
15590
15631
|
_html("</div>");
|
|
15591
15632
|
writeScope($scope10_id, {});
|
|
15592
15633
|
return 0;
|
|
15593
15634
|
}
|
|
15594
15635
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
15595
|
-
_html(`<label${_attr_class(["_1", compact && "
|
|
15636
|
+
_html(`<label${_attr_class(["_1", compact && "_eN"])}>`);
|
|
15596
15637
|
icon_search_default({
|
|
15597
15638
|
size: 14,
|
|
15598
15639
|
class: "_2"
|
|
@@ -15604,12 +15645,12 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15604
15645
|
}, "v0", $scope0_id))}${_attr_class([
|
|
15605
15646
|
compact ? "_Z" : inputLg,
|
|
15606
15647
|
"_3",
|
|
15607
|
-
compact && "
|
|
15648
|
+
compact && "_eO"
|
|
15608
15649
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "e")}</label>${_el_resume($scope0_id, "c", $sg__input_compact)}`);
|
|
15609
15650
|
_if(() => {
|
|
15610
15651
|
if (compact) {
|
|
15611
15652
|
const $scope1_id = _scope_id();
|
|
15612
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15653
|
+
_html(`<button${_attr_class([iconBtnRow, "_eP"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15613
15654
|
icon_xmark_default({ size: 12 });
|
|
15614
15655
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
15615
15656
|
_script($scope1_id, "v14");
|
|
@@ -15617,11 +15658,11 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15617
15658
|
return 0;
|
|
15618
15659
|
}
|
|
15619
15660
|
}, $scope0_id, "f", $sg__input_compact__OR__input_open, $sg__input_compact, 1, 0, 1);
|
|
15620
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
15661
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_gh"])}${_attr("hidden", !hasBody || compact && !input$2.open)}>`);
|
|
15621
15662
|
_if(() => {
|
|
15622
15663
|
if (compact && ssoPending.length) {
|
|
15623
15664
|
const $scope11_id = _scope_id();
|
|
15624
|
-
_html(`<div${_attr_class("
|
|
15665
|
+
_html(`<div${_attr_class("_gg")}>`);
|
|
15625
15666
|
ssoBlock.content({});
|
|
15626
15667
|
_html("</div>");
|
|
15627
15668
|
writeScope($scope11_id, {});
|
|
@@ -15631,16 +15672,16 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15631
15672
|
_if(() => {
|
|
15632
15673
|
if (pasted) {
|
|
15633
15674
|
const $scope2_id = _scope_id();
|
|
15634
|
-
_html(`<ul${_attr_class("
|
|
15675
|
+
_html(`<ul${_attr_class("_gi")}><li><div${_attr_class(["_gk", "_gj"])}><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)`)}>`);
|
|
15635
15676
|
icon_plus_default({
|
|
15636
15677
|
size: 12,
|
|
15637
|
-
class: "
|
|
15678
|
+
class: "_gr"
|
|
15638
15679
|
});
|
|
15639
|
-
_html(`<span${_attr_class("
|
|
15680
|
+
_html(`<span${_attr_class("_gs")}>${_text_resume($scope2_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
15640
15681
|
_if(() => {
|
|
15641
15682
|
if (pastedForkable) {
|
|
15642
15683
|
const $scope9_id = _scope_id();
|
|
15643
|
-
_html(`<button${_attr_class(["
|
|
15684
|
+
_html(`<button${_attr_class(["_go", { ["_gm"]: 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"}>`);
|
|
15644
15685
|
_if(() => {
|
|
15645
15686
|
if (pasteWillFork) {
|
|
15646
15687
|
const $scope13_id = _scope_id();
|
|
@@ -15660,7 +15701,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15660
15701
|
return 0;
|
|
15661
15702
|
}
|
|
15662
15703
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
15663
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15704
|
+
_html(`<button${_attr_class([resultBranch, { ["_gm"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15664
15705
|
icon_branch_default({ size: 12 });
|
|
15665
15706
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
15666
15707
|
_if(() => {
|
|
@@ -15687,7 +15728,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15687
15728
|
return 0;
|
|
15688
15729
|
} else if (filter && !catalog) {
|
|
15689
15730
|
const $scope12_id = _scope_id();
|
|
15690
|
-
_html(`<p${_attr_class("
|
|
15731
|
+
_html(`<p${_attr_class("_bJ")}>Loading repos…</p>`);
|
|
15691
15732
|
writeScope($scope12_id, {});
|
|
15692
15733
|
return 1;
|
|
15693
15734
|
}
|
|
@@ -15695,15 +15736,15 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15695
15736
|
_if(() => {
|
|
15696
15737
|
if (results.length) {
|
|
15697
15738
|
const $scope4_id = _scope_id();
|
|
15698
|
-
_html(`<ul${_attr_class("
|
|
15739
|
+
_html(`<ul${_attr_class("_gi")}>`);
|
|
15699
15740
|
_for_of(results, (repo, i) => {
|
|
15700
15741
|
const $scope5_id = _scope_id();
|
|
15701
|
-
_html(`<li><div${_attr_class(["
|
|
15742
|
+
_html(`<li><div${_attr_class(["_gk", { ["_gj"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15702
15743
|
icon_plus_default({
|
|
15703
15744
|
size: 12,
|
|
15704
|
-
class: "
|
|
15745
|
+
class: "_gr"
|
|
15705
15746
|
});
|
|
15706
|
-
_html(`<span${_attr_class("
|
|
15747
|
+
_html(`<span${_attr_class("_gs")}>${_text_resume($scope5_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_gm"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15707
15748
|
icon_branch_default({ size: 12 });
|
|
15708
15749
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
15709
15750
|
_if(() => {
|
|
@@ -15738,7 +15779,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15738
15779
|
return 0;
|
|
15739
15780
|
} else if (filter && catalog && !pasted) {
|
|
15740
15781
|
const $scope7_id = _scope_id();
|
|
15741
|
-
_html(`<p${_attr_class("
|
|
15782
|
+
_html(`<p${_attr_class("_bJ")}>No repos match "${_text_resume($scope7_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
15742
15783
|
writeScope($scope7_id, {});
|
|
15743
15784
|
return 1;
|
|
15744
15785
|
}
|
|
@@ -15948,7 +15989,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15948
15989
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15949
15990
|
}, "q9", $scope0_id);
|
|
15950
15991
|
const titleId = _id();
|
|
15951
|
-
_html(`<div${_attr_class("
|
|
15992
|
+
_html(`<div${_attr_class("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><div${_attr_class(content$1)}>`);
|
|
15952
15993
|
_set_serialize_reason(286);
|
|
15953
15994
|
let $actions;
|
|
15954
15995
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q17", () => {
|
|
@@ -15984,7 +16025,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15984
16025
|
meta: attrTag({ content: _content("q16", () => {
|
|
15985
16026
|
_scope_reason();
|
|
15986
16027
|
const $scope15_id = _scope_id();
|
|
15987
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16028
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cU")}>${_text_resume($scope15_id, "c", ws.name)}</span>`);
|
|
15988
16029
|
_if(() => {
|
|
15989
16030
|
if (ws.status !== "active") {
|
|
15990
16031
|
const $scope19_id = _scope_id();
|
|
@@ -15993,7 +16034,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15993
16034
|
return 0;
|
|
15994
16035
|
}
|
|
15995
16036
|
}, $scope15_id, "d", 1, 1, 1, 0, 1);
|
|
15996
|
-
_html(`<span${_attr_class("
|
|
16037
|
+
_html(`<span${_attr_class("_cV")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope15_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope15_id, "a")}`);
|
|
15997
16038
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope15_id, { _: _scope_with_id($scope0_id) })))));
|
|
15998
16039
|
_resume_branch($scope15_id);
|
|
15999
16040
|
}, $scope0_id) })
|
|
@@ -16021,32 +16062,32 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16021
16062
|
_if(() => {
|
|
16022
16063
|
if (pendingAction && actionStep) {
|
|
16023
16064
|
const $scope11_id = _scope_id();
|
|
16024
|
-
_html(`<p${_attr_class("
|
|
16065
|
+
_html(`<p${_attr_class("_bx")}><span${_attr_class("_G")}></span>${_text_resume($scope11_id, "c", actionStep)}</p>`);
|
|
16025
16066
|
writeScope($scope11_id, {});
|
|
16026
16067
|
return 0;
|
|
16027
16068
|
}
|
|
16028
16069
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16029
|
-
_html(`<section${_attr_class("
|
|
16070
|
+
_html(`<section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Workspace</h2></div><div${_attr_class(["_bD", "_d5"])}><div${_attr_class(["_d6", "_d7"])}>`);
|
|
16030
16071
|
_if(() => {
|
|
16031
16072
|
if (ws.status === "active") {
|
|
16032
16073
|
const $scope8_id = _scope_id();
|
|
16033
|
-
_html(`<span${_attr_class("
|
|
16074
|
+
_html(`<span${_attr_class("_d9")}>Hide from the list. Worktrees stay on disk.</span><button type=button${_attr_class(btnSm)}${_attr("disabled", !!pendingAction)}>${_text_resume($scope8_id, "c", pendingAction === "archive" ? "Archiving…" : "Archive")}</button>${_el_resume($scope8_id, "b")}`);
|
|
16034
16075
|
_script($scope8_id, "q19");
|
|
16035
16076
|
writeScope($scope8_id, {});
|
|
16036
16077
|
return 0;
|
|
16037
16078
|
} else {
|
|
16038
16079
|
const $scope9_id = _scope_id();
|
|
16039
|
-
_html(`<span${_attr_class("
|
|
16080
|
+
_html(`<span${_attr_class("_d9")}>Archived and hidden from the list.</span><button type=button${_attr_class([btnSm, "_r"])}${_attr("disabled", !!pendingAction)}>${_text_resume($scope9_id, "c", pendingAction === "restore" ? "Restoring…" : "Restore")}</button>${_el_resume($scope9_id, "b")}`);
|
|
16040
16081
|
_script($scope9_id, "q20");
|
|
16041
16082
|
writeScope($scope9_id, {});
|
|
16042
16083
|
return 1;
|
|
16043
16084
|
}
|
|
16044
16085
|
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
16045
|
-
_html(`<div${_attr_class(["
|
|
16086
|
+
_html(`<div${_attr_class(["_d6", "_d7"])}><span${_attr_class("_d9")}>Remove the workspace and its worktrees. Branches on origin stay.</span><button type=button${_attr_class([
|
|
16046
16087
|
btnSm,
|
|
16047
16088
|
"_t",
|
|
16048
16089
|
{ ["_s"]: confirmingDelete }
|
|
16049
|
-
])}${_attr("disabled", !!pendingAction)}>${_text_resume($scope0_id, "o", pendingAction === "delete" ? "Deleting…" : "Delete")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("
|
|
16090
|
+
])}${_attr("disabled", !!pendingAction)}>${_text_resume($scope0_id, "o", pendingAction === "delete" ? "Deleting…" : "Delete")}</button>${_el_resume($scope0_id, "n")}</div></div></section><section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "t", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class(iconBtnRow)} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16050
16091
|
icon_plus_default({ size: 16 });
|
|
16051
16092
|
_html(`</button>${_el_resume($scope0_id, "v")}`);
|
|
16052
16093
|
_set_serialize_reason(66);
|
|
@@ -16077,13 +16118,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16077
16118
|
class: catalogRefreshing && "_F"
|
|
16078
16119
|
});
|
|
16079
16120
|
_html(`</button>${_el_resume($scope0_id, "z")}</div><ul${_attr_class([
|
|
16080
|
-
"
|
|
16081
|
-
"
|
|
16082
|
-
"
|
|
16121
|
+
"_bD",
|
|
16122
|
+
"_d5",
|
|
16123
|
+
"_ei"
|
|
16083
16124
|
])}>`);
|
|
16084
16125
|
_for_of(ws.repos, (row) => {
|
|
16085
16126
|
const $scope1_id = _scope_id();
|
|
16086
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16127
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bE")}><span${_attr_class(["_bF", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_bG")}><a${_attr_class(["_bH", "_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")}`);
|
|
16087
16128
|
_if(() => {
|
|
16088
16129
|
if (row.base_branch !== row.default_branch) {
|
|
16089
16130
|
const $scope22_id = _scope_id();
|
|
@@ -16104,7 +16145,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16104
16145
|
} else {
|
|
16105
16146
|
const $scope10_id = _scope_id();
|
|
16106
16147
|
_html(`<button${_attr_class([
|
|
16107
|
-
"
|
|
16148
|
+
"_bI",
|
|
16108
16149
|
"_8",
|
|
16109
16150
|
"_9",
|
|
16110
16151
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -16137,13 +16178,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16137
16178
|
}, "full_name", $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
16138
16179
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16139
16180
|
const $scope26_id = _scope_id();
|
|
16140
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16181
|
+
_html(`<li${_attr_class([flatCardRow, "_bC"])}><span${_attr_class("_G")}></span><div${_attr_class("_bE")}><span${_attr_class("_bH")}>Adding ${_text_resume($scope26_id, "e", name, 2)}…</span></div></li>`);
|
|
16141
16182
|
writeScope($scope26_id, {});
|
|
16142
16183
|
}, (n) => n, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
16143
16184
|
_if(() => {
|
|
16144
16185
|
if (!ws.repos.length && !busy.size) {
|
|
16145
16186
|
const $scope27_id = _scope_id();
|
|
16146
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16187
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_bH")}>No repos yet. Add one to start.</span></li>`);
|
|
16147
16188
|
writeScope($scope27_id, {});
|
|
16148
16189
|
return 0;
|
|
16149
16190
|
}
|
|
@@ -16154,7 +16195,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16154
16195
|
_if(() => {
|
|
16155
16196
|
if (wsSkills.length || repoSkills.length) {
|
|
16156
16197
|
const $scope2_id = _scope_id();
|
|
16157
|
-
_html(`<section${_attr_class("
|
|
16198
|
+
_html(`<section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Skills</h2>`);
|
|
16158
16199
|
_if(() => {
|
|
16159
16200
|
if (wsSkills.length) {
|
|
16160
16201
|
const $scope28_id = _scope_id();
|
|
@@ -16163,7 +16204,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16163
16204
|
return 0;
|
|
16164
16205
|
}
|
|
16165
16206
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
16166
|
-
_html(`</div><ul${_attr_class("
|
|
16207
|
+
_html(`</div><ul${_attr_class("_dt")}>`);
|
|
16167
16208
|
_for_of(wsSkills, (s) => {
|
|
16168
16209
|
const $scope3_id = _scope_id();
|
|
16169
16210
|
const $for_content2__s_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -16271,7 +16312,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16271
16312
|
_if(() => {
|
|
16272
16313
|
if (repoSkills.length) {
|
|
16273
16314
|
const $scope4_id = _scope_id();
|
|
16274
|
-
_html(`<ul${_attr_class("
|
|
16315
|
+
_html(`<ul${_attr_class("_dt")}>`);
|
|
16275
16316
|
_for_of(repoSkills, (s) => {
|
|
16276
16317
|
const $scope5_id = _scope_id();
|
|
16277
16318
|
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
@@ -16327,22 +16368,22 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16327
16368
|
_if(() => {
|
|
16328
16369
|
if (running.length) {
|
|
16329
16370
|
const $scope17_id = _scope_id();
|
|
16330
|
-
_html(`<section${_attr_class("
|
|
16331
|
-
"
|
|
16332
|
-
"
|
|
16333
|
-
"
|
|
16371
|
+
_html(`<section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope17_id, "e", running.length)}</span></div><ul${_attr_class([
|
|
16372
|
+
"_bD",
|
|
16373
|
+
"_d5",
|
|
16374
|
+
"_ei"
|
|
16334
16375
|
])}>`);
|
|
16335
16376
|
_for_of(running, (p) => {
|
|
16336
16377
|
const $scope18_id = _scope_id();
|
|
16337
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16338
|
-
"
|
|
16378
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bE")}${_attr("title", p.args)}><span${_attr_class([
|
|
16379
|
+
"_bF",
|
|
16339
16380
|
"_y",
|
|
16340
|
-
"
|
|
16381
|
+
"_cX"
|
|
16341
16382
|
])}>${_text_resume($scope18_id, "d", p.cmd)}</span>`);
|
|
16342
16383
|
_if(() => {
|
|
16343
16384
|
if (p.ports.length) {
|
|
16344
16385
|
const $scope36_id = _scope_id();
|
|
16345
|
-
_html(`<span${_attr_class("
|
|
16386
|
+
_html(`<span${_attr_class("_bG")}>`);
|
|
16346
16387
|
_for_of(p.ports, (port) => {
|
|
16347
16388
|
const $scope37_id = _scope_id();
|
|
16348
16389
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:${_text_resume($scope37_id, "b", port, 2)}</button>${_el_resume($scope37_id, "a")}`);
|
|
@@ -16353,7 +16394,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16353
16394
|
return 0;
|
|
16354
16395
|
}
|
|
16355
16396
|
}, $scope18_id, "e", 1, 1, 1, 0, 1);
|
|
16356
|
-
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["
|
|
16397
|
+
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["_bI", "_8"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16357
16398
|
icon_xmark_default({ size: 14 });
|
|
16358
16399
|
_html(`</button>${_el_resume($scope18_id, "f")}</li>`);
|
|
16359
16400
|
_script($scope18_id, "q30");
|
|
@@ -16435,11 +16476,11 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16435
16476
|
});
|
|
16436
16477
|
//#endregion
|
|
16437
16478
|
//#region src/tags/new-workspace.css.ts
|
|
16438
|
-
var content = "
|
|
16439
|
-
var curBase = "
|
|
16440
|
-
var archived = "
|
|
16441
|
-
var archivedHint = "
|
|
16442
|
-
var archivedCard = "
|
|
16479
|
+
var content = "_cz _cj";
|
|
16480
|
+
var curBase = "_cH _Y _X";
|
|
16481
|
+
var archived = "_cM _by";
|
|
16482
|
+
var archivedHint = "_cN _X";
|
|
16483
|
+
var archivedCard = "_cO _bD";
|
|
16443
16484
|
//#endregion
|
|
16444
16485
|
//#region src/tags/icons/icon-group.marko
|
|
16445
16486
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -16459,8 +16500,8 @@ var icon_group_default = _template("eb", (input) => {
|
|
|
16459
16500
|
});
|
|
16460
16501
|
//#endregion
|
|
16461
16502
|
//#region src/tags/join-dialog.css.ts
|
|
16462
|
-
var dlg = "
|
|
16463
|
-
var hint = "
|
|
16503
|
+
var dlg = "_f4 _f0";
|
|
16504
|
+
var hint = "_f5 _X";
|
|
16464
16505
|
//#endregion
|
|
16465
16506
|
//#region src/tags/join-dialog.marko
|
|
16466
16507
|
var api$3;
|
|
@@ -16589,26 +16630,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16589
16630
|
content: _content("o12", () => {
|
|
16590
16631
|
_scope_reason();
|
|
16591
16632
|
const $scope1_id = _scope_id();
|
|
16592
|
-
_html(`<h2${_attr_class("
|
|
16633
|
+
_html(`<h2${_attr_class("_f1")}${_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([
|
|
16593
16634
|
"_Z",
|
|
16594
16635
|
"_y",
|
|
16595
|
-
"
|
|
16636
|
+
"_f7"
|
|
16596
16637
|
])} 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")}`);
|
|
16597
16638
|
_if(() => {
|
|
16598
16639
|
if (parsed.error) {
|
|
16599
16640
|
const $scope8_id = _scope_id();
|
|
16600
|
-
_html(`<p${_attr_class([hint, "
|
|
16641
|
+
_html(`<p${_attr_class([hint, "_f6"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16601
16642
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16602
16643
|
return 0;
|
|
16603
16644
|
} else if (parsed.ok) {
|
|
16604
16645
|
const $scope3_id = _scope_id();
|
|
16605
|
-
_html(`<ul${_attr_class("
|
|
16646
|
+
_html(`<ul${_attr_class("_f8")}>`);
|
|
16606
16647
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16607
16648
|
const $scope9_id = _scope_id();
|
|
16608
|
-
_html(`<li${_attr_class("
|
|
16649
|
+
_html(`<li${_attr_class("_f9")}><span${_attr_class("_f_")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16609
16650
|
writeScope($scope9_id, {});
|
|
16610
16651
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16611
|
-
_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("
|
|
16652
|
+
_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("_ga")}><span${_attr_class("_bM")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16612
16653
|
name = _new_name;
|
|
16613
16654
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16614
16655
|
_script($scope3_id, "o8");
|
|
@@ -16645,10 +16686,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16645
16686
|
_if(() => {
|
|
16646
16687
|
if (busy && steps$2.length) {
|
|
16647
16688
|
const $scope6_id = _scope_id();
|
|
16648
|
-
_html(`<ul${_attr_class("
|
|
16689
|
+
_html(`<ul${_attr_class("_gb")}>`);
|
|
16649
16690
|
_for_of(steps$2, (step$2, i) => {
|
|
16650
16691
|
const $scope7_id = _scope_id();
|
|
16651
|
-
_html(`<li${_attr_class(["
|
|
16692
|
+
_html(`<li${_attr_class(["_gd", { ["_gc"]: i === steps$2.length - 1 }])}>`);
|
|
16652
16693
|
_if(() => {
|
|
16653
16694
|
if (i === steps$2.length - 1) {
|
|
16654
16695
|
const $scope10_id = _scope_id();
|
|
@@ -16657,7 +16698,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16657
16698
|
return 0;
|
|
16658
16699
|
} else {
|
|
16659
16700
|
const $scope11_id = _scope_id();
|
|
16660
|
-
_html(`<span${_attr_class("
|
|
16701
|
+
_html(`<span${_attr_class("_ge")}>`);
|
|
16661
16702
|
icon_check_default({ size: 14 });
|
|
16662
16703
|
_html("</span>");
|
|
16663
16704
|
writeScope($scope11_id, {});
|
|
@@ -16814,7 +16855,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16814
16855
|
}
|
|
16815
16856
|
}, "s6", $scope0_id);
|
|
16816
16857
|
const titleId = _id();
|
|
16817
|
-
_html(`<div${_attr_class("
|
|
16858
|
+
_html(`<div${_attr_class("_ch")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_ci")}><div${_attr_class(content)}>`);
|
|
16818
16859
|
_set_serialize_reason({
|
|
16819
16860
|
0: _serialize_guard($scope0_reason, 2),
|
|
16820
16861
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16863,23 +16904,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16863
16904
|
return 0;
|
|
16864
16905
|
}
|
|
16865
16906
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
16866
|
-
_html(`<label${_attr_class("
|
|
16907
|
+
_html(`<label${_attr_class("_cC")}><span${_attr_class("_bM")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
16867
16908
|
name = _new_name;
|
|
16868
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
16909
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_by")}><div${_attr_class("_cD")}><h2${_attr_class("_bM")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
16869
16910
|
_set_serialize_reason(1);
|
|
16870
16911
|
const $childScope2 = _peek_scope_id();
|
|
16871
16912
|
icon_refresh_default({
|
|
16872
16913
|
size: 14,
|
|
16873
16914
|
class: catalogRefreshing && "_F"
|
|
16874
16915
|
});
|
|
16875
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
16916
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_cE")}>`);
|
|
16876
16917
|
_for_of(selected, (repo) => {
|
|
16877
16918
|
const $scope4_id = _scope_id();
|
|
16878
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
16919
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_cF")}>${_text_resume($scope4_id, "c", repoLabel(repo.fullName))}</span>`);
|
|
16879
16920
|
_if(() => {
|
|
16880
16921
|
if (repo.fork !== void 0) {
|
|
16881
16922
|
const $scope5_id = _scope_id();
|
|
16882
|
-
_html(`<button${_attr_class(["
|
|
16923
|
+
_html(`<button${_attr_class(["_cI", { ["_cG"]: 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)}>`);
|
|
16883
16924
|
_if(() => {
|
|
16884
16925
|
if (repo.fork) {
|
|
16885
16926
|
const $scope14_id = _scope_id();
|
|
@@ -16902,7 +16943,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16902
16943
|
_html(`<button${_attr_class([
|
|
16903
16944
|
curBase,
|
|
16904
16945
|
"_y",
|
|
16905
|
-
{ ["
|
|
16946
|
+
{ ["_cG"]: branchesFor === repo.fullName }
|
|
16906
16947
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16907
16948
|
icon_branch_default({ size: 12 });
|
|
16908
16949
|
_html(`${_text_resume($scope4_id, "g", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "e")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -16938,7 +16979,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16938
16979
|
_if(() => {
|
|
16939
16980
|
if (!selected.length) {
|
|
16940
16981
|
const $scope16_id = _scope_id();
|
|
16941
|
-
_html(`<li${_attr_class("
|
|
16982
|
+
_html(`<li${_attr_class("_bJ")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
16942
16983
|
writeScope($scope16_id, {});
|
|
16943
16984
|
return 0;
|
|
16944
16985
|
}
|
|
@@ -16963,10 +17004,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16963
17004
|
_if(() => {
|
|
16964
17005
|
if (busy && steps.length) {
|
|
16965
17006
|
const $scope11_id = _scope_id();
|
|
16966
|
-
_html(`<ul${_attr_class("
|
|
17007
|
+
_html(`<ul${_attr_class("_cJ")}>`);
|
|
16967
17008
|
_for_of(steps, (step, i) => {
|
|
16968
17009
|
const $scope12_id = _scope_id();
|
|
16969
|
-
_html(`<li${_attr_class(["
|
|
17010
|
+
_html(`<li${_attr_class(["_cP", { ["_cK"]: i === steps.length - 1 }])}>`);
|
|
16970
17011
|
_if(() => {
|
|
16971
17012
|
if (i === steps.length - 1) {
|
|
16972
17013
|
const $scope17_id = _scope_id();
|
|
@@ -16975,7 +17016,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16975
17016
|
return 0;
|
|
16976
17017
|
} else {
|
|
16977
17018
|
const $scope18_id = _scope_id();
|
|
16978
|
-
_html(`<span${_attr_class("
|
|
17019
|
+
_html(`<span${_attr_class("_cL")}>`);
|
|
16979
17020
|
icon_check_default({ size: 14 });
|
|
16980
17021
|
_html("</span>");
|
|
16981
17022
|
writeScope($scope18_id, {});
|
|
@@ -16989,7 +17030,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16989
17030
|
return 0;
|
|
16990
17031
|
}
|
|
16991
17032
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
16992
|
-
_html(`<div${_attr_class("
|
|
17033
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
16993
17034
|
_if(() => {
|
|
16994
17035
|
if (input.onExit || busy) {
|
|
16995
17036
|
const $scope1_id = _scope_id();
|
|
@@ -17002,15 +17043,15 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17002
17043
|
_html(`<button type=button${_attr_class([
|
|
17003
17044
|
btnLg,
|
|
17004
17045
|
"_r",
|
|
17005
|
-
"
|
|
17046
|
+
"_cB"
|
|
17006
17047
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
17007
17048
|
_if(() => {
|
|
17008
17049
|
if (archived$1.length) {
|
|
17009
17050
|
const $scope6_id = _scope_id();
|
|
17010
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17051
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_cD")}><h2${_attr_class("_bM")}>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("_bB")}>`);
|
|
17011
17052
|
_for_of(archived$1, (ws) => {
|
|
17012
17053
|
const $scope7_id = _scope_id();
|
|
17013
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
17054
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bE")}><span${_attr_class("_bF")}>${_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(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
17014
17055
|
_if(() => {
|
|
17015
17056
|
if (restoring === ws.id) {
|
|
17016
17057
|
const $scope19_id = _scope_id();
|
|
@@ -17090,12 +17131,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17090
17131
|
});
|
|
17091
17132
|
_resume_branch($scope0_id);
|
|
17092
17133
|
});
|
|
17093
|
-
var kbtn = "
|
|
17094
|
-
var sessOpen = "
|
|
17095
|
-
var sessRename = "
|
|
17096
|
-
var dpadPaste = "
|
|
17097
|
-
var repeat = "
|
|
17098
|
-
var dpadEsc = "
|
|
17134
|
+
var kbtn = "_cy _6 _l";
|
|
17135
|
+
var sessOpen = "_dO _I";
|
|
17136
|
+
var sessRename = "_dS _J";
|
|
17137
|
+
var dpadPaste = "_d0 _dZ";
|
|
17138
|
+
var repeat = "_d1 _dZ";
|
|
17139
|
+
var dpadEsc = "_d3 _dZ";
|
|
17099
17140
|
//#endregion
|
|
17100
17141
|
//#region src/tags/term-find.marko
|
|
17101
17142
|
var term_find_default = _template("D", (input) => {
|
|
@@ -17132,19 +17173,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
17132
17173
|
const canStep = hasQuery && open;
|
|
17133
17174
|
const keybar = input.placement === "keybar";
|
|
17134
17175
|
_html(`<div${_attr_class([
|
|
17135
|
-
"
|
|
17136
|
-
keybar ? "
|
|
17137
|
-
!open && "
|
|
17138
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17176
|
+
"_hU",
|
|
17177
|
+
keybar ? "_hW" : "_hV",
|
|
17178
|
+
!open && "_hY"
|
|
17179
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_hP", keybar ? "_hX" : "_hR"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17139
17180
|
if (!open) return;
|
|
17140
17181
|
query = v;
|
|
17141
17182
|
live.query = v;
|
|
17142
17183
|
run(0);
|
|
17143
|
-
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17184
|
+
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "_hZ"])} 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 && "_h0"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17144
17185
|
icon_arrow_up_default({ size: 14 });
|
|
17145
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17186
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_h0"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17146
17187
|
icon_arrow_down_default({ size: 14 });
|
|
17147
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17188
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_h0"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17148
17189
|
icon_xmark_default({ size: 14 });
|
|
17149
17190
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
17150
17191
|
const $return = focusInput;
|
|
@@ -17565,7 +17606,7 @@ var term_default = _template("E", (input) => {
|
|
|
17565
17606
|
trapOpen = true;
|
|
17566
17607
|
}
|
|
17567
17608
|
}, "E13", $scope0_id);
|
|
17568
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17609
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dA")}><div${_attr_class("_dB")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17569
17610
|
_if(() => {
|
|
17570
17611
|
if (findOpen) {
|
|
17571
17612
|
const $scope12_id = _scope_id();
|
|
@@ -17595,7 +17636,7 @@ var term_default = _template("E", (input) => {
|
|
|
17595
17636
|
_if(() => {
|
|
17596
17637
|
if (uploading) {
|
|
17597
17638
|
const $scope21_id = _scope_id();
|
|
17598
|
-
_html(`<div${_attr_class("
|
|
17639
|
+
_html(`<div${_attr_class("_dH")}>uploading…</div>`);
|
|
17599
17640
|
writeScope($scope21_id, {});
|
|
17600
17641
|
return 0;
|
|
17601
17642
|
}
|
|
@@ -17603,7 +17644,7 @@ var term_default = _template("E", (input) => {
|
|
|
17603
17644
|
_if(() => {
|
|
17604
17645
|
if (copiedFlash) {
|
|
17605
17646
|
const $scope22_id = _scope_id();
|
|
17606
|
-
_html(`<div${_attr_class("
|
|
17647
|
+
_html(`<div${_attr_class("_dG")}>Copied</div>`);
|
|
17607
17648
|
writeScope($scope22_id, {});
|
|
17608
17649
|
return 0;
|
|
17609
17650
|
}
|
|
@@ -17612,7 +17653,7 @@ var term_default = _template("E", (input) => {
|
|
|
17612
17653
|
_if(() => {
|
|
17613
17654
|
if (trapOpen) {
|
|
17614
17655
|
const $scope11_id = _scope_id();
|
|
17615
|
-
_html(`<div${_attr_class("
|
|
17656
|
+
_html(`<div${_attr_class("_dI")}><div${_attr_class("_dJ")}><p${_attr_class("_d4")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
17616
17657
|
_script($scope11_id, "E28");
|
|
17617
17658
|
_script($scope11_id, "E29");
|
|
17618
17659
|
writeScope($scope11_id, {});
|
|
@@ -17690,7 +17731,7 @@ var term_default = _template("E", (input) => {
|
|
|
17690
17731
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
17691
17732
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
17692
17733
|
}, "E19", $scope4_id);
|
|
17693
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17734
|
+
_html(`<button${_attr_class([kbtn, "_dK"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
17694
17735
|
_set_serialize_reason({
|
|
17695
17736
|
1: $sg__input_agent__OR__input_sessionState,
|
|
17696
17737
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -17704,7 +17745,7 @@ var term_default = _template("E", (input) => {
|
|
|
17704
17745
|
"_A",
|
|
17705
17746
|
"_bc",
|
|
17706
17747
|
phase[sessionPhase(input.sessionState)]
|
|
17707
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 6))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["__", "
|
|
17748
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 6))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["__", "_dL"])}>`);
|
|
17708
17749
|
_if(() => {
|
|
17709
17750
|
if ((input.sessions || []).length > 0) {
|
|
17710
17751
|
const $scope5_id = _scope_id();
|
|
@@ -17720,7 +17761,7 @@ var term_default = _template("E", (input) => {
|
|
|
17720
17761
|
const $scope6_id = _scope_id();
|
|
17721
17762
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17722
17763
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
17723
|
-
_html(`<div${_attr_class(["
|
|
17764
|
+
_html(`<div${_attr_class(["_dN", { ["_dM"]: s.id === input.sessionId }])}>`);
|
|
17724
17765
|
_if(() => {
|
|
17725
17766
|
if (renamingId === s.id) {
|
|
17726
17767
|
const $scope24_id = _scope_id();
|
|
@@ -17752,7 +17793,7 @@ var term_default = _template("E", (input) => {
|
|
|
17752
17793
|
agent: activeAgent(s),
|
|
17753
17794
|
size: 14
|
|
17754
17795
|
});
|
|
17755
|
-
_html(`<span${_attr_class("
|
|
17796
|
+
_html(`<span${_attr_class("_dP")}><span${_attr_class("_dR")}>${_text_resume($scope7_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17756
17797
|
_if(() => {
|
|
17757
17798
|
if (s.id === input.sessionId) {
|
|
17758
17799
|
const $scope23_id = _scope_id();
|
|
@@ -17764,7 +17805,7 @@ var term_default = _template("E", (input) => {
|
|
|
17764
17805
|
const $childScope6 = _peek_scope_id();
|
|
17765
17806
|
usage_pcts_default({
|
|
17766
17807
|
agent: plan,
|
|
17767
|
-
class: "
|
|
17808
|
+
class: "_dQ"
|
|
17768
17809
|
});
|
|
17769
17810
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
17770
17811
|
return 0;
|
|
@@ -17781,7 +17822,7 @@ var term_default = _template("E", (input) => {
|
|
|
17781
17822
|
_if(() => {
|
|
17782
17823
|
if (input.onRenameSession) {
|
|
17783
17824
|
const $scope25_id = _scope_id();
|
|
17784
|
-
_html(`<button${_attr_class(["
|
|
17825
|
+
_html(`<button${_attr_class(["_dT", "_dU"])} title="Rename session">`);
|
|
17785
17826
|
icon_edit_default({ size: 12 });
|
|
17786
17827
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
17787
17828
|
_script($scope25_id, "E32");
|
|
@@ -17793,7 +17834,7 @@ var term_default = _template("E", (input) => {
|
|
|
17793
17834
|
if (input.onCloseSession) {
|
|
17794
17835
|
const $scope8_id = _scope_id();
|
|
17795
17836
|
_html(`<button${_attr_class([
|
|
17796
|
-
"
|
|
17837
|
+
"_dT",
|
|
17797
17838
|
"_8",
|
|
17798
17839
|
{ ["_s"]: armedClose === s.id }
|
|
17799
17840
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -17835,7 +17876,7 @@ var term_default = _template("E", (input) => {
|
|
|
17835
17876
|
return 0;
|
|
17836
17877
|
}
|
|
17837
17878
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
17838
|
-
_html(`<div${_attr_class("
|
|
17879
|
+
_html(`<div${_attr_class("_dV")}><span${_attr_class("_dW")}>New session</span><div${_attr_class("_dX")}>`);
|
|
17839
17880
|
_for_of(["shell", ...input.agents || []], (agent) => {
|
|
17840
17881
|
const $scope9_id = _scope_id();
|
|
17841
17882
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -17880,9 +17921,9 @@ var term_default = _template("E", (input) => {
|
|
|
17880
17921
|
const dpadOpenBox = { open: false };
|
|
17881
17922
|
_html(`<button${_attr_class(kbtn)} title=${canKeys ? "\"More keys\"" : "\"Keys unavailable on this page\""} aria-haspopup=dialog${_attr("aria-controls", dpadId)}${_attr("disabled", !canKeys)}>`);
|
|
17882
17923
|
icon_dpad_default({ size: 16 });
|
|
17883
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
17924
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_cx"]: findLit }])}${findLit ? " title=\"Close find\"" : canKeys ? ` title=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " title=\"Find unavailable on this page\""}${findLit ? " aria-label=\"Close find\"" : canKeys ? ` aria-label=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " aria-label=\"Find unavailable on this page\""} aria-pressed=${findLit ? "true" : "false"}${_attr("disabled", !canKeys)}>`);
|
|
17884
17925
|
icon_search_default({ size: 16 });
|
|
17885
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
17926
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_cx"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
17886
17927
|
icon_keyboard_default({ size: 16 });
|
|
17887
17928
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
17888
17929
|
_script($scope10_id, "E38");
|
|
@@ -17898,7 +17939,7 @@ var term_default = _template("E", (input) => {
|
|
|
17898
17939
|
overlay: attrTag({ content: _content_resume("E49", () => {
|
|
17899
17940
|
_scope_reason();
|
|
17900
17941
|
const $scope15_id = _scope_id();
|
|
17901
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
17942
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_dY")}>`);
|
|
17902
17943
|
forOf(DPAD, (row) => {
|
|
17903
17944
|
const $scope16_id = _scope_id();
|
|
17904
17945
|
forOf(row, (cell) => {
|
|
@@ -17918,7 +17959,7 @@ var term_default = _template("E", (input) => {
|
|
|
17918
17959
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
17919
17960
|
} else {
|
|
17920
17961
|
const $scope19_id = _scope_id();
|
|
17921
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
17962
|
+
_html(`<button${_attr_class([repeat, { ["_d2"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
17922
17963
|
if (cell.icon === "arrow-up") {
|
|
17923
17964
|
_scope_id();
|
|
17924
17965
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -18247,10 +18288,10 @@ var work_view_default = _template("I", (input) => {
|
|
|
18247
18288
|
toggleDiff();
|
|
18248
18289
|
}
|
|
18249
18290
|
}, "I14", $scope0_id);
|
|
18250
|
-
_html(`<div${_attr_class(["
|
|
18251
|
-
["
|
|
18252
|
-
["
|
|
18253
|
-
}])}><div${_attr_class("
|
|
18291
|
+
_html(`<div${_attr_class(["_bP", {
|
|
18292
|
+
["_bN"]: view === "nav",
|
|
18293
|
+
["_bO"]: !input.active
|
|
18294
|
+
}])}><div${_attr_class("_bQ")}>`);
|
|
18254
18295
|
_if(() => {
|
|
18255
18296
|
if (error) {
|
|
18256
18297
|
const $scope9_id = _scope_id();
|
|
@@ -18273,7 +18314,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18273
18314
|
_if(() => {
|
|
18274
18315
|
if (diffMounted && ws) {
|
|
18275
18316
|
const $scope1_id = _scope_id();
|
|
18276
|
-
_html(`<div${_attr_class("
|
|
18317
|
+
_html(`<div${_attr_class("_bR")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
18277
18318
|
_set_serialize_reason({
|
|
18278
18319
|
0: $sg__input_workspace,
|
|
18279
18320
|
1: $sg__input_workspace,
|
|
@@ -18330,7 +18371,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18330
18371
|
_if(() => {
|
|
18331
18372
|
if (manageMounted && ws) {
|
|
18332
18373
|
const $scope2_id = _scope_id();
|
|
18333
|
-
_html(`<div${_attr_class("
|
|
18374
|
+
_html(`<div${_attr_class("_bR")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
18334
18375
|
_set_serialize_reason({
|
|
18335
18376
|
0: $sg__input_workspace,
|
|
18336
18377
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -18356,7 +18397,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18356
18397
|
_if(() => {
|
|
18357
18398
|
if (settingsMounted) {
|
|
18358
18399
|
const $scope3_id = _scope_id();
|
|
18359
|
-
_html(`<div${_attr_class("
|
|
18400
|
+
_html(`<div${_attr_class("_bR")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
18360
18401
|
_set_serialize_reason({
|
|
18361
18402
|
0: _serialize_guard($scope0_reason, 0),
|
|
18362
18403
|
1: $sg__input_workspace,
|
|
@@ -18397,7 +18438,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18397
18438
|
_if(() => {
|
|
18398
18439
|
if (newMounted) {
|
|
18399
18440
|
const $scope4_id = _scope_id();
|
|
18400
|
-
_html(`<div${_attr_class("
|
|
18441
|
+
_html(`<div${_attr_class("_bR")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18401
18442
|
_set_serialize_reason({
|
|
18402
18443
|
0: 1,
|
|
18403
18444
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -18422,13 +18463,13 @@ var work_view_default = _template("I", (input) => {
|
|
|
18422
18463
|
return 0;
|
|
18423
18464
|
}
|
|
18424
18465
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
18425
|
-
_html(`<div${_attr_class(["
|
|
18466
|
+
_html(`<div${_attr_class(["_bT", { ["_bS"]: view !== "term" }])}>`);
|
|
18426
18467
|
_if(() => {
|
|
18427
18468
|
if (ws && shownSessions) {
|
|
18428
18469
|
const $scope5_id = _scope_id();
|
|
18429
18470
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18430
18471
|
const $scope6_id = _scope_id();
|
|
18431
|
-
_html(`<div${_attr_class("
|
|
18472
|
+
_html(`<div${_attr_class("_bU")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18432
18473
|
_set_serialize_reason({
|
|
18433
18474
|
0: 1,
|
|
18434
18475
|
1: 1,
|
|
@@ -18489,7 +18530,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18489
18530
|
_if(() => {
|
|
18490
18531
|
if (!shownSessions.length && view === "term") {
|
|
18491
18532
|
const $scope7_id = _scope_id();
|
|
18492
|
-
_html(`<div${_attr_class("
|
|
18533
|
+
_html(`<div${_attr_class("_bK")}><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>`);
|
|
18493
18534
|
_script($scope7_id, "I43");
|
|
18494
18535
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
18495
18536
|
return 0;
|
|
@@ -18499,7 +18540,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18499
18540
|
return 0;
|
|
18500
18541
|
} else if (ws) {
|
|
18501
18542
|
const $scope11_id = _scope_id();
|
|
18502
|
-
_html(`<p${_attr_class("
|
|
18543
|
+
_html(`<p${_attr_class("_bK")}>Loading sessions…</p>`);
|
|
18503
18544
|
writeScope($scope11_id, {});
|
|
18504
18545
|
return 1;
|
|
18505
18546
|
}
|
|
@@ -27354,4 +27395,4 @@ server.listen(port, () => {
|
|
|
27354
27395
|
//#endregion
|
|
27355
27396
|
export {};
|
|
27356
27397
|
|
|
27357
|
-
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-
|
|
27398
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-BeyNPx46.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BeyNPx46.css\"",">",2,"stylesheet#/assets/app-page-IB6TT3tX.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-IB6TT3tX.css\"",">"],"defer":[2,"/assets/new-B9nb-hJx.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-B9nb-hJx.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/_DDw0OY_l.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DDw0OY_l.js\"",">",2,"modulepreload#/assets/_L7D-PU41.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_L7D-PU41.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-BeyNPx46.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BeyNPx46.css\"",">",2,"stylesheet#/assets/app-page-IB6TT3tX.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-IB6TT3tX.css\"",">"],"defer":[2,"/assets/w-B9nb-hJx.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-B9nb-hJx.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/_DDw0OY_l.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DDw0OY_l.js\"",">",2,"modulepreload#/assets/_L7D-PU41.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_L7D-PU41.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-BeyNPx46.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BeyNPx46.css\"",">",2,"stylesheet#/assets/app-page-IB6TT3tX.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-IB6TT3tX.css\"",">"],"defer":[2,"/assets/settings-B9nb-hJx.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-B9nb-hJx.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/_DDw0OY_l.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DDw0OY_l.js\"",">",2,"modulepreload#/assets/_L7D-PU41.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_L7D-PU41.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-BeyNPx46.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BeyNPx46.css\"",">",2,"stylesheet#/assets/app-page-IB6TT3tX.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-IB6TT3tX.css\"",">"],"defer":[2,"/assets/w._-B9nb-hJx.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-B9nb-hJx.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/_DDw0OY_l.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DDw0OY_l.js\"",">",2,"modulepreload#/assets/_L7D-PU41.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_L7D-PU41.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-BeyNPx46.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-BeyNPx46.css\"",">",2,"stylesheet#/assets/app-page-IB6TT3tX.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-IB6TT3tX.css\"",">"],"defer":[2,"/assets/w._-DLJZ7pvD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DLJZ7pvD.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/_DDw0OY_l.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DDw0OY_l.js\"",">",2,"modulepreload#/assets/_L7D-PU41.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_L7D-PU41.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-B_sKkKdf.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-B_sKkKdf.css\"",">",2,"stylesheet#/assets/icon-arrow-down-BeyNPx46.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-BeyNPx46.css\"",">"],"defer":[2,"/assets/diff-view-9CwFW8SS.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-9CwFW8SS.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|