@dylanpiercey/work 0.0.154 → 0.0.155
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 +612 -600
- package/dist/public/assets/{_D1NQ8Ak7.js → _1gUZhn72.js} +1 -1
- package/dist/public/assets/_1gUZhn72.js.br +0 -0
- package/dist/public/assets/_3wdC4kjt.js +1 -0
- package/dist/public/assets/_8LoUYieB.js +1 -0
- package/dist/public/assets/_BHkh0C4r.js +1 -0
- package/dist/public/assets/_BxsNwKYs.js +1 -0
- package/dist/public/assets/_C-7E8N0G.js +1 -0
- package/dist/public/assets/{_DQjqPqJ6.js → _CEMoDLXP.js} +19 -19
- package/dist/public/assets/_CEMoDLXP.js.br +0 -0
- package/dist/public/assets/_CH1656a4.js +1 -0
- package/dist/public/assets/_CYNLMVHd.js +1 -0
- package/dist/public/assets/_CZWK2oF5.js +1 -0
- package/dist/public/assets/_C_fb7SlO.js +1 -0
- package/dist/public/assets/_Chgv7FAK.js +1 -0
- package/dist/public/assets/_CsjqksEp.js +1 -0
- package/dist/public/assets/_D0ziDtl8.js +1 -0
- package/dist/public/assets/_DEh3RwEA.js +1 -0
- package/dist/public/assets/_DK2H3WGf.js +1 -0
- package/dist/public/assets/_DyNsNUHj.js +1 -0
- package/dist/public/assets/{_Cdz2XtpX.js → _RyGFT-OL.js} +4 -4
- package/dist/public/assets/_RyGFT-OL.js.br +0 -0
- package/dist/public/assets/_UNGY8FMp.js +1 -0
- package/dist/public/assets/__Emydtfa.js +1 -0
- package/dist/public/assets/_mywpJcKx.js +1 -0
- package/dist/public/assets/_o6cgOqS_.js +1 -0
- package/dist/public/assets/app-page-CrdRBxBQ.css +1 -0
- package/dist/public/assets/app-page-CrdRBxBQ.css.br +0 -0
- package/dist/public/assets/diff-view-Cr-PefQe.js +2 -0
- package/dist/public/assets/diff-view-CyfjTVs-.css +1 -0
- package/dist/public/assets/diff-view-CyfjTVs-.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-DWdcJRsU.css → icon-arrow-down-Cx-52UZC.css} +1 -1
- package/dist/public/assets/icon-arrow-down-Cx-52UZC.css.br +0 -0
- package/dist/public/assets/new-C_aFgj9M.js +1 -0
- package/dist/public/assets/settings-C_aFgj9M.js +1 -0
- package/dist/public/assets/w-C_aFgj9M.js +1 -0
- package/dist/public/assets/w._-BmFMmeGE.js +1 -0
- package/dist/public/assets/w._-C_aFgj9M.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_BXNuoDV3.js +0 -1
- package/dist/public/assets/_Bcy6Pq2-.js +0 -1
- package/dist/public/assets/_BjJumygZ.js +0 -1
- package/dist/public/assets/_CEKjLIVs.js +0 -1
- package/dist/public/assets/_CSo-Q5Mw.js +0 -1
- package/dist/public/assets/_Cdz2XtpX.js.br +0 -0
- package/dist/public/assets/_Ct1taywS.js +0 -1
- package/dist/public/assets/_Cy-hb_bd.js +0 -1
- package/dist/public/assets/_D-_EO5gk.js +0 -1
- package/dist/public/assets/_D-pZx7Du.js +0 -1
- package/dist/public/assets/_D1NQ8Ak7.js.br +0 -0
- package/dist/public/assets/_DCrsdU84.js +0 -1
- package/dist/public/assets/_DDIWSDe6.js +0 -1
- package/dist/public/assets/_DFwE0FAS.js +0 -1
- package/dist/public/assets/_DHlr4Tsy.js +0 -1
- package/dist/public/assets/_DQjqPqJ6.js.br +0 -0
- package/dist/public/assets/_DaY1YO13.js +0 -1
- package/dist/public/assets/_DqM4h5qK.js +0 -1
- package/dist/public/assets/_LzBeeO2Z.js +0 -1
- package/dist/public/assets/_SSjhgH1l.js +0 -1
- package/dist/public/assets/_mcwV1QCh.js +0 -1
- package/dist/public/assets/_ryNxYsOR.js +0 -1
- package/dist/public/assets/app-page-CEMTHZv1.css +0 -1
- package/dist/public/assets/app-page-CEMTHZv1.css.br +0 -0
- package/dist/public/assets/diff-view-C7n2ViB6.css +0 -1
- package/dist/public/assets/diff-view-C7n2ViB6.css.br +0 -0
- package/dist/public/assets/diff-view-DqyO3Q0l.js +0 -2
- package/dist/public/assets/icon-arrow-down-DWdcJRsU.css.br +0 -0
- package/dist/public/assets/new-FeHAUUAK.js +0 -1
- package/dist/public/assets/settings-FeHAUUAK.js +0 -1
- package/dist/public/assets/w-FeHAUUAK.js +0 -1
- package/dist/public/assets/w._-D-RmquIa.js +0 -1
- package/dist/public/assets/w._-FeHAUUAK.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -7246,19 +7246,19 @@ function applyInstance(inst) {
|
|
|
7246
7246
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7247
7247
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7248
7248
|
}
|
|
7249
|
-
var agentList = "
|
|
7250
|
-
var agentRow = "
|
|
7251
|
-
var toolGrid = "
|
|
7252
|
-
var toolRow = "
|
|
7253
|
-
var themeSeg = "
|
|
7254
|
-
var checkList = "
|
|
7255
|
-
var list$2 = "
|
|
7256
|
-
var flatCardRow = "
|
|
7257
|
-
var pop$1 = "
|
|
7258
|
-
var spinner = "
|
|
7259
|
-
var busy = "
|
|
7260
|
-
var pop = "
|
|
7261
|
-
var sectionCount = "
|
|
7249
|
+
var agentList = "_cZ _ce _cM _cX";
|
|
7250
|
+
var agentRow = "_c3 _cN";
|
|
7251
|
+
var toolGrid = "_da _cX";
|
|
7252
|
+
var toolRow = "_db _cY";
|
|
7253
|
+
var themeSeg = "_dz _be";
|
|
7254
|
+
var checkList = "_d5 _cc";
|
|
7255
|
+
var list$2 = "_cZ _ce _cM _cX";
|
|
7256
|
+
var flatCardRow = "_c0 _cY";
|
|
7257
|
+
var pop$1 = "_cI __";
|
|
7258
|
+
var spinner = "_cL _2 _G";
|
|
7259
|
+
var busy = "_cy _cx";
|
|
7260
|
+
var pop = "_cA __";
|
|
7261
|
+
var sectionCount = "_cb _N _O";
|
|
7262
7262
|
var iconBtn$1 = "_5 _l";
|
|
7263
7263
|
//#endregion
|
|
7264
7264
|
//#region src/tags/icons/icon-refresh.marko
|
|
@@ -7299,18 +7299,18 @@ var icon_back_default = _template("R", (input) => {
|
|
|
7299
7299
|
var page_head_default = _template("u", (input) => {
|
|
7300
7300
|
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);
|
|
7301
7301
|
const $scope0_id = _scope_id();
|
|
7302
|
-
_html(`<header${_attr_class("
|
|
7302
|
+
_html(`<header${_attr_class("_eb")}>`);
|
|
7303
7303
|
_if(() => {
|
|
7304
7304
|
if (input.backHref) {
|
|
7305
7305
|
const $scope1_id = _scope_id();
|
|
7306
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7306
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7307
7307
|
icon_back_default({ size: 14 });
|
|
7308
7308
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7309
7309
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7310
7310
|
return 0;
|
|
7311
7311
|
} else if (input.onBack) {
|
|
7312
7312
|
const $scope2_id = _scope_id();
|
|
7313
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7313
|
+
_html(`<button${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7314
7314
|
icon_back_default({ size: 14 });
|
|
7315
7315
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7316
7316
|
_script($scope2_id, "u0");
|
|
@@ -7318,11 +7318,11 @@ var page_head_default = _template("u", (input) => {
|
|
|
7318
7318
|
return 1;
|
|
7319
7319
|
}
|
|
7320
7320
|
}, $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);
|
|
7321
|
-
_html(`<div${_attr_class("
|
|
7321
|
+
_html(`<div${_attr_class("_ed")}><h1${_attr("id", input.titleId)}${_attr_class("_ec")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7322
7322
|
_if(() => {
|
|
7323
7323
|
if (input.meta) {
|
|
7324
7324
|
const $scope3_id = _scope_id();
|
|
7325
|
-
_html(`<p${_attr_class("
|
|
7325
|
+
_html(`<p${_attr_class("_ee")}>`);
|
|
7326
7326
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7327
7327
|
_html("</p>");
|
|
7328
7328
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7333,7 +7333,7 @@ var page_head_default = _template("u", (input) => {
|
|
|
7333
7333
|
_if(() => {
|
|
7334
7334
|
if (input.actions) {
|
|
7335
7335
|
const $scope4_id = _scope_id();
|
|
7336
|
-
_html(`<div${_attr_class("
|
|
7336
|
+
_html(`<div${_attr_class("_ef")}>`);
|
|
7337
7337
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7338
7338
|
_html("</div>");
|
|
7339
7339
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7401,7 +7401,7 @@ var icon_agent_default = _template("L", (input) => {
|
|
|
7401
7401
|
n: $badge__closures
|
|
7402
7402
|
});
|
|
7403
7403
|
});
|
|
7404
|
-
var usageNote = "
|
|
7404
|
+
var usageNote = "_g9 _X";
|
|
7405
7405
|
//#endregion
|
|
7406
7406
|
//#region src/tags/icons/icon-warning.marko
|
|
7407
7407
|
var icon_warning_default = _template("sb", (input) => {
|
|
@@ -7431,11 +7431,11 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7431
7431
|
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);
|
|
7432
7432
|
const $scope0_id = _scope_id();
|
|
7433
7433
|
const agent = input.agent;
|
|
7434
|
-
_html(`<div${_attr_class(["
|
|
7434
|
+
_html(`<div${_attr_class(["_g3", { ["_g4"]: input.hideName }])}><div${_attr_class("_g5")}>`);
|
|
7435
7435
|
_if(() => {
|
|
7436
7436
|
if (!input.hideName) {
|
|
7437
7437
|
const $scope1_id = _scope_id();
|
|
7438
|
-
_html(`<strong${_attr_class("
|
|
7438
|
+
_html(`<strong${_attr_class("_hn")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7439
7439
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7440
7440
|
return 0;
|
|
7441
7441
|
}
|
|
@@ -7443,7 +7443,7 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7443
7443
|
_if(() => {
|
|
7444
7444
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7445
7445
|
const $scope2_id = _scope_id();
|
|
7446
|
-
_html(`<span${_attr_class("
|
|
7446
|
+
_html(`<span${_attr_class("_g6")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7447
7447
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7448
7448
|
return 0;
|
|
7449
7449
|
}
|
|
@@ -7451,21 +7451,21 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7451
7451
|
_if(() => {
|
|
7452
7452
|
if (agent.stale_seconds != null) {
|
|
7453
7453
|
const $scope3_id = _scope_id();
|
|
7454
|
-
_html(`<span${_attr_class("
|
|
7454
|
+
_html(`<span${_attr_class("_g7")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7455
7455
|
icon_warning_default({ size: 12 });
|
|
7456
7456
|
_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)}`);
|
|
7457
7457
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7458
7458
|
return 0;
|
|
7459
7459
|
}
|
|
7460
7460
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7461
|
-
_html(`</div><div${_attr_class(["
|
|
7461
|
+
_html(`</div><div${_attr_class(["_g8", { ["_ho"]: agent.stale_seconds != null }])}>`);
|
|
7462
7462
|
_for_of(agent.windows || [], (win) => {
|
|
7463
7463
|
const $scope4_id = _scope_id();
|
|
7464
7464
|
const pct = pctText(win.used_percent);
|
|
7465
7465
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7466
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7467
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7468
|
-
_html(`<div${_attr_class("
|
|
7466
|
+
const fillClass = win.used_percent >= 90 ? "_hg" : win.used_percent >= 70 ? "_hf" : win.used_percent >= 40 ? "_he" : "_hd";
|
|
7467
|
+
const pctClass = win.used_percent >= 90 ? "_hl" : win.used_percent >= 70 ? "_hk" : win.used_percent >= 40 ? "_hj" : "_hi";
|
|
7468
|
+
_html(`<div${_attr_class("_g_")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_ha")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_hb")}><span${_attr_class(["_hc", 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(["_hh", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hm")}>`);
|
|
7469
7469
|
_if(() => {
|
|
7470
7470
|
if (label) {
|
|
7471
7471
|
const $scope6_id = _scope_id();
|
|
@@ -7582,14 +7582,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7582
7582
|
localCode = null;
|
|
7583
7583
|
}
|
|
7584
7584
|
}, "D0", $scope0_id);
|
|
7585
|
-
_html(`<div${_attr_class(["
|
|
7585
|
+
_html(`<div${_attr_class(["_gL", input.class])}>`);
|
|
7586
7586
|
_for_of(input.items, (s) => {
|
|
7587
7587
|
const $scope1_id = _scope_id();
|
|
7588
|
-
_html(`<div${_attr_class("
|
|
7588
|
+
_html(`<div${_attr_class("_gM")}><span${_attr_class("_gO")}><span${_attr_class("_gP")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gQ", "_gR"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7589
7589
|
_if(() => {
|
|
7590
7590
|
if (!busy) {
|
|
7591
7591
|
const $scope2_id = _scope_id();
|
|
7592
|
-
_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, "
|
|
7592
|
+
_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, "_gS"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7593
7593
|
_script($scope2_id, "D1");
|
|
7594
7594
|
writeScope($scope2_id, {});
|
|
7595
7595
|
return 0;
|
|
@@ -7604,13 +7604,13 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7604
7604
|
_if(() => {
|
|
7605
7605
|
if (localBusy && localCode) {
|
|
7606
7606
|
const $scope4_id = _scope_id();
|
|
7607
|
-
_html(`<div${_attr_class(["
|
|
7607
|
+
_html(`<div${_attr_class(["_gM", "_gT"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gU")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gV")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7608
7608
|
_script($scope4_id, "D2");
|
|
7609
7609
|
writeScope($scope4_id, {});
|
|
7610
7610
|
return 0;
|
|
7611
7611
|
} else if (localBusy) {
|
|
7612
7612
|
const $scope6_id = _scope_id();
|
|
7613
|
-
_html(`<div${_attr_class(["
|
|
7613
|
+
_html(`<div${_attr_class(["_gM", "_gT"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7614
7614
|
writeScope($scope6_id, {});
|
|
7615
7615
|
return 1;
|
|
7616
7616
|
}
|
|
@@ -7618,14 +7618,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7618
7618
|
_if(() => {
|
|
7619
7619
|
if (localError) {
|
|
7620
7620
|
const $scope5_id = _scope_id();
|
|
7621
|
-
_html(`<p${_attr_class(["
|
|
7621
|
+
_html(`<p${_attr_class(["_gM", "_gW"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7622
7622
|
writeScope($scope5_id, {});
|
|
7623
7623
|
return 0;
|
|
7624
7624
|
}
|
|
7625
7625
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7626
7626
|
_for_of(skipped, (s) => {
|
|
7627
7627
|
const $scope3_id = _scope_id();
|
|
7628
|
-
_html(`<div${_attr_class(["
|
|
7628
|
+
_html(`<div${_attr_class(["_gM", "_gN"])}><span${_attr_class("_gO")}><span${_attr_class("_gP")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gQ")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gS"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7629
7629
|
_script($scope3_id, "D3");
|
|
7630
7630
|
writeScope($scope3_id, {
|
|
7631
7631
|
i: s?.org,
|
|
@@ -7693,7 +7693,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7693
7693
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7694
7694
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7695
7695
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7696
|
-
_html(`<li${_attr_class("
|
|
7696
|
+
_html(`<li${_attr_class("_cw")}>`);
|
|
7697
7697
|
_if(() => {
|
|
7698
7698
|
if (input.busy != null) {
|
|
7699
7699
|
const $scope1_id = _scope_id();
|
|
@@ -7703,20 +7703,20 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7703
7703
|
} else {
|
|
7704
7704
|
const $scope2_id = _scope_id();
|
|
7705
7705
|
const popId = _id();
|
|
7706
|
-
_html(`<button${_attr_class("
|
|
7706
|
+
_html(`<button${_attr_class("_cx")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7707
7707
|
_if(() => {
|
|
7708
7708
|
if (input.hint) {
|
|
7709
7709
|
const $scope3_id = _scope_id();
|
|
7710
|
-
_html(`<span${_attr_class("
|
|
7710
|
+
_html(`<span${_attr_class("_cz")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7711
7711
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7712
7712
|
return 0;
|
|
7713
7713
|
}
|
|
7714
7714
|
}, $scope2_id, "c", $sg__input_hint, $sg__input_hint, $sg__input_hint__OR__input_description__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal__OR__input_tags__OR__input_actions__OR__input_trailing, 0, 1);
|
|
7715
|
-
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["
|
|
7715
|
+
_html(`</button>${_el_resume($scope2_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(pop)}><span${_attr_class(["_cg", "_y"])}>${_text_resume($scope2_id, "f", input.name, $sg__input_name)}</span>`);
|
|
7716
7716
|
_if(() => {
|
|
7717
7717
|
if (input.description) {
|
|
7718
7718
|
const $scope4_id = _scope_id();
|
|
7719
|
-
_html(`<span${_attr_class("
|
|
7719
|
+
_html(`<span${_attr_class("_ci")}${_attr("title", input.description)}>${_text_resume($scope4_id, "b", input.description, $sg__input_description)}</span>${_el_resume($scope4_id, "a", $sg__input_description)}`);
|
|
7720
7720
|
$si__input_busy__OR__input_description && _subscribe($si__input_description && $input_description__closures, writeScope($scope4_id, { _: _scope_with_id($scope2_id) }));
|
|
7721
7721
|
return 0;
|
|
7722
7722
|
}
|
|
@@ -7724,12 +7724,12 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7724
7724
|
_if(() => {
|
|
7725
7725
|
if (input.sourceUrl) {
|
|
7726
7726
|
const $scope5_id = _scope_id();
|
|
7727
|
-
_html(`<a${_attr_class(["
|
|
7727
|
+
_html(`<a${_attr_class(["_ci", "_K"])}${_attr("href", input.sourceUrl)} target=_blank rel=noopener${_attr("title", `Open ${input.source} on GitHub`)}>${_text_resume($scope5_id, "b", input.source, $sg__input_source)}</a>${_el_resume($scope5_id, "a", _serialize_guard($scope0_reason, 6))}`);
|
|
7728
7728
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, _subscribe($si__input_sourceUrl && $input_sourceUrl__closures, writeScope($scope5_id, { _: _scope_with_id($scope2_id) })));
|
|
7729
7729
|
return 0;
|
|
7730
7730
|
} else if (input.source) {
|
|
7731
7731
|
const $scope6_id = _scope_id();
|
|
7732
|
-
_html(`<span${_attr_class("
|
|
7732
|
+
_html(`<span${_attr_class("_ci")}>${_text_resume($scope6_id, "b", input.source, $sg__input_source)}</span>`);
|
|
7733
7733
|
$si__input_busy__OR__input_sourceUrl__OR__input_source__OR__input_noteLocal && _subscribe($si__input_source && $input_source__closures, writeScope($scope6_id, {
|
|
7734
7734
|
_: _scope_with_id($scope2_id),
|
|
7735
7735
|
Cs: $si__input_source && 1
|
|
@@ -7737,7 +7737,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7737
7737
|
return 1;
|
|
7738
7738
|
} else if (input.noteLocal) {
|
|
7739
7739
|
const $scope10_id = _scope_id();
|
|
7740
|
-
_html(`<span${_attr_class(["
|
|
7740
|
+
_html(`<span${_attr_class(["_ci", "_x"])} title="Not installed from a source, so it cannot be updated">local only</span>`);
|
|
7741
7741
|
_serialize_if($scope0_reason, 8) && writeScope($scope10_id, {});
|
|
7742
7742
|
return 2;
|
|
7743
7743
|
}
|
|
@@ -7745,7 +7745,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7745
7745
|
_if(() => {
|
|
7746
7746
|
if (input.tags) {
|
|
7747
7747
|
const $scope7_id = _scope_id();
|
|
7748
|
-
_html(`<span${_attr_class("
|
|
7748
|
+
_html(`<span${_attr_class("_ch")}>`);
|
|
7749
7749
|
_dynamic_tag($scope7_id, "b", input.tags, {}, 0, 0, $sg__input_tags);
|
|
7750
7750
|
_html("</span>");
|
|
7751
7751
|
$si__input_busy__OR__input_tags && _subscribe($si__input_tags && $input_tags__closures, writeScope($scope7_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7755,7 +7755,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7755
7755
|
_if(() => {
|
|
7756
7756
|
if (input.actions) {
|
|
7757
7757
|
const $scope8_id = _scope_id();
|
|
7758
|
-
_html(`<div${_attr_class("
|
|
7758
|
+
_html(`<div${_attr_class("_cB")}>`);
|
|
7759
7759
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7760
7760
|
_html("</div>");
|
|
7761
7761
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7866,7 +7866,7 @@ var icon_moon_default = _template("jb", (input) => {
|
|
|
7866
7866
|
});
|
|
7867
7867
|
//#endregion
|
|
7868
7868
|
//#region src/tags/prompt-dialog.css.ts
|
|
7869
|
-
var promptDlg = "
|
|
7869
|
+
var promptDlg = "_g2 _gY";
|
|
7870
7870
|
//#endregion
|
|
7871
7871
|
//#region src/tags/dialog-close.marko
|
|
7872
7872
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7890,7 +7890,7 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7890
7890
|
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;
|
|
7891
7891
|
const dismissable = input.dismissable !== false;
|
|
7892
7892
|
let open = input.open;
|
|
7893
|
-
_html(`<dialog${_attr_class(["
|
|
7893
|
+
_html(`<dialog${_attr_class(["_gX", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7894
7894
|
...htmlInput,
|
|
7895
7895
|
open: null
|
|
7896
7896
|
}, {
|
|
@@ -7900,20 +7900,20 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7900
7900
|
closedby: 1,
|
|
7901
7901
|
"on-cancel": 1,
|
|
7902
7902
|
"on-close": 1
|
|
7903
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7903
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_g0")}>`);
|
|
7904
7904
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7905
7905
|
_html("</div>");
|
|
7906
7906
|
_if(() => {
|
|
7907
7907
|
if (footer) {
|
|
7908
7908
|
const $scope1_id = _scope_id();
|
|
7909
|
-
_html(`<form method=dialog${_attr_class("
|
|
7909
|
+
_html(`<form method=dialog${_attr_class("_g1")}>`);
|
|
7910
7910
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7911
7911
|
_html("</form>");
|
|
7912
7912
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7913
7913
|
return 0;
|
|
7914
7914
|
} else if (input.openChange) {
|
|
7915
7915
|
const $scope2_id = _scope_id();
|
|
7916
|
-
_html(`<form method=dialog${_attr_class("
|
|
7916
|
+
_html(`<form method=dialog${_attr_class("_g1")}>`);
|
|
7917
7917
|
dialog_close_default({
|
|
7918
7918
|
class: ["_q", "_r"],
|
|
7919
7919
|
content: _content("s0", () => {
|
|
@@ -7997,7 +7997,7 @@ var prompt_dialog_default = _template("v", (input) => {
|
|
|
7997
7997
|
content: _content("v7", () => {
|
|
7998
7998
|
_scope_reason();
|
|
7999
7999
|
const $scope2_id = _scope_id();
|
|
8000
|
-
_html(`<h2${_attr_class("
|
|
8000
|
+
_html(`<h2${_attr_class("_gZ")}${_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) => {
|
|
8001
8001
|
value = _new_value;
|
|
8002
8002
|
}, "v0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8003
8003
|
_script($scope2_id, "v5");
|
|
@@ -8519,7 +8519,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8519
8519
|
const githubId = _id();
|
|
8520
8520
|
const backupId = _id();
|
|
8521
8521
|
const machineId = _id();
|
|
8522
|
-
_html(`<div${_attr_class("
|
|
8522
|
+
_html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
|
|
8523
8523
|
_set_serialize_reason({
|
|
8524
8524
|
0: _serialize_guard($scope0_reason, 4),
|
|
8525
8525
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8531,7 +8531,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8531
8531
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("y44", () => {
|
|
8532
8532
|
_scope_reason();
|
|
8533
8533
|
const $scope4_id = _scope_id();
|
|
8534
|
-
_html(`<span${_attr_class("
|
|
8534
|
+
_html(`<span${_attr_class("_c2")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8535
8535
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8536
8536
|
_resume_branch($scope4_id);
|
|
8537
8537
|
}, $scope0_id) });
|
|
@@ -8584,16 +8584,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8584
8584
|
_if(() => {
|
|
8585
8585
|
if (selfUpdatePending || selfUpdating) {
|
|
8586
8586
|
const $scope44_id = _scope_id();
|
|
8587
|
-
_html(`<div${_attr_class("
|
|
8587
|
+
_html(`<div${_attr_class("_dD")} role=status><div${_attr_class("_dE")}>`);
|
|
8588
8588
|
_if(() => {
|
|
8589
8589
|
if (selfUpdating) {
|
|
8590
8590
|
const $scope79_id = _scope_id();
|
|
8591
|
-
_html(`<span${_attr_class("
|
|
8591
|
+
_html(`<span${_attr_class("_dF")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dG")}>The app restarts and reloads when it is done.</span>`);
|
|
8592
8592
|
writeScope($scope79_id, {});
|
|
8593
8593
|
return 0;
|
|
8594
8594
|
} else {
|
|
8595
8595
|
const $scope45_id = _scope_id();
|
|
8596
|
-
_html(`<span${_attr_class("
|
|
8596
|
+
_html(`<span${_attr_class("_dF")}>Update available</span><span${_attr_class("_dG")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8597
8597
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8598
8598
|
return 1;
|
|
8599
8599
|
}
|
|
@@ -8612,11 +8612,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8612
8612
|
return 0;
|
|
8613
8613
|
}
|
|
8614
8614
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8615
|
-
_html(`<section${_attr_class("
|
|
8615
|
+
_html(`<section${_attr_class("_b_")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_ca")}><h2${_attr("id", agentsId)}${_attr_class("_cn")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_c4")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8616
8616
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8617
8617
|
setPreferred(v);
|
|
8618
8618
|
}, "y2", $scope0_id), () => {
|
|
8619
|
-
_html(`<select${_attr_class(["_p", "
|
|
8619
|
+
_html(`<select${_attr_class(["_p", "_c5"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8620
8620
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8621
8621
|
const $scope80_id = _scope_id();
|
|
8622
8622
|
_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)}`);
|
|
@@ -8630,14 +8630,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8630
8630
|
const rows = lone ? [] : a.instances;
|
|
8631
8631
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8632
8632
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8633
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8633
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_c6", { ["_c8"]: lone && !lone.enabled }])}>`);
|
|
8634
8634
|
_set_serialize_reason(12);
|
|
8635
8635
|
const $childScope3 = _peek_scope_id();
|
|
8636
8636
|
icon_agent_default({
|
|
8637
8637
|
agent: a.id,
|
|
8638
8638
|
size: 18
|
|
8639
8639
|
});
|
|
8640
|
-
_html(`<div${_attr_class("
|
|
8640
|
+
_html(`<div${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8641
8641
|
_if(() => {
|
|
8642
8642
|
if (lone && input$3.preferred === lone.id) {
|
|
8643
8643
|
const $scope81_id = _scope_id();
|
|
@@ -8650,12 +8650,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8650
8650
|
_if(() => {
|
|
8651
8651
|
if (active.has(a.id)) {
|
|
8652
8652
|
const $scope12_id = _scope_id();
|
|
8653
|
-
_html(`<span${_attr_class("
|
|
8653
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8654
8654
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8655
8655
|
return 0;
|
|
8656
8656
|
} else if (!a.installed) {
|
|
8657
8657
|
const $scope82_id = _scope_id();
|
|
8658
|
-
_html(`<span${_attr_class("
|
|
8658
|
+
_html(`<span${_attr_class("_ci")}>Not installed</span>`);
|
|
8659
8659
|
writeScope($scope82_id, {});
|
|
8660
8660
|
return 1;
|
|
8661
8661
|
}
|
|
@@ -8683,15 +8683,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8683
8683
|
_if(() => {
|
|
8684
8684
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8685
8685
|
const $scope2_id = _scope_id();
|
|
8686
|
-
_html(`<ul${_attr_class(["
|
|
8686
|
+
_html(`<ul${_attr_class(["_c_", { ["_c8"]: lone && !lone.enabled }])}>`);
|
|
8687
8687
|
_for_of(rows, (inst) => {
|
|
8688
8688
|
const $scope3_id = _scope_id();
|
|
8689
8689
|
const accounts = accountsFor(inst.id);
|
|
8690
|
-
_html(`<li${_attr_class(["
|
|
8690
|
+
_html(`<li${_attr_class(["_c7", { ["_c8"]: !inst.enabled }])}><div${_attr_class("_c6")}>`);
|
|
8691
8691
|
_set_serialize_reason(12);
|
|
8692
8692
|
const $childScope4 = _peek_scope_id();
|
|
8693
8693
|
icon_agent_default({ agent: inst.id });
|
|
8694
|
-
_html(`<span${_attr_class(["
|
|
8694
|
+
_html(`<span${_attr_class(["_c9", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8695
8695
|
_if(() => {
|
|
8696
8696
|
if (input$3.preferred === inst.id) {
|
|
8697
8697
|
const $scope83_id = _scope_id();
|
|
@@ -8773,21 +8773,21 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8773
8773
|
_if(() => {
|
|
8774
8774
|
if (!usage && families.length) {
|
|
8775
8775
|
const $scope88_id = _scope_id();
|
|
8776
|
-
_html(`<p${_attr_class("
|
|
8776
|
+
_html(`<p${_attr_class("_ck")}><span${_attr_class("_G")}></span> Loading usage…</p>`);
|
|
8777
8777
|
writeScope($scope88_id, {});
|
|
8778
8778
|
return 0;
|
|
8779
8779
|
} else if (usage?.error) {
|
|
8780
8780
|
const $scope8_id = _scope_id();
|
|
8781
|
-
_html(`<p${_attr_class("
|
|
8781
|
+
_html(`<p${_attr_class("_ck")}>${_text_resume($scope8_id, "b", usage.error)}</p>`);
|
|
8782
8782
|
writeScope($scope8_id, {});
|
|
8783
8783
|
return 1;
|
|
8784
8784
|
}
|
|
8785
8785
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
8786
|
-
_html(`</section><section${_attr_class("
|
|
8786
|
+
_html(`</section><section${_attr_class("_b_")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_ca")}><h2${_attr("id", githubId)}${_attr_class("_cn")}>GitHub</h2>`);
|
|
8787
8787
|
_if(() => {
|
|
8788
8788
|
if (setup && !addingHost) {
|
|
8789
8789
|
const $scope42_id = _scope_id();
|
|
8790
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8790
|
+
_html(`<button${_attr_class([iconBtnRow, "_di"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8791
8791
|
icon_plus_default({ size: 16 });
|
|
8792
8792
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8793
8793
|
_script($scope42_id, "y51");
|
|
@@ -8799,10 +8799,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8799
8799
|
if (setup) {
|
|
8800
8800
|
const $scope41_id = _scope_id();
|
|
8801
8801
|
_html(`<form${_attr_class([
|
|
8802
|
-
"
|
|
8803
|
-
"
|
|
8804
|
-
{ ["
|
|
8805
|
-
])}><label${_attr_class(["_1", "
|
|
8802
|
+
"_cC",
|
|
8803
|
+
"_di",
|
|
8804
|
+
{ ["_cD"]: !addingHost }
|
|
8805
|
+
])}><label${_attr_class(["_1", "_cF"])}>`);
|
|
8806
8806
|
icon_github_default({
|
|
8807
8807
|
size: 14,
|
|
8808
8808
|
class: "_2"
|
|
@@ -8812,12 +8812,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8812
8812
|
}, "y3", $scope41_id))}${_attr_class([
|
|
8813
8813
|
"_Z",
|
|
8814
8814
|
"_3",
|
|
8815
|
-
"
|
|
8815
|
+
"_cG"
|
|
8816
8816
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8817
8817
|
btnSm,
|
|
8818
8818
|
"_r",
|
|
8819
|
-
"
|
|
8820
|
-
])} 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, "
|
|
8819
|
+
"_dh"
|
|
8820
|
+
])} 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, "_cH"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8821
8821
|
icon_xmark_default({ size: 14 });
|
|
8822
8822
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8823
8823
|
_script($scope41_id, "y52");
|
|
@@ -8825,19 +8825,19 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8825
8825
|
return 0;
|
|
8826
8826
|
}
|
|
8827
8827
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8828
|
-
_html(`</div><div${_attr_class(["
|
|
8828
|
+
_html(`</div><div${_attr_class(["_ce", "_cM"])}>`);
|
|
8829
8829
|
_for_of(setup?.github || [], (h) => {
|
|
8830
8830
|
const $scope6_id = _scope_id();
|
|
8831
8831
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8832
8832
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8833
8833
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8834
8834
|
const busy = active.has(h.host);
|
|
8835
|
-
_html(`<div${_attr_class(["
|
|
8835
|
+
_html(`<div${_attr_class(["_cN", "_dj"])}><div${_attr_class("_dk")}>`);
|
|
8836
8836
|
icon_github_default({
|
|
8837
8837
|
size: 18,
|
|
8838
|
-
class: "
|
|
8838
|
+
class: "_dl"
|
|
8839
8839
|
});
|
|
8840
|
-
_html(`<div${_attr_class("
|
|
8840
|
+
_html(`<div${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8841
8841
|
_if(() => {
|
|
8842
8842
|
if (h.isEnterprise) {
|
|
8843
8843
|
const $scope91_id = _scope_id();
|
|
@@ -8850,25 +8850,25 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8850
8850
|
_if(() => {
|
|
8851
8851
|
if (busy) {
|
|
8852
8852
|
const $scope13_id = _scope_id();
|
|
8853
|
-
_html(`<span${_attr_class(["
|
|
8853
|
+
_html(`<span${_attr_class(["_ci", "_dm"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8854
8854
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8855
8855
|
return 0;
|
|
8856
8856
|
} else if (h.authed) {
|
|
8857
8857
|
const $scope89_id = _scope_id();
|
|
8858
|
-
_html(`<span${_attr_class(["
|
|
8858
|
+
_html(`<span${_attr_class(["_ci", "_dm"])}>`);
|
|
8859
8859
|
icon_check_default({
|
|
8860
8860
|
size: 12,
|
|
8861
|
-
class: "
|
|
8861
|
+
class: "_dn"
|
|
8862
8862
|
});
|
|
8863
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8863
|
+
_html(` Signed in as <strong${_attr_class("_dp")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8864
8864
|
writeScope($scope89_id, {});
|
|
8865
8865
|
return 1;
|
|
8866
8866
|
} else if (h.error) {
|
|
8867
8867
|
const $scope90_id = _scope_id();
|
|
8868
8868
|
_html(`<span${_attr_class([
|
|
8869
|
-
"
|
|
8870
|
-
"
|
|
8871
|
-
"
|
|
8869
|
+
"_ci",
|
|
8870
|
+
"_dm",
|
|
8871
|
+
"_do"
|
|
8872
8872
|
])}>`);
|
|
8873
8873
|
icon_warning_default({ size: 12 });
|
|
8874
8874
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8876,7 +8876,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8876
8876
|
return 2;
|
|
8877
8877
|
} else {
|
|
8878
8878
|
const $scope92_id = _scope_id();
|
|
8879
|
-
_html(`<span${_attr_class(["
|
|
8879
|
+
_html(`<span${_attr_class(["_ci", "_dm"])}>Not signed in</span>`);
|
|
8880
8880
|
writeScope($scope92_id, {});
|
|
8881
8881
|
return 3;
|
|
8882
8882
|
}
|
|
@@ -8907,7 +8907,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8907
8907
|
if (h.isEnterprise) {
|
|
8908
8908
|
const $scope33_id = _scope_id();
|
|
8909
8909
|
_html(`<button${_attr_class([
|
|
8910
|
-
"
|
|
8910
|
+
"_cj",
|
|
8911
8911
|
"_8",
|
|
8912
8912
|
"_9",
|
|
8913
8913
|
{ ["_s"]: confirmingRemove === h.host }
|
|
@@ -8941,7 +8941,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8941
8941
|
_if(() => {
|
|
8942
8942
|
if (busy && authCodes.has(h.host)) {
|
|
8943
8943
|
const $scope30_id = _scope_id();
|
|
8944
|
-
_html(`<div${_attr_class("
|
|
8944
|
+
_html(`<div${_attr_class("_dq")}><span${_attr_class("_dr")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dt")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_ds")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8945
8945
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8946
8946
|
return 0;
|
|
8947
8947
|
}
|
|
@@ -8953,7 +8953,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8953
8953
|
_set_serialize_reason(30);
|
|
8954
8954
|
const $childScope9 = _peek_scope_id();
|
|
8955
8955
|
sso_auth_default({
|
|
8956
|
-
class: ["
|
|
8956
|
+
class: ["_cN", "_du"],
|
|
8957
8957
|
items: hostSso$1,
|
|
8958
8958
|
skipped: skippedSso,
|
|
8959
8959
|
busy,
|
|
@@ -8987,23 +8987,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8987
8987
|
_if(() => {
|
|
8988
8988
|
if (setup && !setup.github.length) {
|
|
8989
8989
|
const $scope95_id = _scope_id();
|
|
8990
|
-
_html(`<p${_attr_class("
|
|
8990
|
+
_html(`<p${_attr_class("_ck")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8991
8991
|
writeScope($scope95_id, {});
|
|
8992
8992
|
return 0;
|
|
8993
8993
|
}
|
|
8994
8994
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8995
|
-
_html(`</section><section${_attr_class("
|
|
8995
|
+
_html(`</section><section${_attr_class("_b_")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_ca")}><h2${_attr("id", machineId)}${_attr_class("_cn")}>Machine</h2></div><div${_attr_class(["_ce", "_cM"])}><div${_attr_class(["_cN", "_cO"])}><div${_attr_class(["_cP", { ["_cQ"]: skillsOpen }])}><button${_attr_class("_cR")} aria-expanded=true>`);
|
|
8996
8996
|
_set_serialize_reason(1);
|
|
8997
8997
|
const $childScope10 = _peek_scope_id();
|
|
8998
8998
|
icon_chevron_right_default({
|
|
8999
8999
|
size: 12,
|
|
9000
|
-
class: ["
|
|
9000
|
+
class: ["_cV", { ["_cW"]: skillsOpen }]
|
|
9001
9001
|
});
|
|
9002
|
-
_html(`<span${_attr_class("
|
|
9002
|
+
_html(`<span${_attr_class("_cS")}>Skills</span>`);
|
|
9003
9003
|
_if(() => {
|
|
9004
9004
|
if (skills?.global.length) {
|
|
9005
9005
|
const $scope51_id = _scope_id();
|
|
9006
|
-
_html(`<span${_attr_class("
|
|
9006
|
+
_html(`<span${_attr_class("_cT")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9007
9007
|
writeScope($scope51_id, {});
|
|
9008
9008
|
return 0;
|
|
9009
9009
|
}
|
|
@@ -9023,7 +9023,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9023
9023
|
_if(() => {
|
|
9024
9024
|
if (skills?.available && skills.agents.length) {
|
|
9025
9025
|
const $scope14_id = _scope_id();
|
|
9026
|
-
_html(`<div${_attr_class(["
|
|
9026
|
+
_html(`<div${_attr_class(["_cC", { ["_cD"]: true }])}><label${_attr_class(["_1", "_cF"])}>`);
|
|
9027
9027
|
_if(() => {
|
|
9028
9028
|
if (skillSearching) {
|
|
9029
9029
|
const $scope96_id = _scope_id();
|
|
@@ -9043,14 +9043,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9043
9043
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9044
9044
|
"_Z",
|
|
9045
9045
|
"_3",
|
|
9046
|
-
"
|
|
9047
|
-
])} 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, "
|
|
9046
|
+
"_cG"
|
|
9047
|
+
])} 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, "_cH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9048
9048
|
icon_xmark_default({ size: 14 });
|
|
9049
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9049
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_cJ"])}${_attr("hidden", true)}>`);
|
|
9050
9050
|
_if(() => {
|
|
9051
9051
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9052
9052
|
const $scope98_id = _scope_id();
|
|
9053
|
-
_html(`<li${_attr_class("
|
|
9053
|
+
_html(`<li${_attr_class("_cK")}>Searching skills.sh…</li>`);
|
|
9054
9054
|
writeScope($scope98_id, {});
|
|
9055
9055
|
return 0;
|
|
9056
9056
|
}
|
|
@@ -9058,11 +9058,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9058
9058
|
_if(() => {
|
|
9059
9059
|
if (looksLikeSource(skillQuery)) {
|
|
9060
9060
|
const $scope15_id = _scope_id();
|
|
9061
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9061
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9062
9062
|
_if(() => {
|
|
9063
9063
|
if (active.has(skillQuery.trim())) {
|
|
9064
9064
|
const $scope16_id = _scope_id();
|
|
9065
|
-
_html(`<span${_attr_class("
|
|
9065
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9066
9066
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9067
9067
|
Ch2: 3,
|
|
9068
9068
|
Chr: 1
|
|
@@ -9070,7 +9070,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9070
9070
|
return 0;
|
|
9071
9071
|
} else {
|
|
9072
9072
|
const $scope99_id = _scope_id();
|
|
9073
|
-
_html(`<span${_attr_class("
|
|
9073
|
+
_html(`<span${_attr_class("_ci")}>Add straight from this source</span>`);
|
|
9074
9074
|
writeScope($scope99_id, {});
|
|
9075
9075
|
return 1;
|
|
9076
9076
|
}
|
|
@@ -9093,16 +9093,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9093
9093
|
_for_of(skillHits || [], (h) => {
|
|
9094
9094
|
const $scope17_id = _scope_id();
|
|
9095
9095
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9096
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9096
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9097
9097
|
_if(() => {
|
|
9098
9098
|
if (active.has(h.skillId)) {
|
|
9099
9099
|
const $scope18_id = _scope_id();
|
|
9100
|
-
_html(`<span${_attr_class("
|
|
9100
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9101
9101
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9102
9102
|
return 0;
|
|
9103
9103
|
} else {
|
|
9104
9104
|
const $scope100_id = _scope_id();
|
|
9105
|
-
_html(`<span${_attr_class("
|
|
9105
|
+
_html(`<span${_attr_class("_ci")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9106
9106
|
writeScope($scope100_id, {});
|
|
9107
9107
|
return 1;
|
|
9108
9108
|
}
|
|
@@ -9150,7 +9150,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9150
9150
|
_if(() => {
|
|
9151
9151
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9152
9152
|
const $scope53_id = _scope_id();
|
|
9153
|
-
_html(`<li${_attr_class("
|
|
9153
|
+
_html(`<li${_attr_class("_cK")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9154
9154
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9155
9155
|
return 0;
|
|
9156
9156
|
}
|
|
@@ -9165,22 +9165,22 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9165
9165
|
_if(() => {
|
|
9166
9166
|
{
|
|
9167
9167
|
const $scope19_id = _scope_id();
|
|
9168
|
-
_html(`<div${_attr_class("
|
|
9168
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
9169
9169
|
_if(() => {
|
|
9170
9170
|
if (skills && !skills.agents.length) {
|
|
9171
9171
|
const $scope103_id = _scope_id();
|
|
9172
|
-
_html(`<p${_attr_class("
|
|
9172
|
+
_html(`<p${_attr_class("_ck")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9173
9173
|
writeScope($scope103_id, {});
|
|
9174
9174
|
return 0;
|
|
9175
9175
|
} else if (skills && !skills.available) {
|
|
9176
9176
|
const $scope20_id = _scope_id();
|
|
9177
|
-
_html(`<p${_attr_class("
|
|
9177
|
+
_html(`<p${_attr_class("_ck")}>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>`);
|
|
9178
9178
|
_script($scope20_id, "y60");
|
|
9179
9179
|
_subscribe($active__closures, writeScope($scope20_id, { Ch2: 6 }));
|
|
9180
9180
|
return 1;
|
|
9181
9181
|
}
|
|
9182
9182
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9183
|
-
_html(`<ul${_attr_class("
|
|
9183
|
+
_html(`<ul${_attr_class("_cv")}>`);
|
|
9184
9184
|
_for_of(skills?.global || [], (s) => {
|
|
9185
9185
|
const $scope21_id = _scope_id();
|
|
9186
9186
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9256,7 +9256,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9256
9256
|
_if(() => {
|
|
9257
9257
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9258
9258
|
const $scope108_id = _scope_id();
|
|
9259
|
-
_html(`<p${_attr_class("
|
|
9259
|
+
_html(`<p${_attr_class("_ck")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9260
9260
|
writeScope($scope108_id, {});
|
|
9261
9261
|
return 0;
|
|
9262
9262
|
}
|
|
@@ -9266,14 +9266,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9266
9266
|
return 0;
|
|
9267
9267
|
}
|
|
9268
9268
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9269
|
-
_html(`</div><div${_attr_class(["
|
|
9269
|
+
_html(`</div><div${_attr_class(["_cN", "_cO"])}><div${_attr_class(["_cP", { ["_cQ"]: machineOpen }])}><button${_attr_class("_cR")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9270
9270
|
_set_serialize_reason(1);
|
|
9271
9271
|
const $childScope12 = _peek_scope_id();
|
|
9272
9272
|
icon_chevron_right_default({
|
|
9273
9273
|
size: 12,
|
|
9274
|
-
class: ["
|
|
9274
|
+
class: ["_cV", { ["_cW"]: machineOpen }]
|
|
9275
9275
|
});
|
|
9276
|
-
_html(`<span${_attr_class("
|
|
9276
|
+
_html(`<span${_attr_class("_cS")}>Tools</span><span${_attr_class("_cT")}>${_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")}`);
|
|
9277
9277
|
_if(() => {
|
|
9278
9278
|
if (outdatedIds.length > 1) {
|
|
9279
9279
|
const $scope22_id = _scope_id();
|
|
@@ -9306,7 +9306,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9306
9306
|
_if(() => {
|
|
9307
9307
|
if (setup && setup.mise.installed) {
|
|
9308
9308
|
const $scope24_id = _scope_id();
|
|
9309
|
-
_html(`<div${_attr_class(["
|
|
9309
|
+
_html(`<div${_attr_class(["_cC", { ["_cD"]: true }])}><label${_attr_class(["_1", "_cF"])}>`);
|
|
9310
9310
|
_if(() => {
|
|
9311
9311
|
if (searching) {
|
|
9312
9312
|
const $scope109_id = _scope_id();
|
|
@@ -9326,14 +9326,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9326
9326
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9327
9327
|
"_Z",
|
|
9328
9328
|
"_3",
|
|
9329
|
-
"
|
|
9330
|
-
])} 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, "
|
|
9329
|
+
"_cG"
|
|
9330
|
+
])} 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, "_cH"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9331
9331
|
icon_xmark_default({ size: 14 });
|
|
9332
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9332
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_cJ"])}${_attr("hidden", true)}>`);
|
|
9333
9333
|
_if(() => {
|
|
9334
9334
|
if (searching && !hits?.length) {
|
|
9335
9335
|
const $scope111_id = _scope_id();
|
|
9336
|
-
_html(`<li${_attr_class("
|
|
9336
|
+
_html(`<li${_attr_class("_cK")}>Searching the mise registry…</li>`);
|
|
9337
9337
|
writeScope($scope111_id, {});
|
|
9338
9338
|
return 0;
|
|
9339
9339
|
}
|
|
@@ -9341,23 +9341,23 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9341
9341
|
_if(() => {
|
|
9342
9342
|
if (hits && !hits.length && !searching) {
|
|
9343
9343
|
const $scope43_id = _scope_id();
|
|
9344
|
-
_html(`<li${_attr_class("
|
|
9344
|
+
_html(`<li${_attr_class("_cK")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9345
9345
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9346
9346
|
return 0;
|
|
9347
9347
|
}
|
|
9348
9348
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9349
9349
|
_for_of(hits || [], (h) => {
|
|
9350
9350
|
const $scope25_id = _scope_id();
|
|
9351
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("
|
|
9351
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cf")}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9352
9352
|
_if(() => {
|
|
9353
9353
|
if (active.has(h.name)) {
|
|
9354
9354
|
const $scope26_id = _scope_id();
|
|
9355
|
-
_html(`<span${_attr_class("
|
|
9355
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9356
9356
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9357
9357
|
return 0;
|
|
9358
9358
|
} else if (h.description) {
|
|
9359
9359
|
const $scope112_id = _scope_id();
|
|
9360
|
-
_html(`<span${_attr_class("
|
|
9360
|
+
_html(`<span${_attr_class("_ci")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9361
9361
|
writeScope($scope112_id, {});
|
|
9362
9362
|
return 1;
|
|
9363
9363
|
}
|
|
@@ -9402,11 +9402,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9402
9402
|
_if(() => {
|
|
9403
9403
|
if (machineOpen) {
|
|
9404
9404
|
const $scope5_id = _scope_id();
|
|
9405
|
-
_html(`<div${_attr_class("
|
|
9405
|
+
_html(`<div${_attr_class("_cU")}>`);
|
|
9406
9406
|
_if(() => {
|
|
9407
9407
|
if (setup && !setup.mise.installed) {
|
|
9408
9408
|
const $scope27_id = _scope_id();
|
|
9409
|
-
_html(`<p${_attr_class("
|
|
9409
|
+
_html(`<p${_attr_class("_ck")}>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>`);
|
|
9410
9410
|
_script($scope27_id, "y71");
|
|
9411
9411
|
_subscribe($active__closures, writeScope($scope27_id, { Ch2: 10 }));
|
|
9412
9412
|
return 0;
|
|
@@ -9416,11 +9416,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9416
9416
|
_if(() => {
|
|
9417
9417
|
if (self) {
|
|
9418
9418
|
const $scope47_id = _scope_id();
|
|
9419
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9419
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_dd", "_y"])}>work</span>`);
|
|
9420
9420
|
_if(() => {
|
|
9421
9421
|
if (selfUpdating) {
|
|
9422
9422
|
const $scope114_id = _scope_id();
|
|
9423
|
-
_html(`<span${_attr_class("
|
|
9423
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9424
9424
|
writeScope($scope114_id, {});
|
|
9425
9425
|
return 0;
|
|
9426
9426
|
} else {
|
|
@@ -9434,7 +9434,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9434
9434
|
return 0;
|
|
9435
9435
|
} else if (self.latest && self.latest !== self.version) {
|
|
9436
9436
|
const $scope49_id = _scope_id();
|
|
9437
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9437
|
+
_html(`<button${_attr_class([btnSm, "_dg"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9438
9438
|
icon_arrow_up_default({ size: 12 });
|
|
9439
9439
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9440
9440
|
_script($scope49_id, "y72");
|
|
@@ -9478,11 +9478,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9478
9478
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9479
9479
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9480
9480
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9481
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9481
|
+
_html(`<li${_attr_class([toolRow, { ["_dc"]: !t.installed }])}><span${_attr_class(["_dd", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9482
9482
|
_if(() => {
|
|
9483
9483
|
if (active.has(t.id)) {
|
|
9484
9484
|
const $scope29_id = _scope_id();
|
|
9485
|
-
_html(`<span${_attr_class("
|
|
9485
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9486
9486
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9487
9487
|
return 0;
|
|
9488
9488
|
} else if (t.installed) {
|
|
@@ -9490,11 +9490,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9490
9490
|
_if(() => {
|
|
9491
9491
|
if (t.version) {
|
|
9492
9492
|
const $scope40_id = _scope_id();
|
|
9493
|
-
_html(`<button${_attr_class(["
|
|
9493
|
+
_html(`<button${_attr_class(["_df", "_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)}`);
|
|
9494
9494
|
_if(() => {
|
|
9495
9495
|
if (aliasPin(t)) {
|
|
9496
9496
|
const $scope118_id = _scope_id();
|
|
9497
|
-
_html(`<span${_attr_class("
|
|
9497
|
+
_html(`<span${_attr_class("_de")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9498
9498
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9499
9499
|
return 0;
|
|
9500
9500
|
}
|
|
@@ -9513,7 +9513,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9513
9513
|
_if(() => {
|
|
9514
9514
|
if (outdated(t)) {
|
|
9515
9515
|
const $scope59_id = _scope_id();
|
|
9516
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9516
|
+
_html(`<button${_attr_class([btnSm, "_dg"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9517
9517
|
icon_arrow_up_default({ size: 12 });
|
|
9518
9518
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9519
9519
|
_script($scope59_id, "y74");
|
|
@@ -9521,7 +9521,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9521
9521
|
return 0;
|
|
9522
9522
|
} else if (t.newest) {
|
|
9523
9523
|
const $scope60_id = _scope_id();
|
|
9524
|
-
_html(`<button${_attr_class(["
|
|
9524
|
+
_html(`<button${_attr_class(["_df", "_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")}`);
|
|
9525
9525
|
_script($scope60_id, "y75");
|
|
9526
9526
|
_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, {
|
|
9527
9527
|
Cw: 1,
|
|
@@ -9637,14 +9637,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9637
9637
|
label: "Dark"
|
|
9638
9638
|
}
|
|
9639
9639
|
];
|
|
9640
|
-
_html(`</div></div></section><section${_attr_class("
|
|
9640
|
+
_html(`</div></div></section><section${_attr_class("_b_")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_ca")}><h2${_attr("id", appearanceId)}${_attr_class("_cn")}>Appearance</h2></div><div${_attr_class(["_ce", "_dv"])}><div${_attr_class("_dH")}><img${_attr_class("_dI")}${_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("_dJ")}><span${_attr_class("_dK")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dL")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dw")}><span${_attr_class("_dx")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9641
9641
|
setInstance({ name: v });
|
|
9642
|
-
}, "y4", $scope0_id))}${_attr_class(["_Z", "
|
|
9642
|
+
}, "y4", $scope0_id))}${_attr_class(["_Z", "_dy"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dw")}><span${_attr_class("_dx")}>Theme</span><span${_attr_class("_dA")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9643
9643
|
_for_of(themeOpts, (opt) => {
|
|
9644
9644
|
const $scope50_id = _scope_id();
|
|
9645
9645
|
_html(`<button type=button${_attr_class([
|
|
9646
9646
|
"_bg",
|
|
9647
|
-
"
|
|
9647
|
+
"_dM",
|
|
9648
9648
|
{ ["_bf"]: themeMode === opt.id }
|
|
9649
9649
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9650
9650
|
if (opt.id === "system") {
|
|
@@ -9664,28 +9664,28 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9664
9664
|
_: _scope_with_id($scope0_id)
|
|
9665
9665
|
});
|
|
9666
9666
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9667
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9667
|
+
_html(`</span><span${_attr_class(["_o", "_dB"])}>`);
|
|
9668
9668
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9669
9669
|
setThemeMode(v);
|
|
9670
9670
|
}, "y5", $scope0_id), () => {
|
|
9671
|
-
_html(`<select${_attr_class(["_p", "
|
|
9671
|
+
_html(`<select${_attr_class(["_p", "_dC"])} aria-label="Color theme">`);
|
|
9672
9672
|
forOf(themeOpts, (opt) => {
|
|
9673
9673
|
_scope_id();
|
|
9674
9674
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9675
9675
|
});
|
|
9676
9676
|
_html("</select>");
|
|
9677
9677
|
});
|
|
9678
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9679
|
-
"
|
|
9680
|
-
"
|
|
9681
|
-
{ ["
|
|
9678
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dw")}><span${_attr_class("_dx")}>Accent</span><span${_attr_class("_dN")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9679
|
+
"_dO",
|
|
9680
|
+
"_dR",
|
|
9681
|
+
{ ["_dP"]: !accent }
|
|
9682
9682
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9683
9683
|
_if(() => {
|
|
9684
9684
|
if (!accent) {
|
|
9685
9685
|
const $scope129_id = _scope_id();
|
|
9686
9686
|
icon_check_default({
|
|
9687
9687
|
size: 12,
|
|
9688
|
-
class: "
|
|
9688
|
+
class: "_dQ"
|
|
9689
9689
|
});
|
|
9690
9690
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9691
9691
|
return 0;
|
|
@@ -9693,13 +9693,13 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9693
9693
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9694
9694
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9695
9695
|
const $scope77_id = _scope_id();
|
|
9696
|
-
_html(`<button type=button${_attr_class(["
|
|
9696
|
+
_html(`<button type=button${_attr_class(["_dO", { ["_dP"]: 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)}>`);
|
|
9697
9697
|
_if(() => {
|
|
9698
9698
|
if (accent === p.value) {
|
|
9699
9699
|
const $scope130_id = _scope_id();
|
|
9700
9700
|
icon_check_default({
|
|
9701
9701
|
size: 12,
|
|
9702
|
-
class: "
|
|
9702
|
+
class: "_dQ"
|
|
9703
9703
|
});
|
|
9704
9704
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9705
9705
|
return 0;
|
|
@@ -9713,18 +9713,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9713
9713
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9714
9714
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9715
9715
|
_html(`<label${_attr_class([
|
|
9716
|
-
"
|
|
9717
|
-
"
|
|
9718
|
-
{ ["
|
|
9716
|
+
"_dO",
|
|
9717
|
+
"_dS",
|
|
9718
|
+
{ ["_dP"]: customOn }
|
|
9719
9719
|
])}${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) {
|
|
9720
9720
|
setInstance({ accent: v });
|
|
9721
|
-
}, "y6", $scope0_id))}${_attr_class("
|
|
9721
|
+
}, "y6", $scope0_id))}${_attr_class("_dT")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9722
9722
|
_if(() => {
|
|
9723
9723
|
if (customOn) {
|
|
9724
9724
|
const $scope131_id = _scope_id();
|
|
9725
9725
|
icon_check_default({
|
|
9726
9726
|
size: 12,
|
|
9727
|
-
class: "
|
|
9727
|
+
class: "_dQ"
|
|
9728
9728
|
});
|
|
9729
9729
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9730
9730
|
return 0;
|
|
@@ -9735,16 +9735,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9735
9735
|
return 1;
|
|
9736
9736
|
}
|
|
9737
9737
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9738
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("
|
|
9738
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_b_")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_ca")}><h2${_attr("id", backupId)}${_attr_class("_cn")}>Backup</h2></div><div${_attr_class(["_ce", "_cM"])}><div${_attr_class("_cN")}><div${_attr_class("_dU")}><div${_attr_class("_cf")}>`);
|
|
9739
9739
|
_if(() => {
|
|
9740
9740
|
if (backupBusy === "preflight") {
|
|
9741
9741
|
const $scope65_id = _scope_id();
|
|
9742
|
-
_html(`<span${_attr_class("
|
|
9742
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9743
9743
|
writeScope($scope65_id, {});
|
|
9744
9744
|
return 0;
|
|
9745
9745
|
} else {
|
|
9746
9746
|
const $scope133_id = _scope_id();
|
|
9747
|
-
_html(`<span${_attr_class("
|
|
9747
|
+
_html(`<span${_attr_class("_ci")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9748
9748
|
writeScope($scope133_id, {});
|
|
9749
9749
|
return 1;
|
|
9750
9750
|
}
|
|
@@ -9762,7 +9762,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9762
9762
|
_if(() => {
|
|
9763
9763
|
if (preflight && !backupBusy) {
|
|
9764
9764
|
const $scope67_id = _scope_id();
|
|
9765
|
-
_html(`<div${_attr_class("
|
|
9765
|
+
_html(`<div${_attr_class("_dW")}><p${_attr_class("_dX")}>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("_dX")}>Not in the file: `);
|
|
9766
9766
|
_if(() => {
|
|
9767
9767
|
if (preflight.unpushed) {
|
|
9768
9768
|
const $scope68_id = _scope_id();
|
|
@@ -9779,15 +9779,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9779
9779
|
return 0;
|
|
9780
9780
|
}
|
|
9781
9781
|
}, $scope67_id, "m");
|
|
9782
|
-
_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("
|
|
9782
|
+
_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("_dY")}>`);
|
|
9783
9783
|
_for_of(preflight.workspaces, (w) => {
|
|
9784
9784
|
const $scope135_id = _scope_id();
|
|
9785
9785
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9786
|
-
_html(`<li${_attr_class("
|
|
9786
|
+
_html(`<li${_attr_class("_dZ")}><span${_attr_class("_cg")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dY")}>`);
|
|
9787
9787
|
_for_of(w.repos, (r) => {
|
|
9788
9788
|
const $scope136_id = _scope_id();
|
|
9789
9789
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9790
|
-
_html(`<li${_attr_class("
|
|
9790
|
+
_html(`<li${_attr_class("_d0")}><span${_attr_class("_d1")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9791
9791
|
_for_of(r.unpushed, (b) => {
|
|
9792
9792
|
const $scope137_id = _scope_id();
|
|
9793
9793
|
_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 `);
|
|
@@ -9806,10 +9806,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9806
9806
|
_if(() => {
|
|
9807
9807
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9808
9808
|
const $scope138_id = _scope_id();
|
|
9809
|
-
_html(`<ul${_attr_class("
|
|
9809
|
+
_html(`<ul${_attr_class("_d2")}>`);
|
|
9810
9810
|
_for_of(r.modified, (f) => {
|
|
9811
9811
|
const $scope141_id = _scope_id();
|
|
9812
|
-
_html(`<li${_attr_class("
|
|
9812
|
+
_html(`<li${_attr_class("_d3")}><span${_attr_class([
|
|
9813
9813
|
"_N",
|
|
9814
9814
|
"_P",
|
|
9815
9815
|
tone.warn
|
|
@@ -9818,18 +9818,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9818
9818
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9819
9819
|
_for_of(r.untracked, (f) => {
|
|
9820
9820
|
const $scope142_id = _scope_id();
|
|
9821
|
-
_html(`<li${_attr_class("
|
|
9821
|
+
_html(`<li${_attr_class("_d3")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9822
9822
|
writeScope($scope142_id, {});
|
|
9823
9823
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9824
9824
|
_for_of(r.ignored, (f) => {
|
|
9825
9825
|
const $scope143_id = _scope_id();
|
|
9826
|
-
_html(`<li${_attr_class("
|
|
9826
|
+
_html(`<li${_attr_class("_d3")}><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>`);
|
|
9827
9827
|
writeScope($scope143_id, {});
|
|
9828
9828
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9829
9829
|
_if(() => {
|
|
9830
9830
|
if (r.more) {
|
|
9831
9831
|
const $scope139_id = _scope_id();
|
|
9832
|
-
_html(`<li${_attr_class(["
|
|
9832
|
+
_html(`<li${_attr_class(["_d3", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9833
9833
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9834
9834
|
return 0;
|
|
9835
9835
|
}
|
|
@@ -9854,27 +9854,27 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9854
9854
|
i: $for_content18__w_name__closures
|
|
9855
9855
|
});
|
|
9856
9856
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9857
|
-
_html(`<div${_attr_class("
|
|
9857
|
+
_html(`<div${_attr_class("_d4")}><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>`);
|
|
9858
9858
|
_script($scope67_id, "y81");
|
|
9859
9859
|
writeScope($scope67_id, {});
|
|
9860
9860
|
return 0;
|
|
9861
9861
|
}
|
|
9862
9862
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9863
|
-
_html(`</div><div${_attr_class("
|
|
9863
|
+
_html(`</div><div${_attr_class("_cN")}><div${_attr_class("_dU")}><div${_attr_class("_cf")}>`);
|
|
9864
9864
|
_if(() => {
|
|
9865
9865
|
if (backupBusy === "restore") {
|
|
9866
9866
|
const $scope66_id = _scope_id();
|
|
9867
|
-
_html(`<span${_attr_class("
|
|
9867
|
+
_html(`<span${_attr_class("_c1")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9868
9868
|
writeScope($scope66_id, {});
|
|
9869
9869
|
return 0;
|
|
9870
9870
|
} else if (restoreDone) {
|
|
9871
9871
|
const $scope74_id = _scope_id();
|
|
9872
|
-
_html(`<span${_attr_class("
|
|
9872
|
+
_html(`<span${_attr_class("_ci")}>${_text_resume($scope74_id, "b", restoreDone)}</span>`);
|
|
9873
9873
|
writeScope($scope74_id, {});
|
|
9874
9874
|
return 1;
|
|
9875
9875
|
} else {
|
|
9876
9876
|
const $scope144_id = _scope_id();
|
|
9877
|
-
_html(`<span${_attr_class("
|
|
9877
|
+
_html(`<span${_attr_class("_ci")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9878
9878
|
writeScope($scope144_id, {});
|
|
9879
9879
|
return 2;
|
|
9880
9880
|
}
|
|
@@ -9882,7 +9882,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9882
9882
|
_if(() => {
|
|
9883
9883
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9884
9884
|
const $scope76_id = _scope_id();
|
|
9885
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9885
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dV")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9886
9886
|
_script($scope76_id, "y82");
|
|
9887
9887
|
writeScope($scope76_id, {});
|
|
9888
9888
|
return 0;
|
|
@@ -9893,14 +9893,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9893
9893
|
if (restorePreview && backupBusy !== "restore") {
|
|
9894
9894
|
const $scope69_id = _scope_id();
|
|
9895
9895
|
const { preview } = restorePreview;
|
|
9896
|
-
_html(`<div${_attr_class("
|
|
9896
|
+
_html(`<div${_attr_class("_dW")}><p${_attr_class("_dX")}>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>`);
|
|
9897
9897
|
_if(() => {
|
|
9898
9898
|
if (preview.workspaces.length) {
|
|
9899
9899
|
const $scope70_id = _scope_id();
|
|
9900
9900
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9901
9901
|
_for_of(preview.workspaces, (w) => {
|
|
9902
9902
|
const $scope71_id = _scope_id();
|
|
9903
|
-
_html(`<li><label${_attr_class(["
|
|
9903
|
+
_html(`<li><label${_attr_class(["_d6", { ["_d8"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_d7")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_cf")}><span${_attr_class("_ch")}><span${_attr_class("_cg")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9904
9904
|
_if(() => {
|
|
9905
9905
|
if (w.status === "archived") {
|
|
9906
9906
|
const $scope148_id = _scope_id();
|
|
@@ -9922,7 +9922,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9922
9922
|
return 1;
|
|
9923
9923
|
}
|
|
9924
9924
|
}, $scope71_id, "h", 1, 1, 1, 0, 1);
|
|
9925
|
-
_html(`</span><span${_attr_class("
|
|
9925
|
+
_html(`</span><span${_attr_class("_ci")}>${_text_resume($scope71_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope71_id, "a")}</li>`);
|
|
9926
9926
|
_script($scope71_id, "y83");
|
|
9927
9927
|
_subscribe($restoreWs__closures, writeScope($scope71_id, {
|
|
9928
9928
|
n: w?.unknownHost,
|
|
@@ -9933,7 +9933,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9933
9933
|
return 0;
|
|
9934
9934
|
} else {
|
|
9935
9935
|
const $scope146_id = _scope_id();
|
|
9936
|
-
_html(`<p${_attr_class("
|
|
9936
|
+
_html(`<p${_attr_class("_ck")}>No workspaces in this file.</p>`);
|
|
9937
9937
|
writeScope($scope146_id, {});
|
|
9938
9938
|
return 1;
|
|
9939
9939
|
}
|
|
@@ -9973,7 +9973,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9973
9973
|
_if(() => {
|
|
9974
9974
|
if (p.total) {
|
|
9975
9975
|
const $scope73_id = _scope_id();
|
|
9976
|
-
_html(`<li><label${_attr_class(["
|
|
9976
|
+
_html(`<li><label${_attr_class(["_d6", { ["_d8"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_d7")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_cf")}><span${_attr_class("_cg")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_ci")}>`);
|
|
9977
9977
|
_if(() => {
|
|
9978
9978
|
if (p.key === "settings") {
|
|
9979
9979
|
const $scope145_id = _scope_id();
|
|
@@ -10020,7 +10020,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
10020
10020
|
i: $for_content10__p_total__closures
|
|
10021
10021
|
});
|
|
10022
10022
|
}, "key", $scope69_id, "h");
|
|
10023
|
-
_html(`</ul><div${_attr_class("
|
|
10023
|
+
_html(`</ul><div${_attr_class("_d4")}><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>`);
|
|
10024
10024
|
_script($scope69_id, "y85");
|
|
10025
10025
|
writeScope($scope69_id, {});
|
|
10026
10026
|
return 0;
|
|
@@ -10249,9 +10249,9 @@ function vapidKey(base64) {
|
|
|
10249
10249
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
10250
10250
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
10251
10251
|
}
|
|
10252
|
-
var iconBtn = "
|
|
10253
|
-
var settingsDot = "
|
|
10254
|
-
var navToggle = "
|
|
10252
|
+
var iconBtn = "_bN _l";
|
|
10253
|
+
var settingsDot = "_bO _bc";
|
|
10254
|
+
var navToggle = "_bS _l";
|
|
10255
10255
|
_template("T", (input) => {
|
|
10256
10256
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
10257
10257
|
const $scope0_id = _scope_id();
|
|
@@ -10305,8 +10305,8 @@ function activeAgent(session) {
|
|
|
10305
10305
|
const command = session.state?.command?.trim();
|
|
10306
10306
|
return command && agentFromCommand(command) || session.agent;
|
|
10307
10307
|
}
|
|
10308
|
-
var rowState = "
|
|
10309
|
-
var rowArchive = "
|
|
10308
|
+
var rowState = "_e9 _N";
|
|
10309
|
+
var rowArchive = "_fa _q _L";
|
|
10310
10310
|
//#endregion
|
|
10311
10311
|
//#region src/client/arm.ts
|
|
10312
10312
|
/** Two-step destructive controls: first click arms (label/colour flips),
|
|
@@ -10317,12 +10317,12 @@ var ARM_MS = 3500;
|
|
|
10317
10317
|
function disarmLater(fn) {
|
|
10318
10318
|
return setTimeout(fn, ARM_MS);
|
|
10319
10319
|
}
|
|
10320
|
-
var prChip = "
|
|
10321
|
-
var portChip = "
|
|
10320
|
+
var prChip = "_ib _u _ia";
|
|
10321
|
+
var portChip = "_ic _u _ia";
|
|
10322
10322
|
var prState = {
|
|
10323
|
-
open: "
|
|
10324
|
-
merged: "
|
|
10325
|
-
closed: "
|
|
10323
|
+
open: "_ig",
|
|
10324
|
+
merged: "_ih",
|
|
10325
|
+
closed: "_ii"
|
|
10326
10326
|
};
|
|
10327
10327
|
//#endregion
|
|
10328
10328
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10413,7 +10413,7 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10413
10413
|
const name = repo.full_name.split("/").at(-1);
|
|
10414
10414
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10415
10415
|
}, "z4", $scope1_id);
|
|
10416
|
-
_html(`<div${_attr_class("
|
|
10416
|
+
_html(`<div${_attr_class("_h_")}>`);
|
|
10417
10417
|
_for_of(repos, (repo) => {
|
|
10418
10418
|
const $scope2_id = _scope_id();
|
|
10419
10419
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10429,11 +10429,11 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10429
10429
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10430
10430
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10431
10431
|
}
|
|
10432
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10432
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_id", { ["_il"]: !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")}`);
|
|
10433
10433
|
_if(() => {
|
|
10434
10434
|
if (open) {
|
|
10435
10435
|
const $scope4_id = _scope_id();
|
|
10436
|
-
_html(`<a${_attr_class(["
|
|
10436
|
+
_html(`<a${_attr_class(["_id", "_ie"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10437
10437
|
icon_diff_default({ size: 12 });
|
|
10438
10438
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10439
10439
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10441,9 +10441,9 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10441
10441
|
} else {
|
|
10442
10442
|
const $scope6_id = _scope_id();
|
|
10443
10443
|
_html(`<button type=button${_attr_class([
|
|
10444
|
-
"
|
|
10445
|
-
"
|
|
10446
|
-
"
|
|
10444
|
+
"_id",
|
|
10445
|
+
"_ie",
|
|
10446
|
+
"_if"
|
|
10447
10447
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10448
10448
|
icon_xmark_default({ size: 12 });
|
|
10449
10449
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10471,21 +10471,21 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10471
10471
|
_if(() => {
|
|
10472
10472
|
if (dead.has(p.port)) {
|
|
10473
10473
|
const $scope7_id = _scope_id();
|
|
10474
|
-
_html(`<span${_attr_class(["
|
|
10474
|
+
_html(`<span${_attr_class(["_id", "_ij"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10475
10475
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10476
10476
|
return 0;
|
|
10477
10477
|
} else {
|
|
10478
10478
|
const $scope8_id = _scope_id();
|
|
10479
|
-
_html(`<button type=button${_attr_class(["
|
|
10479
|
+
_html(`<button type=button${_attr_class(["_id", "_ik"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10480
10480
|
_script($scope8_id, "z6");
|
|
10481
10481
|
writeScope($scope8_id, {});
|
|
10482
10482
|
return 1;
|
|
10483
10483
|
}
|
|
10484
10484
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10485
10485
|
_html(`<button type=button${_attr_class([
|
|
10486
|
-
"
|
|
10487
|
-
"
|
|
10488
|
-
"
|
|
10486
|
+
"_id",
|
|
10487
|
+
"_ie",
|
|
10488
|
+
"_if",
|
|
10489
10489
|
{ ["_s"]: armedPid === p.pid }
|
|
10490
10490
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10491
10491
|
icon_xmark_default({ size: 12 });
|
|
@@ -10528,16 +10528,16 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10528
10528
|
});
|
|
10529
10529
|
_resume_branch($scope0_id);
|
|
10530
10530
|
});
|
|
10531
|
-
var railBtn = "
|
|
10532
|
-
var wsBtn = "
|
|
10533
|
-
var rowIcon = "
|
|
10534
|
-
var close = "
|
|
10535
|
-
var sessRename$1 = "
|
|
10536
|
-
var sessBtn$1 = "
|
|
10531
|
+
var railBtn = "_gh _l";
|
|
10532
|
+
var wsBtn = "_gm _I";
|
|
10533
|
+
var rowIcon = "_gp _4 _l";
|
|
10534
|
+
var close = "_gq _7 _l _8";
|
|
10535
|
+
var sessRename$1 = "_gB _J";
|
|
10536
|
+
var sessBtn$1 = "_gD _I";
|
|
10537
10537
|
//#endregion
|
|
10538
10538
|
//#region src/styles/session-pop.css.ts
|
|
10539
|
-
var sessionPop = "
|
|
10540
|
-
var sessionPopBtn = "
|
|
10539
|
+
var sessionPop = "_fv __";
|
|
10540
|
+
var sessionPopBtn = "_fw _I";
|
|
10541
10541
|
//#endregion
|
|
10542
10542
|
//#region src/tags/icons/icon-archive.marko
|
|
10543
10543
|
var icon_archive_default = _template("M", (input) => {
|
|
@@ -10583,22 +10583,22 @@ var usage_pcts_default = _template("I", (input) => {
|
|
|
10583
10583
|
if (windows.length) {
|
|
10584
10584
|
const $scope1_id = _scope_id();
|
|
10585
10585
|
_html(`<span${_attr_class([
|
|
10586
|
-
"
|
|
10586
|
+
"_hp",
|
|
10587
10587
|
input.class,
|
|
10588
|
-
{ ["
|
|
10588
|
+
{ ["_hq"]: agent.stale_seconds != null }
|
|
10589
10589
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10590
10590
|
_for_of(windows, (win$1, i) => {
|
|
10591
10591
|
const $scope2_id = _scope_id();
|
|
10592
|
-
_html(`<span${_attr_class("
|
|
10592
|
+
_html(`<span${_attr_class("_hr")}>`);
|
|
10593
10593
|
_if(() => {
|
|
10594
10594
|
if (i) {
|
|
10595
10595
|
const $scope3_id = _scope_id();
|
|
10596
|
-
_html(`<span${_attr_class("
|
|
10596
|
+
_html(`<span${_attr_class("_hu")} aria-hidden=true>·</span>`);
|
|
10597
10597
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10598
10598
|
return 0;
|
|
10599
10599
|
}
|
|
10600
10600
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10601
|
-
_html(`<span${_attr_class("
|
|
10601
|
+
_html(`<span${_attr_class("_hs")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_ht", win$1.used_percent >= 90 ? "_hl" : win$1.used_percent >= 70 ? "_hk" : win$1.used_percent >= 40 ? "_hj" : "_hi"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10602
10602
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10603
10603
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10604
10604
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10710,7 +10710,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10710
10710
|
_if(() => {
|
|
10711
10711
|
if (input.rail) {
|
|
10712
10712
|
const $scope2_id = _scope_id();
|
|
10713
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10713
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gf"]: 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, 28))}<span${_attr_class([
|
|
10714
10714
|
"_A",
|
|
10715
10715
|
phase[dot$1],
|
|
10716
10716
|
"_bc"
|
|
@@ -10720,34 +10720,34 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10720
10720
|
} else if (ws$1.pending) {
|
|
10721
10721
|
const $scope3_id = _scope_id();
|
|
10722
10722
|
_html(`<section${_attr_class([
|
|
10723
|
-
"
|
|
10724
|
-
"
|
|
10723
|
+
"_gj",
|
|
10724
|
+
"_gF",
|
|
10725
10725
|
{
|
|
10726
|
-
["
|
|
10727
|
-
["
|
|
10726
|
+
["_gk"]: input.railPop,
|
|
10727
|
+
["_gi"]: input.page
|
|
10728
10728
|
}
|
|
10729
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10729
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_gl")}><div${_attr_class(wsBtn)}>`);
|
|
10730
10730
|
_if(() => {
|
|
10731
10731
|
if (ws$1.pending_error) {
|
|
10732
10732
|
const $scope16_id = _scope_id();
|
|
10733
10733
|
icon_warning_default({
|
|
10734
10734
|
size: 12,
|
|
10735
|
-
class: "
|
|
10735
|
+
class: "_gH"
|
|
10736
10736
|
});
|
|
10737
10737
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10738
10738
|
return 0;
|
|
10739
10739
|
} else {
|
|
10740
10740
|
const $scope17_id = _scope_id();
|
|
10741
|
-
_html(`<span${_attr_class(["_G", "
|
|
10741
|
+
_html(`<span${_attr_class(["_G", "_gG"])}></span>`);
|
|
10742
10742
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10743
10743
|
return 1;
|
|
10744
10744
|
}
|
|
10745
10745
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10746
|
-
_html(`<span${_attr_class("
|
|
10746
|
+
_html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_gJ")}${_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>`);
|
|
10747
10747
|
_if(() => {
|
|
10748
10748
|
if (ws$1.pending_error && !retrying) {
|
|
10749
10749
|
const $scope15_id = _scope_id();
|
|
10750
|
-
_html(`<div${_attr_class("
|
|
10750
|
+
_html(`<div${_attr_class("_gI")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope15_id, "b")}<button type=button${_attr_class([
|
|
10751
10751
|
"_q",
|
|
10752
10752
|
btnSm,
|
|
10753
10753
|
{ ["_s"]: armedDelete }
|
|
@@ -10767,15 +10767,15 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10767
10767
|
const $scope4_id = _scope_id();
|
|
10768
10768
|
const sessions$1 = input.sessions || [];
|
|
10769
10769
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10770
|
-
_html(`<section${_attr_class(["
|
|
10771
|
-
["
|
|
10770
|
+
_html(`<section${_attr_class(["_gj", {
|
|
10771
|
+
["_gf"]: input.current,
|
|
10772
10772
|
["_bd"]: input.current,
|
|
10773
|
-
["
|
|
10774
|
-
["
|
|
10775
|
-
}])}><div${_attr_class("
|
|
10773
|
+
["_gk"]: input.railPop,
|
|
10774
|
+
["_gi"]: input.page
|
|
10775
|
+
}])}><div${_attr_class("_gl")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10776
10776
|
"_A",
|
|
10777
10777
|
phase[dot$1],
|
|
10778
|
-
"
|
|
10778
|
+
"_gx"
|
|
10779
10779
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10780
10780
|
_if(() => {
|
|
10781
10781
|
if (sessions$1.length === 1) {
|
|
@@ -10788,7 +10788,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10788
10788
|
icon_agent_default({
|
|
10789
10789
|
agent: activeAgent(sessions$1[0]),
|
|
10790
10790
|
size: 12,
|
|
10791
|
-
class: "
|
|
10791
|
+
class: "_gr"
|
|
10792
10792
|
});
|
|
10793
10793
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10794
10794
|
_: _scope_with_id($scope4_id),
|
|
@@ -10798,11 +10798,11 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10798
10798
|
}
|
|
10799
10799
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10800
10800
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10801
|
-
_html(`<span${_attr_class("
|
|
10801
|
+
_html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10802
10802
|
_if(() => {
|
|
10803
10803
|
if (input.page && metaText) {
|
|
10804
10804
|
const $scope19_id = _scope_id();
|
|
10805
|
-
_html(`<span${_attr_class("
|
|
10805
|
+
_html(`<span${_attr_class("_gw")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10806
10806
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10807
10807
|
return 0;
|
|
10808
10808
|
}
|
|
@@ -10811,7 +10811,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10811
10811
|
_if(() => {
|
|
10812
10812
|
if (!input.page) {
|
|
10813
10813
|
const $scope5_id = _scope_id();
|
|
10814
|
-
_html(`<div${_attr_class("
|
|
10814
|
+
_html(`<div${_attr_class("_gn")}>`);
|
|
10815
10815
|
_if(() => {
|
|
10816
10816
|
if (input.onArchive) {
|
|
10817
10817
|
const $scope6_id = _scope_id();
|
|
@@ -10876,7 +10876,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10876
10876
|
return 0;
|
|
10877
10877
|
}
|
|
10878
10878
|
}, $scope5_id, "d", $sg__input_onReview, $sg__input_onReview, $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10879
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10879
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gg"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10880
10880
|
icon_manage_default({ size: 12 });
|
|
10881
10881
|
_html(`</a>${_el_resume($scope5_id, "e", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10882
10882
|
_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, _subscribe($si__input_onArchive && $input_onArchive__closures, writeScope($scope5_id, {
|
|
@@ -10886,7 +10886,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10886
10886
|
return 0;
|
|
10887
10887
|
}
|
|
10888
10888
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10889
|
-
_html(`</div><div${_attr_class("
|
|
10889
|
+
_html(`</div><div${_attr_class("_gC")}>`);
|
|
10890
10890
|
_if(() => {
|
|
10891
10891
|
if (sessions$1.length === 1 && openPlan) {
|
|
10892
10892
|
const $scope12_id = _scope_id();
|
|
@@ -10894,7 +10894,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10894
10894
|
const $childScope3 = _peek_scope_id();
|
|
10895
10895
|
usage_pcts_default({
|
|
10896
10896
|
agent: openPlan,
|
|
10897
|
-
class: "
|
|
10897
|
+
class: "_gu"
|
|
10898
10898
|
});
|
|
10899
10899
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10900
10900
|
a: _existing_scope($childScope3),
|
|
@@ -10905,14 +10905,14 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10905
10905
|
}, $scope4_id, "l");
|
|
10906
10906
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10907
10907
|
const $scope9_id = _scope_id();
|
|
10908
|
-
_html(`<div${_attr_class(["
|
|
10908
|
+
_html(`<div${_attr_class(["_go", { ["_gf"]: s.id === input.currentTab }])}>`);
|
|
10909
10909
|
_if(() => {
|
|
10910
10910
|
if (renamingId === s.id) {
|
|
10911
10911
|
const $scope11_id = _scope_id();
|
|
10912
10912
|
_html(`<span${_attr_class([
|
|
10913
10913
|
"_A",
|
|
10914
10914
|
phase[sessionPhase(s.state)],
|
|
10915
|
-
"
|
|
10915
|
+
"_gA"
|
|
10916
10916
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10917
10917
|
_set_serialize_reason({
|
|
10918
10918
|
1: $sg__input_sessions,
|
|
@@ -10922,7 +10922,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10922
10922
|
icon_agent_default({
|
|
10923
10923
|
agent: activeAgent(s),
|
|
10924
10924
|
size: 12,
|
|
10925
|
-
class: "
|
|
10925
|
+
class: "_gE"
|
|
10926
10926
|
});
|
|
10927
10927
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10928
10928
|
renameValue = _new_renameValue;
|
|
@@ -10941,9 +10941,9 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10941
10941
|
icon_agent_default({
|
|
10942
10942
|
agent: activeAgent(s),
|
|
10943
10943
|
size: 12,
|
|
10944
|
-
class: "
|
|
10944
|
+
class: "_gE"
|
|
10945
10945
|
});
|
|
10946
|
-
_html(`<span${_attr_class("
|
|
10946
|
+
_html(`<span${_attr_class("_gy")}>${_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("_gz")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10947
10947
|
icon_edit_default({ size: 12 });
|
|
10948
10948
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10949
10949
|
icon_xmark_default({ size: 12 });
|
|
@@ -10955,7 +10955,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10955
10955
|
const $childScope6 = _peek_scope_id();
|
|
10956
10956
|
usage_pcts_default({
|
|
10957
10957
|
agent: openPlan,
|
|
10958
|
-
class: "
|
|
10958
|
+
class: "_gv"
|
|
10959
10959
|
});
|
|
10960
10960
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10961
10961
|
a: _existing_scope($childScope6),
|
|
@@ -11097,11 +11097,11 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11097
11097
|
const sessions = input.sessions || st?.sessions || [];
|
|
11098
11098
|
const manySessions = sessions.length > 1;
|
|
11099
11099
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11100
|
-
_html(`<div${_attr_class("
|
|
11100
|
+
_html(`<div${_attr_class("_eS")}>`);
|
|
11101
11101
|
_if(() => {
|
|
11102
11102
|
if (ws) {
|
|
11103
11103
|
const $scope1_id = _scope_id();
|
|
11104
|
-
_html(`<section${_attr_class("
|
|
11104
|
+
_html(`<section${_attr_class("_eT")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eU")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11105
11105
|
_if(() => {
|
|
11106
11106
|
if (sessions.length === 1) {
|
|
11107
11107
|
const $scope10_id = _scope_id();
|
|
@@ -11113,7 +11113,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11113
11113
|
icon_agent_default({
|
|
11114
11114
|
agent: activeAgent(sessions[0]),
|
|
11115
11115
|
size: 16,
|
|
11116
|
-
class: "
|
|
11116
|
+
class: "_eX"
|
|
11117
11117
|
});
|
|
11118
11118
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope10_id, {
|
|
11119
11119
|
_: _scope_with_id($scope1_id),
|
|
@@ -11122,14 +11122,14 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11122
11122
|
return 0;
|
|
11123
11123
|
}
|
|
11124
11124
|
}, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
|
|
11125
|
-
_html(`<span${_attr_class("
|
|
11125
|
+
_html(`<span${_attr_class("_eV")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_eW")}>${_text_resume($scope1_id, "h", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11126
11126
|
_if(() => {
|
|
11127
11127
|
if (manySessions) {
|
|
11128
11128
|
const $scope2_id = _scope_id();
|
|
11129
|
-
_html(`<div${_attr_class("
|
|
11129
|
+
_html(`<div${_attr_class("_eY")}>`);
|
|
11130
11130
|
_for_of(sessions, (s) => {
|
|
11131
11131
|
const $scope3_id = _scope_id();
|
|
11132
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11132
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_e0", { ["_eZ"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
|
|
11133
11133
|
_set_serialize_reason({
|
|
11134
11134
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11135
11135
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11139,7 +11139,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11139
11139
|
agent: activeAgent(s),
|
|
11140
11140
|
size: 14
|
|
11141
11141
|
});
|
|
11142
|
-
_html(`<span${_attr_class("
|
|
11142
|
+
_html(`<span${_attr_class("_e1")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 5))}`);
|
|
11143
11143
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
|
|
11144
11144
|
h: $si__input_tab && s?.id,
|
|
11145
11145
|
_: _scope_with_id($scope2_id),
|
|
@@ -11172,16 +11172,16 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11172
11172
|
const $scope5_id = _scope_id();
|
|
11173
11173
|
const $if_content3__done__closures = /* @__PURE__ */ new Set();
|
|
11174
11174
|
const done = i === 1;
|
|
11175
|
-
_html(`<section${_attr_class("
|
|
11175
|
+
_html(`<section${_attr_class("_e2")}>`);
|
|
11176
11176
|
_if(() => {
|
|
11177
11177
|
if (done) {
|
|
11178
11178
|
const $scope11_id = _scope_id();
|
|
11179
|
-
_html(`<h2${_attr_class(["
|
|
11179
|
+
_html(`<h2${_attr_class(["_cn", "_e3"])}>Done</h2>`);
|
|
11180
11180
|
$si__input_openIds__OR__input_doneIds && writeScope($scope11_id, {});
|
|
11181
11181
|
return 0;
|
|
11182
11182
|
}
|
|
11183
11183
|
}, $scope5_id, "b", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, 0, 1);
|
|
11184
|
-
_html(`<div${_attr_class("
|
|
11184
|
+
_html(`<div${_attr_class("_e4")}>`);
|
|
11185
11185
|
_for_of(ids, (id) => {
|
|
11186
11186
|
const $scope6_id = _scope_id();
|
|
11187
11187
|
const w = input.byId.get(id);
|
|
@@ -11232,7 +11232,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11232
11232
|
const rp = phaseOf(rs);
|
|
11233
11233
|
const rowSessions = rs?.sessions || [];
|
|
11234
11234
|
const many = rowSessions.length > 1;
|
|
11235
|
-
_html(`<div${_attr_class("
|
|
11235
|
+
_html(`<div${_attr_class("_e5")}><a${_attr("href", `/w/${id}`)}${_attr_class("_e6")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope8_id, "c", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds)}`);
|
|
11236
11236
|
_if(() => {
|
|
11237
11237
|
if (rowSessions.length === 1) {
|
|
11238
11238
|
const $scope12_id = _scope_id();
|
|
@@ -11244,7 +11244,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11244
11244
|
icon_agent_default({
|
|
11245
11245
|
agent: activeAgent(rowSessions[0]),
|
|
11246
11246
|
size: 16,
|
|
11247
|
-
class: "
|
|
11247
|
+
class: "_e8"
|
|
11248
11248
|
});
|
|
11249
11249
|
$si__input_allStatus__OR__input_openIds__OR__input_doneIds && writeScope($scope12_id, {
|
|
11250
11250
|
_: _scope_with_id($scope8_id),
|
|
@@ -11253,7 +11253,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11253
11253
|
return 0;
|
|
11254
11254
|
}
|
|
11255
11255
|
}, $scope8_id, "d", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds);
|
|
11256
|
-
_html(`<span${_attr_class("
|
|
11256
|
+
_html(`<span${_attr_class("_e7")}>${_text_resume($scope8_id, "f", w.name, $sg__input_openIds__OR__input_doneIds__OR__input_byId)}</span>`);
|
|
11257
11257
|
_if(() => {
|
|
11258
11258
|
if (many) {
|
|
11259
11259
|
const $scope13_id = _scope_id();
|
|
@@ -11275,7 +11275,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11275
11275
|
const $scope14_id = _scope_id();
|
|
11276
11276
|
icon_chevron_right_default({
|
|
11277
11277
|
size: 14,
|
|
11278
|
-
class: "
|
|
11278
|
+
class: "_e_"
|
|
11279
11279
|
});
|
|
11280
11280
|
$si__input_openIds__OR__input_doneIds && writeScope($scope14_id, {});
|
|
11281
11281
|
return 1;
|
|
@@ -11512,28 +11512,28 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11512
11512
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
11513
11513
|
const pageOpen = grouped.ids.filter((id) => id !== ws?.id && !grouped.done.has(id));
|
|
11514
11514
|
const pageDone = grouped.ids.filter((id) => id !== ws?.id && grouped.done.has(id));
|
|
11515
|
-
_html(`<aside${_attr_class(["
|
|
11516
|
-
["
|
|
11517
|
-
["
|
|
11515
|
+
_html(`<aside${_attr_class(["_bR", {
|
|
11516
|
+
["_bP"]: !navOpen,
|
|
11517
|
+
["_bQ"]: isPage
|
|
11518
11518
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
11519
11519
|
_if(() => {
|
|
11520
11520
|
if (isPage) {
|
|
11521
11521
|
const $scope1_id = _scope_id();
|
|
11522
|
-
_html(`<header${_attr_class("
|
|
11522
|
+
_html(`<header${_attr_class("_bU")}><div${_attr_class("_b3")}>`);
|
|
11523
11523
|
_if(() => {
|
|
11524
11524
|
if (input.instanceName) {
|
|
11525
11525
|
const $scope2_id = _scope_id();
|
|
11526
|
-
_html(`<div${_attr_class("
|
|
11526
|
+
_html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11527
11527
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
11528
11528
|
return 0;
|
|
11529
11529
|
}
|
|
11530
11530
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
11531
|
-
_html(`<h1${_attr_class("
|
|
11531
|
+
_html(`<h1${_attr_class("_bV")}>Workspaces</h1></div><div${_attr_class("_bW")}>`);
|
|
11532
11532
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11533
11533
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
11534
11534
|
iconBtn,
|
|
11535
|
-
"
|
|
11536
|
-
{ ["
|
|
11535
|
+
"_bX",
|
|
11536
|
+
{ ["_bM"]: view === "settings" }
|
|
11537
11537
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11538
11538
|
icon_settings_default({ size: 16 });
|
|
11539
11539
|
_if(() => {
|
|
@@ -11552,7 +11552,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11552
11552
|
_if(() => {
|
|
11553
11553
|
if (!isPage && input.instanceName) {
|
|
11554
11554
|
const $scope3_id = _scope_id();
|
|
11555
|
-
_html(`<div${_attr_class("
|
|
11555
|
+
_html(`<div${_attr_class("_b0")} title="This work server (Settings → Appearance)"><img${_attr_class("_b1")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_b2")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
11556
11556
|
writeScope($scope3_id, {});
|
|
11557
11557
|
return 0;
|
|
11558
11558
|
}
|
|
@@ -11593,13 +11593,13 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11593
11593
|
return 0;
|
|
11594
11594
|
} else if (navOpen) {
|
|
11595
11595
|
const $scope5_id = _scope_id();
|
|
11596
|
-
_html(`<div${_attr_class("
|
|
11596
|
+
_html(`<div${_attr_class("_b4")}>`);
|
|
11597
11597
|
_for_of(grouped.ids, (wsId) => {
|
|
11598
11598
|
const $scope6_id = _scope_id();
|
|
11599
11599
|
_if(() => {
|
|
11600
11600
|
if (grouped.start.has(wsId) && GROUP_LABEL[grouped.start.get(wsId)]) {
|
|
11601
11601
|
const $scope14_id = _scope_id();
|
|
11602
|
-
_html(`<h2${_attr_class(["
|
|
11602
|
+
_html(`<h2${_attr_class(["_cn", "_bY"])}>${_text_resume($scope14_id, "b", GROUP_LABEL[grouped.start.get(wsId)], $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus)}</h2>`);
|
|
11603
11603
|
_subscribe($si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && $grouped_start__closures, writeScope($scope14_id, {
|
|
11604
11604
|
_: _scope_with_id($scope6_id),
|
|
11605
11605
|
Cbm: $si__input_workspace__OR__input_allWorkspaces__OR__input_allStatus && 1
|
|
@@ -11694,7 +11694,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11694
11694
|
railHover = null;
|
|
11695
11695
|
}, 150);
|
|
11696
11696
|
}, "B8", $scope7_id);
|
|
11697
|
-
_html(`<div${_attr_class("
|
|
11697
|
+
_html(`<div${_attr_class("_b5")}>`);
|
|
11698
11698
|
_for_of(grouped.ids, (wsId, i) => {
|
|
11699
11699
|
const $scope8_id = _scope_id();
|
|
11700
11700
|
_html("<span>");
|
|
@@ -11753,7 +11753,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11753
11753
|
if (railHover) {
|
|
11754
11754
|
const $scope9_id = _scope_id();
|
|
11755
11755
|
const hoverId = railHover.id;
|
|
11756
|
-
_html(`<div${_attr_class(["__", "
|
|
11756
|
+
_html(`<div${_attr_class(["__", "_b8"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
11757
11757
|
_set_serialize_reason({
|
|
11758
11758
|
0: 1,
|
|
11759
11759
|
1: 1,
|
|
@@ -11853,7 +11853,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11853
11853
|
return 0;
|
|
11854
11854
|
}
|
|
11855
11855
|
}, $scope0_id, "e");
|
|
11856
|
-
_html(`<div${_attr_class("
|
|
11856
|
+
_html(`<div${_attr_class("_b6")}>`);
|
|
11857
11857
|
_if(() => {
|
|
11858
11858
|
if (isPage) {
|
|
11859
11859
|
const $scope11_id = _scope_id();
|
|
@@ -11861,7 +11861,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11861
11861
|
"_q",
|
|
11862
11862
|
"_r",
|
|
11863
11863
|
btnLg,
|
|
11864
|
-
"
|
|
11864
|
+
"_bZ"
|
|
11865
11865
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11866
11866
|
icon_folder_plus_default({ size: 16 });
|
|
11867
11867
|
_html(` New workspace</a>${_el_resume($scope11_id, "a")}`);
|
|
@@ -11883,9 +11883,9 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11883
11883
|
return 1;
|
|
11884
11884
|
}
|
|
11885
11885
|
}, $scope10_id, "a", 1, 1, 1, "</button>", 1);
|
|
11886
|
-
_html(`<div${_attr_class(["_z", "
|
|
11886
|
+
_html(`<div${_attr_class(["_z", "_b7"])}></div>`);
|
|
11887
11887
|
_if(() => {}, $scope10_id, "c", 1, 1, 1, 0, 1);
|
|
11888
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
11888
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_bM"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
11889
11889
|
icon_settings_default({});
|
|
11890
11890
|
_if(() => {
|
|
11891
11891
|
if (input.setupReady === false) {
|
|
@@ -11895,7 +11895,7 @@ var side_nav_default = _template("B", (input) => {
|
|
|
11895
11895
|
return 0;
|
|
11896
11896
|
}
|
|
11897
11897
|
}, $scope10_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
11898
|
-
_html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
11898
|
+
_html(`</a>${_el_resume($scope10_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_bM"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
11899
11899
|
icon_folder_plus_default({ size: 16 });
|
|
11900
11900
|
_html(`</a>${_el_resume($scope10_id, "g")}`);
|
|
11901
11901
|
_script($scope10_id, "B18");
|
|
@@ -12238,8 +12238,8 @@ function treeDirs(files) {
|
|
|
12238
12238
|
};
|
|
12239
12239
|
return build(root, "", "", -1);
|
|
12240
12240
|
}
|
|
12241
|
-
var treeToggle = "
|
|
12242
|
-
var pageTitle = "
|
|
12241
|
+
var treeToggle = "_fT _5 _l";
|
|
12242
|
+
var pageTitle = "_f0 _ec";
|
|
12243
12243
|
//#endregion
|
|
12244
12244
|
//#region src/tags/diff-send.marko
|
|
12245
12245
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -12249,7 +12249,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12249
12249
|
let sendTarget = null;
|
|
12250
12250
|
const sessions = input.sessions || [];
|
|
12251
12251
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12252
|
-
_html(`<span${_attr_class("
|
|
12252
|
+
_html(`<span${_attr_class("_hv")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12253
12253
|
_if(() => {
|
|
12254
12254
|
if (sessions.length === 1) {
|
|
12255
12255
|
const $scope1_id = _scope_id();
|
|
@@ -12259,11 +12259,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12259
12259
|
return 0;
|
|
12260
12260
|
} else if (sessions.length) {
|
|
12261
12261
|
const $scope2_id = _scope_id();
|
|
12262
|
-
_html(`<span${_attr_class("
|
|
12262
|
+
_html(`<span${_attr_class("_hw")}><button type=button${_attr_class(["_r", "_hx"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12263
12263
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12264
12264
|
sendTarget = _new_sendTarget;
|
|
12265
12265
|
}, "j0", $scope2_id), () => {
|
|
12266
|
-
_html(`<select${_attr_class("
|
|
12266
|
+
_html(`<select${_attr_class("_hy")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12267
12267
|
_for_of(sessions, (s) => {
|
|
12268
12268
|
const $scope3_id = _scope_id();
|
|
12269
12269
|
_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)}`);
|
|
@@ -13968,9 +13968,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13968
13968
|
}
|
|
13969
13969
|
return shortHeadFallback(head);
|
|
13970
13970
|
}
|
|
13971
|
-
var repoWorktree = "
|
|
13972
|
-
var repoTitle = "
|
|
13973
|
-
var path$1 = "
|
|
13971
|
+
var repoWorktree = "_iV _y";
|
|
13972
|
+
var repoTitle = "_i1 _x";
|
|
13973
|
+
var path$1 = "_jh _bb";
|
|
13974
13974
|
//#endregion
|
|
13975
13975
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13976
13976
|
var icon_chevron_down_default = _template("W", (input) => {
|
|
@@ -14010,7 +14010,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
14010
14010
|
_scope_reason();
|
|
14011
14011
|
const $scope0_id = _scope_id();
|
|
14012
14012
|
_el($scope0_id, "h0");
|
|
14013
|
-
_html(`<div${_attr_class(["
|
|
14013
|
+
_html(`<div${_attr_class(["_jj", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
14014
14014
|
_script($scope0_id, "h1");
|
|
14015
14015
|
writeScope($scope0_id, {
|
|
14016
14016
|
e: input.file,
|
|
@@ -14069,14 +14069,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14069
14069
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
14070
14070
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
14071
14071
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
14072
|
-
_html(`<section${_attr_class("
|
|
14072
|
+
_html(`<section${_attr_class("_iR")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iS", { ["_iT"]: input.collapsible && input.collapsed }])}>`);
|
|
14073
14073
|
_if(() => {
|
|
14074
14074
|
if (input.collapsible) {
|
|
14075
14075
|
const $scope1_id = _scope_id();
|
|
14076
|
-
_html(`<button type=button${_attr_class("
|
|
14077
|
-
"
|
|
14078
|
-
!input.collapsed && "
|
|
14079
|
-
input.expanding && "
|
|
14076
|
+
_html(`<button type=button${_attr_class("_iU")} 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([
|
|
14077
|
+
"_je",
|
|
14078
|
+
!input.collapsed && "_jf",
|
|
14079
|
+
input.expanding && "_jg"
|
|
14080
14080
|
])} aria-hidden=true>`);
|
|
14081
14081
|
_if(() => {
|
|
14082
14082
|
if (input.collapsed) {
|
|
@@ -14115,14 +14115,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14115
14115
|
return 1;
|
|
14116
14116
|
}
|
|
14117
14117
|
}, $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);
|
|
14118
|
-
_html(`<span${_attr_class("
|
|
14118
|
+
_html(`<span${_attr_class("_i2")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_i3"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i5"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i4"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
14119
14119
|
_if(() => {
|
|
14120
14120
|
if (compare$1.topic) {
|
|
14121
14121
|
const $scope15_id = _scope_id();
|
|
14122
14122
|
_html(`<span${_attr_class([
|
|
14123
14123
|
"_N",
|
|
14124
14124
|
tone.accent,
|
|
14125
|
-
"
|
|
14125
|
+
"_i6"
|
|
14126
14126
|
])}>${_text_resume($scope15_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
14127
14127
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
14128
14128
|
return 0;
|
|
@@ -14135,7 +14135,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14135
14135
|
_html(`<button type=button${_attr_class([
|
|
14136
14136
|
"_N",
|
|
14137
14137
|
tone.warn,
|
|
14138
|
-
"
|
|
14138
|
+
"_i7"
|
|
14139
14139
|
])}${_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")}`);
|
|
14140
14140
|
_script($scope2_id, "x10");
|
|
14141
14141
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -14145,7 +14145,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14145
14145
|
_if(() => {
|
|
14146
14146
|
if (repo.contained && input.files.length) {
|
|
14147
14147
|
const $scope13_id = _scope_id();
|
|
14148
|
-
_html(`<span${_attr_class(["_N", "
|
|
14148
|
+
_html(`<span${_attr_class(["_N", "_i7"])}${_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)}`);
|
|
14149
14149
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
14150
14150
|
return 0;
|
|
14151
14151
|
}
|
|
@@ -14153,16 +14153,16 @@ var review_section_default = _template("x", (input) => {
|
|
|
14153
14153
|
_if(() => {
|
|
14154
14154
|
if (input.localDiffers) {
|
|
14155
14155
|
const $scope3_id = _scope_id();
|
|
14156
|
-
_html(`<span${_attr_class(["_N", "
|
|
14156
|
+
_html(`<span${_attr_class(["_N", "_i7"])}${_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)}`);
|
|
14157
14157
|
$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) });
|
|
14158
14158
|
return 0;
|
|
14159
14159
|
}
|
|
14160
14160
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 39), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
14161
|
-
_html(`<span${_attr_class("
|
|
14161
|
+
_html(`<span${_attr_class("_iW")}><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>`);
|
|
14162
14162
|
_if(() => {
|
|
14163
14163
|
if (stats.additions || stats.deletions) {
|
|
14164
14164
|
const $scope14_id = _scope_id();
|
|
14165
|
-
_html(`<span${_attr_class("
|
|
14165
|
+
_html(`<span${_attr_class("_iX")}>+${_text_resume($scope14_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iY")}>−${_text_resume($scope14_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
14166
14166
|
$si__input_files__OR__input_shownKeys && writeScope($scope14_id, { _: _scope_with_id($scope0_id) });
|
|
14167
14167
|
return 0;
|
|
14168
14168
|
}
|
|
@@ -14170,7 +14170,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14170
14170
|
_if(() => {
|
|
14171
14171
|
if (newCount || input.onlyNew) {
|
|
14172
14172
|
const $scope4_id = _scope_id();
|
|
14173
|
-
_html(`<button type=button${_attr_class(["
|
|
14173
|
+
_html(`<button type=button${_attr_class(["_i0", { ["_iZ"]: 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")}`);
|
|
14174
14174
|
_script($scope4_id, "x11");
|
|
14175
14175
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
14176
14176
|
return 0;
|
|
@@ -14180,7 +14180,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14180
14180
|
_if(() => {
|
|
14181
14181
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
14182
14182
|
const $scope5_id = _scope_id();
|
|
14183
|
-
_html(`<div${_attr_class("
|
|
14183
|
+
_html(`<div${_attr_class("_i9")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
14184
14184
|
_for_of(input.files, (file$2) => {
|
|
14185
14185
|
const $scope6_id = _scope_id();
|
|
14186
14186
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -14193,14 +14193,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14193
14193
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
14194
14194
|
input.onFileToggle(file$2.key, open);
|
|
14195
14195
|
}, "x0", $scope6_id))}${_attr_class([
|
|
14196
|
-
"
|
|
14197
|
-
forceNear && "
|
|
14198
|
-
input.findHit?.key === file$2.key && "
|
|
14199
|
-
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("
|
|
14196
|
+
"_i_",
|
|
14197
|
+
forceNear && "_ja",
|
|
14198
|
+
input.findHit?.key === file$2.key && "_iP"
|
|
14199
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_jc")}><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 && "_iQ"])}${_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))}`);
|
|
14200
14200
|
_if(() => {
|
|
14201
14201
|
if (file$2.changedSince) {
|
|
14202
14202
|
const $scope19_id = _scope_id();
|
|
14203
|
-
_html(`<span${_attr_class(["_A", "
|
|
14203
|
+
_html(`<span${_attr_class(["_A", "_i8"])} title="Changed since your last visit"></span>`);
|
|
14204
14204
|
$si__input_files && writeScope($scope19_id, {});
|
|
14205
14205
|
return 0;
|
|
14206
14206
|
}
|
|
@@ -14219,17 +14219,17 @@ var review_section_default = _template("x", (input) => {
|
|
|
14219
14219
|
_if(() => {
|
|
14220
14220
|
if (file$2.binary) {
|
|
14221
14221
|
const $scope20_id = _scope_id();
|
|
14222
|
-
_html(`<p${_attr_class(["
|
|
14222
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>binary file</p>`);
|
|
14223
14223
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope20_id, {});
|
|
14224
14224
|
return 0;
|
|
14225
14225
|
} else if (file$2.tooLarge) {
|
|
14226
14226
|
const $scope21_id = _scope_id();
|
|
14227
|
-
_html(`<p${_attr_class(["
|
|
14227
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>file too large to display</p>`);
|
|
14228
14228
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope21_id, {});
|
|
14229
14229
|
return 1;
|
|
14230
14230
|
} else if (file$2.old == null && file$2.new == null) {
|
|
14231
14231
|
const $scope22_id = _scope_id();
|
|
14232
|
-
_html(`<p${_attr_class(["
|
|
14232
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>file could not be read</p>`);
|
|
14233
14233
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope22_id, {});
|
|
14234
14234
|
return 2;
|
|
14235
14235
|
} else if (expanded) {
|
|
@@ -14237,7 +14237,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14237
14237
|
_if(() => {
|
|
14238
14238
|
if (!forceNear) {
|
|
14239
14239
|
const $scope8_id = _scope_id();
|
|
14240
|
-
_html(`<div${_attr_class("
|
|
14240
|
+
_html(`<div${_attr_class("_jd")}></div>${_el_resume($scope8_id, "a")}`);
|
|
14241
14241
|
_script($scope8_id, "x12");
|
|
14242
14242
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
14243
14243
|
return 0;
|
|
@@ -14245,7 +14245,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14245
14245
|
const $scope9_id = _scope_id();
|
|
14246
14246
|
const $childScope = _peek_scope_id();
|
|
14247
14247
|
diff_file_default({
|
|
14248
|
-
class: "
|
|
14248
|
+
class: "_jb",
|
|
14249
14249
|
file: file$2,
|
|
14250
14250
|
comments: fileComments,
|
|
14251
14251
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -14382,7 +14382,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14382
14382
|
cd: $si__input_findHit_line && $input_findHit_line__closures
|
|
14383
14383
|
});
|
|
14384
14384
|
});
|
|
14385
|
-
var fileFilter = "
|
|
14385
|
+
var fileFilter = "_jl _n";
|
|
14386
14386
|
//#endregion
|
|
14387
14387
|
//#region src/tags/file-filter.marko
|
|
14388
14388
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -14412,7 +14412,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
14412
14412
|
pending = v;
|
|
14413
14413
|
box.timer = setTimeout(flush, 150);
|
|
14414
14414
|
}, "n2", $scope0_id);
|
|
14415
|
-
_html(`<div${_attr_class("
|
|
14415
|
+
_html(`<div${_attr_class("_jk")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
14416
14416
|
type(v);
|
|
14417
14417
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
14418
14418
|
_script($scope0_id, "n3");
|
|
@@ -14445,7 +14445,7 @@ var $content = (input) => {
|
|
|
14445
14445
|
_for_of(dir.dirs, (child) => {
|
|
14446
14446
|
const $scope1_id = _scope_id();
|
|
14447
14447
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14448
|
-
_html(`<div${_attr_class("
|
|
14448
|
+
_html(`<div${_attr_class("_h1")}><button type=button${_attr_class(["_h2", { ["_hT"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_h9")}>`);
|
|
14449
14449
|
_if(() => {
|
|
14450
14450
|
if (shut) {
|
|
14451
14451
|
const $scope4_id = _scope_id();
|
|
@@ -14459,7 +14459,7 @@ var $content = (input) => {
|
|
|
14459
14459
|
return 1;
|
|
14460
14460
|
}
|
|
14461
14461
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14462
|
-
_html(`<span${_attr_class("
|
|
14462
|
+
_html(`<span${_attr_class("_h3")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14463
14463
|
_if(() => {
|
|
14464
14464
|
if (!shut) {
|
|
14465
14465
|
const $scope2_id = _scope_id();
|
|
@@ -14506,11 +14506,11 @@ var $content = (input) => {
|
|
|
14506
14506
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14507
14507
|
_for_of(dir.files, ({ file, name }) => {
|
|
14508
14508
|
const $scope3_id = _scope_id();
|
|
14509
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14509
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_h5", { ["_h4"]: 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("_h6")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14510
14510
|
_if(() => {
|
|
14511
14511
|
if (input.newKeys.has(file.key)) {
|
|
14512
14512
|
const $scope6_id = _scope_id();
|
|
14513
|
-
_html(`<span${_attr_class(["_A", "
|
|
14513
|
+
_html(`<span${_attr_class(["_A", "_h7"])} title="Changed since your last visit"></span>`);
|
|
14514
14514
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14515
14515
|
return 0;
|
|
14516
14516
|
}
|
|
@@ -14518,7 +14518,7 @@ var $content = (input) => {
|
|
|
14518
14518
|
_if(() => {
|
|
14519
14519
|
if (input.commentKeys.has(file.key)) {
|
|
14520
14520
|
const $scope7_id = _scope_id();
|
|
14521
|
-
_html(`<span${_attr_class("
|
|
14521
|
+
_html(`<span${_attr_class("_h8")}>`);
|
|
14522
14522
|
icon_comment_default({ size: 12 });
|
|
14523
14523
|
_html("</span>");
|
|
14524
14524
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14576,7 +14576,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14576
14576
|
scope: input.scope ?? null,
|
|
14577
14577
|
file: key
|
|
14578
14578
|
}), "l0", $scope0_id);
|
|
14579
|
-
_html(`<aside${_attr_class(["
|
|
14579
|
+
_html(`<aside${_attr_class(["_hU", { ["_hT"]: input.open === false }])}><div${_attr_class("_hV")}>`);
|
|
14580
14580
|
_set_serialize_reason(2);
|
|
14581
14581
|
const $childScope = _peek_scope_id();
|
|
14582
14582
|
file_filter_default({
|
|
@@ -14585,18 +14585,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14585
14585
|
filter = _new_filter;
|
|
14586
14586
|
}, "l1", $scope0_id)
|
|
14587
14587
|
});
|
|
14588
|
-
_html(`</div><div${_attr_class("
|
|
14588
|
+
_html(`</div><div${_attr_class("_hW")}>`);
|
|
14589
14589
|
_if(() => {
|
|
14590
14590
|
if (!input.sections.length && filter) {
|
|
14591
14591
|
const $scope3_id = _scope_id();
|
|
14592
|
-
_html(`<p${_attr_class("
|
|
14592
|
+
_html(`<p${_attr_class("_hX")}>No files match.</p>`);
|
|
14593
14593
|
writeScope($scope3_id, {});
|
|
14594
14594
|
return 0;
|
|
14595
14595
|
}
|
|
14596
14596
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14597
14597
|
_for_of(input.sections, (section) => {
|
|
14598
14598
|
const $scope1_id = _scope_id();
|
|
14599
|
-
_html(`<div${_attr_class("
|
|
14599
|
+
_html(`<div${_attr_class("_hY")}><button type=button${_attr_class(["_hZ", { ["_hT"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_h9")}>`);
|
|
14600
14600
|
_if(() => {
|
|
14601
14601
|
if (collapsedRepos.has(section.id)) {
|
|
14602
14602
|
const $scope4_id = _scope_id();
|
|
@@ -14610,12 +14610,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14610
14610
|
return 1;
|
|
14611
14611
|
}
|
|
14612
14612
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14613
|
-
_html(`<span${_attr_class("
|
|
14613
|
+
_html(`<span${_attr_class("_h3")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14614
14614
|
_if(() => {
|
|
14615
14615
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14616
14616
|
const $scope2_id = _scope_id();
|
|
14617
14617
|
const root = treeDirs(section.files);
|
|
14618
|
-
_html(`<div${_attr_class("
|
|
14618
|
+
_html(`<div${_attr_class("_h0")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14619
14619
|
_set_serialize_reason(1);
|
|
14620
14620
|
const $childScope2 = _peek_scope_id();
|
|
14621
14621
|
diff_tree_dir_default({
|
|
@@ -14685,7 +14685,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14685
14685
|
});
|
|
14686
14686
|
_resume_branch($scope0_id);
|
|
14687
14687
|
});
|
|
14688
|
-
var sheetDir = "
|
|
14688
|
+
var sheetDir = "_iJ _bb";
|
|
14689
14689
|
//#endregion
|
|
14690
14690
|
//#region src/tags/diff-file-sheet.marko
|
|
14691
14691
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14741,9 +14741,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14741
14741
|
_if(() => {
|
|
14742
14742
|
if (open) {
|
|
14743
14743
|
const $scope1_id = _scope_id();
|
|
14744
|
-
_html(`<div${_attr_class("
|
|
14744
|
+
_html(`<div${_attr_class("_iA")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_iB")} role=dialog aria-label="Jump to file"><div${_attr_class("_iC")}><strong${_attr_class("_iz")}>Files</strong><span${_attr_class("_iD")}>${_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, "_iy"])} title=Close aria-label=Close>`);
|
|
14745
14745
|
icon_xmark_default({ size: 16 });
|
|
14746
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14746
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iL")}>`);
|
|
14747
14747
|
_set_serialize_reason(2);
|
|
14748
14748
|
const $childScope = _peek_scope_id();
|
|
14749
14749
|
file_filter_default({
|
|
@@ -14752,13 +14752,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14752
14752
|
filter = _new_filter;
|
|
14753
14753
|
}, "g1", $scope1_id)
|
|
14754
14754
|
});
|
|
14755
|
-
_html(`</div><div${_attr_class("
|
|
14755
|
+
_html(`</div><div${_attr_class("_iE")}>`);
|
|
14756
14756
|
_for_of(groups, (group) => {
|
|
14757
14757
|
const $scope2_id = _scope_id();
|
|
14758
|
-
_html(`<div${_attr_class("
|
|
14758
|
+
_html(`<div${_attr_class("_iF")}><div${_attr_class("_iG")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14759
14759
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14760
14760
|
const $scope3_id = _scope_id();
|
|
14761
|
-
_html(`<div${_attr_class("
|
|
14761
|
+
_html(`<div${_attr_class("_iH")}>`);
|
|
14762
14762
|
_if(() => {
|
|
14763
14763
|
if (dir) {
|
|
14764
14764
|
const $scope5_id = _scope_id();
|
|
@@ -14769,11 +14769,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14769
14769
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14770
14770
|
_for_of(files, ({ file, name }) => {
|
|
14771
14771
|
const $scope4_id = _scope_id();
|
|
14772
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14772
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_iI", "_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("_iK")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14773
14773
|
_if(() => {
|
|
14774
14774
|
if (newKeys.has(file.key)) {
|
|
14775
14775
|
const $scope6_id = _scope_id();
|
|
14776
|
-
_html(`<span${_attr_class(["_A", "
|
|
14776
|
+
_html(`<span${_attr_class(["_A", "_iN"])} title="Changed since your last visit"></span>`);
|
|
14777
14777
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14778
14778
|
return 0;
|
|
14779
14779
|
}
|
|
@@ -14783,7 +14783,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14783
14783
|
const $scope7_id = _scope_id();
|
|
14784
14784
|
icon_comment_default({
|
|
14785
14785
|
size: 12,
|
|
14786
|
-
class: "
|
|
14786
|
+
class: "_iO"
|
|
14787
14787
|
});
|
|
14788
14788
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14789
14789
|
return 0;
|
|
@@ -14808,7 +14808,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14808
14808
|
_if(() => {
|
|
14809
14809
|
if (!input.files.length) {
|
|
14810
14810
|
const $scope8_id = _scope_id();
|
|
14811
|
-
_html(`<p${_attr_class("
|
|
14811
|
+
_html(`<p${_attr_class("_iM")}>No files match.</p>`);
|
|
14812
14812
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14813
14813
|
return 0;
|
|
14814
14814
|
}
|
|
@@ -15348,11 +15348,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15348
15348
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
15349
15349
|
}
|
|
15350
15350
|
}, "m33", $scope0_id);
|
|
15351
|
-
_html(`<div${_attr_class("
|
|
15351
|
+
_html(`<div${_attr_class("_fQ")}><div${_attr_class("_fV")}><div${_attr_class("_fW")}><div${_attr_class(["_f6", { ["_f5"]: !comments.length }])}>`);
|
|
15352
15352
|
_if(() => {
|
|
15353
15353
|
if (input.onExit) {
|
|
15354
15354
|
const $scope1_id = _scope_id();
|
|
15355
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
15355
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_fX"])} title="Back to terminal (Esc)">`);
|
|
15356
15356
|
icon_back_default({ size: 14 });
|
|
15357
15357
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
15358
15358
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -15363,7 +15363,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15363
15363
|
_if(() => {
|
|
15364
15364
|
if (comments.length) {
|
|
15365
15365
|
const $scope5_id = _scope_id();
|
|
15366
|
-
_html(`<span${_attr_class("
|
|
15366
|
+
_html(`<span${_attr_class("_fZ")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
15367
15367
|
writeScope($scope5_id, {});
|
|
15368
15368
|
return 0;
|
|
15369
15369
|
}
|
|
@@ -15371,7 +15371,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15371
15371
|
_if(() => {
|
|
15372
15372
|
if (comments.length) {
|
|
15373
15373
|
const $scope2_id = _scope_id();
|
|
15374
|
-
_html(`<span${_attr_class("
|
|
15374
|
+
_html(`<span${_attr_class("_fY")}>`);
|
|
15375
15375
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
15376
15376
|
const $childScope = _peek_scope_id();
|
|
15377
15377
|
diff_send_default({
|
|
@@ -15384,14 +15384,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15384
15384
|
return 0;
|
|
15385
15385
|
}
|
|
15386
15386
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
15387
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15387
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_fU")}>`);
|
|
15388
15388
|
_if(() => {
|
|
15389
15389
|
if (hasFiles) {
|
|
15390
15390
|
const $scope12_id = _scope_id();
|
|
15391
15391
|
_html(`<button${_attr_class([
|
|
15392
15392
|
treeToggle,
|
|
15393
|
-
"
|
|
15394
|
-
{ ["
|
|
15393
|
+
"_fS",
|
|
15394
|
+
{ ["_fR"]: treeOpen }
|
|
15395
15395
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
15396
15396
|
icon_sidebar_default({ size: 14 });
|
|
15397
15397
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -15400,7 +15400,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15400
15400
|
return 0;
|
|
15401
15401
|
}
|
|
15402
15402
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15403
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15403
|
+
_html(`<button${_attr_class([iconBtnRow, "_fS"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
15404
15404
|
_set_serialize_reason(1);
|
|
15405
15405
|
const $childScope2 = _peek_scope_id();
|
|
15406
15406
|
icon_refresh_default({
|
|
@@ -15411,19 +15411,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15411
15411
|
_if(() => {
|
|
15412
15412
|
if (hasFiles) {
|
|
15413
15413
|
const $scope13_id = _scope_id();
|
|
15414
|
-
_html(`<button${_attr_class(["_q", "
|
|
15414
|
+
_html(`<button${_attr_class(["_q", "_ge"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
15415
15415
|
_script($scope13_id, "m53");
|
|
15416
15416
|
writeScope($scope13_id, {});
|
|
15417
15417
|
return 0;
|
|
15418
15418
|
}
|
|
15419
15419
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15420
|
-
_html(`<span${_attr_class(["_o", "
|
|
15420
|
+
_html(`<span${_attr_class(["_o", "_f7"])}>`);
|
|
15421
15421
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15422
15422
|
setScope(v);
|
|
15423
15423
|
}, "m0", $scope0_id), () => {
|
|
15424
|
-
_html(`<select${_attr_class(["_p", "
|
|
15424
|
+
_html(`<select${_attr_class(["_p", "_f8"])} 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>`);
|
|
15425
15425
|
});
|
|
15426
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15426
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_f3", { ["_f2"]: !findOpen }])}>`);
|
|
15427
15427
|
_set_serialize_reason(2);
|
|
15428
15428
|
const $childScope3 = _peek_scope_id();
|
|
15429
15429
|
let findFocus = diff_find_default({
|
|
@@ -15444,8 +15444,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15444
15444
|
const $scope14_id = _scope_id();
|
|
15445
15445
|
_html(`<button${_attr_class([
|
|
15446
15446
|
iconBtnRow,
|
|
15447
|
-
"
|
|
15448
|
-
"
|
|
15447
|
+
"_f1",
|
|
15448
|
+
"_fS"
|
|
15449
15449
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15450
15450
|
icon_search_default({ size: 14 });
|
|
15451
15451
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15454,7 +15454,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15454
15454
|
return 0;
|
|
15455
15455
|
}
|
|
15456
15456
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15457
|
-
_html(`</div></div><div${_attr_class("
|
|
15457
|
+
_html(`</div></div><div${_attr_class("_f4")} data-diff-main>`);
|
|
15458
15458
|
_if(() => {
|
|
15459
15459
|
if (error) {
|
|
15460
15460
|
const $scope6_id = _scope_id();
|
|
@@ -15477,7 +15477,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15477
15477
|
_if(() => {
|
|
15478
15478
|
if (!repos && loading) {
|
|
15479
15479
|
const $scope15_id = _scope_id();
|
|
15480
|
-
_html(`<div${_attr_class("
|
|
15480
|
+
_html(`<div${_attr_class("_f_")} aria-hidden=true><div${_attr_class(["_ga", "_gb"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div></div>`);
|
|
15481
15481
|
writeScope($scope15_id, {});
|
|
15482
15482
|
return 0;
|
|
15483
15483
|
}
|
|
@@ -15507,12 +15507,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15507
15507
|
_if(() => {
|
|
15508
15508
|
if (repos && !allFiles.length) {
|
|
15509
15509
|
const $scope11_id = _scope_id();
|
|
15510
|
-
_html(`<p${_attr_class("
|
|
15510
|
+
_html(`<p${_attr_class("_cl")}>${_text_resume($scope11_id, "b", repoList.some((r) => r.unborn) ? "No commits yet." : scope === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base.")}</p>`);
|
|
15511
15511
|
writeScope($scope11_id, {});
|
|
15512
15512
|
return 0;
|
|
15513
15513
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
15514
15514
|
const $scope8_id = _scope_id();
|
|
15515
|
-
_html(`<p${_attr_class("
|
|
15515
|
+
_html(`<p${_attr_class("_cl")}>${_text_resume($scope8_id, "b", findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${fileFilter}".`)}</p>`);
|
|
15516
15516
|
writeScope($scope8_id, {});
|
|
15517
15517
|
return 1;
|
|
15518
15518
|
}
|
|
@@ -15879,12 +15879,12 @@ function parseInvite(text) {
|
|
|
15879
15879
|
}
|
|
15880
15880
|
//#endregion
|
|
15881
15881
|
//#region src/tags/manage-workspace.css.ts
|
|
15882
|
-
var pageMeta = "
|
|
15883
|
-
var pathMeta = "
|
|
15884
|
-
var skillRow = "
|
|
15885
|
-
var skillName = "
|
|
15886
|
-
var skillDesc = "
|
|
15887
|
-
var skillEnd = "
|
|
15882
|
+
var pageMeta = "_fx _ee";
|
|
15883
|
+
var pathMeta = "_fA _y";
|
|
15884
|
+
var skillRow = "_fG _fB";
|
|
15885
|
+
var skillName = "_fI _fC";
|
|
15886
|
+
var skillDesc = "_fL _fD";
|
|
15887
|
+
var skillEnd = "_fM _fE";
|
|
15888
15888
|
//#endregion
|
|
15889
15889
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15890
15890
|
var icon_clipboard_default = _template("Y", (input) => {
|
|
@@ -15902,8 +15902,8 @@ var icon_clipboard_default = _template("Y", (input) => {
|
|
|
15902
15902
|
});
|
|
15903
15903
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15904
15904
|
});
|
|
15905
|
-
var resultRow = "
|
|
15906
|
-
var resultBranch = "
|
|
15905
|
+
var resultRow = "_hH _I";
|
|
15906
|
+
var resultBranch = "_hJ _4 _l";
|
|
15907
15907
|
//#endregion
|
|
15908
15908
|
//#region src/tags/icons/icon-branch.marko
|
|
15909
15909
|
var icon_branch_default = _template("U", (input) => {
|
|
@@ -15933,11 +15933,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15933
15933
|
let branchFilter = "";
|
|
15934
15934
|
let reloadTick = 0;
|
|
15935
15935
|
let refreshing = false;
|
|
15936
|
-
_html(`<div${_attr_class("
|
|
15936
|
+
_html(`<div${_attr_class("_hL")}>`);
|
|
15937
15937
|
_if(() => {
|
|
15938
15938
|
{
|
|
15939
15939
|
const $scope4_id = _scope_id();
|
|
15940
|
-
_html(`<p${_attr_class("
|
|
15940
|
+
_html(`<p${_attr_class("_ck")}><span${_attr_class("_G")}></span> Loading branches…</p>`);
|
|
15941
15941
|
writeScope($scope4_id, {});
|
|
15942
15942
|
return 0;
|
|
15943
15943
|
}
|
|
@@ -15963,7 +15963,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15963
15963
|
//#region src/tags/repo-picker.marko
|
|
15964
15964
|
var api$5;
|
|
15965
15965
|
var repo_picker_default = _template("w", (input$2) => {
|
|
15966
|
-
const $scope0_reason = _scope_reason(), $sg__input_compact = _serialize_guard($scope0_reason,
|
|
15966
|
+
const $scope0_reason = _scope_reason(), $sg__input_compact__OR__input_action = _serialize_guard($scope0_reason, 1), $sg__input_compact = _serialize_guard($scope0_reason, 7), $si__input_onError = _serialize_if($scope0_reason, 6), $si__input_compact__OR__input_action = _serialize_if($scope0_reason, 1);
|
|
15967
15967
|
const $scope0_id = _scope_id();
|
|
15968
15968
|
const $loadCatalog2__closures = /* @__PURE__ */ new Set();
|
|
15969
15969
|
const $ssoPending__closures = /* @__PURE__ */ new Set();
|
|
@@ -16018,7 +16018,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16018
16018
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
16019
16019
|
})();
|
|
16020
16020
|
const ssoBlock = { content: _content("w13", () => {
|
|
16021
|
-
const $
|
|
16021
|
+
const $scope9_id = _scope_id();
|
|
16022
16022
|
_scope_reason();
|
|
16023
16023
|
_set_serialize_reason(26);
|
|
16024
16024
|
const $childScope = _peek_scope_id();
|
|
@@ -16026,228 +16026,238 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16026
16026
|
items: ssoPending,
|
|
16027
16027
|
onChange: _resume(function() {
|
|
16028
16028
|
ssoIgnoreTick++;
|
|
16029
|
-
}, "w7", $
|
|
16029
|
+
}, "w7", $scope9_id),
|
|
16030
16030
|
onDone: _resume(function() {
|
|
16031
16031
|
loadCatalog(true);
|
|
16032
|
-
}, "w8", $
|
|
16032
|
+
}, "w8", $scope9_id)
|
|
16033
16033
|
});
|
|
16034
|
-
_subscribe($ssoPending__closures, _subscribe($si__input_onError && $loadCatalog2__closures, writeScope($
|
|
16034
|
+
_subscribe($ssoPending__closures, _subscribe($si__input_onError && $loadCatalog2__closures, writeScope($scope9_id, {
|
|
16035
16035
|
_: _scope_with_id($scope0_id),
|
|
16036
16036
|
a: _existing_scope($childScope)
|
|
16037
16037
|
})));
|
|
16038
|
-
_resume_branch($
|
|
16038
|
+
_resume_branch($scope9_id);
|
|
16039
16039
|
}, $scope0_id) };
|
|
16040
16040
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
16041
|
-
_html(`<div${_attr_class([compact ? "
|
|
16042
|
-
["
|
|
16043
|
-
["
|
|
16041
|
+
_html(`<div${_attr_class([compact ? "_cC" : "_hz", {
|
|
16042
|
+
["_cD"]: compact && !input$2.open,
|
|
16043
|
+
["_cE"]: input$2.pinned
|
|
16044
16044
|
}])}>`);
|
|
16045
16045
|
_if(() => {
|
|
16046
16046
|
if (!compact && ssoPending.length) {
|
|
16047
|
-
const $
|
|
16048
|
-
_html(`<div${_attr_class("
|
|
16047
|
+
const $scope11_id = _scope_id();
|
|
16048
|
+
_html(`<div${_attr_class("_hC")}>`);
|
|
16049
16049
|
ssoBlock.content({});
|
|
16050
16050
|
_html("</div>");
|
|
16051
|
-
writeScope($
|
|
16051
|
+
writeScope($scope11_id, {});
|
|
16052
16052
|
return 0;
|
|
16053
16053
|
}
|
|
16054
16054
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
16055
|
-
_html(`<label${_attr_class(["_1", compact && "
|
|
16055
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_hA") : _attr_class("_hB")}><label${_attr_class(["_1", compact && "_cF"])}>`);
|
|
16056
16056
|
icon_search_default({
|
|
16057
16057
|
size: 14,
|
|
16058
16058
|
class: "_2"
|
|
16059
16059
|
});
|
|
16060
|
-
_html(`<input${_attr_input_value($scope0_id, "
|
|
16060
|
+
_html(`<input${_attr_input_value($scope0_id, "f", filter, _resume(function(v) {
|
|
16061
16061
|
filter = v;
|
|
16062
16062
|
highlight = 0;
|
|
16063
16063
|
pasteWillFork = false;
|
|
16064
16064
|
}, "w0", $scope0_id))}${_attr_class([
|
|
16065
16065
|
compact ? "_Z" : inputLg,
|
|
16066
16066
|
"_3",
|
|
16067
|
-
compact && "
|
|
16068
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "
|
|
16067
|
+
compact && "_cG"
|
|
16068
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "f")}</label>${_el_resume($scope0_id, "d", $sg__input_compact)}`);
|
|
16069
16069
|
_if(() => {
|
|
16070
|
-
if (compact) {
|
|
16070
|
+
if (!compact && input$2.action) {
|
|
16071
16071
|
const $scope1_id = _scope_id();
|
|
16072
|
-
|
|
16072
|
+
_dynamic_tag($scope1_id, "a", input$2.action, {}, 0, 0, _serialize_guard($scope0_reason, 8));
|
|
16073
|
+
$si__input_compact__OR__input_action && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 8) && _scope_with_id($scope0_id) });
|
|
16074
|
+
return 0;
|
|
16075
|
+
}
|
|
16076
|
+
}, $scope0_id, "g", $sg__input_compact__OR__input_action, $sg__input_compact__OR__input_action);
|
|
16077
|
+
_html(`</div>${_el_resume($scope0_id, "c", $sg__input_compact__OR__input_action)}`);
|
|
16078
|
+
_if(() => {
|
|
16079
|
+
if (compact) {
|
|
16080
|
+
const $scope2_id = _scope_id();
|
|
16081
|
+
_html(`<button${_attr_class([iconBtnRow, "_cH"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
16073
16082
|
icon_xmark_default({ size: 14 });
|
|
16074
|
-
_html(`</button>${_el_resume($
|
|
16075
|
-
_script($
|
|
16076
|
-
writeScope($
|
|
16083
|
+
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
16084
|
+
_script($scope2_id, "w14");
|
|
16085
|
+
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
16077
16086
|
return 0;
|
|
16078
16087
|
}
|
|
16079
|
-
}, $scope0_id, "
|
|
16080
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
16088
|
+
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
16089
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hD"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
16081
16090
|
_if(() => {
|
|
16082
16091
|
if (compact && ssoPending.length) {
|
|
16083
|
-
const $
|
|
16084
|
-
_html(`<div${_attr_class("
|
|
16092
|
+
const $scope12_id = _scope_id();
|
|
16093
|
+
_html(`<div${_attr_class("_hC")}>`);
|
|
16085
16094
|
ssoBlock.content({});
|
|
16086
16095
|
_html("</div>");
|
|
16087
|
-
writeScope($
|
|
16096
|
+
writeScope($scope12_id, {});
|
|
16088
16097
|
return 0;
|
|
16089
16098
|
}
|
|
16090
|
-
}, $scope0_id, "
|
|
16099
|
+
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
16091
16100
|
_if(() => {
|
|
16092
16101
|
if (pasted) {
|
|
16093
|
-
const $
|
|
16094
|
-
_html(`<ul${_attr_class("
|
|
16102
|
+
const $scope3_id = _scope_id();
|
|
16103
|
+
_html(`<ul${_attr_class("_hE")}><li><div${_attr_class(["_hG", "_hF"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
16095
16104
|
icon_plus_default({
|
|
16096
16105
|
size: 12,
|
|
16097
|
-
class: "
|
|
16106
|
+
class: "_hN"
|
|
16098
16107
|
});
|
|
16099
|
-
_html(`<span${_attr_class("
|
|
16108
|
+
_html(`<span${_attr_class("_hO")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
16100
16109
|
_if(() => {
|
|
16101
16110
|
if (pastedForkable) {
|
|
16102
|
-
const $
|
|
16103
|
-
_html(`<button${_attr_class(["
|
|
16111
|
+
const $scope10_id = _scope_id();
|
|
16112
|
+
_html(`<button${_attr_class(["_hK", { ["_hI"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
16104
16113
|
_if(() => {
|
|
16105
16114
|
if (pasteWillFork) {
|
|
16106
|
-
const $
|
|
16115
|
+
const $scope14_id = _scope_id();
|
|
16107
16116
|
icon_check_default({ size: 12 });
|
|
16108
16117
|
_html(" fork");
|
|
16109
|
-
writeScope($
|
|
16118
|
+
writeScope($scope14_id, {});
|
|
16110
16119
|
return 0;
|
|
16111
16120
|
} else {
|
|
16112
|
-
const $
|
|
16121
|
+
const $scope15_id = _scope_id();
|
|
16113
16122
|
_html("Fork");
|
|
16114
|
-
writeScope($
|
|
16123
|
+
writeScope($scope15_id, {});
|
|
16115
16124
|
return 1;
|
|
16116
16125
|
}
|
|
16117
|
-
}, $
|
|
16118
|
-
_script($
|
|
16119
|
-
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($
|
|
16126
|
+
}, $scope10_id, "a", 1, 1, 1, "</button>");
|
|
16127
|
+
_script($scope10_id, "w15");
|
|
16128
|
+
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope10_id, { Cb8: 1 })));
|
|
16120
16129
|
return 0;
|
|
16121
16130
|
}
|
|
16122
|
-
}, $
|
|
16123
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
16131
|
+
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
16132
|
+
_html(`<button${_attr_class([resultBranch, { ["_hI"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
16124
16133
|
icon_branch_default({ size: 12 });
|
|
16125
|
-
_html(`</button>${_el_resume($
|
|
16134
|
+
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
16126
16135
|
_if(() => {
|
|
16127
16136
|
if (branchesFor === pasted) {
|
|
16128
|
-
const $
|
|
16137
|
+
const $scope4_id = _scope_id();
|
|
16129
16138
|
const $childScope2 = _peek_scope_id();
|
|
16130
16139
|
branch_pick_default({
|
|
16131
16140
|
repo: pasted,
|
|
16132
16141
|
onPick: _resume(function(branch, isDefault) {
|
|
16133
16142
|
pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
|
|
16134
|
-
}, "w9", $
|
|
16143
|
+
}, "w9", $scope4_id),
|
|
16135
16144
|
onError: _resume(function(message) {
|
|
16136
16145
|
branchesFor = null;
|
|
16137
16146
|
input$2.onError?.(message);
|
|
16138
|
-
}, "w10", $
|
|
16147
|
+
}, "w10", $scope4_id)
|
|
16139
16148
|
});
|
|
16140
|
-
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($
|
|
16149
|
+
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope4_id, { a: _existing_scope($childScope2) })));
|
|
16141
16150
|
return 0;
|
|
16142
16151
|
}
|
|
16143
|
-
}, $
|
|
16152
|
+
}, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
16144
16153
|
_html("</li></ul>");
|
|
16145
|
-
_script($
|
|
16146
|
-
writeScope($
|
|
16154
|
+
_script($scope3_id, "w16");
|
|
16155
|
+
writeScope($scope3_id, {});
|
|
16147
16156
|
return 0;
|
|
16148
16157
|
} else if (filter && !catalog) {
|
|
16149
|
-
const $
|
|
16150
|
-
_html(`<p${_attr_class("
|
|
16151
|
-
writeScope($
|
|
16158
|
+
const $scope13_id = _scope_id();
|
|
16159
|
+
_html(`<p${_attr_class("_ck")}>Loading repos…</p>`);
|
|
16160
|
+
writeScope($scope13_id, {});
|
|
16152
16161
|
return 1;
|
|
16153
16162
|
}
|
|
16154
|
-
}, $scope0_id, "
|
|
16163
|
+
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
16155
16164
|
_if(() => {
|
|
16156
16165
|
if (results.length) {
|
|
16157
|
-
const $
|
|
16158
|
-
_html(`<ul${_attr_class("
|
|
16166
|
+
const $scope5_id = _scope_id();
|
|
16167
|
+
_html(`<ul${_attr_class("_hE")}>`);
|
|
16159
16168
|
_for_of(results, (repo, i) => {
|
|
16160
|
-
const $
|
|
16161
|
-
_html(`<li><div${_attr_class(["
|
|
16169
|
+
const $scope6_id = _scope_id();
|
|
16170
|
+
_html(`<li><div${_attr_class(["_hG", { ["_hF"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
16162
16171
|
icon_plus_default({
|
|
16163
16172
|
size: 12,
|
|
16164
|
-
class: "
|
|
16173
|
+
class: "_hN"
|
|
16165
16174
|
});
|
|
16166
|
-
_html(`<span${_attr_class("
|
|
16175
|
+
_html(`<span${_attr_class("_hO")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hI"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
16167
16176
|
icon_branch_default({ size: 12 });
|
|
16168
|
-
_html(`</button>${_el_resume($
|
|
16177
|
+
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
16169
16178
|
_if(() => {
|
|
16170
16179
|
if (branchesFor === repo.nameWithOwner) {
|
|
16171
|
-
const $
|
|
16180
|
+
const $scope7_id = _scope_id();
|
|
16172
16181
|
const $childScope3 = _peek_scope_id();
|
|
16173
16182
|
branch_pick_default({
|
|
16174
16183
|
repo: repo.nameWithOwner,
|
|
16175
16184
|
onPick: _resume(function(branch, isDefault) {
|
|
16176
16185
|
pick(repo.nameWithOwner, isDefault ? void 0 : branch);
|
|
16177
|
-
}, "w11", $
|
|
16186
|
+
}, "w11", $scope7_id),
|
|
16178
16187
|
onError: _resume(function(message) {
|
|
16179
16188
|
branchesFor = null;
|
|
16180
16189
|
input$2.onError?.(message);
|
|
16181
|
-
}, "w12", $
|
|
16190
|
+
}, "w12", $scope7_id)
|
|
16182
16191
|
});
|
|
16183
|
-
_subscribe($si__input_onError && $input_onError__closures, writeScope($
|
|
16192
|
+
_subscribe($si__input_onError && $input_onError__closures, writeScope($scope7_id, {
|
|
16184
16193
|
a: _existing_scope($childScope3),
|
|
16185
|
-
|
|
16194
|
+
Cb1: $si__input_onError && 1
|
|
16186
16195
|
}));
|
|
16187
16196
|
return 0;
|
|
16188
16197
|
}
|
|
16189
|
-
}, $
|
|
16198
|
+
}, $scope6_id, "h", 1, 1, 1, 0, 1);
|
|
16190
16199
|
_html("</li>");
|
|
16191
|
-
_script($
|
|
16192
|
-
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($
|
|
16200
|
+
_script($scope6_id, "w17");
|
|
16201
|
+
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope6_id, {
|
|
16193
16202
|
k: repo?.nameWithOwner,
|
|
16194
16203
|
m: i
|
|
16195
16204
|
})));
|
|
16196
|
-
}, "nameWithOwner", $
|
|
16197
|
-
writeScope($
|
|
16205
|
+
}, "nameWithOwner", $scope5_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16206
|
+
writeScope($scope5_id, {});
|
|
16198
16207
|
return 0;
|
|
16199
16208
|
} else if (filter && catalog && !pasted) {
|
|
16200
|
-
const $
|
|
16201
|
-
_html(`<p${_attr_class("
|
|
16202
|
-
writeScope($
|
|
16209
|
+
const $scope8_id = _scope_id();
|
|
16210
|
+
_html(`<p${_attr_class("_ck")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
16211
|
+
writeScope($scope8_id, {});
|
|
16203
16212
|
return 1;
|
|
16204
16213
|
}
|
|
16205
|
-
}, $scope0_id, "
|
|
16214
|
+
}, $scope0_id, "l", 1, 1, 1, 0, 1);
|
|
16206
16215
|
const handle = _resume((action) => {
|
|
16207
16216
|
if (action === "focus") ((inputEl) => inputEl())(_el_read_error)?.focus({ preventScroll: true });
|
|
16208
16217
|
else loadCatalog(true);
|
|
16209
16218
|
}, "w1", $scope0_id);
|
|
16210
|
-
_html(`</div>${_el_resume($scope0_id, "
|
|
16219
|
+
_html(`</div>${_el_resume($scope0_id, "i")}</div>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
16211
16220
|
const $return = handle;
|
|
16212
16221
|
_script($scope0_id, "w18");
|
|
16213
16222
|
_script($scope0_id, "w19");
|
|
16214
16223
|
writeScope($scope0_id, {
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
z:
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
a9:
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
b5: $
|
|
16224
|
+
o: _serialize_if($scope0_reason, 5) && input$2.refreshing,
|
|
16225
|
+
p: _serialize_if($scope0_reason, 4) && input$2.refreshingChange,
|
|
16226
|
+
r: input$2.onError,
|
|
16227
|
+
s: input$2.exclude,
|
|
16228
|
+
t: input$2.onPick,
|
|
16229
|
+
v: input$2.open,
|
|
16230
|
+
w: input$2.pinned,
|
|
16231
|
+
x: $si__input_compact__OR__input_action && input$2.action,
|
|
16232
|
+
z: input$2.onClose,
|
|
16233
|
+
a2: catalog,
|
|
16234
|
+
a3: catalog?.repos,
|
|
16235
|
+
a5: catalog?.sso,
|
|
16236
|
+
a6: filter,
|
|
16237
|
+
a7: highlight,
|
|
16238
|
+
a8: loadCatalog,
|
|
16239
|
+
a9: excluded,
|
|
16240
|
+
ac: results,
|
|
16241
|
+
ad: results?.length,
|
|
16242
|
+
ae: pasted,
|
|
16243
|
+
ai: pastedForkable,
|
|
16244
|
+
aj: branchesFor,
|
|
16245
|
+
al: pasteWillFork,
|
|
16246
|
+
am: pick,
|
|
16247
|
+
an: pastedFork,
|
|
16248
|
+
ao: toggleBranches,
|
|
16249
|
+
ap: compact,
|
|
16250
|
+
as: ssoIgnoreTick,
|
|
16251
|
+
av: ssoPending?.length,
|
|
16252
|
+
ay: _serialize_if($scope0_reason, 2) && hasBody,
|
|
16253
|
+
a1: input$2.refreshingChange || void 0,
|
|
16254
|
+
b6: $si__input_onError && $loadCatalog2__closures,
|
|
16255
|
+
bc: $ssoPending__closures,
|
|
16256
|
+
b8: $pasted__closures,
|
|
16257
|
+
bb: $pasteWillFork__closures,
|
|
16258
|
+
b1: $si__input_onError && $input_onError__closures,
|
|
16259
|
+
b5: $highlight__closures,
|
|
16260
|
+
ba: $branchesFor__closures
|
|
16251
16261
|
});
|
|
16252
16262
|
_resume_branch($scope0_id);
|
|
16253
16263
|
return $return;
|
|
@@ -16417,7 +16427,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16417
16427
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16418
16428
|
}, "r10", $scope0_id);
|
|
16419
16429
|
const titleId = _id();
|
|
16420
|
-
_html(`<div${_attr_class("
|
|
16430
|
+
_html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
|
|
16421
16431
|
_set_serialize_reason(30);
|
|
16422
16432
|
const $childScope = _peek_scope_id();
|
|
16423
16433
|
page_head_default({
|
|
@@ -16430,7 +16440,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16430
16440
|
meta: attrTag({ content: _content("r20", () => {
|
|
16431
16441
|
_scope_reason();
|
|
16432
16442
|
const $scope13_id = _scope_id();
|
|
16433
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16443
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fy")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
16434
16444
|
_if(() => {
|
|
16435
16445
|
if (ws.status !== "active") {
|
|
16436
16446
|
const $scope17_id = _scope_id();
|
|
@@ -16439,7 +16449,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16439
16449
|
return 0;
|
|
16440
16450
|
}
|
|
16441
16451
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
16442
|
-
_html(`<span${_attr_class("
|
|
16452
|
+
_html(`<span${_attr_class("_fz")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
16443
16453
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
16444
16454
|
_: _scope_with_id($scope0_id),
|
|
16445
16455
|
Ccf: 1
|
|
@@ -16519,15 +16529,15 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16519
16529
|
_if(() => {
|
|
16520
16530
|
if (pendingAction && actionStep) {
|
|
16521
16531
|
const $scope10_id = _scope_id();
|
|
16522
|
-
_html(`<p${_attr_class("
|
|
16532
|
+
_html(`<p${_attr_class("_b9")}><span${_attr_class("_G")}></span>${_text_resume($scope10_id, "c", actionStep)}</p>`);
|
|
16523
16533
|
writeScope($scope10_id, {});
|
|
16524
16534
|
return 0;
|
|
16525
16535
|
}
|
|
16526
16536
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16527
|
-
_html(`<section${_attr_class("
|
|
16537
|
+
_html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_fP"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16528
16538
|
icon_plus_default({ size: 16 });
|
|
16529
16539
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16530
|
-
_set_serialize_reason(
|
|
16540
|
+
_set_serialize_reason(26);
|
|
16531
16541
|
const $childScope2 = _peek_scope_id();
|
|
16532
16542
|
let refreshCatalog = repo_picker_default({
|
|
16533
16543
|
compact: true,
|
|
@@ -16558,7 +16568,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16558
16568
|
_html(`</button>${_el_resume($scope0_id, "q")}</div><ul${_attr_class(list$2)}>`);
|
|
16559
16569
|
_for_of(ws.repos, (row) => {
|
|
16560
16570
|
const $scope1_id = _scope_id();
|
|
16561
|
-
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("
|
|
16571
|
+
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_cf")}><span${_attr_class(["_cg", "_y"])}>${_text_resume($scope1_id, "d", row.worktree)}/</span><span${_attr_class("_ch")}><a${_attr_class(["_ci", "_K"])}${_attr("href", repoWebUrl(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_text_resume($scope1_id, "g", repoLabel(row.full_name))}</a>${_el_resume($scope1_id, "f")}`);
|
|
16562
16572
|
_if(() => {
|
|
16563
16573
|
if (row.base_branch !== row.default_branch) {
|
|
16564
16574
|
const $scope20_id = _scope_id();
|
|
@@ -16579,7 +16589,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16579
16589
|
} else {
|
|
16580
16590
|
const $scope9_id = _scope_id();
|
|
16581
16591
|
_html(`<button${_attr_class([
|
|
16582
|
-
"
|
|
16592
|
+
"_cj",
|
|
16583
16593
|
"_8",
|
|
16584
16594
|
"_9",
|
|
16585
16595
|
{ ["_s"]: confirmingRemove === row.full_name }
|
|
@@ -16612,13 +16622,13 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16612
16622
|
}, "full_name", $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
16613
16623
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
16614
16624
|
const $scope24_id = _scope_id();
|
|
16615
|
-
_html(`<li${_attr_class([flatCardRow, "
|
|
16625
|
+
_html(`<li${_attr_class([flatCardRow, "_cd"])}><span${_attr_class("_G")}></span><div${_attr_class("_cf")}><span${_attr_class("_ci")}>Adding ${_text_resume($scope24_id, "e", name, 2)}…</span></div></li>`);
|
|
16616
16626
|
writeScope($scope24_id, {});
|
|
16617
16627
|
}, (n) => n, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
16618
16628
|
_if(() => {
|
|
16619
16629
|
if (!ws.repos.length && !busy.size) {
|
|
16620
16630
|
const $scope25_id = _scope_id();
|
|
16621
|
-
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("
|
|
16631
|
+
_html(`<li${_attr_class(flatCardRow)}><span${_attr_class("_ci")}>No repos yet. Add one to start.</span></li>`);
|
|
16622
16632
|
writeScope($scope25_id, {});
|
|
16623
16633
|
return 0;
|
|
16624
16634
|
}
|
|
@@ -16636,18 +16646,18 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16636
16646
|
_if(() => {
|
|
16637
16647
|
if (allSkills.length) {
|
|
16638
16648
|
const $scope2_id = _scope_id();
|
|
16639
|
-
_html(`<section${_attr_class("
|
|
16649
|
+
_html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Skills</h2><span${_attr_class(sectionCount)}>${_text_resume($scope2_id, "e", wsSkills.length)}/${_text_resume($scope2_id, "f", allSkills.length, 2)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16640
16650
|
_for_of(allSkills, ({ s, linked }) => {
|
|
16641
16651
|
const $scope3_id = _scope_id();
|
|
16642
16652
|
const isBusy = skillBusy.has(s.id);
|
|
16643
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
16653
|
+
_html(`<li${_attr_class([skillRow, { ["_fH"]: !linked }])}><span${_attr_class("_fJ")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16644
16654
|
_if(() => {
|
|
16645
16655
|
if (s.worktree && !s.broken) {
|
|
16646
16656
|
const $scope26_id = _scope_id();
|
|
16647
16657
|
_html(`<span${_attr_class([
|
|
16648
16658
|
"_N",
|
|
16649
16659
|
"_y",
|
|
16650
|
-
"
|
|
16660
|
+
"_fK"
|
|
16651
16661
|
])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope26_id, "b", s.worktree)}/</span>${_el_resume($scope26_id, "a")}`);
|
|
16652
16662
|
writeScope($scope26_id, {});
|
|
16653
16663
|
return 0;
|
|
@@ -16699,10 +16709,10 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16699
16709
|
if (linked) {
|
|
16700
16710
|
const $scope11_id = _scope_id();
|
|
16701
16711
|
_html(`<button${_attr_class([
|
|
16702
|
-
"
|
|
16712
|
+
"_cj",
|
|
16703
16713
|
"_8",
|
|
16704
16714
|
"_9",
|
|
16705
|
-
"
|
|
16715
|
+
"_fN",
|
|
16706
16716
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16707
16717
|
])} type=button${_attr("disabled", isBusy)}${isBusy ? " aria-busy=true" : ""}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
16708
16718
|
_if(() => {
|
|
@@ -16752,20 +16762,20 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16752
16762
|
_if(() => {
|
|
16753
16763
|
if (running.length) {
|
|
16754
16764
|
const $scope15_id = _scope_id();
|
|
16755
|
-
_html(`<section${_attr_class("
|
|
16765
|
+
_html(`<section${_attr_class("_b_")}><div${_attr_class("_ca")}><h2${_attr_class("_cn")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16756
16766
|
_for_of(running, (p) => {
|
|
16757
16767
|
const $scope16_id = _scope_id();
|
|
16758
|
-
_html(`<li${_attr_class("
|
|
16768
|
+
_html(`<li${_attr_class("_fB")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_fC"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_fD"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_fE")}>`);
|
|
16759
16769
|
_for_of(p.ports, (port) => {
|
|
16760
16770
|
const $scope34_id = _scope_id();
|
|
16761
16771
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
16762
16772
|
_script($scope34_id, "r27");
|
|
16763
16773
|
writeScope($scope34_id, { d: port });
|
|
16764
16774
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
16765
|
-
_html(`<span${_attr_class(["_y", "
|
|
16766
|
-
"
|
|
16775
|
+
_html(`<span${_attr_class(["_y", "_fF"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
16776
|
+
"_cj",
|
|
16767
16777
|
"_8",
|
|
16768
|
-
"
|
|
16778
|
+
"_fO"
|
|
16769
16779
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16770
16780
|
icon_xmark_default({ size: 14 });
|
|
16771
16781
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -16846,14 +16856,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16846
16856
|
});
|
|
16847
16857
|
_resume_branch($scope0_id);
|
|
16848
16858
|
});
|
|
16849
|
-
var curRepos = "
|
|
16850
|
-
var curRow = "
|
|
16851
|
-
var curEmpty = "
|
|
16852
|
-
var curBase = "
|
|
16853
|
-
var archived = "
|
|
16854
|
-
var archivedHint = "
|
|
16855
|
-
var archivedList = "
|
|
16856
|
-
var archivedRow = "
|
|
16859
|
+
var curRepos = "_cZ _ce _cM _cX";
|
|
16860
|
+
var curRow = "_fh _c0 _cY";
|
|
16861
|
+
var curEmpty = "_fj _ck";
|
|
16862
|
+
var curBase = "_fm _Y _X";
|
|
16863
|
+
var archived = "_fr _b_";
|
|
16864
|
+
var archivedHint = "_fs _X";
|
|
16865
|
+
var archivedList = "_cZ _ce _cM _cX";
|
|
16866
|
+
var archivedRow = "_ft _c0 _cY";
|
|
16857
16867
|
//#endregion
|
|
16858
16868
|
//#region src/tags/icons/icon-group.marko
|
|
16859
16869
|
var icon_group_default = _template("fb", (input) => {
|
|
@@ -16873,8 +16883,8 @@ var icon_group_default = _template("fb", (input) => {
|
|
|
16873
16883
|
});
|
|
16874
16884
|
//#endregion
|
|
16875
16885
|
//#region src/tags/join-dialog.css.ts
|
|
16876
|
-
var dlg = "
|
|
16877
|
-
var hint = "
|
|
16886
|
+
var dlg = "_im _gY";
|
|
16887
|
+
var hint = "_in _X";
|
|
16878
16888
|
//#endregion
|
|
16879
16889
|
//#region src/tags/join-dialog.marko
|
|
16880
16890
|
var api$3;
|
|
@@ -17003,26 +17013,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17003
17013
|
content: _content("o12", () => {
|
|
17004
17014
|
_scope_reason();
|
|
17005
17015
|
const $scope1_id = _scope_id();
|
|
17006
|
-
_html(`<h2${_attr_class("
|
|
17016
|
+
_html(`<h2${_attr_class("_gZ")}${_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([
|
|
17007
17017
|
"_Z",
|
|
17008
17018
|
"_y",
|
|
17009
|
-
"
|
|
17019
|
+
"_ip"
|
|
17010
17020
|
])} 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")}`);
|
|
17011
17021
|
_if(() => {
|
|
17012
17022
|
if (parsed.error) {
|
|
17013
17023
|
const $scope8_id = _scope_id();
|
|
17014
|
-
_html(`<p${_attr_class([hint, "
|
|
17024
|
+
_html(`<p${_attr_class([hint, "_io"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
17015
17025
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
17016
17026
|
return 0;
|
|
17017
17027
|
} else if (parsed.ok) {
|
|
17018
17028
|
const $scope3_id = _scope_id();
|
|
17019
|
-
_html(`<ul${_attr_class("
|
|
17029
|
+
_html(`<ul${_attr_class("_iq")}>`);
|
|
17020
17030
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
17021
17031
|
const $scope9_id = _scope_id();
|
|
17022
|
-
_html(`<li${_attr_class("
|
|
17032
|
+
_html(`<li${_attr_class("_ir")}><span${_attr_class("_is")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
17023
17033
|
writeScope($scope9_id, {});
|
|
17024
17034
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
17025
|
-
_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("
|
|
17035
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_it")}><span${_attr_class("_cn")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
17026
17036
|
name = _new_name;
|
|
17027
17037
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
17028
17038
|
_script($scope3_id, "o8");
|
|
@@ -17059,10 +17069,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17059
17069
|
_if(() => {
|
|
17060
17070
|
if (busy && steps$2.length) {
|
|
17061
17071
|
const $scope6_id = _scope_id();
|
|
17062
|
-
_html(`<ul${_attr_class("
|
|
17072
|
+
_html(`<ul${_attr_class("_iu")}>`);
|
|
17063
17073
|
_for_of(steps$2, (step$2, i) => {
|
|
17064
17074
|
const $scope7_id = _scope_id();
|
|
17065
|
-
_html(`<li${_attr_class(["
|
|
17075
|
+
_html(`<li${_attr_class(["_iw", { ["_iv"]: i === steps$2.length - 1 }])}>`);
|
|
17066
17076
|
_if(() => {
|
|
17067
17077
|
if (i === steps$2.length - 1) {
|
|
17068
17078
|
const $scope10_id = _scope_id();
|
|
@@ -17071,7 +17081,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17071
17081
|
return 0;
|
|
17072
17082
|
} else {
|
|
17073
17083
|
const $scope11_id = _scope_id();
|
|
17074
|
-
_html(`<span${_attr_class("
|
|
17084
|
+
_html(`<span${_attr_class("_ix")}>`);
|
|
17075
17085
|
icon_check_default({ size: 14 });
|
|
17076
17086
|
_html("</span>");
|
|
17077
17087
|
writeScope($scope11_id, {});
|
|
@@ -17137,6 +17147,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17137
17147
|
const $scope0_id = _scope_id();
|
|
17138
17148
|
const $busy__closures = /* @__PURE__ */ new Set();
|
|
17139
17149
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
17150
|
+
const $catalogRefreshing__closures = /* @__PURE__ */ new Set();
|
|
17140
17151
|
const $steps_length__closures = /* @__PURE__ */ new Set();
|
|
17141
17152
|
const $restoring__closures = /* @__PURE__ */ new Set();
|
|
17142
17153
|
let name = "";
|
|
@@ -17228,7 +17239,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17228
17239
|
}
|
|
17229
17240
|
}, "t6", $scope0_id);
|
|
17230
17241
|
const titleId = _id();
|
|
17231
|
-
_html(`<div${_attr_class("
|
|
17242
|
+
_html(`<div${_attr_class("_d9")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d_")}><div${_attr_class("_ea")}>`);
|
|
17232
17243
|
_set_serialize_reason({
|
|
17233
17244
|
0: _serialize_guard($scope0_reason, 2),
|
|
17234
17245
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17277,23 +17288,16 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17277
17288
|
return 0;
|
|
17278
17289
|
}
|
|
17279
17290
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17280
|
-
_html(`<label${_attr_class("
|
|
17291
|
+
_html(`<label${_attr_class("_fd")}><span${_attr_class("_cn")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17281
17292
|
name = _new_name;
|
|
17282
|
-
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("
|
|
17283
|
-
_set_serialize_reason(1);
|
|
17284
|
-
const $childScope2 = _peek_scope_id();
|
|
17285
|
-
icon_refresh_default({
|
|
17286
|
-
size: 14,
|
|
17287
|
-
class: catalogRefreshing && "_F"
|
|
17288
|
-
});
|
|
17289
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class(curRepos)}>`);
|
|
17293
|
+
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_b_")}><div${_attr_class("_ff")}><h2${_attr_class("_cn")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
17290
17294
|
_for_of(selected, (repo) => {
|
|
17291
17295
|
const $scope4_id = _scope_id();
|
|
17292
|
-
_html(`<li${_attr_class("
|
|
17296
|
+
_html(`<li${_attr_class("_fg")}><div${_attr_class(curRow)}><span${_attr_class("_fk")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
|
|
17293
17297
|
_if(() => {
|
|
17294
17298
|
if (repo.fork !== void 0) {
|
|
17295
17299
|
const $scope5_id = _scope_id();
|
|
17296
|
-
_html(`<button${_attr_class(["
|
|
17300
|
+
_html(`<button${_attr_class(["_fn", { ["_fl"]: 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)}>`);
|
|
17297
17301
|
_if(() => {
|
|
17298
17302
|
if (repo.fork) {
|
|
17299
17303
|
const $scope14_id = _scope_id();
|
|
@@ -17309,14 +17313,14 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17309
17313
|
}
|
|
17310
17314
|
}, $scope5_id, "a", 1, 1, 1, "</button>");
|
|
17311
17315
|
_script($scope5_id, "t18");
|
|
17312
|
-
_subscribe($busy__closures, writeScope($scope5_id, {
|
|
17316
|
+
_subscribe($busy__closures, writeScope($scope5_id, { Cay: 1 }));
|
|
17313
17317
|
return 0;
|
|
17314
17318
|
}
|
|
17315
17319
|
}, $scope4_id, "e", 1, 1, 1, 0, 1);
|
|
17316
17320
|
_html(`<button${_attr_class([
|
|
17317
17321
|
curBase,
|
|
17318
17322
|
"_y",
|
|
17319
|
-
{ ["
|
|
17323
|
+
{ ["_fl"]: branchesFor === repo.fullName }
|
|
17320
17324
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17321
17325
|
icon_branch_default({ size: 12 });
|
|
17322
17326
|
_html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -17325,8 +17329,8 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17325
17329
|
_if(() => {
|
|
17326
17330
|
if (branchesFor === repo.fullName) {
|
|
17327
17331
|
const $scope10_id = _scope_id();
|
|
17328
|
-
_html(`<div${_attr_class("
|
|
17329
|
-
const $
|
|
17332
|
+
_html(`<div${_attr_class("_fi")}>`);
|
|
17333
|
+
const $childScope2 = _peek_scope_id();
|
|
17330
17334
|
branch_pick_default({
|
|
17331
17335
|
repo: repo.fullName,
|
|
17332
17336
|
current: repo.baseBranch,
|
|
@@ -17339,7 +17343,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17339
17343
|
}, "t10", $scope10_id)
|
|
17340
17344
|
});
|
|
17341
17345
|
_html("</div>");
|
|
17342
|
-
writeScope($scope10_id, { b: _existing_scope($
|
|
17346
|
+
writeScope($scope10_id, { b: _existing_scope($childScope2) });
|
|
17343
17347
|
return 0;
|
|
17344
17348
|
}
|
|
17345
17349
|
}, $scope4_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -17350,7 +17354,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17350
17354
|
p: repo?.fork,
|
|
17351
17355
|
q: repo?.baseBranch
|
|
17352
17356
|
});
|
|
17353
|
-
}, "fullName", $scope0_id, "
|
|
17357
|
+
}, "fullName", $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
17354
17358
|
_if(() => {
|
|
17355
17359
|
if (!selected.length) {
|
|
17356
17360
|
const $scope16_id = _scope_id();
|
|
@@ -17358,7 +17362,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17358
17362
|
writeScope($scope16_id, {});
|
|
17359
17363
|
return 0;
|
|
17360
17364
|
}
|
|
17361
|
-
}, $scope0_id, "
|
|
17365
|
+
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
17362
17366
|
_html("</ul>");
|
|
17363
17367
|
const $childScope4 = _peek_scope_id();
|
|
17364
17368
|
let refreshCatalog = repo_picker_default({
|
|
@@ -17372,17 +17376,35 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17372
17376
|
}, "t12", $scope0_id),
|
|
17373
17377
|
refreshingChange: function(v) {
|
|
17374
17378
|
catalogRefreshing = v;
|
|
17375
|
-
}
|
|
17379
|
+
},
|
|
17380
|
+
action: attrTag({ content: _content("t21", () => {
|
|
17381
|
+
_scope_reason();
|
|
17382
|
+
const $scope2_id = _scope_id();
|
|
17383
|
+
_html(`<button${_attr_class([iconBtnRow, "_fe"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17384
|
+
_set_serialize_reason(1);
|
|
17385
|
+
const $childScope3 = _peek_scope_id();
|
|
17386
|
+
icon_refresh_default({
|
|
17387
|
+
size: 14,
|
|
17388
|
+
class: catalogRefreshing && "_F"
|
|
17389
|
+
});
|
|
17390
|
+
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
17391
|
+
_script($scope2_id, "t20");
|
|
17392
|
+
_subscribe($catalogRefreshing__closures, writeScope($scope2_id, {
|
|
17393
|
+
_: _scope_with_id($scope0_id),
|
|
17394
|
+
b: _existing_scope($childScope3)
|
|
17395
|
+
}));
|
|
17396
|
+
_resume_branch($scope2_id);
|
|
17397
|
+
}, $scope0_id) })
|
|
17376
17398
|
});
|
|
17377
|
-
_var($scope0_id, "
|
|
17399
|
+
_var($scope0_id, "p", $childScope4, "t22");
|
|
17378
17400
|
_html("</section>");
|
|
17379
17401
|
_if(() => {
|
|
17380
17402
|
if (busy && steps.length) {
|
|
17381
17403
|
const $scope11_id = _scope_id();
|
|
17382
|
-
_html(`<ul${_attr_class("
|
|
17404
|
+
_html(`<ul${_attr_class("_fo")}>`);
|
|
17383
17405
|
_for_of(steps, (step, i) => {
|
|
17384
17406
|
const $scope12_id = _scope_id();
|
|
17385
|
-
_html(`<li${_attr_class(["
|
|
17407
|
+
_html(`<li${_attr_class(["_fu", { ["_fp"]: i === steps.length - 1 }])}>`);
|
|
17386
17408
|
_if(() => {
|
|
17387
17409
|
if (i === steps.length - 1) {
|
|
17388
17410
|
const $scope17_id = _scope_id();
|
|
@@ -17391,7 +17413,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17391
17413
|
return 0;
|
|
17392
17414
|
} else {
|
|
17393
17415
|
const $scope18_id = _scope_id();
|
|
17394
|
-
_html(`<span${_attr_class("
|
|
17416
|
+
_html(`<span${_attr_class("_fq")}>`);
|
|
17395
17417
|
icon_check_default({ size: 14 });
|
|
17396
17418
|
_html("</span>");
|
|
17397
17419
|
writeScope($scope18_id, {});
|
|
@@ -17404,29 +17426,19 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17404
17426
|
writeScope($scope11_id, {});
|
|
17405
17427
|
return 0;
|
|
17406
17428
|
}
|
|
17407
|
-
}, $scope0_id, "
|
|
17408
|
-
_html(`<div${_attr_class("
|
|
17409
|
-
_if(() => {
|
|
17410
|
-
if (input.onExit || busy) {
|
|
17411
|
-
const $scope1_id = _scope_id();
|
|
17412
|
-
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
|
|
17413
|
-
_script($scope1_id, "t21");
|
|
17414
|
-
writeScope($scope1_id, {});
|
|
17415
|
-
return 0;
|
|
17416
|
-
}
|
|
17417
|
-
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
17418
|
-
_html(`<button type=button${_attr_class([
|
|
17429
|
+
}, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
17430
|
+
_html(`<div${_attr_class("_fb")}><button type=button${_attr_class([
|
|
17419
17431
|
btnLg,
|
|
17420
17432
|
"_r",
|
|
17421
|
-
"
|
|
17422
|
-
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "
|
|
17433
|
+
"_fc"
|
|
17434
|
+
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
|
|
17423
17435
|
_if(() => {
|
|
17424
17436
|
if (archived$1.length) {
|
|
17425
17437
|
const $scope6_id = _scope_id();
|
|
17426
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17438
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_ff")}><h2${_attr_class("_cn")}>Archived</h2><span${_attr_class(sectionCount)}>${_text_resume($scope6_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(archivedList)}>`);
|
|
17427
17439
|
_for_of(archived$1, (ws) => {
|
|
17428
17440
|
const $scope7_id = _scope_id();
|
|
17429
|
-
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("
|
|
17441
|
+
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cf")}><span${_attr_class("_cg")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
17430
17442
|
_if(() => {
|
|
17431
17443
|
if (restoring === ws.id) {
|
|
17432
17444
|
const $scope19_id = _scope_id();
|
|
@@ -17441,68 +17453,68 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17441
17453
|
}
|
|
17442
17454
|
}, $scope7_id, "g", 1, 1, 1, "</button>");
|
|
17443
17455
|
_html("</li>");
|
|
17444
|
-
_script($scope7_id, "
|
|
17456
|
+
_script($scope7_id, "t23");
|
|
17445
17457
|
_subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope7_id, {
|
|
17446
17458
|
j: ws,
|
|
17447
17459
|
o: ws?.id,
|
|
17448
17460
|
_: _scope_with_id($scope6_id),
|
|
17449
|
-
|
|
17461
|
+
Cay: 2
|
|
17450
17462
|
})));
|
|
17451
17463
|
}, "id", $scope6_id, "g", $sg__input_workspaces, $sg__input_workspaces, $sg__input_workspaces, "</ul>", 1);
|
|
17452
17464
|
_html("</section>");
|
|
17453
17465
|
writeScope($scope6_id, { _: _scope_with_id($scope0_id) });
|
|
17454
17466
|
return 0;
|
|
17455
17467
|
}
|
|
17456
|
-
}, $scope0_id, "
|
|
17468
|
+
}, $scope0_id, "u", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
|
|
17457
17469
|
_html("</div></div>");
|
|
17458
17470
|
_if(() => {
|
|
17459
17471
|
if (joinOpen) {
|
|
17460
|
-
const $
|
|
17472
|
+
const $scope1_id = _scope_id();
|
|
17461
17473
|
_set_serialize_reason(2);
|
|
17462
17474
|
const $childScope5 = _peek_scope_id();
|
|
17463
17475
|
join_dialog_default({
|
|
17464
17476
|
open: joinOpen,
|
|
17465
17477
|
openChange: _resume((_new_joinOpen) => {
|
|
17466
17478
|
joinOpen = _new_joinOpen;
|
|
17467
|
-
}, "t13", $
|
|
17479
|
+
}, "t13", $scope1_id),
|
|
17468
17480
|
onJoin: input.onCreate
|
|
17469
17481
|
});
|
|
17470
|
-
writeScope($
|
|
17482
|
+
writeScope($scope1_id, { a: _existing_scope($childScope5) });
|
|
17471
17483
|
return 0;
|
|
17472
17484
|
}
|
|
17473
|
-
}, $scope0_id, "
|
|
17485
|
+
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
17474
17486
|
_html("</div>");
|
|
17475
|
-
_script($scope0_id, "
|
|
17487
|
+
_script($scope0_id, "t24");
|
|
17476
17488
|
writeScope($scope0_id, {
|
|
17477
|
-
|
|
17478
|
-
|
|
17479
|
-
|
|
17480
|
-
|
|
17481
|
-
|
|
17482
|
-
|
|
17483
|
-
|
|
17484
|
-
|
|
17485
|
-
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17489
|
+
z: input.onRestore,
|
|
17490
|
+
a0: input.onCreate,
|
|
17491
|
+
a2: input.onExit,
|
|
17492
|
+
a3: name,
|
|
17493
|
+
a5: joinOpen,
|
|
17494
|
+
a6: selected,
|
|
17495
|
+
a8: busy,
|
|
17496
|
+
a9: restoring,
|
|
17497
|
+
ac: error,
|
|
17498
|
+
ad: steps,
|
|
17499
|
+
ae: steps?.length,
|
|
17500
|
+
ag: $si__input_workspaces && archived$1,
|
|
17501
|
+
ah: $si__input_workspaces && archived$1?.length,
|
|
17502
|
+
ai: addRepo,
|
|
17503
|
+
aj: branchesFor,
|
|
17504
|
+
al: removeRepo,
|
|
17505
|
+
am: toggleFork,
|
|
17506
|
+
an: setBranch,
|
|
17507
|
+
ao: restore,
|
|
17508
|
+
aq: createGen.n,
|
|
17509
|
+
as: create,
|
|
17510
|
+
au: refreshCatalog,
|
|
17511
|
+
ay: $busy__closures,
|
|
17500
17512
|
d: _serialize_if($scope0_reason, 0) && _existing_scope($childScope),
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17513
|
+
b0: $error__closures,
|
|
17514
|
+
aw: $catalogRefreshing__closures,
|
|
17515
|
+
o: _existing_scope($childScope4),
|
|
17516
|
+
b2: $steps_length__closures,
|
|
17517
|
+
az: $restoring__closures
|
|
17506
17518
|
});
|
|
17507
17519
|
_resume_branch($scope0_id);
|
|
17508
17520
|
});
|
|
@@ -17705,7 +17717,7 @@ var term_default = _template("F", (input) => {
|
|
|
17705
17717
|
}
|
|
17706
17718
|
}, "F9", $scope0_id);
|
|
17707
17719
|
input.keys;
|
|
17708
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17720
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eH")}><div${_attr_class("_eI")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17709
17721
|
_if(() => {
|
|
17710
17722
|
if (findOpen) {
|
|
17711
17723
|
const $scope4_id = _scope_id();
|
|
@@ -17732,7 +17744,7 @@ var term_default = _template("F", (input) => {
|
|
|
17732
17744
|
_if(() => {
|
|
17733
17745
|
if (uploading) {
|
|
17734
17746
|
const $scope5_id = _scope_id();
|
|
17735
|
-
_html(`<div${_attr_class("
|
|
17747
|
+
_html(`<div${_attr_class("_eO")}>uploading…</div>`);
|
|
17736
17748
|
writeScope($scope5_id, {});
|
|
17737
17749
|
return 0;
|
|
17738
17750
|
}
|
|
@@ -17740,7 +17752,7 @@ var term_default = _template("F", (input) => {
|
|
|
17740
17752
|
_if(() => {
|
|
17741
17753
|
if (copiedFlash) {
|
|
17742
17754
|
const $scope6_id = _scope_id();
|
|
17743
|
-
_html(`<div${_attr_class("
|
|
17755
|
+
_html(`<div${_attr_class("_eN")}>Copied</div>`);
|
|
17744
17756
|
writeScope($scope6_id, {});
|
|
17745
17757
|
return 0;
|
|
17746
17758
|
}
|
|
@@ -17749,7 +17761,7 @@ var term_default = _template("F", (input) => {
|
|
|
17749
17761
|
_if(() => {
|
|
17750
17762
|
if (trapOpen) {
|
|
17751
17763
|
const $scope3_id = _scope_id();
|
|
17752
|
-
_html(`<div${_attr_class("
|
|
17764
|
+
_html(`<div${_attr_class("_eP")}><div${_attr_class("_eQ")}><p${_attr_class("_eR")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
|
|
17753
17765
|
_script($scope3_id, "F16");
|
|
17754
17766
|
_script($scope3_id, "F17");
|
|
17755
17767
|
writeScope($scope3_id, {});
|
|
@@ -18010,10 +18022,10 @@ var work_view_default = _template("J", (input) => {
|
|
|
18010
18022
|
}
|
|
18011
18023
|
}, "J14", $scope0_id);
|
|
18012
18024
|
const navShown = view === "nav" && input.navState?.view === "nav";
|
|
18013
|
-
_html(`<div${_attr_class(["
|
|
18014
|
-
["
|
|
18015
|
-
["
|
|
18016
|
-
}])}><div${_attr_class("
|
|
18025
|
+
_html(`<div${_attr_class(["_cq", {
|
|
18026
|
+
["_co"]: navShown,
|
|
18027
|
+
["_cp"]: !input.active
|
|
18028
|
+
}])}><div${_attr_class("_cr")}>`);
|
|
18017
18029
|
_if(() => {
|
|
18018
18030
|
if (error) {
|
|
18019
18031
|
const $scope8_id = _scope_id();
|
|
@@ -18036,7 +18048,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18036
18048
|
_if(() => {
|
|
18037
18049
|
if (diffMounted && ws) {
|
|
18038
18050
|
const $scope1_id = _scope_id();
|
|
18039
|
-
_html(`<div${_attr_class("
|
|
18051
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
18040
18052
|
_set_serialize_reason({
|
|
18041
18053
|
0: $sg__input_workspace,
|
|
18042
18054
|
1: $sg__input_workspace,
|
|
@@ -18093,7 +18105,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18093
18105
|
_if(() => {
|
|
18094
18106
|
if (manageMounted && ws) {
|
|
18095
18107
|
const $scope2_id = _scope_id();
|
|
18096
|
-
_html(`<div${_attr_class("
|
|
18108
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
18097
18109
|
_set_serialize_reason({
|
|
18098
18110
|
0: $sg__input_workspace,
|
|
18099
18111
|
1: _serialize_guard($scope0_reason, 9)
|
|
@@ -18119,7 +18131,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18119
18131
|
_if(() => {
|
|
18120
18132
|
if (settingsMounted) {
|
|
18121
18133
|
const $scope3_id = _scope_id();
|
|
18122
|
-
_html(`<div${_attr_class("
|
|
18134
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
18123
18135
|
_set_serialize_reason({
|
|
18124
18136
|
0: _serialize_guard($scope0_reason, 0),
|
|
18125
18137
|
1: $sg__input_workspace,
|
|
@@ -18161,7 +18173,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18161
18173
|
_if(() => {
|
|
18162
18174
|
if (newMounted) {
|
|
18163
18175
|
const $scope4_id = _scope_id();
|
|
18164
|
-
_html(`<div${_attr_class("
|
|
18176
|
+
_html(`<div${_attr_class("_cs")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18165
18177
|
_set_serialize_reason({
|
|
18166
18178
|
0: 1,
|
|
18167
18179
|
1: _serialize_guard($scope0_reason, 13),
|
|
@@ -18186,13 +18198,13 @@ var work_view_default = _template("J", (input) => {
|
|
|
18186
18198
|
return 0;
|
|
18187
18199
|
}
|
|
18188
18200
|
}, $scope0_id, "g", 1, 1, 1, 0, 1);
|
|
18189
|
-
_html(`<div${_attr_class("
|
|
18201
|
+
_html(`<div${_attr_class("_ct")}${_attr("inert", view !== "term")}>`);
|
|
18190
18202
|
_if(() => {
|
|
18191
18203
|
if (ws && shownSessions) {
|
|
18192
18204
|
const $scope5_id = _scope_id();
|
|
18193
18205
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18194
18206
|
const $scope6_id = _scope_id();
|
|
18195
|
-
_html(`<div${_attr_class("
|
|
18207
|
+
_html(`<div${_attr_class("_cu")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18196
18208
|
_set_serialize_reason(2);
|
|
18197
18209
|
const $childScope5 = _peek_scope_id();
|
|
18198
18210
|
term_default({
|
|
@@ -18218,7 +18230,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18218
18230
|
_if(() => {
|
|
18219
18231
|
if (!shownSessions.length && view === "term") {
|
|
18220
18232
|
const $scope7_id = _scope_id();
|
|
18221
|
-
_html(`<div${_attr_class("
|
|
18233
|
+
_html(`<div${_attr_class("_cl")}><span>No sessions in this workspace.</span><button${_attr_class(["_q", "_r"])}${_attr("disabled", spawning)}>${_text_resume($scope7_id, "c", spawning ? "Starting…" : `Start ${input.preferred || "shell"}`)}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
18222
18234
|
_script($scope7_id, "J38");
|
|
18223
18235
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
18224
18236
|
return 0;
|
|
@@ -18228,7 +18240,7 @@ var work_view_default = _template("J", (input) => {
|
|
|
18228
18240
|
return 0;
|
|
18229
18241
|
} else if (ws) {
|
|
18230
18242
|
const $scope10_id = _scope_id();
|
|
18231
|
-
_html(`<p${_attr_class("
|
|
18243
|
+
_html(`<p${_attr_class("_cl")}>Loading sessions…</p>`);
|
|
18232
18244
|
writeScope($scope10_id, {});
|
|
18233
18245
|
return 1;
|
|
18234
18246
|
}
|
|
@@ -27499,4 +27511,4 @@ server.listen(port, () => {
|
|
|
27499
27511
|
//#endregion
|
|
27500
27512
|
export {};
|
|
27501
27513
|
|
|
27502
|
-
;var __MARKO_MANIFEST__={"
|
|
27514
|
+
;var __MARKO_MANIFEST__={"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w._-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/new-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/settings-C_aFgj9M.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-C_aFgj9M.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">",2,"stylesheet#/assets/app-page-CrdRBxBQ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CrdRBxBQ.css\"",">"],"defer":[2,"/assets/w._-BmFMmeGE.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-BmFMmeGE.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/_1gUZhn72.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_1gUZhn72.js\"",">",2,"modulepreload#/assets/_CEMoDLXP.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_CEMoDLXP.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-CyfjTVs-.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-CyfjTVs-.css\"",">",2,"stylesheet#/assets/icon-arrow-down-Cx-52UZC.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-Cx-52UZC.css\"",">"],"defer":[2,"/assets/diff-view-Cr-PefQe.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-Cr-PefQe.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|