@dylanpiercey/work 0.0.148 → 0.0.150
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 +1159 -1012
- package/dist/public/assets/_B3Mpy99p.js +1 -0
- package/dist/public/assets/_B48Ci00O.js +1 -0
- package/dist/public/assets/_BMg1xJCp.js +1 -0
- package/dist/public/assets/_BMt7KRfG.js +1 -0
- package/dist/public/assets/{_B5AO_PK0.js → _BPgEgKxN.js} +4 -4
- package/dist/public/assets/_BPgEgKxN.js.br +0 -0
- package/dist/public/assets/_BTzBmbsD.js +1 -0
- package/dist/public/assets/_BajmTGoh.js +83 -0
- package/dist/public/assets/_BajmTGoh.js.br +0 -0
- package/dist/public/assets/_BwU8ErEl.js +1 -0
- package/dist/public/assets/_CCxrJXLp.js +1 -0
- package/dist/public/assets/_CSo62uWy.js +1 -0
- package/dist/public/assets/_C_w5P4t0.js +1 -0
- package/dist/public/assets/_Coa6AtBv.js +1 -0
- package/dist/public/assets/{_BLa6qQRI.js → _CsmfAHEZ.js} +1 -1
- package/dist/public/assets/_CsmfAHEZ.js.br +0 -0
- package/dist/public/assets/_D5eULR2D.js +1 -0
- package/dist/public/assets/_D8gCm9nZ.js +1 -0
- package/dist/public/assets/_DAb5Vh3Q.js +1 -0
- package/dist/public/assets/_DK2SfOGa.js +1 -0
- package/dist/public/assets/_D_kL3Re7.js +1 -0
- package/dist/public/assets/_DjjyTnsF.js +1 -0
- package/dist/public/assets/_DoVPAuRS.js +1 -0
- package/dist/public/assets/_DzfCADzH.js +1 -0
- package/dist/public/assets/_Q736gZrY.js +1 -0
- package/dist/public/assets/app-page-B9ipmZIq.css +1 -0
- package/dist/public/assets/app-page-B9ipmZIq.css.br +0 -0
- package/dist/public/assets/diff-view-Blay1rPU.css +1 -0
- package/dist/public/assets/diff-view-Blay1rPU.css.br +0 -0
- package/dist/public/assets/diff-view-DhhhLA0Q.js +2 -0
- package/dist/public/assets/{icon-arrow-down-DqH6wYIn.css → icon-arrow-down-xgf_MG89.css} +1 -1
- package/dist/public/assets/icon-arrow-down-xgf_MG89.css.br +0 -0
- package/dist/public/assets/new-CFr4Ctz3.js +1 -0
- package/dist/public/assets/settings-CFr4Ctz3.js +1 -0
- package/dist/public/assets/w-CFr4Ctz3.js +1 -0
- package/dist/public/assets/w._-CFr4Ctz3.js +1 -0
- package/dist/public/assets/w._-CySgOtR7.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 +0 -83
- 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;
|
|
@@ -6939,7 +6960,7 @@ var icon_base_default = _template("P", (input) => {
|
|
|
6939
6960
|
});
|
|
6940
6961
|
//#endregion
|
|
6941
6962
|
//#region src/tags/icons/icon-xmark.marko
|
|
6942
|
-
var icon_xmark_default = _template("
|
|
6963
|
+
var icon_xmark_default = _template("tb", (input) => {
|
|
6943
6964
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6944
6965
|
const $scope0_id = _scope_id();
|
|
6945
6966
|
_set_serialize_reason({
|
|
@@ -7223,24 +7244,23 @@ function applyInstance(inst) {
|
|
|
7223
7244
|
}
|
|
7224
7245
|
//#endregion
|
|
7225
7246
|
//#region src/tags/settings-page.css.ts
|
|
7226
|
-
var content$2 = "_cX
|
|
7227
|
-
var agentGrid = "_c0
|
|
7228
|
-
var toolGrid = "_c_
|
|
7229
|
-
var toolRow = "_da
|
|
7247
|
+
var content$2 = "_cX _cz _cA";
|
|
7248
|
+
var agentGrid = "_c0 _bB";
|
|
7249
|
+
var toolGrid = "_c_ _cU";
|
|
7250
|
+
var toolRow = "_da _cV";
|
|
7230
7251
|
var themeSeg = "_dy _be";
|
|
7231
|
-
var
|
|
7232
|
-
var
|
|
7233
|
-
var
|
|
7234
|
-
var
|
|
7235
|
-
var
|
|
7236
|
-
var
|
|
7237
|
-
var
|
|
7238
|
-
var
|
|
7239
|
-
var row = "_b8 _b0";
|
|
7252
|
+
var checkList = "_d4 _bB";
|
|
7253
|
+
var flatCardRow = "_cW _cV";
|
|
7254
|
+
var pop$1 = "_cm __";
|
|
7255
|
+
var spinner = "_cp _2 _G";
|
|
7256
|
+
var busy = "_ct _cs";
|
|
7257
|
+
var pop = "_cv __";
|
|
7258
|
+
var sectionCount = "_bA _N _O";
|
|
7259
|
+
var row = "_bL _bD";
|
|
7240
7260
|
var iconBtn$1 = "_5 _l";
|
|
7241
7261
|
//#endregion
|
|
7242
7262
|
//#region src/tags/icons/icon-refresh.marko
|
|
7243
|
-
var icon_refresh_default = _template("
|
|
7263
|
+
var icon_refresh_default = _template("kb", (input) => {
|
|
7244
7264
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7245
7265
|
const $scope0_id = _scope_id();
|
|
7246
7266
|
_set_serialize_reason({
|
|
@@ -7277,18 +7297,18 @@ var icon_back_default = _template("O", (input) => {
|
|
|
7277
7297
|
var page_head_default = _template("t", (input) => {
|
|
7278
7298
|
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
7299
|
const $scope0_id = _scope_id();
|
|
7280
|
-
_html(`<header${_attr_class("
|
|
7300
|
+
_html(`<header${_attr_class("_cB")}>`);
|
|
7281
7301
|
_if(() => {
|
|
7282
7302
|
if (input.backHref) {
|
|
7283
7303
|
const $scope1_id = _scope_id();
|
|
7284
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7304
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_eg"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7285
7305
|
icon_back_default({ size: 16 });
|
|
7286
7306
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7287
7307
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7288
7308
|
return 0;
|
|
7289
7309
|
} else if (input.onBack) {
|
|
7290
7310
|
const $scope2_id = _scope_id();
|
|
7291
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7311
|
+
_html(`<button${_attr_class([iconBtnRow, "_eg"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7292
7312
|
icon_back_default({ size: 16 });
|
|
7293
7313
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7294
7314
|
_script($scope2_id, "t0");
|
|
@@ -7296,11 +7316,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7296
7316
|
return 1;
|
|
7297
7317
|
}
|
|
7298
7318
|
}, $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("
|
|
7319
|
+
_html(`<div${_attr_class("_cD")}><h1${_attr("id", input.titleId)}${_attr_class("_cC")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7300
7320
|
_if(() => {
|
|
7301
7321
|
if (input.meta) {
|
|
7302
7322
|
const $scope3_id = _scope_id();
|
|
7303
|
-
_html(`<p${_attr_class("
|
|
7323
|
+
_html(`<p${_attr_class("_cE")}>`);
|
|
7304
7324
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7305
7325
|
_html("</p>");
|
|
7306
7326
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7311,7 +7331,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7311
7331
|
_if(() => {
|
|
7312
7332
|
if (input.actions) {
|
|
7313
7333
|
const $scope4_id = _scope_id();
|
|
7314
|
-
_html(`<div${_attr_class("
|
|
7334
|
+
_html(`<div${_attr_class("_cF")}>`);
|
|
7315
7335
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7316
7336
|
_html("</div>");
|
|
7317
7337
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7379,10 +7399,10 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7379
7399
|
n: $badge__closures
|
|
7380
7400
|
});
|
|
7381
7401
|
});
|
|
7382
|
-
var usageNote = "
|
|
7402
|
+
var usageNote = "_ez _X";
|
|
7383
7403
|
//#endregion
|
|
7384
7404
|
//#region src/tags/icons/icon-warning.marko
|
|
7385
|
-
var icon_warning_default = _template("
|
|
7405
|
+
var icon_warning_default = _template("rb", (input) => {
|
|
7386
7406
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7387
7407
|
const $scope0_id = _scope_id();
|
|
7388
7408
|
_set_serialize_reason({
|
|
@@ -7409,11 +7429,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7409
7429
|
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
7430
|
const $scope0_id = _scope_id();
|
|
7411
7431
|
const agent = input.agent;
|
|
7412
|
-
_html(`<div${_attr_class(["
|
|
7432
|
+
_html(`<div${_attr_class(["_et", { ["_eu"]: input.hideName }])}><div${_attr_class("_ev")}>`);
|
|
7413
7433
|
_if(() => {
|
|
7414
7434
|
if (!input.hideName) {
|
|
7415
7435
|
const $scope1_id = _scope_id();
|
|
7416
|
-
_html(`<strong${_attr_class("
|
|
7436
|
+
_html(`<strong${_attr_class("_eO")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7417
7437
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7418
7438
|
return 0;
|
|
7419
7439
|
}
|
|
@@ -7421,7 +7441,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7421
7441
|
_if(() => {
|
|
7422
7442
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7423
7443
|
const $scope2_id = _scope_id();
|
|
7424
|
-
_html(`<span${_attr_class("
|
|
7444
|
+
_html(`<span${_attr_class("_ew")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7425
7445
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7426
7446
|
return 0;
|
|
7427
7447
|
}
|
|
@@ -7429,21 +7449,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7429
7449
|
_if(() => {
|
|
7430
7450
|
if (agent.stale_seconds != null) {
|
|
7431
7451
|
const $scope3_id = _scope_id();
|
|
7432
|
-
_html(`<span${_attr_class("
|
|
7452
|
+
_html(`<span${_attr_class("_ex")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7433
7453
|
icon_warning_default({ size: 12 });
|
|
7434
7454
|
_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
7455
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7436
7456
|
return 0;
|
|
7437
7457
|
}
|
|
7438
7458
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7439
|
-
_html(`</div><div${_attr_class(["
|
|
7459
|
+
_html(`</div><div${_attr_class(["_ey", { ["_eP"]: agent.stale_seconds != null }])}>`);
|
|
7440
7460
|
_for_of(agent.windows || [], (win) => {
|
|
7441
7461
|
const $scope4_id = _scope_id();
|
|
7442
7462
|
const pct = pctText(win.used_percent);
|
|
7443
7463
|
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("
|
|
7464
|
+
const fillClass = win.used_percent >= 90 ? "_eH" : win.used_percent >= 70 ? "_eG" : win.used_percent >= 40 ? "_eF" : "_eE";
|
|
7465
|
+
const pctClass = win.used_percent >= 90 ? "_eM" : win.used_percent >= 70 ? "_eL" : win.used_percent >= 40 ? "_eK" : "_eJ";
|
|
7466
|
+
_html(`<div${_attr_class("_eA")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eB")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_eC")}><span${_attr_class(["_eD", 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(["_eI", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_eN")}>`);
|
|
7447
7467
|
_if(() => {
|
|
7448
7468
|
if (label) {
|
|
7449
7469
|
const $scope6_id = _scope_id();
|
|
@@ -7477,7 +7497,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7477
7497
|
});
|
|
7478
7498
|
//#endregion
|
|
7479
7499
|
//#region src/tags/icons/icon-plus.marko
|
|
7480
|
-
var icon_plus_default = _template("
|
|
7500
|
+
var icon_plus_default = _template("jb", (input) => {
|
|
7481
7501
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7482
7502
|
const $scope0_id = _scope_id();
|
|
7483
7503
|
_set_serialize_reason({
|
|
@@ -7560,14 +7580,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7560
7580
|
localCode = null;
|
|
7561
7581
|
}
|
|
7562
7582
|
}, "C0", $scope0_id);
|
|
7563
|
-
_html(`<div${_attr_class(["
|
|
7583
|
+
_html(`<div${_attr_class(["_eh", input.class])}>`);
|
|
7564
7584
|
_for_of(input.items, (s) => {
|
|
7565
7585
|
const $scope1_id = _scope_id();
|
|
7566
|
-
_html(`<div${_attr_class("
|
|
7586
|
+
_html(`<div${_attr_class("_ei")}><span${_attr_class("_ek")}><span${_attr_class("_el")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_em", "_en"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7567
7587
|
_if(() => {
|
|
7568
7588
|
if (!busy) {
|
|
7569
7589
|
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, "
|
|
7590
|
+
_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, "_eo"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7571
7591
|
_script($scope2_id, "C1");
|
|
7572
7592
|
writeScope($scope2_id, {});
|
|
7573
7593
|
return 0;
|
|
@@ -7582,13 +7602,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7582
7602
|
_if(() => {
|
|
7583
7603
|
if (localBusy && localCode) {
|
|
7584
7604
|
const $scope4_id = _scope_id();
|
|
7585
|
-
_html(`<div${_attr_class(["
|
|
7605
|
+
_html(`<div${_attr_class(["_ei", "_ep"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_eq")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_er")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7586
7606
|
_script($scope4_id, "C2");
|
|
7587
7607
|
writeScope($scope4_id, {});
|
|
7588
7608
|
return 0;
|
|
7589
7609
|
} else if (localBusy) {
|
|
7590
7610
|
const $scope6_id = _scope_id();
|
|
7591
|
-
_html(`<div${_attr_class(["
|
|
7611
|
+
_html(`<div${_attr_class(["_ei", "_ep"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7592
7612
|
writeScope($scope6_id, {});
|
|
7593
7613
|
return 1;
|
|
7594
7614
|
}
|
|
@@ -7596,14 +7616,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7596
7616
|
_if(() => {
|
|
7597
7617
|
if (localError) {
|
|
7598
7618
|
const $scope5_id = _scope_id();
|
|
7599
|
-
_html(`<p${_attr_class(["
|
|
7619
|
+
_html(`<p${_attr_class(["_ei", "_es"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7600
7620
|
writeScope($scope5_id, {});
|
|
7601
7621
|
return 0;
|
|
7602
7622
|
}
|
|
7603
7623
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7604
7624
|
_for_of(skipped, (s) => {
|
|
7605
7625
|
const $scope3_id = _scope_id();
|
|
7606
|
-
_html(`<div${_attr_class(["
|
|
7626
|
+
_html(`<div${_attr_class(["_ei", "_ej"])}><span${_attr_class("_ek")}><span${_attr_class("_el")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_em")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_eo"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7607
7627
|
_script($scope3_id, "C3");
|
|
7608
7628
|
writeScope($scope3_id, {
|
|
7609
7629
|
i: s?.org,
|
|
@@ -7644,7 +7664,7 @@ var icon_chevron_right_default = _template("U", (input) => {
|
|
|
7644
7664
|
});
|
|
7645
7665
|
//#endregion
|
|
7646
7666
|
//#region src/tags/icons/icon-search.marko
|
|
7647
|
-
var icon_search_default = _template("
|
|
7667
|
+
var icon_search_default = _template("lb", (input) => {
|
|
7648
7668
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7649
7669
|
const $scope0_id = _scope_id();
|
|
7650
7670
|
_set_serialize_reason({
|
|
@@ -7671,7 +7691,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7671
7691
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7672
7692
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7673
7693
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7674
|
-
_html(`<li${_attr_class("
|
|
7694
|
+
_html(`<li${_attr_class("_cr")}>`);
|
|
7675
7695
|
_if(() => {
|
|
7676
7696
|
if (input.busy != null) {
|
|
7677
7697
|
const $scope1_id = _scope_id();
|
|
@@ -7681,20 +7701,20 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7681
7701
|
} else {
|
|
7682
7702
|
const $scope2_id = _scope_id();
|
|
7683
7703
|
const popId = _id();
|
|
7684
|
-
_html(`<button${_attr_class("
|
|
7704
|
+
_html(`<button${_attr_class("_cs")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7685
7705
|
_if(() => {
|
|
7686
7706
|
if (input.hint) {
|
|
7687
7707
|
const $scope3_id = _scope_id();
|
|
7688
|
-
_html(`<span${_attr_class("
|
|
7708
|
+
_html(`<span${_attr_class("_cu")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7689
7709
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7690
7710
|
return 0;
|
|
7691
7711
|
}
|
|
7692
7712
|
}, $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(["
|
|
7713
|
+
_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
7714
|
_if(() => {
|
|
7695
7715
|
if (input.description) {
|
|
7696
7716
|
const $scope4_id = _scope_id();
|
|
7697
|
-
_html(`<span${_attr_class("
|
|
7717
|
+
_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
7718
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7699
7719
|
return 0;
|
|
7700
7720
|
}
|
|
@@ -7702,12 +7722,12 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7702
7722
|
_if(() => {
|
|
7703
7723
|
if (input.sourceUrl) {
|
|
7704
7724
|
const $scope5_id = _scope_id();
|
|
7705
|
-
_html(`<a${_attr_class(["
|
|
7725
|
+
_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
7726
|
$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
7727
|
return 0;
|
|
7708
7728
|
} else if (input.source) {
|
|
7709
7729
|
const $scope6_id = _scope_id();
|
|
7710
|
-
_html(`<span${_attr_class("
|
|
7730
|
+
_html(`<span${_attr_class("_bH")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7711
7731
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7712
7732
|
_: _scope_with_id($scope2_id),
|
|
7713
7733
|
Cs: $si__input_source && 1
|
|
@@ -7715,7 +7735,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7715
7735
|
return 1;
|
|
7716
7736
|
} else if (input.noteLocal) {
|
|
7717
7737
|
const $scope10_id = _scope_id();
|
|
7718
|
-
_html(`<span${_attr_class(["
|
|
7738
|
+
_html(`<span${_attr_class(["_bH", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7719
7739
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7720
7740
|
return 2;
|
|
7721
7741
|
}
|
|
@@ -7723,7 +7743,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7723
7743
|
_if(() => {
|
|
7724
7744
|
if (input.tags) {
|
|
7725
7745
|
const $scope7_id = _scope_id();
|
|
7726
|
-
_html(`<span${_attr_class("
|
|
7746
|
+
_html(`<span${_attr_class("_bG")}>`);
|
|
7727
7747
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7728
7748
|
_html("</span>");
|
|
7729
7749
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7733,7 +7753,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7733
7753
|
_if(() => {
|
|
7734
7754
|
if (input.actions) {
|
|
7735
7755
|
const $scope8_id = _scope_id();
|
|
7736
|
-
_html(`<div${_attr_class("
|
|
7756
|
+
_html(`<div${_attr_class("_cw")}>`);
|
|
7737
7757
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7738
7758
|
_html("</div>");
|
|
7739
7759
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7792,8 +7812,59 @@ var icon_arrow_up_default = _template("N", (input) => {
|
|
|
7792
7812
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7793
7813
|
});
|
|
7794
7814
|
//#endregion
|
|
7815
|
+
//#region src/tags/icons/icon-monitor.marko
|
|
7816
|
+
var icon_monitor_default = _template("hb", (input) => {
|
|
7817
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7818
|
+
const $scope0_id = _scope_id();
|
|
7819
|
+
_set_serialize_reason({
|
|
7820
|
+
0: $sg__input_size__OR__input_class,
|
|
7821
|
+
1: $sg__input_size__OR__input_class
|
|
7822
|
+
});
|
|
7823
|
+
const $childScope = _peek_scope_id();
|
|
7824
|
+
icon_base_default({
|
|
7825
|
+
d: "M2 21L17 21 M21 21L22 21 M2 16.4V3.6C2 3.26863 2.26863 3 2.6 3H21.4C21.7314 3 22 3.26863 22 3.6V16.4C22 16.7314 21.7314 17 21.4 17H2.6C2.26863 17 2 16.7314 2 16.4Z",
|
|
7826
|
+
size: input.size,
|
|
7827
|
+
class: input.class
|
|
7828
|
+
});
|
|
7829
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7830
|
+
});
|
|
7831
|
+
//#endregion
|
|
7832
|
+
//#region src/tags/icons/icon-sun.marko
|
|
7833
|
+
var icon_sun_default = _template("pb", (input) => {
|
|
7834
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7835
|
+
const $scope0_id = _scope_id();
|
|
7836
|
+
_set_serialize_reason({
|
|
7837
|
+
0: $sg__input_size__OR__input_class,
|
|
7838
|
+
1: $sg__input_size__OR__input_class
|
|
7839
|
+
});
|
|
7840
|
+
const $childScope = _peek_scope_id();
|
|
7841
|
+
icon_base_default({
|
|
7842
|
+
d: "M12 18C15.3137 18 18 15.3137 18 12C18 8.68629 15.3137 6 12 6C8.68629 6 6 8.68629 6 12C6 15.3137 8.68629 18 12 18Z M22 12L23 12 M12 2V1 M12 23V22 M20 20L19 19 M20 4L19 5 M4 20L5 19 M4 4L5 5 M1 12L2 12",
|
|
7843
|
+
size: input.size,
|
|
7844
|
+
class: input.class
|
|
7845
|
+
});
|
|
7846
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7847
|
+
});
|
|
7848
|
+
//#endregion
|
|
7849
|
+
//#region src/tags/icons/icon-moon.marko
|
|
7850
|
+
var icon_moon_default = _template("ib", (input) => {
|
|
7851
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7852
|
+
const $scope0_id = _scope_id();
|
|
7853
|
+
_set_serialize_reason({
|
|
7854
|
+
0: $sg__input_size__OR__input_class,
|
|
7855
|
+
1: $sg__input_size__OR__input_class
|
|
7856
|
+
});
|
|
7857
|
+
const $childScope = _peek_scope_id();
|
|
7858
|
+
icon_base_default({
|
|
7859
|
+
d: "M3 11.5066C3 16.7497 7.25034 21 12.4934 21C16.2209 21 19.4466 18.8518 21 15.7259C12.4934 15.7259 8.27411 11.5066 8.27411 3C5.14821 4.55344 3 7.77915 3 11.5066Z",
|
|
7860
|
+
size: input.size,
|
|
7861
|
+
class: input.class
|
|
7862
|
+
});
|
|
7863
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7864
|
+
});
|
|
7865
|
+
//#endregion
|
|
7795
7866
|
//#region src/tags/prompt-dialog.css.ts
|
|
7796
|
-
var promptDlg = "
|
|
7867
|
+
var promptDlg = "_eV _eR";
|
|
7797
7868
|
//#endregion
|
|
7798
7869
|
//#region src/tags/dialog-close.marko
|
|
7799
7870
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7817,7 +7888,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7817
7888
|
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
7889
|
const dismissable = input.dismissable !== false;
|
|
7819
7890
|
let open = input.open;
|
|
7820
|
-
_html(`<dialog${_attr_class(["
|
|
7891
|
+
_html(`<dialog${_attr_class(["_eQ", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7821
7892
|
...htmlInput,
|
|
7822
7893
|
open: null
|
|
7823
7894
|
}, {
|
|
@@ -7827,20 +7898,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7827
7898
|
closedby: 1,
|
|
7828
7899
|
"on-cancel": 1,
|
|
7829
7900
|
"on-close": 1
|
|
7830
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7901
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_eT")}>`);
|
|
7831
7902
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7832
7903
|
_html("</div>");
|
|
7833
7904
|
_if(() => {
|
|
7834
7905
|
if (footer) {
|
|
7835
7906
|
const $scope1_id = _scope_id();
|
|
7836
|
-
_html(`<form method=dialog${_attr_class("
|
|
7907
|
+
_html(`<form method=dialog${_attr_class("_eU")}>`);
|
|
7837
7908
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7838
7909
|
_html("</form>");
|
|
7839
7910
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7840
7911
|
return 0;
|
|
7841
7912
|
} else if (input.openChange) {
|
|
7842
7913
|
const $scope2_id = _scope_id();
|
|
7843
|
-
_html(`<form method=dialog${_attr_class("
|
|
7914
|
+
_html(`<form method=dialog${_attr_class("_eU")}>`);
|
|
7844
7915
|
dialog_close_default({
|
|
7845
7916
|
class: ["_q", "_r"],
|
|
7846
7917
|
content: _content("r0", () => {
|
|
@@ -7924,7 +7995,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
7924
7995
|
content: _content("u7", () => {
|
|
7925
7996
|
_scope_reason();
|
|
7926
7997
|
const $scope2_id = _scope_id();
|
|
7927
|
-
_html(`<h2${_attr_class("
|
|
7998
|
+
_html(`<h2${_attr_class("_eS")}${_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
7999
|
value = _new_value;
|
|
7929
8000
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
7930
8001
|
_script($scope2_id, "u5");
|
|
@@ -7976,7 +8047,7 @@ function looksLikeSource(q) {
|
|
|
7976
8047
|
return s.includes("/") && !/\s/.test(s);
|
|
7977
8048
|
}
|
|
7978
8049
|
var settings_page_default = _template("x", (input$3) => {
|
|
7979
|
-
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 5), $sg__input_instance_accent = _serialize_guard($scope0_reason, 6), $si__input_instance__OR__input_instanceChange = _serialize_if($scope0_reason, 0), $si__input_preferred = _serialize_if($scope0_reason, 3), $si__input_setupChange = _serialize_if($scope0_reason, 2);
|
|
8050
|
+
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onExit = _serialize_guard($scope0_reason, 1), $sg__input_agents = _serialize_guard($scope0_reason, 5), $sg__input_instance_accent = _serialize_guard($scope0_reason, 6), $si__input_instance_accent = _serialize_if($scope0_reason, 6), $si__input_instance__OR__input_instanceChange = _serialize_if($scope0_reason, 0), $si__input_preferred = _serialize_if($scope0_reason, 3), $si__input_setupChange = _serialize_if($scope0_reason, 2);
|
|
7980
8051
|
const $scope0_id = _scope_id();
|
|
7981
8052
|
const $setup_missing__closures = /* @__PURE__ */ new Set();
|
|
7982
8053
|
const $refreshing__closures = /* @__PURE__ */ new Set();
|
|
@@ -8446,7 +8517,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8446
8517
|
const githubId = _id();
|
|
8447
8518
|
const backupId = _id();
|
|
8448
8519
|
const machineId = _id();
|
|
8449
|
-
_html(`<div${_attr_class("
|
|
8520
|
+
_html(`<div${_attr_class("_cx")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_cy")}><div${_attr_class(content$2)}>`);
|
|
8450
8521
|
_set_serialize_reason({
|
|
8451
8522
|
0: _serialize_guard($scope0_reason, 4),
|
|
8452
8523
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8457,10 +8528,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8457
8528
|
let $meta;
|
|
8458
8529
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x44", () => {
|
|
8459
8530
|
_scope_reason();
|
|
8460
|
-
const $
|
|
8461
|
-
_html(`<span${_attr_class("_cZ")}>Not ready</span>. Missing ${_text_resume($
|
|
8462
|
-
_subscribe($setup_missing__closures, writeScope($
|
|
8463
|
-
_resume_branch($
|
|
8531
|
+
const $scope4_id = _scope_id();
|
|
8532
|
+
_html(`<span${_attr_class("_cZ")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8533
|
+
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8534
|
+
_resume_branch($scope4_id);
|
|
8464
8535
|
}, $scope0_id) });
|
|
8465
8536
|
const $childScope2 = _peek_scope_id();
|
|
8466
8537
|
page_head_default({
|
|
@@ -8471,7 +8542,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8471
8542
|
meta: $meta,
|
|
8472
8543
|
actions: attrTag({ content: _content("x45", () => {
|
|
8473
8544
|
_scope_reason();
|
|
8474
|
-
const $
|
|
8545
|
+
const $scope11_id = _scope_id();
|
|
8475
8546
|
_html(`<button${_attr_class(iconBtnRow)} title="Refresh: re-check this machine and agent usage" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
8476
8547
|
_set_serialize_reason(1);
|
|
8477
8548
|
const $childScope = _peek_scope_id();
|
|
@@ -8479,38 +8550,38 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8479
8550
|
size: 14,
|
|
8480
8551
|
class: refreshing && "_F"
|
|
8481
8552
|
});
|
|
8482
|
-
_html(`</button>${_el_resume($
|
|
8483
|
-
_script($
|
|
8484
|
-
_subscribe($refreshing__closures, writeScope($
|
|
8553
|
+
_html(`</button>${_el_resume($scope11_id, "a")}`);
|
|
8554
|
+
_script($scope11_id, "x43");
|
|
8555
|
+
_subscribe($refreshing__closures, writeScope($scope11_id, {
|
|
8485
8556
|
_: _scope_with_id($scope0_id),
|
|
8486
8557
|
b: _existing_scope($childScope)
|
|
8487
8558
|
}));
|
|
8488
|
-
_resume_branch($
|
|
8559
|
+
_resume_branch($scope11_id);
|
|
8489
8560
|
}, $scope0_id) })
|
|
8490
8561
|
});
|
|
8491
8562
|
_if(() => {
|
|
8492
8563
|
if (error) {
|
|
8493
|
-
const $
|
|
8564
|
+
const $scope9_id = _scope_id();
|
|
8494
8565
|
toast_default({
|
|
8495
8566
|
placement: "inline",
|
|
8496
8567
|
onDismiss: _resume(function() {
|
|
8497
8568
|
error = null;
|
|
8498
|
-
}, "x37", $
|
|
8569
|
+
}, "x37", $scope9_id),
|
|
8499
8570
|
content: _content("x46", () => {
|
|
8500
8571
|
_scope_reason();
|
|
8501
|
-
const $
|
|
8502
|
-
_html(_text_resume($
|
|
8503
|
-
_subscribe($error__closures, writeScope($
|
|
8504
|
-
_resume_branch($
|
|
8505
|
-
}, $
|
|
8572
|
+
const $scope10_id = _scope_id();
|
|
8573
|
+
_html(_text_resume($scope10_id, "a", error));
|
|
8574
|
+
_subscribe($error__closures, writeScope($scope10_id, { _: _scope_with_id($scope9_id) }));
|
|
8575
|
+
_resume_branch($scope10_id);
|
|
8576
|
+
}, $scope9_id)
|
|
8506
8577
|
});
|
|
8507
|
-
writeScope($
|
|
8578
|
+
writeScope($scope9_id, {});
|
|
8508
8579
|
return 0;
|
|
8509
8580
|
}
|
|
8510
8581
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
8511
8582
|
_if(() => {
|
|
8512
8583
|
if (selfUpdatePending || selfUpdating) {
|
|
8513
|
-
const $
|
|
8584
|
+
const $scope44_id = _scope_id();
|
|
8514
8585
|
_html(`<div${_attr_class("_dC")} role=status><div${_attr_class("_dD")}>`);
|
|
8515
8586
|
_if(() => {
|
|
8516
8587
|
if (selfUpdating) {
|
|
@@ -8519,27 +8590,27 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8519
8590
|
writeScope($scope79_id, {});
|
|
8520
8591
|
return 0;
|
|
8521
8592
|
} else {
|
|
8522
|
-
const $
|
|
8523
|
-
_html(`<span${_attr_class("_dE")}>Update available</span><span${_attr_class("_dF")}>v${_text_resume($
|
|
8524
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($
|
|
8593
|
+
const $scope45_id = _scope_id();
|
|
8594
|
+
_html(`<span${_attr_class("_dE")}>Update available</span><span${_attr_class("_dF")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8595
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8525
8596
|
return 1;
|
|
8526
8597
|
}
|
|
8527
|
-
}, $
|
|
8598
|
+
}, $scope44_id, "b", 1, 1, 1, "</div>");
|
|
8528
8599
|
_if(() => {
|
|
8529
8600
|
if (!selfUpdating) {
|
|
8530
|
-
const $
|
|
8531
|
-
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($
|
|
8532
|
-
_script($
|
|
8533
|
-
_subscribe($self_latest__closures, writeScope($
|
|
8601
|
+
const $scope46_id = _scope_id();
|
|
8602
|
+
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope46_id, "a")}`);
|
|
8603
|
+
_script($scope46_id, "x47");
|
|
8604
|
+
_subscribe($self_latest__closures, writeScope($scope46_id, { Chi: 1 }));
|
|
8534
8605
|
return 0;
|
|
8535
8606
|
}
|
|
8536
|
-
}, $
|
|
8607
|
+
}, $scope44_id, "c", 1, 1, 1, 0, 1);
|
|
8537
8608
|
_html("</div>");
|
|
8538
|
-
writeScope($
|
|
8609
|
+
writeScope($scope44_id, {});
|
|
8539
8610
|
return 0;
|
|
8540
8611
|
}
|
|
8541
8612
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8542
|
-
_html(`<section${_attr_class("
|
|
8613
|
+
_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("_c2")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8543
8614
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8544
8615
|
setPreferred(v);
|
|
8545
8616
|
}, "x2", $scope0_id), () => {
|
|
@@ -8557,14 +8628,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8557
8628
|
const rows = lone ? [] : a.instances;
|
|
8558
8629
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8559
8630
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8560
|
-
_html(`<li${_attr_class(["
|
|
8631
|
+
_html(`<li${_attr_class(["_bD", "_c1"])}><div${_attr_class(["_c4", { ["_c7"]: lone && !lone.enabled }])}>`);
|
|
8561
8632
|
_set_serialize_reason(12);
|
|
8562
8633
|
const $childScope3 = _peek_scope_id();
|
|
8563
8634
|
icon_agent_default({
|
|
8564
8635
|
agent: a.id,
|
|
8565
8636
|
size: 18
|
|
8566
8637
|
});
|
|
8567
|
-
_html(`<div${_attr_class("
|
|
8638
|
+
_html(`<div${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8568
8639
|
_if(() => {
|
|
8569
8640
|
if (lone && input$3.preferred === lone.id) {
|
|
8570
8641
|
const $scope81_id = _scope_id();
|
|
@@ -8576,13 +8647,13 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8576
8647
|
_html("</span>");
|
|
8577
8648
|
_if(() => {
|
|
8578
8649
|
if (active.has(a.id)) {
|
|
8579
|
-
const $
|
|
8580
|
-
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
8581
|
-
_subscribe($active__closures, writeScope($
|
|
8650
|
+
const $scope12_id = _scope_id();
|
|
8651
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8652
|
+
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8582
8653
|
return 0;
|
|
8583
8654
|
} else if (!a.installed) {
|
|
8584
8655
|
const $scope82_id = _scope_id();
|
|
8585
|
-
_html(`<span${_attr_class("
|
|
8656
|
+
_html(`<span${_attr_class("_bH")}>Not installed</span>`);
|
|
8586
8657
|
writeScope($scope82_id, {});
|
|
8587
8658
|
return 1;
|
|
8588
8659
|
}
|
|
@@ -8590,10 +8661,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8590
8661
|
_html("</div>");
|
|
8591
8662
|
_if(() => {
|
|
8592
8663
|
if (!a.installed && !active.has(a.id)) {
|
|
8593
|
-
const $
|
|
8594
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
8595
|
-
_script($
|
|
8596
|
-
writeScope($
|
|
8664
|
+
const $scope57_id = _scope_id();
|
|
8665
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope57_id, "a")}`);
|
|
8666
|
+
_script($scope57_id, "x48");
|
|
8667
|
+
writeScope($scope57_id, {});
|
|
8597
8668
|
return 0;
|
|
8598
8669
|
}
|
|
8599
8670
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
@@ -8689,7 +8760,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8689
8760
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8690
8761
|
_for_of(otherUsage, (u) => {
|
|
8691
8762
|
const $scope87_id = _scope_id();
|
|
8692
|
-
_html(`<li${_attr_class(["
|
|
8763
|
+
_html(`<li${_attr_class(["_bD", "_c1"])}>`);
|
|
8693
8764
|
_set_serialize_reason(6);
|
|
8694
8765
|
const $childScope8 = _peek_scope_id();
|
|
8695
8766
|
usage_meters_default({ agent: u });
|
|
@@ -8700,71 +8771,71 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8700
8771
|
_if(() => {
|
|
8701
8772
|
if (!usage && families.length) {
|
|
8702
8773
|
const $scope88_id = _scope_id();
|
|
8703
|
-
_html(`<p${_attr_class("
|
|
8774
|
+
_html(`<p${_attr_class("_bJ")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8704
8775
|
writeScope($scope88_id, {});
|
|
8705
8776
|
return 0;
|
|
8706
8777
|
} else if (usage?.error) {
|
|
8707
|
-
const $
|
|
8708
|
-
_html(`<p${_attr_class("
|
|
8709
|
-
writeScope($
|
|
8778
|
+
const $scope8_id = _scope_id();
|
|
8779
|
+
_html(`<p${_attr_class("_bJ")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8780
|
+
writeScope($scope8_id, {});
|
|
8710
8781
|
return 1;
|
|
8711
8782
|
}
|
|
8712
8783
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8713
|
-
_html(`</section><section${_attr_class("
|
|
8784
|
+
_html(`</section><section${_attr_class("_by")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bz")}><h2${_attr("id", githubId)}${_attr_class("_bM")}>GitHub</h2>`);
|
|
8714
8785
|
_if(() => {
|
|
8715
8786
|
if (setup && !addingHost) {
|
|
8716
|
-
const $
|
|
8787
|
+
const $scope42_id = _scope_id();
|
|
8717
8788
|
_html(`<button${_attr_class([iconBtnRow, "_dh"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8718
8789
|
icon_plus_default({ size: 16 });
|
|
8719
|
-
_html(`</button>${_el_resume($
|
|
8720
|
-
_script($
|
|
8721
|
-
writeScope($
|
|
8790
|
+
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8791
|
+
_script($scope42_id, "x51");
|
|
8792
|
+
writeScope($scope42_id, {});
|
|
8722
8793
|
return 0;
|
|
8723
8794
|
}
|
|
8724
8795
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
8725
8796
|
_if(() => {
|
|
8726
8797
|
if (setup) {
|
|
8727
|
-
const $
|
|
8798
|
+
const $scope41_id = _scope_id();
|
|
8728
8799
|
_html(`<form${_attr_class([
|
|
8729
|
-
"
|
|
8800
|
+
"_ch",
|
|
8730
8801
|
"_dh",
|
|
8731
|
-
{ ["
|
|
8732
|
-
])}><label${_attr_class(["_1", "
|
|
8802
|
+
{ ["_ci"]: !addingHost }
|
|
8803
|
+
])}><label${_attr_class(["_1", "_cj"])}>`);
|
|
8733
8804
|
icon_github_default({
|
|
8734
8805
|
size: 14,
|
|
8735
8806
|
class: "_2"
|
|
8736
8807
|
});
|
|
8737
|
-
_html(`<input${_attr_input_value($
|
|
8808
|
+
_html(`<input${_attr_input_value($scope41_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
8738
8809
|
hostInput = _new_hostInput;
|
|
8739
|
-
}, "x3", $
|
|
8810
|
+
}, "x3", $scope41_id))}${_attr_class([
|
|
8740
8811
|
"_Z",
|
|
8741
8812
|
"_3",
|
|
8742
|
-
"
|
|
8743
|
-
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($
|
|
8813
|
+
"_ck"
|
|
8814
|
+
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8744
8815
|
btnSm,
|
|
8745
8816
|
"_r",
|
|
8746
8817
|
"_dg"
|
|
8747
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($
|
|
8818
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "_cl"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8748
8819
|
icon_xmark_default({ size: 12 });
|
|
8749
|
-
_html(`</button>${_el_resume($
|
|
8750
|
-
_script($
|
|
8751
|
-
writeScope($
|
|
8820
|
+
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8821
|
+
_script($scope41_id, "x52");
|
|
8822
|
+
writeScope($scope41_id, {});
|
|
8752
8823
|
return 0;
|
|
8753
8824
|
}
|
|
8754
8825
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8755
|
-
_html(`</div><div${_attr_class(["
|
|
8826
|
+
_html(`</div><div${_attr_class(["_bD", "_cG"])}>`);
|
|
8756
8827
|
_for_of(setup?.github || [], (h) => {
|
|
8757
|
-
const $
|
|
8758
|
-
const $
|
|
8828
|
+
const $scope6_id = _scope_id();
|
|
8829
|
+
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8759
8830
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8760
8831
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8761
8832
|
const busy = active.has(h.host);
|
|
8762
|
-
_html(`<div${_attr_class(["
|
|
8833
|
+
_html(`<div${_attr_class(["_cH", "_di"])}><div${_attr_class("_dj")}>`);
|
|
8763
8834
|
icon_github_default({
|
|
8764
8835
|
size: 18,
|
|
8765
8836
|
class: "_dk"
|
|
8766
8837
|
});
|
|
8767
|
-
_html(`<div${_attr_class("
|
|
8838
|
+
_html(`<div${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8768
8839
|
_if(() => {
|
|
8769
8840
|
if (h.isEnterprise) {
|
|
8770
8841
|
const $scope91_id = _scope_id();
|
|
@@ -8772,17 +8843,17 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8772
8843
|
writeScope($scope91_id, {});
|
|
8773
8844
|
return 0;
|
|
8774
8845
|
}
|
|
8775
|
-
}, $
|
|
8846
|
+
}, $scope6_id, "h", 1, 1, 1, 0, 1);
|
|
8776
8847
|
_html("</span>");
|
|
8777
8848
|
_if(() => {
|
|
8778
8849
|
if (busy) {
|
|
8779
|
-
const $
|
|
8780
|
-
_html(`<span${_attr_class(["
|
|
8781
|
-
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($
|
|
8850
|
+
const $scope13_id = _scope_id();
|
|
8851
|
+
_html(`<span${_attr_class(["_bH", "_dl"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8852
|
+
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8782
8853
|
return 0;
|
|
8783
8854
|
} else if (h.authed) {
|
|
8784
8855
|
const $scope89_id = _scope_id();
|
|
8785
|
-
_html(`<span${_attr_class(["
|
|
8856
|
+
_html(`<span${_attr_class(["_bH", "_dl"])}>`);
|
|
8786
8857
|
icon_check_default({
|
|
8787
8858
|
size: 12,
|
|
8788
8859
|
class: "_dm"
|
|
@@ -8793,7 +8864,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8793
8864
|
} else if (h.error) {
|
|
8794
8865
|
const $scope90_id = _scope_id();
|
|
8795
8866
|
_html(`<span${_attr_class([
|
|
8796
|
-
"
|
|
8867
|
+
"_bH",
|
|
8797
8868
|
"_dl",
|
|
8798
8869
|
"_dn"
|
|
8799
8870
|
])}>`);
|
|
@@ -8803,38 +8874,38 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8803
8874
|
return 2;
|
|
8804
8875
|
} else {
|
|
8805
8876
|
const $scope92_id = _scope_id();
|
|
8806
|
-
_html(`<span${_attr_class(["
|
|
8877
|
+
_html(`<span${_attr_class(["_bH", "_dl"])}>Not signed in</span>`);
|
|
8807
8878
|
writeScope($scope92_id, {});
|
|
8808
8879
|
return 3;
|
|
8809
8880
|
}
|
|
8810
|
-
}, $
|
|
8881
|
+
}, $scope6_id, "i", 1, 1, 1, 0, 1);
|
|
8811
8882
|
_html("</div>");
|
|
8812
8883
|
_if(() => {
|
|
8813
8884
|
if (!busy) {
|
|
8814
|
-
const $
|
|
8885
|
+
const $scope31_id = _scope_id();
|
|
8815
8886
|
_if(() => {
|
|
8816
8887
|
if (!h.authed) {
|
|
8817
|
-
const $
|
|
8818
|
-
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($
|
|
8819
|
-
_script($
|
|
8820
|
-
writeScope($
|
|
8888
|
+
const $scope58_id = _scope_id();
|
|
8889
|
+
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($scope58_id, "a")}`);
|
|
8890
|
+
_script($scope58_id, "x53");
|
|
8891
|
+
writeScope($scope58_id, {});
|
|
8821
8892
|
return 0;
|
|
8822
8893
|
} else {
|
|
8823
|
-
const $
|
|
8894
|
+
const $scope32_id = _scope_id();
|
|
8824
8895
|
_html(`<button${_attr_class([btnSm, {
|
|
8825
8896
|
["_t"]: confirmingRemove === `out:${h.host}`,
|
|
8826
8897
|
["_s"]: confirmingRemove === `out:${h.host}`
|
|
8827
|
-
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${_text_resume($
|
|
8828
|
-
_script($
|
|
8829
|
-
_subscribe($
|
|
8898
|
+
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${_text_resume($scope32_id, "b", confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out")}</button>${_el_resume($scope32_id, "a")}`);
|
|
8899
|
+
_script($scope32_id, "x54");
|
|
8900
|
+
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope32_id, {})));
|
|
8830
8901
|
return 1;
|
|
8831
8902
|
}
|
|
8832
|
-
}, $
|
|
8903
|
+
}, $scope31_id, "a", 1, 1, 1, 0, 1);
|
|
8833
8904
|
_if(() => {
|
|
8834
8905
|
if (h.isEnterprise) {
|
|
8835
|
-
const $
|
|
8906
|
+
const $scope33_id = _scope_id();
|
|
8836
8907
|
_html(`<button${_attr_class([
|
|
8837
|
-
"
|
|
8908
|
+
"_bI",
|
|
8838
8909
|
"_8",
|
|
8839
8910
|
"_9",
|
|
8840
8911
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8851,54 +8922,54 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8851
8922
|
writeScope($scope94_id, {});
|
|
8852
8923
|
return 1;
|
|
8853
8924
|
}
|
|
8854
|
-
}, $
|
|
8855
|
-
_script($
|
|
8856
|
-
_subscribe($
|
|
8857
|
-
|
|
8925
|
+
}, $scope33_id, "a", 1, 1, 1, "</button>");
|
|
8926
|
+
_script($scope33_id, "x55");
|
|
8927
|
+
_subscribe($for_content3__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope33_id, {
|
|
8928
|
+
Ch5: 1,
|
|
8858
8929
|
Ca4: 1
|
|
8859
8930
|
})));
|
|
8860
8931
|
return 0;
|
|
8861
8932
|
}
|
|
8862
|
-
}, $
|
|
8863
|
-
writeScope($
|
|
8933
|
+
}, $scope31_id, "b", 1, 1, 1, 0, 1);
|
|
8934
|
+
writeScope($scope31_id, {});
|
|
8864
8935
|
return 0;
|
|
8865
8936
|
}
|
|
8866
|
-
}, $
|
|
8937
|
+
}, $scope6_id, "j");
|
|
8867
8938
|
_html("</div>");
|
|
8868
8939
|
_if(() => {
|
|
8869
8940
|
if (busy && authCodes.has(h.host)) {
|
|
8870
|
-
const $
|
|
8871
|
-
_html(`<div${_attr_class("_dp")}><span${_attr_class("_dq")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_ds")}>${_text_resume($
|
|
8872
|
-
_subscribe($authCodes__closures, writeScope($
|
|
8941
|
+
const $scope30_id = _scope_id();
|
|
8942
|
+
_html(`<div${_attr_class("_dp")}><span${_attr_class("_dq")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_ds")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_dr")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8943
|
+
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8873
8944
|
return 0;
|
|
8874
8945
|
}
|
|
8875
|
-
}, $
|
|
8946
|
+
}, $scope6_id, "k", 1, 1, 1, 0, 1);
|
|
8876
8947
|
_html("</div>");
|
|
8877
8948
|
_if(() => {
|
|
8878
8949
|
if (hostSso$1.length || skippedSso.length) {
|
|
8879
|
-
const $
|
|
8950
|
+
const $scope7_id = _scope_id();
|
|
8880
8951
|
_set_serialize_reason(30);
|
|
8881
8952
|
const $childScope9 = _peek_scope_id();
|
|
8882
8953
|
sso_auth_default({
|
|
8883
|
-
class: ["
|
|
8954
|
+
class: ["_cH", "_dt"],
|
|
8884
8955
|
items: hostSso$1,
|
|
8885
8956
|
skipped: skippedSso,
|
|
8886
8957
|
busy,
|
|
8887
8958
|
onChange: _resume(function() {
|
|
8888
8959
|
readIgnoredSso();
|
|
8889
|
-
}, "x38", $
|
|
8960
|
+
}, "x38", $scope7_id),
|
|
8890
8961
|
onAuthorize: _resume(function() {
|
|
8891
8962
|
run(h.host, "auth-refresh");
|
|
8892
|
-
}, "x39", $
|
|
8963
|
+
}, "x39", $scope7_id),
|
|
8893
8964
|
onDone: _resume(function() {
|
|
8894
8965
|
refresh();
|
|
8895
|
-
}, "x40", $
|
|
8966
|
+
}, "x40", $scope7_id)
|
|
8896
8967
|
});
|
|
8897
|
-
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, writeScope($
|
|
8968
|
+
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, writeScope($scope7_id, { a: _existing_scope($childScope9) })));
|
|
8898
8969
|
return 0;
|
|
8899
8970
|
}
|
|
8900
|
-
}, $
|
|
8901
|
-
writeScope($
|
|
8971
|
+
}, $scope6_id, "l", 1, 1, 1, 0, 1);
|
|
8972
|
+
writeScope($scope6_id, {
|
|
8902
8973
|
o: h?.sso,
|
|
8903
8974
|
q: h?.host,
|
|
8904
8975
|
s: h?.isEnterprise,
|
|
@@ -8908,49 +8979,49 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8908
8979
|
w: hostSso$1,
|
|
8909
8980
|
y: skippedSso,
|
|
8910
8981
|
a1: busy,
|
|
8911
|
-
a4: $
|
|
8982
|
+
a4: $for_content3__h_host__closures
|
|
8912
8983
|
});
|
|
8913
8984
|
}, "host", $scope0_id, "x", 1, 1, 1, "</div>");
|
|
8914
8985
|
_if(() => {
|
|
8915
8986
|
if (setup && !setup.github.length) {
|
|
8916
8987
|
const $scope95_id = _scope_id();
|
|
8917
|
-
_html(`<p${_attr_class("
|
|
8988
|
+
_html(`<p${_attr_class("_bJ")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8918
8989
|
writeScope($scope95_id, {});
|
|
8919
8990
|
return 0;
|
|
8920
8991
|
}
|
|
8921
8992
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8922
|
-
_html(`</section><section${_attr_class("
|
|
8993
|
+
_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", "_cG"])}><div${_attr_class(["_cH", "_cL"])}><div${_attr_class(["_cM", { ["_cN"]: skillsOpen }])}><button${_attr_class("_cO")} aria-expanded=true>`);
|
|
8923
8994
|
_set_serialize_reason(1);
|
|
8924
8995
|
const $childScope10 = _peek_scope_id();
|
|
8925
8996
|
icon_chevron_right_default({
|
|
8926
8997
|
size: 12,
|
|
8927
|
-
class: ["
|
|
8998
|
+
class: ["_cS", { ["_cT"]: skillsOpen }]
|
|
8928
8999
|
});
|
|
8929
|
-
_html(`<span${_attr_class("
|
|
9000
|
+
_html(`<span${_attr_class("_cP")}>Skills</span>`);
|
|
8930
9001
|
_if(() => {
|
|
8931
9002
|
if (skills?.global.length) {
|
|
8932
|
-
const $
|
|
8933
|
-
_html(`<span${_attr_class("
|
|
8934
|
-
writeScope($
|
|
9003
|
+
const $scope51_id = _scope_id();
|
|
9004
|
+
_html(`<span${_attr_class("_cQ")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9005
|
+
writeScope($scope51_id, {});
|
|
8935
9006
|
return 0;
|
|
8936
9007
|
}
|
|
8937
9008
|
}, $scope0_id, "a8", 1, 1, 1, 0, 1);
|
|
8938
9009
|
_html(`</button>${_el_resume($scope0_id, "a5")}`);
|
|
8939
9010
|
_if(() => {
|
|
8940
9011
|
if (skills?.available && skills.agents.length && true) {
|
|
8941
|
-
const $
|
|
9012
|
+
const $scope55_id = _scope_id();
|
|
8942
9013
|
_html(`<button${_attr_class(iconBtnRow)} title="Add skill" aria-label="Add skill">`);
|
|
8943
9014
|
icon_plus_default({ size: 16 });
|
|
8944
|
-
_html(`</button>${_el_resume($
|
|
8945
|
-
_script($
|
|
8946
|
-
writeScope($
|
|
9015
|
+
_html(`</button>${_el_resume($scope55_id, "a")}`);
|
|
9016
|
+
_script($scope55_id, "x56");
|
|
9017
|
+
writeScope($scope55_id, {});
|
|
8947
9018
|
return 0;
|
|
8948
9019
|
}
|
|
8949
9020
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
8950
9021
|
_if(() => {
|
|
8951
9022
|
if (skills?.available && skills.agents.length) {
|
|
8952
|
-
const $
|
|
8953
|
-
_html(`<div${_attr_class(["
|
|
9023
|
+
const $scope14_id = _scope_id();
|
|
9024
|
+
_html(`<div${_attr_class(["_ch", { ["_ci"]: true }])}><label${_attr_class(["_1", "_cj"])}>`);
|
|
8954
9025
|
_if(() => {
|
|
8955
9026
|
if (skillSearching) {
|
|
8956
9027
|
const $scope96_id = _scope_id();
|
|
@@ -8966,86 +9037,86 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8966
9037
|
writeScope($scope97_id, {});
|
|
8967
9038
|
return 1;
|
|
8968
9039
|
}
|
|
8969
|
-
}, $
|
|
8970
|
-
_html(`<input${_attr_input_value($
|
|
9040
|
+
}, $scope14_id, "c", 1, 1, 1, 0, 1);
|
|
9041
|
+
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
8971
9042
|
"_Z",
|
|
8972
9043
|
"_3",
|
|
8973
|
-
"
|
|
8974
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($
|
|
9044
|
+
"_ck"
|
|
9045
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_cl"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
8975
9046
|
icon_xmark_default({ size: 12 });
|
|
8976
|
-
_html(`</button>${_el_resume($
|
|
9047
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_cn"])}${_attr("hidden", true)}>`);
|
|
8977
9048
|
_if(() => {
|
|
8978
9049
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
8979
9050
|
const $scope98_id = _scope_id();
|
|
8980
|
-
_html(`<li${_attr_class("
|
|
9051
|
+
_html(`<li${_attr_class("_co")}>Searching skills.sh…</li>`);
|
|
8981
9052
|
writeScope($scope98_id, {});
|
|
8982
9053
|
return 0;
|
|
8983
9054
|
}
|
|
8984
|
-
}, $
|
|
9055
|
+
}, $scope14_id, "h", 1, 1, 1, 0, 1);
|
|
8985
9056
|
_if(() => {
|
|
8986
9057
|
if (looksLikeSource(skillQuery)) {
|
|
8987
|
-
const $
|
|
8988
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9058
|
+
const $scope15_id = _scope_id();
|
|
9059
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
8989
9060
|
_if(() => {
|
|
8990
9061
|
if (active.has(skillQuery.trim())) {
|
|
8991
|
-
const $
|
|
8992
|
-
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
8993
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($
|
|
8994
|
-
|
|
8995
|
-
|
|
9062
|
+
const $scope16_id = _scope_id();
|
|
9063
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9064
|
+
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9065
|
+
Ch2: 3,
|
|
9066
|
+
Chr: 1
|
|
8996
9067
|
})));
|
|
8997
9068
|
return 0;
|
|
8998
9069
|
} else {
|
|
8999
9070
|
const $scope99_id = _scope_id();
|
|
9000
|
-
_html(`<span${_attr_class("
|
|
9071
|
+
_html(`<span${_attr_class("_bH")}>Add straight from this source</span>`);
|
|
9001
9072
|
writeScope($scope99_id, {});
|
|
9002
9073
|
return 1;
|
|
9003
9074
|
}
|
|
9004
|
-
}, $
|
|
9075
|
+
}, $scope15_id, "e", 1, 1, 1, 0, 1);
|
|
9005
9076
|
_html("</div>");
|
|
9006
9077
|
_if(() => {
|
|
9007
9078
|
if (!active.has(skillQuery.trim())) {
|
|
9008
|
-
const $
|
|
9009
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9010
|
-
_script($
|
|
9011
|
-
writeScope($
|
|
9079
|
+
const $scope52_id = _scope_id();
|
|
9080
|
+
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope52_id, "a")}`);
|
|
9081
|
+
_script($scope52_id, "x57");
|
|
9082
|
+
writeScope($scope52_id, {});
|
|
9012
9083
|
return 0;
|
|
9013
9084
|
}
|
|
9014
|
-
}, $
|
|
9085
|
+
}, $scope15_id, "f", 1, 1, 1, 0, 1);
|
|
9015
9086
|
_html("</li>");
|
|
9016
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($
|
|
9087
|
+
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope15_id, { Ch2: 2 })));
|
|
9017
9088
|
return 0;
|
|
9018
9089
|
}
|
|
9019
|
-
}, $
|
|
9090
|
+
}, $scope14_id, "i", 1, 1, 1, 0, 1);
|
|
9020
9091
|
_for_of(skillHits || [], (h) => {
|
|
9021
|
-
const $
|
|
9022
|
-
const $
|
|
9023
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9092
|
+
const $scope17_id = _scope_id();
|
|
9093
|
+
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9094
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9024
9095
|
_if(() => {
|
|
9025
9096
|
if (active.has(h.skillId)) {
|
|
9026
|
-
const $
|
|
9027
|
-
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
9028
|
-
_subscribe($active__closures, writeScope($
|
|
9097
|
+
const $scope18_id = _scope_id();
|
|
9098
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9099
|
+
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9029
9100
|
return 0;
|
|
9030
9101
|
} else {
|
|
9031
9102
|
const $scope100_id = _scope_id();
|
|
9032
|
-
_html(`<span${_attr_class("
|
|
9103
|
+
_html(`<span${_attr_class("_bH")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9033
9104
|
writeScope($scope100_id, {});
|
|
9034
9105
|
return 1;
|
|
9035
9106
|
}
|
|
9036
|
-
}, $
|
|
9107
|
+
}, $scope17_id, "e", 1, 1, 1, 0, 1);
|
|
9037
9108
|
_html("</div>");
|
|
9038
9109
|
_if(() => {
|
|
9039
9110
|
if (!active.has(h.skillId)) {
|
|
9040
|
-
const $
|
|
9111
|
+
const $scope62_id = _scope_id();
|
|
9041
9112
|
_if(() => {
|
|
9042
9113
|
if (h.installs) {
|
|
9043
9114
|
const $scope101_id = _scope_id();
|
|
9044
9115
|
_html(`<span${_attr_class(["_N", "_O"])}${_attr("title", `${h.installs} installs`)}>${_text_resume($scope101_id, "b", skillInstalls(h.installs))}</span>${_el_resume($scope101_id, "a")}`);
|
|
9045
|
-
_subscribe($
|
|
9116
|
+
_subscribe($for_content4__h_installs__closures, writeScope($scope101_id, {}));
|
|
9046
9117
|
return 0;
|
|
9047
9118
|
}
|
|
9048
|
-
}, $
|
|
9119
|
+
}, $scope62_id, "a", 1, 1, 1, 0, 1);
|
|
9049
9120
|
_if(() => {
|
|
9050
9121
|
if (h.installed) {
|
|
9051
9122
|
const $scope102_id = _scope_id();
|
|
@@ -9053,66 +9124,66 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9053
9124
|
writeScope($scope102_id, {});
|
|
9054
9125
|
return 0;
|
|
9055
9126
|
} else {
|
|
9056
|
-
const $
|
|
9057
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9058
|
-
_script($
|
|
9059
|
-
writeScope($
|
|
9127
|
+
const $scope63_id = _scope_id();
|
|
9128
|
+
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope63_id, "a")}`);
|
|
9129
|
+
_script($scope63_id, "x58");
|
|
9130
|
+
writeScope($scope63_id, {});
|
|
9060
9131
|
return 1;
|
|
9061
9132
|
}
|
|
9062
|
-
}, $
|
|
9063
|
-
writeScope($
|
|
9133
|
+
}, $scope62_id, "b", 1, 1, 1, 0, 1);
|
|
9134
|
+
writeScope($scope62_id, {});
|
|
9064
9135
|
return 0;
|
|
9065
9136
|
}
|
|
9066
|
-
}, $
|
|
9137
|
+
}, $scope17_id, "f");
|
|
9067
9138
|
_html("</li>");
|
|
9068
|
-
_subscribe($active__closures, writeScope($
|
|
9139
|
+
_subscribe($active__closures, writeScope($scope17_id, {
|
|
9069
9140
|
j: h?.skillId,
|
|
9070
9141
|
l: h?.source,
|
|
9071
9142
|
m: h?.installs,
|
|
9072
9143
|
n: h?.installed,
|
|
9073
|
-
q: $
|
|
9074
|
-
|
|
9144
|
+
q: $for_content4__h_installs__closures,
|
|
9145
|
+
Ch2: 4
|
|
9075
9146
|
}));
|
|
9076
|
-
}, "skillId", $
|
|
9147
|
+
}, "skillId", $scope14_id, "j", 1, 1, 1, 0, 1);
|
|
9077
9148
|
_if(() => {
|
|
9078
9149
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9079
|
-
const $
|
|
9080
|
-
_html(`<li${_attr_class("
|
|
9081
|
-
_subscribe($skillQuery__closures, writeScope($
|
|
9150
|
+
const $scope53_id = _scope_id();
|
|
9151
|
+
_html(`<li${_attr_class("_co")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9152
|
+
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9082
9153
|
return 0;
|
|
9083
9154
|
}
|
|
9084
|
-
}, $
|
|
9085
|
-
_html(`</ul>${_el_resume($
|
|
9086
|
-
_script($
|
|
9087
|
-
writeScope($
|
|
9155
|
+
}, $scope14_id, "k", 1, 1, 1, 0, 1);
|
|
9156
|
+
_html(`</ul>${_el_resume($scope14_id, "g")}</div>${_el_resume($scope14_id, "a")}`);
|
|
9157
|
+
_script($scope14_id, "x59");
|
|
9158
|
+
writeScope($scope14_id, {});
|
|
9088
9159
|
return 0;
|
|
9089
9160
|
}
|
|
9090
9161
|
}, $scope0_id, "aa", 1, 1, 1, 0, 1);
|
|
9091
9162
|
_html(`</div>${_el_resume($scope0_id, "a4")}`);
|
|
9092
9163
|
_if(() => {
|
|
9093
9164
|
{
|
|
9094
|
-
const $
|
|
9095
|
-
_html(`<div${_attr_class("
|
|
9165
|
+
const $scope19_id = _scope_id();
|
|
9166
|
+
_html(`<div${_attr_class("_cR")}>`);
|
|
9096
9167
|
_if(() => {
|
|
9097
9168
|
if (skills && !skills.agents.length) {
|
|
9098
9169
|
const $scope103_id = _scope_id();
|
|
9099
|
-
_html(`<p${_attr_class("
|
|
9170
|
+
_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
9171
|
writeScope($scope103_id, {});
|
|
9101
9172
|
return 0;
|
|
9102
9173
|
} else if (skills && !skills.available) {
|
|
9103
|
-
const $
|
|
9104
|
-
_html(`<p${_attr_class("
|
|
9105
|
-
_script($
|
|
9106
|
-
_subscribe($active__closures, writeScope($
|
|
9174
|
+
const $scope20_id = _scope_id();
|
|
9175
|
+
_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($scope20_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope20_id, "b")}</p>`);
|
|
9176
|
+
_script($scope20_id, "x60");
|
|
9177
|
+
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9107
9178
|
return 1;
|
|
9108
9179
|
}
|
|
9109
|
-
}, $
|
|
9110
|
-
_html(`<ul${_attr_class("
|
|
9180
|
+
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9181
|
+
_html(`<ul${_attr_class("_cq")}>`);
|
|
9111
9182
|
_for_of(skills?.global || [], (s) => {
|
|
9112
|
-
const $
|
|
9113
|
-
const $
|
|
9114
|
-
const $
|
|
9115
|
-
const $
|
|
9183
|
+
const $scope21_id = _scope_id();
|
|
9184
|
+
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
9185
|
+
const $for_content5__s_name__closures = /* @__PURE__ */ new Set();
|
|
9186
|
+
const $for_content5__s_id__closures = /* @__PURE__ */ new Set();
|
|
9116
9187
|
_set_serialize_reason(8323070);
|
|
9117
9188
|
let $tags;
|
|
9118
9189
|
let $actions;
|
|
@@ -9121,19 +9192,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9121
9192
|
_scope_reason();
|
|
9122
9193
|
const $scope104_id = _scope_id();
|
|
9123
9194
|
_html(`<span${_attr_class("_N")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope104_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope104_id, "a")}`);
|
|
9124
|
-
_subscribe($
|
|
9195
|
+
_subscribe($for_content5__s_agents__closures, writeScope($scope104_id, { _: _scope_with_id($scope21_id) }));
|
|
9125
9196
|
_resume_branch($scope104_id);
|
|
9126
|
-
}, $
|
|
9197
|
+
}, $scope21_id) });
|
|
9127
9198
|
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("x64", () => {
|
|
9128
9199
|
_scope_reason();
|
|
9129
|
-
const $
|
|
9130
|
-
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($
|
|
9131
|
-
_script($
|
|
9132
|
-
writeScope($
|
|
9133
|
-
}, $
|
|
9200
|
+
const $scope64_id = _scope_id();
|
|
9201
|
+
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($scope64_id, "a")}`);
|
|
9202
|
+
_script($scope64_id, "x61");
|
|
9203
|
+
writeScope($scope64_id, { _: _scope_with_id($scope21_id) });
|
|
9204
|
+
}, $scope21_id) });
|
|
9134
9205
|
if (skills?.available) $trailing = attrTag({ content: _content_resume("x65", () => {
|
|
9135
9206
|
_scope_reason();
|
|
9136
|
-
const $
|
|
9207
|
+
const $scope54_id = _scope_id();
|
|
9137
9208
|
_html(`<button${_attr_class([
|
|
9138
9209
|
chipBtn,
|
|
9139
9210
|
"_8",
|
|
@@ -9152,11 +9223,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9152
9223
|
writeScope($scope107_id, {});
|
|
9153
9224
|
return 1;
|
|
9154
9225
|
}
|
|
9155
|
-
}, $
|
|
9156
|
-
_script($
|
|
9157
|
-
_subscribe($
|
|
9158
|
-
_resume_branch($
|
|
9159
|
-
}, $
|
|
9226
|
+
}, $scope54_id, "a", 1, 1, 1, "</button>");
|
|
9227
|
+
_script($scope54_id, "x62");
|
|
9228
|
+
_subscribe($for_content5__s_id__closures, _subscribe($for_content5__s_name__closures, _subscribe($confirmingSkill__closures, writeScope($scope54_id, { _: _scope_with_id($scope21_id) }))));
|
|
9229
|
+
_resume_branch($scope54_id);
|
|
9230
|
+
}, $scope21_id) });
|
|
9160
9231
|
const $childScope11 = _peek_scope_id();
|
|
9161
9232
|
skill_chip_default({
|
|
9162
9233
|
name: s.name,
|
|
@@ -9169,71 +9240,71 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9169
9240
|
actions: $actions,
|
|
9170
9241
|
trailing: $trailing
|
|
9171
9242
|
});
|
|
9172
|
-
_subscribe($skills_available__closures, _subscribe($skills__closures, _subscribe($active__closures, writeScope($
|
|
9243
|
+
_subscribe($skills_available__closures, _subscribe($skills__closures, _subscribe($active__closures, writeScope($scope21_id, {
|
|
9173
9244
|
d: s?.name,
|
|
9174
9245
|
i: s?.id,
|
|
9175
9246
|
k: s?.agents,
|
|
9176
|
-
p: $
|
|
9177
|
-
n: $
|
|
9178
|
-
o: $
|
|
9247
|
+
p: $for_content5__s_agents__closures,
|
|
9248
|
+
n: $for_content5__s_name__closures,
|
|
9249
|
+
o: $for_content5__s_id__closures,
|
|
9179
9250
|
a: _existing_scope($childScope11),
|
|
9180
|
-
|
|
9251
|
+
Ch2: 7
|
|
9181
9252
|
}))));
|
|
9182
|
-
}, "id", $
|
|
9253
|
+
}, "id", $scope19_id, "c", 1, 1, 1, "</ul>", 1);
|
|
9183
9254
|
_if(() => {
|
|
9184
9255
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9185
9256
|
const $scope108_id = _scope_id();
|
|
9186
|
-
_html(`<p${_attr_class("
|
|
9257
|
+
_html(`<p${_attr_class("_bJ")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9187
9258
|
writeScope($scope108_id, {});
|
|
9188
9259
|
return 0;
|
|
9189
9260
|
}
|
|
9190
|
-
}, $
|
|
9261
|
+
}, $scope19_id, "d", 1, 1, 1, 0, 1);
|
|
9191
9262
|
_html("</div>");
|
|
9192
|
-
writeScope($
|
|
9263
|
+
writeScope($scope19_id, {});
|
|
9193
9264
|
return 0;
|
|
9194
9265
|
}
|
|
9195
9266
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9196
|
-
_html(`</div><div${_attr_class(["
|
|
9267
|
+
_html(`</div><div${_attr_class(["_cH", "_cL"])}><div${_attr_class(["_cM", { ["_cN"]: machineOpen }])}><button${_attr_class("_cO")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9197
9268
|
_set_serialize_reason(1);
|
|
9198
9269
|
const $childScope12 = _peek_scope_id();
|
|
9199
9270
|
icon_chevron_right_default({
|
|
9200
9271
|
size: 12,
|
|
9201
|
-
class: ["
|
|
9272
|
+
class: ["_cS", { ["_cT"]: machineOpen }]
|
|
9202
9273
|
});
|
|
9203
|
-
_html(`<span${_attr_class("
|
|
9274
|
+
_html(`<span${_attr_class("_cP")}>Tools</span><span${_attr_class("_cQ")}>${_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
9275
|
_if(() => {
|
|
9205
9276
|
if (outdatedIds.length > 1) {
|
|
9206
|
-
const $
|
|
9207
|
-
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($
|
|
9208
|
-
_script($
|
|
9209
|
-
writeScope($
|
|
9277
|
+
const $scope22_id = _scope_id();
|
|
9278
|
+
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope22_id, "a")}`);
|
|
9279
|
+
_script($scope22_id, "x66");
|
|
9280
|
+
writeScope($scope22_id, {});
|
|
9210
9281
|
return 0;
|
|
9211
9282
|
}
|
|
9212
9283
|
}, $scope0_id, "al", 1, 1, 1, 0, 1);
|
|
9213
9284
|
_if(() => {
|
|
9214
9285
|
if (missingInstallable.length > 1) {
|
|
9215
|
-
const $
|
|
9216
|
-
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($
|
|
9217
|
-
_script($
|
|
9218
|
-
writeScope($
|
|
9286
|
+
const $scope23_id = _scope_id();
|
|
9287
|
+
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope23_id, "a")}`);
|
|
9288
|
+
_script($scope23_id, "x67");
|
|
9289
|
+
writeScope($scope23_id, {});
|
|
9219
9290
|
return 0;
|
|
9220
9291
|
}
|
|
9221
9292
|
}, $scope0_id, "am", 1, 1, 1, 0, 1);
|
|
9222
9293
|
_if(() => {
|
|
9223
9294
|
if (setup && setup.mise.installed && true) {
|
|
9224
|
-
const $
|
|
9295
|
+
const $scope56_id = _scope_id();
|
|
9225
9296
|
_html(`<button${_attr_class(iconBtnRow)} title="Add tool" aria-label="Add tool">`);
|
|
9226
9297
|
icon_plus_default({ size: 16 });
|
|
9227
|
-
_html(`</button>${_el_resume($
|
|
9228
|
-
_script($
|
|
9229
|
-
writeScope($
|
|
9298
|
+
_html(`</button>${_el_resume($scope56_id, "a")}`);
|
|
9299
|
+
_script($scope56_id, "x68");
|
|
9300
|
+
writeScope($scope56_id, {});
|
|
9230
9301
|
return 0;
|
|
9231
9302
|
}
|
|
9232
9303
|
}, $scope0_id, "an", 1, 1, 1, 0, 1);
|
|
9233
9304
|
_if(() => {
|
|
9234
9305
|
if (setup && setup.mise.installed) {
|
|
9235
|
-
const $
|
|
9236
|
-
_html(`<div${_attr_class(["
|
|
9306
|
+
const $scope24_id = _scope_id();
|
|
9307
|
+
_html(`<div${_attr_class(["_ch", { ["_ci"]: true }])}><label${_attr_class(["_1", "_cj"])}>`);
|
|
9237
9308
|
_if(() => {
|
|
9238
9309
|
if (searching) {
|
|
9239
9310
|
const $scope109_id = _scope_id();
|
|
@@ -9249,50 +9320,50 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9249
9320
|
writeScope($scope110_id, {});
|
|
9250
9321
|
return 1;
|
|
9251
9322
|
}
|
|
9252
|
-
}, $
|
|
9253
|
-
_html(`<input${_attr_input_value($
|
|
9323
|
+
}, $scope24_id, "c", 1, 1, 1, 0, 1);
|
|
9324
|
+
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9254
9325
|
"_Z",
|
|
9255
9326
|
"_3",
|
|
9256
|
-
"
|
|
9257
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($
|
|
9327
|
+
"_ck"
|
|
9328
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_cl"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9258
9329
|
icon_xmark_default({ size: 12 });
|
|
9259
|
-
_html(`</button>${_el_resume($
|
|
9330
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_cn"])}${_attr("hidden", true)}>`);
|
|
9260
9331
|
_if(() => {
|
|
9261
9332
|
if (searching && !hits?.length) {
|
|
9262
9333
|
const $scope111_id = _scope_id();
|
|
9263
|
-
_html(`<li${_attr_class("
|
|
9334
|
+
_html(`<li${_attr_class("_co")}>Searching the mise registry…</li>`);
|
|
9264
9335
|
writeScope($scope111_id, {});
|
|
9265
9336
|
return 0;
|
|
9266
9337
|
}
|
|
9267
|
-
}, $
|
|
9338
|
+
}, $scope24_id, "h", 1, 1, 1, 0, 1);
|
|
9268
9339
|
_if(() => {
|
|
9269
9340
|
if (hits && !hits.length && !searching) {
|
|
9270
|
-
const $
|
|
9271
|
-
_html(`<li${_attr_class("
|
|
9272
|
-
_subscribe($query__closures, writeScope($
|
|
9341
|
+
const $scope43_id = _scope_id();
|
|
9342
|
+
_html(`<li${_attr_class("_co")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9343
|
+
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9273
9344
|
return 0;
|
|
9274
9345
|
}
|
|
9275
|
-
}, $
|
|
9346
|
+
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9276
9347
|
_for_of(hits || [], (h) => {
|
|
9277
|
-
const $
|
|
9278
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9348
|
+
const $scope25_id = _scope_id();
|
|
9349
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9279
9350
|
_if(() => {
|
|
9280
9351
|
if (active.has(h.name)) {
|
|
9281
|
-
const $
|
|
9282
|
-
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
9283
|
-
_subscribe($active__closures, writeScope($
|
|
9352
|
+
const $scope26_id = _scope_id();
|
|
9353
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9354
|
+
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9284
9355
|
return 0;
|
|
9285
9356
|
} else if (h.description) {
|
|
9286
9357
|
const $scope112_id = _scope_id();
|
|
9287
|
-
_html(`<span${_attr_class("
|
|
9358
|
+
_html(`<span${_attr_class("_bH")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9288
9359
|
writeScope($scope112_id, {});
|
|
9289
9360
|
return 1;
|
|
9290
9361
|
}
|
|
9291
|
-
}, $
|
|
9362
|
+
}, $scope25_id, "e", 1, 1, 1, 0, 1);
|
|
9292
9363
|
_html("</div>");
|
|
9293
9364
|
_if(() => {
|
|
9294
9365
|
if (!active.has(h.name)) {
|
|
9295
|
-
const $
|
|
9366
|
+
const $scope37_id = _scope_id();
|
|
9296
9367
|
_if(() => {
|
|
9297
9368
|
if (h.installed) {
|
|
9298
9369
|
const $scope113_id = _scope_id();
|
|
@@ -9300,49 +9371,49 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9300
9371
|
writeScope($scope113_id, {});
|
|
9301
9372
|
return 0;
|
|
9302
9373
|
} else {
|
|
9303
|
-
const $
|
|
9304
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9305
|
-
_script($
|
|
9306
|
-
writeScope($
|
|
9374
|
+
const $scope38_id = _scope_id();
|
|
9375
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope38_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope38_id, "b")}`);
|
|
9376
|
+
_script($scope38_id, "x69");
|
|
9377
|
+
writeScope($scope38_id, {});
|
|
9307
9378
|
return 1;
|
|
9308
9379
|
}
|
|
9309
|
-
}, $
|
|
9310
|
-
writeScope($
|
|
9380
|
+
}, $scope37_id, "a");
|
|
9381
|
+
writeScope($scope37_id, {});
|
|
9311
9382
|
return 0;
|
|
9312
9383
|
}
|
|
9313
|
-
}, $
|
|
9384
|
+
}, $scope25_id, "f");
|
|
9314
9385
|
_html("</li>");
|
|
9315
|
-
_subscribe($active__closures, writeScope($
|
|
9386
|
+
_subscribe($active__closures, writeScope($scope25_id, {
|
|
9316
9387
|
i: h?.name,
|
|
9317
9388
|
k: h?.description,
|
|
9318
9389
|
m: h?.installed,
|
|
9319
|
-
|
|
9390
|
+
Ch2: 8
|
|
9320
9391
|
}));
|
|
9321
|
-
}, "name", $
|
|
9322
|
-
_html(`</ul>${_el_resume($
|
|
9323
|
-
_script($
|
|
9324
|
-
writeScope($
|
|
9392
|
+
}, "name", $scope24_id, "j", 1, 1, 1, 0, 1);
|
|
9393
|
+
_html(`</ul>${_el_resume($scope24_id, "g")}</div>${_el_resume($scope24_id, "a")}`);
|
|
9394
|
+
_script($scope24_id, "x70");
|
|
9395
|
+
writeScope($scope24_id, {});
|
|
9325
9396
|
return 0;
|
|
9326
9397
|
}
|
|
9327
9398
|
}, $scope0_id, "ao", 1, 1, 1, 0, 1);
|
|
9328
9399
|
_html(`</div>${_el_resume($scope0_id, "ad")}`);
|
|
9329
9400
|
_if(() => {
|
|
9330
9401
|
if (machineOpen) {
|
|
9331
|
-
const $
|
|
9332
|
-
_html(`<div${_attr_class("
|
|
9402
|
+
const $scope5_id = _scope_id();
|
|
9403
|
+
_html(`<div${_attr_class("_cR")}>`);
|
|
9333
9404
|
_if(() => {
|
|
9334
9405
|
if (setup && !setup.mise.installed) {
|
|
9335
|
-
const $
|
|
9336
|
-
_html(`<p${_attr_class("
|
|
9337
|
-
_script($
|
|
9338
|
-
_subscribe($active__closures, writeScope($
|
|
9406
|
+
const $scope27_id = _scope_id();
|
|
9407
|
+
_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($scope27_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope27_id, "b")}</p>`);
|
|
9408
|
+
_script($scope27_id, "x71");
|
|
9409
|
+
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9339
9410
|
return 0;
|
|
9340
9411
|
}
|
|
9341
|
-
}, $
|
|
9412
|
+
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
9342
9413
|
_html(`<ul${_attr_class(toolGrid)}>`);
|
|
9343
9414
|
_if(() => {
|
|
9344
9415
|
if (self) {
|
|
9345
|
-
const $
|
|
9416
|
+
const $scope47_id = _scope_id();
|
|
9346
9417
|
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dc", "_y"])}>work</span>`);
|
|
9347
9418
|
_if(() => {
|
|
9348
9419
|
if (selfUpdating) {
|
|
@@ -9351,8 +9422,8 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9351
9422
|
writeScope($scope114_id, {});
|
|
9352
9423
|
return 0;
|
|
9353
9424
|
} else {
|
|
9354
|
-
const $
|
|
9355
|
-
_html(`<span${_attr_class(["_y", metaTrunc])} title="Running version">v${_text_resume($
|
|
9425
|
+
const $scope48_id = _scope_id();
|
|
9426
|
+
_html(`<span${_attr_class(["_y", metaTrunc])} title="Running version">v${_text_resume($scope48_id, "b", self.version, 2)}</span>`);
|
|
9356
9427
|
_if(() => {
|
|
9357
9428
|
if (self.install === "source") {
|
|
9358
9429
|
const $scope115_id = _scope_id();
|
|
@@ -9360,12 +9431,12 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9360
9431
|
writeScope($scope115_id, {});
|
|
9361
9432
|
return 0;
|
|
9362
9433
|
} else if (self.latest && self.latest !== self.version) {
|
|
9363
|
-
const $
|
|
9434
|
+
const $scope49_id = _scope_id();
|
|
9364
9435
|
_html(`<button${_attr_class([btnSm, "_df"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9365
9436
|
icon_arrow_up_default({ size: 12 });
|
|
9366
|
-
_html(` ${_text_resume($
|
|
9367
|
-
_script($
|
|
9368
|
-
_subscribe($self_latest__closures, writeScope($
|
|
9437
|
+
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9438
|
+
_script($scope49_id, "x72");
|
|
9439
|
+
_subscribe($self_latest__closures, writeScope($scope49_id, { Chi: 3 }));
|
|
9369
9440
|
return 1;
|
|
9370
9441
|
} else if (self.latest) {
|
|
9371
9442
|
const $scope116_id = _scope_id();
|
|
@@ -9373,14 +9444,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9373
9444
|
writeScope($scope116_id, {});
|
|
9374
9445
|
return 2;
|
|
9375
9446
|
}
|
|
9376
|
-
}, $
|
|
9377
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($
|
|
9378
|
-
|
|
9379
|
-
|
|
9447
|
+
}, $scope48_id, "c", 1, 1, 1, 0, 1);
|
|
9448
|
+
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope48_id, {
|
|
9449
|
+
Chi: 2,
|
|
9450
|
+
Chj: 1
|
|
9380
9451
|
}))));
|
|
9381
9452
|
return 1;
|
|
9382
9453
|
}
|
|
9383
|
-
}, $
|
|
9454
|
+
}, $scope47_id, "c");
|
|
9384
9455
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9385
9456
|
_if(() => {
|
|
9386
9457
|
if (!selfUpdating) {
|
|
@@ -9389,75 +9460,75 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9389
9460
|
writeScope($scope117_id, {});
|
|
9390
9461
|
return 0;
|
|
9391
9462
|
}
|
|
9392
|
-
}, $
|
|
9463
|
+
}, $scope47_id, "e", 1, 1, 1, 0, 1);
|
|
9393
9464
|
_html("</li>");
|
|
9394
|
-
_subscribe($selfUpdating__closures, writeScope($
|
|
9465
|
+
_subscribe($selfUpdating__closures, writeScope($scope47_id, {}));
|
|
9395
9466
|
return 0;
|
|
9396
9467
|
}
|
|
9397
|
-
}, $
|
|
9468
|
+
}, $scope5_id, "d", 1, 1, 1, 0, 1);
|
|
9398
9469
|
_for_of(tools, (t) => {
|
|
9399
|
-
const $
|
|
9400
|
-
const $
|
|
9401
|
-
const $
|
|
9402
|
-
const $
|
|
9403
|
-
const $
|
|
9404
|
-
const $
|
|
9405
|
-
const $
|
|
9406
|
-
const $
|
|
9407
|
-
const $
|
|
9408
|
-
_html(`<li${_attr_class([toolRow, { ["_db"]: !t.installed }])}><span${_attr_class(["_dc", "_y"])}>${_text_resume($
|
|
9470
|
+
const $scope28_id = _scope_id();
|
|
9471
|
+
const $for_content7__t_pin__closures = /* @__PURE__ */ new Set();
|
|
9472
|
+
const $for_content7__t__closures = /* @__PURE__ */ new Set();
|
|
9473
|
+
const $for_content7__t_version__closures = /* @__PURE__ */ new Set();
|
|
9474
|
+
const $for_content7__t_path__closures = /* @__PURE__ */ new Set();
|
|
9475
|
+
const $for_content7__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9476
|
+
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9477
|
+
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9478
|
+
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9479
|
+
_html(`<li${_attr_class([toolRow, { ["_db"]: !t.installed }])}><span${_attr_class(["_dc", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9409
9480
|
_if(() => {
|
|
9410
9481
|
if (active.has(t.id)) {
|
|
9411
|
-
const $
|
|
9412
|
-
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
9413
|
-
_subscribe($active__closures, writeScope($
|
|
9482
|
+
const $scope29_id = _scope_id();
|
|
9483
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9484
|
+
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9414
9485
|
return 0;
|
|
9415
9486
|
} else if (t.installed) {
|
|
9416
|
-
const $
|
|
9487
|
+
const $scope39_id = _scope_id();
|
|
9417
9488
|
_if(() => {
|
|
9418
9489
|
if (t.version) {
|
|
9419
|
-
const $
|
|
9420
|
-
_html(`<button${_attr_class(["_de", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($
|
|
9490
|
+
const $scope40_id = _scope_id();
|
|
9491
|
+
_html(`<button${_attr_class(["_de", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope40_id, "b", t.version, 2)}`);
|
|
9421
9492
|
_if(() => {
|
|
9422
9493
|
if (aliasPin(t)) {
|
|
9423
9494
|
const $scope118_id = _scope_id();
|
|
9424
9495
|
_html(`<span${_attr_class("_dd")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9425
|
-
_subscribe($
|
|
9496
|
+
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9426
9497
|
return 0;
|
|
9427
9498
|
}
|
|
9428
|
-
}, $
|
|
9429
|
-
_html(`</button>${_el_resume($
|
|
9430
|
-
_script($
|
|
9431
|
-
_subscribe($
|
|
9499
|
+
}, $scope40_id, "c", 1, 1, 1, 0, 1);
|
|
9500
|
+
_html(`</button>${_el_resume($scope40_id, "a")}`);
|
|
9501
|
+
_script($scope40_id, "x73");
|
|
9502
|
+
_subscribe($for_content7__t_version__closures, _subscribe($for_content7__t__closures, writeScope($scope40_id, {})));
|
|
9432
9503
|
return 0;
|
|
9433
9504
|
} else {
|
|
9434
9505
|
const $scope119_id = _scope_id();
|
|
9435
9506
|
_html(`<span${_attr_class([metaTrunc, "_y"])}${_attr("title", t.path)}>${_text_resume($scope119_id, "b", t.path)}</span>${_el_resume($scope119_id, "a")}`);
|
|
9436
|
-
_subscribe($
|
|
9507
|
+
_subscribe($for_content7__t_path__closures, writeScope($scope119_id, {}));
|
|
9437
9508
|
return 1;
|
|
9438
9509
|
}
|
|
9439
|
-
}, $
|
|
9510
|
+
}, $scope39_id, "a", 1, 1, 1, 0, 1);
|
|
9440
9511
|
_if(() => {
|
|
9441
9512
|
if (outdated(t)) {
|
|
9442
|
-
const $
|
|
9513
|
+
const $scope59_id = _scope_id();
|
|
9443
9514
|
_html(`<button${_attr_class([btnSm, "_df"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9444
9515
|
icon_arrow_up_default({ size: 12 });
|
|
9445
|
-
_html(` ${_text_resume($
|
|
9446
|
-
_script($
|
|
9447
|
-
_subscribe($
|
|
9516
|
+
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9517
|
+
_script($scope59_id, "x74");
|
|
9518
|
+
_subscribe($for_content7__t_latest__closures, writeScope($scope59_id, {}));
|
|
9448
9519
|
return 0;
|
|
9449
9520
|
} else if (t.newest) {
|
|
9450
|
-
const $
|
|
9451
|
-
_html(`<button${_attr_class(["_de", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($
|
|
9452
|
-
_script($
|
|
9453
|
-
_subscribe($
|
|
9521
|
+
const $scope60_id = _scope_id();
|
|
9522
|
+
_html(`<button${_attr_class(["_de", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
|
|
9523
|
+
_script($scope60_id, "x75");
|
|
9524
|
+
_subscribe($for_content7__t_newest__closures, _subscribe($for_content7__t_pin__closures, _subscribe($for_content7__t_version__closures, _subscribe($for_content7__t_label__closures, writeScope($scope60_id, {
|
|
9454
9525
|
Cw: 1,
|
|
9455
9526
|
Cy: 1
|
|
9456
9527
|
})))));
|
|
9457
9528
|
return 1;
|
|
9458
9529
|
}
|
|
9459
|
-
}, $
|
|
9460
|
-
writeScope($
|
|
9530
|
+
}, $scope39_id, "b", 1, 1, 1, 0, 1);
|
|
9531
|
+
writeScope($scope39_id, {});
|
|
9461
9532
|
return 1;
|
|
9462
9533
|
} else if (t.installable) {
|
|
9463
9534
|
const $scope120_id = _scope_id();
|
|
@@ -9470,11 +9541,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9470
9541
|
writeScope($scope121_id, {});
|
|
9471
9542
|
return 3;
|
|
9472
9543
|
}
|
|
9473
|
-
}, $
|
|
9544
|
+
}, $scope28_id, "d");
|
|
9474
9545
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9475
9546
|
_if(() => {
|
|
9476
9547
|
if (!active.has(t.id)) {
|
|
9477
|
-
const $
|
|
9548
|
+
const $scope34_id = _scope_id();
|
|
9478
9549
|
_if(() => {
|
|
9479
9550
|
if (t.required) {
|
|
9480
9551
|
const $scope122_id = _scope_id();
|
|
@@ -9482,16 +9553,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9482
9553
|
writeScope($scope122_id, {});
|
|
9483
9554
|
return 0;
|
|
9484
9555
|
}
|
|
9485
|
-
}, $
|
|
9556
|
+
}, $scope34_id, "a", 1, 1, 1, 0, 1);
|
|
9486
9557
|
_if(() => {
|
|
9487
9558
|
if (!t.installed && t.installable) {
|
|
9488
|
-
const $
|
|
9489
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9490
|
-
_script($
|
|
9491
|
-
writeScope($
|
|
9559
|
+
const $scope61_id = _scope_id();
|
|
9560
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope61_id, "a")}`);
|
|
9561
|
+
_script($scope61_id, "x76");
|
|
9562
|
+
writeScope($scope61_id, {});
|
|
9492
9563
|
return 0;
|
|
9493
9564
|
} else if (t.installed && t.version && !t.required) {
|
|
9494
|
-
const $
|
|
9565
|
+
const $scope35_id = _scope_id();
|
|
9495
9566
|
_html(`<button${_attr_class([
|
|
9496
9567
|
iconBtnXs,
|
|
9497
9568
|
"_8",
|
|
@@ -9510,18 +9581,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9510
9581
|
writeScope($scope124_id, {});
|
|
9511
9582
|
return 1;
|
|
9512
9583
|
}
|
|
9513
|
-
}, $
|
|
9514
|
-
_script($
|
|
9515
|
-
_subscribe($
|
|
9584
|
+
}, $scope35_id, "a", 1, 1, 1, "</button>");
|
|
9585
|
+
_script($scope35_id, "x77");
|
|
9586
|
+
_subscribe($for_content7__t_id__closures, _subscribe($for_content7__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope35_id, { Ch5: 2 }))));
|
|
9516
9587
|
return 1;
|
|
9517
9588
|
}
|
|
9518
|
-
}, $
|
|
9519
|
-
writeScope($
|
|
9589
|
+
}, $scope34_id, "b", 1, 1, 1, 0, 1);
|
|
9590
|
+
writeScope($scope34_id, {});
|
|
9520
9591
|
return 0;
|
|
9521
9592
|
}
|
|
9522
|
-
}, $
|
|
9523
|
-
_html(`</li>${_el_resume($
|
|
9524
|
-
_subscribe($active__closures, writeScope($
|
|
9593
|
+
}, $scope28_id, "f");
|
|
9594
|
+
_html(`</li>${_el_resume($scope28_id, "a")}`);
|
|
9595
|
+
_subscribe($active__closures, writeScope($scope28_id, {
|
|
9525
9596
|
h: t,
|
|
9526
9597
|
i: t?.installed,
|
|
9527
9598
|
j: t?.label,
|
|
@@ -9533,22 +9604,23 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9533
9604
|
q: t?.latest,
|
|
9534
9605
|
r: t?.installable,
|
|
9535
9606
|
t: t?.required,
|
|
9536
|
-
a0: $
|
|
9537
|
-
u: $
|
|
9538
|
-
y: $
|
|
9539
|
-
z: $
|
|
9540
|
-
a2: $
|
|
9541
|
-
w: $
|
|
9542
|
-
a1: $
|
|
9543
|
-
x: $
|
|
9544
|
-
|
|
9607
|
+
a0: $for_content7__t_pin__closures,
|
|
9608
|
+
u: $for_content7__t__closures,
|
|
9609
|
+
y: $for_content7__t_version__closures,
|
|
9610
|
+
z: $for_content7__t_path__closures,
|
|
9611
|
+
a2: $for_content7__t_latest__closures,
|
|
9612
|
+
w: $for_content7__t_label__closures,
|
|
9613
|
+
a1: $for_content7__t_newest__closures,
|
|
9614
|
+
x: $for_content7__t_id__closures,
|
|
9615
|
+
Ch2: 11
|
|
9545
9616
|
}));
|
|
9546
|
-
}, "id", $
|
|
9617
|
+
}, "id", $scope5_id, "e", 1, 1, 1, 0, 1);
|
|
9547
9618
|
_html("</ul></div>");
|
|
9548
|
-
writeScope($
|
|
9619
|
+
writeScope($scope5_id, {});
|
|
9549
9620
|
return 0;
|
|
9550
9621
|
}
|
|
9551
9622
|
}, $scope0_id, "ap", 1, 1, 1, 0, 1);
|
|
9623
|
+
const accent = input$3.instance.accent;
|
|
9552
9624
|
const themeOpts = [
|
|
9553
9625
|
{
|
|
9554
9626
|
id: "system",
|
|
@@ -9563,20 +9635,35 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9563
9635
|
label: "Dark"
|
|
9564
9636
|
}
|
|
9565
9637
|
];
|
|
9566
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9638
|
+
_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", "_du"])}><div${_attr_class("_dG")}><img${_attr_class("_dH")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}<span${_attr_class("_dI")}><span${_attr_class("_dJ")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dK")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dv")}><span${_attr_class("_dw")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9567
9639
|
setInstance({ name: v });
|
|
9568
|
-
}, "x4", $scope0_id))}${_attr_class(["_Z", "_dx"])} type=text placeholder=
|
|
9640
|
+
}, "x4", $scope0_id))}${_attr_class(["_Z", "_dx"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dv")}><span${_attr_class("_dw")}>Theme</span><span${_attr_class("_dz")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9569
9641
|
_for_of(themeOpts, (opt) => {
|
|
9570
|
-
const $
|
|
9571
|
-
_html(`<button type=button${_attr_class([
|
|
9572
|
-
|
|
9573
|
-
|
|
9574
|
-
|
|
9642
|
+
const $scope50_id = _scope_id();
|
|
9643
|
+
_html(`<button type=button${_attr_class([
|
|
9644
|
+
"_bg",
|
|
9645
|
+
"_dL",
|
|
9646
|
+
{ ["_bf"]: themeMode === opt.id }
|
|
9647
|
+
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9648
|
+
if (opt.id === "system") {
|
|
9649
|
+
_scope_id();
|
|
9650
|
+
icon_monitor_default({ size: 14 });
|
|
9651
|
+
} else if (opt.id === "light") {
|
|
9652
|
+
_scope_id();
|
|
9653
|
+
icon_sun_default({ size: 14 });
|
|
9654
|
+
} else {
|
|
9655
|
+
_scope_id();
|
|
9656
|
+
icon_moon_default({ size: 14 });
|
|
9657
|
+
}
|
|
9658
|
+
_html(`${_escape(opt.label)}</button>${_el_resume($scope50_id, "a")}`);
|
|
9659
|
+
_script($scope50_id, "x78");
|
|
9660
|
+
writeScope($scope50_id, {
|
|
9661
|
+
f: opt?.id,
|
|
9575
9662
|
_: _scope_with_id($scope0_id)
|
|
9576
9663
|
});
|
|
9577
|
-
}, "id", $scope0_id, "
|
|
9664
|
+
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9578
9665
|
_html(`</span><span${_attr_class(["_o", "_dA"])}>`);
|
|
9579
|
-
_attr_select_value($scope0_id, "
|
|
9666
|
+
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9580
9667
|
setThemeMode(v);
|
|
9581
9668
|
}, "x5", $scope0_id), () => {
|
|
9582
9669
|
_html(`<select${_attr_class(["_p", "_dB"])} aria-label="Color theme">`);
|
|
@@ -9586,230 +9673,269 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9586
9673
|
});
|
|
9587
9674
|
_html("</select>");
|
|
9588
9675
|
});
|
|
9589
|
-
_html(`${_el_resume($scope0_id, "
|
|
9590
|
-
"
|
|
9591
|
-
"
|
|
9592
|
-
{ ["
|
|
9593
|
-
])} role=radio aria-checked=${!
|
|
9676
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dv")}><span${_attr_class("_dw")}>Accent</span><span${_attr_class("_dM")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9677
|
+
"_dN",
|
|
9678
|
+
"_dQ",
|
|
9679
|
+
{ ["_dO"]: !accent }
|
|
9680
|
+
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9681
|
+
_if(() => {
|
|
9682
|
+
if (!accent) {
|
|
9683
|
+
const $scope129_id = _scope_id();
|
|
9684
|
+
icon_check_default({
|
|
9685
|
+
size: 12,
|
|
9686
|
+
class: "_dP"
|
|
9687
|
+
});
|
|
9688
|
+
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9689
|
+
return 0;
|
|
9690
|
+
}
|
|
9691
|
+
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9594
9692
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9595
|
-
const $
|
|
9596
|
-
_html(`<button type=button${_attr_class(["
|
|
9597
|
-
|
|
9598
|
-
|
|
9693
|
+
const $scope77_id = _scope_id();
|
|
9694
|
+
_html(`<button type=button${_attr_class(["_dN", { ["_dO"]: accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}>`);
|
|
9695
|
+
_if(() => {
|
|
9696
|
+
if (accent === p.value) {
|
|
9697
|
+
const $scope130_id = _scope_id();
|
|
9698
|
+
icon_check_default({
|
|
9699
|
+
size: 12,
|
|
9700
|
+
class: "_dP"
|
|
9701
|
+
});
|
|
9702
|
+
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9703
|
+
return 0;
|
|
9704
|
+
}
|
|
9705
|
+
}, $scope77_id, "a", $sg__input_instance_accent, 1, $sg__input_instance_accent, "</button>", 1);
|
|
9706
|
+
_script($scope77_id, "x79");
|
|
9707
|
+
writeScope($scope77_id, {
|
|
9599
9708
|
d: p?.value,
|
|
9600
9709
|
_: _scope_with_id($scope0_id)
|
|
9601
9710
|
});
|
|
9602
|
-
}, "value", $scope0_id, "
|
|
9603
|
-
const customOn = !!
|
|
9711
|
+
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9712
|
+
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9604
9713
|
_html(`<label${_attr_class([
|
|
9605
|
-
"
|
|
9606
|
-
"
|
|
9607
|
-
{ ["
|
|
9608
|
-
])}${customOn ? _attr_style(`--swatch:${
|
|
9714
|
+
"_dN",
|
|
9715
|
+
"_dR",
|
|
9716
|
+
{ ["_dO"]: customOn }
|
|
9717
|
+
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "bf", accent || "#3556d8", _resume(function(v) {
|
|
9609
9718
|
setInstance({ accent: v });
|
|
9610
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
9719
|
+
}, "x6", $scope0_id))}${_attr_class("_dS")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9720
|
+
_if(() => {
|
|
9721
|
+
if (customOn) {
|
|
9722
|
+
const $scope131_id = _scope_id();
|
|
9723
|
+
icon_check_default({
|
|
9724
|
+
size: 12,
|
|
9725
|
+
class: "_dP"
|
|
9726
|
+
});
|
|
9727
|
+
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9728
|
+
return 0;
|
|
9729
|
+
} else {
|
|
9730
|
+
const $scope132_id = _scope_id();
|
|
9731
|
+
icon_plus_default({ size: 12 });
|
|
9732
|
+
$si__input_instance_accent && writeScope($scope132_id, {});
|
|
9733
|
+
return 1;
|
|
9734
|
+
}
|
|
9735
|
+
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9736
|
+
_html(`</label>${_el_resume($scope0_id, "be", $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", "_cG"])}><div${_attr_class("_cH")}><div${_attr_class("_dT")}><div${_attr_class("_bE")}>`);
|
|
9611
9737
|
_if(() => {
|
|
9612
9738
|
if (backupBusy === "preflight") {
|
|
9613
|
-
const $
|
|
9614
|
-
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
9615
|
-
writeScope($
|
|
9739
|
+
const $scope65_id = _scope_id();
|
|
9740
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9741
|
+
writeScope($scope65_id, {});
|
|
9616
9742
|
return 0;
|
|
9617
9743
|
} else {
|
|
9618
|
-
const $
|
|
9619
|
-
_html(`<span${_attr_class("
|
|
9620
|
-
writeScope($
|
|
9744
|
+
const $scope133_id = _scope_id();
|
|
9745
|
+
_html(`<span${_attr_class("_bH")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9746
|
+
writeScope($scope133_id, {});
|
|
9621
9747
|
return 1;
|
|
9622
9748
|
}
|
|
9623
|
-
}, $scope0_id, "
|
|
9749
|
+
}, $scope0_id, "bn", 1, 1, 1, "</div>", 1);
|
|
9624
9750
|
_if(() => {
|
|
9625
9751
|
if (!backupBusy && !preflight) {
|
|
9626
|
-
const $
|
|
9627
|
-
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($
|
|
9628
|
-
_script($
|
|
9629
|
-
writeScope($
|
|
9752
|
+
const $scope75_id = _scope_id();
|
|
9753
|
+
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($scope75_id, "a")}`);
|
|
9754
|
+
_script($scope75_id, "x80");
|
|
9755
|
+
writeScope($scope75_id, {});
|
|
9630
9756
|
return 0;
|
|
9631
9757
|
}
|
|
9632
|
-
}, $scope0_id, "
|
|
9758
|
+
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
9633
9759
|
_html("</div>");
|
|
9634
9760
|
_if(() => {
|
|
9635
9761
|
if (preflight && !backupBusy) {
|
|
9636
|
-
const $
|
|
9637
|
-
_html(`<div${_attr_class("
|
|
9762
|
+
const $scope67_id = _scope_id();
|
|
9763
|
+
_html(`<div${_attr_class("_dV")}><p${_attr_class("_dW")}>In the file: ${_text_resume($scope67_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope67_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope67_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope67_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope67_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope67_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope67_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_dW")}>Not in the file: `);
|
|
9638
9764
|
_if(() => {
|
|
9639
9765
|
if (preflight.unpushed) {
|
|
9640
|
-
const $
|
|
9641
|
-
_html(` ${_text_resume($
|
|
9766
|
+
const $scope68_id = _scope_id();
|
|
9767
|
+
_html(` ${_text_resume($scope68_id, "a", preflight.unpushed, 2)} unpushed commit${_text_resume($scope68_id, "b", preflight.unpushed === 1 ? "" : "s", 2)}`);
|
|
9642
9768
|
_if(() => {
|
|
9643
9769
|
if (preflight.files) {
|
|
9644
|
-
const $
|
|
9770
|
+
const $scope134_id = _scope_id();
|
|
9645
9771
|
_html(",");
|
|
9646
|
-
writeScope($
|
|
9772
|
+
writeScope($scope134_id, {});
|
|
9647
9773
|
return 0;
|
|
9648
9774
|
}
|
|
9649
|
-
}, $
|
|
9650
|
-
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($
|
|
9775
|
+
}, $scope68_id, "c");
|
|
9776
|
+
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($scope68_id, {})));
|
|
9651
9777
|
return 0;
|
|
9652
9778
|
}
|
|
9653
|
-
}, $
|
|
9654
|
-
_html(`${_text_resume($
|
|
9779
|
+
}, $scope67_id, "m");
|
|
9780
|
+
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_dX")}>`);
|
|
9655
9781
|
_for_of(preflight.workspaces, (w) => {
|
|
9656
|
-
const $
|
|
9782
|
+
const $scope135_id = _scope_id();
|
|
9657
9783
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9658
|
-
_html(`<li${_attr_class("
|
|
9784
|
+
_html(`<li${_attr_class("_dY")}><span${_attr_class("_bF")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dX")}>`);
|
|
9659
9785
|
_for_of(w.repos, (r) => {
|
|
9660
|
-
const $
|
|
9786
|
+
const $scope136_id = _scope_id();
|
|
9661
9787
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9662
|
-
_html(`<li${_attr_class("
|
|
9788
|
+
_html(`<li${_attr_class("_dZ")}><span${_attr_class("_d0")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9663
9789
|
_for_of(r.unpushed, (b) => {
|
|
9664
|
-
const $
|
|
9665
|
-
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($
|
|
9790
|
+
const $scope137_id = _scope_id();
|
|
9791
|
+
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope137_id, "b", b.count)} unpushed `);
|
|
9666
9792
|
_if(() => {
|
|
9667
9793
|
if (b.branch !== w.name) {
|
|
9668
|
-
const $
|
|
9669
|
-
_html(`<span${_attr_class("_y")}>${_text_resume($
|
|
9670
|
-
writeScope($
|
|
9794
|
+
const $scope140_id = _scope_id();
|
|
9795
|
+
_html(`<span${_attr_class("_y")}>${_text_resume($scope140_id, "b", b.branch)}</span>`);
|
|
9796
|
+
writeScope($scope140_id, {});
|
|
9671
9797
|
return 0;
|
|
9672
9798
|
}
|
|
9673
|
-
}, $
|
|
9674
|
-
_html(`</span>${_el_resume($
|
|
9675
|
-
_subscribe($for_content18__w_name__closures, writeScope($
|
|
9676
|
-
}, "branch", $
|
|
9799
|
+
}, $scope137_id, "c", 1, 1, 1, 0, 1);
|
|
9800
|
+
_html(`</span>${_el_resume($scope137_id, "a")}`);
|
|
9801
|
+
_subscribe($for_content18__w_name__closures, writeScope($scope137_id, { f: b?.branch }));
|
|
9802
|
+
}, "branch", $scope136_id, "e", 1, 1, 1, 0, 1);
|
|
9677
9803
|
_html("</span>");
|
|
9678
9804
|
_if(() => {
|
|
9679
9805
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9680
|
-
const $
|
|
9681
|
-
_html(`<ul${_attr_class("
|
|
9806
|
+
const $scope138_id = _scope_id();
|
|
9807
|
+
_html(`<ul${_attr_class("_d1")}>`);
|
|
9682
9808
|
_for_of(r.modified, (f) => {
|
|
9683
|
-
const $
|
|
9684
|
-
_html(`<li${_attr_class("
|
|
9809
|
+
const $scope141_id = _scope_id();
|
|
9810
|
+
_html(`<li${_attr_class("_d2")}><span${_attr_class([
|
|
9685
9811
|
"_N",
|
|
9686
9812
|
"_P",
|
|
9687
9813
|
tone.warn
|
|
9688
|
-
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($
|
|
9689
|
-
writeScope($
|
|
9690
|
-
}, (f) => f, $
|
|
9814
|
+
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope141_id, "d", f)}</span></li>`);
|
|
9815
|
+
writeScope($scope141_id, {});
|
|
9816
|
+
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9691
9817
|
_for_of(r.untracked, (f) => {
|
|
9692
|
-
const $
|
|
9693
|
-
_html(`<li${_attr_class("
|
|
9694
|
-
writeScope($
|
|
9695
|
-
}, (f) => f, $
|
|
9818
|
+
const $scope142_id = _scope_id();
|
|
9819
|
+
_html(`<li${_attr_class("_d2")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9820
|
+
writeScope($scope142_id, {});
|
|
9821
|
+
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9696
9822
|
_for_of(r.ignored, (f) => {
|
|
9697
|
-
const $
|
|
9698
|
-
_html(`<li${_attr_class("
|
|
9699
|
-
writeScope($
|
|
9700
|
-
}, (f) => f, $
|
|
9823
|
+
const $scope143_id = _scope_id();
|
|
9824
|
+
_html(`<li${_attr_class("_d2")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
|
|
9825
|
+
writeScope($scope143_id, {});
|
|
9826
|
+
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9701
9827
|
_if(() => {
|
|
9702
9828
|
if (r.more) {
|
|
9703
|
-
const $
|
|
9704
|
-
_html(`<li${_attr_class(["
|
|
9705
|
-
_subscribe($for_content19__r_more__closures, writeScope($
|
|
9829
|
+
const $scope139_id = _scope_id();
|
|
9830
|
+
_html(`<li${_attr_class(["_d2", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9831
|
+
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9706
9832
|
return 0;
|
|
9707
9833
|
}
|
|
9708
|
-
}, $
|
|
9834
|
+
}, $scope138_id, "e", 1, 1, 1, 0, 1);
|
|
9709
9835
|
_html("</ul>");
|
|
9710
|
-
writeScope($
|
|
9836
|
+
writeScope($scope138_id, {});
|
|
9711
9837
|
return 0;
|
|
9712
9838
|
}
|
|
9713
|
-
}, $
|
|
9839
|
+
}, $scope136_id, "f", 1, 1, 1, 0, 1);
|
|
9714
9840
|
_html("</li>");
|
|
9715
|
-
writeScope($
|
|
9841
|
+
writeScope($scope136_id, {
|
|
9716
9842
|
k: r?.modified,
|
|
9717
9843
|
m: r?.untracked,
|
|
9718
9844
|
o: r?.ignored,
|
|
9719
9845
|
r: r?.more,
|
|
9720
9846
|
v: $for_content19__r_more__closures
|
|
9721
9847
|
});
|
|
9722
|
-
}, "worktree", $
|
|
9848
|
+
}, "worktree", $scope135_id, "d", 1, 1, 1, "</ul>", 1);
|
|
9723
9849
|
_html("</li>");
|
|
9724
|
-
writeScope($
|
|
9850
|
+
writeScope($scope135_id, {
|
|
9725
9851
|
g: w?.name,
|
|
9726
9852
|
i: $for_content18__w_name__closures
|
|
9727
9853
|
});
|
|
9728
|
-
}, "id", $
|
|
9729
|
-
_html(`<div${_attr_class("
|
|
9730
|
-
_script($
|
|
9731
|
-
writeScope($
|
|
9854
|
+
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9855
|
+
_html(`<div${_attr_class("_d3")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
9856
|
+
_script($scope67_id, "x81");
|
|
9857
|
+
writeScope($scope67_id, {});
|
|
9732
9858
|
return 0;
|
|
9733
9859
|
}
|
|
9734
|
-
}, $scope0_id, "
|
|
9735
|
-
_html(`</div><div${_attr_class("
|
|
9860
|
+
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9861
|
+
_html(`</div><div${_attr_class("_cH")}><div${_attr_class("_dT")}><div${_attr_class("_bE")}>`);
|
|
9736
9862
|
_if(() => {
|
|
9737
9863
|
if (backupBusy === "restore") {
|
|
9738
|
-
const $
|
|
9739
|
-
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($
|
|
9740
|
-
writeScope($
|
|
9864
|
+
const $scope66_id = _scope_id();
|
|
9865
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9866
|
+
writeScope($scope66_id, {});
|
|
9741
9867
|
return 0;
|
|
9742
9868
|
} else if (restoreDone) {
|
|
9743
|
-
const $
|
|
9744
|
-
_html(`<span${_attr_class("
|
|
9745
|
-
writeScope($
|
|
9869
|
+
const $scope74_id = _scope_id();
|
|
9870
|
+
_html(`<span${_attr_class("_bH")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9871
|
+
writeScope($scope74_id, {});
|
|
9746
9872
|
return 1;
|
|
9747
9873
|
} else {
|
|
9748
|
-
const $
|
|
9749
|
-
_html(`<span${_attr_class("
|
|
9750
|
-
writeScope($
|
|
9874
|
+
const $scope144_id = _scope_id();
|
|
9875
|
+
_html(`<span${_attr_class("_bH")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9876
|
+
writeScope($scope144_id, {});
|
|
9751
9877
|
return 2;
|
|
9752
9878
|
}
|
|
9753
|
-
}, $scope0_id, "
|
|
9879
|
+
}, $scope0_id, "bs", 1, 1, 1, "</div>", 1);
|
|
9754
9880
|
_if(() => {
|
|
9755
9881
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9756
|
-
const $
|
|
9757
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9758
|
-
_script($
|
|
9759
|
-
writeScope($
|
|
9882
|
+
const $scope76_id = _scope_id();
|
|
9883
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dU")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9884
|
+
_script($scope76_id, "x82");
|
|
9885
|
+
writeScope($scope76_id, {});
|
|
9760
9886
|
return 0;
|
|
9761
9887
|
}
|
|
9762
|
-
}, $scope0_id, "
|
|
9888
|
+
}, $scope0_id, "bt", 1, 1, 1, 0, 1);
|
|
9763
9889
|
_html("</div>");
|
|
9764
9890
|
_if(() => {
|
|
9765
9891
|
if (restorePreview && backupBusy !== "restore") {
|
|
9766
|
-
const $
|
|
9892
|
+
const $scope69_id = _scope_id();
|
|
9767
9893
|
const { preview } = restorePreview;
|
|
9768
|
-
_html(`<div${_attr_class("
|
|
9894
|
+
_html(`<div${_attr_class("_dV")}><p${_attr_class("_dW")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
9769
9895
|
_if(() => {
|
|
9770
9896
|
if (preview.workspaces.length) {
|
|
9771
|
-
const $
|
|
9897
|
+
const $scope70_id = _scope_id();
|
|
9772
9898
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9773
9899
|
_for_of(preview.workspaces, (w) => {
|
|
9774
|
-
const $
|
|
9775
|
-
_html(`<li><label${_attr_class(["
|
|
9900
|
+
const $scope71_id = _scope_id();
|
|
9901
|
+
_html(`<li><label${_attr_class(["_d5", { ["_d7"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_d6")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9776
9902
|
_if(() => {
|
|
9777
9903
|
if (w.status === "archived") {
|
|
9778
|
-
const $
|
|
9904
|
+
const $scope148_id = _scope_id();
|
|
9779
9905
|
_html(`<span${_attr_class(["_N", "_P"])}>archived</span>`);
|
|
9780
|
-
writeScope($
|
|
9906
|
+
writeScope($scope148_id, {});
|
|
9781
9907
|
return 0;
|
|
9782
9908
|
}
|
|
9783
|
-
}, $
|
|
9909
|
+
}, $scope71_id, "g", 1, 1, 1, 0, 1);
|
|
9784
9910
|
_if(() => {
|
|
9785
9911
|
if (w.exists) {
|
|
9786
|
-
const $
|
|
9912
|
+
const $scope149_id = _scope_id();
|
|
9787
9913
|
_html(`<span${_attr_class("_N")}>already here</span>`);
|
|
9788
|
-
writeScope($
|
|
9914
|
+
writeScope($scope149_id, {});
|
|
9789
9915
|
return 0;
|
|
9790
9916
|
} else if (w.unknownHost) {
|
|
9791
|
-
const $
|
|
9792
|
-
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($
|
|
9793
|
-
writeScope($
|
|
9917
|
+
const $scope147_id = _scope_id();
|
|
9918
|
+
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($scope147_id, "b", w.unknownHost, 2)}</span>`);
|
|
9919
|
+
writeScope($scope147_id, {});
|
|
9794
9920
|
return 1;
|
|
9795
9921
|
}
|
|
9796
|
-
}, $
|
|
9797
|
-
_html(`</span><span${_attr_class("
|
|
9798
|
-
_script($
|
|
9799
|
-
_subscribe($restoreWs__closures, writeScope($
|
|
9922
|
+
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
9923
|
+
_html(`</span><span${_attr_class("_bH")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9924
|
+
_script($scope71_id, "x83");
|
|
9925
|
+
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
9800
9926
|
n: w?.unknownHost,
|
|
9801
9927
|
p: w?.id
|
|
9802
9928
|
}));
|
|
9803
|
-
}, "id", $
|
|
9804
|
-
_subscribe($preview_workspaces__closures, writeScope($
|
|
9929
|
+
}, "id", $scope70_id, "a", 1, 1, 1, "</ul>", 1);
|
|
9930
|
+
_subscribe($preview_workspaces__closures, writeScope($scope70_id, {}));
|
|
9805
9931
|
return 0;
|
|
9806
9932
|
} else {
|
|
9807
|
-
const $
|
|
9808
|
-
_html(`<p${_attr_class("
|
|
9809
|
-
writeScope($
|
|
9933
|
+
const $scope146_id = _scope_id();
|
|
9934
|
+
_html(`<p${_attr_class("_bJ")}>No workspaces in this file.</p>`);
|
|
9935
|
+
writeScope($scope146_id, {});
|
|
9810
9936
|
return 1;
|
|
9811
9937
|
}
|
|
9812
|
-
}, $
|
|
9938
|
+
}, $scope69_id, "f", 1, 1, 1, 0, 1);
|
|
9813
9939
|
const parts = [
|
|
9814
9940
|
{
|
|
9815
9941
|
key: "tools",
|
|
@@ -9838,70 +9964,70 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9838
9964
|
];
|
|
9839
9965
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9840
9966
|
_for_of(parts, (p) => {
|
|
9841
|
-
const $
|
|
9842
|
-
const $
|
|
9843
|
-
const $
|
|
9844
|
-
const $
|
|
9967
|
+
const $scope72_id = _scope_id();
|
|
9968
|
+
const $for_content10__p_missing__closures = /* @__PURE__ */ new Set();
|
|
9969
|
+
const $for_content10__p_missing_length__closures = /* @__PURE__ */ new Set();
|
|
9970
|
+
const $for_content10__p_total__closures = /* @__PURE__ */ new Set();
|
|
9845
9971
|
_if(() => {
|
|
9846
9972
|
if (p.total) {
|
|
9847
|
-
const $
|
|
9848
|
-
_html(`<li><label${_attr_class(["
|
|
9973
|
+
const $scope73_id = _scope_id();
|
|
9974
|
+
_html(`<li><label${_attr_class(["_d5", { ["_d7"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_d6")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_bE")}><span${_attr_class("_bF")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_bH")}>`);
|
|
9849
9975
|
_if(() => {
|
|
9850
9976
|
if (p.key === "settings") {
|
|
9851
|
-
const $
|
|
9852
|
-
_html(`${_text_resume($
|
|
9977
|
+
const $scope145_id = _scope_id();
|
|
9978
|
+
_html(`${_text_resume($scope145_id, "a", preview.settings)} value${_text_resume($scope145_id, "b", preview.settings === 1 ? "" : "s", 2)}`);
|
|
9853
9979
|
_if(() => {
|
|
9854
9980
|
if (p.missing.length) {
|
|
9855
|
-
const $
|
|
9856
|
-
_html(`, add host${_text_resume($
|
|
9857
|
-
_subscribe($
|
|
9981
|
+
const $scope150_id = _scope_id();
|
|
9982
|
+
_html(`, add host${_text_resume($scope150_id, "a", p.missing.length === 1 ? "" : "s", 2)} ${_text_resume($scope150_id, "b", p.missing.join(", "), 2)}`);
|
|
9983
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope150_id, { Ck: 1 })));
|
|
9858
9984
|
return 0;
|
|
9859
9985
|
}
|
|
9860
|
-
}, $
|
|
9861
|
-
_subscribe($
|
|
9986
|
+
}, $scope145_id, "c");
|
|
9987
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($scope145_id, {})));
|
|
9862
9988
|
return 0;
|
|
9863
9989
|
} else if (p.missing.length) {
|
|
9864
|
-
const $
|
|
9865
|
-
_html(`${_text_resume($
|
|
9866
|
-
_subscribe($
|
|
9990
|
+
const $scope151_id = _scope_id();
|
|
9991
|
+
_html(`${_text_resume($scope151_id, "a", p.missing.length)} to install: ${_text_resume($scope151_id, "b", p.missing.join(", "), 2)}`);
|
|
9992
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($for_content10__p_missing__closures, writeScope($scope151_id, {
|
|
9867
9993
|
Cj: 1,
|
|
9868
9994
|
Ck: 2
|
|
9869
9995
|
})));
|
|
9870
9996
|
return 1;
|
|
9871
9997
|
} else {
|
|
9872
|
-
const $
|
|
9873
|
-
_html(`all ${_text_resume($
|
|
9874
|
-
_subscribe($
|
|
9998
|
+
const $scope152_id = _scope_id();
|
|
9999
|
+
_html(`all ${_text_resume($scope152_id, "a", p.total, 2)} already installed`);
|
|
10000
|
+
_subscribe($for_content10__p_total__closures, writeScope($scope152_id, {}));
|
|
9875
10001
|
return 2;
|
|
9876
10002
|
}
|
|
9877
|
-
}, $
|
|
9878
|
-
_html(`</span></label>${_el_resume($
|
|
9879
|
-
_script($
|
|
9880
|
-
_subscribe($restoreParts__closures, writeScope($
|
|
10003
|
+
}, $scope73_id, "f", 1, 1, 1, "</span>");
|
|
10004
|
+
_html(`</span></label>${_el_resume($scope73_id, "a")}</li>`);
|
|
10005
|
+
_script($scope73_id, "x84");
|
|
10006
|
+
_subscribe($restoreParts__closures, writeScope($scope73_id, {}));
|
|
9881
10007
|
return 0;
|
|
9882
10008
|
}
|
|
9883
|
-
}, $
|
|
9884
|
-
writeScope($
|
|
10009
|
+
}, $scope72_id, "a", 1, 1, 1, 0, 1);
|
|
10010
|
+
writeScope($scope72_id, {
|
|
9885
10011
|
d: p?.total,
|
|
9886
10012
|
e: p?.missing,
|
|
9887
10013
|
f: p?.missing?.length,
|
|
9888
10014
|
g: p?.key,
|
|
9889
10015
|
h: p?.label,
|
|
9890
|
-
j: $
|
|
9891
|
-
k: $
|
|
9892
|
-
i: $
|
|
10016
|
+
j: $for_content10__p_missing__closures,
|
|
10017
|
+
k: $for_content10__p_missing_length__closures,
|
|
10018
|
+
i: $for_content10__p_total__closures
|
|
9893
10019
|
});
|
|
9894
|
-
}, "key", $
|
|
9895
|
-
_html(`</ul><div${_attr_class("
|
|
9896
|
-
_script($
|
|
9897
|
-
writeScope($
|
|
10020
|
+
}, "key", $scope69_id, "h");
|
|
10021
|
+
_html(`</ul><div${_attr_class("_d3")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
10022
|
+
_script($scope69_id, "x85");
|
|
10023
|
+
writeScope($scope69_id, {});
|
|
9898
10024
|
return 0;
|
|
9899
10025
|
}
|
|
9900
|
-
}, $scope0_id, "
|
|
10026
|
+
}, $scope0_id, "bu", 1, 1, 1, 0, 1);
|
|
9901
10027
|
_html("</div></div></section></div></div></div>");
|
|
9902
10028
|
_if(() => {
|
|
9903
10029
|
if (versionPick) {
|
|
9904
|
-
const $
|
|
10030
|
+
const $scope36_id = _scope_id();
|
|
9905
10031
|
_set_serialize_reason(10);
|
|
9906
10032
|
const $childScope13 = _peek_scope_id();
|
|
9907
10033
|
prompt_dialog_default({
|
|
@@ -9912,168 +10038,168 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9912
10038
|
open: versionPick != null,
|
|
9913
10039
|
openChange: _resume(function(o) {
|
|
9914
10040
|
if (!o) versionPick = null;
|
|
9915
|
-
}, "x41", $
|
|
10041
|
+
}, "x41", $scope36_id),
|
|
9916
10042
|
onSubmit: _resume(function(v) {
|
|
9917
10043
|
const pick = versionPick;
|
|
9918
10044
|
versionPick = null;
|
|
9919
10045
|
run(pick.id, "install", v);
|
|
9920
|
-
}, "x42", $
|
|
10046
|
+
}, "x42", $scope36_id)
|
|
9921
10047
|
});
|
|
9922
|
-
writeScope($
|
|
10048
|
+
writeScope($scope36_id, { a: _existing_scope($childScope13) });
|
|
9923
10049
|
return 0;
|
|
9924
10050
|
}
|
|
9925
|
-
}, $scope0_id, "
|
|
10051
|
+
}, $scope0_id, "bv", 1, 1, 1, 0, 1);
|
|
9926
10052
|
_script($scope0_id, "x86");
|
|
9927
10053
|
_script($scope0_id, "x87");
|
|
9928
10054
|
writeScope($scope0_id, {
|
|
9929
|
-
|
|
9930
|
-
|
|
9931
|
-
|
|
9932
|
-
|
|
9933
|
-
|
|
9934
|
-
|
|
9935
|
-
|
|
9936
|
-
|
|
9937
|
-
|
|
9938
|
-
|
|
9939
|
-
|
|
9940
|
-
|
|
9941
|
-
|
|
9942
|
-
|
|
9943
|
-
|
|
9944
|
-
|
|
9945
|
-
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
|
|
9950
|
-
|
|
9951
|
-
|
|
9952
|
-
|
|
9953
|
-
|
|
9954
|
-
|
|
9955
|
-
|
|
9956
|
-
|
|
9957
|
-
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
|
|
9961
|
-
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
|
|
9967
|
-
|
|
9968
|
-
|
|
9969
|
-
|
|
9970
|
-
|
|
9971
|
-
|
|
9972
|
-
|
|
9973
|
-
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
|
|
9977
|
-
|
|
9978
|
-
|
|
9979
|
-
|
|
9980
|
-
|
|
9981
|
-
|
|
9982
|
-
|
|
9983
|
-
|
|
9984
|
-
|
|
9985
|
-
|
|
9986
|
-
|
|
9987
|
-
|
|
9988
|
-
|
|
9989
|
-
|
|
9990
|
-
|
|
9991
|
-
|
|
9992
|
-
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
|
|
9999
|
-
|
|
10000
|
-
|
|
10001
|
-
|
|
10002
|
-
|
|
10003
|
-
|
|
10004
|
-
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
|
|
10009
|
-
|
|
10010
|
-
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
|
|
10021
|
-
|
|
10022
|
-
|
|
10023
|
-
|
|
10024
|
-
|
|
10025
|
-
|
|
10026
|
-
|
|
10027
|
-
|
|
10028
|
-
|
|
10029
|
-
|
|
10030
|
-
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10041
|
-
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10046
|
-
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10055
|
+
bz: input$3.setupChange,
|
|
10056
|
+
c0: input$3.agentsChange,
|
|
10057
|
+
c1: input$3.preferred,
|
|
10058
|
+
c2: input$3.preferredChange,
|
|
10059
|
+
c4: input$3.instance,
|
|
10060
|
+
c5: input$3.instanceChange,
|
|
10061
|
+
c7: input$3.onExit,
|
|
10062
|
+
ca: $si__input_instance__OR__input_instanceChange && input$3.instance?.name,
|
|
10063
|
+
cb: setup,
|
|
10064
|
+
cc: setup?.agents,
|
|
10065
|
+
ce: setup?.missing,
|
|
10066
|
+
cg: ignoredSso,
|
|
10067
|
+
ch: readIgnoredSso,
|
|
10068
|
+
ci: usage,
|
|
10069
|
+
cj: usage?.agents,
|
|
10070
|
+
ck: usage?.error,
|
|
10071
|
+
cl: error,
|
|
10072
|
+
cn: active,
|
|
10073
|
+
co: active?.size,
|
|
10074
|
+
cp: authCodes,
|
|
10075
|
+
cq: confirmingRemove,
|
|
10076
|
+
cr: versionPick,
|
|
10077
|
+
cs: versionPick?.label,
|
|
10078
|
+
ct: versionPick?.newest,
|
|
10079
|
+
cu: versionPick?.current,
|
|
10080
|
+
cv: hostInput,
|
|
10081
|
+
cw: addingHost,
|
|
10082
|
+
cy: hostBusy,
|
|
10083
|
+
cz: query,
|
|
10084
|
+
d0: hits,
|
|
10085
|
+
d1: hits?.length,
|
|
10086
|
+
d2: self,
|
|
10087
|
+
d3: self?.install,
|
|
10088
|
+
d4: self?.latest,
|
|
10089
|
+
d5: self?.version,
|
|
10090
|
+
d6: selfUpdating,
|
|
10091
|
+
d9: searching,
|
|
10092
|
+
db: searchTimer.id,
|
|
10093
|
+
dd: skills,
|
|
10094
|
+
de: skills?.global,
|
|
10095
|
+
df: skills?.global?.length,
|
|
10096
|
+
dg: skills?.available,
|
|
10097
|
+
di: skills?.agents?.length,
|
|
10098
|
+
dj: skillQuery,
|
|
10099
|
+
dk: skillHits,
|
|
10100
|
+
dl: skillHits?.length,
|
|
10101
|
+
dm: skillSearching,
|
|
10102
|
+
dn: confirmingSkill,
|
|
10103
|
+
dp: skillTimer.id,
|
|
10104
|
+
dr: machineOpen,
|
|
10105
|
+
ds: skillsOpen,
|
|
10106
|
+
dt: addingSkill,
|
|
10107
|
+
dv: addingTool,
|
|
10108
|
+
dx: setThemeMode,
|
|
10109
|
+
e1: applySetup,
|
|
10110
|
+
e3: syncAgents,
|
|
10111
|
+
e4: retryWhenBack,
|
|
10112
|
+
e5: loadSetup,
|
|
10113
|
+
e6: loadSelf,
|
|
10114
|
+
e8: updateSelf,
|
|
10115
|
+
e9: loadUsage,
|
|
10116
|
+
eb: refresh,
|
|
10117
|
+
ec: refreshUsage,
|
|
10118
|
+
ed: setActive,
|
|
10119
|
+
ef: run,
|
|
10120
|
+
eh: skillSeq.applied,
|
|
10121
|
+
ei: skillSeq.issued,
|
|
10122
|
+
ej: applySkills,
|
|
10123
|
+
em: loadSkills,
|
|
10124
|
+
en: runSkill,
|
|
10125
|
+
eo: backupBusy,
|
|
10126
|
+
ep: backupLine,
|
|
10127
|
+
eq: preflight,
|
|
10128
|
+
et: preflight?.contents?.workspaces,
|
|
10129
|
+
eu: preflight?.contents?.archived,
|
|
10130
|
+
ev: preflight?.contents?.tools,
|
|
10131
|
+
ew: preflight?.contents?.skills,
|
|
10132
|
+
ex: preflight?.contents?.agents,
|
|
10133
|
+
ey: preflight?.unpushed,
|
|
10134
|
+
ez: preflight?.files,
|
|
10135
|
+
f0: preflight?.workspaces,
|
|
10136
|
+
f1: restorePreview,
|
|
10137
|
+
f3: restoreWs,
|
|
10138
|
+
f4: restoreWs?.size,
|
|
10139
|
+
f5: restoreParts,
|
|
10140
|
+
f7: restoreDone,
|
|
10141
|
+
f9: downloadManifest,
|
|
10142
|
+
fb: startExport,
|
|
10143
|
+
fc: pickRestoreFile,
|
|
10144
|
+
fd: toggleRestoreWs,
|
|
10145
|
+
fe: runRestore,
|
|
10146
|
+
ff: searchSkills,
|
|
10147
|
+
fg: changeHost,
|
|
10148
|
+
fh: runEach,
|
|
10149
|
+
fi: setPreferred,
|
|
10150
|
+
fl: saveTimer.id,
|
|
10151
|
+
fn: setInstance,
|
|
10152
|
+
fp: setEnabled,
|
|
10153
|
+
fq: search,
|
|
10154
|
+
fr: outdated,
|
|
10155
|
+
fs: aliasPin,
|
|
10156
|
+
ft: tools,
|
|
10157
|
+
fv: missingInstallable,
|
|
10158
|
+
fy: outdatedIds,
|
|
10159
|
+
g0: families,
|
|
10160
|
+
g2: families.length,
|
|
10161
|
+
g4: instanceIds,
|
|
10162
|
+
g6: accountsFor,
|
|
10163
|
+
g7: strayAccountsFor,
|
|
10164
|
+
gf: $si__input_instance__OR__input_instanceChange && accent,
|
|
10165
|
+
gl: restorePreview?.preview?.from?.host,
|
|
10166
|
+
gm: restorePreview?.preview?.from?.exportedAt,
|
|
10167
|
+
gn: restorePreview?.preview?.from?.version,
|
|
10168
|
+
go: restorePreview?.preview?.workspaces,
|
|
10169
|
+
gp: restorePreview?.preview?.workspaces?.length,
|
|
10170
|
+
gq: restorePreview?.preview?.tools,
|
|
10171
|
+
gr: restorePreview?.preview?.skills,
|
|
10172
|
+
gs: restorePreview?.preview?.agents,
|
|
10173
|
+
gt: restorePreview?.preview?.hosts,
|
|
10174
|
+
gu: restorePreview?.preview?.settings,
|
|
10175
|
+
gx: $setup_missing__closures,
|
|
10176
|
+
h1: $refreshing__closures,
|
|
10051
10177
|
d: _existing_scope($childScope2),
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10178
|
+
h0: $error__closures,
|
|
10179
|
+
hi: $self_latest__closures,
|
|
10180
|
+
hj: $self_version__closures,
|
|
10181
|
+
h2: $active__closures,
|
|
10182
|
+
gv: $si__input_preferred && $input_preferred__closures,
|
|
10183
|
+
ii: $accountsFor2__closures,
|
|
10184
|
+
h4: $authCodes__closures,
|
|
10185
|
+
h5: $confirmingRemove__closures,
|
|
10186
|
+
hy: $si__input_setupChange && $refresh2__closures,
|
|
10187
|
+
hz: $run2__closures,
|
|
10062
10188
|
a6: _existing_scope($childScope10),
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10189
|
+
hr: $skillQuery__closures,
|
|
10190
|
+
hv: $confirmingSkill__closures,
|
|
10191
|
+
hn: $skills__closures,
|
|
10192
|
+
hq: $skills_available__closures,
|
|
10067
10193
|
af: _existing_scope($childScope12),
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
10072
|
-
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10194
|
+
hd: $query__closures,
|
|
10195
|
+
hh: $self_install__closures,
|
|
10196
|
+
hk: $selfUpdating__closures,
|
|
10197
|
+
i6: $preflight_unpushed__closures,
|
|
10198
|
+
i7: $preflight_files__closures,
|
|
10199
|
+
i9: $restoreWs__closures,
|
|
10200
|
+
io: $preview_workspaces__closures,
|
|
10201
|
+
iu: $preview_settings__closures,
|
|
10202
|
+
ib: $restoreParts__closures
|
|
10077
10203
|
});
|
|
10078
10204
|
_resume_branch($scope0_id);
|
|
10079
10205
|
});
|
|
@@ -10121,9 +10247,9 @@ function vapidKey(base64) {
|
|
|
10121
10247
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10122
10248
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10123
10249
|
}
|
|
10124
|
-
var iconBtn = "
|
|
10125
|
-
var settingsDot = "
|
|
10126
|
-
var navToggle = "
|
|
10250
|
+
var iconBtn = "_bO _l";
|
|
10251
|
+
var settingsDot = "_bP _bc";
|
|
10252
|
+
var navToggle = "_bT _l";
|
|
10127
10253
|
_template("Q", (input) => {
|
|
10128
10254
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10129
10255
|
const $scope0_id = _scope_id();
|
|
@@ -10141,7 +10267,7 @@ _template("Q", (input) => {
|
|
|
10141
10267
|
});
|
|
10142
10268
|
//#endregion
|
|
10143
10269
|
//#region src/tags/icons/icon-settings.marko
|
|
10144
|
-
var icon_settings_default = _template("
|
|
10270
|
+
var icon_settings_default = _template("mb", (input) => {
|
|
10145
10271
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10146
10272
|
const $scope0_id = _scope_id();
|
|
10147
10273
|
_set_serialize_reason({
|
|
@@ -10166,16 +10292,16 @@ var ARM_MS = 3500;
|
|
|
10166
10292
|
function disarmLater(fn) {
|
|
10167
10293
|
return setTimeout(fn, ARM_MS);
|
|
10168
10294
|
}
|
|
10169
|
-
var railBtn = "
|
|
10170
|
-
var wsBtn = "
|
|
10171
|
-
var rowIcon = "
|
|
10172
|
-
var close = "
|
|
10173
|
-
var sessRename$1 = "
|
|
10174
|
-
var sessBtn$1 = "
|
|
10295
|
+
var railBtn = "_e0 _l";
|
|
10296
|
+
var wsBtn = "_e5 _I";
|
|
10297
|
+
var rowIcon = "_e8 _4 _l";
|
|
10298
|
+
var close = "_e9 _7 _l _8";
|
|
10299
|
+
var sessRename$1 = "_fk _J";
|
|
10300
|
+
var sessBtn$1 = "_fm _I";
|
|
10175
10301
|
//#endregion
|
|
10176
10302
|
//#region src/styles/session-pop.css.ts
|
|
10177
|
-
var sessionPop = "
|
|
10178
|
-
var sessionPopBtn = "
|
|
10303
|
+
var sessionPop = "_eW __";
|
|
10304
|
+
var sessionPopBtn = "_eX _I";
|
|
10179
10305
|
//#endregion
|
|
10180
10306
|
//#region src/client/status.ts
|
|
10181
10307
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -10242,22 +10368,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
10242
10368
|
if (windows.length) {
|
|
10243
10369
|
const $scope1_id = _scope_id();
|
|
10244
10370
|
_html(`<span${_attr_class([
|
|
10245
|
-
"
|
|
10371
|
+
"_gK",
|
|
10246
10372
|
input.class,
|
|
10247
|
-
{ ["
|
|
10373
|
+
{ ["_gL"]: agent.stale_seconds != null }
|
|
10248
10374
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10249
10375
|
_for_of(windows, (win$1, i) => {
|
|
10250
10376
|
const $scope2_id = _scope_id();
|
|
10251
|
-
_html(`<span${_attr_class("
|
|
10377
|
+
_html(`<span${_attr_class("_gM")}>`);
|
|
10252
10378
|
_if(() => {
|
|
10253
10379
|
if (i) {
|
|
10254
10380
|
const $scope3_id = _scope_id();
|
|
10255
|
-
_html(`<span${_attr_class("
|
|
10381
|
+
_html(`<span${_attr_class("_gP")} aria-hidden=true>·</span>`);
|
|
10256
10382
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10257
10383
|
return 0;
|
|
10258
10384
|
}
|
|
10259
10385
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10260
|
-
_html(`<span${_attr_class("
|
|
10386
|
+
_html(`<span${_attr_class("_gN")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_gO", win$1.used_percent >= 90 ? "_eM" : win$1.used_percent >= 70 ? "_eL" : win$1.used_percent >= 40 ? "_eK" : "_eJ"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10261
10387
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10262
10388
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10263
10389
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10288,12 +10414,12 @@ var icon_edit_default = _template("$", (input) => {
|
|
|
10288
10414
|
});
|
|
10289
10415
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
10290
10416
|
});
|
|
10291
|
-
var prChip = "
|
|
10292
|
-
var portChip = "
|
|
10417
|
+
var prChip = "_g_ _u _g9";
|
|
10418
|
+
var portChip = "_ha _u _g9";
|
|
10293
10419
|
var prState = {
|
|
10294
|
-
open: "
|
|
10295
|
-
merged: "
|
|
10296
|
-
closed: "
|
|
10420
|
+
open: "_he",
|
|
10421
|
+
merged: "_hf",
|
|
10422
|
+
closed: "_hg"
|
|
10297
10423
|
};
|
|
10298
10424
|
//#endregion
|
|
10299
10425
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -10310,6 +10436,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10310
10436
|
const $si__input_workspaceId = _serialize_if(_scope_reason(), 0);
|
|
10311
10437
|
const $scope0_id = _scope_id();
|
|
10312
10438
|
const $input_workspaceId__closures = /* @__PURE__ */ new Set();
|
|
10439
|
+
const $dead__closures = /* @__PURE__ */ new Set();
|
|
10313
10440
|
const $armedPid__closures = /* @__PURE__ */ new Set();
|
|
10314
10441
|
let armedPid = null;
|
|
10315
10442
|
const armBox = { timer: 0 };
|
|
@@ -10356,6 +10483,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10356
10483
|
prs: (r.prs || []).filter((pr) => !dismissed.has(prKey(r.full_name, pr.number)))
|
|
10357
10484
|
}));
|
|
10358
10485
|
const ports = (input.status?.ports || []).filter((p) => !killed.has(p.pid));
|
|
10486
|
+
let dead = /* @__PURE__ */ new Map();
|
|
10359
10487
|
_if(() => {
|
|
10360
10488
|
if (repos.some((r) => (r.prs || []).length) || ports.length) {
|
|
10361
10489
|
const $scope1_id = _scope_id();
|
|
@@ -10365,7 +10493,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10365
10493
|
const name = repo.full_name.split("/").at(-1);
|
|
10366
10494
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10367
10495
|
}, "y4", $scope1_id);
|
|
10368
|
-
_html(`<div${_attr_class("
|
|
10496
|
+
_html(`<div${_attr_class("_g8")}>`);
|
|
10369
10497
|
_for_of(repos, (repo) => {
|
|
10370
10498
|
const $scope2_id = _scope_id();
|
|
10371
10499
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10381,11 +10509,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10381
10509
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10382
10510
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10383
10511
|
}
|
|
10384
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10512
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_hb", { ["_hj"]: !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
10513
|
_if(() => {
|
|
10386
10514
|
if (open) {
|
|
10387
10515
|
const $scope4_id = _scope_id();
|
|
10388
|
-
_html(`<a${_attr_class(["
|
|
10516
|
+
_html(`<a${_attr_class(["_hb", "_hc"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10389
10517
|
icon_diff_default({ size: 12 });
|
|
10390
10518
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10391
10519
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10393,9 +10521,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10393
10521
|
} else {
|
|
10394
10522
|
const $scope6_id = _scope_id();
|
|
10395
10523
|
_html(`<button type=button${_attr_class([
|
|
10396
|
-
"
|
|
10397
|
-
"
|
|
10398
|
-
"
|
|
10524
|
+
"_hb",
|
|
10525
|
+
"_hc",
|
|
10526
|
+
"_hd"
|
|
10399
10527
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10400
10528
|
icon_xmark_default({ size: 12 });
|
|
10401
10529
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10419,20 +10547,35 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10419
10547
|
}, "full_name", $scope1_id, "b");
|
|
10420
10548
|
_for_of(ports, (p) => {
|
|
10421
10549
|
const $scope5_id = _scope_id();
|
|
10422
|
-
_html(`<span${_attr_class(["_u", portChip])}${_attr("title", p.cmd)}
|
|
10423
|
-
|
|
10424
|
-
|
|
10425
|
-
|
|
10550
|
+
_html(`<span${_attr_class(["_u", portChip])}${_attr("title", p.cmd)}>`);
|
|
10551
|
+
_if(() => {
|
|
10552
|
+
if (dead.has(p.port)) {
|
|
10553
|
+
const $scope7_id = _scope_id();
|
|
10554
|
+
_html(`<span${_attr_class(["_hb", "_hh"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10555
|
+
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10556
|
+
return 0;
|
|
10557
|
+
} else {
|
|
10558
|
+
const $scope8_id = _scope_id();
|
|
10559
|
+
_html(`<button type=button${_attr_class(["_hb", "_hi"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10560
|
+
_script($scope8_id, "y6");
|
|
10561
|
+
writeScope($scope8_id, {});
|
|
10562
|
+
return 1;
|
|
10563
|
+
}
|
|
10564
|
+
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10565
|
+
_html(`<button type=button${_attr_class([
|
|
10566
|
+
"_hb",
|
|
10567
|
+
"_hc",
|
|
10568
|
+
"_hd",
|
|
10426
10569
|
{ ["_s"]: armedPid === p.pid }
|
|
10427
10570
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10428
10571
|
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
|
-
|
|
10572
|
+
_html(`</button>${_el_resume($scope5_id, "c")}</span>${_el_resume($scope5_id, "a")}`);
|
|
10573
|
+
_script($scope5_id, "y7");
|
|
10574
|
+
_subscribe($dead__closures, _subscribe($armedPid__closures, writeScope($scope5_id, {
|
|
10575
|
+
g: p?.cmd,
|
|
10576
|
+
h: p?.port,
|
|
10434
10577
|
j: p?.pid
|
|
10435
|
-
}));
|
|
10578
|
+
})));
|
|
10436
10579
|
}, "port", $scope1_id, "c", 1, 1, 1, 0, 1);
|
|
10437
10580
|
_html("</div>");
|
|
10438
10581
|
writeScope($scope1_id, {
|
|
@@ -10442,6 +10585,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10442
10585
|
return 0;
|
|
10443
10586
|
}
|
|
10444
10587
|
}, $scope0_id, "a", 1, 1, 1, 0, 1);
|
|
10588
|
+
_script($scope0_id, "y8");
|
|
10445
10589
|
writeScope($scope0_id, {
|
|
10446
10590
|
d: input.workspaceId,
|
|
10447
10591
|
f: input.status?.repos,
|
|
@@ -10457,8 +10601,10 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10457
10601
|
t: repos,
|
|
10458
10602
|
u: ports,
|
|
10459
10603
|
v: ports?.length,
|
|
10460
|
-
x:
|
|
10461
|
-
|
|
10604
|
+
x: dead,
|
|
10605
|
+
z: $si__input_workspaceId && $input_workspaceId__closures,
|
|
10606
|
+
a3: $dead__closures,
|
|
10607
|
+
a0: $armedPid__closures
|
|
10462
10608
|
});
|
|
10463
10609
|
_resume_branch($scope0_id);
|
|
10464
10610
|
});
|
|
@@ -10542,7 +10688,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10542
10688
|
_if(() => {
|
|
10543
10689
|
if (input.rail) {
|
|
10544
10690
|
const $scope2_id = _scope_id();
|
|
10545
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10691
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_eY"]: 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
10692
|
"_A",
|
|
10547
10693
|
phase[dot$1],
|
|
10548
10694
|
"_bc"
|
|
@@ -10552,34 +10698,34 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10552
10698
|
} else if (ws$1.pending) {
|
|
10553
10699
|
const $scope3_id = _scope_id();
|
|
10554
10700
|
_html(`<section${_attr_class([
|
|
10555
|
-
"
|
|
10556
|
-
"
|
|
10701
|
+
"_e2",
|
|
10702
|
+
"_fo",
|
|
10557
10703
|
{
|
|
10558
|
-
["
|
|
10559
|
-
["
|
|
10704
|
+
["_e3"]: input.railPop,
|
|
10705
|
+
["_e1"]: input.page
|
|
10560
10706
|
}
|
|
10561
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10707
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_e4")}><div${_attr_class(wsBtn)}>`);
|
|
10562
10708
|
_if(() => {
|
|
10563
10709
|
if (ws$1.pending_error) {
|
|
10564
10710
|
const $scope16_id = _scope_id();
|
|
10565
10711
|
icon_warning_default({
|
|
10566
10712
|
size: 12,
|
|
10567
|
-
class: "
|
|
10713
|
+
class: "_fq"
|
|
10568
10714
|
});
|
|
10569
10715
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10570
10716
|
return 0;
|
|
10571
10717
|
} else {
|
|
10572
10718
|
const $scope17_id = _scope_id();
|
|
10573
|
-
_html(`<span${_attr_class(["_G", "
|
|
10719
|
+
_html(`<span${_attr_class(["_G", "_fp"])}></span>`);
|
|
10574
10720
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10575
10721
|
return 1;
|
|
10576
10722
|
}
|
|
10577
10723
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10578
|
-
_html(`<span${_attr_class("
|
|
10724
|
+
_html(`<span${_attr_class("_fa")}><span${_attr_class("_fb")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fs")}${_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
10725
|
_if(() => {
|
|
10580
10726
|
if (ws$1.pending_error && !retrying) {
|
|
10581
10727
|
const $scope15_id = _scope_id();
|
|
10582
|
-
_html(`<div${_attr_class("
|
|
10728
|
+
_html(`<div${_attr_class("_fr")}><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
10729
|
"_q",
|
|
10584
10730
|
btnSm,
|
|
10585
10731
|
{ ["_s"]: armedDelete }
|
|
@@ -10599,15 +10745,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10599
10745
|
const $scope4_id = _scope_id();
|
|
10600
10746
|
const sessions$1 = input.sessions || [];
|
|
10601
10747
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10602
|
-
_html(`<section${_attr_class(["
|
|
10603
|
-
["
|
|
10748
|
+
_html(`<section${_attr_class(["_e2", {
|
|
10749
|
+
["_eY"]: input.current,
|
|
10604
10750
|
["_bd"]: input.current,
|
|
10605
|
-
["
|
|
10606
|
-
["
|
|
10607
|
-
}])}><div${_attr_class("
|
|
10751
|
+
["_e3"]: input.railPop,
|
|
10752
|
+
["_e1"]: input.page
|
|
10753
|
+
}])}><div${_attr_class("_e4")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10608
10754
|
"_A",
|
|
10609
10755
|
phase[dot$1],
|
|
10610
|
-
"
|
|
10756
|
+
"_fg"
|
|
10611
10757
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10612
10758
|
_if(() => {
|
|
10613
10759
|
if (sessions$1.length === 1) {
|
|
@@ -10620,7 +10766,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10620
10766
|
icon_agent_default({
|
|
10621
10767
|
agent: activeAgent(sessions$1[0]),
|
|
10622
10768
|
size: 12,
|
|
10623
|
-
class: "
|
|
10769
|
+
class: "_e_"
|
|
10624
10770
|
});
|
|
10625
10771
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10626
10772
|
_: _scope_with_id($scope4_id),
|
|
@@ -10630,11 +10776,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10630
10776
|
}
|
|
10631
10777
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10632
10778
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10633
|
-
_html(`<span${_attr_class("
|
|
10779
|
+
_html(`<span${_attr_class("_fa")}><span${_attr_class("_fb")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10634
10780
|
_if(() => {
|
|
10635
10781
|
if (input.page && metaText) {
|
|
10636
10782
|
const $scope19_id = _scope_id();
|
|
10637
|
-
_html(`<span${_attr_class("
|
|
10783
|
+
_html(`<span${_attr_class("_fe")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10638
10784
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10639
10785
|
return 0;
|
|
10640
10786
|
}
|
|
@@ -10647,7 +10793,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10647
10793
|
"_N",
|
|
10648
10794
|
"_W",
|
|
10649
10795
|
"_P",
|
|
10650
|
-
"
|
|
10796
|
+
"_ff"
|
|
10651
10797
|
])}>${_text_resume($scope5_id, "b", input.current ? "Open" : "", _serialize_guard($scope0_reason, 20))}</span>`);
|
|
10652
10798
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspace && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
10653
10799
|
_: _scope_with_id($scope4_id),
|
|
@@ -10660,7 +10806,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10660
10806
|
_if(() => {
|
|
10661
10807
|
if (!input.page) {
|
|
10662
10808
|
const $scope6_id = _scope_id();
|
|
10663
|
-
_html(`<div${_attr_class("
|
|
10809
|
+
_html(`<div${_attr_class("_e6")}>`);
|
|
10664
10810
|
_if(() => {
|
|
10665
10811
|
if (input.onNewSession) {
|
|
10666
10812
|
const $scope7_id = _scope_id();
|
|
@@ -10709,7 +10855,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10709
10855
|
return 0;
|
|
10710
10856
|
}
|
|
10711
10857
|
}, $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, { ["
|
|
10858
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_eZ"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10713
10859
|
icon_manage_default({ size: 12 });
|
|
10714
10860
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10715
10861
|
_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 +10865,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10719
10865
|
return 0;
|
|
10720
10866
|
}
|
|
10721
10867
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10722
|
-
_html(`</div><div${_attr_class("
|
|
10868
|
+
_html(`</div><div${_attr_class("_fl")}>`);
|
|
10723
10869
|
_if(() => {
|
|
10724
10870
|
if (sessions$1.length === 1 && openPlan) {
|
|
10725
10871
|
const $scope12_id = _scope_id();
|
|
@@ -10727,7 +10873,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10727
10873
|
const $childScope3 = _peek_scope_id();
|
|
10728
10874
|
usage_pcts_default({
|
|
10729
10875
|
agent: openPlan,
|
|
10730
|
-
class: "
|
|
10876
|
+
class: "_fc"
|
|
10731
10877
|
});
|
|
10732
10878
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10733
10879
|
a: _existing_scope($childScope3),
|
|
@@ -10738,14 +10884,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10738
10884
|
}, $scope4_id, "m");
|
|
10739
10885
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10740
10886
|
const $scope9_id = _scope_id();
|
|
10741
|
-
_html(`<div${_attr_class(["
|
|
10887
|
+
_html(`<div${_attr_class(["_e7", { ["_eY"]: s.id === input.currentTab }])}>`);
|
|
10742
10888
|
_if(() => {
|
|
10743
10889
|
if (renamingId === s.id) {
|
|
10744
10890
|
const $scope11_id = _scope_id();
|
|
10745
10891
|
_html(`<span${_attr_class([
|
|
10746
10892
|
"_A",
|
|
10747
10893
|
phase[sessionPhase(s.state)],
|
|
10748
|
-
"
|
|
10894
|
+
"_fj"
|
|
10749
10895
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10750
10896
|
_set_serialize_reason({
|
|
10751
10897
|
1: $sg__input_sessions,
|
|
@@ -10755,7 +10901,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10755
10901
|
icon_agent_default({
|
|
10756
10902
|
agent: activeAgent(s),
|
|
10757
10903
|
size: 12,
|
|
10758
|
-
class: "
|
|
10904
|
+
class: "_fn"
|
|
10759
10905
|
});
|
|
10760
10906
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10761
10907
|
renameValue = _new_renameValue;
|
|
@@ -10774,9 +10920,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10774
10920
|
icon_agent_default({
|
|
10775
10921
|
agent: activeAgent(s),
|
|
10776
10922
|
size: 12,
|
|
10777
|
-
class: "
|
|
10923
|
+
class: "_fn"
|
|
10778
10924
|
});
|
|
10779
|
-
_html(`<span${_attr_class("
|
|
10925
|
+
_html(`<span${_attr_class("_fh")}>${_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("_fi")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10780
10926
|
icon_edit_default({ size: 12 });
|
|
10781
10927
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10782
10928
|
icon_xmark_default({ size: 12 });
|
|
@@ -10788,7 +10934,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10788
10934
|
const $childScope6 = _peek_scope_id();
|
|
10789
10935
|
usage_pcts_default({
|
|
10790
10936
|
agent: openPlan,
|
|
10791
|
-
class: "
|
|
10937
|
+
class: "_fd"
|
|
10792
10938
|
});
|
|
10793
10939
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10794
10940
|
a: _existing_scope($childScope6),
|
|
@@ -10930,7 +11076,7 @@ var icon_folder_plus_default = _template("cb", (input) => {
|
|
|
10930
11076
|
});
|
|
10931
11077
|
//#endregion
|
|
10932
11078
|
//#region src/tags/icons/icon-sidebar-collapse.marko
|
|
10933
|
-
var icon_sidebar_collapse_default = _template("
|
|
11079
|
+
var icon_sidebar_collapse_default = _template("nb", (input) => {
|
|
10934
11080
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10935
11081
|
const $scope0_id = _scope_id();
|
|
10936
11082
|
_set_serialize_reason({
|
|
@@ -10947,7 +11093,7 @@ var icon_sidebar_collapse_default = _template("lb", (input) => {
|
|
|
10947
11093
|
});
|
|
10948
11094
|
//#endregion
|
|
10949
11095
|
//#region src/tags/icons/icon-sidebar.marko
|
|
10950
|
-
var icon_sidebar_default = _template("
|
|
11096
|
+
var icon_sidebar_default = _template("ob", (input) => {
|
|
10951
11097
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10952
11098
|
const $scope0_id = _scope_id();
|
|
10953
11099
|
_set_serialize_reason({
|
|
@@ -11028,28 +11174,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11028
11174
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11029
11175
|
const otherIds = itemIds.filter((id) => id !== ws?.id);
|
|
11030
11176
|
const listIds = isPage && ws ? [ws.id, ...otherIds] : itemIds;
|
|
11031
|
-
_html(`<aside${_attr_class(["
|
|
11032
|
-
["
|
|
11033
|
-
["
|
|
11177
|
+
_html(`<aside${_attr_class(["_bS", {
|
|
11178
|
+
["_bQ"]: !navOpen,
|
|
11179
|
+
["_bR"]: isPage
|
|
11034
11180
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11035
11181
|
_if(() => {
|
|
11036
11182
|
if (isPage) {
|
|
11037
11183
|
const $scope1_id = _scope_id();
|
|
11038
|
-
_html(`<header${_attr_class("
|
|
11184
|
+
_html(`<header${_attr_class("_bV")}><div${_attr_class("_b4")}>`);
|
|
11039
11185
|
_if(() => {
|
|
11040
11186
|
if (input.instanceName) {
|
|
11041
11187
|
const $scope2_id = _scope_id();
|
|
11042
|
-
_html(`<div${_attr_class("
|
|
11188
|
+
_html(`<div${_attr_class("_b1")} title="This work server (Settings → Appearance)"><img${_attr_class("_b2")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b3")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11043
11189
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11044
11190
|
return 0;
|
|
11045
11191
|
}
|
|
11046
11192
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11047
|
-
_html(`<h1${_attr_class("
|
|
11193
|
+
_html(`<h1${_attr_class("_bW")}>Workspaces</h1></div><div${_attr_class("_bX")}>`);
|
|
11048
11194
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11049
11195
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11050
11196
|
iconBtn,
|
|
11051
|
-
"
|
|
11052
|
-
{ ["
|
|
11197
|
+
"_bY",
|
|
11198
|
+
{ ["_bN"]: view === "settings" }
|
|
11053
11199
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11054
11200
|
icon_settings_default({ size: 16 });
|
|
11055
11201
|
_if(() => {
|
|
@@ -11068,7 +11214,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11068
11214
|
_if(() => {
|
|
11069
11215
|
if (!isPage && input.instanceName) {
|
|
11070
11216
|
const $scope3_id = _scope_id();
|
|
11071
|
-
_html(`<div${_attr_class("
|
|
11217
|
+
_html(`<div${_attr_class("_b1")} title="This work server (Settings → Appearance)"><img${_attr_class("_b2")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b3")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11072
11218
|
writeScope($scope3_id, {});
|
|
11073
11219
|
return 0;
|
|
11074
11220
|
}
|
|
@@ -11076,13 +11222,13 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11076
11222
|
_if(() => {
|
|
11077
11223
|
if (navOpen || isPage) {
|
|
11078
11224
|
const $scope4_id = _scope_id();
|
|
11079
|
-
_html(`<div${_attr_class("
|
|
11225
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11080
11226
|
_for_of(listIds, (wsId) => {
|
|
11081
11227
|
const $scope5_id = _scope_id();
|
|
11082
11228
|
_if(() => {
|
|
11083
11229
|
if (isPage && wsId === ws?.id) {
|
|
11084
11230
|
const $scope14_id = _scope_id();
|
|
11085
|
-
_html(`<h2${_attr_class(["
|
|
11231
|
+
_html(`<h2${_attr_class(["_bM", "_bZ"])}>Current</h2>`);
|
|
11086
11232
|
writeScope($scope14_id, {});
|
|
11087
11233
|
return 0;
|
|
11088
11234
|
}
|
|
@@ -11090,7 +11236,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11090
11236
|
_if(() => {
|
|
11091
11237
|
if (isPage && ws && wsId !== ws.id && wsId === otherIds[0]) {
|
|
11092
11238
|
const $scope15_id = _scope_id();
|
|
11093
|
-
_html(`<h2${_attr_class(["
|
|
11239
|
+
_html(`<h2${_attr_class(["_bM", "_bZ"])}>Other workspaces</h2>`);
|
|
11094
11240
|
writeScope($scope15_id, {});
|
|
11095
11241
|
return 0;
|
|
11096
11242
|
}
|
|
@@ -11179,7 +11325,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11179
11325
|
railHover = null;
|
|
11180
11326
|
}, 150);
|
|
11181
11327
|
}, "A6", $scope6_id);
|
|
11182
|
-
_html(`<div${_attr_class("
|
|
11328
|
+
_html(`<div${_attr_class("_b6")}>`);
|
|
11183
11329
|
_for_of(itemIds, (wsId, i) => {
|
|
11184
11330
|
const $scope7_id = _scope_id();
|
|
11185
11331
|
_html("<span>");
|
|
@@ -11237,7 +11383,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11237
11383
|
if (railHover) {
|
|
11238
11384
|
const $scope8_id = _scope_id();
|
|
11239
11385
|
const hoverId = railHover.id;
|
|
11240
|
-
_html(`<div${_attr_class(["__", "
|
|
11386
|
+
_html(`<div${_attr_class(["__", "_b9"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11241
11387
|
_set_serialize_reason({
|
|
11242
11388
|
0: 1,
|
|
11243
11389
|
1: 1,
|
|
@@ -11332,7 +11478,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11332
11478
|
return 0;
|
|
11333
11479
|
}
|
|
11334
11480
|
}, $scope0_id, "e");
|
|
11335
|
-
_html(`<div${_attr_class("
|
|
11481
|
+
_html(`<div${_attr_class("_b7")}>`);
|
|
11336
11482
|
_if(() => {
|
|
11337
11483
|
if (isPage) {
|
|
11338
11484
|
const $scope10_id = _scope_id();
|
|
@@ -11340,7 +11486,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11340
11486
|
"_q",
|
|
11341
11487
|
"_r",
|
|
11342
11488
|
btnLg,
|
|
11343
|
-
"
|
|
11489
|
+
"_b0"
|
|
11344
11490
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11345
11491
|
icon_folder_plus_default({ size: 16 });
|
|
11346
11492
|
_html(` New workspace</a>${_el_resume($scope10_id, "a")}`);
|
|
@@ -11362,9 +11508,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11362
11508
|
return 1;
|
|
11363
11509
|
}
|
|
11364
11510
|
}, $scope9_id, "a", 1, 1, 1, "</button>", 1);
|
|
11365
|
-
_html(`<div${_attr_class(["_z", "
|
|
11511
|
+
_html(`<div${_attr_class(["_z", "_b8"])}></div>`);
|
|
11366
11512
|
_if(() => {}, $scope9_id, "c", 1, 1, 1, 0, 1);
|
|
11367
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11513
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bN"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11368
11514
|
icon_settings_default({});
|
|
11369
11515
|
_if(() => {
|
|
11370
11516
|
if (input.setupReady === false) {
|
|
@@ -11374,7 +11520,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11374
11520
|
return 0;
|
|
11375
11521
|
}
|
|
11376
11522
|
}, $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, { ["
|
|
11523
|
+
_html(`</a>${_el_resume($scope9_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bN"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11378
11524
|
icon_folder_plus_default({ size: 16 });
|
|
11379
11525
|
_html(`</a>${_el_resume($scope9_id, "g")}`);
|
|
11380
11526
|
_script($scope9_id, "A15");
|
|
@@ -11714,8 +11860,8 @@ function treeDirs(files) {
|
|
|
11714
11860
|
};
|
|
11715
11861
|
return build(root, "", "", -1);
|
|
11716
11862
|
}
|
|
11717
|
-
var treeToggle = "
|
|
11718
|
-
var pageTitle = "
|
|
11863
|
+
var treeToggle = "_gn _5 _l";
|
|
11864
|
+
var pageTitle = "_gu _cC";
|
|
11719
11865
|
//#endregion
|
|
11720
11866
|
//#region src/tags/diff-send.marko
|
|
11721
11867
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -11725,7 +11871,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11725
11871
|
let sendTarget = null;
|
|
11726
11872
|
const sessions = input.sessions || [];
|
|
11727
11873
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
11728
|
-
_html(`<span${_attr_class("
|
|
11874
|
+
_html(`<span${_attr_class("_hx")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
11729
11875
|
_if(() => {
|
|
11730
11876
|
if (sessions.length === 1) {
|
|
11731
11877
|
const $scope1_id = _scope_id();
|
|
@@ -11735,11 +11881,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11735
11881
|
return 0;
|
|
11736
11882
|
} else if (sessions.length) {
|
|
11737
11883
|
const $scope2_id = _scope_id();
|
|
11738
|
-
_html(`<span${_attr_class("
|
|
11884
|
+
_html(`<span${_attr_class("_hy")}><button type=button${_attr_class(["_r", "_hz"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
11739
11885
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
11740
11886
|
sendTarget = _new_sendTarget;
|
|
11741
11887
|
}, "j0", $scope2_id), () => {
|
|
11742
|
-
_html(`<select${_attr_class("
|
|
11888
|
+
_html(`<select${_attr_class("_hA")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
11743
11889
|
_for_of(sessions, (s) => {
|
|
11744
11890
|
const $scope3_id = _scope_id();
|
|
11745
11891
|
_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 +13397,8 @@ function clip(line, at, len) {
|
|
|
13251
13397
|
const end = Math.min(line.length, at + len + pad);
|
|
13252
13398
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13253
13399
|
}
|
|
13254
|
-
var findInput = "
|
|
13255
|
-
var findIconBtn = "
|
|
13400
|
+
var findInput = "_hm _n";
|
|
13401
|
+
var findIconBtn = "_hp _l";
|
|
13256
13402
|
//#endregion
|
|
13257
13403
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13258
13404
|
var icon_arrow_down_default = _template("K", (input) => {
|
|
@@ -13340,9 +13486,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13340
13486
|
el.select();
|
|
13341
13487
|
}, 0);
|
|
13342
13488
|
}, "i0", $scope0_id);
|
|
13343
|
-
_html(`<div${_attr_class(["
|
|
13489
|
+
_html(`<div${_attr_class(["_hl", !open && "_hk"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13344
13490
|
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("
|
|
13491
|
+
}, "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("_ho")}>${_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
13492
|
icon_arrow_up_default({ size: 14 });
|
|
13347
13493
|
_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
13494
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13444,9 +13590,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13444
13590
|
}
|
|
13445
13591
|
return shortHeadFallback(head);
|
|
13446
13592
|
}
|
|
13447
|
-
var repoWorktree = "
|
|
13448
|
-
var repoTitle = "
|
|
13449
|
-
var path$1 = "
|
|
13593
|
+
var repoWorktree = "_iq _y";
|
|
13594
|
+
var repoTitle = "_iw _x";
|
|
13595
|
+
var path$1 = "_iN _bb";
|
|
13450
13596
|
//#endregion
|
|
13451
13597
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13452
13598
|
var icon_chevron_down_default = _template("T", (input) => {
|
|
@@ -13520,7 +13666,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
13520
13666
|
_scope_reason();
|
|
13521
13667
|
const $scope0_id = _scope_id();
|
|
13522
13668
|
_el($scope0_id, "h0");
|
|
13523
|
-
_html(`<div${_attr_class(["
|
|
13669
|
+
_html(`<div${_attr_class(["_iR", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
13524
13670
|
_script($scope0_id, "h1");
|
|
13525
13671
|
writeScope($scope0_id, {
|
|
13526
13672
|
e: input.file,
|
|
@@ -13582,14 +13728,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13582
13728
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
13583
13729
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13584
13730
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
13585
|
-
_html(`<section${_attr_class("
|
|
13731
|
+
_html(`<section${_attr_class("_im")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_in", { ["_io"]: input.collapsible && input.collapsed }])}>`);
|
|
13586
13732
|
_if(() => {
|
|
13587
13733
|
if (input.collapsible) {
|
|
13588
13734
|
const $scope1_id = _scope_id();
|
|
13589
|
-
_html(`<button type=button${_attr_class("
|
|
13590
|
-
"
|
|
13591
|
-
!input.collapsed && "
|
|
13592
|
-
input.expanding && "
|
|
13735
|
+
_html(`<button type=button${_attr_class("_ip")} 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([
|
|
13736
|
+
"_iK",
|
|
13737
|
+
!input.collapsed && "_iL",
|
|
13738
|
+
input.expanding && "_iM"
|
|
13593
13739
|
])} aria-hidden=true>`);
|
|
13594
13740
|
_if(() => {
|
|
13595
13741
|
if (input.collapsed) {
|
|
@@ -13628,14 +13774,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13628
13774
|
return 1;
|
|
13629
13775
|
}
|
|
13630
13776
|
}, $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("
|
|
13777
|
+
_html(`<span${_attr_class("_ix")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_iy"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_iA"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_iz"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13632
13778
|
_if(() => {
|
|
13633
13779
|
if (compare$1.topic) {
|
|
13634
13780
|
const $scope16_id = _scope_id();
|
|
13635
13781
|
_html(`<span${_attr_class([
|
|
13636
13782
|
"_N",
|
|
13637
13783
|
tone.accent,
|
|
13638
|
-
"
|
|
13784
|
+
"_iB"
|
|
13639
13785
|
])}>${_text_resume($scope16_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13640
13786
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
13641
13787
|
return 0;
|
|
@@ -13648,7 +13794,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13648
13794
|
_html(`<button type=button${_attr_class([
|
|
13649
13795
|
"_N",
|
|
13650
13796
|
tone.warn,
|
|
13651
|
-
"
|
|
13797
|
+
"_iC"
|
|
13652
13798
|
])}${_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
13799
|
_script($scope2_id, "w10");
|
|
13654
13800
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13658,7 +13804,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13658
13804
|
_if(() => {
|
|
13659
13805
|
if (repo.contained && input.files.length) {
|
|
13660
13806
|
const $scope13_id = _scope_id();
|
|
13661
|
-
_html(`<span${_attr_class(["_N", "
|
|
13807
|
+
_html(`<span${_attr_class(["_N", "_iC"])}${_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
13808
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13663
13809
|
return 0;
|
|
13664
13810
|
}
|
|
@@ -13666,16 +13812,16 @@ var review_section_default = _template("w", (input) => {
|
|
|
13666
13812
|
_if(() => {
|
|
13667
13813
|
if (input.localDiffers) {
|
|
13668
13814
|
const $scope3_id = _scope_id();
|
|
13669
|
-
_html(`<span${_attr_class(["_N", "
|
|
13815
|
+
_html(`<span${_attr_class(["_N", "_iC"])}${_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
13816
|
$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
13817
|
return 0;
|
|
13672
13818
|
}
|
|
13673
13819
|
}, $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("
|
|
13820
|
+
_html(`<span${_attr_class("_ir")}><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
13821
|
_if(() => {
|
|
13676
13822
|
if (stats.additions || stats.deletions) {
|
|
13677
13823
|
const $scope15_id = _scope_id();
|
|
13678
|
-
_html(`<span${_attr_class("
|
|
13824
|
+
_html(`<span${_attr_class("_is")}>+${_text_resume($scope15_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_it")}>−${_text_resume($scope15_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
13679
13825
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
13680
13826
|
return 0;
|
|
13681
13827
|
}
|
|
@@ -13683,7 +13829,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13683
13829
|
_if(() => {
|
|
13684
13830
|
if (newCount || input.onlyNew) {
|
|
13685
13831
|
const $scope4_id = _scope_id();
|
|
13686
|
-
_html(`<button type=button${_attr_class(["
|
|
13832
|
+
_html(`<button type=button${_attr_class(["_iv", { ["_iu"]: 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
13833
|
_script($scope4_id, "w11");
|
|
13688
13834
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13689
13835
|
return 0;
|
|
@@ -13693,7 +13839,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13693
13839
|
_if(() => {
|
|
13694
13840
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
13695
13841
|
const $scope5_id = _scope_id();
|
|
13696
|
-
_html(`<div${_attr_class("
|
|
13842
|
+
_html(`<div${_attr_class("_iE")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
13697
13843
|
_for_of(input.files, (file$2) => {
|
|
13698
13844
|
const $scope6_id = _scope_id();
|
|
13699
13845
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -13706,14 +13852,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13706
13852
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
13707
13853
|
input.onFileToggle(file$2.key, open);
|
|
13708
13854
|
}, "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("
|
|
13855
|
+
"_iF",
|
|
13856
|
+
forceNear && "_iG",
|
|
13857
|
+
input.findHit?.key === file$2.key && "_ik"
|
|
13858
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_iI")}><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 && "_il"])}${_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
13859
|
_if(() => {
|
|
13714
13860
|
if (file$2.changedSince) {
|
|
13715
13861
|
const $scope20_id = _scope_id();
|
|
13716
|
-
_html(`<span${_attr_class(["_A", "
|
|
13862
|
+
_html(`<span${_attr_class(["_A", "_iD"])} title="Changed since your last visit"></span>`);
|
|
13717
13863
|
$si__input_files && writeScope($scope20_id, {});
|
|
13718
13864
|
return 0;
|
|
13719
13865
|
}
|
|
@@ -13733,8 +13879,8 @@ var review_section_default = _template("w", (input) => {
|
|
|
13733
13879
|
const $scope14_id = _scope_id();
|
|
13734
13880
|
_html(`<button type=button${_attr_class([
|
|
13735
13881
|
iconBtnXs,
|
|
13736
|
-
"
|
|
13737
|
-
{ ["
|
|
13882
|
+
"_iP",
|
|
13883
|
+
{ ["_iQ"]: wholeFiles.has(file$2.key) }
|
|
13738
13884
|
])} 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
13885
|
_if(() => {
|
|
13740
13886
|
if (wholeFiles.has(file$2.key)) {
|
|
@@ -13761,17 +13907,17 @@ var review_section_default = _template("w", (input) => {
|
|
|
13761
13907
|
_if(() => {
|
|
13762
13908
|
if (file$2.binary) {
|
|
13763
13909
|
const $scope23_id = _scope_id();
|
|
13764
|
-
_html(`<p${_attr_class(["
|
|
13910
|
+
_html(`<p${_attr_class(["_iO", "_iH"])}>binary file</p>`);
|
|
13765
13911
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
13766
13912
|
return 0;
|
|
13767
13913
|
} else if (file$2.tooLarge) {
|
|
13768
13914
|
const $scope24_id = _scope_id();
|
|
13769
|
-
_html(`<p${_attr_class(["
|
|
13915
|
+
_html(`<p${_attr_class(["_iO", "_iH"])}>file too large to display</p>`);
|
|
13770
13916
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
13771
13917
|
return 1;
|
|
13772
13918
|
} else if (file$2.old == null && file$2.new == null) {
|
|
13773
13919
|
const $scope25_id = _scope_id();
|
|
13774
|
-
_html(`<p${_attr_class(["
|
|
13920
|
+
_html(`<p${_attr_class(["_iO", "_iH"])}>file could not be read</p>`);
|
|
13775
13921
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
13776
13922
|
return 2;
|
|
13777
13923
|
} else if (expanded) {
|
|
@@ -13779,7 +13925,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13779
13925
|
_if(() => {
|
|
13780
13926
|
if (!forceNear) {
|
|
13781
13927
|
const $scope8_id = _scope_id();
|
|
13782
|
-
_html(`<div${_attr_class("
|
|
13928
|
+
_html(`<div${_attr_class("_iJ")}></div>${_el_resume($scope8_id, "a")}`);
|
|
13783
13929
|
_script($scope8_id, "w13");
|
|
13784
13930
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
13785
13931
|
return 0;
|
|
@@ -13787,7 +13933,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13787
13933
|
const $scope9_id = _scope_id();
|
|
13788
13934
|
const $childScope = _peek_scope_id();
|
|
13789
13935
|
diff_file_default({
|
|
13790
|
-
class: "
|
|
13936
|
+
class: "_iH",
|
|
13791
13937
|
file: file$2,
|
|
13792
13938
|
comments: fileComments,
|
|
13793
13939
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -13928,7 +14074,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13928
14074
|
});
|
|
13929
14075
|
_resume_branch($scope0_id);
|
|
13930
14076
|
});
|
|
13931
|
-
var fileFilter = "
|
|
14077
|
+
var fileFilter = "_iT _n";
|
|
13932
14078
|
//#endregion
|
|
13933
14079
|
//#region src/tags/file-filter.marko
|
|
13934
14080
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -13958,7 +14104,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
13958
14104
|
pending = v;
|
|
13959
14105
|
box.timer = setTimeout(flush, 150);
|
|
13960
14106
|
}, "n2", $scope0_id);
|
|
13961
|
-
_html(`<div${_attr_class("
|
|
14107
|
+
_html(`<div${_attr_class("_iS")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
13962
14108
|
type(v);
|
|
13963
14109
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
13964
14110
|
_script($scope0_id, "n3");
|
|
@@ -13991,7 +14137,7 @@ var $content = (input) => {
|
|
|
13991
14137
|
_for_of(dir.dirs, (child) => {
|
|
13992
14138
|
const $scope1_id = _scope_id();
|
|
13993
14139
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
13994
|
-
_html(`<div${_attr_class("
|
|
14140
|
+
_html(`<div${_attr_class("_hV")}><button type=button${_attr_class(["_hW", { ["_hN"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_h3")}>`);
|
|
13995
14141
|
_if(() => {
|
|
13996
14142
|
if (shut) {
|
|
13997
14143
|
const $scope4_id = _scope_id();
|
|
@@ -14005,7 +14151,7 @@ var $content = (input) => {
|
|
|
14005
14151
|
return 1;
|
|
14006
14152
|
}
|
|
14007
14153
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14008
|
-
_html(`<span${_attr_class("
|
|
14154
|
+
_html(`<span${_attr_class("_hX")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14009
14155
|
_if(() => {
|
|
14010
14156
|
if (!shut) {
|
|
14011
14157
|
const $scope2_id = _scope_id();
|
|
@@ -14052,11 +14198,11 @@ var $content = (input) => {
|
|
|
14052
14198
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14053
14199
|
_for_of(dir.files, ({ file, name }) => {
|
|
14054
14200
|
const $scope3_id = _scope_id();
|
|
14055
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14201
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_hZ", { ["_hY"]: 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("_h0")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14056
14202
|
_if(() => {
|
|
14057
14203
|
if (input.newKeys.has(file.key)) {
|
|
14058
14204
|
const $scope6_id = _scope_id();
|
|
14059
|
-
_html(`<span${_attr_class(["_A", "
|
|
14205
|
+
_html(`<span${_attr_class(["_A", "_h1"])} title="Changed since your last visit"></span>`);
|
|
14060
14206
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14061
14207
|
return 0;
|
|
14062
14208
|
}
|
|
@@ -14064,7 +14210,7 @@ var $content = (input) => {
|
|
|
14064
14210
|
_if(() => {
|
|
14065
14211
|
if (input.commentKeys.has(file.key)) {
|
|
14066
14212
|
const $scope7_id = _scope_id();
|
|
14067
|
-
_html(`<span${_attr_class("
|
|
14213
|
+
_html(`<span${_attr_class("_h2")}>`);
|
|
14068
14214
|
icon_comment_default({ size: 12 });
|
|
14069
14215
|
_html("</span>");
|
|
14070
14216
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14122,7 +14268,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14122
14268
|
scope: input.scope ?? null,
|
|
14123
14269
|
file: key
|
|
14124
14270
|
}), "l0", $scope0_id);
|
|
14125
|
-
_html(`<aside${_attr_class(["
|
|
14271
|
+
_html(`<aside${_attr_class(["_hO", { ["_hN"]: input.open === false }])}><div${_attr_class("_hP")}>`);
|
|
14126
14272
|
_set_serialize_reason(2);
|
|
14127
14273
|
const $childScope = _peek_scope_id();
|
|
14128
14274
|
file_filter_default({
|
|
@@ -14131,18 +14277,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14131
14277
|
filter = _new_filter;
|
|
14132
14278
|
}, "l1", $scope0_id)
|
|
14133
14279
|
});
|
|
14134
|
-
_html(`</div><div${_attr_class("
|
|
14280
|
+
_html(`</div><div${_attr_class("_hQ")}>`);
|
|
14135
14281
|
_if(() => {
|
|
14136
14282
|
if (!input.sections.length && filter) {
|
|
14137
14283
|
const $scope3_id = _scope_id();
|
|
14138
|
-
_html(`<p${_attr_class("
|
|
14284
|
+
_html(`<p${_attr_class("_hR")}>No files match.</p>`);
|
|
14139
14285
|
writeScope($scope3_id, {});
|
|
14140
14286
|
return 0;
|
|
14141
14287
|
}
|
|
14142
14288
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14143
14289
|
_for_of(input.sections, (section) => {
|
|
14144
14290
|
const $scope1_id = _scope_id();
|
|
14145
|
-
_html(`<div${_attr_class("
|
|
14291
|
+
_html(`<div${_attr_class("_hS")}><button type=button${_attr_class(["_hT", { ["_hN"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_h3")}>`);
|
|
14146
14292
|
_if(() => {
|
|
14147
14293
|
if (collapsedRepos.has(section.id)) {
|
|
14148
14294
|
const $scope4_id = _scope_id();
|
|
@@ -14156,12 +14302,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14156
14302
|
return 1;
|
|
14157
14303
|
}
|
|
14158
14304
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14159
|
-
_html(`<span${_attr_class("
|
|
14305
|
+
_html(`<span${_attr_class("_hX")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14160
14306
|
_if(() => {
|
|
14161
14307
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14162
14308
|
const $scope2_id = _scope_id();
|
|
14163
14309
|
const root = treeDirs(section.files);
|
|
14164
|
-
_html(`<div${_attr_class("
|
|
14310
|
+
_html(`<div${_attr_class("_hU")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14165
14311
|
_set_serialize_reason(1);
|
|
14166
14312
|
const $childScope2 = _peek_scope_id();
|
|
14167
14313
|
diff_tree_dir_default({
|
|
@@ -14231,7 +14377,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14231
14377
|
});
|
|
14232
14378
|
_resume_branch($scope0_id);
|
|
14233
14379
|
});
|
|
14234
|
-
var sheetDir = "
|
|
14380
|
+
var sheetDir = "_ie _bb";
|
|
14235
14381
|
//#endregion
|
|
14236
14382
|
//#region src/tags/diff-file-sheet.marko
|
|
14237
14383
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14287,9 +14433,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14287
14433
|
_if(() => {
|
|
14288
14434
|
if (open) {
|
|
14289
14435
|
const $scope1_id = _scope_id();
|
|
14290
|
-
_html(`<div${_attr_class("
|
|
14436
|
+
_html(`<div${_attr_class("_h6")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_h7")} role=dialog aria-label="Jump to file"><div${_attr_class("_h8")}><strong${_attr_class("_h5")}>Files</strong><span${_attr_class("_h9")}>${_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, "_h4"])} title=Close aria-label=Close>`);
|
|
14291
14437
|
icon_xmark_default({ size: 16 });
|
|
14292
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14438
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_ig")}>`);
|
|
14293
14439
|
_set_serialize_reason(2);
|
|
14294
14440
|
const $childScope = _peek_scope_id();
|
|
14295
14441
|
file_filter_default({
|
|
@@ -14298,13 +14444,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14298
14444
|
filter = _new_filter;
|
|
14299
14445
|
}, "g1", $scope1_id)
|
|
14300
14446
|
});
|
|
14301
|
-
_html(`</div><div${_attr_class("
|
|
14447
|
+
_html(`</div><div${_attr_class("_h_")}>`);
|
|
14302
14448
|
_for_of(groups, (group) => {
|
|
14303
14449
|
const $scope2_id = _scope_id();
|
|
14304
|
-
_html(`<div${_attr_class("
|
|
14450
|
+
_html(`<div${_attr_class("_ia")}><div${_attr_class("_ib")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14305
14451
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14306
14452
|
const $scope3_id = _scope_id();
|
|
14307
|
-
_html(`<div${_attr_class("
|
|
14453
|
+
_html(`<div${_attr_class("_ic")}>`);
|
|
14308
14454
|
_if(() => {
|
|
14309
14455
|
if (dir) {
|
|
14310
14456
|
const $scope5_id = _scope_id();
|
|
@@ -14315,11 +14461,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14315
14461
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14316
14462
|
_for_of(files, ({ file, name }) => {
|
|
14317
14463
|
const $scope4_id = _scope_id();
|
|
14318
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14464
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_id", "_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("_if")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14319
14465
|
_if(() => {
|
|
14320
14466
|
if (newKeys.has(file.key)) {
|
|
14321
14467
|
const $scope6_id = _scope_id();
|
|
14322
|
-
_html(`<span${_attr_class(["_A", "
|
|
14468
|
+
_html(`<span${_attr_class(["_A", "_ii"])} title="Changed since your last visit"></span>`);
|
|
14323
14469
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14324
14470
|
return 0;
|
|
14325
14471
|
}
|
|
@@ -14329,7 +14475,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14329
14475
|
const $scope7_id = _scope_id();
|
|
14330
14476
|
icon_comment_default({
|
|
14331
14477
|
size: 12,
|
|
14332
|
-
class: "
|
|
14478
|
+
class: "_ij"
|
|
14333
14479
|
});
|
|
14334
14480
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14335
14481
|
return 0;
|
|
@@ -14354,7 +14500,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14354
14500
|
_if(() => {
|
|
14355
14501
|
if (!input.files.length) {
|
|
14356
14502
|
const $scope8_id = _scope_id();
|
|
14357
|
-
_html(`<p${_attr_class("
|
|
14503
|
+
_html(`<p${_attr_class("_ih")}>No files match.</p>`);
|
|
14358
14504
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14359
14505
|
return 0;
|
|
14360
14506
|
}
|
|
@@ -14894,11 +15040,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14894
15040
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
14895
15041
|
}
|
|
14896
15042
|
}, "m33", $scope0_id);
|
|
14897
|
-
_html(`<div${_attr_class("
|
|
15043
|
+
_html(`<div${_attr_class("_gk")}><div${_attr_class("_gp")}><div${_attr_class("_gq")}><div${_attr_class(["_gA", { ["_gz"]: !comments.length }])}>`);
|
|
14898
15044
|
_if(() => {
|
|
14899
15045
|
if (input.onExit) {
|
|
14900
15046
|
const $scope1_id = _scope_id();
|
|
14901
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
15047
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_gr"])} title="Back to terminal (Esc)">`);
|
|
14902
15048
|
icon_back_default({ size: 14 });
|
|
14903
15049
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
14904
15050
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -14909,7 +15055,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14909
15055
|
_if(() => {
|
|
14910
15056
|
if (comments.length) {
|
|
14911
15057
|
const $scope5_id = _scope_id();
|
|
14912
|
-
_html(`<span${_attr_class("
|
|
15058
|
+
_html(`<span${_attr_class("_gt")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
14913
15059
|
writeScope($scope5_id, {});
|
|
14914
15060
|
return 0;
|
|
14915
15061
|
}
|
|
@@ -14917,7 +15063,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14917
15063
|
_if(() => {
|
|
14918
15064
|
if (comments.length) {
|
|
14919
15065
|
const $scope2_id = _scope_id();
|
|
14920
|
-
_html(`<span${_attr_class("
|
|
15066
|
+
_html(`<span${_attr_class("_gs")}>`);
|
|
14921
15067
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
14922
15068
|
const $childScope = _peek_scope_id();
|
|
14923
15069
|
diff_send_default({
|
|
@@ -14930,14 +15076,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14930
15076
|
return 0;
|
|
14931
15077
|
}
|
|
14932
15078
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
14933
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15079
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_go")}>`);
|
|
14934
15080
|
_if(() => {
|
|
14935
15081
|
if (hasFiles) {
|
|
14936
15082
|
const $scope12_id = _scope_id();
|
|
14937
15083
|
_html(`<button${_attr_class([
|
|
14938
15084
|
treeToggle,
|
|
14939
|
-
"
|
|
14940
|
-
{ ["
|
|
15085
|
+
"_gm",
|
|
15086
|
+
{ ["_gl"]: treeOpen }
|
|
14941
15087
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
14942
15088
|
icon_sidebar_default({ size: 14 });
|
|
14943
15089
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -14946,7 +15092,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14946
15092
|
return 0;
|
|
14947
15093
|
}
|
|
14948
15094
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
14949
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15095
|
+
_html(`<button${_attr_class([iconBtnRow, "_gm"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
14950
15096
|
_set_serialize_reason(1);
|
|
14951
15097
|
const $childScope2 = _peek_scope_id();
|
|
14952
15098
|
icon_refresh_default({
|
|
@@ -14957,19 +15103,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14957
15103
|
_if(() => {
|
|
14958
15104
|
if (hasFiles) {
|
|
14959
15105
|
const $scope13_id = _scope_id();
|
|
14960
|
-
_html(`<button${_attr_class(["_q", "
|
|
15106
|
+
_html(`<button${_attr_class(["_q", "_gJ"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
14961
15107
|
_script($scope13_id, "m53");
|
|
14962
15108
|
writeScope($scope13_id, {});
|
|
14963
15109
|
return 0;
|
|
14964
15110
|
}
|
|
14965
15111
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
14966
|
-
_html(`<span${_attr_class(["_o", "
|
|
15112
|
+
_html(`<span${_attr_class(["_o", "_gB"])}>`);
|
|
14967
15113
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
14968
15114
|
setScope(v);
|
|
14969
15115
|
}, "m0", $scope0_id), () => {
|
|
14970
|
-
_html(`<select${_attr_class(["_p", "
|
|
15116
|
+
_html(`<select${_attr_class(["_p", "_gC"])} 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
15117
|
});
|
|
14972
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15118
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_gx", { ["_gw"]: !findOpen }])}>`);
|
|
14973
15119
|
_set_serialize_reason(2);
|
|
14974
15120
|
const $childScope3 = _peek_scope_id();
|
|
14975
15121
|
let findFocus = diff_find_default({
|
|
@@ -14990,8 +15136,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14990
15136
|
const $scope14_id = _scope_id();
|
|
14991
15137
|
_html(`<button${_attr_class([
|
|
14992
15138
|
iconBtnRow,
|
|
14993
|
-
"
|
|
14994
|
-
"
|
|
15139
|
+
"_gv",
|
|
15140
|
+
"_gm"
|
|
14995
15141
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
14996
15142
|
icon_search_default({ size: 14 });
|
|
14997
15143
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15000,7 +15146,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15000
15146
|
return 0;
|
|
15001
15147
|
}
|
|
15002
15148
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15003
|
-
_html(`</div></div><div${_attr_class("
|
|
15149
|
+
_html(`</div></div><div${_attr_class("_gy")} data-diff-main>`);
|
|
15004
15150
|
_if(() => {
|
|
15005
15151
|
if (error) {
|
|
15006
15152
|
const $scope6_id = _scope_id();
|
|
@@ -15023,7 +15169,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15023
15169
|
_if(() => {
|
|
15024
15170
|
if (!repos && loading) {
|
|
15025
15171
|
const $scope15_id = _scope_id();
|
|
15026
|
-
_html(`<div${_attr_class("
|
|
15172
|
+
_html(`<div${_attr_class("_gE")} aria-hidden=true><div${_attr_class(["_gF", "_gG"])}></div><div${_attr_class(["_gF", "_gH"])}></div><div${_attr_class(["_gF", "_gI"])}></div><div${_attr_class(["_gF", "_gH"])}></div><div${_attr_class(["_gF", "_gI"])}></div></div>`);
|
|
15027
15173
|
writeScope($scope15_id, {});
|
|
15028
15174
|
return 0;
|
|
15029
15175
|
}
|
|
@@ -15053,12 +15199,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15053
15199
|
_if(() => {
|
|
15054
15200
|
if (repos && !allFiles.length) {
|
|
15055
15201
|
const $scope11_id = _scope_id();
|
|
15056
|
-
_html(`<p${_attr_class("
|
|
15202
|
+
_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
15203
|
writeScope($scope11_id, {});
|
|
15058
15204
|
return 0;
|
|
15059
15205
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
15060
15206
|
const $scope8_id = _scope_id();
|
|
15061
|
-
_html(`<p${_attr_class("
|
|
15207
|
+
_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
15208
|
writeScope($scope8_id, {});
|
|
15063
15209
|
return 1;
|
|
15064
15210
|
}
|
|
@@ -15425,9 +15571,9 @@ function parseInvite(text) {
|
|
|
15425
15571
|
}
|
|
15426
15572
|
//#endregion
|
|
15427
15573
|
//#region src/tags/manage-workspace.css.ts
|
|
15428
|
-
var content$1 = "
|
|
15429
|
-
var pageMeta = "
|
|
15430
|
-
var pathMeta = "
|
|
15574
|
+
var content$1 = "_fK _cz";
|
|
15575
|
+
var pageMeta = "_fL _cE";
|
|
15576
|
+
var pathMeta = "_fO _y";
|
|
15431
15577
|
//#endregion
|
|
15432
15578
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15433
15579
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -15445,8 +15591,8 @@ var icon_clipboard_default = _template("V", (input) => {
|
|
|
15445
15591
|
});
|
|
15446
15592
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15447
15593
|
});
|
|
15448
|
-
var resultRow = "
|
|
15449
|
-
var resultBranch = "
|
|
15594
|
+
var resultRow = "_gW _I";
|
|
15595
|
+
var resultBranch = "_gY _4 _l";
|
|
15450
15596
|
//#endregion
|
|
15451
15597
|
//#region src/tags/icons/icon-branch.marko
|
|
15452
15598
|
var icon_branch_default = _template("R", (input) => {
|
|
@@ -15476,11 +15622,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15476
15622
|
let branchFilter = "";
|
|
15477
15623
|
let reloadTick = 0;
|
|
15478
15624
|
let refreshing = false;
|
|
15479
|
-
_html(`<div${_attr_class("
|
|
15625
|
+
_html(`<div${_attr_class("_g0")}>`);
|
|
15480
15626
|
_if(() => {
|
|
15481
15627
|
{
|
|
15482
15628
|
const $scope4_id = _scope_id();
|
|
15483
|
-
_html(`<p${_attr_class("
|
|
15629
|
+
_html(`<p${_attr_class("_bJ")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15484
15630
|
writeScope($scope4_id, {});
|
|
15485
15631
|
return 0;
|
|
15486
15632
|
}
|
|
@@ -15581,18 +15727,18 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15581
15727
|
_resume_branch($scope8_id);
|
|
15582
15728
|
}, $scope0_id) };
|
|
15583
15729
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
15584
|
-
_html(`<div${_attr_class([compact ? "
|
|
15730
|
+
_html(`<div${_attr_class([compact ? "_ch" : "_gQ", { ["_ci"]: compact && !input$2.open }])}>`);
|
|
15585
15731
|
_if(() => {
|
|
15586
15732
|
if (!compact && ssoPending.length) {
|
|
15587
15733
|
const $scope10_id = _scope_id();
|
|
15588
|
-
_html(`<div${_attr_class("
|
|
15734
|
+
_html(`<div${_attr_class("_gR")}>`);
|
|
15589
15735
|
ssoBlock.content({});
|
|
15590
15736
|
_html("</div>");
|
|
15591
15737
|
writeScope($scope10_id, {});
|
|
15592
15738
|
return 0;
|
|
15593
15739
|
}
|
|
15594
15740
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
15595
|
-
_html(`<label${_attr_class(["_1", compact && "
|
|
15741
|
+
_html(`<label${_attr_class(["_1", compact && "_cj"])}>`);
|
|
15596
15742
|
icon_search_default({
|
|
15597
15743
|
size: 14,
|
|
15598
15744
|
class: "_2"
|
|
@@ -15604,12 +15750,12 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15604
15750
|
}, "v0", $scope0_id))}${_attr_class([
|
|
15605
15751
|
compact ? "_Z" : inputLg,
|
|
15606
15752
|
"_3",
|
|
15607
|
-
compact && "
|
|
15753
|
+
compact && "_ck"
|
|
15608
15754
|
])} 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
15755
|
_if(() => {
|
|
15610
15756
|
if (compact) {
|
|
15611
15757
|
const $scope1_id = _scope_id();
|
|
15612
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15758
|
+
_html(`<button${_attr_class([iconBtnRow, "_cl"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
15613
15759
|
icon_xmark_default({ size: 12 });
|
|
15614
15760
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
15615
15761
|
_script($scope1_id, "v14");
|
|
@@ -15617,11 +15763,11 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15617
15763
|
return 0;
|
|
15618
15764
|
}
|
|
15619
15765
|
}, $scope0_id, "f", $sg__input_compact__OR__input_open, $sg__input_compact, 1, 0, 1);
|
|
15620
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
15766
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_gS"])}${_attr("hidden", !hasBody || compact && !input$2.open)}>`);
|
|
15621
15767
|
_if(() => {
|
|
15622
15768
|
if (compact && ssoPending.length) {
|
|
15623
15769
|
const $scope11_id = _scope_id();
|
|
15624
|
-
_html(`<div${_attr_class("
|
|
15770
|
+
_html(`<div${_attr_class("_gR")}>`);
|
|
15625
15771
|
ssoBlock.content({});
|
|
15626
15772
|
_html("</div>");
|
|
15627
15773
|
writeScope($scope11_id, {});
|
|
@@ -15631,16 +15777,16 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15631
15777
|
_if(() => {
|
|
15632
15778
|
if (pasted) {
|
|
15633
15779
|
const $scope2_id = _scope_id();
|
|
15634
|
-
_html(`<ul${_attr_class("
|
|
15780
|
+
_html(`<ul${_attr_class("_gT")}><li><div${_attr_class(["_gV", "_gU"])}><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
15781
|
icon_plus_default({
|
|
15636
15782
|
size: 12,
|
|
15637
|
-
class: "
|
|
15783
|
+
class: "_g2"
|
|
15638
15784
|
});
|
|
15639
|
-
_html(`<span${_attr_class("
|
|
15785
|
+
_html(`<span${_attr_class("_g3")}>${_text_resume($scope2_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
15640
15786
|
_if(() => {
|
|
15641
15787
|
if (pastedForkable) {
|
|
15642
15788
|
const $scope9_id = _scope_id();
|
|
15643
|
-
_html(`<button${_attr_class(["
|
|
15789
|
+
_html(`<button${_attr_class(["_gZ", { ["_gX"]: 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
15790
|
_if(() => {
|
|
15645
15791
|
if (pasteWillFork) {
|
|
15646
15792
|
const $scope13_id = _scope_id();
|
|
@@ -15660,7 +15806,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15660
15806
|
return 0;
|
|
15661
15807
|
}
|
|
15662
15808
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
15663
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
15809
|
+
_html(`<button${_attr_class([resultBranch, { ["_gX"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
15664
15810
|
icon_branch_default({ size: 12 });
|
|
15665
15811
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
15666
15812
|
_if(() => {
|
|
@@ -15687,7 +15833,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15687
15833
|
return 0;
|
|
15688
15834
|
} else if (filter && !catalog) {
|
|
15689
15835
|
const $scope12_id = _scope_id();
|
|
15690
|
-
_html(`<p${_attr_class("
|
|
15836
|
+
_html(`<p${_attr_class("_bJ")}>Loading repos…</p>`);
|
|
15691
15837
|
writeScope($scope12_id, {});
|
|
15692
15838
|
return 1;
|
|
15693
15839
|
}
|
|
@@ -15695,15 +15841,15 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15695
15841
|
_if(() => {
|
|
15696
15842
|
if (results.length) {
|
|
15697
15843
|
const $scope4_id = _scope_id();
|
|
15698
|
-
_html(`<ul${_attr_class("
|
|
15844
|
+
_html(`<ul${_attr_class("_gT")}>`);
|
|
15699
15845
|
_for_of(results, (repo, i) => {
|
|
15700
15846
|
const $scope5_id = _scope_id();
|
|
15701
|
-
_html(`<li><div${_attr_class(["
|
|
15847
|
+
_html(`<li><div${_attr_class(["_gV", { ["_gU"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15702
15848
|
icon_plus_default({
|
|
15703
15849
|
size: 12,
|
|
15704
|
-
class: "
|
|
15850
|
+
class: "_g2"
|
|
15705
15851
|
});
|
|
15706
|
-
_html(`<span${_attr_class("
|
|
15852
|
+
_html(`<span${_attr_class("_g3")}>${_text_resume($scope5_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_gX"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
15707
15853
|
icon_branch_default({ size: 12 });
|
|
15708
15854
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
15709
15855
|
_if(() => {
|
|
@@ -15738,7 +15884,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15738
15884
|
return 0;
|
|
15739
15885
|
} else if (filter && catalog && !pasted) {
|
|
15740
15886
|
const $scope7_id = _scope_id();
|
|
15741
|
-
_html(`<p${_attr_class("
|
|
15887
|
+
_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
15888
|
writeScope($scope7_id, {});
|
|
15743
15889
|
return 1;
|
|
15744
15890
|
}
|
|
@@ -15948,7 +16094,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15948
16094
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15949
16095
|
}, "q9", $scope0_id);
|
|
15950
16096
|
const titleId = _id();
|
|
15951
|
-
_html(`<div${_attr_class("
|
|
16097
|
+
_html(`<div${_attr_class("_cx")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_cy")}><div${_attr_class(content$1)}>`);
|
|
15952
16098
|
_set_serialize_reason(286);
|
|
15953
16099
|
let $actions;
|
|
15954
16100
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q17", () => {
|
|
@@ -15984,7 +16130,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15984
16130
|
meta: attrTag({ content: _content("q16", () => {
|
|
15985
16131
|
_scope_reason();
|
|
15986
16132
|
const $scope15_id = _scope_id();
|
|
15987
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16133
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fM")}>${_text_resume($scope15_id, "c", ws.name)}</span>`);
|
|
15988
16134
|
_if(() => {
|
|
15989
16135
|
if (ws.status !== "active") {
|
|
15990
16136
|
const $scope19_id = _scope_id();
|
|
@@ -15993,7 +16139,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15993
16139
|
return 0;
|
|
15994
16140
|
}
|
|
15995
16141
|
}, $scope15_id, "d", 1, 1, 1, 0, 1);
|
|
15996
|
-
_html(`<span${_attr_class("
|
|
16142
|
+
_html(`<span${_attr_class("_fN")} 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
16143
|
_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
16144
|
_resume_branch($scope15_id);
|
|
15999
16145
|
}, $scope0_id) })
|
|
@@ -16021,32 +16167,32 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16021
16167
|
_if(() => {
|
|
16022
16168
|
if (pendingAction && actionStep) {
|
|
16023
16169
|
const $scope11_id = _scope_id();
|
|
16024
|
-
_html(`<p${_attr_class("
|
|
16170
|
+
_html(`<p${_attr_class("_bx")}><span${_attr_class("_G")}></span>${_text_resume($scope11_id, "c", actionStep)}</p>`);
|
|
16025
16171
|
writeScope($scope11_id, {});
|
|
16026
16172
|
return 0;
|
|
16027
16173
|
}
|
|
16028
16174
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16029
|
-
_html(`<section${_attr_class("
|
|
16175
|
+
_html(`<section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Workspace</h2></div><div${_attr_class(["_bD", "_cG"])}><div${_attr_class(["_cH", "_cI"])}>`);
|
|
16030
16176
|
_if(() => {
|
|
16031
16177
|
if (ws.status === "active") {
|
|
16032
16178
|
const $scope8_id = _scope_id();
|
|
16033
|
-
_html(`<span${_attr_class("
|
|
16179
|
+
_html(`<span${_attr_class("_cK")}>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
16180
|
_script($scope8_id, "q19");
|
|
16035
16181
|
writeScope($scope8_id, {});
|
|
16036
16182
|
return 0;
|
|
16037
16183
|
} else {
|
|
16038
16184
|
const $scope9_id = _scope_id();
|
|
16039
|
-
_html(`<span${_attr_class("
|
|
16185
|
+
_html(`<span${_attr_class("_cK")}>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
16186
|
_script($scope9_id, "q20");
|
|
16041
16187
|
writeScope($scope9_id, {});
|
|
16042
16188
|
return 1;
|
|
16043
16189
|
}
|
|
16044
16190
|
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
16045
|
-
_html(`<div${_attr_class(["
|
|
16191
|
+
_html(`<div${_attr_class(["_cH", "_cI"])}><span${_attr_class("_cK")}>Remove the workspace and its worktrees. Branches on origin stay.</span><button type=button${_attr_class([
|
|
16046
16192
|
btnSm,
|
|
16047
16193
|
"_t",
|
|
16048
16194
|
{ ["_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("
|
|
16195
|
+
])}${_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
16196
|
icon_plus_default({ size: 16 });
|
|
16051
16197
|
_html(`</button>${_el_resume($scope0_id, "v")}`);
|
|
16052
16198
|
_set_serialize_reason(66);
|
|
@@ -16077,13 +16223,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16077
16223
|
class: catalogRefreshing && "_F"
|
|
16078
16224
|
});
|
|
16079
16225
|
_html(`</button>${_el_resume($scope0_id, "z")}</div><ul${_attr_class([
|
|
16080
|
-
"
|
|
16081
|
-
"
|
|
16082
|
-
"
|
|
16226
|
+
"_bD",
|
|
16227
|
+
"_cG",
|
|
16228
|
+
"_cU"
|
|
16083
16229
|
])}>`);
|
|
16084
16230
|
_for_of(ws.repos, (row) => {
|
|
16085
16231
|
const $scope1_id = _scope_id();
|
|
16086
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16232
|
+
_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
16233
|
_if(() => {
|
|
16088
16234
|
if (row.base_branch !== row.default_branch) {
|
|
16089
16235
|
const $scope22_id = _scope_id();
|
|
@@ -16104,7 +16250,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16104
16250
|
} else {
|
|
16105
16251
|
const $scope10_id = _scope_id();
|
|
16106
16252
|
_html(`<button${_attr_class([
|
|
16107
|
-
"
|
|
16253
|
+
"_bI",
|
|
16108
16254
|
"_8",
|
|
16109
16255
|
"_9",
|
|
16110
16256
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -16137,13 +16283,13 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16137
16283
|
}, "full_name", $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
16138
16284
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16139
16285
|
const $scope26_id = _scope_id();
|
|
16140
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16286
|
+
_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
16287
|
writeScope($scope26_id, {});
|
|
16142
16288
|
}, (n) => n, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
16143
16289
|
_if(() => {
|
|
16144
16290
|
if (!ws.repos.length && !busy.size) {
|
|
16145
16291
|
const $scope27_id = _scope_id();
|
|
16146
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16292
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_bH")}>No repos yet. Add one to start.</span></li>`);
|
|
16147
16293
|
writeScope($scope27_id, {});
|
|
16148
16294
|
return 0;
|
|
16149
16295
|
}
|
|
@@ -16154,7 +16300,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16154
16300
|
_if(() => {
|
|
16155
16301
|
if (wsSkills.length || repoSkills.length) {
|
|
16156
16302
|
const $scope2_id = _scope_id();
|
|
16157
|
-
_html(`<section${_attr_class("
|
|
16303
|
+
_html(`<section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Skills</h2>`);
|
|
16158
16304
|
_if(() => {
|
|
16159
16305
|
if (wsSkills.length) {
|
|
16160
16306
|
const $scope28_id = _scope_id();
|
|
@@ -16163,7 +16309,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16163
16309
|
return 0;
|
|
16164
16310
|
}
|
|
16165
16311
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
16166
|
-
_html(`</div><ul${_attr_class("
|
|
16312
|
+
_html(`</div><ul${_attr_class("_cq")}>`);
|
|
16167
16313
|
_for_of(wsSkills, (s) => {
|
|
16168
16314
|
const $scope3_id = _scope_id();
|
|
16169
16315
|
const $for_content2__s_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -16271,7 +16417,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16271
16417
|
_if(() => {
|
|
16272
16418
|
if (repoSkills.length) {
|
|
16273
16419
|
const $scope4_id = _scope_id();
|
|
16274
|
-
_html(`<ul${_attr_class("
|
|
16420
|
+
_html(`<ul${_attr_class("_cq")}>`);
|
|
16275
16421
|
_for_of(repoSkills, (s) => {
|
|
16276
16422
|
const $scope5_id = _scope_id();
|
|
16277
16423
|
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
@@ -16327,22 +16473,22 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16327
16473
|
_if(() => {
|
|
16328
16474
|
if (running.length) {
|
|
16329
16475
|
const $scope17_id = _scope_id();
|
|
16330
|
-
_html(`<section${_attr_class("
|
|
16331
|
-
"
|
|
16332
|
-
"
|
|
16333
|
-
"
|
|
16476
|
+
_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([
|
|
16477
|
+
"_bD",
|
|
16478
|
+
"_cG",
|
|
16479
|
+
"_cU"
|
|
16334
16480
|
])}>`);
|
|
16335
16481
|
_for_of(running, (p) => {
|
|
16336
16482
|
const $scope18_id = _scope_id();
|
|
16337
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16338
|
-
"
|
|
16483
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bE")}${_attr("title", p.args)}><span${_attr_class([
|
|
16484
|
+
"_bF",
|
|
16339
16485
|
"_y",
|
|
16340
|
-
"
|
|
16486
|
+
"_fP"
|
|
16341
16487
|
])}>${_text_resume($scope18_id, "d", p.cmd)}</span>`);
|
|
16342
16488
|
_if(() => {
|
|
16343
16489
|
if (p.ports.length) {
|
|
16344
16490
|
const $scope36_id = _scope_id();
|
|
16345
|
-
_html(`<span${_attr_class("
|
|
16491
|
+
_html(`<span${_attr_class("_bG")}>`);
|
|
16346
16492
|
_for_of(p.ports, (port) => {
|
|
16347
16493
|
const $scope37_id = _scope_id();
|
|
16348
16494
|
_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 +16499,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16353
16499
|
return 0;
|
|
16354
16500
|
}
|
|
16355
16501
|
}, $scope18_id, "e", 1, 1, 1, 0, 1);
|
|
16356
|
-
_html(`</div>${_el_resume($scope18_id, "b")}<button${_attr_class(["
|
|
16502
|
+
_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
16503
|
icon_xmark_default({ size: 14 });
|
|
16358
16504
|
_html(`</button>${_el_resume($scope18_id, "f")}</li>`);
|
|
16359
16505
|
_script($scope18_id, "q30");
|
|
@@ -16435,11 +16581,11 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16435
16581
|
});
|
|
16436
16582
|
//#endregion
|
|
16437
16583
|
//#region src/tags/new-workspace.css.ts
|
|
16438
|
-
var content = "
|
|
16439
|
-
var curBase = "
|
|
16440
|
-
var archived = "
|
|
16441
|
-
var archivedHint = "
|
|
16442
|
-
var archivedCard = "
|
|
16584
|
+
var content = "_ft _cz";
|
|
16585
|
+
var curBase = "_fB _Y _X";
|
|
16586
|
+
var archived = "_fG _by";
|
|
16587
|
+
var archivedHint = "_fH _X";
|
|
16588
|
+
var archivedCard = "_fI _bD";
|
|
16443
16589
|
//#endregion
|
|
16444
16590
|
//#region src/tags/icons/icon-group.marko
|
|
16445
16591
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -16459,8 +16605,8 @@ var icon_group_default = _template("eb", (input) => {
|
|
|
16459
16605
|
});
|
|
16460
16606
|
//#endregion
|
|
16461
16607
|
//#region src/tags/join-dialog.css.ts
|
|
16462
|
-
var dlg = "
|
|
16463
|
-
var hint = "
|
|
16608
|
+
var dlg = "_hB _eR";
|
|
16609
|
+
var hint = "_hC _X";
|
|
16464
16610
|
//#endregion
|
|
16465
16611
|
//#region src/tags/join-dialog.marko
|
|
16466
16612
|
var api$3;
|
|
@@ -16589,26 +16735,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16589
16735
|
content: _content("o12", () => {
|
|
16590
16736
|
_scope_reason();
|
|
16591
16737
|
const $scope1_id = _scope_id();
|
|
16592
|
-
_html(`<h2${_attr_class("
|
|
16738
|
+
_html(`<h2${_attr_class("_eS")}${_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
16739
|
"_Z",
|
|
16594
16740
|
"_y",
|
|
16595
|
-
"
|
|
16741
|
+
"_hE"
|
|
16596
16742
|
])} 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
16743
|
_if(() => {
|
|
16598
16744
|
if (parsed.error) {
|
|
16599
16745
|
const $scope8_id = _scope_id();
|
|
16600
|
-
_html(`<p${_attr_class([hint, "
|
|
16746
|
+
_html(`<p${_attr_class([hint, "_hD"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16601
16747
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16602
16748
|
return 0;
|
|
16603
16749
|
} else if (parsed.ok) {
|
|
16604
16750
|
const $scope3_id = _scope_id();
|
|
16605
|
-
_html(`<ul${_attr_class("
|
|
16751
|
+
_html(`<ul${_attr_class("_hF")}>`);
|
|
16606
16752
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16607
16753
|
const $scope9_id = _scope_id();
|
|
16608
|
-
_html(`<li${_attr_class("
|
|
16754
|
+
_html(`<li${_attr_class("_hG")}><span${_attr_class("_hH")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16609
16755
|
writeScope($scope9_id, {});
|
|
16610
16756
|
}, (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("
|
|
16757
|
+
_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("_hI")}><span${_attr_class("_bM")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
16612
16758
|
name = _new_name;
|
|
16613
16759
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16614
16760
|
_script($scope3_id, "o8");
|
|
@@ -16645,10 +16791,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16645
16791
|
_if(() => {
|
|
16646
16792
|
if (busy && steps$2.length) {
|
|
16647
16793
|
const $scope6_id = _scope_id();
|
|
16648
|
-
_html(`<ul${_attr_class("
|
|
16794
|
+
_html(`<ul${_attr_class("_hJ")}>`);
|
|
16649
16795
|
_for_of(steps$2, (step$2, i) => {
|
|
16650
16796
|
const $scope7_id = _scope_id();
|
|
16651
|
-
_html(`<li${_attr_class(["
|
|
16797
|
+
_html(`<li${_attr_class(["_hL", { ["_hK"]: i === steps$2.length - 1 }])}>`);
|
|
16652
16798
|
_if(() => {
|
|
16653
16799
|
if (i === steps$2.length - 1) {
|
|
16654
16800
|
const $scope10_id = _scope_id();
|
|
@@ -16657,7 +16803,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16657
16803
|
return 0;
|
|
16658
16804
|
} else {
|
|
16659
16805
|
const $scope11_id = _scope_id();
|
|
16660
|
-
_html(`<span${_attr_class("
|
|
16806
|
+
_html(`<span${_attr_class("_hM")}>`);
|
|
16661
16807
|
icon_check_default({ size: 14 });
|
|
16662
16808
|
_html("</span>");
|
|
16663
16809
|
writeScope($scope11_id, {});
|
|
@@ -16814,7 +16960,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16814
16960
|
}
|
|
16815
16961
|
}, "s6", $scope0_id);
|
|
16816
16962
|
const titleId = _id();
|
|
16817
|
-
_html(`<div${_attr_class("
|
|
16963
|
+
_html(`<div${_attr_class("_cx")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_cy")}><div${_attr_class(content)}>`);
|
|
16818
16964
|
_set_serialize_reason({
|
|
16819
16965
|
0: _serialize_guard($scope0_reason, 2),
|
|
16820
16966
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16863,23 +17009,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16863
17009
|
return 0;
|
|
16864
17010
|
}
|
|
16865
17011
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
16866
|
-
_html(`<label${_attr_class("
|
|
17012
|
+
_html(`<label${_attr_class("_fw")}><span${_attr_class("_bM")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
16867
17013
|
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("
|
|
17014
|
+
}, "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("_fx")}><h2${_attr_class("_bM")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
16869
17015
|
_set_serialize_reason(1);
|
|
16870
17016
|
const $childScope2 = _peek_scope_id();
|
|
16871
17017
|
icon_refresh_default({
|
|
16872
17018
|
size: 14,
|
|
16873
17019
|
class: catalogRefreshing && "_F"
|
|
16874
17020
|
});
|
|
16875
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
17021
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_fy")}>`);
|
|
16876
17022
|
_for_of(selected, (repo) => {
|
|
16877
17023
|
const $scope4_id = _scope_id();
|
|
16878
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
17024
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_fz")}>${_text_resume($scope4_id, "c", repoLabel(repo.fullName))}</span>`);
|
|
16879
17025
|
_if(() => {
|
|
16880
17026
|
if (repo.fork !== void 0) {
|
|
16881
17027
|
const $scope5_id = _scope_id();
|
|
16882
|
-
_html(`<button${_attr_class(["
|
|
17028
|
+
_html(`<button${_attr_class(["_fC", { ["_fA"]: 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
17029
|
_if(() => {
|
|
16884
17030
|
if (repo.fork) {
|
|
16885
17031
|
const $scope14_id = _scope_id();
|
|
@@ -16902,7 +17048,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16902
17048
|
_html(`<button${_attr_class([
|
|
16903
17049
|
curBase,
|
|
16904
17050
|
"_y",
|
|
16905
|
-
{ ["
|
|
17051
|
+
{ ["_fA"]: branchesFor === repo.fullName }
|
|
16906
17052
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16907
17053
|
icon_branch_default({ size: 12 });
|
|
16908
17054
|
_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 +17084,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16938
17084
|
_if(() => {
|
|
16939
17085
|
if (!selected.length) {
|
|
16940
17086
|
const $scope16_id = _scope_id();
|
|
16941
|
-
_html(`<li${_attr_class("
|
|
17087
|
+
_html(`<li${_attr_class("_bJ")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
16942
17088
|
writeScope($scope16_id, {});
|
|
16943
17089
|
return 0;
|
|
16944
17090
|
}
|
|
@@ -16963,10 +17109,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16963
17109
|
_if(() => {
|
|
16964
17110
|
if (busy && steps.length) {
|
|
16965
17111
|
const $scope11_id = _scope_id();
|
|
16966
|
-
_html(`<ul${_attr_class("
|
|
17112
|
+
_html(`<ul${_attr_class("_fD")}>`);
|
|
16967
17113
|
_for_of(steps, (step, i) => {
|
|
16968
17114
|
const $scope12_id = _scope_id();
|
|
16969
|
-
_html(`<li${_attr_class(["
|
|
17115
|
+
_html(`<li${_attr_class(["_fJ", { ["_fE"]: i === steps.length - 1 }])}>`);
|
|
16970
17116
|
_if(() => {
|
|
16971
17117
|
if (i === steps.length - 1) {
|
|
16972
17118
|
const $scope17_id = _scope_id();
|
|
@@ -16975,7 +17121,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16975
17121
|
return 0;
|
|
16976
17122
|
} else {
|
|
16977
17123
|
const $scope18_id = _scope_id();
|
|
16978
|
-
_html(`<span${_attr_class("
|
|
17124
|
+
_html(`<span${_attr_class("_fF")}>`);
|
|
16979
17125
|
icon_check_default({ size: 14 });
|
|
16980
17126
|
_html("</span>");
|
|
16981
17127
|
writeScope($scope18_id, {});
|
|
@@ -16989,7 +17135,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16989
17135
|
return 0;
|
|
16990
17136
|
}
|
|
16991
17137
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
16992
|
-
_html(`<div${_attr_class("
|
|
17138
|
+
_html(`<div${_attr_class("_fu")}>`);
|
|
16993
17139
|
_if(() => {
|
|
16994
17140
|
if (input.onExit || busy) {
|
|
16995
17141
|
const $scope1_id = _scope_id();
|
|
@@ -17002,15 +17148,15 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17002
17148
|
_html(`<button type=button${_attr_class([
|
|
17003
17149
|
btnLg,
|
|
17004
17150
|
"_r",
|
|
17005
|
-
"
|
|
17151
|
+
"_fv"
|
|
17006
17152
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
17007
17153
|
_if(() => {
|
|
17008
17154
|
if (archived$1.length) {
|
|
17009
17155
|
const $scope6_id = _scope_id();
|
|
17010
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17156
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fx")}><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
17157
|
_for_of(archived$1, (ws) => {
|
|
17012
17158
|
const $scope7_id = _scope_id();
|
|
17013
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
17159
|
+
_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
17160
|
_if(() => {
|
|
17015
17161
|
if (restoring === ws.id) {
|
|
17016
17162
|
const $scope19_id = _scope_id();
|
|
@@ -17090,12 +17236,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17090
17236
|
});
|
|
17091
17237
|
_resume_branch($scope0_id);
|
|
17092
17238
|
});
|
|
17093
|
-
var kbtn = "
|
|
17094
|
-
var sessOpen = "
|
|
17095
|
-
var sessRename = "
|
|
17096
|
-
var dpadPaste = "
|
|
17097
|
-
var repeat = "
|
|
17098
|
-
var dpadEsc = "
|
|
17239
|
+
var kbtn = "_ef _6 _l";
|
|
17240
|
+
var sessOpen = "_f4 _I";
|
|
17241
|
+
var sessRename = "_f8 _J";
|
|
17242
|
+
var dpadPaste = "_gf _ge";
|
|
17243
|
+
var repeat = "_gg _ge";
|
|
17244
|
+
var dpadEsc = "_gi _ge";
|
|
17099
17245
|
//#endregion
|
|
17100
17246
|
//#region src/tags/term-find.marko
|
|
17101
17247
|
var term_find_default = _template("D", (input) => {
|
|
@@ -17132,19 +17278,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
17132
17278
|
const canStep = hasQuery && open;
|
|
17133
17279
|
const keybar = input.placement === "keybar";
|
|
17134
17280
|
_html(`<div${_attr_class([
|
|
17135
|
-
"
|
|
17136
|
-
keybar ? "
|
|
17137
|
-
!open && "
|
|
17138
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17281
|
+
"_hq",
|
|
17282
|
+
keybar ? "_hs" : "_hr",
|
|
17283
|
+
!open && "_hu"
|
|
17284
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_hl", keybar ? "_ht" : "_hn"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17139
17285
|
if (!open) return;
|
|
17140
17286
|
query = v;
|
|
17141
17287
|
live.query = v;
|
|
17142
17288
|
run(0);
|
|
17143
|
-
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17289
|
+
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "_hv"])} 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 && "_hw"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17144
17290
|
icon_arrow_up_default({ size: 14 });
|
|
17145
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17291
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_hw"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17146
17292
|
icon_arrow_down_default({ size: 14 });
|
|
17147
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17293
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_hw"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17148
17294
|
icon_xmark_default({ size: 14 });
|
|
17149
17295
|
_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
17296
|
const $return = focusInput;
|
|
@@ -17260,7 +17406,7 @@ var icon_enter_default = _template("ab", (input) => {
|
|
|
17260
17406
|
});
|
|
17261
17407
|
//#endregion
|
|
17262
17408
|
//#region src/tags/icons/icon-tab.marko
|
|
17263
|
-
var icon_tab_default = _template("
|
|
17409
|
+
var icon_tab_default = _template("qb", (input) => {
|
|
17264
17410
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17265
17411
|
const $scope0_id = _scope_id();
|
|
17266
17412
|
_set_serialize_reason({
|
|
@@ -17275,7 +17421,7 @@ var icon_tab_default = _template("nb", (input) => {
|
|
|
17275
17421
|
});
|
|
17276
17422
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17277
17423
|
});
|
|
17278
|
-
_template("
|
|
17424
|
+
_template("sb", (input) => {
|
|
17279
17425
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17280
17426
|
const $scope0_id = _scope_id();
|
|
17281
17427
|
_set_serialize_reason({
|
|
@@ -17565,7 +17711,7 @@ var term_default = _template("E", (input) => {
|
|
|
17565
17711
|
trapOpen = true;
|
|
17566
17712
|
}
|
|
17567
17713
|
}, "E13", $scope0_id);
|
|
17568
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17714
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_fQ")}><div${_attr_class("_fR")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17569
17715
|
_if(() => {
|
|
17570
17716
|
if (findOpen) {
|
|
17571
17717
|
const $scope12_id = _scope_id();
|
|
@@ -17595,7 +17741,7 @@ var term_default = _template("E", (input) => {
|
|
|
17595
17741
|
_if(() => {
|
|
17596
17742
|
if (uploading) {
|
|
17597
17743
|
const $scope21_id = _scope_id();
|
|
17598
|
-
_html(`<div${_attr_class("
|
|
17744
|
+
_html(`<div${_attr_class("_fX")}>uploading…</div>`);
|
|
17599
17745
|
writeScope($scope21_id, {});
|
|
17600
17746
|
return 0;
|
|
17601
17747
|
}
|
|
@@ -17603,7 +17749,7 @@ var term_default = _template("E", (input) => {
|
|
|
17603
17749
|
_if(() => {
|
|
17604
17750
|
if (copiedFlash) {
|
|
17605
17751
|
const $scope22_id = _scope_id();
|
|
17606
|
-
_html(`<div${_attr_class("
|
|
17752
|
+
_html(`<div${_attr_class("_fW")}>Copied</div>`);
|
|
17607
17753
|
writeScope($scope22_id, {});
|
|
17608
17754
|
return 0;
|
|
17609
17755
|
}
|
|
@@ -17612,7 +17758,7 @@ var term_default = _template("E", (input) => {
|
|
|
17612
17758
|
_if(() => {
|
|
17613
17759
|
if (trapOpen) {
|
|
17614
17760
|
const $scope11_id = _scope_id();
|
|
17615
|
-
_html(`<div${_attr_class("
|
|
17761
|
+
_html(`<div${_attr_class("_fY")}><div${_attr_class("_fZ")}><p${_attr_class("_gj")}>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
17762
|
_script($scope11_id, "E28");
|
|
17617
17763
|
_script($scope11_id, "E29");
|
|
17618
17764
|
writeScope($scope11_id, {});
|
|
@@ -17690,7 +17836,7 @@ var term_default = _template("E", (input) => {
|
|
|
17690
17836
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
17691
17837
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
17692
17838
|
}, "E19", $scope4_id);
|
|
17693
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17839
|
+
_html(`<button${_attr_class([kbtn, "_f0"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
17694
17840
|
_set_serialize_reason({
|
|
17695
17841
|
1: $sg__input_agent__OR__input_sessionState,
|
|
17696
17842
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -17704,7 +17850,7 @@ var term_default = _template("E", (input) => {
|
|
|
17704
17850
|
"_A",
|
|
17705
17851
|
"_bc",
|
|
17706
17852
|
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(["__", "
|
|
17853
|
+
])}></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(["__", "_f1"])}>`);
|
|
17708
17854
|
_if(() => {
|
|
17709
17855
|
if ((input.sessions || []).length > 0) {
|
|
17710
17856
|
const $scope5_id = _scope_id();
|
|
@@ -17720,7 +17866,7 @@ var term_default = _template("E", (input) => {
|
|
|
17720
17866
|
const $scope6_id = _scope_id();
|
|
17721
17867
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17722
17868
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
17723
|
-
_html(`<div${_attr_class(["
|
|
17869
|
+
_html(`<div${_attr_class(["_f3", { ["_f2"]: s.id === input.sessionId }])}>`);
|
|
17724
17870
|
_if(() => {
|
|
17725
17871
|
if (renamingId === s.id) {
|
|
17726
17872
|
const $scope24_id = _scope_id();
|
|
@@ -17752,7 +17898,7 @@ var term_default = _template("E", (input) => {
|
|
|
17752
17898
|
agent: activeAgent(s),
|
|
17753
17899
|
size: 14
|
|
17754
17900
|
});
|
|
17755
|
-
_html(`<span${_attr_class("
|
|
17901
|
+
_html(`<span${_attr_class("_f5")}><span${_attr_class("_f7")}>${_text_resume($scope7_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17756
17902
|
_if(() => {
|
|
17757
17903
|
if (s.id === input.sessionId) {
|
|
17758
17904
|
const $scope23_id = _scope_id();
|
|
@@ -17764,7 +17910,7 @@ var term_default = _template("E", (input) => {
|
|
|
17764
17910
|
const $childScope6 = _peek_scope_id();
|
|
17765
17911
|
usage_pcts_default({
|
|
17766
17912
|
agent: plan,
|
|
17767
|
-
class: "
|
|
17913
|
+
class: "_f6"
|
|
17768
17914
|
});
|
|
17769
17915
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
17770
17916
|
return 0;
|
|
@@ -17781,7 +17927,7 @@ var term_default = _template("E", (input) => {
|
|
|
17781
17927
|
_if(() => {
|
|
17782
17928
|
if (input.onRenameSession) {
|
|
17783
17929
|
const $scope25_id = _scope_id();
|
|
17784
|
-
_html(`<button${_attr_class(["
|
|
17930
|
+
_html(`<button${_attr_class(["_f9", "_f_"])} title="Rename session">`);
|
|
17785
17931
|
icon_edit_default({ size: 12 });
|
|
17786
17932
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
17787
17933
|
_script($scope25_id, "E32");
|
|
@@ -17793,7 +17939,7 @@ var term_default = _template("E", (input) => {
|
|
|
17793
17939
|
if (input.onCloseSession) {
|
|
17794
17940
|
const $scope8_id = _scope_id();
|
|
17795
17941
|
_html(`<button${_attr_class([
|
|
17796
|
-
"
|
|
17942
|
+
"_f9",
|
|
17797
17943
|
"_8",
|
|
17798
17944
|
{ ["_s"]: armedClose === s.id }
|
|
17799
17945
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -17835,7 +17981,7 @@ var term_default = _template("E", (input) => {
|
|
|
17835
17981
|
return 0;
|
|
17836
17982
|
}
|
|
17837
17983
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
17838
|
-
_html(`<div${_attr_class("
|
|
17984
|
+
_html(`<div${_attr_class("_ga")}><span${_attr_class("_gb")}>New session</span><div${_attr_class("_gc")}>`);
|
|
17839
17985
|
_for_of(["shell", ...input.agents || []], (agent) => {
|
|
17840
17986
|
const $scope9_id = _scope_id();
|
|
17841
17987
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -17880,9 +18026,9 @@ var term_default = _template("E", (input) => {
|
|
|
17880
18026
|
const dpadOpenBox = { open: false };
|
|
17881
18027
|
_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
18028
|
icon_dpad_default({ size: 16 });
|
|
17883
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
18029
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_ee"]: 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
18030
|
icon_search_default({ size: 16 });
|
|
17885
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
18031
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_ee"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
17886
18032
|
icon_keyboard_default({ size: 16 });
|
|
17887
18033
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
17888
18034
|
_script($scope10_id, "E38");
|
|
@@ -17898,7 +18044,7 @@ var term_default = _template("E", (input) => {
|
|
|
17898
18044
|
overlay: attrTag({ content: _content_resume("E49", () => {
|
|
17899
18045
|
_scope_reason();
|
|
17900
18046
|
const $scope15_id = _scope_id();
|
|
17901
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
18047
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_gd")}>`);
|
|
17902
18048
|
forOf(DPAD, (row) => {
|
|
17903
18049
|
const $scope16_id = _scope_id();
|
|
17904
18050
|
forOf(row, (cell) => {
|
|
@@ -17918,7 +18064,7 @@ var term_default = _template("E", (input) => {
|
|
|
17918
18064
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
17919
18065
|
} else {
|
|
17920
18066
|
const $scope19_id = _scope_id();
|
|
17921
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
18067
|
+
_html(`<button${_attr_class([repeat, { ["_gh"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
17922
18068
|
if (cell.icon === "arrow-up") {
|
|
17923
18069
|
_scope_id();
|
|
17924
18070
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -18035,7 +18181,7 @@ var api$1;
|
|
|
18035
18181
|
var isTransientApiError$1;
|
|
18036
18182
|
var $DiffView_withLoadAssets = withLoadAssets(diff_view_default, "_m");
|
|
18037
18183
|
var work_view_default = _template("I", (input) => {
|
|
18038
|
-
const $scope0_reason = _scope_reason(), $sg__input_workspace = _serialize_guard($scope0_reason, 4), $sg__input_agents = _serialize_guard($scope0_reason, 10), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_active = _serialize_if($scope0_reason, 5), $si__input_agents = _serialize_if($scope0_reason, 10), $si__input_preferred = _serialize_if($scope0_reason, 8);
|
|
18184
|
+
const $scope0_reason = _scope_reason(), $sg__input_workspace = _serialize_guard($scope0_reason, 4), $sg__input_instance = _serialize_guard($scope0_reason, 11), $sg__input_agents = _serialize_guard($scope0_reason, 10), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_active = _serialize_if($scope0_reason, 5), $si__input_agents = _serialize_if($scope0_reason, 10), $si__input_preferred = _serialize_if($scope0_reason, 8);
|
|
18039
18185
|
const $scope0_id = _scope_id();
|
|
18040
18186
|
_hoist($scope0_id, "I38");
|
|
18041
18187
|
_hoist($scope0_id, "I39");
|
|
@@ -18364,7 +18510,8 @@ var work_view_default = _template("I", (input) => {
|
|
|
18364
18510
|
3: _serialize_guard($scope0_reason, 8),
|
|
18365
18511
|
4: $sg__input_workspace,
|
|
18366
18512
|
5: $sg__input_agents,
|
|
18367
|
-
6:
|
|
18513
|
+
6: $sg__input_instance,
|
|
18514
|
+
7: $sg__input_instance
|
|
18368
18515
|
});
|
|
18369
18516
|
const $childScope3 = _peek_scope_id();
|
|
18370
18517
|
settings_page_default({
|
|
@@ -18489,7 +18636,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18489
18636
|
_if(() => {
|
|
18490
18637
|
if (!shownSessions.length && view === "term") {
|
|
18491
18638
|
const $scope7_id = _scope_id();
|
|
18492
|
-
_html(`<div${_attr_class("
|
|
18639
|
+
_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
18640
|
_script($scope7_id, "I43");
|
|
18494
18641
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
18495
18642
|
return 0;
|
|
@@ -18499,7 +18646,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18499
18646
|
return 0;
|
|
18500
18647
|
} else if (ws) {
|
|
18501
18648
|
const $scope11_id = _scope_id();
|
|
18502
|
-
_html(`<p${_attr_class("
|
|
18649
|
+
_html(`<p${_attr_class("_bK")}>Loading sessions…</p>`);
|
|
18503
18650
|
writeScope($scope11_id, {});
|
|
18504
18651
|
return 1;
|
|
18505
18652
|
}
|
|
@@ -18809,7 +18956,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18809
18956
|
if (!selectedId && showSetup) {
|
|
18810
18957
|
const $scope3_id = _scope_id();
|
|
18811
18958
|
_html(`<div${_attr_class("_j")}>`);
|
|
18812
|
-
_set_serialize_reason(
|
|
18959
|
+
_set_serialize_reason(466);
|
|
18813
18960
|
const $childScope = _peek_scope_id();
|
|
18814
18961
|
settings_page_default({
|
|
18815
18962
|
preferred: settings ? settings.preferredAgent : "shell",
|
|
@@ -19115,7 +19262,7 @@ var app_page_default = _template("b", (input) => {
|
|
|
19115
19262
|
});
|
|
19116
19263
|
//#endregion
|
|
19117
19264
|
//#region src/routes/_app/new/+page.marko
|
|
19118
|
-
var _page_default$4 = _template("
|
|
19265
|
+
var _page_default$4 = _template("ub", (input) => {
|
|
19119
19266
|
_scope_reason();
|
|
19120
19267
|
_scope_id();
|
|
19121
19268
|
app_page_default({ initial: {
|
|
@@ -19153,7 +19300,7 @@ var GET$25 = Run.GET(async (_ctx, next) => {
|
|
|
19153
19300
|
});
|
|
19154
19301
|
//#endregion
|
|
19155
19302
|
//#region src/routes/_app/settings/+page.marko
|
|
19156
|
-
var _page_default$3 = _template("
|
|
19303
|
+
var _page_default$3 = _template("vb", (input) => {
|
|
19157
19304
|
_scope_reason();
|
|
19158
19305
|
_scope_id();
|
|
19159
19306
|
app_page_default({ initial: {
|
|
@@ -19186,7 +19333,7 @@ function head3(context) {
|
|
|
19186
19333
|
}
|
|
19187
19334
|
//#endregion
|
|
19188
19335
|
//#region src/routes/_app/w/$id/+page.marko
|
|
19189
|
-
var _page_default$2 = _template("
|
|
19336
|
+
var _page_default$2 = _template("wb", (input) => {
|
|
19190
19337
|
_scope_reason();
|
|
19191
19338
|
_scope_id();
|
|
19192
19339
|
const $global$3 = $global();
|
|
@@ -19220,7 +19367,7 @@ function head4(context) {
|
|
|
19220
19367
|
}
|
|
19221
19368
|
//#endregion
|
|
19222
19369
|
//#region src/routes/_app/w/$id/manage/+page.marko
|
|
19223
|
-
var _page_default$1 = _template("
|
|
19370
|
+
var _page_default$1 = _template("xb", (input) => {
|
|
19224
19371
|
_scope_reason();
|
|
19225
19372
|
_scope_id();
|
|
19226
19373
|
app_page_default({ initial: {
|
|
@@ -19252,7 +19399,7 @@ function head5(context) {
|
|
|
19252
19399
|
}
|
|
19253
19400
|
//#endregion
|
|
19254
19401
|
//#region src/routes/_app/w/$id/review/+page.marko
|
|
19255
|
-
var _page_default = _template("
|
|
19402
|
+
var _page_default = _template("yb", (input) => {
|
|
19256
19403
|
_scope_reason();
|
|
19257
19404
|
_scope_id();
|
|
19258
19405
|
const $global$1 = $global();
|
|
@@ -20364,7 +20511,7 @@ function post14(context) {
|
|
|
20364
20511
|
}
|
|
20365
20512
|
//#endregion
|
|
20366
20513
|
//#region __marko-run__api.instance.icon.js
|
|
20367
|
-
var getHandler$21 = normalizeHandler(Run.GET(() => new Response(iconSvg(getInstance().accent), { headers: {
|
|
20514
|
+
var getHandler$21 = normalizeHandler(Run.GET({ search: (value) => ({ v: typeof value.v === "string" ? value.v : "" }) }, (ctx) => new Response(iconSvg(ctx.search.v && normalizeAccent(`#${ctx.search.v}`) || getInstance().accent), { headers: {
|
|
20368
20515
|
"content-type": "image/svg+xml",
|
|
20369
20516
|
"cache-control": "public, max-age=3600"
|
|
20370
20517
|
} })), "GET");
|
|
@@ -27354,4 +27501,4 @@ server.listen(port, () => {
|
|
|
27354
27501
|
//#endregion
|
|
27355
27502
|
export {};
|
|
27356
27503
|
|
|
27357
|
-
;var __MARKO_MANIFEST__={"
|
|
27504
|
+
;var __MARKO_MANIFEST__={"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-xgf_MG89.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xgf_MG89.css\"",">",2,"stylesheet#/assets/app-page-B9ipmZIq.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B9ipmZIq.css\"",">"],"defer":[2,"/assets/w._-CFr4Ctz3.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CFr4Ctz3.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/_CsmfAHEZ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CsmfAHEZ.js\"",">",2,"modulepreload#/assets/_BajmTGoh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BajmTGoh.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-xgf_MG89.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xgf_MG89.css\"",">",2,"stylesheet#/assets/app-page-B9ipmZIq.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B9ipmZIq.css\"",">"],"defer":[2,"/assets/new-CFr4Ctz3.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-CFr4Ctz3.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/_CsmfAHEZ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CsmfAHEZ.js\"",">",2,"modulepreload#/assets/_BajmTGoh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BajmTGoh.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-xgf_MG89.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xgf_MG89.css\"",">",2,"stylesheet#/assets/app-page-B9ipmZIq.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B9ipmZIq.css\"",">"],"defer":[2,"/assets/settings-CFr4Ctz3.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-CFr4Ctz3.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/_CsmfAHEZ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CsmfAHEZ.js\"",">",2,"modulepreload#/assets/_BajmTGoh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BajmTGoh.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-xgf_MG89.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xgf_MG89.css\"",">",2,"stylesheet#/assets/app-page-B9ipmZIq.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B9ipmZIq.css\"",">"],"defer":[2,"/assets/w._-CySgOtR7.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CySgOtR7.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/_CsmfAHEZ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CsmfAHEZ.js\"",">",2,"modulepreload#/assets/_BajmTGoh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BajmTGoh.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-xgf_MG89.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-xgf_MG89.css\"",">",2,"stylesheet#/assets/app-page-B9ipmZIq.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-B9ipmZIq.css\"",">"],"defer":[2,"/assets/w-CFr4Ctz3.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-CFr4Ctz3.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/_CsmfAHEZ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CsmfAHEZ.js\"",">",2,"modulepreload#/assets/_BajmTGoh.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BajmTGoh.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-Blay1rPU.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-Blay1rPU.css\"",">",2,"stylesheet#/assets/icon-arrow-down-xgf_MG89.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-xgf_MG89.css\"",">"],"defer":[2,"/assets/diff-view-DhhhLA0Q.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-DhhhLA0Q.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|