@dylanpiercey/work 0.0.149 → 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 +1089 -983
- 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/{_CbiKcUea.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/{_DDw0OY_l.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-BeyNPx46.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/_7nS5DHrB.js +0 -1
- package/dist/public/assets/_B1zVFrqA.js +0 -1
- package/dist/public/assets/_B2jTw69S.js +0 -1
- package/dist/public/assets/_BfeoGw7I.js +0 -1
- package/dist/public/assets/_C0pMVET4.js +0 -1
- package/dist/public/assets/_CGFRuaty.js +0 -1
- package/dist/public/assets/_CUJD0FoO.js +0 -1
- package/dist/public/assets/_CbiKcUea.js.br +0 -0
- package/dist/public/assets/_Cj2nLZwI.js +0 -1
- package/dist/public/assets/_D7R73uuy.js +0 -1
- package/dist/public/assets/_D8c-yuh-.js +0 -1
- package/dist/public/assets/_DAuz95AE.js +0 -1
- package/dist/public/assets/_DDw0OY_l.js.br +0 -0
- package/dist/public/assets/_DIRvUWwm.js +0 -1
- package/dist/public/assets/_DO207rwp.js +0 -1
- package/dist/public/assets/_DP7TieId.js +0 -1
- package/dist/public/assets/_K5VzMaPM.js +0 -1
- package/dist/public/assets/_L7D-PU41.js +0 -83
- package/dist/public/assets/_L7D-PU41.js.br +0 -0
- package/dist/public/assets/_Sb7sRy6l.js +0 -1
- package/dist/public/assets/_apIFOh77.js +0 -1
- package/dist/public/assets/_itssyUra.js +0 -1
- package/dist/public/assets/_rxz4BJjC.js +0 -1
- package/dist/public/assets/app-page-IB6TT3tX.css +0 -1
- package/dist/public/assets/app-page-IB6TT3tX.css.br +0 -0
- package/dist/public/assets/diff-view-9CwFW8SS.js +0 -2
- package/dist/public/assets/diff-view-B_sKkKdf.css +0 -1
- package/dist/public/assets/diff-view-B_sKkKdf.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-BeyNPx46.css.br +0 -0
- package/dist/public/assets/new-B9nb-hJx.js +0 -1
- package/dist/public/assets/settings-B9nb-hJx.js +0 -1
- package/dist/public/assets/w-B9nb-hJx.js +0 -1
- package/dist/public/assets/w._-B9nb-hJx.js +0 -1
- package/dist/public/assets/w._-DLJZ7pvD.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -6960,7 +6960,7 @@ var icon_base_default = _template("P", (input) => {
|
|
|
6960
6960
|
});
|
|
6961
6961
|
//#endregion
|
|
6962
6962
|
//#region src/tags/icons/icon-xmark.marko
|
|
6963
|
-
var icon_xmark_default = _template("
|
|
6963
|
+
var icon_xmark_default = _template("tb", (input) => {
|
|
6964
6964
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6965
6965
|
const $scope0_id = _scope_id();
|
|
6966
6966
|
_set_serialize_reason({
|
|
@@ -7244,24 +7244,23 @@ function applyInstance(inst) {
|
|
|
7244
7244
|
}
|
|
7245
7245
|
//#endregion
|
|
7246
7246
|
//#region src/tags/settings-page.css.ts
|
|
7247
|
-
var content$2 = "
|
|
7248
|
-
var agentGrid = "
|
|
7249
|
-
var toolGrid = "
|
|
7250
|
-
var toolRow = "
|
|
7251
|
-
var themeSeg = "
|
|
7252
|
-
var
|
|
7253
|
-
var
|
|
7254
|
-
var
|
|
7255
|
-
var
|
|
7256
|
-
var
|
|
7257
|
-
var
|
|
7258
|
-
var pop = "_dy __";
|
|
7247
|
+
var content$2 = "_cX _cz _cA";
|
|
7248
|
+
var agentGrid = "_c0 _bB";
|
|
7249
|
+
var toolGrid = "_c_ _cU";
|
|
7250
|
+
var toolRow = "_da _cV";
|
|
7251
|
+
var themeSeg = "_dy _be";
|
|
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 __";
|
|
7259
7258
|
var sectionCount = "_bA _N _O";
|
|
7260
7259
|
var row = "_bL _bD";
|
|
7261
7260
|
var iconBtn$1 = "_5 _l";
|
|
7262
7261
|
//#endregion
|
|
7263
7262
|
//#region src/tags/icons/icon-refresh.marko
|
|
7264
|
-
var icon_refresh_default = _template("
|
|
7263
|
+
var icon_refresh_default = _template("kb", (input) => {
|
|
7265
7264
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7266
7265
|
const $scope0_id = _scope_id();
|
|
7267
7266
|
_set_serialize_reason({
|
|
@@ -7298,18 +7297,18 @@ var icon_back_default = _template("O", (input) => {
|
|
|
7298
7297
|
var page_head_default = _template("t", (input) => {
|
|
7299
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);
|
|
7300
7299
|
const $scope0_id = _scope_id();
|
|
7301
|
-
_html(`<header${_attr_class("
|
|
7300
|
+
_html(`<header${_attr_class("_cB")}>`);
|
|
7302
7301
|
_if(() => {
|
|
7303
7302
|
if (input.backHref) {
|
|
7304
7303
|
const $scope1_id = _scope_id();
|
|
7305
|
-
_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")}>`);
|
|
7306
7305
|
icon_back_default({ size: 16 });
|
|
7307
7306
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7308
7307
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7309
7308
|
return 0;
|
|
7310
7309
|
} else if (input.onBack) {
|
|
7311
7310
|
const $scope2_id = _scope_id();
|
|
7312
|
-
_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")}>`);
|
|
7313
7312
|
icon_back_default({ size: 16 });
|
|
7314
7313
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7315
7314
|
_script($scope2_id, "t0");
|
|
@@ -7317,11 +7316,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7317
7316
|
return 1;
|
|
7318
7317
|
}
|
|
7319
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);
|
|
7320
|
-
_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))}`);
|
|
7321
7320
|
_if(() => {
|
|
7322
7321
|
if (input.meta) {
|
|
7323
7322
|
const $scope3_id = _scope_id();
|
|
7324
|
-
_html(`<p${_attr_class("
|
|
7323
|
+
_html(`<p${_attr_class("_cE")}>`);
|
|
7325
7324
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7326
7325
|
_html("</p>");
|
|
7327
7326
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7332,7 +7331,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7332
7331
|
_if(() => {
|
|
7333
7332
|
if (input.actions) {
|
|
7334
7333
|
const $scope4_id = _scope_id();
|
|
7335
|
-
_html(`<div${_attr_class("
|
|
7334
|
+
_html(`<div${_attr_class("_cF")}>`);
|
|
7336
7335
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7337
7336
|
_html("</div>");
|
|
7338
7337
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7400,10 +7399,10 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7400
7399
|
n: $badge__closures
|
|
7401
7400
|
});
|
|
7402
7401
|
});
|
|
7403
|
-
var usageNote = "
|
|
7402
|
+
var usageNote = "_ez _X";
|
|
7404
7403
|
//#endregion
|
|
7405
7404
|
//#region src/tags/icons/icon-warning.marko
|
|
7406
|
-
var icon_warning_default = _template("
|
|
7405
|
+
var icon_warning_default = _template("rb", (input) => {
|
|
7407
7406
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7408
7407
|
const $scope0_id = _scope_id();
|
|
7409
7408
|
_set_serialize_reason({
|
|
@@ -7430,11 +7429,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7430
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);
|
|
7431
7430
|
const $scope0_id = _scope_id();
|
|
7432
7431
|
const agent = input.agent;
|
|
7433
|
-
_html(`<div${_attr_class(["
|
|
7432
|
+
_html(`<div${_attr_class(["_et", { ["_eu"]: input.hideName }])}><div${_attr_class("_ev")}>`);
|
|
7434
7433
|
_if(() => {
|
|
7435
7434
|
if (!input.hideName) {
|
|
7436
7435
|
const $scope1_id = _scope_id();
|
|
7437
|
-
_html(`<strong${_attr_class("
|
|
7436
|
+
_html(`<strong${_attr_class("_eO")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7438
7437
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7439
7438
|
return 0;
|
|
7440
7439
|
}
|
|
@@ -7442,7 +7441,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7442
7441
|
_if(() => {
|
|
7443
7442
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7444
7443
|
const $scope2_id = _scope_id();
|
|
7445
|
-
_html(`<span${_attr_class("
|
|
7444
|
+
_html(`<span${_attr_class("_ew")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7446
7445
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7447
7446
|
return 0;
|
|
7448
7447
|
}
|
|
@@ -7450,21 +7449,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7450
7449
|
_if(() => {
|
|
7451
7450
|
if (agent.stale_seconds != null) {
|
|
7452
7451
|
const $scope3_id = _scope_id();
|
|
7453
|
-
_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`)}>`);
|
|
7454
7453
|
icon_warning_default({ size: 12 });
|
|
7455
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)}`);
|
|
7456
7455
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7457
7456
|
return 0;
|
|
7458
7457
|
}
|
|
7459
7458
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7460
|
-
_html(`</div><div${_attr_class(["
|
|
7459
|
+
_html(`</div><div${_attr_class(["_ey", { ["_eP"]: agent.stale_seconds != null }])}>`);
|
|
7461
7460
|
_for_of(agent.windows || [], (win) => {
|
|
7462
7461
|
const $scope4_id = _scope_id();
|
|
7463
7462
|
const pct = pctText(win.used_percent);
|
|
7464
7463
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7465
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7466
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7467
|
-
_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")}>`);
|
|
7468
7467
|
_if(() => {
|
|
7469
7468
|
if (label) {
|
|
7470
7469
|
const $scope6_id = _scope_id();
|
|
@@ -7498,7 +7497,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7498
7497
|
});
|
|
7499
7498
|
//#endregion
|
|
7500
7499
|
//#region src/tags/icons/icon-plus.marko
|
|
7501
|
-
var icon_plus_default = _template("
|
|
7500
|
+
var icon_plus_default = _template("jb", (input) => {
|
|
7502
7501
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7503
7502
|
const $scope0_id = _scope_id();
|
|
7504
7503
|
_set_serialize_reason({
|
|
@@ -7581,14 +7580,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7581
7580
|
localCode = null;
|
|
7582
7581
|
}
|
|
7583
7582
|
}, "C0", $scope0_id);
|
|
7584
|
-
_html(`<div${_attr_class(["
|
|
7583
|
+
_html(`<div${_attr_class(["_eh", input.class])}>`);
|
|
7585
7584
|
_for_of(input.items, (s) => {
|
|
7586
7585
|
const $scope1_id = _scope_id();
|
|
7587
|
-
_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>`);
|
|
7588
7587
|
_if(() => {
|
|
7589
7588
|
if (!busy) {
|
|
7590
7589
|
const $scope2_id = _scope_id();
|
|
7591
|
-
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
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")}`);
|
|
7592
7591
|
_script($scope2_id, "C1");
|
|
7593
7592
|
writeScope($scope2_id, {});
|
|
7594
7593
|
return 0;
|
|
@@ -7603,13 +7602,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7603
7602
|
_if(() => {
|
|
7604
7603
|
if (localBusy && localCode) {
|
|
7605
7604
|
const $scope4_id = _scope_id();
|
|
7606
|
-
_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>`);
|
|
7607
7606
|
_script($scope4_id, "C2");
|
|
7608
7607
|
writeScope($scope4_id, {});
|
|
7609
7608
|
return 0;
|
|
7610
7609
|
} else if (localBusy) {
|
|
7611
7610
|
const $scope6_id = _scope_id();
|
|
7612
|
-
_html(`<div${_attr_class(["
|
|
7611
|
+
_html(`<div${_attr_class(["_ei", "_ep"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7613
7612
|
writeScope($scope6_id, {});
|
|
7614
7613
|
return 1;
|
|
7615
7614
|
}
|
|
@@ -7617,14 +7616,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7617
7616
|
_if(() => {
|
|
7618
7617
|
if (localError) {
|
|
7619
7618
|
const $scope5_id = _scope_id();
|
|
7620
|
-
_html(`<p${_attr_class(["
|
|
7619
|
+
_html(`<p${_attr_class(["_ei", "_es"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7621
7620
|
writeScope($scope5_id, {});
|
|
7622
7621
|
return 0;
|
|
7623
7622
|
}
|
|
7624
7623
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7625
7624
|
_for_of(skipped, (s) => {
|
|
7626
7625
|
const $scope3_id = _scope_id();
|
|
7627
|
-
_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>`);
|
|
7628
7627
|
_script($scope3_id, "C3");
|
|
7629
7628
|
writeScope($scope3_id, {
|
|
7630
7629
|
i: s?.org,
|
|
@@ -7665,7 +7664,7 @@ var icon_chevron_right_default = _template("U", (input) => {
|
|
|
7665
7664
|
});
|
|
7666
7665
|
//#endregion
|
|
7667
7666
|
//#region src/tags/icons/icon-search.marko
|
|
7668
|
-
var icon_search_default = _template("
|
|
7667
|
+
var icon_search_default = _template("lb", (input) => {
|
|
7669
7668
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7670
7669
|
const $scope0_id = _scope_id();
|
|
7671
7670
|
_set_serialize_reason({
|
|
@@ -7692,7 +7691,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7692
7691
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7693
7692
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7694
7693
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7695
|
-
_html(`<li${_attr_class("
|
|
7694
|
+
_html(`<li${_attr_class("_cr")}>`);
|
|
7696
7695
|
_if(() => {
|
|
7697
7696
|
if (input.busy != null) {
|
|
7698
7697
|
const $scope1_id = _scope_id();
|
|
@@ -7702,11 +7701,11 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7702
7701
|
} else {
|
|
7703
7702
|
const $scope2_id = _scope_id();
|
|
7704
7703
|
const popId = _id();
|
|
7705
|
-
_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)}`);
|
|
7706
7705
|
_if(() => {
|
|
7707
7706
|
if (input.hint) {
|
|
7708
7707
|
const $scope3_id = _scope_id();
|
|
7709
|
-
_html(`<span${_attr_class("
|
|
7708
|
+
_html(`<span${_attr_class("_cu")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7710
7709
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7711
7710
|
return 0;
|
|
7712
7711
|
}
|
|
@@ -7754,7 +7753,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7754
7753
|
_if(() => {
|
|
7755
7754
|
if (input.actions) {
|
|
7756
7755
|
const $scope8_id = _scope_id();
|
|
7757
|
-
_html(`<div${_attr_class("
|
|
7756
|
+
_html(`<div${_attr_class("_cw")}>`);
|
|
7758
7757
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7759
7758
|
_html("</div>");
|
|
7760
7759
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7813,8 +7812,59 @@ var icon_arrow_up_default = _template("N", (input) => {
|
|
|
7813
7812
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7814
7813
|
});
|
|
7815
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
|
|
7816
7866
|
//#region src/tags/prompt-dialog.css.ts
|
|
7817
|
-
var promptDlg = "
|
|
7867
|
+
var promptDlg = "_eV _eR";
|
|
7818
7868
|
//#endregion
|
|
7819
7869
|
//#region src/tags/dialog-close.marko
|
|
7820
7870
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7838,7 +7888,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7838
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;
|
|
7839
7889
|
const dismissable = input.dismissable !== false;
|
|
7840
7890
|
let open = input.open;
|
|
7841
|
-
_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({
|
|
7842
7892
|
...htmlInput,
|
|
7843
7893
|
open: null
|
|
7844
7894
|
}, {
|
|
@@ -7848,20 +7898,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7848
7898
|
closedby: 1,
|
|
7849
7899
|
"on-cancel": 1,
|
|
7850
7900
|
"on-close": 1
|
|
7851
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7901
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_eT")}>`);
|
|
7852
7902
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7853
7903
|
_html("</div>");
|
|
7854
7904
|
_if(() => {
|
|
7855
7905
|
if (footer) {
|
|
7856
7906
|
const $scope1_id = _scope_id();
|
|
7857
|
-
_html(`<form method=dialog${_attr_class("
|
|
7907
|
+
_html(`<form method=dialog${_attr_class("_eU")}>`);
|
|
7858
7908
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7859
7909
|
_html("</form>");
|
|
7860
7910
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7861
7911
|
return 0;
|
|
7862
7912
|
} else if (input.openChange) {
|
|
7863
7913
|
const $scope2_id = _scope_id();
|
|
7864
|
-
_html(`<form method=dialog${_attr_class("
|
|
7914
|
+
_html(`<form method=dialog${_attr_class("_eU")}>`);
|
|
7865
7915
|
dialog_close_default({
|
|
7866
7916
|
class: ["_q", "_r"],
|
|
7867
7917
|
content: _content("r0", () => {
|
|
@@ -7945,7 +7995,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
7945
7995
|
content: _content("u7", () => {
|
|
7946
7996
|
_scope_reason();
|
|
7947
7997
|
const $scope2_id = _scope_id();
|
|
7948
|
-
_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) => {
|
|
7949
7999
|
value = _new_value;
|
|
7950
8000
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
7951
8001
|
_script($scope2_id, "u5");
|
|
@@ -7997,7 +8047,7 @@ function looksLikeSource(q) {
|
|
|
7997
8047
|
return s.includes("/") && !/\s/.test(s);
|
|
7998
8048
|
}
|
|
7999
8049
|
var settings_page_default = _template("x", (input$3) => {
|
|
8000
|
-
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);
|
|
8001
8051
|
const $scope0_id = _scope_id();
|
|
8002
8052
|
const $setup_missing__closures = /* @__PURE__ */ new Set();
|
|
8003
8053
|
const $refreshing__closures = /* @__PURE__ */ new Set();
|
|
@@ -8467,7 +8517,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8467
8517
|
const githubId = _id();
|
|
8468
8518
|
const backupId = _id();
|
|
8469
8519
|
const machineId = _id();
|
|
8470
|
-
_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)}>`);
|
|
8471
8521
|
_set_serialize_reason({
|
|
8472
8522
|
0: _serialize_guard($scope0_reason, 4),
|
|
8473
8523
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8478,10 +8528,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8478
8528
|
let $meta;
|
|
8479
8529
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x44", () => {
|
|
8480
8530
|
_scope_reason();
|
|
8481
|
-
const $
|
|
8482
|
-
_html(`<span${_attr_class("
|
|
8483
|
-
_subscribe($setup_missing__closures, writeScope($
|
|
8484
|
-
_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);
|
|
8485
8535
|
}, $scope0_id) });
|
|
8486
8536
|
const $childScope2 = _peek_scope_id();
|
|
8487
8537
|
page_head_default({
|
|
@@ -8492,7 +8542,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8492
8542
|
meta: $meta,
|
|
8493
8543
|
actions: attrTag({ content: _content("x45", () => {
|
|
8494
8544
|
_scope_reason();
|
|
8495
|
-
const $
|
|
8545
|
+
const $scope11_id = _scope_id();
|
|
8496
8546
|
_html(`<button${_attr_class(iconBtnRow)} title="Refresh: re-check this machine and agent usage" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
8497
8547
|
_set_serialize_reason(1);
|
|
8498
8548
|
const $childScope = _peek_scope_id();
|
|
@@ -8500,71 +8550,71 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8500
8550
|
size: 14,
|
|
8501
8551
|
class: refreshing && "_F"
|
|
8502
8552
|
});
|
|
8503
|
-
_html(`</button>${_el_resume($
|
|
8504
|
-
_script($
|
|
8505
|
-
_subscribe($refreshing__closures, writeScope($
|
|
8553
|
+
_html(`</button>${_el_resume($scope11_id, "a")}`);
|
|
8554
|
+
_script($scope11_id, "x43");
|
|
8555
|
+
_subscribe($refreshing__closures, writeScope($scope11_id, {
|
|
8506
8556
|
_: _scope_with_id($scope0_id),
|
|
8507
8557
|
b: _existing_scope($childScope)
|
|
8508
8558
|
}));
|
|
8509
|
-
_resume_branch($
|
|
8559
|
+
_resume_branch($scope11_id);
|
|
8510
8560
|
}, $scope0_id) })
|
|
8511
8561
|
});
|
|
8512
8562
|
_if(() => {
|
|
8513
8563
|
if (error) {
|
|
8514
|
-
const $
|
|
8564
|
+
const $scope9_id = _scope_id();
|
|
8515
8565
|
toast_default({
|
|
8516
8566
|
placement: "inline",
|
|
8517
8567
|
onDismiss: _resume(function() {
|
|
8518
8568
|
error = null;
|
|
8519
|
-
}, "x37", $
|
|
8569
|
+
}, "x37", $scope9_id),
|
|
8520
8570
|
content: _content("x46", () => {
|
|
8521
8571
|
_scope_reason();
|
|
8522
|
-
const $
|
|
8523
|
-
_html(_text_resume($
|
|
8524
|
-
_subscribe($error__closures, writeScope($
|
|
8525
|
-
_resume_branch($
|
|
8526
|
-
}, $
|
|
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)
|
|
8527
8577
|
});
|
|
8528
|
-
writeScope($
|
|
8578
|
+
writeScope($scope9_id, {});
|
|
8529
8579
|
return 0;
|
|
8530
8580
|
}
|
|
8531
8581
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
8532
8582
|
_if(() => {
|
|
8533
8583
|
if (selfUpdatePending || selfUpdating) {
|
|
8534
|
-
const $
|
|
8535
|
-
_html(`<div${_attr_class("
|
|
8584
|
+
const $scope44_id = _scope_id();
|
|
8585
|
+
_html(`<div${_attr_class("_dC")} role=status><div${_attr_class("_dD")}>`);
|
|
8536
8586
|
_if(() => {
|
|
8537
8587
|
if (selfUpdating) {
|
|
8538
8588
|
const $scope79_id = _scope_id();
|
|
8539
|
-
_html(`<span${_attr_class("
|
|
8589
|
+
_html(`<span${_attr_class("_dE")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dF")}>The app restarts and reloads when it is done.</span>`);
|
|
8540
8590
|
writeScope($scope79_id, {});
|
|
8541
8591
|
return 0;
|
|
8542
8592
|
} else {
|
|
8543
|
-
const $
|
|
8544
|
-
_html(`<span${_attr_class("
|
|
8545
|
-
_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, {})));
|
|
8546
8596
|
return 1;
|
|
8547
8597
|
}
|
|
8548
|
-
}, $
|
|
8598
|
+
}, $scope44_id, "b", 1, 1, 1, "</div>");
|
|
8549
8599
|
_if(() => {
|
|
8550
8600
|
if (!selfUpdating) {
|
|
8551
|
-
const $
|
|
8552
|
-
_html(`<button${_attr_class(["_q", "_r"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($
|
|
8553
|
-
_script($
|
|
8554
|
-
_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 }));
|
|
8555
8605
|
return 0;
|
|
8556
8606
|
}
|
|
8557
|
-
}, $
|
|
8607
|
+
}, $scope44_id, "c", 1, 1, 1, 0, 1);
|
|
8558
8608
|
_html("</div>");
|
|
8559
|
-
writeScope($
|
|
8609
|
+
writeScope($scope44_id, {});
|
|
8560
8610
|
return 0;
|
|
8561
8611
|
}
|
|
8562
8612
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8563
|
-
_html(`<section${_attr_class("_by")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bz")}><h2${_attr("id", agentsId)}${_attr_class("_bM")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("
|
|
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")}>`);
|
|
8564
8614
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8565
8615
|
setPreferred(v);
|
|
8566
8616
|
}, "x2", $scope0_id), () => {
|
|
8567
|
-
_html(`<select${_attr_class(["_p", "
|
|
8617
|
+
_html(`<select${_attr_class(["_p", "_c3"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8568
8618
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8569
8619
|
const $scope80_id = _scope_id();
|
|
8570
8620
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope80_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope80_id, "a", $sg__input_agents)}`);
|
|
@@ -8578,7 +8628,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8578
8628
|
const rows = lone ? [] : a.instances;
|
|
8579
8629
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8580
8630
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8581
|
-
_html(`<li${_attr_class(["_bD", "
|
|
8631
|
+
_html(`<li${_attr_class(["_bD", "_c1"])}><div${_attr_class(["_c4", { ["_c7"]: lone && !lone.enabled }])}>`);
|
|
8582
8632
|
_set_serialize_reason(12);
|
|
8583
8633
|
const $childScope3 = _peek_scope_id();
|
|
8584
8634
|
icon_agent_default({
|
|
@@ -8597,9 +8647,9 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8597
8647
|
_html("</span>");
|
|
8598
8648
|
_if(() => {
|
|
8599
8649
|
if (active.has(a.id)) {
|
|
8600
|
-
const $
|
|
8601
|
-
_html(`<span${_attr_class("
|
|
8602
|
-
_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, {}));
|
|
8603
8653
|
return 0;
|
|
8604
8654
|
} else if (!a.installed) {
|
|
8605
8655
|
const $scope82_id = _scope_id();
|
|
@@ -8611,10 +8661,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8611
8661
|
_html("</div>");
|
|
8612
8662
|
_if(() => {
|
|
8613
8663
|
if (!a.installed && !active.has(a.id)) {
|
|
8614
|
-
const $
|
|
8615
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
8616
|
-
_script($
|
|
8617
|
-
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, {});
|
|
8618
8668
|
return 0;
|
|
8619
8669
|
}
|
|
8620
8670
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
@@ -8631,15 +8681,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8631
8681
|
_if(() => {
|
|
8632
8682
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8633
8683
|
const $scope2_id = _scope_id();
|
|
8634
|
-
_html(`<ul${_attr_class(["
|
|
8684
|
+
_html(`<ul${_attr_class(["_c9", { ["_c7"]: lone && !lone.enabled }])}>`);
|
|
8635
8685
|
_for_of(rows, (inst) => {
|
|
8636
8686
|
const $scope3_id = _scope_id();
|
|
8637
8687
|
const accounts = accountsFor(inst.id);
|
|
8638
|
-
_html(`<li${_attr_class(["
|
|
8688
|
+
_html(`<li${_attr_class(["_c5", { ["_c7"]: !inst.enabled }])}><div${_attr_class("_c6")}>`);
|
|
8639
8689
|
_set_serialize_reason(12);
|
|
8640
8690
|
const $childScope4 = _peek_scope_id();
|
|
8641
8691
|
icon_agent_default({ agent: inst.id });
|
|
8642
|
-
_html(`<span${_attr_class(["
|
|
8692
|
+
_html(`<span${_attr_class(["_c8", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8643
8693
|
_if(() => {
|
|
8644
8694
|
if (input$3.preferred === inst.id) {
|
|
8645
8695
|
const $scope83_id = _scope_id();
|
|
@@ -8710,7 +8760,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8710
8760
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8711
8761
|
_for_of(otherUsage, (u) => {
|
|
8712
8762
|
const $scope87_id = _scope_id();
|
|
8713
|
-
_html(`<li${_attr_class(["_bD", "
|
|
8763
|
+
_html(`<li${_attr_class(["_bD", "_c1"])}>`);
|
|
8714
8764
|
_set_serialize_reason(6);
|
|
8715
8765
|
const $childScope8 = _peek_scope_id();
|
|
8716
8766
|
usage_meters_default({ agent: u });
|
|
@@ -8725,67 +8775,67 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8725
8775
|
writeScope($scope88_id, {});
|
|
8726
8776
|
return 0;
|
|
8727
8777
|
} else if (usage?.error) {
|
|
8728
|
-
const $
|
|
8729
|
-
_html(`<p${_attr_class("_bJ")}>${_text_resume($
|
|
8730
|
-
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, {});
|
|
8731
8781
|
return 1;
|
|
8732
8782
|
}
|
|
8733
8783
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8734
8784
|
_html(`</section><section${_attr_class("_by")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bz")}><h2${_attr("id", githubId)}${_attr_class("_bM")}>GitHub</h2>`);
|
|
8735
8785
|
_if(() => {
|
|
8736
8786
|
if (setup && !addingHost) {
|
|
8737
|
-
const $
|
|
8738
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8787
|
+
const $scope42_id = _scope_id();
|
|
8788
|
+
_html(`<button${_attr_class([iconBtnRow, "_dh"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8739
8789
|
icon_plus_default({ size: 16 });
|
|
8740
|
-
_html(`</button>${_el_resume($
|
|
8741
|
-
_script($
|
|
8742
|
-
writeScope($
|
|
8790
|
+
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8791
|
+
_script($scope42_id, "x51");
|
|
8792
|
+
writeScope($scope42_id, {});
|
|
8743
8793
|
return 0;
|
|
8744
8794
|
}
|
|
8745
8795
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
8746
8796
|
_if(() => {
|
|
8747
8797
|
if (setup) {
|
|
8748
|
-
const $
|
|
8798
|
+
const $scope41_id = _scope_id();
|
|
8749
8799
|
_html(`<form${_attr_class([
|
|
8750
|
-
"
|
|
8751
|
-
"
|
|
8752
|
-
{ ["
|
|
8753
|
-
])}><label${_attr_class(["_1", "
|
|
8800
|
+
"_ch",
|
|
8801
|
+
"_dh",
|
|
8802
|
+
{ ["_ci"]: !addingHost }
|
|
8803
|
+
])}><label${_attr_class(["_1", "_cj"])}>`);
|
|
8754
8804
|
icon_github_default({
|
|
8755
8805
|
size: 14,
|
|
8756
8806
|
class: "_2"
|
|
8757
8807
|
});
|
|
8758
|
-
_html(`<input${_attr_input_value($
|
|
8808
|
+
_html(`<input${_attr_input_value($scope41_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
8759
8809
|
hostInput = _new_hostInput;
|
|
8760
|
-
}, "x3", $
|
|
8810
|
+
}, "x3", $scope41_id))}${_attr_class([
|
|
8761
8811
|
"_Z",
|
|
8762
8812
|
"_3",
|
|
8763
|
-
"
|
|
8764
|
-
])} 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([
|
|
8765
8815
|
btnSm,
|
|
8766
8816
|
"_r",
|
|
8767
|
-
"
|
|
8768
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($
|
|
8817
|
+
"_dg"
|
|
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)}>`);
|
|
8769
8819
|
icon_xmark_default({ size: 12 });
|
|
8770
|
-
_html(`</button>${_el_resume($
|
|
8771
|
-
_script($
|
|
8772
|
-
writeScope($
|
|
8820
|
+
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8821
|
+
_script($scope41_id, "x52");
|
|
8822
|
+
writeScope($scope41_id, {});
|
|
8773
8823
|
return 0;
|
|
8774
8824
|
}
|
|
8775
8825
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8776
|
-
_html(`</div><div${_attr_class(["_bD", "
|
|
8826
|
+
_html(`</div><div${_attr_class(["_bD", "_cG"])}>`);
|
|
8777
8827
|
_for_of(setup?.github || [], (h) => {
|
|
8778
|
-
const $
|
|
8779
|
-
const $
|
|
8828
|
+
const $scope6_id = _scope_id();
|
|
8829
|
+
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8780
8830
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8781
8831
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8782
8832
|
const busy = active.has(h.host);
|
|
8783
|
-
_html(`<div${_attr_class(["
|
|
8833
|
+
_html(`<div${_attr_class(["_cH", "_di"])}><div${_attr_class("_dj")}>`);
|
|
8784
8834
|
icon_github_default({
|
|
8785
8835
|
size: 18,
|
|
8786
|
-
class: "
|
|
8836
|
+
class: "_dk"
|
|
8787
8837
|
});
|
|
8788
|
-
_html(`<div${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($
|
|
8838
|
+
_html(`<div${_attr_class("_bE")}><span${_attr_class("_bG")}><span${_attr_class("_bF")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8789
8839
|
_if(() => {
|
|
8790
8840
|
if (h.isEnterprise) {
|
|
8791
8841
|
const $scope91_id = _scope_id();
|
|
@@ -8793,30 +8843,30 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8793
8843
|
writeScope($scope91_id, {});
|
|
8794
8844
|
return 0;
|
|
8795
8845
|
}
|
|
8796
|
-
}, $
|
|
8846
|
+
}, $scope6_id, "h", 1, 1, 1, 0, 1);
|
|
8797
8847
|
_html("</span>");
|
|
8798
8848
|
_if(() => {
|
|
8799
8849
|
if (busy) {
|
|
8800
|
-
const $
|
|
8801
|
-
_html(`<span${_attr_class(["_bH", "
|
|
8802
|
-
_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 })));
|
|
8803
8853
|
return 0;
|
|
8804
8854
|
} else if (h.authed) {
|
|
8805
8855
|
const $scope89_id = _scope_id();
|
|
8806
|
-
_html(`<span${_attr_class(["_bH", "
|
|
8856
|
+
_html(`<span${_attr_class(["_bH", "_dl"])}>`);
|
|
8807
8857
|
icon_check_default({
|
|
8808
8858
|
size: 12,
|
|
8809
|
-
class: "
|
|
8859
|
+
class: "_dm"
|
|
8810
8860
|
});
|
|
8811
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8861
|
+
_html(` Signed in as <strong${_attr_class("_do")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8812
8862
|
writeScope($scope89_id, {});
|
|
8813
8863
|
return 1;
|
|
8814
8864
|
} else if (h.error) {
|
|
8815
8865
|
const $scope90_id = _scope_id();
|
|
8816
8866
|
_html(`<span${_attr_class([
|
|
8817
8867
|
"_bH",
|
|
8818
|
-
"
|
|
8819
|
-
"
|
|
8868
|
+
"_dl",
|
|
8869
|
+
"_dn"
|
|
8820
8870
|
])}>`);
|
|
8821
8871
|
icon_warning_default({ size: 12 });
|
|
8822
8872
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8824,36 +8874,36 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8824
8874
|
return 2;
|
|
8825
8875
|
} else {
|
|
8826
8876
|
const $scope92_id = _scope_id();
|
|
8827
|
-
_html(`<span${_attr_class(["_bH", "
|
|
8877
|
+
_html(`<span${_attr_class(["_bH", "_dl"])}>Not signed in</span>`);
|
|
8828
8878
|
writeScope($scope92_id, {});
|
|
8829
8879
|
return 3;
|
|
8830
8880
|
}
|
|
8831
|
-
}, $
|
|
8881
|
+
}, $scope6_id, "i", 1, 1, 1, 0, 1);
|
|
8832
8882
|
_html("</div>");
|
|
8833
8883
|
_if(() => {
|
|
8834
8884
|
if (!busy) {
|
|
8835
|
-
const $
|
|
8885
|
+
const $scope31_id = _scope_id();
|
|
8836
8886
|
_if(() => {
|
|
8837
8887
|
if (!h.authed) {
|
|
8838
|
-
const $
|
|
8839
|
-
_html(`<button${_attr_class([btnSm, "_r"])}>Sign in</button>${_el_resume($
|
|
8840
|
-
_script($
|
|
8841
|
-
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, {});
|
|
8842
8892
|
return 0;
|
|
8843
8893
|
} else {
|
|
8844
|
-
const $
|
|
8894
|
+
const $scope32_id = _scope_id();
|
|
8845
8895
|
_html(`<button${_attr_class([btnSm, {
|
|
8846
8896
|
["_t"]: confirmingRemove === `out:${h.host}`,
|
|
8847
8897
|
["_s"]: confirmingRemove === `out:${h.host}`
|
|
8848
|
-
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${_text_resume($
|
|
8849
|
-
_script($
|
|
8850
|
-
_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, {})));
|
|
8851
8901
|
return 1;
|
|
8852
8902
|
}
|
|
8853
|
-
}, $
|
|
8903
|
+
}, $scope31_id, "a", 1, 1, 1, 0, 1);
|
|
8854
8904
|
_if(() => {
|
|
8855
8905
|
if (h.isEnterprise) {
|
|
8856
|
-
const $
|
|
8906
|
+
const $scope33_id = _scope_id();
|
|
8857
8907
|
_html(`<button${_attr_class([
|
|
8858
8908
|
"_bI",
|
|
8859
8909
|
"_8",
|
|
@@ -8872,54 +8922,54 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8872
8922
|
writeScope($scope94_id, {});
|
|
8873
8923
|
return 1;
|
|
8874
8924
|
}
|
|
8875
|
-
}, $
|
|
8876
|
-
_script($
|
|
8877
|
-
_subscribe($
|
|
8878
|
-
|
|
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,
|
|
8879
8929
|
Ca4: 1
|
|
8880
8930
|
})));
|
|
8881
8931
|
return 0;
|
|
8882
8932
|
}
|
|
8883
|
-
}, $
|
|
8884
|
-
writeScope($
|
|
8933
|
+
}, $scope31_id, "b", 1, 1, 1, 0, 1);
|
|
8934
|
+
writeScope($scope31_id, {});
|
|
8885
8935
|
return 0;
|
|
8886
8936
|
}
|
|
8887
|
-
}, $
|
|
8937
|
+
}, $scope6_id, "j");
|
|
8888
8938
|
_html("</div>");
|
|
8889
8939
|
_if(() => {
|
|
8890
8940
|
if (busy && authCodes.has(h.host)) {
|
|
8891
|
-
const $
|
|
8892
|
-
_html(`<div${_attr_class("
|
|
8893
|
-
_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 }));
|
|
8894
8944
|
return 0;
|
|
8895
8945
|
}
|
|
8896
|
-
}, $
|
|
8946
|
+
}, $scope6_id, "k", 1, 1, 1, 0, 1);
|
|
8897
8947
|
_html("</div>");
|
|
8898
8948
|
_if(() => {
|
|
8899
8949
|
if (hostSso$1.length || skippedSso.length) {
|
|
8900
|
-
const $
|
|
8950
|
+
const $scope7_id = _scope_id();
|
|
8901
8951
|
_set_serialize_reason(30);
|
|
8902
8952
|
const $childScope9 = _peek_scope_id();
|
|
8903
8953
|
sso_auth_default({
|
|
8904
|
-
class: ["
|
|
8954
|
+
class: ["_cH", "_dt"],
|
|
8905
8955
|
items: hostSso$1,
|
|
8906
8956
|
skipped: skippedSso,
|
|
8907
8957
|
busy,
|
|
8908
8958
|
onChange: _resume(function() {
|
|
8909
8959
|
readIgnoredSso();
|
|
8910
|
-
}, "x38", $
|
|
8960
|
+
}, "x38", $scope7_id),
|
|
8911
8961
|
onAuthorize: _resume(function() {
|
|
8912
8962
|
run(h.host, "auth-refresh");
|
|
8913
|
-
}, "x39", $
|
|
8963
|
+
}, "x39", $scope7_id),
|
|
8914
8964
|
onDone: _resume(function() {
|
|
8915
8965
|
refresh();
|
|
8916
|
-
}, "x40", $
|
|
8966
|
+
}, "x40", $scope7_id)
|
|
8917
8967
|
});
|
|
8918
|
-
_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) })));
|
|
8919
8969
|
return 0;
|
|
8920
8970
|
}
|
|
8921
|
-
}, $
|
|
8922
|
-
writeScope($
|
|
8971
|
+
}, $scope6_id, "l", 1, 1, 1, 0, 1);
|
|
8972
|
+
writeScope($scope6_id, {
|
|
8923
8973
|
o: h?.sso,
|
|
8924
8974
|
q: h?.host,
|
|
8925
8975
|
s: h?.isEnterprise,
|
|
@@ -8929,7 +8979,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8929
8979
|
w: hostSso$1,
|
|
8930
8980
|
y: skippedSso,
|
|
8931
8981
|
a1: busy,
|
|
8932
|
-
a4: $
|
|
8982
|
+
a4: $for_content3__h_host__closures
|
|
8933
8983
|
});
|
|
8934
8984
|
}, "host", $scope0_id, "x", 1, 1, 1, "</div>");
|
|
8935
8985
|
_if(() => {
|
|
@@ -8940,38 +8990,38 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8940
8990
|
return 0;
|
|
8941
8991
|
}
|
|
8942
8992
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8943
|
-
_html(`</section><section${_attr_class("_by")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bz")}><h2${_attr("id", machineId)}${_attr_class("_bM")}>Machine</h2></div><div${_attr_class(["_bD", "
|
|
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>`);
|
|
8944
8994
|
_set_serialize_reason(1);
|
|
8945
8995
|
const $childScope10 = _peek_scope_id();
|
|
8946
8996
|
icon_chevron_right_default({
|
|
8947
8997
|
size: 12,
|
|
8948
|
-
class: ["
|
|
8998
|
+
class: ["_cS", { ["_cT"]: skillsOpen }]
|
|
8949
8999
|
});
|
|
8950
|
-
_html(`<span${_attr_class("
|
|
9000
|
+
_html(`<span${_attr_class("_cP")}>Skills</span>`);
|
|
8951
9001
|
_if(() => {
|
|
8952
9002
|
if (skills?.global.length) {
|
|
8953
|
-
const $
|
|
8954
|
-
_html(`<span${_attr_class("
|
|
8955
|
-
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, {});
|
|
8956
9006
|
return 0;
|
|
8957
9007
|
}
|
|
8958
9008
|
}, $scope0_id, "a8", 1, 1, 1, 0, 1);
|
|
8959
9009
|
_html(`</button>${_el_resume($scope0_id, "a5")}`);
|
|
8960
9010
|
_if(() => {
|
|
8961
9011
|
if (skills?.available && skills.agents.length && true) {
|
|
8962
|
-
const $
|
|
9012
|
+
const $scope55_id = _scope_id();
|
|
8963
9013
|
_html(`<button${_attr_class(iconBtnRow)} title="Add skill" aria-label="Add skill">`);
|
|
8964
9014
|
icon_plus_default({ size: 16 });
|
|
8965
|
-
_html(`</button>${_el_resume($
|
|
8966
|
-
_script($
|
|
8967
|
-
writeScope($
|
|
9015
|
+
_html(`</button>${_el_resume($scope55_id, "a")}`);
|
|
9016
|
+
_script($scope55_id, "x56");
|
|
9017
|
+
writeScope($scope55_id, {});
|
|
8968
9018
|
return 0;
|
|
8969
9019
|
}
|
|
8970
9020
|
}, $scope0_id, "a9", 1, 1, 1, 0, 1);
|
|
8971
9021
|
_if(() => {
|
|
8972
9022
|
if (skills?.available && skills.agents.length) {
|
|
8973
|
-
const $
|
|
8974
|
-
_html(`<div${_attr_class(["
|
|
9023
|
+
const $scope14_id = _scope_id();
|
|
9024
|
+
_html(`<div${_attr_class(["_ch", { ["_ci"]: true }])}><label${_attr_class(["_1", "_cj"])}>`);
|
|
8975
9025
|
_if(() => {
|
|
8976
9026
|
if (skillSearching) {
|
|
8977
9027
|
const $scope96_id = _scope_id();
|
|
@@ -8987,33 +9037,33 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8987
9037
|
writeScope($scope97_id, {});
|
|
8988
9038
|
return 1;
|
|
8989
9039
|
}
|
|
8990
|
-
}, $
|
|
8991
|
-
_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([
|
|
8992
9042
|
"_Z",
|
|
8993
9043
|
"_3",
|
|
8994
|
-
"
|
|
8995
|
-
])} 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">`);
|
|
8996
9046
|
icon_xmark_default({ size: 12 });
|
|
8997
|
-
_html(`</button>${_el_resume($
|
|
9047
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_cn"])}${_attr("hidden", true)}>`);
|
|
8998
9048
|
_if(() => {
|
|
8999
9049
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9000
9050
|
const $scope98_id = _scope_id();
|
|
9001
|
-
_html(`<li${_attr_class("
|
|
9051
|
+
_html(`<li${_attr_class("_co")}>Searching skills.sh…</li>`);
|
|
9002
9052
|
writeScope($scope98_id, {});
|
|
9003
9053
|
return 0;
|
|
9004
9054
|
}
|
|
9005
|
-
}, $
|
|
9055
|
+
}, $scope14_id, "h", 1, 1, 1, 0, 1);
|
|
9006
9056
|
_if(() => {
|
|
9007
9057
|
if (looksLikeSource(skillQuery)) {
|
|
9008
|
-
const $
|
|
9009
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_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>`);
|
|
9010
9060
|
_if(() => {
|
|
9011
9061
|
if (active.has(skillQuery.trim())) {
|
|
9012
|
-
const $
|
|
9013
|
-
_html(`<span${_attr_class("
|
|
9014
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($
|
|
9015
|
-
|
|
9016
|
-
|
|
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
|
|
9017
9067
|
})));
|
|
9018
9068
|
return 0;
|
|
9019
9069
|
} else {
|
|
@@ -9022,31 +9072,31 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9022
9072
|
writeScope($scope99_id, {});
|
|
9023
9073
|
return 1;
|
|
9024
9074
|
}
|
|
9025
|
-
}, $
|
|
9075
|
+
}, $scope15_id, "e", 1, 1, 1, 0, 1);
|
|
9026
9076
|
_html("</div>");
|
|
9027
9077
|
_if(() => {
|
|
9028
9078
|
if (!active.has(skillQuery.trim())) {
|
|
9029
|
-
const $
|
|
9030
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9031
|
-
_script($
|
|
9032
|
-
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, {});
|
|
9033
9083
|
return 0;
|
|
9034
9084
|
}
|
|
9035
|
-
}, $
|
|
9085
|
+
}, $scope15_id, "f", 1, 1, 1, 0, 1);
|
|
9036
9086
|
_html("</li>");
|
|
9037
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($
|
|
9087
|
+
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope15_id, { Ch2: 2 })));
|
|
9038
9088
|
return 0;
|
|
9039
9089
|
}
|
|
9040
|
-
}, $
|
|
9090
|
+
}, $scope14_id, "i", 1, 1, 1, 0, 1);
|
|
9041
9091
|
_for_of(skillHits || [], (h) => {
|
|
9042
|
-
const $
|
|
9043
|
-
const $
|
|
9044
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_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>`);
|
|
9045
9095
|
_if(() => {
|
|
9046
9096
|
if (active.has(h.skillId)) {
|
|
9047
|
-
const $
|
|
9048
|
-
_html(`<span${_attr_class("
|
|
9049
|
-
_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 }));
|
|
9050
9100
|
return 0;
|
|
9051
9101
|
} else {
|
|
9052
9102
|
const $scope100_id = _scope_id();
|
|
@@ -9054,19 +9104,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9054
9104
|
writeScope($scope100_id, {});
|
|
9055
9105
|
return 1;
|
|
9056
9106
|
}
|
|
9057
|
-
}, $
|
|
9107
|
+
}, $scope17_id, "e", 1, 1, 1, 0, 1);
|
|
9058
9108
|
_html("</div>");
|
|
9059
9109
|
_if(() => {
|
|
9060
9110
|
if (!active.has(h.skillId)) {
|
|
9061
|
-
const $
|
|
9111
|
+
const $scope62_id = _scope_id();
|
|
9062
9112
|
_if(() => {
|
|
9063
9113
|
if (h.installs) {
|
|
9064
9114
|
const $scope101_id = _scope_id();
|
|
9065
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")}`);
|
|
9066
|
-
_subscribe($
|
|
9116
|
+
_subscribe($for_content4__h_installs__closures, writeScope($scope101_id, {}));
|
|
9067
9117
|
return 0;
|
|
9068
9118
|
}
|
|
9069
|
-
}, $
|
|
9119
|
+
}, $scope62_id, "a", 1, 1, 1, 0, 1);
|
|
9070
9120
|
_if(() => {
|
|
9071
9121
|
if (h.installed) {
|
|
9072
9122
|
const $scope102_id = _scope_id();
|
|
@@ -9074,46 +9124,46 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9074
9124
|
writeScope($scope102_id, {});
|
|
9075
9125
|
return 0;
|
|
9076
9126
|
} else {
|
|
9077
|
-
const $
|
|
9078
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9079
|
-
_script($
|
|
9080
|
-
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, {});
|
|
9081
9131
|
return 1;
|
|
9082
9132
|
}
|
|
9083
|
-
}, $
|
|
9084
|
-
writeScope($
|
|
9133
|
+
}, $scope62_id, "b", 1, 1, 1, 0, 1);
|
|
9134
|
+
writeScope($scope62_id, {});
|
|
9085
9135
|
return 0;
|
|
9086
9136
|
}
|
|
9087
|
-
}, $
|
|
9137
|
+
}, $scope17_id, "f");
|
|
9088
9138
|
_html("</li>");
|
|
9089
|
-
_subscribe($active__closures, writeScope($
|
|
9139
|
+
_subscribe($active__closures, writeScope($scope17_id, {
|
|
9090
9140
|
j: h?.skillId,
|
|
9091
9141
|
l: h?.source,
|
|
9092
9142
|
m: h?.installs,
|
|
9093
9143
|
n: h?.installed,
|
|
9094
|
-
q: $
|
|
9095
|
-
|
|
9144
|
+
q: $for_content4__h_installs__closures,
|
|
9145
|
+
Ch2: 4
|
|
9096
9146
|
}));
|
|
9097
|
-
}, "skillId", $
|
|
9147
|
+
}, "skillId", $scope14_id, "j", 1, 1, 1, 0, 1);
|
|
9098
9148
|
_if(() => {
|
|
9099
9149
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9100
|
-
const $
|
|
9101
|
-
_html(`<li${_attr_class("
|
|
9102
|
-
_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 }));
|
|
9103
9153
|
return 0;
|
|
9104
9154
|
}
|
|
9105
|
-
}, $
|
|
9106
|
-
_html(`</ul>${_el_resume($
|
|
9107
|
-
_script($
|
|
9108
|
-
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, {});
|
|
9109
9159
|
return 0;
|
|
9110
9160
|
}
|
|
9111
9161
|
}, $scope0_id, "aa", 1, 1, 1, 0, 1);
|
|
9112
9162
|
_html(`</div>${_el_resume($scope0_id, "a4")}`);
|
|
9113
9163
|
_if(() => {
|
|
9114
9164
|
{
|
|
9115
|
-
const $
|
|
9116
|
-
_html(`<div${_attr_class("
|
|
9165
|
+
const $scope19_id = _scope_id();
|
|
9166
|
+
_html(`<div${_attr_class("_cR")}>`);
|
|
9117
9167
|
_if(() => {
|
|
9118
9168
|
if (skills && !skills.agents.length) {
|
|
9119
9169
|
const $scope103_id = _scope_id();
|
|
@@ -9121,19 +9171,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9121
9171
|
writeScope($scope103_id, {});
|
|
9122
9172
|
return 0;
|
|
9123
9173
|
} else if (skills && !skills.available) {
|
|
9124
|
-
const $
|
|
9125
|
-
_html(`<p${_attr_class("_bJ")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($
|
|
9126
|
-
_script($
|
|
9127
|
-
_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 }));
|
|
9128
9178
|
return 1;
|
|
9129
9179
|
}
|
|
9130
|
-
}, $
|
|
9131
|
-
_html(`<ul${_attr_class("
|
|
9180
|
+
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9181
|
+
_html(`<ul${_attr_class("_cq")}>`);
|
|
9132
9182
|
_for_of(skills?.global || [], (s) => {
|
|
9133
|
-
const $
|
|
9134
|
-
const $
|
|
9135
|
-
const $
|
|
9136
|
-
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();
|
|
9137
9187
|
_set_serialize_reason(8323070);
|
|
9138
9188
|
let $tags;
|
|
9139
9189
|
let $actions;
|
|
@@ -9142,19 +9192,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9142
9192
|
_scope_reason();
|
|
9143
9193
|
const $scope104_id = _scope_id();
|
|
9144
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")}`);
|
|
9145
|
-
_subscribe($
|
|
9195
|
+
_subscribe($for_content5__s_agents__closures, writeScope($scope104_id, { _: _scope_with_id($scope21_id) }));
|
|
9146
9196
|
_resume_branch($scope104_id);
|
|
9147
|
-
}, $
|
|
9197
|
+
}, $scope21_id) });
|
|
9148
9198
|
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("x64", () => {
|
|
9149
9199
|
_scope_reason();
|
|
9150
|
-
const $
|
|
9151
|
-
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($
|
|
9152
|
-
_script($
|
|
9153
|
-
writeScope($
|
|
9154
|
-
}, $
|
|
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) });
|
|
9155
9205
|
if (skills?.available) $trailing = attrTag({ content: _content_resume("x65", () => {
|
|
9156
9206
|
_scope_reason();
|
|
9157
|
-
const $
|
|
9207
|
+
const $scope54_id = _scope_id();
|
|
9158
9208
|
_html(`<button${_attr_class([
|
|
9159
9209
|
chipBtn,
|
|
9160
9210
|
"_8",
|
|
@@ -9173,11 +9223,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9173
9223
|
writeScope($scope107_id, {});
|
|
9174
9224
|
return 1;
|
|
9175
9225
|
}
|
|
9176
|
-
}, $
|
|
9177
|
-
_script($
|
|
9178
|
-
_subscribe($
|
|
9179
|
-
_resume_branch($
|
|
9180
|
-
}, $
|
|
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) });
|
|
9181
9231
|
const $childScope11 = _peek_scope_id();
|
|
9182
9232
|
skill_chip_default({
|
|
9183
9233
|
name: s.name,
|
|
@@ -9190,17 +9240,17 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9190
9240
|
actions: $actions,
|
|
9191
9241
|
trailing: $trailing
|
|
9192
9242
|
});
|
|
9193
|
-
_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, {
|
|
9194
9244
|
d: s?.name,
|
|
9195
9245
|
i: s?.id,
|
|
9196
9246
|
k: s?.agents,
|
|
9197
|
-
p: $
|
|
9198
|
-
n: $
|
|
9199
|
-
o: $
|
|
9247
|
+
p: $for_content5__s_agents__closures,
|
|
9248
|
+
n: $for_content5__s_name__closures,
|
|
9249
|
+
o: $for_content5__s_id__closures,
|
|
9200
9250
|
a: _existing_scope($childScope11),
|
|
9201
|
-
|
|
9251
|
+
Ch2: 7
|
|
9202
9252
|
}))));
|
|
9203
|
-
}, "id", $
|
|
9253
|
+
}, "id", $scope19_id, "c", 1, 1, 1, "</ul>", 1);
|
|
9204
9254
|
_if(() => {
|
|
9205
9255
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9206
9256
|
const $scope108_id = _scope_id();
|
|
@@ -9208,53 +9258,53 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9208
9258
|
writeScope($scope108_id, {});
|
|
9209
9259
|
return 0;
|
|
9210
9260
|
}
|
|
9211
|
-
}, $
|
|
9261
|
+
}, $scope19_id, "d", 1, 1, 1, 0, 1);
|
|
9212
9262
|
_html("</div>");
|
|
9213
|
-
writeScope($
|
|
9263
|
+
writeScope($scope19_id, {});
|
|
9214
9264
|
return 0;
|
|
9215
9265
|
}
|
|
9216
9266
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9217
|
-
_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"}>`);
|
|
9218
9268
|
_set_serialize_reason(1);
|
|
9219
9269
|
const $childScope12 = _peek_scope_id();
|
|
9220
9270
|
icon_chevron_right_default({
|
|
9221
9271
|
size: 12,
|
|
9222
|
-
class: ["
|
|
9272
|
+
class: ["_cS", { ["_cT"]: machineOpen }]
|
|
9223
9273
|
});
|
|
9224
|
-
_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")}`);
|
|
9225
9275
|
_if(() => {
|
|
9226
9276
|
if (outdatedIds.length > 1) {
|
|
9227
|
-
const $
|
|
9228
|
-
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($
|
|
9229
|
-
_script($
|
|
9230
|
-
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, {});
|
|
9231
9281
|
return 0;
|
|
9232
9282
|
}
|
|
9233
9283
|
}, $scope0_id, "al", 1, 1, 1, 0, 1);
|
|
9234
9284
|
_if(() => {
|
|
9235
9285
|
if (missingInstallable.length > 1) {
|
|
9236
|
-
const $
|
|
9237
|
-
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($
|
|
9238
|
-
_script($
|
|
9239
|
-
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, {});
|
|
9240
9290
|
return 0;
|
|
9241
9291
|
}
|
|
9242
9292
|
}, $scope0_id, "am", 1, 1, 1, 0, 1);
|
|
9243
9293
|
_if(() => {
|
|
9244
9294
|
if (setup && setup.mise.installed && true) {
|
|
9245
|
-
const $
|
|
9295
|
+
const $scope56_id = _scope_id();
|
|
9246
9296
|
_html(`<button${_attr_class(iconBtnRow)} title="Add tool" aria-label="Add tool">`);
|
|
9247
9297
|
icon_plus_default({ size: 16 });
|
|
9248
|
-
_html(`</button>${_el_resume($
|
|
9249
|
-
_script($
|
|
9250
|
-
writeScope($
|
|
9298
|
+
_html(`</button>${_el_resume($scope56_id, "a")}`);
|
|
9299
|
+
_script($scope56_id, "x68");
|
|
9300
|
+
writeScope($scope56_id, {});
|
|
9251
9301
|
return 0;
|
|
9252
9302
|
}
|
|
9253
9303
|
}, $scope0_id, "an", 1, 1, 1, 0, 1);
|
|
9254
9304
|
_if(() => {
|
|
9255
9305
|
if (setup && setup.mise.installed) {
|
|
9256
|
-
const $
|
|
9257
|
-
_html(`<div${_attr_class(["
|
|
9306
|
+
const $scope24_id = _scope_id();
|
|
9307
|
+
_html(`<div${_attr_class(["_ch", { ["_ci"]: true }])}><label${_attr_class(["_1", "_cj"])}>`);
|
|
9258
9308
|
_if(() => {
|
|
9259
9309
|
if (searching) {
|
|
9260
9310
|
const $scope109_id = _scope_id();
|
|
@@ -9270,38 +9320,38 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9270
9320
|
writeScope($scope110_id, {});
|
|
9271
9321
|
return 1;
|
|
9272
9322
|
}
|
|
9273
|
-
}, $
|
|
9274
|
-
_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([
|
|
9275
9325
|
"_Z",
|
|
9276
9326
|
"_3",
|
|
9277
|
-
"
|
|
9278
|
-
])} 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">`);
|
|
9279
9329
|
icon_xmark_default({ size: 12 });
|
|
9280
|
-
_html(`</button>${_el_resume($
|
|
9330
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_cn"])}${_attr("hidden", true)}>`);
|
|
9281
9331
|
_if(() => {
|
|
9282
9332
|
if (searching && !hits?.length) {
|
|
9283
9333
|
const $scope111_id = _scope_id();
|
|
9284
|
-
_html(`<li${_attr_class("
|
|
9334
|
+
_html(`<li${_attr_class("_co")}>Searching the mise registry…</li>`);
|
|
9285
9335
|
writeScope($scope111_id, {});
|
|
9286
9336
|
return 0;
|
|
9287
9337
|
}
|
|
9288
|
-
}, $
|
|
9338
|
+
}, $scope24_id, "h", 1, 1, 1, 0, 1);
|
|
9289
9339
|
_if(() => {
|
|
9290
9340
|
if (hits && !hits.length && !searching) {
|
|
9291
|
-
const $
|
|
9292
|
-
_html(`<li${_attr_class("
|
|
9293
|
-
_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, {}));
|
|
9294
9344
|
return 0;
|
|
9295
9345
|
}
|
|
9296
|
-
}, $
|
|
9346
|
+
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9297
9347
|
_for_of(hits || [], (h) => {
|
|
9298
|
-
const $
|
|
9299
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bE")}><span${_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>`);
|
|
9300
9350
|
_if(() => {
|
|
9301
9351
|
if (active.has(h.name)) {
|
|
9302
|
-
const $
|
|
9303
|
-
_html(`<span${_attr_class("
|
|
9304
|
-
_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 }));
|
|
9305
9355
|
return 0;
|
|
9306
9356
|
} else if (h.description) {
|
|
9307
9357
|
const $scope112_id = _scope_id();
|
|
@@ -9309,11 +9359,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9309
9359
|
writeScope($scope112_id, {});
|
|
9310
9360
|
return 1;
|
|
9311
9361
|
}
|
|
9312
|
-
}, $
|
|
9362
|
+
}, $scope25_id, "e", 1, 1, 1, 0, 1);
|
|
9313
9363
|
_html("</div>");
|
|
9314
9364
|
_if(() => {
|
|
9315
9365
|
if (!active.has(h.name)) {
|
|
9316
|
-
const $
|
|
9366
|
+
const $scope37_id = _scope_id();
|
|
9317
9367
|
_if(() => {
|
|
9318
9368
|
if (h.installed) {
|
|
9319
9369
|
const $scope113_id = _scope_id();
|
|
@@ -9321,59 +9371,59 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9321
9371
|
writeScope($scope113_id, {});
|
|
9322
9372
|
return 0;
|
|
9323
9373
|
} else {
|
|
9324
|
-
const $
|
|
9325
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9326
|
-
_script($
|
|
9327
|
-
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, {});
|
|
9328
9378
|
return 1;
|
|
9329
9379
|
}
|
|
9330
|
-
}, $
|
|
9331
|
-
writeScope($
|
|
9380
|
+
}, $scope37_id, "a");
|
|
9381
|
+
writeScope($scope37_id, {});
|
|
9332
9382
|
return 0;
|
|
9333
9383
|
}
|
|
9334
|
-
}, $
|
|
9384
|
+
}, $scope25_id, "f");
|
|
9335
9385
|
_html("</li>");
|
|
9336
|
-
_subscribe($active__closures, writeScope($
|
|
9386
|
+
_subscribe($active__closures, writeScope($scope25_id, {
|
|
9337
9387
|
i: h?.name,
|
|
9338
9388
|
k: h?.description,
|
|
9339
9389
|
m: h?.installed,
|
|
9340
|
-
|
|
9390
|
+
Ch2: 8
|
|
9341
9391
|
}));
|
|
9342
|
-
}, "name", $
|
|
9343
|
-
_html(`</ul>${_el_resume($
|
|
9344
|
-
_script($
|
|
9345
|
-
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, {});
|
|
9346
9396
|
return 0;
|
|
9347
9397
|
}
|
|
9348
9398
|
}, $scope0_id, "ao", 1, 1, 1, 0, 1);
|
|
9349
9399
|
_html(`</div>${_el_resume($scope0_id, "ad")}`);
|
|
9350
9400
|
_if(() => {
|
|
9351
9401
|
if (machineOpen) {
|
|
9352
|
-
const $
|
|
9353
|
-
_html(`<div${_attr_class("
|
|
9402
|
+
const $scope5_id = _scope_id();
|
|
9403
|
+
_html(`<div${_attr_class("_cR")}>`);
|
|
9354
9404
|
_if(() => {
|
|
9355
9405
|
if (setup && !setup.mise.installed) {
|
|
9356
|
-
const $
|
|
9357
|
-
_html(`<p${_attr_class("_bJ")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($
|
|
9358
|
-
_script($
|
|
9359
|
-
_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 }));
|
|
9360
9410
|
return 0;
|
|
9361
9411
|
}
|
|
9362
|
-
}, $
|
|
9412
|
+
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
9363
9413
|
_html(`<ul${_attr_class(toolGrid)}>`);
|
|
9364
9414
|
_if(() => {
|
|
9365
9415
|
if (self) {
|
|
9366
|
-
const $
|
|
9367
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9416
|
+
const $scope47_id = _scope_id();
|
|
9417
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dc", "_y"])}>work</span>`);
|
|
9368
9418
|
_if(() => {
|
|
9369
9419
|
if (selfUpdating) {
|
|
9370
9420
|
const $scope114_id = _scope_id();
|
|
9371
|
-
_html(`<span${_attr_class("
|
|
9421
|
+
_html(`<span${_attr_class("_cY")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9372
9422
|
writeScope($scope114_id, {});
|
|
9373
9423
|
return 0;
|
|
9374
9424
|
} else {
|
|
9375
|
-
const $
|
|
9376
|
-
_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>`);
|
|
9377
9427
|
_if(() => {
|
|
9378
9428
|
if (self.install === "source") {
|
|
9379
9429
|
const $scope115_id = _scope_id();
|
|
@@ -9381,12 +9431,12 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9381
9431
|
writeScope($scope115_id, {});
|
|
9382
9432
|
return 0;
|
|
9383
9433
|
} else if (self.latest && self.latest !== self.version) {
|
|
9384
|
-
const $
|
|
9385
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9434
|
+
const $scope49_id = _scope_id();
|
|
9435
|
+
_html(`<button${_attr_class([btnSm, "_df"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9386
9436
|
icon_arrow_up_default({ size: 12 });
|
|
9387
|
-
_html(` ${_text_resume($
|
|
9388
|
-
_script($
|
|
9389
|
-
_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 }));
|
|
9390
9440
|
return 1;
|
|
9391
9441
|
} else if (self.latest) {
|
|
9392
9442
|
const $scope116_id = _scope_id();
|
|
@@ -9394,14 +9444,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9394
9444
|
writeScope($scope116_id, {});
|
|
9395
9445
|
return 2;
|
|
9396
9446
|
}
|
|
9397
|
-
}, $
|
|
9398
|
-
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($
|
|
9399
|
-
|
|
9400
|
-
|
|
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
|
|
9401
9451
|
}))));
|
|
9402
9452
|
return 1;
|
|
9403
9453
|
}
|
|
9404
|
-
}, $
|
|
9454
|
+
}, $scope47_id, "c");
|
|
9405
9455
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9406
9456
|
_if(() => {
|
|
9407
9457
|
if (!selfUpdating) {
|
|
@@ -9410,75 +9460,75 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9410
9460
|
writeScope($scope117_id, {});
|
|
9411
9461
|
return 0;
|
|
9412
9462
|
}
|
|
9413
|
-
}, $
|
|
9463
|
+
}, $scope47_id, "e", 1, 1, 1, 0, 1);
|
|
9414
9464
|
_html("</li>");
|
|
9415
|
-
_subscribe($selfUpdating__closures, writeScope($
|
|
9465
|
+
_subscribe($selfUpdating__closures, writeScope($scope47_id, {}));
|
|
9416
9466
|
return 0;
|
|
9417
9467
|
}
|
|
9418
|
-
}, $
|
|
9468
|
+
}, $scope5_id, "d", 1, 1, 1, 0, 1);
|
|
9419
9469
|
_for_of(tools, (t) => {
|
|
9420
|
-
const $
|
|
9421
|
-
const $
|
|
9422
|
-
const $
|
|
9423
|
-
const $
|
|
9424
|
-
const $
|
|
9425
|
-
const $
|
|
9426
|
-
const $
|
|
9427
|
-
const $
|
|
9428
|
-
const $
|
|
9429
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
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>`);
|
|
9430
9480
|
_if(() => {
|
|
9431
9481
|
if (active.has(t.id)) {
|
|
9432
|
-
const $
|
|
9433
|
-
_html(`<span${_attr_class("
|
|
9434
|
-
_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 }));
|
|
9435
9485
|
return 0;
|
|
9436
9486
|
} else if (t.installed) {
|
|
9437
|
-
const $
|
|
9487
|
+
const $scope39_id = _scope_id();
|
|
9438
9488
|
_if(() => {
|
|
9439
9489
|
if (t.version) {
|
|
9440
|
-
const $
|
|
9441
|
-
_html(`<button${_attr_class(["
|
|
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)}`);
|
|
9442
9492
|
_if(() => {
|
|
9443
9493
|
if (aliasPin(t)) {
|
|
9444
9494
|
const $scope118_id = _scope_id();
|
|
9445
|
-
_html(`<span${_attr_class("
|
|
9446
|
-
_subscribe($
|
|
9495
|
+
_html(`<span${_attr_class("_dd")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9496
|
+
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9447
9497
|
return 0;
|
|
9448
9498
|
}
|
|
9449
|
-
}, $
|
|
9450
|
-
_html(`</button>${_el_resume($
|
|
9451
|
-
_script($
|
|
9452
|
-
_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, {})));
|
|
9453
9503
|
return 0;
|
|
9454
9504
|
} else {
|
|
9455
9505
|
const $scope119_id = _scope_id();
|
|
9456
9506
|
_html(`<span${_attr_class([metaTrunc, "_y"])}${_attr("title", t.path)}>${_text_resume($scope119_id, "b", t.path)}</span>${_el_resume($scope119_id, "a")}`);
|
|
9457
|
-
_subscribe($
|
|
9507
|
+
_subscribe($for_content7__t_path__closures, writeScope($scope119_id, {}));
|
|
9458
9508
|
return 1;
|
|
9459
9509
|
}
|
|
9460
|
-
}, $
|
|
9510
|
+
}, $scope39_id, "a", 1, 1, 1, 0, 1);
|
|
9461
9511
|
_if(() => {
|
|
9462
9512
|
if (outdated(t)) {
|
|
9463
|
-
const $
|
|
9464
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9513
|
+
const $scope59_id = _scope_id();
|
|
9514
|
+
_html(`<button${_attr_class([btnSm, "_df"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9465
9515
|
icon_arrow_up_default({ size: 12 });
|
|
9466
|
-
_html(` ${_text_resume($
|
|
9467
|
-
_script($
|
|
9468
|
-
_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, {}));
|
|
9469
9519
|
return 0;
|
|
9470
9520
|
} else if (t.newest) {
|
|
9471
|
-
const $
|
|
9472
|
-
_html(`<button${_attr_class(["
|
|
9473
|
-
_script($
|
|
9474
|
-
_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, {
|
|
9475
9525
|
Cw: 1,
|
|
9476
9526
|
Cy: 1
|
|
9477
9527
|
})))));
|
|
9478
9528
|
return 1;
|
|
9479
9529
|
}
|
|
9480
|
-
}, $
|
|
9481
|
-
writeScope($
|
|
9530
|
+
}, $scope39_id, "b", 1, 1, 1, 0, 1);
|
|
9531
|
+
writeScope($scope39_id, {});
|
|
9482
9532
|
return 1;
|
|
9483
9533
|
} else if (t.installable) {
|
|
9484
9534
|
const $scope120_id = _scope_id();
|
|
@@ -9491,11 +9541,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9491
9541
|
writeScope($scope121_id, {});
|
|
9492
9542
|
return 3;
|
|
9493
9543
|
}
|
|
9494
|
-
}, $
|
|
9544
|
+
}, $scope28_id, "d");
|
|
9495
9545
|
_html(`<span${_attr_class("_z")}></span>`);
|
|
9496
9546
|
_if(() => {
|
|
9497
9547
|
if (!active.has(t.id)) {
|
|
9498
|
-
const $
|
|
9548
|
+
const $scope34_id = _scope_id();
|
|
9499
9549
|
_if(() => {
|
|
9500
9550
|
if (t.required) {
|
|
9501
9551
|
const $scope122_id = _scope_id();
|
|
@@ -9503,16 +9553,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9503
9553
|
writeScope($scope122_id, {});
|
|
9504
9554
|
return 0;
|
|
9505
9555
|
}
|
|
9506
|
-
}, $
|
|
9556
|
+
}, $scope34_id, "a", 1, 1, 1, 0, 1);
|
|
9507
9557
|
_if(() => {
|
|
9508
9558
|
if (!t.installed && t.installable) {
|
|
9509
|
-
const $
|
|
9510
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9511
|
-
_script($
|
|
9512
|
-
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, {});
|
|
9513
9563
|
return 0;
|
|
9514
9564
|
} else if (t.installed && t.version && !t.required) {
|
|
9515
|
-
const $
|
|
9565
|
+
const $scope35_id = _scope_id();
|
|
9516
9566
|
_html(`<button${_attr_class([
|
|
9517
9567
|
iconBtnXs,
|
|
9518
9568
|
"_8",
|
|
@@ -9531,18 +9581,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9531
9581
|
writeScope($scope124_id, {});
|
|
9532
9582
|
return 1;
|
|
9533
9583
|
}
|
|
9534
|
-
}, $
|
|
9535
|
-
_script($
|
|
9536
|
-
_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 }))));
|
|
9537
9587
|
return 1;
|
|
9538
9588
|
}
|
|
9539
|
-
}, $
|
|
9540
|
-
writeScope($
|
|
9589
|
+
}, $scope34_id, "b", 1, 1, 1, 0, 1);
|
|
9590
|
+
writeScope($scope34_id, {});
|
|
9541
9591
|
return 0;
|
|
9542
9592
|
}
|
|
9543
|
-
}, $
|
|
9544
|
-
_html(`</li>${_el_resume($
|
|
9545
|
-
_subscribe($active__closures, writeScope($
|
|
9593
|
+
}, $scope28_id, "f");
|
|
9594
|
+
_html(`</li>${_el_resume($scope28_id, "a")}`);
|
|
9595
|
+
_subscribe($active__closures, writeScope($scope28_id, {
|
|
9546
9596
|
h: t,
|
|
9547
9597
|
i: t?.installed,
|
|
9548
9598
|
j: t?.label,
|
|
@@ -9554,22 +9604,23 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9554
9604
|
q: t?.latest,
|
|
9555
9605
|
r: t?.installable,
|
|
9556
9606
|
t: t?.required,
|
|
9557
|
-
a0: $
|
|
9558
|
-
u: $
|
|
9559
|
-
y: $
|
|
9560
|
-
z: $
|
|
9561
|
-
a2: $
|
|
9562
|
-
w: $
|
|
9563
|
-
a1: $
|
|
9564
|
-
x: $
|
|
9565
|
-
|
|
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
|
|
9566
9616
|
}));
|
|
9567
|
-
}, "id", $
|
|
9617
|
+
}, "id", $scope5_id, "e", 1, 1, 1, 0, 1);
|
|
9568
9618
|
_html("</ul></div>");
|
|
9569
|
-
writeScope($
|
|
9619
|
+
writeScope($scope5_id, {});
|
|
9570
9620
|
return 0;
|
|
9571
9621
|
}
|
|
9572
9622
|
}, $scope0_id, "ap", 1, 1, 1, 0, 1);
|
|
9623
|
+
const accent = input$3.instance.accent;
|
|
9573
9624
|
const themeOpts = [
|
|
9574
9625
|
{
|
|
9575
9626
|
id: "system",
|
|
@@ -9584,253 +9635,307 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9584
9635
|
label: "Dark"
|
|
9585
9636
|
}
|
|
9586
9637
|
];
|
|
9587
|
-
_html(`</div></div></section><section${_attr_class("_by")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bz")}><h2${_attr("id", appearanceId)}${_attr_class("_bM")}>Appearance</h2></div><div${_attr_class(["_bD", "
|
|
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) {
|
|
9588
9639
|
setInstance({ name: v });
|
|
9589
|
-
}, "x4", $scope0_id))}${_attr_class(["_Z", "
|
|
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">`);
|
|
9590
9641
|
_for_of(themeOpts, (opt) => {
|
|
9591
|
-
const $
|
|
9592
|
-
_html(`<button type=button${_attr_class([
|
|
9593
|
-
|
|
9594
|
-
|
|
9595
|
-
|
|
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,
|
|
9596
9662
|
_: _scope_with_id($scope0_id)
|
|
9597
9663
|
});
|
|
9598
|
-
}, "id", $scope0_id, "
|
|
9599
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9600
|
-
_attr_select_value($scope0_id, "
|
|
9664
|
+
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9665
|
+
_html(`</span><span${_attr_class(["_o", "_dA"])}>`);
|
|
9666
|
+
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9601
9667
|
setThemeMode(v);
|
|
9602
9668
|
}, "x5", $scope0_id), () => {
|
|
9603
|
-
_html(`<select${_attr_class(["_p", "
|
|
9669
|
+
_html(`<select${_attr_class(["_p", "_dB"])} aria-label="Color theme">`);
|
|
9604
9670
|
forOf(themeOpts, (opt) => {
|
|
9605
9671
|
_scope_id();
|
|
9606
9672
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9607
9673
|
});
|
|
9608
9674
|
_html("</select>");
|
|
9609
9675
|
});
|
|
9610
|
-
_html(`${_el_resume($scope0_id, "
|
|
9611
|
-
"
|
|
9612
|
-
"
|
|
9613
|
-
{ ["
|
|
9614
|
-
])} 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);
|
|
9615
9692
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9616
|
-
const $
|
|
9617
|
-
_html(`<button type=button${_attr_class(["
|
|
9618
|
-
|
|
9619
|
-
|
|
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, {
|
|
9620
9708
|
d: p?.value,
|
|
9621
9709
|
_: _scope_with_id($scope0_id)
|
|
9622
9710
|
});
|
|
9623
|
-
}, "value", $scope0_id, "
|
|
9624
|
-
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);
|
|
9625
9713
|
_html(`<label${_attr_class([
|
|
9626
|
-
"
|
|
9627
|
-
"
|
|
9628
|
-
{ ["
|
|
9629
|
-
])}${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) {
|
|
9630
9718
|
setInstance({ accent: v });
|
|
9631
|
-
}, "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")}>`);
|
|
9632
9737
|
_if(() => {
|
|
9633
9738
|
if (backupBusy === "preflight") {
|
|
9634
|
-
const $
|
|
9635
|
-
_html(`<span${_attr_class("
|
|
9636
|
-
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, {});
|
|
9637
9742
|
return 0;
|
|
9638
9743
|
} else {
|
|
9639
|
-
const $
|
|
9744
|
+
const $scope133_id = _scope_id();
|
|
9640
9745
|
_html(`<span${_attr_class("_bH")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9641
|
-
writeScope($
|
|
9746
|
+
writeScope($scope133_id, {});
|
|
9642
9747
|
return 1;
|
|
9643
9748
|
}
|
|
9644
|
-
}, $scope0_id, "
|
|
9749
|
+
}, $scope0_id, "bn", 1, 1, 1, "</div>", 1);
|
|
9645
9750
|
_if(() => {
|
|
9646
9751
|
if (!backupBusy && !preflight) {
|
|
9647
|
-
const $
|
|
9648
|
-
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($
|
|
9649
|
-
_script($
|
|
9650
|
-
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, {});
|
|
9651
9756
|
return 0;
|
|
9652
9757
|
}
|
|
9653
|
-
}, $scope0_id, "
|
|
9758
|
+
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
9654
9759
|
_html("</div>");
|
|
9655
9760
|
_if(() => {
|
|
9656
9761
|
if (preflight && !backupBusy) {
|
|
9657
|
-
const $
|
|
9658
|
-
_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: `);
|
|
9659
9764
|
_if(() => {
|
|
9660
9765
|
if (preflight.unpushed) {
|
|
9661
|
-
const $
|
|
9662
|
-
_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)}`);
|
|
9663
9768
|
_if(() => {
|
|
9664
9769
|
if (preflight.files) {
|
|
9665
|
-
const $
|
|
9770
|
+
const $scope134_id = _scope_id();
|
|
9666
9771
|
_html(",");
|
|
9667
|
-
writeScope($
|
|
9772
|
+
writeScope($scope134_id, {});
|
|
9668
9773
|
return 0;
|
|
9669
9774
|
}
|
|
9670
|
-
}, $
|
|
9671
|
-
_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, {})));
|
|
9672
9777
|
return 0;
|
|
9673
9778
|
}
|
|
9674
|
-
}, $
|
|
9675
|
-
_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")}>`);
|
|
9676
9781
|
_for_of(preflight.workspaces, (w) => {
|
|
9677
|
-
const $
|
|
9782
|
+
const $scope135_id = _scope_id();
|
|
9678
9783
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9679
|
-
_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")}>`);
|
|
9680
9785
|
_for_of(w.repos, (r) => {
|
|
9681
|
-
const $
|
|
9786
|
+
const $scope136_id = _scope_id();
|
|
9682
9787
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9683
|
-
_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>`);
|
|
9684
9789
|
_for_of(r.unpushed, (b) => {
|
|
9685
|
-
const $
|
|
9686
|
-
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($
|
|
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 `);
|
|
9687
9792
|
_if(() => {
|
|
9688
9793
|
if (b.branch !== w.name) {
|
|
9689
|
-
const $
|
|
9690
|
-
_html(`<span${_attr_class("_y")}>${_text_resume($
|
|
9691
|
-
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, {});
|
|
9692
9797
|
return 0;
|
|
9693
9798
|
}
|
|
9694
|
-
}, $
|
|
9695
|
-
_html(`</span>${_el_resume($
|
|
9696
|
-
_subscribe($for_content18__w_name__closures, writeScope($
|
|
9697
|
-
}, "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);
|
|
9698
9803
|
_html("</span>");
|
|
9699
9804
|
_if(() => {
|
|
9700
9805
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9701
|
-
const $
|
|
9702
|
-
_html(`<ul${_attr_class("
|
|
9806
|
+
const $scope138_id = _scope_id();
|
|
9807
|
+
_html(`<ul${_attr_class("_d1")}>`);
|
|
9703
9808
|
_for_of(r.modified, (f) => {
|
|
9704
|
-
const $
|
|
9705
|
-
_html(`<li${_attr_class("
|
|
9809
|
+
const $scope141_id = _scope_id();
|
|
9810
|
+
_html(`<li${_attr_class("_d2")}><span${_attr_class([
|
|
9706
9811
|
"_N",
|
|
9707
9812
|
"_P",
|
|
9708
9813
|
tone.warn
|
|
9709
|
-
])} title="Modified, not committed">M</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($
|
|
9710
|
-
writeScope($
|
|
9711
|
-
}, (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);
|
|
9712
9817
|
_for_of(r.untracked, (f) => {
|
|
9713
|
-
const $
|
|
9714
|
-
_html(`<li${_attr_class("
|
|
9715
|
-
writeScope($
|
|
9716
|
-
}, (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);
|
|
9717
9822
|
_for_of(r.ignored, (f) => {
|
|
9718
|
-
const $
|
|
9719
|
-
_html(`<li${_attr_class("
|
|
9720
|
-
writeScope($
|
|
9721
|
-
}, (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);
|
|
9722
9827
|
_if(() => {
|
|
9723
9828
|
if (r.more) {
|
|
9724
|
-
const $
|
|
9725
|
-
_html(`<li${_attr_class(["
|
|
9726
|
-
_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, {}));
|
|
9727
9832
|
return 0;
|
|
9728
9833
|
}
|
|
9729
|
-
}, $
|
|
9834
|
+
}, $scope138_id, "e", 1, 1, 1, 0, 1);
|
|
9730
9835
|
_html("</ul>");
|
|
9731
|
-
writeScope($
|
|
9836
|
+
writeScope($scope138_id, {});
|
|
9732
9837
|
return 0;
|
|
9733
9838
|
}
|
|
9734
|
-
}, $
|
|
9839
|
+
}, $scope136_id, "f", 1, 1, 1, 0, 1);
|
|
9735
9840
|
_html("</li>");
|
|
9736
|
-
writeScope($
|
|
9841
|
+
writeScope($scope136_id, {
|
|
9737
9842
|
k: r?.modified,
|
|
9738
9843
|
m: r?.untracked,
|
|
9739
9844
|
o: r?.ignored,
|
|
9740
9845
|
r: r?.more,
|
|
9741
9846
|
v: $for_content19__r_more__closures
|
|
9742
9847
|
});
|
|
9743
|
-
}, "worktree", $
|
|
9848
|
+
}, "worktree", $scope135_id, "d", 1, 1, 1, "</ul>", 1);
|
|
9744
9849
|
_html("</li>");
|
|
9745
|
-
writeScope($
|
|
9850
|
+
writeScope($scope135_id, {
|
|
9746
9851
|
g: w?.name,
|
|
9747
9852
|
i: $for_content18__w_name__closures
|
|
9748
9853
|
});
|
|
9749
|
-
}, "id", $
|
|
9750
|
-
_html(`<div${_attr_class("
|
|
9751
|
-
_script($
|
|
9752
|
-
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, {});
|
|
9753
9858
|
return 0;
|
|
9754
9859
|
}
|
|
9755
|
-
}, $scope0_id, "
|
|
9756
|
-
_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")}>`);
|
|
9757
9862
|
_if(() => {
|
|
9758
9863
|
if (backupBusy === "restore") {
|
|
9759
|
-
const $
|
|
9760
|
-
_html(`<span${_attr_class("
|
|
9761
|
-
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, {});
|
|
9762
9867
|
return 0;
|
|
9763
9868
|
} else if (restoreDone) {
|
|
9764
|
-
const $
|
|
9765
|
-
_html(`<span${_attr_class("_bH")}>${_text_resume($
|
|
9766
|
-
writeScope($
|
|
9869
|
+
const $scope74_id = _scope_id();
|
|
9870
|
+
_html(`<span${_attr_class("_bH")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9871
|
+
writeScope($scope74_id, {});
|
|
9767
9872
|
return 1;
|
|
9768
9873
|
} else {
|
|
9769
|
-
const $
|
|
9874
|
+
const $scope144_id = _scope_id();
|
|
9770
9875
|
_html(`<span${_attr_class("_bH")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9771
|
-
writeScope($
|
|
9876
|
+
writeScope($scope144_id, {});
|
|
9772
9877
|
return 2;
|
|
9773
9878
|
}
|
|
9774
|
-
}, $scope0_id, "
|
|
9879
|
+
}, $scope0_id, "bs", 1, 1, 1, "</div>", 1);
|
|
9775
9880
|
_if(() => {
|
|
9776
9881
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9777
|
-
const $
|
|
9778
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9779
|
-
_script($
|
|
9780
|
-
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, {});
|
|
9781
9886
|
return 0;
|
|
9782
9887
|
}
|
|
9783
|
-
}, $scope0_id, "
|
|
9888
|
+
}, $scope0_id, "bt", 1, 1, 1, 0, 1);
|
|
9784
9889
|
_html("</div>");
|
|
9785
9890
|
_if(() => {
|
|
9786
9891
|
if (restorePreview && backupBusy !== "restore") {
|
|
9787
|
-
const $
|
|
9892
|
+
const $scope69_id = _scope_id();
|
|
9788
9893
|
const { preview } = restorePreview;
|
|
9789
|
-
_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>`);
|
|
9790
9895
|
_if(() => {
|
|
9791
9896
|
if (preview.workspaces.length) {
|
|
9792
|
-
const $
|
|
9897
|
+
const $scope70_id = _scope_id();
|
|
9793
9898
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9794
9899
|
_for_of(preview.workspaces, (w) => {
|
|
9795
|
-
const $
|
|
9796
|
-
_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>`);
|
|
9797
9902
|
_if(() => {
|
|
9798
9903
|
if (w.status === "archived") {
|
|
9799
|
-
const $
|
|
9904
|
+
const $scope148_id = _scope_id();
|
|
9800
9905
|
_html(`<span${_attr_class(["_N", "_P"])}>archived</span>`);
|
|
9801
|
-
writeScope($
|
|
9906
|
+
writeScope($scope148_id, {});
|
|
9802
9907
|
return 0;
|
|
9803
9908
|
}
|
|
9804
|
-
}, $
|
|
9909
|
+
}, $scope71_id, "g", 1, 1, 1, 0, 1);
|
|
9805
9910
|
_if(() => {
|
|
9806
9911
|
if (w.exists) {
|
|
9807
|
-
const $
|
|
9912
|
+
const $scope149_id = _scope_id();
|
|
9808
9913
|
_html(`<span${_attr_class("_N")}>already here</span>`);
|
|
9809
|
-
writeScope($
|
|
9914
|
+
writeScope($scope149_id, {});
|
|
9810
9915
|
return 0;
|
|
9811
9916
|
} else if (w.unknownHost) {
|
|
9812
|
-
const $
|
|
9813
|
-
_html(`<span${_attr_class(["_N", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($
|
|
9814
|
-
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, {});
|
|
9815
9920
|
return 1;
|
|
9816
9921
|
}
|
|
9817
|
-
}, $
|
|
9818
|
-
_html(`</span><span${_attr_class("_bH")}>${_text_resume($
|
|
9819
|
-
_script($
|
|
9820
|
-
_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, {
|
|
9821
9926
|
n: w?.unknownHost,
|
|
9822
9927
|
p: w?.id
|
|
9823
9928
|
}));
|
|
9824
|
-
}, "id", $
|
|
9825
|
-
_subscribe($preview_workspaces__closures, writeScope($
|
|
9929
|
+
}, "id", $scope70_id, "a", 1, 1, 1, "</ul>", 1);
|
|
9930
|
+
_subscribe($preview_workspaces__closures, writeScope($scope70_id, {}));
|
|
9826
9931
|
return 0;
|
|
9827
9932
|
} else {
|
|
9828
|
-
const $
|
|
9933
|
+
const $scope146_id = _scope_id();
|
|
9829
9934
|
_html(`<p${_attr_class("_bJ")}>No workspaces in this file.</p>`);
|
|
9830
|
-
writeScope($
|
|
9935
|
+
writeScope($scope146_id, {});
|
|
9831
9936
|
return 1;
|
|
9832
9937
|
}
|
|
9833
|
-
}, $
|
|
9938
|
+
}, $scope69_id, "f", 1, 1, 1, 0, 1);
|
|
9834
9939
|
const parts = [
|
|
9835
9940
|
{
|
|
9836
9941
|
key: "tools",
|
|
@@ -9859,70 +9964,70 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9859
9964
|
];
|
|
9860
9965
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9861
9966
|
_for_of(parts, (p) => {
|
|
9862
|
-
const $
|
|
9863
|
-
const $
|
|
9864
|
-
const $
|
|
9865
|
-
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();
|
|
9866
9971
|
_if(() => {
|
|
9867
9972
|
if (p.total) {
|
|
9868
|
-
const $
|
|
9869
|
-
_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")}>`);
|
|
9870
9975
|
_if(() => {
|
|
9871
9976
|
if (p.key === "settings") {
|
|
9872
|
-
const $
|
|
9873
|
-
_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)}`);
|
|
9874
9979
|
_if(() => {
|
|
9875
9980
|
if (p.missing.length) {
|
|
9876
|
-
const $
|
|
9877
|
-
_html(`, add host${_text_resume($
|
|
9878
|
-
_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 })));
|
|
9879
9984
|
return 0;
|
|
9880
9985
|
}
|
|
9881
|
-
}, $
|
|
9882
|
-
_subscribe($
|
|
9986
|
+
}, $scope145_id, "c");
|
|
9987
|
+
_subscribe($for_content10__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($scope145_id, {})));
|
|
9883
9988
|
return 0;
|
|
9884
9989
|
} else if (p.missing.length) {
|
|
9885
|
-
const $
|
|
9886
|
-
_html(`${_text_resume($
|
|
9887
|
-
_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, {
|
|
9888
9993
|
Cj: 1,
|
|
9889
9994
|
Ck: 2
|
|
9890
9995
|
})));
|
|
9891
9996
|
return 1;
|
|
9892
9997
|
} else {
|
|
9893
|
-
const $
|
|
9894
|
-
_html(`all ${_text_resume($
|
|
9895
|
-
_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, {}));
|
|
9896
10001
|
return 2;
|
|
9897
10002
|
}
|
|
9898
|
-
}, $
|
|
9899
|
-
_html(`</span></label>${_el_resume($
|
|
9900
|
-
_script($
|
|
9901
|
-
_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, {}));
|
|
9902
10007
|
return 0;
|
|
9903
10008
|
}
|
|
9904
|
-
}, $
|
|
9905
|
-
writeScope($
|
|
10009
|
+
}, $scope72_id, "a", 1, 1, 1, 0, 1);
|
|
10010
|
+
writeScope($scope72_id, {
|
|
9906
10011
|
d: p?.total,
|
|
9907
10012
|
e: p?.missing,
|
|
9908
10013
|
f: p?.missing?.length,
|
|
9909
10014
|
g: p?.key,
|
|
9910
10015
|
h: p?.label,
|
|
9911
|
-
j: $
|
|
9912
|
-
k: $
|
|
9913
|
-
i: $
|
|
10016
|
+
j: $for_content10__p_missing__closures,
|
|
10017
|
+
k: $for_content10__p_missing_length__closures,
|
|
10018
|
+
i: $for_content10__p_total__closures
|
|
9914
10019
|
});
|
|
9915
|
-
}, "key", $
|
|
9916
|
-
_html(`</ul><div${_attr_class("
|
|
9917
|
-
_script($
|
|
9918
|
-
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, {});
|
|
9919
10024
|
return 0;
|
|
9920
10025
|
}
|
|
9921
|
-
}, $scope0_id, "
|
|
10026
|
+
}, $scope0_id, "bu", 1, 1, 1, 0, 1);
|
|
9922
10027
|
_html("</div></div></section></div></div></div>");
|
|
9923
10028
|
_if(() => {
|
|
9924
10029
|
if (versionPick) {
|
|
9925
|
-
const $
|
|
10030
|
+
const $scope36_id = _scope_id();
|
|
9926
10031
|
_set_serialize_reason(10);
|
|
9927
10032
|
const $childScope13 = _peek_scope_id();
|
|
9928
10033
|
prompt_dialog_default({
|
|
@@ -9933,168 +10038,168 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9933
10038
|
open: versionPick != null,
|
|
9934
10039
|
openChange: _resume(function(o) {
|
|
9935
10040
|
if (!o) versionPick = null;
|
|
9936
|
-
}, "x41", $
|
|
10041
|
+
}, "x41", $scope36_id),
|
|
9937
10042
|
onSubmit: _resume(function(v) {
|
|
9938
10043
|
const pick = versionPick;
|
|
9939
10044
|
versionPick = null;
|
|
9940
10045
|
run(pick.id, "install", v);
|
|
9941
|
-
}, "x42", $
|
|
10046
|
+
}, "x42", $scope36_id)
|
|
9942
10047
|
});
|
|
9943
|
-
writeScope($
|
|
10048
|
+
writeScope($scope36_id, { a: _existing_scope($childScope13) });
|
|
9944
10049
|
return 0;
|
|
9945
10050
|
}
|
|
9946
|
-
}, $scope0_id, "
|
|
10051
|
+
}, $scope0_id, "bv", 1, 1, 1, 0, 1);
|
|
9947
10052
|
_script($scope0_id, "x86");
|
|
9948
10053
|
_script($scope0_id, "x87");
|
|
9949
10054
|
writeScope($scope0_id, {
|
|
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
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10056
|
-
|
|
10057
|
-
|
|
10058
|
-
|
|
10059
|
-
|
|
10060
|
-
|
|
10061
|
-
|
|
10062
|
-
|
|
10063
|
-
|
|
10064
|
-
|
|
10065
|
-
|
|
10066
|
-
|
|
10067
|
-
|
|
10068
|
-
|
|
10069
|
-
|
|
10070
|
-
|
|
10071
|
-
|
|
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,
|
|
10072
10177
|
d: _existing_scope($childScope2),
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
|
|
10076
|
-
|
|
10077
|
-
|
|
10078
|
-
|
|
10079
|
-
|
|
10080
|
-
|
|
10081
|
-
|
|
10082
|
-
|
|
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,
|
|
10083
10188
|
a6: _existing_scope($childScope10),
|
|
10084
|
-
|
|
10085
|
-
|
|
10086
|
-
|
|
10087
|
-
|
|
10189
|
+
hr: $skillQuery__closures,
|
|
10190
|
+
hv: $confirmingSkill__closures,
|
|
10191
|
+
hn: $skills__closures,
|
|
10192
|
+
hq: $skills_available__closures,
|
|
10088
10193
|
af: _existing_scope($childScope12),
|
|
10089
|
-
|
|
10090
|
-
|
|
10091
|
-
|
|
10092
|
-
|
|
10093
|
-
|
|
10094
|
-
|
|
10095
|
-
|
|
10096
|
-
|
|
10097
|
-
|
|
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
|
|
10098
10203
|
});
|
|
10099
10204
|
_resume_branch($scope0_id);
|
|
10100
10205
|
});
|
|
@@ -10142,9 +10247,9 @@ function vapidKey(base64) {
|
|
|
10142
10247
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10143
10248
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10144
10249
|
}
|
|
10145
|
-
var iconBtn = "
|
|
10146
|
-
var settingsDot = "
|
|
10147
|
-
var navToggle = "
|
|
10250
|
+
var iconBtn = "_bO _l";
|
|
10251
|
+
var settingsDot = "_bP _bc";
|
|
10252
|
+
var navToggle = "_bT _l";
|
|
10148
10253
|
_template("Q", (input) => {
|
|
10149
10254
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10150
10255
|
const $scope0_id = _scope_id();
|
|
@@ -10162,7 +10267,7 @@ _template("Q", (input) => {
|
|
|
10162
10267
|
});
|
|
10163
10268
|
//#endregion
|
|
10164
10269
|
//#region src/tags/icons/icon-settings.marko
|
|
10165
|
-
var icon_settings_default = _template("
|
|
10270
|
+
var icon_settings_default = _template("mb", (input) => {
|
|
10166
10271
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10167
10272
|
const $scope0_id = _scope_id();
|
|
10168
10273
|
_set_serialize_reason({
|
|
@@ -10187,16 +10292,16 @@ var ARM_MS = 3500;
|
|
|
10187
10292
|
function disarmLater(fn) {
|
|
10188
10293
|
return setTimeout(fn, ARM_MS);
|
|
10189
10294
|
}
|
|
10190
|
-
var railBtn = "
|
|
10191
|
-
var wsBtn = "
|
|
10192
|
-
var rowIcon = "
|
|
10193
|
-
var close = "
|
|
10194
|
-
var sessRename$1 = "
|
|
10195
|
-
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";
|
|
10196
10301
|
//#endregion
|
|
10197
10302
|
//#region src/styles/session-pop.css.ts
|
|
10198
|
-
var sessionPop = "
|
|
10199
|
-
var sessionPopBtn = "
|
|
10303
|
+
var sessionPop = "_eW __";
|
|
10304
|
+
var sessionPopBtn = "_eX _I";
|
|
10200
10305
|
//#endregion
|
|
10201
10306
|
//#region src/client/status.ts
|
|
10202
10307
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -10263,22 +10368,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
10263
10368
|
if (windows.length) {
|
|
10264
10369
|
const $scope1_id = _scope_id();
|
|
10265
10370
|
_html(`<span${_attr_class([
|
|
10266
|
-
"
|
|
10371
|
+
"_gK",
|
|
10267
10372
|
input.class,
|
|
10268
|
-
{ ["
|
|
10373
|
+
{ ["_gL"]: agent.stale_seconds != null }
|
|
10269
10374
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10270
10375
|
_for_of(windows, (win$1, i) => {
|
|
10271
10376
|
const $scope2_id = _scope_id();
|
|
10272
|
-
_html(`<span${_attr_class("
|
|
10377
|
+
_html(`<span${_attr_class("_gM")}>`);
|
|
10273
10378
|
_if(() => {
|
|
10274
10379
|
if (i) {
|
|
10275
10380
|
const $scope3_id = _scope_id();
|
|
10276
|
-
_html(`<span${_attr_class("
|
|
10381
|
+
_html(`<span${_attr_class("_gP")} aria-hidden=true>·</span>`);
|
|
10277
10382
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10278
10383
|
return 0;
|
|
10279
10384
|
}
|
|
10280
10385
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10281
|
-
_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>`);
|
|
10282
10387
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10283
10388
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10284
10389
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10309,12 +10414,12 @@ var icon_edit_default = _template("$", (input) => {
|
|
|
10309
10414
|
});
|
|
10310
10415
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
10311
10416
|
});
|
|
10312
|
-
var prChip = "
|
|
10313
|
-
var portChip = "
|
|
10417
|
+
var prChip = "_g_ _u _g9";
|
|
10418
|
+
var portChip = "_ha _u _g9";
|
|
10314
10419
|
var prState = {
|
|
10315
|
-
open: "
|
|
10316
|
-
merged: "
|
|
10317
|
-
closed: "
|
|
10420
|
+
open: "_he",
|
|
10421
|
+
merged: "_hf",
|
|
10422
|
+
closed: "_hg"
|
|
10318
10423
|
};
|
|
10319
10424
|
//#endregion
|
|
10320
10425
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -10388,7 +10493,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10388
10493
|
const name = repo.full_name.split("/").at(-1);
|
|
10389
10494
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10390
10495
|
}, "y4", $scope1_id);
|
|
10391
|
-
_html(`<div${_attr_class("
|
|
10496
|
+
_html(`<div${_attr_class("_g8")}>`);
|
|
10392
10497
|
_for_of(repos, (repo) => {
|
|
10393
10498
|
const $scope2_id = _scope_id();
|
|
10394
10499
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10404,11 +10509,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10404
10509
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10405
10510
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10406
10511
|
}
|
|
10407
|
-
])}${_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")}`);
|
|
10408
10513
|
_if(() => {
|
|
10409
10514
|
if (open) {
|
|
10410
10515
|
const $scope4_id = _scope_id();
|
|
10411
|
-
_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`)}>`);
|
|
10412
10517
|
icon_diff_default({ size: 12 });
|
|
10413
10518
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10414
10519
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10416,9 +10521,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10416
10521
|
} else {
|
|
10417
10522
|
const $scope6_id = _scope_id();
|
|
10418
10523
|
_html(`<button type=button${_attr_class([
|
|
10419
|
-
"
|
|
10420
|
-
"
|
|
10421
|
-
"
|
|
10524
|
+
"_hb",
|
|
10525
|
+
"_hc",
|
|
10526
|
+
"_hd"
|
|
10422
10527
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10423
10528
|
icon_xmark_default({ size: 12 });
|
|
10424
10529
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10446,21 +10551,21 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
10446
10551
|
_if(() => {
|
|
10447
10552
|
if (dead.has(p.port)) {
|
|
10448
10553
|
const $scope7_id = _scope_id();
|
|
10449
|
-
_html(`<span${_attr_class(["
|
|
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")}`);
|
|
10450
10555
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10451
10556
|
return 0;
|
|
10452
10557
|
} else {
|
|
10453
10558
|
const $scope8_id = _scope_id();
|
|
10454
|
-
_html(`<button type=button${_attr_class(["
|
|
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")}`);
|
|
10455
10560
|
_script($scope8_id, "y6");
|
|
10456
10561
|
writeScope($scope8_id, {});
|
|
10457
10562
|
return 1;
|
|
10458
10563
|
}
|
|
10459
10564
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10460
10565
|
_html(`<button type=button${_attr_class([
|
|
10461
|
-
"
|
|
10462
|
-
"
|
|
10463
|
-
"
|
|
10566
|
+
"_hb",
|
|
10567
|
+
"_hc",
|
|
10568
|
+
"_hd",
|
|
10464
10569
|
{ ["_s"]: armedPid === p.pid }
|
|
10465
10570
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10466
10571
|
icon_xmark_default({ size: 12 });
|
|
@@ -10583,7 +10688,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10583
10688
|
_if(() => {
|
|
10584
10689
|
if (input.rail) {
|
|
10585
10690
|
const $scope2_id = _scope_id();
|
|
10586
|
-
_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([
|
|
10587
10692
|
"_A",
|
|
10588
10693
|
phase[dot$1],
|
|
10589
10694
|
"_bc"
|
|
@@ -10593,34 +10698,34 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10593
10698
|
} else if (ws$1.pending) {
|
|
10594
10699
|
const $scope3_id = _scope_id();
|
|
10595
10700
|
_html(`<section${_attr_class([
|
|
10596
|
-
"
|
|
10597
|
-
"
|
|
10701
|
+
"_e2",
|
|
10702
|
+
"_fo",
|
|
10598
10703
|
{
|
|
10599
|
-
["
|
|
10600
|
-
["
|
|
10704
|
+
["_e3"]: input.railPop,
|
|
10705
|
+
["_e1"]: input.page
|
|
10601
10706
|
}
|
|
10602
|
-
])} 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)}>`);
|
|
10603
10708
|
_if(() => {
|
|
10604
10709
|
if (ws$1.pending_error) {
|
|
10605
10710
|
const $scope16_id = _scope_id();
|
|
10606
10711
|
icon_warning_default({
|
|
10607
10712
|
size: 12,
|
|
10608
|
-
class: "
|
|
10713
|
+
class: "_fq"
|
|
10609
10714
|
});
|
|
10610
10715
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10611
10716
|
return 0;
|
|
10612
10717
|
} else {
|
|
10613
10718
|
const $scope17_id = _scope_id();
|
|
10614
|
-
_html(`<span${_attr_class(["_G", "
|
|
10719
|
+
_html(`<span${_attr_class(["_G", "_fp"])}></span>`);
|
|
10615
10720
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10616
10721
|
return 1;
|
|
10617
10722
|
}
|
|
10618
10723
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10619
|
-
_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>`);
|
|
10620
10725
|
_if(() => {
|
|
10621
10726
|
if (ws$1.pending_error && !retrying) {
|
|
10622
10727
|
const $scope15_id = _scope_id();
|
|
10623
|
-
_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([
|
|
10624
10729
|
"_q",
|
|
10625
10730
|
btnSm,
|
|
10626
10731
|
{ ["_s"]: armedDelete }
|
|
@@ -10640,15 +10745,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10640
10745
|
const $scope4_id = _scope_id();
|
|
10641
10746
|
const sessions$1 = input.sessions || [];
|
|
10642
10747
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10643
|
-
_html(`<section${_attr_class(["
|
|
10644
|
-
["
|
|
10748
|
+
_html(`<section${_attr_class(["_e2", {
|
|
10749
|
+
["_eY"]: input.current,
|
|
10645
10750
|
["_bd"]: input.current,
|
|
10646
|
-
["
|
|
10647
|
-
["
|
|
10648
|
-
}])}><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([
|
|
10649
10754
|
"_A",
|
|
10650
10755
|
phase[dot$1],
|
|
10651
|
-
"
|
|
10756
|
+
"_fg"
|
|
10652
10757
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10653
10758
|
_if(() => {
|
|
10654
10759
|
if (sessions$1.length === 1) {
|
|
@@ -10661,7 +10766,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10661
10766
|
icon_agent_default({
|
|
10662
10767
|
agent: activeAgent(sessions$1[0]),
|
|
10663
10768
|
size: 12,
|
|
10664
|
-
class: "
|
|
10769
|
+
class: "_e_"
|
|
10665
10770
|
});
|
|
10666
10771
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10667
10772
|
_: _scope_with_id($scope4_id),
|
|
@@ -10671,11 +10776,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10671
10776
|
}
|
|
10672
10777
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10673
10778
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10674
|
-
_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>`);
|
|
10675
10780
|
_if(() => {
|
|
10676
10781
|
if (input.page && metaText) {
|
|
10677
10782
|
const $scope19_id = _scope_id();
|
|
10678
|
-
_html(`<span${_attr_class("
|
|
10783
|
+
_html(`<span${_attr_class("_fe")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10679
10784
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10680
10785
|
return 0;
|
|
10681
10786
|
}
|
|
@@ -10688,7 +10793,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10688
10793
|
"_N",
|
|
10689
10794
|
"_W",
|
|
10690
10795
|
"_P",
|
|
10691
|
-
"
|
|
10796
|
+
"_ff"
|
|
10692
10797
|
])}>${_text_resume($scope5_id, "b", input.current ? "Open" : "", _serialize_guard($scope0_reason, 20))}</span>`);
|
|
10693
10798
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspace && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
10694
10799
|
_: _scope_with_id($scope4_id),
|
|
@@ -10701,7 +10806,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10701
10806
|
_if(() => {
|
|
10702
10807
|
if (!input.page) {
|
|
10703
10808
|
const $scope6_id = _scope_id();
|
|
10704
|
-
_html(`<div${_attr_class("
|
|
10809
|
+
_html(`<div${_attr_class("_e6")}>`);
|
|
10705
10810
|
_if(() => {
|
|
10706
10811
|
if (input.onNewSession) {
|
|
10707
10812
|
const $scope7_id = _scope_id();
|
|
@@ -10750,7 +10855,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10750
10855
|
return 0;
|
|
10751
10856
|
}
|
|
10752
10857
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10753
|
-
_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" : ""}>`);
|
|
10754
10859
|
icon_manage_default({ size: 12 });
|
|
10755
10860
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10756
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, {
|
|
@@ -10760,7 +10865,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10760
10865
|
return 0;
|
|
10761
10866
|
}
|
|
10762
10867
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10763
|
-
_html(`</div><div${_attr_class("
|
|
10868
|
+
_html(`</div><div${_attr_class("_fl")}>`);
|
|
10764
10869
|
_if(() => {
|
|
10765
10870
|
if (sessions$1.length === 1 && openPlan) {
|
|
10766
10871
|
const $scope12_id = _scope_id();
|
|
@@ -10768,7 +10873,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10768
10873
|
const $childScope3 = _peek_scope_id();
|
|
10769
10874
|
usage_pcts_default({
|
|
10770
10875
|
agent: openPlan,
|
|
10771
|
-
class: "
|
|
10876
|
+
class: "_fc"
|
|
10772
10877
|
});
|
|
10773
10878
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10774
10879
|
a: _existing_scope($childScope3),
|
|
@@ -10779,14 +10884,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10779
10884
|
}, $scope4_id, "m");
|
|
10780
10885
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10781
10886
|
const $scope9_id = _scope_id();
|
|
10782
|
-
_html(`<div${_attr_class(["
|
|
10887
|
+
_html(`<div${_attr_class(["_e7", { ["_eY"]: s.id === input.currentTab }])}>`);
|
|
10783
10888
|
_if(() => {
|
|
10784
10889
|
if (renamingId === s.id) {
|
|
10785
10890
|
const $scope11_id = _scope_id();
|
|
10786
10891
|
_html(`<span${_attr_class([
|
|
10787
10892
|
"_A",
|
|
10788
10893
|
phase[sessionPhase(s.state)],
|
|
10789
|
-
"
|
|
10894
|
+
"_fj"
|
|
10790
10895
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10791
10896
|
_set_serialize_reason({
|
|
10792
10897
|
1: $sg__input_sessions,
|
|
@@ -10796,7 +10901,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10796
10901
|
icon_agent_default({
|
|
10797
10902
|
agent: activeAgent(s),
|
|
10798
10903
|
size: 12,
|
|
10799
|
-
class: "
|
|
10904
|
+
class: "_fn"
|
|
10800
10905
|
});
|
|
10801
10906
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10802
10907
|
renameValue = _new_renameValue;
|
|
@@ -10815,9 +10920,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10815
10920
|
icon_agent_default({
|
|
10816
10921
|
agent: activeAgent(s),
|
|
10817
10922
|
size: 12,
|
|
10818
|
-
class: "
|
|
10923
|
+
class: "_fn"
|
|
10819
10924
|
});
|
|
10820
|
-
_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">`);
|
|
10821
10926
|
icon_edit_default({ size: 12 });
|
|
10822
10927
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10823
10928
|
icon_xmark_default({ size: 12 });
|
|
@@ -10829,7 +10934,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
10829
10934
|
const $childScope6 = _peek_scope_id();
|
|
10830
10935
|
usage_pcts_default({
|
|
10831
10936
|
agent: openPlan,
|
|
10832
|
-
class: "
|
|
10937
|
+
class: "_fd"
|
|
10833
10938
|
});
|
|
10834
10939
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10835
10940
|
a: _existing_scope($childScope6),
|
|
@@ -10971,7 +11076,7 @@ var icon_folder_plus_default = _template("cb", (input) => {
|
|
|
10971
11076
|
});
|
|
10972
11077
|
//#endregion
|
|
10973
11078
|
//#region src/tags/icons/icon-sidebar-collapse.marko
|
|
10974
|
-
var icon_sidebar_collapse_default = _template("
|
|
11079
|
+
var icon_sidebar_collapse_default = _template("nb", (input) => {
|
|
10975
11080
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10976
11081
|
const $scope0_id = _scope_id();
|
|
10977
11082
|
_set_serialize_reason({
|
|
@@ -10988,7 +11093,7 @@ var icon_sidebar_collapse_default = _template("lb", (input) => {
|
|
|
10988
11093
|
});
|
|
10989
11094
|
//#endregion
|
|
10990
11095
|
//#region src/tags/icons/icon-sidebar.marko
|
|
10991
|
-
var icon_sidebar_default = _template("
|
|
11096
|
+
var icon_sidebar_default = _template("ob", (input) => {
|
|
10992
11097
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10993
11098
|
const $scope0_id = _scope_id();
|
|
10994
11099
|
_set_serialize_reason({
|
|
@@ -11069,28 +11174,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11069
11174
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11070
11175
|
const otherIds = itemIds.filter((id) => id !== ws?.id);
|
|
11071
11176
|
const listIds = isPage && ws ? [ws.id, ...otherIds] : itemIds;
|
|
11072
|
-
_html(`<aside${_attr_class(["
|
|
11073
|
-
["
|
|
11074
|
-
["
|
|
11177
|
+
_html(`<aside${_attr_class(["_bS", {
|
|
11178
|
+
["_bQ"]: !navOpen,
|
|
11179
|
+
["_bR"]: isPage
|
|
11075
11180
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11076
11181
|
_if(() => {
|
|
11077
11182
|
if (isPage) {
|
|
11078
11183
|
const $scope1_id = _scope_id();
|
|
11079
|
-
_html(`<header${_attr_class("
|
|
11184
|
+
_html(`<header${_attr_class("_bV")}><div${_attr_class("_b4")}>`);
|
|
11080
11185
|
_if(() => {
|
|
11081
11186
|
if (input.instanceName) {
|
|
11082
11187
|
const $scope2_id = _scope_id();
|
|
11083
|
-
_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>`);
|
|
11084
11189
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11085
11190
|
return 0;
|
|
11086
11191
|
}
|
|
11087
11192
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11088
|
-
_html(`<h1${_attr_class("
|
|
11193
|
+
_html(`<h1${_attr_class("_bW")}>Workspaces</h1></div><div${_attr_class("_bX")}>`);
|
|
11089
11194
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11090
11195
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11091
11196
|
iconBtn,
|
|
11092
|
-
"
|
|
11093
|
-
{ ["
|
|
11197
|
+
"_bY",
|
|
11198
|
+
{ ["_bN"]: view === "settings" }
|
|
11094
11199
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11095
11200
|
icon_settings_default({ size: 16 });
|
|
11096
11201
|
_if(() => {
|
|
@@ -11109,7 +11214,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11109
11214
|
_if(() => {
|
|
11110
11215
|
if (!isPage && input.instanceName) {
|
|
11111
11216
|
const $scope3_id = _scope_id();
|
|
11112
|
-
_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>`);
|
|
11113
11218
|
writeScope($scope3_id, {});
|
|
11114
11219
|
return 0;
|
|
11115
11220
|
}
|
|
@@ -11117,13 +11222,13 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11117
11222
|
_if(() => {
|
|
11118
11223
|
if (navOpen || isPage) {
|
|
11119
11224
|
const $scope4_id = _scope_id();
|
|
11120
|
-
_html(`<div${_attr_class("
|
|
11225
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11121
11226
|
_for_of(listIds, (wsId) => {
|
|
11122
11227
|
const $scope5_id = _scope_id();
|
|
11123
11228
|
_if(() => {
|
|
11124
11229
|
if (isPage && wsId === ws?.id) {
|
|
11125
11230
|
const $scope14_id = _scope_id();
|
|
11126
|
-
_html(`<h2${_attr_class(["_bM", "
|
|
11231
|
+
_html(`<h2${_attr_class(["_bM", "_bZ"])}>Current</h2>`);
|
|
11127
11232
|
writeScope($scope14_id, {});
|
|
11128
11233
|
return 0;
|
|
11129
11234
|
}
|
|
@@ -11131,7 +11236,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11131
11236
|
_if(() => {
|
|
11132
11237
|
if (isPage && ws && wsId !== ws.id && wsId === otherIds[0]) {
|
|
11133
11238
|
const $scope15_id = _scope_id();
|
|
11134
|
-
_html(`<h2${_attr_class(["_bM", "
|
|
11239
|
+
_html(`<h2${_attr_class(["_bM", "_bZ"])}>Other workspaces</h2>`);
|
|
11135
11240
|
writeScope($scope15_id, {});
|
|
11136
11241
|
return 0;
|
|
11137
11242
|
}
|
|
@@ -11220,7 +11325,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11220
11325
|
railHover = null;
|
|
11221
11326
|
}, 150);
|
|
11222
11327
|
}, "A6", $scope6_id);
|
|
11223
|
-
_html(`<div${_attr_class("
|
|
11328
|
+
_html(`<div${_attr_class("_b6")}>`);
|
|
11224
11329
|
_for_of(itemIds, (wsId, i) => {
|
|
11225
11330
|
const $scope7_id = _scope_id();
|
|
11226
11331
|
_html("<span>");
|
|
@@ -11278,7 +11383,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11278
11383
|
if (railHover) {
|
|
11279
11384
|
const $scope8_id = _scope_id();
|
|
11280
11385
|
const hoverId = railHover.id;
|
|
11281
|
-
_html(`<div${_attr_class(["__", "
|
|
11386
|
+
_html(`<div${_attr_class(["__", "_b9"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11282
11387
|
_set_serialize_reason({
|
|
11283
11388
|
0: 1,
|
|
11284
11389
|
1: 1,
|
|
@@ -11373,7 +11478,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11373
11478
|
return 0;
|
|
11374
11479
|
}
|
|
11375
11480
|
}, $scope0_id, "e");
|
|
11376
|
-
_html(`<div${_attr_class("
|
|
11481
|
+
_html(`<div${_attr_class("_b7")}>`);
|
|
11377
11482
|
_if(() => {
|
|
11378
11483
|
if (isPage) {
|
|
11379
11484
|
const $scope10_id = _scope_id();
|
|
@@ -11381,7 +11486,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11381
11486
|
"_q",
|
|
11382
11487
|
"_r",
|
|
11383
11488
|
btnLg,
|
|
11384
|
-
"
|
|
11489
|
+
"_b0"
|
|
11385
11490
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11386
11491
|
icon_folder_plus_default({ size: 16 });
|
|
11387
11492
|
_html(` New workspace</a>${_el_resume($scope10_id, "a")}`);
|
|
@@ -11403,9 +11508,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11403
11508
|
return 1;
|
|
11404
11509
|
}
|
|
11405
11510
|
}, $scope9_id, "a", 1, 1, 1, "</button>", 1);
|
|
11406
|
-
_html(`<div${_attr_class(["_z", "
|
|
11511
|
+
_html(`<div${_attr_class(["_z", "_b8"])}></div>`);
|
|
11407
11512
|
_if(() => {}, $scope9_id, "c", 1, 1, 1, 0, 1);
|
|
11408
|
-
_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" : ""}>`);
|
|
11409
11514
|
icon_settings_default({});
|
|
11410
11515
|
_if(() => {
|
|
11411
11516
|
if (input.setupReady === false) {
|
|
@@ -11415,7 +11520,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
11415
11520
|
return 0;
|
|
11416
11521
|
}
|
|
11417
11522
|
}, $scope9_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11418
|
-
_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" : ""}>`);
|
|
11419
11524
|
icon_folder_plus_default({ size: 16 });
|
|
11420
11525
|
_html(`</a>${_el_resume($scope9_id, "g")}`);
|
|
11421
11526
|
_script($scope9_id, "A15");
|
|
@@ -11755,8 +11860,8 @@ function treeDirs(files) {
|
|
|
11755
11860
|
};
|
|
11756
11861
|
return build(root, "", "", -1);
|
|
11757
11862
|
}
|
|
11758
|
-
var treeToggle = "
|
|
11759
|
-
var pageTitle = "
|
|
11863
|
+
var treeToggle = "_gn _5 _l";
|
|
11864
|
+
var pageTitle = "_gu _cC";
|
|
11760
11865
|
//#endregion
|
|
11761
11866
|
//#region src/tags/diff-send.marko
|
|
11762
11867
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -11766,7 +11871,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11766
11871
|
let sendTarget = null;
|
|
11767
11872
|
const sessions = input.sessions || [];
|
|
11768
11873
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
11769
|
-
_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")}`);
|
|
11770
11875
|
_if(() => {
|
|
11771
11876
|
if (sessions.length === 1) {
|
|
11772
11877
|
const $scope1_id = _scope_id();
|
|
@@ -11776,11 +11881,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11776
11881
|
return 0;
|
|
11777
11882
|
} else if (sessions.length) {
|
|
11778
11883
|
const $scope2_id = _scope_id();
|
|
11779
|
-
_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")}`);
|
|
11780
11885
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
11781
11886
|
sendTarget = _new_sendTarget;
|
|
11782
11887
|
}, "j0", $scope2_id), () => {
|
|
11783
|
-
_html(`<select${_attr_class("
|
|
11888
|
+
_html(`<select${_attr_class("_hA")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
11784
11889
|
_for_of(sessions, (s) => {
|
|
11785
11890
|
const $scope3_id = _scope_id();
|
|
11786
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)}`);
|
|
@@ -13292,8 +13397,8 @@ function clip(line, at, len) {
|
|
|
13292
13397
|
const end = Math.min(line.length, at + len + pad);
|
|
13293
13398
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13294
13399
|
}
|
|
13295
|
-
var findInput = "
|
|
13296
|
-
var findIconBtn = "
|
|
13400
|
+
var findInput = "_hm _n";
|
|
13401
|
+
var findIconBtn = "_hp _l";
|
|
13297
13402
|
//#endregion
|
|
13298
13403
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13299
13404
|
var icon_arrow_down_default = _template("K", (input) => {
|
|
@@ -13381,9 +13486,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13381
13486
|
el.select();
|
|
13382
13487
|
}, 0);
|
|
13383
13488
|
}, "i0", $scope0_id);
|
|
13384
|
-
_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) {
|
|
13385
13490
|
type(v);
|
|
13386
|
-
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
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"}>`);
|
|
13387
13492
|
icon_arrow_up_default({ size: 14 });
|
|
13388
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"}>`);
|
|
13389
13494
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13485,9 +13590,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13485
13590
|
}
|
|
13486
13591
|
return shortHeadFallback(head);
|
|
13487
13592
|
}
|
|
13488
|
-
var repoWorktree = "
|
|
13489
|
-
var repoTitle = "
|
|
13490
|
-
var path$1 = "
|
|
13593
|
+
var repoWorktree = "_iq _y";
|
|
13594
|
+
var repoTitle = "_iw _x";
|
|
13595
|
+
var path$1 = "_iN _bb";
|
|
13491
13596
|
//#endregion
|
|
13492
13597
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13493
13598
|
var icon_chevron_down_default = _template("T", (input) => {
|
|
@@ -13561,7 +13666,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
13561
13666
|
_scope_reason();
|
|
13562
13667
|
const $scope0_id = _scope_id();
|
|
13563
13668
|
_el($scope0_id, "h0");
|
|
13564
|
-
_html(`<div${_attr_class(["
|
|
13669
|
+
_html(`<div${_attr_class(["_iR", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
13565
13670
|
_script($scope0_id, "h1");
|
|
13566
13671
|
writeScope($scope0_id, {
|
|
13567
13672
|
e: input.file,
|
|
@@ -13623,14 +13728,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13623
13728
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
13624
13729
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13625
13730
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
13626
|
-
_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 }])}>`);
|
|
13627
13732
|
_if(() => {
|
|
13628
13733
|
if (input.collapsible) {
|
|
13629
13734
|
const $scope1_id = _scope_id();
|
|
13630
|
-
_html(`<button type=button${_attr_class("
|
|
13631
|
-
"
|
|
13632
|
-
!input.collapsed && "
|
|
13633
|
-
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"
|
|
13634
13739
|
])} aria-hidden=true>`);
|
|
13635
13740
|
_if(() => {
|
|
13636
13741
|
if (input.collapsed) {
|
|
@@ -13669,14 +13774,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13669
13774
|
return 1;
|
|
13670
13775
|
}
|
|
13671
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);
|
|
13672
|
-
_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>`);
|
|
13673
13778
|
_if(() => {
|
|
13674
13779
|
if (compare$1.topic) {
|
|
13675
13780
|
const $scope16_id = _scope_id();
|
|
13676
13781
|
_html(`<span${_attr_class([
|
|
13677
13782
|
"_N",
|
|
13678
13783
|
tone.accent,
|
|
13679
|
-
"
|
|
13784
|
+
"_iB"
|
|
13680
13785
|
])}>${_text_resume($scope16_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13681
13786
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
13682
13787
|
return 0;
|
|
@@ -13689,7 +13794,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13689
13794
|
_html(`<button type=button${_attr_class([
|
|
13690
13795
|
"_N",
|
|
13691
13796
|
tone.warn,
|
|
13692
|
-
"
|
|
13797
|
+
"_iC"
|
|
13693
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")}`);
|
|
13694
13799
|
_script($scope2_id, "w10");
|
|
13695
13800
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13699,7 +13804,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13699
13804
|
_if(() => {
|
|
13700
13805
|
if (repo.contained && input.files.length) {
|
|
13701
13806
|
const $scope13_id = _scope_id();
|
|
13702
|
-
_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)}`);
|
|
13703
13808
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13704
13809
|
return 0;
|
|
13705
13810
|
}
|
|
@@ -13707,16 +13812,16 @@ var review_section_default = _template("w", (input) => {
|
|
|
13707
13812
|
_if(() => {
|
|
13708
13813
|
if (input.localDiffers) {
|
|
13709
13814
|
const $scope3_id = _scope_id();
|
|
13710
|
-
_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)}`);
|
|
13711
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) });
|
|
13712
13817
|
return 0;
|
|
13713
13818
|
}
|
|
13714
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);
|
|
13715
|
-
_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>`);
|
|
13716
13821
|
_if(() => {
|
|
13717
13822
|
if (stats.additions || stats.deletions) {
|
|
13718
13823
|
const $scope15_id = _scope_id();
|
|
13719
|
-
_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>`);
|
|
13720
13825
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
13721
13826
|
return 0;
|
|
13722
13827
|
}
|
|
@@ -13724,7 +13829,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13724
13829
|
_if(() => {
|
|
13725
13830
|
if (newCount || input.onlyNew) {
|
|
13726
13831
|
const $scope4_id = _scope_id();
|
|
13727
|
-
_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")}`);
|
|
13728
13833
|
_script($scope4_id, "w11");
|
|
13729
13834
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13730
13835
|
return 0;
|
|
@@ -13734,7 +13839,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13734
13839
|
_if(() => {
|
|
13735
13840
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
13736
13841
|
const $scope5_id = _scope_id();
|
|
13737
|
-
_html(`<div${_attr_class("
|
|
13842
|
+
_html(`<div${_attr_class("_iE")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
13738
13843
|
_for_of(input.files, (file$2) => {
|
|
13739
13844
|
const $scope6_id = _scope_id();
|
|
13740
13845
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -13747,14 +13852,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13747
13852
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
13748
13853
|
input.onFileToggle(file$2.key, open);
|
|
13749
13854
|
}, "w0", $scope6_id))}${_attr_class([
|
|
13750
|
-
"
|
|
13751
|
-
forceNear && "
|
|
13752
|
-
input.findHit?.key === file$2.key && "
|
|
13753
|
-
])}${_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))}`);
|
|
13754
13859
|
_if(() => {
|
|
13755
13860
|
if (file$2.changedSince) {
|
|
13756
13861
|
const $scope20_id = _scope_id();
|
|
13757
|
-
_html(`<span${_attr_class(["_A", "
|
|
13862
|
+
_html(`<span${_attr_class(["_A", "_iD"])} title="Changed since your last visit"></span>`);
|
|
13758
13863
|
$si__input_files && writeScope($scope20_id, {});
|
|
13759
13864
|
return 0;
|
|
13760
13865
|
}
|
|
@@ -13774,8 +13879,8 @@ var review_section_default = _template("w", (input) => {
|
|
|
13774
13879
|
const $scope14_id = _scope_id();
|
|
13775
13880
|
_html(`<button type=button${_attr_class([
|
|
13776
13881
|
iconBtnXs,
|
|
13777
|
-
"
|
|
13778
|
-
{ ["
|
|
13882
|
+
"_iP",
|
|
13883
|
+
{ ["_iQ"]: wholeFiles.has(file$2.key) }
|
|
13779
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"}>`);
|
|
13780
13885
|
_if(() => {
|
|
13781
13886
|
if (wholeFiles.has(file$2.key)) {
|
|
@@ -13802,17 +13907,17 @@ var review_section_default = _template("w", (input) => {
|
|
|
13802
13907
|
_if(() => {
|
|
13803
13908
|
if (file$2.binary) {
|
|
13804
13909
|
const $scope23_id = _scope_id();
|
|
13805
|
-
_html(`<p${_attr_class(["
|
|
13910
|
+
_html(`<p${_attr_class(["_iO", "_iH"])}>binary file</p>`);
|
|
13806
13911
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
13807
13912
|
return 0;
|
|
13808
13913
|
} else if (file$2.tooLarge) {
|
|
13809
13914
|
const $scope24_id = _scope_id();
|
|
13810
|
-
_html(`<p${_attr_class(["
|
|
13915
|
+
_html(`<p${_attr_class(["_iO", "_iH"])}>file too large to display</p>`);
|
|
13811
13916
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
13812
13917
|
return 1;
|
|
13813
13918
|
} else if (file$2.old == null && file$2.new == null) {
|
|
13814
13919
|
const $scope25_id = _scope_id();
|
|
13815
|
-
_html(`<p${_attr_class(["
|
|
13920
|
+
_html(`<p${_attr_class(["_iO", "_iH"])}>file could not be read</p>`);
|
|
13816
13921
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
13817
13922
|
return 2;
|
|
13818
13923
|
} else if (expanded) {
|
|
@@ -13820,7 +13925,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13820
13925
|
_if(() => {
|
|
13821
13926
|
if (!forceNear) {
|
|
13822
13927
|
const $scope8_id = _scope_id();
|
|
13823
|
-
_html(`<div${_attr_class("
|
|
13928
|
+
_html(`<div${_attr_class("_iJ")}></div>${_el_resume($scope8_id, "a")}`);
|
|
13824
13929
|
_script($scope8_id, "w13");
|
|
13825
13930
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
13826
13931
|
return 0;
|
|
@@ -13828,7 +13933,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13828
13933
|
const $scope9_id = _scope_id();
|
|
13829
13934
|
const $childScope = _peek_scope_id();
|
|
13830
13935
|
diff_file_default({
|
|
13831
|
-
class: "
|
|
13936
|
+
class: "_iH",
|
|
13832
13937
|
file: file$2,
|
|
13833
13938
|
comments: fileComments,
|
|
13834
13939
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -13969,7 +14074,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13969
14074
|
});
|
|
13970
14075
|
_resume_branch($scope0_id);
|
|
13971
14076
|
});
|
|
13972
|
-
var fileFilter = "
|
|
14077
|
+
var fileFilter = "_iT _n";
|
|
13973
14078
|
//#endregion
|
|
13974
14079
|
//#region src/tags/file-filter.marko
|
|
13975
14080
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -13999,7 +14104,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
13999
14104
|
pending = v;
|
|
14000
14105
|
box.timer = setTimeout(flush, 150);
|
|
14001
14106
|
}, "n2", $scope0_id);
|
|
14002
|
-
_html(`<div${_attr_class("
|
|
14107
|
+
_html(`<div${_attr_class("_iS")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
14003
14108
|
type(v);
|
|
14004
14109
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
14005
14110
|
_script($scope0_id, "n3");
|
|
@@ -14032,7 +14137,7 @@ var $content = (input) => {
|
|
|
14032
14137
|
_for_of(dir.dirs, (child) => {
|
|
14033
14138
|
const $scope1_id = _scope_id();
|
|
14034
14139
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14035
|
-
_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")}>`);
|
|
14036
14141
|
_if(() => {
|
|
14037
14142
|
if (shut) {
|
|
14038
14143
|
const $scope4_id = _scope_id();
|
|
@@ -14046,7 +14151,7 @@ var $content = (input) => {
|
|
|
14046
14151
|
return 1;
|
|
14047
14152
|
}
|
|
14048
14153
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14049
|
-
_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")}`);
|
|
14050
14155
|
_if(() => {
|
|
14051
14156
|
if (!shut) {
|
|
14052
14157
|
const $scope2_id = _scope_id();
|
|
@@ -14093,11 +14198,11 @@ var $content = (input) => {
|
|
|
14093
14198
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14094
14199
|
_for_of(dir.files, ({ file, name }) => {
|
|
14095
14200
|
const $scope3_id = _scope_id();
|
|
14096
|
-
_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>`);
|
|
14097
14202
|
_if(() => {
|
|
14098
14203
|
if (input.newKeys.has(file.key)) {
|
|
14099
14204
|
const $scope6_id = _scope_id();
|
|
14100
|
-
_html(`<span${_attr_class(["_A", "
|
|
14205
|
+
_html(`<span${_attr_class(["_A", "_h1"])} title="Changed since your last visit"></span>`);
|
|
14101
14206
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14102
14207
|
return 0;
|
|
14103
14208
|
}
|
|
@@ -14105,7 +14210,7 @@ var $content = (input) => {
|
|
|
14105
14210
|
_if(() => {
|
|
14106
14211
|
if (input.commentKeys.has(file.key)) {
|
|
14107
14212
|
const $scope7_id = _scope_id();
|
|
14108
|
-
_html(`<span${_attr_class("
|
|
14213
|
+
_html(`<span${_attr_class("_h2")}>`);
|
|
14109
14214
|
icon_comment_default({ size: 12 });
|
|
14110
14215
|
_html("</span>");
|
|
14111
14216
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14163,7 +14268,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14163
14268
|
scope: input.scope ?? null,
|
|
14164
14269
|
file: key
|
|
14165
14270
|
}), "l0", $scope0_id);
|
|
14166
|
-
_html(`<aside${_attr_class(["
|
|
14271
|
+
_html(`<aside${_attr_class(["_hO", { ["_hN"]: input.open === false }])}><div${_attr_class("_hP")}>`);
|
|
14167
14272
|
_set_serialize_reason(2);
|
|
14168
14273
|
const $childScope = _peek_scope_id();
|
|
14169
14274
|
file_filter_default({
|
|
@@ -14172,18 +14277,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14172
14277
|
filter = _new_filter;
|
|
14173
14278
|
}, "l1", $scope0_id)
|
|
14174
14279
|
});
|
|
14175
|
-
_html(`</div><div${_attr_class("
|
|
14280
|
+
_html(`</div><div${_attr_class("_hQ")}>`);
|
|
14176
14281
|
_if(() => {
|
|
14177
14282
|
if (!input.sections.length && filter) {
|
|
14178
14283
|
const $scope3_id = _scope_id();
|
|
14179
|
-
_html(`<p${_attr_class("
|
|
14284
|
+
_html(`<p${_attr_class("_hR")}>No files match.</p>`);
|
|
14180
14285
|
writeScope($scope3_id, {});
|
|
14181
14286
|
return 0;
|
|
14182
14287
|
}
|
|
14183
14288
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14184
14289
|
_for_of(input.sections, (section) => {
|
|
14185
14290
|
const $scope1_id = _scope_id();
|
|
14186
|
-
_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")}>`);
|
|
14187
14292
|
_if(() => {
|
|
14188
14293
|
if (collapsedRepos.has(section.id)) {
|
|
14189
14294
|
const $scope4_id = _scope_id();
|
|
@@ -14197,12 +14302,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14197
14302
|
return 1;
|
|
14198
14303
|
}
|
|
14199
14304
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14200
|
-
_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")}`);
|
|
14201
14306
|
_if(() => {
|
|
14202
14307
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14203
14308
|
const $scope2_id = _scope_id();
|
|
14204
14309
|
const root = treeDirs(section.files);
|
|
14205
|
-
_html(`<div${_attr_class("
|
|
14310
|
+
_html(`<div${_attr_class("_hU")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14206
14311
|
_set_serialize_reason(1);
|
|
14207
14312
|
const $childScope2 = _peek_scope_id();
|
|
14208
14313
|
diff_tree_dir_default({
|
|
@@ -14272,7 +14377,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14272
14377
|
});
|
|
14273
14378
|
_resume_branch($scope0_id);
|
|
14274
14379
|
});
|
|
14275
|
-
var sheetDir = "
|
|
14380
|
+
var sheetDir = "_ie _bb";
|
|
14276
14381
|
//#endregion
|
|
14277
14382
|
//#region src/tags/diff-file-sheet.marko
|
|
14278
14383
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14328,9 +14433,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14328
14433
|
_if(() => {
|
|
14329
14434
|
if (open) {
|
|
14330
14435
|
const $scope1_id = _scope_id();
|
|
14331
|
-
_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>`);
|
|
14332
14437
|
icon_xmark_default({ size: 16 });
|
|
14333
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14438
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_ig")}>`);
|
|
14334
14439
|
_set_serialize_reason(2);
|
|
14335
14440
|
const $childScope = _peek_scope_id();
|
|
14336
14441
|
file_filter_default({
|
|
@@ -14339,13 +14444,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14339
14444
|
filter = _new_filter;
|
|
14340
14445
|
}, "g1", $scope1_id)
|
|
14341
14446
|
});
|
|
14342
|
-
_html(`</div><div${_attr_class("
|
|
14447
|
+
_html(`</div><div${_attr_class("_h_")}>`);
|
|
14343
14448
|
_for_of(groups, (group) => {
|
|
14344
14449
|
const $scope2_id = _scope_id();
|
|
14345
|
-
_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>`);
|
|
14346
14451
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14347
14452
|
const $scope3_id = _scope_id();
|
|
14348
|
-
_html(`<div${_attr_class("
|
|
14453
|
+
_html(`<div${_attr_class("_ic")}>`);
|
|
14349
14454
|
_if(() => {
|
|
14350
14455
|
if (dir) {
|
|
14351
14456
|
const $scope5_id = _scope_id();
|
|
@@ -14356,11 +14461,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14356
14461
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14357
14462
|
_for_of(files, ({ file, name }) => {
|
|
14358
14463
|
const $scope4_id = _scope_id();
|
|
14359
|
-
_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>`);
|
|
14360
14465
|
_if(() => {
|
|
14361
14466
|
if (newKeys.has(file.key)) {
|
|
14362
14467
|
const $scope6_id = _scope_id();
|
|
14363
|
-
_html(`<span${_attr_class(["_A", "
|
|
14468
|
+
_html(`<span${_attr_class(["_A", "_ii"])} title="Changed since your last visit"></span>`);
|
|
14364
14469
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14365
14470
|
return 0;
|
|
14366
14471
|
}
|
|
@@ -14370,7 +14475,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14370
14475
|
const $scope7_id = _scope_id();
|
|
14371
14476
|
icon_comment_default({
|
|
14372
14477
|
size: 12,
|
|
14373
|
-
class: "
|
|
14478
|
+
class: "_ij"
|
|
14374
14479
|
});
|
|
14375
14480
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14376
14481
|
return 0;
|
|
@@ -14395,7 +14500,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14395
14500
|
_if(() => {
|
|
14396
14501
|
if (!input.files.length) {
|
|
14397
14502
|
const $scope8_id = _scope_id();
|
|
14398
|
-
_html(`<p${_attr_class("
|
|
14503
|
+
_html(`<p${_attr_class("_ih")}>No files match.</p>`);
|
|
14399
14504
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14400
14505
|
return 0;
|
|
14401
14506
|
}
|
|
@@ -14935,11 +15040,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14935
15040
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
14936
15041
|
}
|
|
14937
15042
|
}, "m33", $scope0_id);
|
|
14938
|
-
_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 }])}>`);
|
|
14939
15044
|
_if(() => {
|
|
14940
15045
|
if (input.onExit) {
|
|
14941
15046
|
const $scope1_id = _scope_id();
|
|
14942
|
-
_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)">`);
|
|
14943
15048
|
icon_back_default({ size: 14 });
|
|
14944
15049
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
14945
15050
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -14950,7 +15055,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14950
15055
|
_if(() => {
|
|
14951
15056
|
if (comments.length) {
|
|
14952
15057
|
const $scope5_id = _scope_id();
|
|
14953
|
-
_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>`);
|
|
14954
15059
|
writeScope($scope5_id, {});
|
|
14955
15060
|
return 0;
|
|
14956
15061
|
}
|
|
@@ -14958,7 +15063,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14958
15063
|
_if(() => {
|
|
14959
15064
|
if (comments.length) {
|
|
14960
15065
|
const $scope2_id = _scope_id();
|
|
14961
|
-
_html(`<span${_attr_class("
|
|
15066
|
+
_html(`<span${_attr_class("_gs")}>`);
|
|
14962
15067
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
14963
15068
|
const $childScope = _peek_scope_id();
|
|
14964
15069
|
diff_send_default({
|
|
@@ -14971,14 +15076,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14971
15076
|
return 0;
|
|
14972
15077
|
}
|
|
14973
15078
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
14974
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15079
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_go")}>`);
|
|
14975
15080
|
_if(() => {
|
|
14976
15081
|
if (hasFiles) {
|
|
14977
15082
|
const $scope12_id = _scope_id();
|
|
14978
15083
|
_html(`<button${_attr_class([
|
|
14979
15084
|
treeToggle,
|
|
14980
|
-
"
|
|
14981
|
-
{ ["
|
|
15085
|
+
"_gm",
|
|
15086
|
+
{ ["_gl"]: treeOpen }
|
|
14982
15087
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
14983
15088
|
icon_sidebar_default({ size: 14 });
|
|
14984
15089
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -14987,7 +15092,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14987
15092
|
return 0;
|
|
14988
15093
|
}
|
|
14989
15094
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
14990
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15095
|
+
_html(`<button${_attr_class([iconBtnRow, "_gm"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
14991
15096
|
_set_serialize_reason(1);
|
|
14992
15097
|
const $childScope2 = _peek_scope_id();
|
|
14993
15098
|
icon_refresh_default({
|
|
@@ -14998,19 +15103,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14998
15103
|
_if(() => {
|
|
14999
15104
|
if (hasFiles) {
|
|
15000
15105
|
const $scope13_id = _scope_id();
|
|
15001
|
-
_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")}`);
|
|
15002
15107
|
_script($scope13_id, "m53");
|
|
15003
15108
|
writeScope($scope13_id, {});
|
|
15004
15109
|
return 0;
|
|
15005
15110
|
}
|
|
15006
15111
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15007
|
-
_html(`<span${_attr_class(["_o", "
|
|
15112
|
+
_html(`<span${_attr_class(["_o", "_gB"])}>`);
|
|
15008
15113
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15009
15114
|
setScope(v);
|
|
15010
15115
|
}, "m0", $scope0_id), () => {
|
|
15011
|
-
_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>`);
|
|
15012
15117
|
});
|
|
15013
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15118
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_gx", { ["_gw"]: !findOpen }])}>`);
|
|
15014
15119
|
_set_serialize_reason(2);
|
|
15015
15120
|
const $childScope3 = _peek_scope_id();
|
|
15016
15121
|
let findFocus = diff_find_default({
|
|
@@ -15031,8 +15136,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15031
15136
|
const $scope14_id = _scope_id();
|
|
15032
15137
|
_html(`<button${_attr_class([
|
|
15033
15138
|
iconBtnRow,
|
|
15034
|
-
"
|
|
15035
|
-
"
|
|
15139
|
+
"_gv",
|
|
15140
|
+
"_gm"
|
|
15036
15141
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15037
15142
|
icon_search_default({ size: 14 });
|
|
15038
15143
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15041,7 +15146,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15041
15146
|
return 0;
|
|
15042
15147
|
}
|
|
15043
15148
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15044
|
-
_html(`</div></div><div${_attr_class("
|
|
15149
|
+
_html(`</div></div><div${_attr_class("_gy")} data-diff-main>`);
|
|
15045
15150
|
_if(() => {
|
|
15046
15151
|
if (error) {
|
|
15047
15152
|
const $scope6_id = _scope_id();
|
|
@@ -15064,7 +15169,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15064
15169
|
_if(() => {
|
|
15065
15170
|
if (!repos && loading) {
|
|
15066
15171
|
const $scope15_id = _scope_id();
|
|
15067
|
-
_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>`);
|
|
15068
15173
|
writeScope($scope15_id, {});
|
|
15069
15174
|
return 0;
|
|
15070
15175
|
}
|
|
@@ -15466,9 +15571,9 @@ function parseInvite(text) {
|
|
|
15466
15571
|
}
|
|
15467
15572
|
//#endregion
|
|
15468
15573
|
//#region src/tags/manage-workspace.css.ts
|
|
15469
|
-
var content$1 = "
|
|
15470
|
-
var pageMeta = "
|
|
15471
|
-
var pathMeta = "
|
|
15574
|
+
var content$1 = "_fK _cz";
|
|
15575
|
+
var pageMeta = "_fL _cE";
|
|
15576
|
+
var pathMeta = "_fO _y";
|
|
15472
15577
|
//#endregion
|
|
15473
15578
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15474
15579
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -15486,8 +15591,8 @@ var icon_clipboard_default = _template("V", (input) => {
|
|
|
15486
15591
|
});
|
|
15487
15592
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15488
15593
|
});
|
|
15489
|
-
var resultRow = "
|
|
15490
|
-
var resultBranch = "
|
|
15594
|
+
var resultRow = "_gW _I";
|
|
15595
|
+
var resultBranch = "_gY _4 _l";
|
|
15491
15596
|
//#endregion
|
|
15492
15597
|
//#region src/tags/icons/icon-branch.marko
|
|
15493
15598
|
var icon_branch_default = _template("R", (input) => {
|
|
@@ -15517,7 +15622,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15517
15622
|
let branchFilter = "";
|
|
15518
15623
|
let reloadTick = 0;
|
|
15519
15624
|
let refreshing = false;
|
|
15520
|
-
_html(`<div${_attr_class("
|
|
15625
|
+
_html(`<div${_attr_class("_g0")}>`);
|
|
15521
15626
|
_if(() => {
|
|
15522
15627
|
{
|
|
15523
15628
|
const $scope4_id = _scope_id();
|
|
@@ -15622,18 +15727,18 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15622
15727
|
_resume_branch($scope8_id);
|
|
15623
15728
|
}, $scope0_id) };
|
|
15624
15729
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
15625
|
-
_html(`<div${_attr_class([compact ? "
|
|
15730
|
+
_html(`<div${_attr_class([compact ? "_ch" : "_gQ", { ["_ci"]: compact && !input$2.open }])}>`);
|
|
15626
15731
|
_if(() => {
|
|
15627
15732
|
if (!compact && ssoPending.length) {
|
|
15628
15733
|
const $scope10_id = _scope_id();
|
|
15629
|
-
_html(`<div${_attr_class("
|
|
15734
|
+
_html(`<div${_attr_class("_gR")}>`);
|
|
15630
15735
|
ssoBlock.content({});
|
|
15631
15736
|
_html("</div>");
|
|
15632
15737
|
writeScope($scope10_id, {});
|
|
15633
15738
|
return 0;
|
|
15634
15739
|
}
|
|
15635
15740
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
15636
|
-
_html(`<label${_attr_class(["_1", compact && "
|
|
15741
|
+
_html(`<label${_attr_class(["_1", compact && "_cj"])}>`);
|
|
15637
15742
|
icon_search_default({
|
|
15638
15743
|
size: 14,
|
|
15639
15744
|
class: "_2"
|
|
@@ -15645,12 +15750,12 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15645
15750
|
}, "v0", $scope0_id))}${_attr_class([
|
|
15646
15751
|
compact ? "_Z" : inputLg,
|
|
15647
15752
|
"_3",
|
|
15648
|
-
compact && "
|
|
15753
|
+
compact && "_ck"
|
|
15649
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)}`);
|
|
15650
15755
|
_if(() => {
|
|
15651
15756
|
if (compact) {
|
|
15652
15757
|
const $scope1_id = _scope_id();
|
|
15653
|
-
_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)}>`);
|
|
15654
15759
|
icon_xmark_default({ size: 12 });
|
|
15655
15760
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
15656
15761
|
_script($scope1_id, "v14");
|
|
@@ -15658,11 +15763,11 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15658
15763
|
return 0;
|
|
15659
15764
|
}
|
|
15660
15765
|
}, $scope0_id, "f", $sg__input_compact__OR__input_open, $sg__input_compact, 1, 0, 1);
|
|
15661
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
15766
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_gS"])}${_attr("hidden", !hasBody || compact && !input$2.open)}>`);
|
|
15662
15767
|
_if(() => {
|
|
15663
15768
|
if (compact && ssoPending.length) {
|
|
15664
15769
|
const $scope11_id = _scope_id();
|
|
15665
|
-
_html(`<div${_attr_class("
|
|
15770
|
+
_html(`<div${_attr_class("_gR")}>`);
|
|
15666
15771
|
ssoBlock.content({});
|
|
15667
15772
|
_html("</div>");
|
|
15668
15773
|
writeScope($scope11_id, {});
|
|
@@ -15672,16 +15777,16 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15672
15777
|
_if(() => {
|
|
15673
15778
|
if (pasted) {
|
|
15674
15779
|
const $scope2_id = _scope_id();
|
|
15675
|
-
_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)`)}>`);
|
|
15676
15781
|
icon_plus_default({
|
|
15677
15782
|
size: 12,
|
|
15678
|
-
class: "
|
|
15783
|
+
class: "_g2"
|
|
15679
15784
|
});
|
|
15680
|
-
_html(`<span${_attr_class("
|
|
15785
|
+
_html(`<span${_attr_class("_g3")}>${_text_resume($scope2_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
15681
15786
|
_if(() => {
|
|
15682
15787
|
if (pastedForkable) {
|
|
15683
15788
|
const $scope9_id = _scope_id();
|
|
15684
|
-
_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"}>`);
|
|
15685
15790
|
_if(() => {
|
|
15686
15791
|
if (pasteWillFork) {
|
|
15687
15792
|
const $scope13_id = _scope_id();
|
|
@@ -15701,7 +15806,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15701
15806
|
return 0;
|
|
15702
15807
|
}
|
|
15703
15808
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
15704
|
-
_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}`)}>`);
|
|
15705
15810
|
icon_branch_default({ size: 12 });
|
|
15706
15811
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
15707
15812
|
_if(() => {
|
|
@@ -15736,15 +15841,15 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
15736
15841
|
_if(() => {
|
|
15737
15842
|
if (results.length) {
|
|
15738
15843
|
const $scope4_id = _scope_id();
|
|
15739
|
-
_html(`<ul${_attr_class("
|
|
15844
|
+
_html(`<ul${_attr_class("_gT")}>`);
|
|
15740
15845
|
_for_of(results, (repo, i) => {
|
|
15741
15846
|
const $scope5_id = _scope_id();
|
|
15742
|
-
_html(`<li><div${_attr_class(["
|
|
15847
|
+
_html(`<li><div${_attr_class(["_gV", { ["_gU"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
15743
15848
|
icon_plus_default({
|
|
15744
15849
|
size: 12,
|
|
15745
|
-
class: "
|
|
15850
|
+
class: "_g2"
|
|
15746
15851
|
});
|
|
15747
|
-
_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}`)}>`);
|
|
15748
15853
|
icon_branch_default({ size: 12 });
|
|
15749
15854
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
15750
15855
|
_if(() => {
|
|
@@ -15989,7 +16094,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
15989
16094
|
setTimeout(() => loadProcs(void 0), 500);
|
|
15990
16095
|
}, "q9", $scope0_id);
|
|
15991
16096
|
const titleId = _id();
|
|
15992
|
-
_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)}>`);
|
|
15993
16098
|
_set_serialize_reason(286);
|
|
15994
16099
|
let $actions;
|
|
15995
16100
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q17", () => {
|
|
@@ -16025,7 +16130,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16025
16130
|
meta: attrTag({ content: _content("q16", () => {
|
|
16026
16131
|
_scope_reason();
|
|
16027
16132
|
const $scope15_id = _scope_id();
|
|
16028
|
-
_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>`);
|
|
16029
16134
|
_if(() => {
|
|
16030
16135
|
if (ws.status !== "active") {
|
|
16031
16136
|
const $scope19_id = _scope_id();
|
|
@@ -16034,7 +16139,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16034
16139
|
return 0;
|
|
16035
16140
|
}
|
|
16036
16141
|
}, $scope15_id, "d", 1, 1, 1, 0, 1);
|
|
16037
|
-
_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")}`);
|
|
16038
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) })))));
|
|
16039
16144
|
_resume_branch($scope15_id);
|
|
16040
16145
|
}, $scope0_id) })
|
|
@@ -16067,23 +16172,23 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16067
16172
|
return 0;
|
|
16068
16173
|
}
|
|
16069
16174
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16070
|
-
_html(`<section${_attr_class("_by")}><div${_attr_class("_bz")}><h2${_attr_class("_bM")}>Workspace</h2></div><div${_attr_class(["_bD", "
|
|
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"])}>`);
|
|
16071
16176
|
_if(() => {
|
|
16072
16177
|
if (ws.status === "active") {
|
|
16073
16178
|
const $scope8_id = _scope_id();
|
|
16074
|
-
_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")}`);
|
|
16075
16180
|
_script($scope8_id, "q19");
|
|
16076
16181
|
writeScope($scope8_id, {});
|
|
16077
16182
|
return 0;
|
|
16078
16183
|
} else {
|
|
16079
16184
|
const $scope9_id = _scope_id();
|
|
16080
|
-
_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")}`);
|
|
16081
16186
|
_script($scope9_id, "q20");
|
|
16082
16187
|
writeScope($scope9_id, {});
|
|
16083
16188
|
return 1;
|
|
16084
16189
|
}
|
|
16085
16190
|
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
16086
|
-
_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([
|
|
16087
16192
|
btnSm,
|
|
16088
16193
|
"_t",
|
|
16089
16194
|
{ ["_s"]: confirmingDelete }
|
|
@@ -16119,8 +16224,8 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16119
16224
|
});
|
|
16120
16225
|
_html(`</button>${_el_resume($scope0_id, "z")}</div><ul${_attr_class([
|
|
16121
16226
|
"_bD",
|
|
16122
|
-
"
|
|
16123
|
-
"
|
|
16227
|
+
"_cG",
|
|
16228
|
+
"_cU"
|
|
16124
16229
|
])}>`);
|
|
16125
16230
|
_for_of(ws.repos, (row) => {
|
|
16126
16231
|
const $scope1_id = _scope_id();
|
|
@@ -16204,7 +16309,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16204
16309
|
return 0;
|
|
16205
16310
|
}
|
|
16206
16311
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
16207
|
-
_html(`</div><ul${_attr_class("
|
|
16312
|
+
_html(`</div><ul${_attr_class("_cq")}>`);
|
|
16208
16313
|
_for_of(wsSkills, (s) => {
|
|
16209
16314
|
const $scope3_id = _scope_id();
|
|
16210
16315
|
const $for_content2__s_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -16312,7 +16417,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16312
16417
|
_if(() => {
|
|
16313
16418
|
if (repoSkills.length) {
|
|
16314
16419
|
const $scope4_id = _scope_id();
|
|
16315
|
-
_html(`<ul${_attr_class("
|
|
16420
|
+
_html(`<ul${_attr_class("_cq")}>`);
|
|
16316
16421
|
_for_of(repoSkills, (s) => {
|
|
16317
16422
|
const $scope5_id = _scope_id();
|
|
16318
16423
|
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
@@ -16370,15 +16475,15 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16370
16475
|
const $scope17_id = _scope_id();
|
|
16371
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([
|
|
16372
16477
|
"_bD",
|
|
16373
|
-
"
|
|
16374
|
-
"
|
|
16478
|
+
"_cG",
|
|
16479
|
+
"_cU"
|
|
16375
16480
|
])}>`);
|
|
16376
16481
|
_for_of(running, (p) => {
|
|
16377
16482
|
const $scope18_id = _scope_id();
|
|
16378
16483
|
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bE")}${_attr("title", p.args)}><span${_attr_class([
|
|
16379
16484
|
"_bF",
|
|
16380
16485
|
"_y",
|
|
16381
|
-
"
|
|
16486
|
+
"_fP"
|
|
16382
16487
|
])}>${_text_resume($scope18_id, "d", p.cmd)}</span>`);
|
|
16383
16488
|
_if(() => {
|
|
16384
16489
|
if (p.ports.length) {
|
|
@@ -16476,11 +16581,11 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16476
16581
|
});
|
|
16477
16582
|
//#endregion
|
|
16478
16583
|
//#region src/tags/new-workspace.css.ts
|
|
16479
|
-
var content = "_cz
|
|
16480
|
-
var curBase = "
|
|
16481
|
-
var archived = "
|
|
16482
|
-
var archivedHint = "
|
|
16483
|
-
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";
|
|
16484
16589
|
//#endregion
|
|
16485
16590
|
//#region src/tags/icons/icon-group.marko
|
|
16486
16591
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -16500,8 +16605,8 @@ var icon_group_default = _template("eb", (input) => {
|
|
|
16500
16605
|
});
|
|
16501
16606
|
//#endregion
|
|
16502
16607
|
//#region src/tags/join-dialog.css.ts
|
|
16503
|
-
var dlg = "
|
|
16504
|
-
var hint = "
|
|
16608
|
+
var dlg = "_hB _eR";
|
|
16609
|
+
var hint = "_hC _X";
|
|
16505
16610
|
//#endregion
|
|
16506
16611
|
//#region src/tags/join-dialog.marko
|
|
16507
16612
|
var api$3;
|
|
@@ -16630,26 +16735,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16630
16735
|
content: _content("o12", () => {
|
|
16631
16736
|
_scope_reason();
|
|
16632
16737
|
const $scope1_id = _scope_id();
|
|
16633
|
-
_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([
|
|
16634
16739
|
"_Z",
|
|
16635
16740
|
"_y",
|
|
16636
|
-
"
|
|
16741
|
+
"_hE"
|
|
16637
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")}`);
|
|
16638
16743
|
_if(() => {
|
|
16639
16744
|
if (parsed.error) {
|
|
16640
16745
|
const $scope8_id = _scope_id();
|
|
16641
|
-
_html(`<p${_attr_class([hint, "
|
|
16746
|
+
_html(`<p${_attr_class([hint, "_hD"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
16642
16747
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
16643
16748
|
return 0;
|
|
16644
16749
|
} else if (parsed.ok) {
|
|
16645
16750
|
const $scope3_id = _scope_id();
|
|
16646
|
-
_html(`<ul${_attr_class("
|
|
16751
|
+
_html(`<ul${_attr_class("_hF")}>`);
|
|
16647
16752
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
16648
16753
|
const $scope9_id = _scope_id();
|
|
16649
|
-
_html(`<li${_attr_class("
|
|
16754
|
+
_html(`<li${_attr_class("_hG")}><span${_attr_class("_hH")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
16650
16755
|
writeScope($scope9_id, {});
|
|
16651
16756
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16652
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
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) => {
|
|
16653
16758
|
name = _new_name;
|
|
16654
16759
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
16655
16760
|
_script($scope3_id, "o8");
|
|
@@ -16686,10 +16791,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16686
16791
|
_if(() => {
|
|
16687
16792
|
if (busy && steps$2.length) {
|
|
16688
16793
|
const $scope6_id = _scope_id();
|
|
16689
|
-
_html(`<ul${_attr_class("
|
|
16794
|
+
_html(`<ul${_attr_class("_hJ")}>`);
|
|
16690
16795
|
_for_of(steps$2, (step$2, i) => {
|
|
16691
16796
|
const $scope7_id = _scope_id();
|
|
16692
|
-
_html(`<li${_attr_class(["
|
|
16797
|
+
_html(`<li${_attr_class(["_hL", { ["_hK"]: i === steps$2.length - 1 }])}>`);
|
|
16693
16798
|
_if(() => {
|
|
16694
16799
|
if (i === steps$2.length - 1) {
|
|
16695
16800
|
const $scope10_id = _scope_id();
|
|
@@ -16698,7 +16803,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
16698
16803
|
return 0;
|
|
16699
16804
|
} else {
|
|
16700
16805
|
const $scope11_id = _scope_id();
|
|
16701
|
-
_html(`<span${_attr_class("
|
|
16806
|
+
_html(`<span${_attr_class("_hM")}>`);
|
|
16702
16807
|
icon_check_default({ size: 14 });
|
|
16703
16808
|
_html("</span>");
|
|
16704
16809
|
writeScope($scope11_id, {});
|
|
@@ -16855,7 +16960,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16855
16960
|
}
|
|
16856
16961
|
}, "s6", $scope0_id);
|
|
16857
16962
|
const titleId = _id();
|
|
16858
|
-
_html(`<div${_attr_class("
|
|
16963
|
+
_html(`<div${_attr_class("_cx")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_cy")}><div${_attr_class(content)}>`);
|
|
16859
16964
|
_set_serialize_reason({
|
|
16860
16965
|
0: _serialize_guard($scope0_reason, 2),
|
|
16861
16966
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -16904,23 +17009,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16904
17009
|
return 0;
|
|
16905
17010
|
}
|
|
16906
17011
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
16907
|
-
_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) => {
|
|
16908
17013
|
name = _new_name;
|
|
16909
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_by")}><div${_attr_class("
|
|
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)}>`);
|
|
16910
17015
|
_set_serialize_reason(1);
|
|
16911
17016
|
const $childScope2 = _peek_scope_id();
|
|
16912
17017
|
icon_refresh_default({
|
|
16913
17018
|
size: 14,
|
|
16914
17019
|
class: catalogRefreshing && "_F"
|
|
16915
17020
|
});
|
|
16916
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
17021
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_fy")}>`);
|
|
16917
17022
|
_for_of(selected, (repo) => {
|
|
16918
17023
|
const $scope4_id = _scope_id();
|
|
16919
|
-
_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>`);
|
|
16920
17025
|
_if(() => {
|
|
16921
17026
|
if (repo.fork !== void 0) {
|
|
16922
17027
|
const $scope5_id = _scope_id();
|
|
16923
|
-
_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)}>`);
|
|
16924
17029
|
_if(() => {
|
|
16925
17030
|
if (repo.fork) {
|
|
16926
17031
|
const $scope14_id = _scope_id();
|
|
@@ -16943,7 +17048,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
16943
17048
|
_html(`<button${_attr_class([
|
|
16944
17049
|
curBase,
|
|
16945
17050
|
"_y",
|
|
16946
|
-
{ ["
|
|
17051
|
+
{ ["_fA"]: branchesFor === repo.fullName }
|
|
16947
17052
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
16948
17053
|
icon_branch_default({ size: 12 });
|
|
16949
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)}>`);
|
|
@@ -17004,10 +17109,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17004
17109
|
_if(() => {
|
|
17005
17110
|
if (busy && steps.length) {
|
|
17006
17111
|
const $scope11_id = _scope_id();
|
|
17007
|
-
_html(`<ul${_attr_class("
|
|
17112
|
+
_html(`<ul${_attr_class("_fD")}>`);
|
|
17008
17113
|
_for_of(steps, (step, i) => {
|
|
17009
17114
|
const $scope12_id = _scope_id();
|
|
17010
|
-
_html(`<li${_attr_class(["
|
|
17115
|
+
_html(`<li${_attr_class(["_fJ", { ["_fE"]: i === steps.length - 1 }])}>`);
|
|
17011
17116
|
_if(() => {
|
|
17012
17117
|
if (i === steps.length - 1) {
|
|
17013
17118
|
const $scope17_id = _scope_id();
|
|
@@ -17016,7 +17121,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17016
17121
|
return 0;
|
|
17017
17122
|
} else {
|
|
17018
17123
|
const $scope18_id = _scope_id();
|
|
17019
|
-
_html(`<span${_attr_class("
|
|
17124
|
+
_html(`<span${_attr_class("_fF")}>`);
|
|
17020
17125
|
icon_check_default({ size: 14 });
|
|
17021
17126
|
_html("</span>");
|
|
17022
17127
|
writeScope($scope18_id, {});
|
|
@@ -17030,7 +17135,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17030
17135
|
return 0;
|
|
17031
17136
|
}
|
|
17032
17137
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
17033
|
-
_html(`<div${_attr_class("
|
|
17138
|
+
_html(`<div${_attr_class("_fu")}>`);
|
|
17034
17139
|
_if(() => {
|
|
17035
17140
|
if (input.onExit || busy) {
|
|
17036
17141
|
const $scope1_id = _scope_id();
|
|
@@ -17043,12 +17148,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17043
17148
|
_html(`<button type=button${_attr_class([
|
|
17044
17149
|
btnLg,
|
|
17045
17150
|
"_r",
|
|
17046
|
-
"
|
|
17151
|
+
"_fv"
|
|
17047
17152
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
17048
17153
|
_if(() => {
|
|
17049
17154
|
if (archived$1.length) {
|
|
17050
17155
|
const $scope6_id = _scope_id();
|
|
17051
|
-
_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")}>`);
|
|
17052
17157
|
_for_of(archived$1, (ws) => {
|
|
17053
17158
|
const $scope7_id = _scope_id();
|
|
17054
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)}>`);
|
|
@@ -17131,12 +17236,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
17131
17236
|
});
|
|
17132
17237
|
_resume_branch($scope0_id);
|
|
17133
17238
|
});
|
|
17134
|
-
var kbtn = "
|
|
17135
|
-
var sessOpen = "
|
|
17136
|
-
var sessRename = "
|
|
17137
|
-
var dpadPaste = "
|
|
17138
|
-
var repeat = "
|
|
17139
|
-
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";
|
|
17140
17245
|
//#endregion
|
|
17141
17246
|
//#region src/tags/term-find.marko
|
|
17142
17247
|
var term_find_default = _template("D", (input) => {
|
|
@@ -17173,19 +17278,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
17173
17278
|
const canStep = hasQuery && open;
|
|
17174
17279
|
const keybar = input.placement === "keybar";
|
|
17175
17280
|
_html(`<div${_attr_class([
|
|
17176
|
-
"
|
|
17177
|
-
keybar ? "
|
|
17178
|
-
!open && "
|
|
17179
|
-
])} 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) {
|
|
17180
17285
|
if (!open) return;
|
|
17181
17286
|
query = v;
|
|
17182
17287
|
live.query = v;
|
|
17183
17288
|
run(0);
|
|
17184
|
-
}, "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"}>`);
|
|
17185
17290
|
icon_arrow_up_default({ size: 14 });
|
|
17186
|
-
_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"}>`);
|
|
17187
17292
|
icon_arrow_down_default({ size: 14 });
|
|
17188
|
-
_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"}>`);
|
|
17189
17294
|
icon_xmark_default({ size: 14 });
|
|
17190
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")}`);
|
|
17191
17296
|
const $return = focusInput;
|
|
@@ -17301,7 +17406,7 @@ var icon_enter_default = _template("ab", (input) => {
|
|
|
17301
17406
|
});
|
|
17302
17407
|
//#endregion
|
|
17303
17408
|
//#region src/tags/icons/icon-tab.marko
|
|
17304
|
-
var icon_tab_default = _template("
|
|
17409
|
+
var icon_tab_default = _template("qb", (input) => {
|
|
17305
17410
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17306
17411
|
const $scope0_id = _scope_id();
|
|
17307
17412
|
_set_serialize_reason({
|
|
@@ -17316,7 +17421,7 @@ var icon_tab_default = _template("nb", (input) => {
|
|
|
17316
17421
|
});
|
|
17317
17422
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
17318
17423
|
});
|
|
17319
|
-
_template("
|
|
17424
|
+
_template("sb", (input) => {
|
|
17320
17425
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
17321
17426
|
const $scope0_id = _scope_id();
|
|
17322
17427
|
_set_serialize_reason({
|
|
@@ -17606,7 +17711,7 @@ var term_default = _template("E", (input) => {
|
|
|
17606
17711
|
trapOpen = true;
|
|
17607
17712
|
}
|
|
17608
17713
|
}, "E13", $scope0_id);
|
|
17609
|
-
_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")}`);
|
|
17610
17715
|
_if(() => {
|
|
17611
17716
|
if (findOpen) {
|
|
17612
17717
|
const $scope12_id = _scope_id();
|
|
@@ -17636,7 +17741,7 @@ var term_default = _template("E", (input) => {
|
|
|
17636
17741
|
_if(() => {
|
|
17637
17742
|
if (uploading) {
|
|
17638
17743
|
const $scope21_id = _scope_id();
|
|
17639
|
-
_html(`<div${_attr_class("
|
|
17744
|
+
_html(`<div${_attr_class("_fX")}>uploading…</div>`);
|
|
17640
17745
|
writeScope($scope21_id, {});
|
|
17641
17746
|
return 0;
|
|
17642
17747
|
}
|
|
@@ -17644,7 +17749,7 @@ var term_default = _template("E", (input) => {
|
|
|
17644
17749
|
_if(() => {
|
|
17645
17750
|
if (copiedFlash) {
|
|
17646
17751
|
const $scope22_id = _scope_id();
|
|
17647
|
-
_html(`<div${_attr_class("
|
|
17752
|
+
_html(`<div${_attr_class("_fW")}>Copied</div>`);
|
|
17648
17753
|
writeScope($scope22_id, {});
|
|
17649
17754
|
return 0;
|
|
17650
17755
|
}
|
|
@@ -17653,7 +17758,7 @@ var term_default = _template("E", (input) => {
|
|
|
17653
17758
|
_if(() => {
|
|
17654
17759
|
if (trapOpen) {
|
|
17655
17760
|
const $scope11_id = _scope_id();
|
|
17656
|
-
_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")}`);
|
|
17657
17762
|
_script($scope11_id, "E28");
|
|
17658
17763
|
_script($scope11_id, "E29");
|
|
17659
17764
|
writeScope($scope11_id, {});
|
|
@@ -17731,7 +17836,7 @@ var term_default = _template("E", (input) => {
|
|
|
17731
17836
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
17732
17837
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
17733
17838
|
}, "E19", $scope4_id);
|
|
17734
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17839
|
+
_html(`<button${_attr_class([kbtn, "_f0"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
17735
17840
|
_set_serialize_reason({
|
|
17736
17841
|
1: $sg__input_agent__OR__input_sessionState,
|
|
17737
17842
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -17745,7 +17850,7 @@ var term_default = _template("E", (input) => {
|
|
|
17745
17850
|
"_A",
|
|
17746
17851
|
"_bc",
|
|
17747
17852
|
phase[sessionPhase(input.sessionState)]
|
|
17748
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 6))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["__", "
|
|
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"])}>`);
|
|
17749
17854
|
_if(() => {
|
|
17750
17855
|
if ((input.sessions || []).length > 0) {
|
|
17751
17856
|
const $scope5_id = _scope_id();
|
|
@@ -17761,7 +17866,7 @@ var term_default = _template("E", (input) => {
|
|
|
17761
17866
|
const $scope6_id = _scope_id();
|
|
17762
17867
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17763
17868
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
17764
|
-
_html(`<div${_attr_class(["
|
|
17869
|
+
_html(`<div${_attr_class(["_f3", { ["_f2"]: s.id === input.sessionId }])}>`);
|
|
17765
17870
|
_if(() => {
|
|
17766
17871
|
if (renamingId === s.id) {
|
|
17767
17872
|
const $scope24_id = _scope_id();
|
|
@@ -17793,7 +17898,7 @@ var term_default = _template("E", (input) => {
|
|
|
17793
17898
|
agent: activeAgent(s),
|
|
17794
17899
|
size: 14
|
|
17795
17900
|
});
|
|
17796
|
-
_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>`);
|
|
17797
17902
|
_if(() => {
|
|
17798
17903
|
if (s.id === input.sessionId) {
|
|
17799
17904
|
const $scope23_id = _scope_id();
|
|
@@ -17805,7 +17910,7 @@ var term_default = _template("E", (input) => {
|
|
|
17805
17910
|
const $childScope6 = _peek_scope_id();
|
|
17806
17911
|
usage_pcts_default({
|
|
17807
17912
|
agent: plan,
|
|
17808
|
-
class: "
|
|
17913
|
+
class: "_f6"
|
|
17809
17914
|
});
|
|
17810
17915
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
17811
17916
|
return 0;
|
|
@@ -17822,7 +17927,7 @@ var term_default = _template("E", (input) => {
|
|
|
17822
17927
|
_if(() => {
|
|
17823
17928
|
if (input.onRenameSession) {
|
|
17824
17929
|
const $scope25_id = _scope_id();
|
|
17825
|
-
_html(`<button${_attr_class(["
|
|
17930
|
+
_html(`<button${_attr_class(["_f9", "_f_"])} title="Rename session">`);
|
|
17826
17931
|
icon_edit_default({ size: 12 });
|
|
17827
17932
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
17828
17933
|
_script($scope25_id, "E32");
|
|
@@ -17834,7 +17939,7 @@ var term_default = _template("E", (input) => {
|
|
|
17834
17939
|
if (input.onCloseSession) {
|
|
17835
17940
|
const $scope8_id = _scope_id();
|
|
17836
17941
|
_html(`<button${_attr_class([
|
|
17837
|
-
"
|
|
17942
|
+
"_f9",
|
|
17838
17943
|
"_8",
|
|
17839
17944
|
{ ["_s"]: armedClose === s.id }
|
|
17840
17945
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -17876,7 +17981,7 @@ var term_default = _template("E", (input) => {
|
|
|
17876
17981
|
return 0;
|
|
17877
17982
|
}
|
|
17878
17983
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
17879
|
-
_html(`<div${_attr_class("
|
|
17984
|
+
_html(`<div${_attr_class("_ga")}><span${_attr_class("_gb")}>New session</span><div${_attr_class("_gc")}>`);
|
|
17880
17985
|
_for_of(["shell", ...input.agents || []], (agent) => {
|
|
17881
17986
|
const $scope9_id = _scope_id();
|
|
17882
17987
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -17921,9 +18026,9 @@ var term_default = _template("E", (input) => {
|
|
|
17921
18026
|
const dpadOpenBox = { open: false };
|
|
17922
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)}>`);
|
|
17923
18028
|
icon_dpad_default({ size: 16 });
|
|
17924
|
-
_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)}>`);
|
|
17925
18030
|
icon_search_default({ size: 16 });
|
|
17926
|
-
_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)}>`);
|
|
17927
18032
|
icon_keyboard_default({ size: 16 });
|
|
17928
18033
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
17929
18034
|
_script($scope10_id, "E38");
|
|
@@ -17939,7 +18044,7 @@ var term_default = _template("E", (input) => {
|
|
|
17939
18044
|
overlay: attrTag({ content: _content_resume("E49", () => {
|
|
17940
18045
|
_scope_reason();
|
|
17941
18046
|
const $scope15_id = _scope_id();
|
|
17942
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
18047
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_gd")}>`);
|
|
17943
18048
|
forOf(DPAD, (row) => {
|
|
17944
18049
|
const $scope16_id = _scope_id();
|
|
17945
18050
|
forOf(row, (cell) => {
|
|
@@ -17959,7 +18064,7 @@ var term_default = _template("E", (input) => {
|
|
|
17959
18064
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
17960
18065
|
} else {
|
|
17961
18066
|
const $scope19_id = _scope_id();
|
|
17962
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
18067
|
+
_html(`<button${_attr_class([repeat, { ["_gh"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
17963
18068
|
if (cell.icon === "arrow-up") {
|
|
17964
18069
|
_scope_id();
|
|
17965
18070
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -18076,7 +18181,7 @@ var api$1;
|
|
|
18076
18181
|
var isTransientApiError$1;
|
|
18077
18182
|
var $DiffView_withLoadAssets = withLoadAssets(diff_view_default, "_m");
|
|
18078
18183
|
var work_view_default = _template("I", (input) => {
|
|
18079
|
-
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);
|
|
18080
18185
|
const $scope0_id = _scope_id();
|
|
18081
18186
|
_hoist($scope0_id, "I38");
|
|
18082
18187
|
_hoist($scope0_id, "I39");
|
|
@@ -18288,10 +18393,10 @@ var work_view_default = _template("I", (input) => {
|
|
|
18288
18393
|
toggleDiff();
|
|
18289
18394
|
}
|
|
18290
18395
|
}, "I14", $scope0_id);
|
|
18291
|
-
_html(`<div${_attr_class(["
|
|
18292
|
-
["
|
|
18293
|
-
["
|
|
18294
|
-
}])}><div${_attr_class("
|
|
18396
|
+
_html(`<div${_attr_class(["_cb", {
|
|
18397
|
+
["_b_"]: view === "nav",
|
|
18398
|
+
["_ca"]: !input.active
|
|
18399
|
+
}])}><div${_attr_class("_cc")}>`);
|
|
18295
18400
|
_if(() => {
|
|
18296
18401
|
if (error) {
|
|
18297
18402
|
const $scope9_id = _scope_id();
|
|
@@ -18314,7 +18419,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18314
18419
|
_if(() => {
|
|
18315
18420
|
if (diffMounted && ws) {
|
|
18316
18421
|
const $scope1_id = _scope_id();
|
|
18317
|
-
_html(`<div${_attr_class("
|
|
18422
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
18318
18423
|
_set_serialize_reason({
|
|
18319
18424
|
0: $sg__input_workspace,
|
|
18320
18425
|
1: $sg__input_workspace,
|
|
@@ -18371,7 +18476,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18371
18476
|
_if(() => {
|
|
18372
18477
|
if (manageMounted && ws) {
|
|
18373
18478
|
const $scope2_id = _scope_id();
|
|
18374
|
-
_html(`<div${_attr_class("
|
|
18479
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
18375
18480
|
_set_serialize_reason({
|
|
18376
18481
|
0: $sg__input_workspace,
|
|
18377
18482
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -18397,7 +18502,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18397
18502
|
_if(() => {
|
|
18398
18503
|
if (settingsMounted) {
|
|
18399
18504
|
const $scope3_id = _scope_id();
|
|
18400
|
-
_html(`<div${_attr_class("
|
|
18505
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
18401
18506
|
_set_serialize_reason({
|
|
18402
18507
|
0: _serialize_guard($scope0_reason, 0),
|
|
18403
18508
|
1: $sg__input_workspace,
|
|
@@ -18405,7 +18510,8 @@ var work_view_default = _template("I", (input) => {
|
|
|
18405
18510
|
3: _serialize_guard($scope0_reason, 8),
|
|
18406
18511
|
4: $sg__input_workspace,
|
|
18407
18512
|
5: $sg__input_agents,
|
|
18408
|
-
6:
|
|
18513
|
+
6: $sg__input_instance,
|
|
18514
|
+
7: $sg__input_instance
|
|
18409
18515
|
});
|
|
18410
18516
|
const $childScope3 = _peek_scope_id();
|
|
18411
18517
|
settings_page_default({
|
|
@@ -18438,7 +18544,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18438
18544
|
_if(() => {
|
|
18439
18545
|
if (newMounted) {
|
|
18440
18546
|
const $scope4_id = _scope_id();
|
|
18441
|
-
_html(`<div${_attr_class("
|
|
18547
|
+
_html(`<div${_attr_class("_cd")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18442
18548
|
_set_serialize_reason({
|
|
18443
18549
|
0: 1,
|
|
18444
18550
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -18463,13 +18569,13 @@ var work_view_default = _template("I", (input) => {
|
|
|
18463
18569
|
return 0;
|
|
18464
18570
|
}
|
|
18465
18571
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
18466
|
-
_html(`<div${_attr_class(["
|
|
18572
|
+
_html(`<div${_attr_class(["_cf", { ["_ce"]: view !== "term" }])}>`);
|
|
18467
18573
|
_if(() => {
|
|
18468
18574
|
if (ws && shownSessions) {
|
|
18469
18575
|
const $scope5_id = _scope_id();
|
|
18470
18576
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18471
18577
|
const $scope6_id = _scope_id();
|
|
18472
|
-
_html(`<div${_attr_class("
|
|
18578
|
+
_html(`<div${_attr_class("_cg")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18473
18579
|
_set_serialize_reason({
|
|
18474
18580
|
0: 1,
|
|
18475
18581
|
1: 1,
|
|
@@ -18850,7 +18956,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
18850
18956
|
if (!selectedId && showSetup) {
|
|
18851
18957
|
const $scope3_id = _scope_id();
|
|
18852
18958
|
_html(`<div${_attr_class("_j")}>`);
|
|
18853
|
-
_set_serialize_reason(
|
|
18959
|
+
_set_serialize_reason(466);
|
|
18854
18960
|
const $childScope = _peek_scope_id();
|
|
18855
18961
|
settings_page_default({
|
|
18856
18962
|
preferred: settings ? settings.preferredAgent : "shell",
|
|
@@ -19156,7 +19262,7 @@ var app_page_default = _template("b", (input) => {
|
|
|
19156
19262
|
});
|
|
19157
19263
|
//#endregion
|
|
19158
19264
|
//#region src/routes/_app/new/+page.marko
|
|
19159
|
-
var _page_default$4 = _template("
|
|
19265
|
+
var _page_default$4 = _template("ub", (input) => {
|
|
19160
19266
|
_scope_reason();
|
|
19161
19267
|
_scope_id();
|
|
19162
19268
|
app_page_default({ initial: {
|
|
@@ -19194,7 +19300,7 @@ var GET$25 = Run.GET(async (_ctx, next) => {
|
|
|
19194
19300
|
});
|
|
19195
19301
|
//#endregion
|
|
19196
19302
|
//#region src/routes/_app/settings/+page.marko
|
|
19197
|
-
var _page_default$3 = _template("
|
|
19303
|
+
var _page_default$3 = _template("vb", (input) => {
|
|
19198
19304
|
_scope_reason();
|
|
19199
19305
|
_scope_id();
|
|
19200
19306
|
app_page_default({ initial: {
|
|
@@ -19227,7 +19333,7 @@ function head3(context) {
|
|
|
19227
19333
|
}
|
|
19228
19334
|
//#endregion
|
|
19229
19335
|
//#region src/routes/_app/w/$id/+page.marko
|
|
19230
|
-
var _page_default$2 = _template("
|
|
19336
|
+
var _page_default$2 = _template("wb", (input) => {
|
|
19231
19337
|
_scope_reason();
|
|
19232
19338
|
_scope_id();
|
|
19233
19339
|
const $global$3 = $global();
|
|
@@ -19261,7 +19367,7 @@ function head4(context) {
|
|
|
19261
19367
|
}
|
|
19262
19368
|
//#endregion
|
|
19263
19369
|
//#region src/routes/_app/w/$id/manage/+page.marko
|
|
19264
|
-
var _page_default$1 = _template("
|
|
19370
|
+
var _page_default$1 = _template("xb", (input) => {
|
|
19265
19371
|
_scope_reason();
|
|
19266
19372
|
_scope_id();
|
|
19267
19373
|
app_page_default({ initial: {
|
|
@@ -19293,7 +19399,7 @@ function head5(context) {
|
|
|
19293
19399
|
}
|
|
19294
19400
|
//#endregion
|
|
19295
19401
|
//#region src/routes/_app/w/$id/review/+page.marko
|
|
19296
|
-
var _page_default = _template("
|
|
19402
|
+
var _page_default = _template("yb", (input) => {
|
|
19297
19403
|
_scope_reason();
|
|
19298
19404
|
_scope_id();
|
|
19299
19405
|
const $global$1 = $global();
|
|
@@ -20405,7 +20511,7 @@ function post14(context) {
|
|
|
20405
20511
|
}
|
|
20406
20512
|
//#endregion
|
|
20407
20513
|
//#region __marko-run__api.instance.icon.js
|
|
20408
|
-
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: {
|
|
20409
20515
|
"content-type": "image/svg+xml",
|
|
20410
20516
|
"cache-control": "public, max-age=3600"
|
|
20411
20517
|
} })), "GET");
|
|
@@ -27395,4 +27501,4 @@ server.listen(port, () => {
|
|
|
27395
27501
|
//#endregion
|
|
27396
27502
|
export {};
|
|
27397
27503
|
|
|
27398
|
-
;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\"",">"]}};
|