@dylanpiercey/work 0.0.159 → 0.0.160
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/bin/work.mjs +57 -16
- package/dist/{_B8Ruz8T9.js → _BRBF-t9p.js} +9 -7
- package/dist/_Cr-5sjB_.js +2 -0
- package/dist/index.mjs +362 -362
- package/dist/public/assets/_BU6w6X4q.js +1 -0
- package/dist/public/assets/_BbqN_0Hf.js +1 -0
- package/dist/public/assets/_BfEhpnxc.js +1 -0
- package/dist/public/assets/_Bjs6hRWD.js +1 -0
- package/dist/public/assets/_BjtlvkCt.js +1 -0
- package/dist/public/assets/_BnZSGKpL.js +1 -0
- package/dist/public/assets/_BnepJiz-.js +1 -0
- package/dist/public/assets/{_DrrcCvtP.js → _BpIalLUl.js} +1 -1
- package/dist/public/assets/_BpIalLUl.js.br +0 -0
- package/dist/public/assets/_BvcYfwFl.js +1 -0
- package/dist/public/assets/_C0zwP2qH.js +1 -0
- package/dist/public/assets/_C9oWRx13.js +1 -0
- package/dist/public/assets/_CC3Ffsld.js +1 -0
- package/dist/public/assets/_ClG30-Cs.js +1 -0
- package/dist/public/assets/_CxFNOCPZ.js +1 -0
- package/dist/public/assets/{_DzlXAMSp.js → _D6gBuUWs.js} +4 -4
- package/dist/public/assets/_D6gBuUWs.js.br +0 -0
- package/dist/public/assets/_D9-BvOKl.js +1 -0
- package/dist/public/assets/_D_opOE0v.js +1 -0
- package/dist/public/assets/_DdJpsshP.js +1 -0
- package/dist/public/assets/_L9P-Lxf4.js +1 -0
- package/dist/public/assets/{_DgrVjbbj.js → __CI6owKB.js} +4 -4
- package/dist/public/assets/__CI6owKB.js.br +0 -0
- package/dist/public/assets/_dvB7DobJ.js +1 -0
- package/dist/public/assets/_o7CRZZeJ.js +1 -0
- package/dist/public/assets/{app-page-DkJHV2Hb.css → app-page-DyrVoVeZ.css} +1 -1
- package/dist/public/assets/app-page-DyrVoVeZ.css.br +0 -0
- package/dist/public/assets/diff-view-DH-5ACi2.js +2 -0
- package/dist/public/assets/{diff-view-D_kTcxOl.css → diff-view-DKJzuUb0.css} +1 -1
- package/dist/public/assets/diff-view-DKJzuUb0.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-ptjlirxL.css → icon-arrow-down-Bh8nsodJ.css} +1 -1
- package/dist/public/assets/icon-arrow-down-Bh8nsodJ.css.br +0 -0
- package/dist/public/assets/new-qqqf-1EI.js +1 -0
- package/dist/public/assets/settings-qqqf-1EI.js +1 -0
- package/dist/public/assets/w-qqqf-1EI.js +1 -0
- package/dist/public/assets/w._-Bmrox8Ci.js +1 -0
- package/dist/public/assets/w._-qqqf-1EI.js +1 -0
- package/package.json +1 -1
- package/dist/_wmfv4tOT.js +0 -2
- package/dist/public/assets/_BEMlWJ3i.js +0 -1
- package/dist/public/assets/_BF3jdOKL.js +0 -1
- package/dist/public/assets/_BN2MNMec.js +0 -1
- package/dist/public/assets/_BX85X6vL.js +0 -1
- package/dist/public/assets/_BgTyVBoz.js +0 -1
- package/dist/public/assets/_BtPnCFTI.js +0 -1
- package/dist/public/assets/_C62EU_76.js +0 -1
- package/dist/public/assets/_C9t1K6t0.js +0 -1
- package/dist/public/assets/_CV1AUMfT.js +0 -1
- package/dist/public/assets/_DONc62ot.js +0 -1
- package/dist/public/assets/_DQxAgIZ5.js +0 -1
- package/dist/public/assets/_DRrf0ps3.js +0 -1
- package/dist/public/assets/_DUwNzfo2.js +0 -1
- package/dist/public/assets/_DgrVjbbj.js.br +0 -0
- package/dist/public/assets/_DliuBq2F.js +0 -1
- package/dist/public/assets/_DrrcCvtP.js.br +0 -0
- package/dist/public/assets/_Dt9shJET.js +0 -1
- package/dist/public/assets/_DzlXAMSp.js.br +0 -0
- package/dist/public/assets/_KbIm5gXb.js +0 -1
- package/dist/public/assets/_kP4m5eyY.js +0 -1
- package/dist/public/assets/_kRAx7xJD.js +0 -1
- package/dist/public/assets/_wGg-Flxh.js +0 -1
- package/dist/public/assets/app-page-DkJHV2Hb.css.br +0 -0
- package/dist/public/assets/diff-view-B7Akkn43.js +0 -2
- package/dist/public/assets/diff-view-D_kTcxOl.css.br +0 -0
- package/dist/public/assets/icon-arrow-down-ptjlirxL.css.br +0 -0
- package/dist/public/assets/new-CjRAL7y8.js +0 -1
- package/dist/public/assets/settings-CjRAL7y8.js +0 -1
- package/dist/public/assets/w-CjRAL7y8.js +0 -1
- package/dist/public/assets/w._-CjRAL7y8.js +0 -1
- package/dist/public/assets/w._-DvPeuuNc.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
|
-
import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./
|
|
2
|
+
import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./_BRBF-t9p.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import http, { createServer } from "node:http";
|
|
5
5
|
import path from "node:path";
|
|
@@ -7269,18 +7269,18 @@ function applyInstance(inst) {
|
|
|
7269
7269
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7270
7270
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7271
7271
|
}
|
|
7272
|
-
var agentList = "
|
|
7273
|
-
var agentRow = "
|
|
7274
|
-
var toolGrid = "
|
|
7275
|
-
var toolRow = "
|
|
7276
|
-
var themeSeg = "
|
|
7277
|
-
var checkList = "
|
|
7278
|
-
var list$2 = "
|
|
7279
|
-
var flatCardRow = "
|
|
7280
|
-
var pop$1 = "
|
|
7281
|
-
var spinner = "
|
|
7282
|
-
var busy = "
|
|
7283
|
-
var pop = "
|
|
7272
|
+
var agentList = "_cO _ck _cB _cM";
|
|
7273
|
+
var agentRow = "_cS _cC";
|
|
7274
|
+
var toolGrid = "_c0 _cM";
|
|
7275
|
+
var toolRow = "_c1 _cN";
|
|
7276
|
+
var themeSeg = "_do _be";
|
|
7277
|
+
var checkList = "_dU _ci";
|
|
7278
|
+
var list$2 = "_cO _ck _cB _cM";
|
|
7279
|
+
var flatCardRow = "_cP _cN";
|
|
7280
|
+
var pop$1 = "_d4 __";
|
|
7281
|
+
var spinner = "_d7 _2 _G";
|
|
7282
|
+
var busy = "_cx _cw";
|
|
7283
|
+
var pop = "_cz __";
|
|
7284
7284
|
var sectionCount = "_ch _N _O";
|
|
7285
7285
|
var iconBtn$1 = "_5 _l";
|
|
7286
7286
|
//#endregion
|
|
@@ -7322,18 +7322,18 @@ var icon_back_default = _template("R", (input) => {
|
|
|
7322
7322
|
var page_head_default = _template("u", (input) => {
|
|
7323
7323
|
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);
|
|
7324
7324
|
const $scope0_id = _scope_id();
|
|
7325
|
-
_html(`<header${_attr_class("
|
|
7325
|
+
_html(`<header${_attr_class("_ea")}>`);
|
|
7326
7326
|
_if(() => {
|
|
7327
7327
|
if (input.backHref) {
|
|
7328
7328
|
const $scope1_id = _scope_id();
|
|
7329
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7329
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gG"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7330
7330
|
icon_back_default({ size: 14 });
|
|
7331
7331
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7332
7332
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7333
7333
|
return 0;
|
|
7334
7334
|
} else if (input.onBack) {
|
|
7335
7335
|
const $scope2_id = _scope_id();
|
|
7336
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7336
|
+
_html(`<button${_attr_class([iconBtnRow, "_gG"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7337
7337
|
icon_back_default({ size: 14 });
|
|
7338
7338
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7339
7339
|
_script($scope2_id, "u0");
|
|
@@ -7341,11 +7341,11 @@ var page_head_default = _template("u", (input) => {
|
|
|
7341
7341
|
return 1;
|
|
7342
7342
|
}
|
|
7343
7343
|
}, $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);
|
|
7344
|
-
_html(`<div${_attr_class("
|
|
7344
|
+
_html(`<div${_attr_class("_ec")}><h1${_attr("id", input.titleId)}${_attr_class("_eb")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7345
7345
|
_if(() => {
|
|
7346
7346
|
if (input.meta) {
|
|
7347
7347
|
const $scope3_id = _scope_id();
|
|
7348
|
-
_html(`<p${_attr_class("
|
|
7348
|
+
_html(`<p${_attr_class("_ed")}>`);
|
|
7349
7349
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7350
7350
|
_html("</p>");
|
|
7351
7351
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7356,7 +7356,7 @@ var page_head_default = _template("u", (input) => {
|
|
|
7356
7356
|
_if(() => {
|
|
7357
7357
|
if (input.actions) {
|
|
7358
7358
|
const $scope4_id = _scope_id();
|
|
7359
|
-
_html(`<div${_attr_class("
|
|
7359
|
+
_html(`<div${_attr_class("_ee")}>`);
|
|
7360
7360
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7361
7361
|
_html("</div>");
|
|
7362
7362
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7424,7 +7424,7 @@ var icon_agent_default = _template("L", (input) => {
|
|
|
7424
7424
|
n: $badge__closures
|
|
7425
7425
|
});
|
|
7426
7426
|
});
|
|
7427
|
-
var usageNote = "
|
|
7427
|
+
var usageNote = "_g5 _X";
|
|
7428
7428
|
//#endregion
|
|
7429
7429
|
//#region src/tags/icons/icon-warning.marko
|
|
7430
7430
|
var icon_warning_default = _template("sb", (input) => {
|
|
@@ -7454,11 +7454,11 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7454
7454
|
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);
|
|
7455
7455
|
const $scope0_id = _scope_id();
|
|
7456
7456
|
const agent = input.agent;
|
|
7457
|
-
_html(`<div${_attr_class(["
|
|
7457
|
+
_html(`<div${_attr_class(["_gZ", { ["_g0"]: input.hideName }])}><div${_attr_class("_g1")}>`);
|
|
7458
7458
|
_if(() => {
|
|
7459
7459
|
if (!input.hideName) {
|
|
7460
7460
|
const $scope1_id = _scope_id();
|
|
7461
|
-
_html(`<strong${_attr_class("
|
|
7461
|
+
_html(`<strong${_attr_class("_hj")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7462
7462
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7463
7463
|
return 0;
|
|
7464
7464
|
}
|
|
@@ -7466,7 +7466,7 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7466
7466
|
_if(() => {
|
|
7467
7467
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7468
7468
|
const $scope2_id = _scope_id();
|
|
7469
|
-
_html(`<span${_attr_class("
|
|
7469
|
+
_html(`<span${_attr_class("_g2")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7470
7470
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7471
7471
|
return 0;
|
|
7472
7472
|
}
|
|
@@ -7474,21 +7474,21 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7474
7474
|
_if(() => {
|
|
7475
7475
|
if (agent.stale_seconds != null) {
|
|
7476
7476
|
const $scope3_id = _scope_id();
|
|
7477
|
-
_html(`<span${_attr_class("
|
|
7477
|
+
_html(`<span${_attr_class("_g3")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7478
7478
|
icon_warning_default({ size: 12 });
|
|
7479
7479
|
_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)}`);
|
|
7480
7480
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7481
7481
|
return 0;
|
|
7482
7482
|
}
|
|
7483
7483
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7484
|
-
_html(`</div><div${_attr_class(["
|
|
7484
|
+
_html(`</div><div${_attr_class(["_g4", { ["_hk"]: agent.stale_seconds != null }])}>`);
|
|
7485
7485
|
_for_of(agent.windows || [], (win) => {
|
|
7486
7486
|
const $scope4_id = _scope_id();
|
|
7487
7487
|
const pct = pctText(win.used_percent);
|
|
7488
7488
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7489
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7490
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7491
|
-
_html(`<div${_attr_class("
|
|
7489
|
+
const fillClass = win.used_percent >= 90 ? "_hc" : win.used_percent >= 70 ? "_hb" : win.used_percent >= 40 ? "_ha" : "_g_";
|
|
7490
|
+
const pctClass = win.used_percent >= 90 ? "_hh" : win.used_percent >= 70 ? "_hg" : win.used_percent >= 40 ? "_hf" : "_he";
|
|
7491
|
+
_html(`<div${_attr_class("_g6")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_g7")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_g8")}><span${_attr_class(["_g9", 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(["_hd", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_hi")}>`);
|
|
7492
7492
|
_if(() => {
|
|
7493
7493
|
if (label) {
|
|
7494
7494
|
const $scope6_id = _scope_id();
|
|
@@ -7605,14 +7605,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7605
7605
|
localCode = null;
|
|
7606
7606
|
}
|
|
7607
7607
|
}, "D0", $scope0_id);
|
|
7608
|
-
_html(`<div${_attr_class(["
|
|
7608
|
+
_html(`<div${_attr_class(["_gN", input.class])}>`);
|
|
7609
7609
|
_for_of(input.items, (s) => {
|
|
7610
7610
|
const $scope1_id = _scope_id();
|
|
7611
|
-
_html(`<div${_attr_class("
|
|
7611
|
+
_html(`<div${_attr_class("_gO")}><span${_attr_class("_gQ")}><span${_attr_class("_gR")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_gS", "_gT"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7612
7612
|
_if(() => {
|
|
7613
7613
|
if (!busy) {
|
|
7614
7614
|
const $scope2_id = _scope_id();
|
|
7615
|
-
_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, "
|
|
7615
|
+
_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, "_gU"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7616
7616
|
_script($scope2_id, "D1");
|
|
7617
7617
|
writeScope($scope2_id, {});
|
|
7618
7618
|
return 0;
|
|
@@ -7627,13 +7627,13 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7627
7627
|
_if(() => {
|
|
7628
7628
|
if (localBusy && localCode) {
|
|
7629
7629
|
const $scope4_id = _scope_id();
|
|
7630
|
-
_html(`<div${_attr_class(["
|
|
7630
|
+
_html(`<div${_attr_class(["_gO", "_gV"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_gW")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_gX")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7631
7631
|
_script($scope4_id, "D2");
|
|
7632
7632
|
writeScope($scope4_id, {});
|
|
7633
7633
|
return 0;
|
|
7634
7634
|
} else if (localBusy) {
|
|
7635
7635
|
const $scope6_id = _scope_id();
|
|
7636
|
-
_html(`<div${_attr_class(["
|
|
7636
|
+
_html(`<div${_attr_class(["_gO", "_gV"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7637
7637
|
writeScope($scope6_id, {});
|
|
7638
7638
|
return 1;
|
|
7639
7639
|
}
|
|
@@ -7641,14 +7641,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7641
7641
|
_if(() => {
|
|
7642
7642
|
if (localError) {
|
|
7643
7643
|
const $scope5_id = _scope_id();
|
|
7644
|
-
_html(`<p${_attr_class(["
|
|
7644
|
+
_html(`<p${_attr_class(["_gO", "_gY"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7645
7645
|
writeScope($scope5_id, {});
|
|
7646
7646
|
return 0;
|
|
7647
7647
|
}
|
|
7648
7648
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7649
7649
|
_for_of(skipped, (s) => {
|
|
7650
7650
|
const $scope3_id = _scope_id();
|
|
7651
|
-
_html(`<div${_attr_class(["
|
|
7651
|
+
_html(`<div${_attr_class(["_gO", "_gP"])}><span${_attr_class("_gQ")}><span${_attr_class("_gR")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_gS")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_gU"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7652
7652
|
_script($scope3_id, "D3");
|
|
7653
7653
|
writeScope($scope3_id, {
|
|
7654
7654
|
i: s?.org,
|
|
@@ -7716,7 +7716,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7716
7716
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7717
7717
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7718
7718
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7719
|
-
_html(`<li${_attr_class("
|
|
7719
|
+
_html(`<li${_attr_class("_cv")}>`);
|
|
7720
7720
|
_if(() => {
|
|
7721
7721
|
if (input.busy != null) {
|
|
7722
7722
|
const $scope1_id = _scope_id();
|
|
@@ -7726,11 +7726,11 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7726
7726
|
} else {
|
|
7727
7727
|
const $scope2_id = _scope_id();
|
|
7728
7728
|
const popId = _id();
|
|
7729
|
-
_html(`<button${_attr_class("
|
|
7729
|
+
_html(`<button${_attr_class("_cw")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7730
7730
|
_if(() => {
|
|
7731
7731
|
if (input.hint) {
|
|
7732
7732
|
const $scope3_id = _scope_id();
|
|
7733
|
-
_html(`<span${_attr_class("
|
|
7733
|
+
_html(`<span${_attr_class("_cy")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7734
7734
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7735
7735
|
return 0;
|
|
7736
7736
|
}
|
|
@@ -7778,7 +7778,7 @@ var skill_chip_default = _template("C", (input) => {
|
|
|
7778
7778
|
_if(() => {
|
|
7779
7779
|
if (input.actions) {
|
|
7780
7780
|
const $scope8_id = _scope_id();
|
|
7781
|
-
_html(`<div${_attr_class("
|
|
7781
|
+
_html(`<div${_attr_class("_cA")}>`);
|
|
7782
7782
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7783
7783
|
_html("</div>");
|
|
7784
7784
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7889,7 +7889,7 @@ var icon_moon_default = _template("jb", (input) => {
|
|
|
7889
7889
|
});
|
|
7890
7890
|
//#endregion
|
|
7891
7891
|
//#region src/tags/prompt-dialog.css.ts
|
|
7892
|
-
var promptDlg = "
|
|
7892
|
+
var promptDlg = "_gM _gI";
|
|
7893
7893
|
//#endregion
|
|
7894
7894
|
//#region src/tags/dialog-close.marko
|
|
7895
7895
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7913,7 +7913,7 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7913
7913
|
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;
|
|
7914
7914
|
const dismissable = input.dismissable !== false;
|
|
7915
7915
|
let open = input.open;
|
|
7916
|
-
_html(`<dialog${_attr_class(["
|
|
7916
|
+
_html(`<dialog${_attr_class(["_gH", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7917
7917
|
...htmlInput,
|
|
7918
7918
|
open: null
|
|
7919
7919
|
}, {
|
|
@@ -7923,20 +7923,20 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7923
7923
|
closedby: 1,
|
|
7924
7924
|
"on-cancel": 1,
|
|
7925
7925
|
"on-close": 1
|
|
7926
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7926
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_gK")}>`);
|
|
7927
7927
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7928
7928
|
_html("</div>");
|
|
7929
7929
|
_if(() => {
|
|
7930
7930
|
if (footer) {
|
|
7931
7931
|
const $scope1_id = _scope_id();
|
|
7932
|
-
_html(`<form method=dialog${_attr_class("
|
|
7932
|
+
_html(`<form method=dialog${_attr_class("_gL")}>`);
|
|
7933
7933
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7934
7934
|
_html("</form>");
|
|
7935
7935
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7936
7936
|
return 0;
|
|
7937
7937
|
} else if (input.openChange) {
|
|
7938
7938
|
const $scope2_id = _scope_id();
|
|
7939
|
-
_html(`<form method=dialog${_attr_class("
|
|
7939
|
+
_html(`<form method=dialog${_attr_class("_gL")}>`);
|
|
7940
7940
|
dialog_close_default({
|
|
7941
7941
|
class: ["_q", "_r"],
|
|
7942
7942
|
content: _content("s0", () => {
|
|
@@ -8020,7 +8020,7 @@ var prompt_dialog_default = _template("v", (input) => {
|
|
|
8020
8020
|
content: _content("v7", () => {
|
|
8021
8021
|
_scope_reason();
|
|
8022
8022
|
const $scope2_id = _scope_id();
|
|
8023
|
-
_html(`<h2${_attr_class("
|
|
8023
|
+
_html(`<h2${_attr_class("_gJ")}${_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) => {
|
|
8024
8024
|
value = _new_value;
|
|
8025
8025
|
}, "v0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8026
8026
|
_script($scope2_id, "v5");
|
|
@@ -8542,7 +8542,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8542
8542
|
const githubId = _id();
|
|
8543
8543
|
const backupId = _id();
|
|
8544
8544
|
const machineId = _id();
|
|
8545
|
-
_html(`<div${_attr_class("
|
|
8545
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
8546
8546
|
_set_serialize_reason({
|
|
8547
8547
|
0: _serialize_guard($scope0_reason, 4),
|
|
8548
8548
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8554,7 +8554,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8554
8554
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("y44", () => {
|
|
8555
8555
|
_scope_reason();
|
|
8556
8556
|
const $scope4_id = _scope_id();
|
|
8557
|
-
_html(`<span${_attr_class("
|
|
8557
|
+
_html(`<span${_attr_class("_cR")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8558
8558
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8559
8559
|
_resume_branch($scope4_id);
|
|
8560
8560
|
}, $scope0_id) });
|
|
@@ -8607,16 +8607,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8607
8607
|
_if(() => {
|
|
8608
8608
|
if (selfUpdatePending || selfUpdating) {
|
|
8609
8609
|
const $scope44_id = _scope_id();
|
|
8610
|
-
_html(`<div${_attr_class("
|
|
8610
|
+
_html(`<div${_attr_class("_ds")} role=status><div${_attr_class("_dt")}>`);
|
|
8611
8611
|
_if(() => {
|
|
8612
8612
|
if (selfUpdating) {
|
|
8613
8613
|
const $scope79_id = _scope_id();
|
|
8614
|
-
_html(`<span${_attr_class("
|
|
8614
|
+
_html(`<span${_attr_class("_du")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dv")}>The app restarts and reloads when it is done.</span>`);
|
|
8615
8615
|
writeScope($scope79_id, {});
|
|
8616
8616
|
return 0;
|
|
8617
8617
|
} else {
|
|
8618
8618
|
const $scope45_id = _scope_id();
|
|
8619
|
-
_html(`<span${_attr_class("
|
|
8619
|
+
_html(`<span${_attr_class("_du")}>Update available</span><span${_attr_class("_dv")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8620
8620
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8621
8621
|
return 1;
|
|
8622
8622
|
}
|
|
@@ -8635,11 +8635,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8635
8635
|
return 0;
|
|
8636
8636
|
}
|
|
8637
8637
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8638
|
-
_html(`<section${_attr_class("_cf")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_cg")}><h2${_attr("id", agentsId)}${_attr_class("_ct")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("
|
|
8638
|
+
_html(`<section${_attr_class("_cf")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_cg")}><h2${_attr("id", agentsId)}${_attr_class("_ct")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_cT")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8639
8639
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8640
8640
|
setPreferred(v);
|
|
8641
8641
|
}, "y2", $scope0_id), () => {
|
|
8642
|
-
_html(`<select${_attr_class(["_p", "
|
|
8642
|
+
_html(`<select${_attr_class(["_p", "_cU"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8643
8643
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8644
8644
|
const $scope80_id = _scope_id();
|
|
8645
8645
|
_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)}`);
|
|
@@ -8653,7 +8653,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8653
8653
|
const rows = lone ? [] : a.instances;
|
|
8654
8654
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8655
8655
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8656
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8656
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_cV", { ["_cX"]: lone && !lone.enabled }])}>`);
|
|
8657
8657
|
_set_serialize_reason(12);
|
|
8658
8658
|
const $childScope3 = _peek_scope_id();
|
|
8659
8659
|
icon_agent_default({
|
|
@@ -8673,7 +8673,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8673
8673
|
_if(() => {
|
|
8674
8674
|
if (active.has(a.id)) {
|
|
8675
8675
|
const $scope12_id = _scope_id();
|
|
8676
|
-
_html(`<span${_attr_class("
|
|
8676
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8677
8677
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8678
8678
|
return 0;
|
|
8679
8679
|
} else if (!a.installed) {
|
|
@@ -8706,15 +8706,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8706
8706
|
_if(() => {
|
|
8707
8707
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8708
8708
|
const $scope2_id = _scope_id();
|
|
8709
|
-
_html(`<ul${_attr_class(["
|
|
8709
|
+
_html(`<ul${_attr_class(["_cZ", { ["_cX"]: lone && !lone.enabled }])}>`);
|
|
8710
8710
|
_for_of(rows, (inst) => {
|
|
8711
8711
|
const $scope3_id = _scope_id();
|
|
8712
8712
|
const accounts = accountsFor(inst.id);
|
|
8713
|
-
_html(`<li${_attr_class(["
|
|
8713
|
+
_html(`<li${_attr_class(["_cW", { ["_cX"]: !inst.enabled }])}><div${_attr_class("_cV")}>`);
|
|
8714
8714
|
_set_serialize_reason(12);
|
|
8715
8715
|
const $childScope4 = _peek_scope_id();
|
|
8716
8716
|
icon_agent_default({ agent: inst.id });
|
|
8717
|
-
_html(`<span${_attr_class(["
|
|
8717
|
+
_html(`<span${_attr_class(["_cY", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8718
8718
|
_if(() => {
|
|
8719
8719
|
if (input$3.preferred === inst.id) {
|
|
8720
8720
|
const $scope83_id = _scope_id();
|
|
@@ -8810,7 +8810,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8810
8810
|
_if(() => {
|
|
8811
8811
|
if (setup && !addingHost) {
|
|
8812
8812
|
const $scope42_id = _scope_id();
|
|
8813
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8813
|
+
_html(`<button${_attr_class([iconBtnRow, "_c8"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8814
8814
|
icon_plus_default({ size: 16 });
|
|
8815
8815
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8816
8816
|
_script($scope42_id, "y51");
|
|
@@ -8822,10 +8822,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8822
8822
|
if (setup) {
|
|
8823
8823
|
const $scope41_id = _scope_id();
|
|
8824
8824
|
_html(`<form${_attr_class([
|
|
8825
|
-
"
|
|
8826
|
-
"
|
|
8827
|
-
{ ["
|
|
8828
|
-
])}><label${_attr_class(["_1", "
|
|
8825
|
+
"_dY",
|
|
8826
|
+
"_c8",
|
|
8827
|
+
{ ["_dZ"]: !addingHost }
|
|
8828
|
+
])}><label${_attr_class(["_1", "_d1"])}>`);
|
|
8829
8829
|
icon_github_default({
|
|
8830
8830
|
size: 14,
|
|
8831
8831
|
class: "_2"
|
|
@@ -8835,12 +8835,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8835
8835
|
}, "y3", $scope41_id))}${_attr_class([
|
|
8836
8836
|
"_Z",
|
|
8837
8837
|
"_3",
|
|
8838
|
-
"
|
|
8838
|
+
"_d2"
|
|
8839
8839
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8840
8840
|
btnSm,
|
|
8841
8841
|
"_r",
|
|
8842
|
-
"
|
|
8843
|
-
])} 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, "
|
|
8842
|
+
"_c7"
|
|
8843
|
+
])} 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, "_d3"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8844
8844
|
icon_xmark_default({ size: 14 });
|
|
8845
8845
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8846
8846
|
_script($scope41_id, "y52");
|
|
@@ -8848,17 +8848,17 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8848
8848
|
return 0;
|
|
8849
8849
|
}
|
|
8850
8850
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8851
|
-
_html(`</div><div${_attr_class(["_ck", "
|
|
8851
|
+
_html(`</div><div${_attr_class(["_ck", "_cB"])}>`);
|
|
8852
8852
|
_for_of(setup?.github || [], (h) => {
|
|
8853
8853
|
const $scope6_id = _scope_id();
|
|
8854
8854
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8855
8855
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8856
8856
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8857
8857
|
const busy = active.has(h.host);
|
|
8858
|
-
_html(`<div${_attr_class(["
|
|
8858
|
+
_html(`<div${_attr_class(["_cC", "_c9"])}><div${_attr_class("_c_")}>`);
|
|
8859
8859
|
icon_github_default({
|
|
8860
8860
|
size: 18,
|
|
8861
|
-
class: "
|
|
8861
|
+
class: "_da"
|
|
8862
8862
|
});
|
|
8863
8863
|
_html(`<div${_attr_class("_cl")}><span${_attr_class("_cn")}><span${_attr_class("_cm")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8864
8864
|
_if(() => {
|
|
@@ -8873,25 +8873,25 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8873
8873
|
_if(() => {
|
|
8874
8874
|
if (busy) {
|
|
8875
8875
|
const $scope13_id = _scope_id();
|
|
8876
|
-
_html(`<span${_attr_class(["_co", "
|
|
8876
|
+
_html(`<span${_attr_class(["_co", "_db"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8877
8877
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8878
8878
|
return 0;
|
|
8879
8879
|
} else if (h.authed) {
|
|
8880
8880
|
const $scope89_id = _scope_id();
|
|
8881
|
-
_html(`<span${_attr_class(["_co", "
|
|
8881
|
+
_html(`<span${_attr_class(["_co", "_db"])}>`);
|
|
8882
8882
|
icon_check_default({
|
|
8883
8883
|
size: 12,
|
|
8884
|
-
class: "
|
|
8884
|
+
class: "_dc"
|
|
8885
8885
|
});
|
|
8886
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8886
|
+
_html(` Signed in as <strong${_attr_class("_de")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8887
8887
|
writeScope($scope89_id, {});
|
|
8888
8888
|
return 1;
|
|
8889
8889
|
} else if (h.error) {
|
|
8890
8890
|
const $scope90_id = _scope_id();
|
|
8891
8891
|
_html(`<span${_attr_class([
|
|
8892
8892
|
"_co",
|
|
8893
|
-
"
|
|
8894
|
-
"
|
|
8893
|
+
"_db",
|
|
8894
|
+
"_dd"
|
|
8895
8895
|
])}>`);
|
|
8896
8896
|
icon_warning_default({ size: 12 });
|
|
8897
8897
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8899,7 +8899,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8899
8899
|
return 2;
|
|
8900
8900
|
} else {
|
|
8901
8901
|
const $scope92_id = _scope_id();
|
|
8902
|
-
_html(`<span${_attr_class(["_co", "
|
|
8902
|
+
_html(`<span${_attr_class(["_co", "_db"])}>Not signed in</span>`);
|
|
8903
8903
|
writeScope($scope92_id, {});
|
|
8904
8904
|
return 3;
|
|
8905
8905
|
}
|
|
@@ -8964,7 +8964,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8964
8964
|
_if(() => {
|
|
8965
8965
|
if (busy && authCodes.has(h.host)) {
|
|
8966
8966
|
const $scope30_id = _scope_id();
|
|
8967
|
-
_html(`<div${_attr_class("
|
|
8967
|
+
_html(`<div${_attr_class("_df")}><span${_attr_class("_dg")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_di")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_dh")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8968
8968
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8969
8969
|
return 0;
|
|
8970
8970
|
}
|
|
@@ -8976,7 +8976,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8976
8976
|
_set_serialize_reason(30);
|
|
8977
8977
|
const $childScope9 = _peek_scope_id();
|
|
8978
8978
|
sso_auth_default({
|
|
8979
|
-
class: ["
|
|
8979
|
+
class: ["_cC", "_dj"],
|
|
8980
8980
|
items: hostSso$1,
|
|
8981
8981
|
skipped: skippedSso,
|
|
8982
8982
|
busy,
|
|
@@ -9015,18 +9015,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9015
9015
|
return 0;
|
|
9016
9016
|
}
|
|
9017
9017
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
9018
|
-
_html(`</section><section${_attr_class("_cf")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_cg")}><h2${_attr("id", machineId)}${_attr_class("_ct")}>Machine</h2></div><div${_attr_class(["_ck", "
|
|
9018
|
+
_html(`</section><section${_attr_class("_cf")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_cg")}><h2${_attr("id", machineId)}${_attr_class("_ct")}>Machine</h2></div><div${_attr_class(["_ck", "_cB"])}><div${_attr_class(["_cC", "_cD"])}><div${_attr_class(["_cE", { ["_cF"]: skillsOpen }])}><button${_attr_class("_cG")} aria-expanded=true>`);
|
|
9019
9019
|
_set_serialize_reason(1);
|
|
9020
9020
|
const $childScope10 = _peek_scope_id();
|
|
9021
9021
|
icon_chevron_right_default({
|
|
9022
9022
|
size: 12,
|
|
9023
|
-
class: ["
|
|
9023
|
+
class: ["_cK", { ["_cL"]: skillsOpen }]
|
|
9024
9024
|
});
|
|
9025
|
-
_html(`<span${_attr_class("
|
|
9025
|
+
_html(`<span${_attr_class("_cH")}>Skills</span>`);
|
|
9026
9026
|
_if(() => {
|
|
9027
9027
|
if (skills?.global.length) {
|
|
9028
9028
|
const $scope51_id = _scope_id();
|
|
9029
|
-
_html(`<span${_attr_class("
|
|
9029
|
+
_html(`<span${_attr_class("_cI")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9030
9030
|
writeScope($scope51_id, {});
|
|
9031
9031
|
return 0;
|
|
9032
9032
|
}
|
|
@@ -9046,7 +9046,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9046
9046
|
_if(() => {
|
|
9047
9047
|
if (skills?.available && skills.agents.length) {
|
|
9048
9048
|
const $scope14_id = _scope_id();
|
|
9049
|
-
_html(`<div${_attr_class(["
|
|
9049
|
+
_html(`<div${_attr_class(["_dY", { ["_dZ"]: true }])}><label${_attr_class(["_1", "_d1"])}>`);
|
|
9050
9050
|
_if(() => {
|
|
9051
9051
|
if (skillSearching) {
|
|
9052
9052
|
const $scope96_id = _scope_id();
|
|
@@ -9066,14 +9066,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9066
9066
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9067
9067
|
"_Z",
|
|
9068
9068
|
"_3",
|
|
9069
|
-
"
|
|
9070
|
-
])} 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, "
|
|
9069
|
+
"_d2"
|
|
9070
|
+
])} 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, "_d3"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9071
9071
|
icon_xmark_default({ size: 14 });
|
|
9072
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9072
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_d5"])}${_attr("hidden", true)}>`);
|
|
9073
9073
|
_if(() => {
|
|
9074
9074
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9075
9075
|
const $scope98_id = _scope_id();
|
|
9076
|
-
_html(`<li${_attr_class("
|
|
9076
|
+
_html(`<li${_attr_class("_d6")}>Searching skills.sh…</li>`);
|
|
9077
9077
|
writeScope($scope98_id, {});
|
|
9078
9078
|
return 0;
|
|
9079
9079
|
}
|
|
@@ -9081,11 +9081,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9081
9081
|
_if(() => {
|
|
9082
9082
|
if (looksLikeSource(skillQuery)) {
|
|
9083
9083
|
const $scope15_id = _scope_id();
|
|
9084
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["
|
|
9084
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9085
9085
|
_if(() => {
|
|
9086
9086
|
if (active.has(skillQuery.trim())) {
|
|
9087
9087
|
const $scope16_id = _scope_id();
|
|
9088
|
-
_html(`<span${_attr_class("
|
|
9088
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9089
9089
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9090
9090
|
Ch2: 3,
|
|
9091
9091
|
Chr: 1
|
|
@@ -9116,11 +9116,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9116
9116
|
_for_of(skillHits || [], (h) => {
|
|
9117
9117
|
const $scope17_id = _scope_id();
|
|
9118
9118
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9119
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["
|
|
9119
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9120
9120
|
_if(() => {
|
|
9121
9121
|
if (active.has(h.skillId)) {
|
|
9122
9122
|
const $scope18_id = _scope_id();
|
|
9123
|
-
_html(`<span${_attr_class("
|
|
9123
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9124
9124
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9125
9125
|
return 0;
|
|
9126
9126
|
} else {
|
|
@@ -9173,7 +9173,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9173
9173
|
_if(() => {
|
|
9174
9174
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9175
9175
|
const $scope53_id = _scope_id();
|
|
9176
|
-
_html(`<li${_attr_class("
|
|
9176
|
+
_html(`<li${_attr_class("_d6")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9177
9177
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9178
9178
|
return 0;
|
|
9179
9179
|
}
|
|
@@ -9188,7 +9188,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9188
9188
|
_if(() => {
|
|
9189
9189
|
{
|
|
9190
9190
|
const $scope19_id = _scope_id();
|
|
9191
|
-
_html(`<div${_attr_class("
|
|
9191
|
+
_html(`<div${_attr_class("_cJ")}>`);
|
|
9192
9192
|
_if(() => {
|
|
9193
9193
|
if (skills && !skills.agents.length) {
|
|
9194
9194
|
const $scope103_id = _scope_id();
|
|
@@ -9203,7 +9203,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9203
9203
|
return 1;
|
|
9204
9204
|
}
|
|
9205
9205
|
}, $scope19_id, "b", 1, 1, 1, 0, 1);
|
|
9206
|
-
_html(`<ul${_attr_class("
|
|
9206
|
+
_html(`<ul${_attr_class("_cu")}>`);
|
|
9207
9207
|
_for_of(skills?.global || [], (s) => {
|
|
9208
9208
|
const $scope21_id = _scope_id();
|
|
9209
9209
|
const $for_content5__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9289,14 +9289,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9289
9289
|
return 0;
|
|
9290
9290
|
}
|
|
9291
9291
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9292
|
-
_html(`</div><div${_attr_class(["
|
|
9292
|
+
_html(`</div><div${_attr_class(["_cC", "_cD"])}><div${_attr_class(["_cE", { ["_cF"]: machineOpen }])}><button${_attr_class("_cG")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9293
9293
|
_set_serialize_reason(1);
|
|
9294
9294
|
const $childScope12 = _peek_scope_id();
|
|
9295
9295
|
icon_chevron_right_default({
|
|
9296
9296
|
size: 12,
|
|
9297
|
-
class: ["
|
|
9297
|
+
class: ["_cK", { ["_cL"]: machineOpen }]
|
|
9298
9298
|
});
|
|
9299
|
-
_html(`<span${_attr_class("
|
|
9299
|
+
_html(`<span${_attr_class("_cH")}>Tools</span><span${_attr_class("_cI")}>${_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")}`);
|
|
9300
9300
|
_if(() => {
|
|
9301
9301
|
if (outdatedIds.length > 1) {
|
|
9302
9302
|
const $scope22_id = _scope_id();
|
|
@@ -9329,7 +9329,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9329
9329
|
_if(() => {
|
|
9330
9330
|
if (setup && setup.mise.installed) {
|
|
9331
9331
|
const $scope24_id = _scope_id();
|
|
9332
|
-
_html(`<div${_attr_class(["
|
|
9332
|
+
_html(`<div${_attr_class(["_dY", { ["_dZ"]: true }])}><label${_attr_class(["_1", "_d1"])}>`);
|
|
9333
9333
|
_if(() => {
|
|
9334
9334
|
if (searching) {
|
|
9335
9335
|
const $scope109_id = _scope_id();
|
|
@@ -9349,14 +9349,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9349
9349
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9350
9350
|
"_Z",
|
|
9351
9351
|
"_3",
|
|
9352
|
-
"
|
|
9353
|
-
])} 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, "
|
|
9352
|
+
"_d2"
|
|
9353
|
+
])} 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, "_d3"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9354
9354
|
icon_xmark_default({ size: 14 });
|
|
9355
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9355
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_d5"])}${_attr("hidden", true)}>`);
|
|
9356
9356
|
_if(() => {
|
|
9357
9357
|
if (searching && !hits?.length) {
|
|
9358
9358
|
const $scope111_id = _scope_id();
|
|
9359
|
-
_html(`<li${_attr_class("
|
|
9359
|
+
_html(`<li${_attr_class("_d6")}>Searching the mise registry…</li>`);
|
|
9360
9360
|
writeScope($scope111_id, {});
|
|
9361
9361
|
return 0;
|
|
9362
9362
|
}
|
|
@@ -9364,18 +9364,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9364
9364
|
_if(() => {
|
|
9365
9365
|
if (hits && !hits.length && !searching) {
|
|
9366
9366
|
const $scope43_id = _scope_id();
|
|
9367
|
-
_html(`<li${_attr_class("
|
|
9367
|
+
_html(`<li${_attr_class("_d6")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9368
9368
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9369
9369
|
return 0;
|
|
9370
9370
|
}
|
|
9371
9371
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9372
9372
|
_for_of(hits || [], (h) => {
|
|
9373
9373
|
const $scope25_id = _scope_id();
|
|
9374
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["
|
|
9374
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_cl")}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9375
9375
|
_if(() => {
|
|
9376
9376
|
if (active.has(h.name)) {
|
|
9377
9377
|
const $scope26_id = _scope_id();
|
|
9378
|
-
_html(`<span${_attr_class("
|
|
9378
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9379
9379
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9380
9380
|
return 0;
|
|
9381
9381
|
} else if (h.description) {
|
|
@@ -9425,7 +9425,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9425
9425
|
_if(() => {
|
|
9426
9426
|
if (machineOpen) {
|
|
9427
9427
|
const $scope5_id = _scope_id();
|
|
9428
|
-
_html(`<div${_attr_class("
|
|
9428
|
+
_html(`<div${_attr_class("_cJ")}>`);
|
|
9429
9429
|
_if(() => {
|
|
9430
9430
|
if (setup && !setup.mise.installed) {
|
|
9431
9431
|
const $scope27_id = _scope_id();
|
|
@@ -9439,11 +9439,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9439
9439
|
_if(() => {
|
|
9440
9440
|
if (self) {
|
|
9441
9441
|
const $scope47_id = _scope_id();
|
|
9442
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9442
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_c3", "_y"])}>work</span>`);
|
|
9443
9443
|
_if(() => {
|
|
9444
9444
|
if (selfUpdating) {
|
|
9445
9445
|
const $scope114_id = _scope_id();
|
|
9446
|
-
_html(`<span${_attr_class("
|
|
9446
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9447
9447
|
writeScope($scope114_id, {});
|
|
9448
9448
|
return 0;
|
|
9449
9449
|
} else {
|
|
@@ -9457,7 +9457,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9457
9457
|
return 0;
|
|
9458
9458
|
} else if (self.latest && self.latest !== self.version) {
|
|
9459
9459
|
const $scope49_id = _scope_id();
|
|
9460
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9460
|
+
_html(`<button${_attr_class([btnSm, "_c6"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9461
9461
|
icon_arrow_up_default({ size: 12 });
|
|
9462
9462
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9463
9463
|
_script($scope49_id, "y72");
|
|
@@ -9501,11 +9501,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9501
9501
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9502
9502
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9503
9503
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9504
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9504
|
+
_html(`<li${_attr_class([toolRow, { ["_c2"]: !t.installed }])}><span${_attr_class(["_c3", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9505
9505
|
_if(() => {
|
|
9506
9506
|
if (active.has(t.id)) {
|
|
9507
9507
|
const $scope29_id = _scope_id();
|
|
9508
|
-
_html(`<span${_attr_class("
|
|
9508
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9509
9509
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9510
9510
|
return 0;
|
|
9511
9511
|
} else if (t.installed) {
|
|
@@ -9513,11 +9513,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9513
9513
|
_if(() => {
|
|
9514
9514
|
if (t.version) {
|
|
9515
9515
|
const $scope40_id = _scope_id();
|
|
9516
|
-
_html(`<button${_attr_class(["
|
|
9516
|
+
_html(`<button${_attr_class(["_c5", "_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)}`);
|
|
9517
9517
|
_if(() => {
|
|
9518
9518
|
if (aliasPin(t)) {
|
|
9519
9519
|
const $scope118_id = _scope_id();
|
|
9520
|
-
_html(`<span${_attr_class("
|
|
9520
|
+
_html(`<span${_attr_class("_c4")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9521
9521
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9522
9522
|
return 0;
|
|
9523
9523
|
}
|
|
@@ -9536,7 +9536,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9536
9536
|
_if(() => {
|
|
9537
9537
|
if (outdated(t)) {
|
|
9538
9538
|
const $scope59_id = _scope_id();
|
|
9539
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9539
|
+
_html(`<button${_attr_class([btnSm, "_c6"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9540
9540
|
icon_arrow_up_default({ size: 12 });
|
|
9541
9541
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9542
9542
|
_script($scope59_id, "y74");
|
|
@@ -9544,7 +9544,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9544
9544
|
return 0;
|
|
9545
9545
|
} else if (t.newest) {
|
|
9546
9546
|
const $scope60_id = _scope_id();
|
|
9547
|
-
_html(`<button${_attr_class(["
|
|
9547
|
+
_html(`<button${_attr_class(["_c5", "_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")}`);
|
|
9548
9548
|
_script($scope60_id, "y75");
|
|
9549
9549
|
_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, {
|
|
9550
9550
|
Cw: 1,
|
|
@@ -9660,14 +9660,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9660
9660
|
label: "Dark"
|
|
9661
9661
|
}
|
|
9662
9662
|
];
|
|
9663
|
-
_html(`</div></div></section><section${_attr_class("_cf")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_cg")}><h2${_attr("id", appearanceId)}${_attr_class("_ct")}>Appearance</h2></div><div${_attr_class(["_ck", "
|
|
9663
|
+
_html(`</div></div></section><section${_attr_class("_cf")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_cg")}><h2${_attr("id", appearanceId)}${_attr_class("_ct")}>Appearance</h2></div><div${_attr_class(["_ck", "_dk"])}><div${_attr_class("_dw")}><img${_attr_class("_dx")}${_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("_dy")}><span${_attr_class("_dz")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dA")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dl")}><span${_attr_class("_dm")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9664
9664
|
setInstance({ name: v });
|
|
9665
|
-
}, "y4", $scope0_id))}${_attr_class(["_Z", "
|
|
9665
|
+
}, "y4", $scope0_id))}${_attr_class(["_Z", "_dn"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dl")}><span${_attr_class("_dm")}>Theme</span><span${_attr_class("_dp")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9666
9666
|
_for_of(themeOpts, (opt) => {
|
|
9667
9667
|
const $scope50_id = _scope_id();
|
|
9668
9668
|
_html(`<button type=button${_attr_class([
|
|
9669
9669
|
"_bg",
|
|
9670
|
-
"
|
|
9670
|
+
"_dB",
|
|
9671
9671
|
{ ["_bf"]: themeMode === opt.id }
|
|
9672
9672
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9673
9673
|
if (opt.id === "system") {
|
|
@@ -9687,28 +9687,28 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9687
9687
|
_: _scope_with_id($scope0_id)
|
|
9688
9688
|
});
|
|
9689
9689
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9690
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9690
|
+
_html(`</span><span${_attr_class(["_o", "_dq"])}>`);
|
|
9691
9691
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9692
9692
|
setThemeMode(v);
|
|
9693
9693
|
}, "y5", $scope0_id), () => {
|
|
9694
|
-
_html(`<select${_attr_class(["_p", "
|
|
9694
|
+
_html(`<select${_attr_class(["_p", "_dr"])} aria-label="Color theme">`);
|
|
9695
9695
|
forOf(themeOpts, (opt) => {
|
|
9696
9696
|
_scope_id();
|
|
9697
9697
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9698
9698
|
});
|
|
9699
9699
|
_html("</select>");
|
|
9700
9700
|
});
|
|
9701
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9702
|
-
"
|
|
9703
|
-
"
|
|
9704
|
-
{ ["
|
|
9701
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dl")}><span${_attr_class("_dm")}>Accent</span><span${_attr_class("_dC")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9702
|
+
"_dD",
|
|
9703
|
+
"_dG",
|
|
9704
|
+
{ ["_dE"]: !accent }
|
|
9705
9705
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9706
9706
|
_if(() => {
|
|
9707
9707
|
if (!accent) {
|
|
9708
9708
|
const $scope129_id = _scope_id();
|
|
9709
9709
|
icon_check_default({
|
|
9710
9710
|
size: 12,
|
|
9711
|
-
class: "
|
|
9711
|
+
class: "_dF"
|
|
9712
9712
|
});
|
|
9713
9713
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9714
9714
|
return 0;
|
|
@@ -9716,13 +9716,13 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9716
9716
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9717
9717
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9718
9718
|
const $scope77_id = _scope_id();
|
|
9719
|
-
_html(`<button type=button${_attr_class(["
|
|
9719
|
+
_html(`<button type=button${_attr_class(["_dD", { ["_dE"]: 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)}>`);
|
|
9720
9720
|
_if(() => {
|
|
9721
9721
|
if (accent === p.value) {
|
|
9722
9722
|
const $scope130_id = _scope_id();
|
|
9723
9723
|
icon_check_default({
|
|
9724
9724
|
size: 12,
|
|
9725
|
-
class: "
|
|
9725
|
+
class: "_dF"
|
|
9726
9726
|
});
|
|
9727
9727
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9728
9728
|
return 0;
|
|
@@ -9736,18 +9736,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9736
9736
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9737
9737
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9738
9738
|
_html(`<label${_attr_class([
|
|
9739
|
-
"
|
|
9740
|
-
"
|
|
9741
|
-
{ ["
|
|
9739
|
+
"_dD",
|
|
9740
|
+
"_dH",
|
|
9741
|
+
{ ["_dE"]: customOn }
|
|
9742
9742
|
])}${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) {
|
|
9743
9743
|
setInstance({ accent: v });
|
|
9744
|
-
}, "y6", $scope0_id))}${_attr_class("
|
|
9744
|
+
}, "y6", $scope0_id))}${_attr_class("_dI")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9745
9745
|
_if(() => {
|
|
9746
9746
|
if (customOn) {
|
|
9747
9747
|
const $scope131_id = _scope_id();
|
|
9748
9748
|
icon_check_default({
|
|
9749
9749
|
size: 12,
|
|
9750
|
-
class: "
|
|
9750
|
+
class: "_dF"
|
|
9751
9751
|
});
|
|
9752
9752
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9753
9753
|
return 0;
|
|
@@ -9758,11 +9758,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9758
9758
|
return 1;
|
|
9759
9759
|
}
|
|
9760
9760
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9761
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_cf")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_cg")}><h2${_attr("id", backupId)}${_attr_class("_ct")}>Backup</h2></div><div${_attr_class(["_ck", "
|
|
9761
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_cf")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_cg")}><h2${_attr("id", backupId)}${_attr_class("_ct")}>Backup</h2></div><div${_attr_class(["_ck", "_cB"])}><div${_attr_class("_cC")}><div${_attr_class("_dJ")}><div${_attr_class("_cl")}>`);
|
|
9762
9762
|
_if(() => {
|
|
9763
9763
|
if (backupBusy === "preflight") {
|
|
9764
9764
|
const $scope65_id = _scope_id();
|
|
9765
|
-
_html(`<span${_attr_class("
|
|
9765
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9766
9766
|
writeScope($scope65_id, {});
|
|
9767
9767
|
return 0;
|
|
9768
9768
|
} else {
|
|
@@ -9785,7 +9785,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9785
9785
|
_if(() => {
|
|
9786
9786
|
if (preflight && !backupBusy) {
|
|
9787
9787
|
const $scope67_id = _scope_id();
|
|
9788
|
-
_html(`<div${_attr_class("
|
|
9788
|
+
_html(`<div${_attr_class("_dL")}><p${_attr_class("_dM")}>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("_dM")}>Not in the file: `);
|
|
9789
9789
|
_if(() => {
|
|
9790
9790
|
if (preflight.unpushed) {
|
|
9791
9791
|
const $scope68_id = _scope_id();
|
|
@@ -9802,15 +9802,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9802
9802
|
return 0;
|
|
9803
9803
|
}
|
|
9804
9804
|
}, $scope67_id, "m");
|
|
9805
|
-
_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("
|
|
9805
|
+
_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("_dN")}>`);
|
|
9806
9806
|
_for_of(preflight.workspaces, (w) => {
|
|
9807
9807
|
const $scope135_id = _scope_id();
|
|
9808
9808
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9809
|
-
_html(`<li${_attr_class("
|
|
9809
|
+
_html(`<li${_attr_class("_dO")}><span${_attr_class("_cm")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dN")}>`);
|
|
9810
9810
|
_for_of(w.repos, (r) => {
|
|
9811
9811
|
const $scope136_id = _scope_id();
|
|
9812
9812
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9813
|
-
_html(`<li${_attr_class("
|
|
9813
|
+
_html(`<li${_attr_class("_dP")}><span${_attr_class("_dQ")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9814
9814
|
_for_of(r.unpushed, (b) => {
|
|
9815
9815
|
const $scope137_id = _scope_id();
|
|
9816
9816
|
_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 `);
|
|
@@ -9829,10 +9829,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9829
9829
|
_if(() => {
|
|
9830
9830
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9831
9831
|
const $scope138_id = _scope_id();
|
|
9832
|
-
_html(`<ul${_attr_class("
|
|
9832
|
+
_html(`<ul${_attr_class("_dR")}>`);
|
|
9833
9833
|
_for_of(r.modified, (f) => {
|
|
9834
9834
|
const $scope141_id = _scope_id();
|
|
9835
|
-
_html(`<li${_attr_class("
|
|
9835
|
+
_html(`<li${_attr_class("_dS")}><span${_attr_class([
|
|
9836
9836
|
"_N",
|
|
9837
9837
|
"_P",
|
|
9838
9838
|
tone.warn
|
|
@@ -9841,18 +9841,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9841
9841
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9842
9842
|
_for_of(r.untracked, (f) => {
|
|
9843
9843
|
const $scope142_id = _scope_id();
|
|
9844
|
-
_html(`<li${_attr_class("
|
|
9844
|
+
_html(`<li${_attr_class("_dS")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9845
9845
|
writeScope($scope142_id, {});
|
|
9846
9846
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9847
9847
|
_for_of(r.ignored, (f) => {
|
|
9848
9848
|
const $scope143_id = _scope_id();
|
|
9849
|
-
_html(`<li${_attr_class("
|
|
9849
|
+
_html(`<li${_attr_class("_dS")}><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>`);
|
|
9850
9850
|
writeScope($scope143_id, {});
|
|
9851
9851
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9852
9852
|
_if(() => {
|
|
9853
9853
|
if (r.more) {
|
|
9854
9854
|
const $scope139_id = _scope_id();
|
|
9855
|
-
_html(`<li${_attr_class(["
|
|
9855
|
+
_html(`<li${_attr_class(["_dS", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9856
9856
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9857
9857
|
return 0;
|
|
9858
9858
|
}
|
|
@@ -9877,17 +9877,17 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9877
9877
|
i: $for_content18__w_name__closures
|
|
9878
9878
|
});
|
|
9879
9879
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9880
|
-
_html(`<div${_attr_class("
|
|
9880
|
+
_html(`<div${_attr_class("_dT")}><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>`);
|
|
9881
9881
|
_script($scope67_id, "y81");
|
|
9882
9882
|
writeScope($scope67_id, {});
|
|
9883
9883
|
return 0;
|
|
9884
9884
|
}
|
|
9885
9885
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9886
|
-
_html(`</div><div${_attr_class("
|
|
9886
|
+
_html(`</div><div${_attr_class("_cC")}><div${_attr_class("_dJ")}><div${_attr_class("_cl")}>`);
|
|
9887
9887
|
_if(() => {
|
|
9888
9888
|
if (backupBusy === "restore") {
|
|
9889
9889
|
const $scope66_id = _scope_id();
|
|
9890
|
-
_html(`<span${_attr_class("
|
|
9890
|
+
_html(`<span${_attr_class("_cQ")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9891
9891
|
writeScope($scope66_id, {});
|
|
9892
9892
|
return 0;
|
|
9893
9893
|
} else if (restoreDone) {
|
|
@@ -9905,7 +9905,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9905
9905
|
_if(() => {
|
|
9906
9906
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9907
9907
|
const $scope76_id = _scope_id();
|
|
9908
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9908
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dK")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9909
9909
|
_script($scope76_id, "y82");
|
|
9910
9910
|
writeScope($scope76_id, {});
|
|
9911
9911
|
return 0;
|
|
@@ -9916,14 +9916,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9916
9916
|
if (restorePreview && backupBusy !== "restore") {
|
|
9917
9917
|
const $scope69_id = _scope_id();
|
|
9918
9918
|
const { preview } = restorePreview;
|
|
9919
|
-
_html(`<div${_attr_class("
|
|
9919
|
+
_html(`<div${_attr_class("_dL")}><p${_attr_class("_dM")}>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>`);
|
|
9920
9920
|
_if(() => {
|
|
9921
9921
|
if (preview.workspaces.length) {
|
|
9922
9922
|
const $scope70_id = _scope_id();
|
|
9923
9923
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9924
9924
|
_for_of(preview.workspaces, (w) => {
|
|
9925
9925
|
const $scope71_id = _scope_id();
|
|
9926
|
-
_html(`<li><label${_attr_class(["
|
|
9926
|
+
_html(`<li><label${_attr_class(["_dV", { ["_dX"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dW")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_cl")}><span${_attr_class("_cn")}><span${_attr_class("_cm")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9927
9927
|
_if(() => {
|
|
9928
9928
|
if (w.status === "archived") {
|
|
9929
9929
|
const $scope148_id = _scope_id();
|
|
@@ -9996,7 +9996,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9996
9996
|
_if(() => {
|
|
9997
9997
|
if (p.total) {
|
|
9998
9998
|
const $scope73_id = _scope_id();
|
|
9999
|
-
_html(`<li><label${_attr_class(["
|
|
9999
|
+
_html(`<li><label${_attr_class(["_dV", { ["_dX"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dW")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_cl")}><span${_attr_class("_cm")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_co")}>`);
|
|
10000
10000
|
_if(() => {
|
|
10001
10001
|
if (p.key === "settings") {
|
|
10002
10002
|
const $scope145_id = _scope_id();
|
|
@@ -10043,7 +10043,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
10043
10043
|
i: $for_content10__p_total__closures
|
|
10044
10044
|
});
|
|
10045
10045
|
}, "key", $scope69_id, "h");
|
|
10046
|
-
_html(`</ul><div${_attr_class("
|
|
10046
|
+
_html(`</ul><div${_attr_class("_dT")}><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>`);
|
|
10047
10047
|
_script($scope69_id, "y85");
|
|
10048
10048
|
writeScope($scope69_id, {});
|
|
10049
10049
|
return 0;
|
|
@@ -10328,7 +10328,7 @@ function activeAgent(session) {
|
|
|
10328
10328
|
const command = session.state?.command?.trim();
|
|
10329
10329
|
return command && agentFromCommand(command) || session.agent;
|
|
10330
10330
|
}
|
|
10331
|
-
var rowState = "
|
|
10331
|
+
var rowState = "_eV _N";
|
|
10332
10332
|
//#endregion
|
|
10333
10333
|
//#region src/client/arm.ts
|
|
10334
10334
|
/** Two-step destructive controls: first click arms (label/colour flips),
|
|
@@ -10339,12 +10339,12 @@ var ARM_MS = 3500;
|
|
|
10339
10339
|
function disarmLater(fn) {
|
|
10340
10340
|
return setTimeout(fn, ARM_MS);
|
|
10341
10341
|
}
|
|
10342
|
-
var prChip = "
|
|
10343
|
-
var portChip = "
|
|
10342
|
+
var prChip = "_hZ _u _hY";
|
|
10343
|
+
var portChip = "_h0 _u _hY";
|
|
10344
10344
|
var prState = {
|
|
10345
|
-
open: "
|
|
10346
|
-
merged: "
|
|
10347
|
-
closed: "
|
|
10345
|
+
open: "_h4",
|
|
10346
|
+
merged: "_h5",
|
|
10347
|
+
closed: "_h6"
|
|
10348
10348
|
};
|
|
10349
10349
|
//#endregion
|
|
10350
10350
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10435,7 +10435,7 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10435
10435
|
const name = repo.full_name.split("/").at(-1);
|
|
10436
10436
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10437
10437
|
}, "z4", $scope1_id);
|
|
10438
|
-
_html(`<div${_attr_class("
|
|
10438
|
+
_html(`<div${_attr_class("_hX")}>`);
|
|
10439
10439
|
_for_of(repos, (repo) => {
|
|
10440
10440
|
const $scope2_id = _scope_id();
|
|
10441
10441
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10451,11 +10451,11 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10451
10451
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10452
10452
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10453
10453
|
}
|
|
10454
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10454
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_h1", { ["_h9"]: !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")}`);
|
|
10455
10455
|
_if(() => {
|
|
10456
10456
|
if (open) {
|
|
10457
10457
|
const $scope4_id = _scope_id();
|
|
10458
|
-
_html(`<a${_attr_class(["
|
|
10458
|
+
_html(`<a${_attr_class(["_h1", "_h2"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10459
10459
|
icon_diff_default({ size: 12 });
|
|
10460
10460
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10461
10461
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10463,9 +10463,9 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10463
10463
|
} else {
|
|
10464
10464
|
const $scope6_id = _scope_id();
|
|
10465
10465
|
_html(`<button type=button${_attr_class([
|
|
10466
|
-
"
|
|
10467
|
-
"
|
|
10468
|
-
"
|
|
10466
|
+
"_h1",
|
|
10467
|
+
"_h2",
|
|
10468
|
+
"_h3"
|
|
10469
10469
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10470
10470
|
icon_xmark_default({ size: 12 });
|
|
10471
10471
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10493,21 +10493,21 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10493
10493
|
_if(() => {
|
|
10494
10494
|
if (dead.has(p.port)) {
|
|
10495
10495
|
const $scope7_id = _scope_id();
|
|
10496
|
-
_html(`<span${_attr_class(["
|
|
10496
|
+
_html(`<span${_attr_class(["_h1", "_h7"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10497
10497
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10498
10498
|
return 0;
|
|
10499
10499
|
} else {
|
|
10500
10500
|
const $scope8_id = _scope_id();
|
|
10501
|
-
_html(`<button type=button${_attr_class(["
|
|
10501
|
+
_html(`<button type=button${_attr_class(["_h1", "_h8"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10502
10502
|
_script($scope8_id, "z6");
|
|
10503
10503
|
writeScope($scope8_id, {});
|
|
10504
10504
|
return 1;
|
|
10505
10505
|
}
|
|
10506
10506
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10507
10507
|
_html(`<button type=button${_attr_class([
|
|
10508
|
-
"
|
|
10509
|
-
"
|
|
10510
|
-
"
|
|
10508
|
+
"_h1",
|
|
10509
|
+
"_h2",
|
|
10510
|
+
"_h3",
|
|
10511
10511
|
{ ["_s"]: armedPid === p.pid }
|
|
10512
10512
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10513
10513
|
icon_xmark_default({ size: 12 });
|
|
@@ -10550,16 +10550,16 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10550
10550
|
});
|
|
10551
10551
|
_resume_branch($scope0_id);
|
|
10552
10552
|
});
|
|
10553
|
-
var railBtn = "
|
|
10554
|
-
var wsBtn = "
|
|
10555
|
-
var rowIcon = "
|
|
10556
|
-
var close = "
|
|
10557
|
-
var sessRename$1 = "
|
|
10558
|
-
var sessBtn$1 = "
|
|
10553
|
+
var railBtn = "_fv _l";
|
|
10554
|
+
var wsBtn = "_fA _I";
|
|
10555
|
+
var rowIcon = "_fD _4 _l";
|
|
10556
|
+
var close = "_fE _7 _l _8";
|
|
10557
|
+
var sessRename$1 = "_fP _J";
|
|
10558
|
+
var sessBtn$1 = "_fR _I";
|
|
10559
10559
|
//#endregion
|
|
10560
10560
|
//#region src/styles/session-pop.css.ts
|
|
10561
|
-
var sessionPop = "
|
|
10562
|
-
var sessionPopBtn = "
|
|
10561
|
+
var sessionPop = "_fr __";
|
|
10562
|
+
var sessionPopBtn = "_fs _I";
|
|
10563
10563
|
//#endregion
|
|
10564
10564
|
//#region src/tags/icons/icon-manage.marko
|
|
10565
10565
|
var icon_manage_default = _template("hb", (input) => {
|
|
@@ -10588,22 +10588,22 @@ var usage_pcts_default = _template("I", (input) => {
|
|
|
10588
10588
|
if (windows.length) {
|
|
10589
10589
|
const $scope1_id = _scope_id();
|
|
10590
10590
|
_html(`<span${_attr_class([
|
|
10591
|
-
"
|
|
10591
|
+
"_hl",
|
|
10592
10592
|
input.class,
|
|
10593
|
-
{ ["
|
|
10593
|
+
{ ["_hm"]: agent.stale_seconds != null }
|
|
10594
10594
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10595
10595
|
_for_of(windows, (win$1, i) => {
|
|
10596
10596
|
const $scope2_id = _scope_id();
|
|
10597
|
-
_html(`<span${_attr_class("
|
|
10597
|
+
_html(`<span${_attr_class("_hn")}>`);
|
|
10598
10598
|
_if(() => {
|
|
10599
10599
|
if (i) {
|
|
10600
10600
|
const $scope3_id = _scope_id();
|
|
10601
|
-
_html(`<span${_attr_class("
|
|
10601
|
+
_html(`<span${_attr_class("_hq")} aria-hidden=true>·</span>`);
|
|
10602
10602
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10603
10603
|
return 0;
|
|
10604
10604
|
}
|
|
10605
10605
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10606
|
-
_html(`<span${_attr_class("
|
|
10606
|
+
_html(`<span${_attr_class("_ho")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hp", win$1.used_percent >= 90 ? "_hh" : win$1.used_percent >= 70 ? "_hg" : win$1.used_percent >= 40 ? "_hf" : "_he"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10607
10607
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10608
10608
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10609
10609
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10714,7 +10714,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10714
10714
|
_if(() => {
|
|
10715
10715
|
if (input.rail) {
|
|
10716
10716
|
const $scope2_id = _scope_id();
|
|
10717
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10717
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_ft"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
10718
10718
|
"_A",
|
|
10719
10719
|
phase[dot$1],
|
|
10720
10720
|
"_bc"
|
|
@@ -10724,34 +10724,34 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10724
10724
|
} else if (ws$1.pending) {
|
|
10725
10725
|
const $scope3_id = _scope_id();
|
|
10726
10726
|
_html(`<section${_attr_class([
|
|
10727
|
-
"
|
|
10728
|
-
"
|
|
10727
|
+
"_fx",
|
|
10728
|
+
"_fT",
|
|
10729
10729
|
{
|
|
10730
|
-
["
|
|
10731
|
-
["
|
|
10730
|
+
["_fy"]: input.railPop,
|
|
10731
|
+
["_fw"]: input.page
|
|
10732
10732
|
}
|
|
10733
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10733
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_fz")}><div${_attr_class(wsBtn)}>`);
|
|
10734
10734
|
_if(() => {
|
|
10735
10735
|
if (ws$1.pending_error) {
|
|
10736
10736
|
const $scope15_id = _scope_id();
|
|
10737
10737
|
icon_warning_default({
|
|
10738
10738
|
size: 12,
|
|
10739
|
-
class: "
|
|
10739
|
+
class: "_fV"
|
|
10740
10740
|
});
|
|
10741
10741
|
$si__input_workspace && writeScope($scope15_id, {});
|
|
10742
10742
|
return 0;
|
|
10743
10743
|
} else {
|
|
10744
10744
|
const $scope16_id = _scope_id();
|
|
10745
|
-
_html(`<span${_attr_class(["_G", "
|
|
10745
|
+
_html(`<span${_attr_class(["_G", "_fU"])}></span>`);
|
|
10746
10746
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10747
10747
|
return 1;
|
|
10748
10748
|
}
|
|
10749
10749
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10750
|
-
_html(`<span${_attr_class("
|
|
10750
|
+
_html(`<span${_attr_class("_fG")}><span${_attr_class("_fH")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_fX")}${_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>`);
|
|
10751
10751
|
_if(() => {
|
|
10752
10752
|
if (ws$1.pending_error && !retrying) {
|
|
10753
10753
|
const $scope14_id = _scope_id();
|
|
10754
|
-
_html(`<div${_attr_class("
|
|
10754
|
+
_html(`<div${_attr_class("_fW")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope14_id, "b")}<button type=button${_attr_class([
|
|
10755
10755
|
"_q",
|
|
10756
10756
|
btnSm,
|
|
10757
10757
|
{ ["_s"]: armedDelete }
|
|
@@ -10771,15 +10771,15 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10771
10771
|
const $scope4_id = _scope_id();
|
|
10772
10772
|
const sessions$1 = input.sessions || [];
|
|
10773
10773
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10774
|
-
_html(`<section${_attr_class(["
|
|
10775
|
-
["
|
|
10774
|
+
_html(`<section${_attr_class(["_fx", {
|
|
10775
|
+
["_ft"]: input.current,
|
|
10776
10776
|
["_bd"]: input.current,
|
|
10777
|
-
["
|
|
10778
|
-
["
|
|
10779
|
-
}])}><div${_attr_class("
|
|
10777
|
+
["_fy"]: input.railPop,
|
|
10778
|
+
["_fw"]: input.page
|
|
10779
|
+
}])}><div${_attr_class("_fz")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10780
10780
|
"_A",
|
|
10781
10781
|
phase[dot$1],
|
|
10782
|
-
"
|
|
10782
|
+
"_fL"
|
|
10783
10783
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10784
10784
|
_if(() => {
|
|
10785
10785
|
if (sessions$1.length === 1) {
|
|
@@ -10792,7 +10792,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10792
10792
|
icon_agent_default({
|
|
10793
10793
|
agent: activeAgent(sessions$1[0]),
|
|
10794
10794
|
size: 12,
|
|
10795
|
-
class: "
|
|
10795
|
+
class: "_fF"
|
|
10796
10796
|
});
|
|
10797
10797
|
$si__input_sessions && writeScope($scope17_id, {
|
|
10798
10798
|
_: _scope_with_id($scope4_id),
|
|
@@ -10802,11 +10802,11 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10802
10802
|
}
|
|
10803
10803
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10804
10804
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10805
|
-
_html(`<span${_attr_class("
|
|
10805
|
+
_html(`<span${_attr_class("_fG")}><span${_attr_class("_fH")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10806
10806
|
_if(() => {
|
|
10807
10807
|
if (input.page && metaText) {
|
|
10808
10808
|
const $scope18_id = _scope_id();
|
|
10809
|
-
_html(`<span${_attr_class("
|
|
10809
|
+
_html(`<span${_attr_class("_fK")}>${_text_resume($scope18_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10810
10810
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10811
10811
|
return 0;
|
|
10812
10812
|
}
|
|
@@ -10815,7 +10815,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10815
10815
|
_if(() => {
|
|
10816
10816
|
if (!input.page) {
|
|
10817
10817
|
const $scope5_id = _scope_id();
|
|
10818
|
-
_html(`<div${_attr_class("
|
|
10818
|
+
_html(`<div${_attr_class("_fB")}>`);
|
|
10819
10819
|
_if(() => {
|
|
10820
10820
|
if (input.onNewSession) {
|
|
10821
10821
|
const $scope6_id = _scope_id();
|
|
@@ -10864,7 +10864,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10864
10864
|
return 0;
|
|
10865
10865
|
}
|
|
10866
10866
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10867
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10867
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_fu"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10868
10868
|
icon_manage_default({ size: 12 });
|
|
10869
10869
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10870
10870
|
_subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -10874,7 +10874,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10874
10874
|
return 0;
|
|
10875
10875
|
}
|
|
10876
10876
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10877
|
-
_html(`</div><div${_attr_class("
|
|
10877
|
+
_html(`</div><div${_attr_class("_fQ")}>`);
|
|
10878
10878
|
_if(() => {
|
|
10879
10879
|
if (sessions$1.length === 1 && openPlan) {
|
|
10880
10880
|
const $scope11_id = _scope_id();
|
|
@@ -10882,7 +10882,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10882
10882
|
const $childScope3 = _peek_scope_id();
|
|
10883
10883
|
usage_pcts_default({
|
|
10884
10884
|
agent: openPlan,
|
|
10885
|
-
class: "
|
|
10885
|
+
class: "_fI"
|
|
10886
10886
|
});
|
|
10887
10887
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
10888
10888
|
a: _existing_scope($childScope3),
|
|
@@ -10893,14 +10893,14 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10893
10893
|
}, $scope4_id, "l");
|
|
10894
10894
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10895
10895
|
const $scope8_id = _scope_id();
|
|
10896
|
-
_html(`<div${_attr_class(["
|
|
10896
|
+
_html(`<div${_attr_class(["_fC", { ["_ft"]: s.id === input.currentTab }])}>`);
|
|
10897
10897
|
_if(() => {
|
|
10898
10898
|
if (renamingId === s.id) {
|
|
10899
10899
|
const $scope10_id = _scope_id();
|
|
10900
10900
|
_html(`<span${_attr_class([
|
|
10901
10901
|
"_A",
|
|
10902
10902
|
phase[sessionPhase(s.state)],
|
|
10903
|
-
"
|
|
10903
|
+
"_fO"
|
|
10904
10904
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
10905
10905
|
_set_serialize_reason({
|
|
10906
10906
|
1: $sg__input_sessions,
|
|
@@ -10910,7 +10910,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10910
10910
|
icon_agent_default({
|
|
10911
10911
|
agent: activeAgent(s),
|
|
10912
10912
|
size: 12,
|
|
10913
|
-
class: "
|
|
10913
|
+
class: "_fS"
|
|
10914
10914
|
});
|
|
10915
10915
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10916
10916
|
renameValue = _new_renameValue;
|
|
@@ -10929,9 +10929,9 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10929
10929
|
icon_agent_default({
|
|
10930
10930
|
agent: activeAgent(s),
|
|
10931
10931
|
size: 12,
|
|
10932
|
-
class: "
|
|
10932
|
+
class: "_fS"
|
|
10933
10933
|
});
|
|
10934
|
-
_html(`<span${_attr_class("
|
|
10934
|
+
_html(`<span${_attr_class("_fM")}>${_text_resume($scope9_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_fN")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10935
10935
|
icon_edit_default({ size: 12 });
|
|
10936
10936
|
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10937
10937
|
icon_xmark_default({ size: 12 });
|
|
@@ -10943,7 +10943,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10943
10943
|
const $childScope6 = _peek_scope_id();
|
|
10944
10944
|
usage_pcts_default({
|
|
10945
10945
|
agent: openPlan,
|
|
10946
|
-
class: "
|
|
10946
|
+
class: "_fJ"
|
|
10947
10947
|
});
|
|
10948
10948
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10949
10949
|
a: _existing_scope($childScope6),
|
|
@@ -11083,11 +11083,11 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11083
11083
|
const sessions = input.sessions || st?.sessions || [];
|
|
11084
11084
|
const manySessions = sessions.length > 1;
|
|
11085
11085
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11086
|
-
_html(`<div${_attr_class("
|
|
11086
|
+
_html(`<div${_attr_class("_eG")}>`);
|
|
11087
11087
|
_if(() => {
|
|
11088
11088
|
if (ws) {
|
|
11089
11089
|
const $scope1_id = _scope_id();
|
|
11090
|
-
_html(`<section${_attr_class("
|
|
11090
|
+
_html(`<section${_attr_class("_eH")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_eI")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11091
11091
|
_if(() => {
|
|
11092
11092
|
if (sessions.length === 1) {
|
|
11093
11093
|
const $scope8_id = _scope_id();
|
|
@@ -11099,7 +11099,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11099
11099
|
icon_agent_default({
|
|
11100
11100
|
agent: activeAgent(sessions[0]),
|
|
11101
11101
|
size: 16,
|
|
11102
|
-
class: "
|
|
11102
|
+
class: "_eL"
|
|
11103
11103
|
});
|
|
11104
11104
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope8_id, {
|
|
11105
11105
|
_: _scope_with_id($scope1_id),
|
|
@@ -11108,14 +11108,14 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11108
11108
|
return 0;
|
|
11109
11109
|
}
|
|
11110
11110
|
}, $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);
|
|
11111
|
-
_html(`<span${_attr_class("
|
|
11111
|
+
_html(`<span${_attr_class("_eJ")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_eK")}>${_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)}`);
|
|
11112
11112
|
_if(() => {
|
|
11113
11113
|
if (manySessions) {
|
|
11114
11114
|
const $scope2_id = _scope_id();
|
|
11115
|
-
_html(`<div${_attr_class("
|
|
11115
|
+
_html(`<div${_attr_class("_eM")}>`);
|
|
11116
11116
|
_for_of(sessions, (s) => {
|
|
11117
11117
|
const $scope3_id = _scope_id();
|
|
11118
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11118
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_eO", { ["_eN"]: 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)}`);
|
|
11119
11119
|
_set_serialize_reason({
|
|
11120
11120
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11121
11121
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11125,7 +11125,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11125
11125
|
agent: activeAgent(s),
|
|
11126
11126
|
size: 14
|
|
11127
11127
|
});
|
|
11128
|
-
_html(`<span${_attr_class("
|
|
11128
|
+
_html(`<span${_attr_class("_eP")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 7))}`);
|
|
11129
11129
|
$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, {
|
|
11130
11130
|
h: $si__input_tab && s?.id,
|
|
11131
11131
|
_: _scope_with_id($scope2_id),
|
|
@@ -11154,7 +11154,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11154
11154
|
_if(() => {
|
|
11155
11155
|
if (input.ids.length) {
|
|
11156
11156
|
const $scope4_id = _scope_id();
|
|
11157
|
-
_html(`<div${_attr_class("
|
|
11157
|
+
_html(`<div${_attr_class("_eQ")}>`);
|
|
11158
11158
|
_for_of(input.ids, (id) => {
|
|
11159
11159
|
const $scope5_id = _scope_id();
|
|
11160
11160
|
const w = input.byId.get(id);
|
|
@@ -11204,7 +11204,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11204
11204
|
const rp = phaseOf(rs);
|
|
11205
11205
|
const rowSessions = rs?.sessions || [];
|
|
11206
11206
|
const many = rowSessions.length > 1;
|
|
11207
|
-
_html(`<div${_attr_class("
|
|
11207
|
+
_html(`<div${_attr_class("_eR")}><a${_attr("href", `/w/${id}`)}${_attr_class("_eS")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope7_id, "c", $sg__input_allStatus__OR__input_ids)}`);
|
|
11208
11208
|
_if(() => {
|
|
11209
11209
|
if (rowSessions.length === 1) {
|
|
11210
11210
|
const $scope9_id = _scope_id();
|
|
@@ -11216,7 +11216,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11216
11216
|
icon_agent_default({
|
|
11217
11217
|
agent: activeAgent(rowSessions[0]),
|
|
11218
11218
|
size: 16,
|
|
11219
|
-
class: "
|
|
11219
|
+
class: "_eU"
|
|
11220
11220
|
});
|
|
11221
11221
|
$si__input_allStatus__OR__input_ids && writeScope($scope9_id, {
|
|
11222
11222
|
_: _scope_with_id($scope7_id),
|
|
@@ -11225,7 +11225,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11225
11225
|
return 0;
|
|
11226
11226
|
}
|
|
11227
11227
|
}, $scope7_id, "d", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids);
|
|
11228
|
-
_html(`<span${_attr_class("
|
|
11228
|
+
_html(`<span${_attr_class("_eT")}>${_text_resume($scope7_id, "f", w.name, $sg__input_ids__OR__input_byId)}</span>`);
|
|
11229
11229
|
_if(() => {
|
|
11230
11230
|
if (many) {
|
|
11231
11231
|
const $scope10_id = _scope_id();
|
|
@@ -11236,7 +11236,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11236
11236
|
}, $scope7_id, "g", $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, $sg__input_allStatus__OR__input_ids, 0, 1);
|
|
11237
11237
|
icon_chevron_right_default({
|
|
11238
11238
|
size: 14,
|
|
11239
|
-
class: "
|
|
11239
|
+
class: "_eW"
|
|
11240
11240
|
});
|
|
11241
11241
|
_html(`</a>${_el_resume($scope7_id, "b", $sg__input_ids)}`);
|
|
11242
11242
|
_set_serialize_reason($sg__input_ids);
|
|
@@ -12099,8 +12099,8 @@ function treeDirs(files) {
|
|
|
12099
12099
|
};
|
|
12100
12100
|
return build(root, "", "", -1);
|
|
12101
12101
|
}
|
|
12102
|
-
var treeToggle = "
|
|
12103
|
-
var pageTitle = "
|
|
12102
|
+
var treeToggle = "_f1 _5 _l";
|
|
12103
|
+
var pageTitle = "_f8 _eb";
|
|
12104
12104
|
//#endregion
|
|
12105
12105
|
//#region src/tags/diff-send.marko
|
|
12106
12106
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -12110,7 +12110,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12110
12110
|
let sendTarget = null;
|
|
12111
12111
|
const sessions = input.sessions || [];
|
|
12112
12112
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12113
|
-
_html(`<span${_attr_class("
|
|
12113
|
+
_html(`<span${_attr_class("_h_")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12114
12114
|
_if(() => {
|
|
12115
12115
|
if (sessions.length === 1) {
|
|
12116
12116
|
const $scope1_id = _scope_id();
|
|
@@ -12120,11 +12120,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12120
12120
|
return 0;
|
|
12121
12121
|
} else if (sessions.length) {
|
|
12122
12122
|
const $scope2_id = _scope_id();
|
|
12123
|
-
_html(`<span${_attr_class("
|
|
12123
|
+
_html(`<span${_attr_class("_ia")}><button type=button${_attr_class(["_r", "_ib"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12124
12124
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12125
12125
|
sendTarget = _new_sendTarget;
|
|
12126
12126
|
}, "j0", $scope2_id), () => {
|
|
12127
|
-
_html(`<select${_attr_class("
|
|
12127
|
+
_html(`<select${_attr_class("_ic")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12128
12128
|
_for_of(sessions, (s) => {
|
|
12129
12129
|
const $scope3_id = _scope_id();
|
|
12130
12130
|
_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)}`);
|
|
@@ -12151,8 +12151,8 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12151
12151
|
});
|
|
12152
12152
|
_resume_branch($scope0_id);
|
|
12153
12153
|
});
|
|
12154
|
-
var findInput = "
|
|
12155
|
-
var findIconBtn = "
|
|
12154
|
+
var findInput = "_eh _n";
|
|
12155
|
+
var findIconBtn = "_ek _l";
|
|
12156
12156
|
//#endregion
|
|
12157
12157
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
12158
12158
|
var icon_arrow_down_default = _template("N", (input) => {
|
|
@@ -12242,9 +12242,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
12242
12242
|
el.select();
|
|
12243
12243
|
}, 0);
|
|
12244
12244
|
}, "i0", $scope0_id);
|
|
12245
|
-
_html(`<div${_attr_class(["
|
|
12245
|
+
_html(`<div${_attr_class(["_eg", !open && "_ef"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
12246
12246
|
type(v);
|
|
12247
|
-
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
12247
|
+
}, "i1", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_ej")}>${_text_resume($scope0_id, "d", open && (query || "").trim() ? hits.length ? `${at + 1}/${hits.length}` : "0/0" : "")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
12248
12248
|
icon_arrow_up_default({ size: 14 });
|
|
12249
12249
|
_html(`</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
12250
12250
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -12388,7 +12388,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
12388
12388
|
_scope_reason();
|
|
12389
12389
|
const $scope0_id = _scope_id();
|
|
12390
12390
|
_el($scope0_id, "h0");
|
|
12391
|
-
_html(`<div${_attr_class(["
|
|
12391
|
+
_html(`<div${_attr_class(["_jf", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
12392
12392
|
_script($scope0_id, "h1");
|
|
12393
12393
|
writeScope($scope0_id, {
|
|
12394
12394
|
e: input.file,
|
|
@@ -12760,7 +12760,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
12760
12760
|
cd: $si__input_findHit_line && $input_findHit_line__closures
|
|
12761
12761
|
});
|
|
12762
12762
|
});
|
|
12763
|
-
var fileFilter = "
|
|
12763
|
+
var fileFilter = "_jh _n";
|
|
12764
12764
|
//#endregion
|
|
12765
12765
|
//#region src/tags/file-filter.marko
|
|
12766
12766
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -12790,7 +12790,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
12790
12790
|
pending = v;
|
|
12791
12791
|
box.timer = setTimeout(flush, 150);
|
|
12792
12792
|
}, "n2", $scope0_id);
|
|
12793
|
-
_html(`<div${_attr_class("
|
|
12793
|
+
_html(`<div${_attr_class("_jg")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
12794
12794
|
type(v);
|
|
12795
12795
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
12796
12796
|
_script($scope0_id, "n3");
|
|
@@ -12823,7 +12823,7 @@ var $content = (input) => {
|
|
|
12823
12823
|
_for_of(dir.dirs, (child) => {
|
|
12824
12824
|
const $scope1_id = _scope_id();
|
|
12825
12825
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
12826
|
-
_html(`<div${_attr_class("
|
|
12826
|
+
_html(`<div${_attr_class("_iC")}><button type=button${_attr_class(["_iD", { ["_iu"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_iK")}>`);
|
|
12827
12827
|
_if(() => {
|
|
12828
12828
|
if (shut) {
|
|
12829
12829
|
const $scope4_id = _scope_id();
|
|
@@ -12837,7 +12837,7 @@ var $content = (input) => {
|
|
|
12837
12837
|
return 1;
|
|
12838
12838
|
}
|
|
12839
12839
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
12840
|
-
_html(`<span${_attr_class("
|
|
12840
|
+
_html(`<span${_attr_class("_iE")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
12841
12841
|
_if(() => {
|
|
12842
12842
|
if (!shut) {
|
|
12843
12843
|
const $scope2_id = _scope_id();
|
|
@@ -12884,11 +12884,11 @@ var $content = (input) => {
|
|
|
12884
12884
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
12885
12885
|
_for_of(dir.files, ({ file, name }) => {
|
|
12886
12886
|
const $scope3_id = _scope_id();
|
|
12887
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
12887
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_iG", { ["_iF"]: 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("_iH")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
12888
12888
|
_if(() => {
|
|
12889
12889
|
if (input.newKeys.has(file.key)) {
|
|
12890
12890
|
const $scope6_id = _scope_id();
|
|
12891
|
-
_html(`<span${_attr_class(["_A", "
|
|
12891
|
+
_html(`<span${_attr_class(["_A", "_iI"])} title="Changed since your last visit"></span>`);
|
|
12892
12892
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
12893
12893
|
return 0;
|
|
12894
12894
|
}
|
|
@@ -12896,7 +12896,7 @@ var $content = (input) => {
|
|
|
12896
12896
|
_if(() => {
|
|
12897
12897
|
if (input.commentKeys.has(file.key)) {
|
|
12898
12898
|
const $scope7_id = _scope_id();
|
|
12899
|
-
_html(`<span${_attr_class("
|
|
12899
|
+
_html(`<span${_attr_class("_iJ")}>`);
|
|
12900
12900
|
icon_comment_default({ size: 12 });
|
|
12901
12901
|
_html("</span>");
|
|
12902
12902
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -12954,7 +12954,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
12954
12954
|
scope: input.scope ?? null,
|
|
12955
12955
|
file: key
|
|
12956
12956
|
}), "l0", $scope0_id);
|
|
12957
|
-
_html(`<aside${_attr_class(["
|
|
12957
|
+
_html(`<aside${_attr_class(["_iv", { ["_iu"]: input.open === false }])}><div${_attr_class("_iw")}>`);
|
|
12958
12958
|
_set_serialize_reason(2);
|
|
12959
12959
|
const $childScope = _peek_scope_id();
|
|
12960
12960
|
file_filter_default({
|
|
@@ -12963,18 +12963,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
12963
12963
|
filter = _new_filter;
|
|
12964
12964
|
}, "l1", $scope0_id)
|
|
12965
12965
|
});
|
|
12966
|
-
_html(`</div><div${_attr_class("
|
|
12966
|
+
_html(`</div><div${_attr_class("_ix")}>`);
|
|
12967
12967
|
_if(() => {
|
|
12968
12968
|
if (!input.sections.length && filter) {
|
|
12969
12969
|
const $scope3_id = _scope_id();
|
|
12970
|
-
_html(`<p${_attr_class("
|
|
12970
|
+
_html(`<p${_attr_class("_iy")}>No files match.</p>`);
|
|
12971
12971
|
writeScope($scope3_id, {});
|
|
12972
12972
|
return 0;
|
|
12973
12973
|
}
|
|
12974
12974
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
12975
12975
|
_for_of(input.sections, (section) => {
|
|
12976
12976
|
const $scope1_id = _scope_id();
|
|
12977
|
-
_html(`<div${_attr_class("
|
|
12977
|
+
_html(`<div${_attr_class("_iz")}><button type=button${_attr_class(["_iA", { ["_iu"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_iK")}>`);
|
|
12978
12978
|
_if(() => {
|
|
12979
12979
|
if (collapsedRepos.has(section.id)) {
|
|
12980
12980
|
const $scope4_id = _scope_id();
|
|
@@ -12988,12 +12988,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
12988
12988
|
return 1;
|
|
12989
12989
|
}
|
|
12990
12990
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
12991
|
-
_html(`<span${_attr_class("
|
|
12991
|
+
_html(`<span${_attr_class("_iE")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
12992
12992
|
_if(() => {
|
|
12993
12993
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
12994
12994
|
const $scope2_id = _scope_id();
|
|
12995
12995
|
const root = treeDirs(section.files);
|
|
12996
|
-
_html(`<div${_attr_class("
|
|
12996
|
+
_html(`<div${_attr_class("_iB")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
12997
12997
|
_set_serialize_reason(1);
|
|
12998
12998
|
const $childScope2 = _peek_scope_id();
|
|
12999
12999
|
diff_tree_dir_default({
|
|
@@ -13063,7 +13063,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
13063
13063
|
});
|
|
13064
13064
|
_resume_branch($scope0_id);
|
|
13065
13065
|
});
|
|
13066
|
-
var sheetDir = "
|
|
13066
|
+
var sheetDir = "_io _bb";
|
|
13067
13067
|
//#endregion
|
|
13068
13068
|
//#region src/tags/diff-file-sheet.marko
|
|
13069
13069
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -13119,9 +13119,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13119
13119
|
_if(() => {
|
|
13120
13120
|
if (open) {
|
|
13121
13121
|
const $scope1_id = _scope_id();
|
|
13122
|
-
_html(`<div${_attr_class("
|
|
13122
|
+
_html(`<div${_attr_class("_if")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_ig")} role=dialog aria-label="Jump to file"><div${_attr_class("_ih")}><strong${_attr_class("_ie")}>Files</strong><span${_attr_class("_ii")}>${_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, "_id"])} title=Close aria-label=Close>`);
|
|
13123
13123
|
icon_xmark_default({ size: 16 });
|
|
13124
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
13124
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iq")}>`);
|
|
13125
13125
|
_set_serialize_reason(2);
|
|
13126
13126
|
const $childScope = _peek_scope_id();
|
|
13127
13127
|
file_filter_default({
|
|
@@ -13130,13 +13130,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13130
13130
|
filter = _new_filter;
|
|
13131
13131
|
}, "g1", $scope1_id)
|
|
13132
13132
|
});
|
|
13133
|
-
_html(`</div><div${_attr_class("
|
|
13133
|
+
_html(`</div><div${_attr_class("_ij")}>`);
|
|
13134
13134
|
_for_of(groups, (group) => {
|
|
13135
13135
|
const $scope2_id = _scope_id();
|
|
13136
|
-
_html(`<div${_attr_class("
|
|
13136
|
+
_html(`<div${_attr_class("_ik")}><div${_attr_class("_il")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
13137
13137
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
13138
13138
|
const $scope3_id = _scope_id();
|
|
13139
|
-
_html(`<div${_attr_class("
|
|
13139
|
+
_html(`<div${_attr_class("_im")}>`);
|
|
13140
13140
|
_if(() => {
|
|
13141
13141
|
if (dir) {
|
|
13142
13142
|
const $scope5_id = _scope_id();
|
|
@@ -13147,11 +13147,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13147
13147
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
13148
13148
|
_for_of(files, ({ file, name }) => {
|
|
13149
13149
|
const $scope4_id = _scope_id();
|
|
13150
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
13150
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_in", "_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("_ip")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
13151
13151
|
_if(() => {
|
|
13152
13152
|
if (newKeys.has(file.key)) {
|
|
13153
13153
|
const $scope6_id = _scope_id();
|
|
13154
|
-
_html(`<span${_attr_class(["_A", "
|
|
13154
|
+
_html(`<span${_attr_class(["_A", "_is"])} title="Changed since your last visit"></span>`);
|
|
13155
13155
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13156
13156
|
return 0;
|
|
13157
13157
|
}
|
|
@@ -13161,7 +13161,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13161
13161
|
const $scope7_id = _scope_id();
|
|
13162
13162
|
icon_comment_default({
|
|
13163
13163
|
size: 12,
|
|
13164
|
-
class: "
|
|
13164
|
+
class: "_it"
|
|
13165
13165
|
});
|
|
13166
13166
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
13167
13167
|
return 0;
|
|
@@ -13186,7 +13186,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
13186
13186
|
_if(() => {
|
|
13187
13187
|
if (!input.files.length) {
|
|
13188
13188
|
const $scope8_id = _scope_id();
|
|
13189
|
-
_html(`<p${_attr_class("
|
|
13189
|
+
_html(`<p${_attr_class("_ir")}>No files match.</p>`);
|
|
13190
13190
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
13191
13191
|
return 0;
|
|
13192
13192
|
}
|
|
@@ -13731,11 +13731,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13731
13731
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
13732
13732
|
}
|
|
13733
13733
|
}, "m34", $scope0_id);
|
|
13734
|
-
_html(`<div${_attr_class("
|
|
13734
|
+
_html(`<div${_attr_class("_fY")}><div${_attr_class("_f3")}><div${_attr_class("_f4")}><div${_attr_class(["_gd", { ["_gc"]: !comments.length }])}>`);
|
|
13735
13735
|
_if(() => {
|
|
13736
13736
|
if (input.onExit) {
|
|
13737
13737
|
const $scope1_id = _scope_id();
|
|
13738
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
13738
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_f5"])} title="Back to terminal (⌘/Ctrl+Shift+D)">`);
|
|
13739
13739
|
icon_back_default({ size: 14 });
|
|
13740
13740
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
13741
13741
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -13746,7 +13746,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13746
13746
|
_if(() => {
|
|
13747
13747
|
if (comments.length) {
|
|
13748
13748
|
const $scope5_id = _scope_id();
|
|
13749
|
-
_html(`<span${_attr_class("
|
|
13749
|
+
_html(`<span${_attr_class("_f7")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
13750
13750
|
writeScope($scope5_id, {});
|
|
13751
13751
|
return 0;
|
|
13752
13752
|
}
|
|
@@ -13754,7 +13754,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13754
13754
|
_if(() => {
|
|
13755
13755
|
if (comments.length) {
|
|
13756
13756
|
const $scope2_id = _scope_id();
|
|
13757
|
-
_html(`<span${_attr_class("
|
|
13757
|
+
_html(`<span${_attr_class("_f6")}>`);
|
|
13758
13758
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
13759
13759
|
const $childScope = _peek_scope_id();
|
|
13760
13760
|
diff_send_default({
|
|
@@ -13767,14 +13767,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13767
13767
|
return 0;
|
|
13768
13768
|
}
|
|
13769
13769
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
13770
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
13770
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_f2")}>`);
|
|
13771
13771
|
_if(() => {
|
|
13772
13772
|
if (hasFiles) {
|
|
13773
13773
|
const $scope12_id = _scope_id();
|
|
13774
13774
|
_html(`<button${_attr_class([
|
|
13775
13775
|
treeToggle,
|
|
13776
|
-
"
|
|
13777
|
-
{ ["
|
|
13776
|
+
"_f0",
|
|
13777
|
+
{ ["_fZ"]: treeOpen }
|
|
13778
13778
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
13779
13779
|
icon_sidebar_default({ size: 14 });
|
|
13780
13780
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -13783,7 +13783,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13783
13783
|
return 0;
|
|
13784
13784
|
}
|
|
13785
13785
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
13786
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
13786
|
+
_html(`<button${_attr_class([iconBtnRow, "_f0"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
13787
13787
|
_set_serialize_reason(1);
|
|
13788
13788
|
const $childScope2 = _peek_scope_id();
|
|
13789
13789
|
icon_refresh_default({
|
|
@@ -13794,19 +13794,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13794
13794
|
_if(() => {
|
|
13795
13795
|
if (hasFiles) {
|
|
13796
13796
|
const $scope13_id = _scope_id();
|
|
13797
|
-
_html(`<button${_attr_class(["_q", "
|
|
13797
|
+
_html(`<button${_attr_class(["_q", "_gm"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
13798
13798
|
_script($scope13_id, "m54");
|
|
13799
13799
|
writeScope($scope13_id, {});
|
|
13800
13800
|
return 0;
|
|
13801
13801
|
}
|
|
13802
13802
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
13803
|
-
_html(`<span${_attr_class(["_o", "
|
|
13803
|
+
_html(`<span${_attr_class(["_o", "_ge"])}>`);
|
|
13804
13804
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
13805
13805
|
setScope(v);
|
|
13806
13806
|
}, "m0", $scope0_id), () => {
|
|
13807
|
-
_html(`<select${_attr_class(["_p", "
|
|
13807
|
+
_html(`<select${_attr_class(["_p", "_gf"])} 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>`);
|
|
13808
13808
|
});
|
|
13809
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
13809
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_ga", { ["_f_"]: !findOpen }])}>`);
|
|
13810
13810
|
_set_serialize_reason(2);
|
|
13811
13811
|
const $childScope3 = _peek_scope_id();
|
|
13812
13812
|
let findFocus = diff_find_default({
|
|
@@ -13827,8 +13827,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13827
13827
|
const $scope14_id = _scope_id();
|
|
13828
13828
|
_html(`<button${_attr_class([
|
|
13829
13829
|
iconBtnRow,
|
|
13830
|
-
"
|
|
13831
|
-
"
|
|
13830
|
+
"_f9",
|
|
13831
|
+
"_f0"
|
|
13832
13832
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
13833
13833
|
icon_search_default({ size: 14 });
|
|
13834
13834
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -13837,7 +13837,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13837
13837
|
return 0;
|
|
13838
13838
|
}
|
|
13839
13839
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
13840
|
-
_html(`</div></div><div${_attr_class("
|
|
13840
|
+
_html(`</div></div><div${_attr_class("_gb")} data-diff-main>`);
|
|
13841
13841
|
_if(() => {
|
|
13842
13842
|
if (error) {
|
|
13843
13843
|
const $scope6_id = _scope_id();
|
|
@@ -13860,7 +13860,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
13860
13860
|
_if(() => {
|
|
13861
13861
|
if (!repos && loading) {
|
|
13862
13862
|
const $scope15_id = _scope_id();
|
|
13863
|
-
_html(`<div${_attr_class("
|
|
13863
|
+
_html(`<div${_attr_class("_gh")} aria-hidden=true><div${_attr_class(["_gi", "_gj"])}></div><div${_attr_class(["_gi", "_gk"])}></div><div${_attr_class(["_gi", "_gl"])}></div><div${_attr_class(["_gi", "_gk"])}></div><div${_attr_class(["_gi", "_gl"])}></div></div>`);
|
|
13864
13864
|
writeScope($scope15_id, {});
|
|
13865
13865
|
return 0;
|
|
13866
13866
|
}
|
|
@@ -14263,12 +14263,12 @@ function parseInvite(text) {
|
|
|
14263
14263
|
}
|
|
14264
14264
|
//#endregion
|
|
14265
14265
|
//#region src/tags/manage-workspace.css.ts
|
|
14266
|
-
var pageMeta = "
|
|
14267
|
-
var pathMeta = "
|
|
14268
|
-
var skillRow = "
|
|
14269
|
-
var skillName = "
|
|
14270
|
-
var skillDesc = "
|
|
14271
|
-
var skillEnd = "
|
|
14266
|
+
var pageMeta = "_gn _ed";
|
|
14267
|
+
var pathMeta = "_gq _y";
|
|
14268
|
+
var skillRow = "_gw _gr";
|
|
14269
|
+
var skillName = "_gy _gs";
|
|
14270
|
+
var skillDesc = "_gB _gt";
|
|
14271
|
+
var skillEnd = "_gC _gu";
|
|
14272
14272
|
//#endregion
|
|
14273
14273
|
//#region src/tags/icons/icon-clipboard.marko
|
|
14274
14274
|
var icon_clipboard_default = _template("Y", (input) => {
|
|
@@ -14286,8 +14286,8 @@ var icon_clipboard_default = _template("Y", (input) => {
|
|
|
14286
14286
|
});
|
|
14287
14287
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
14288
14288
|
});
|
|
14289
|
-
var resultRow = "
|
|
14290
|
-
var resultBranch = "
|
|
14289
|
+
var resultRow = "_hz _I";
|
|
14290
|
+
var resultBranch = "_hB _4 _l";
|
|
14291
14291
|
//#endregion
|
|
14292
14292
|
//#region src/tags/icons/icon-branch.marko
|
|
14293
14293
|
var icon_branch_default = _template("U", (input) => {
|
|
@@ -14317,7 +14317,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
14317
14317
|
let branchFilter = "";
|
|
14318
14318
|
let reloadTick = 0;
|
|
14319
14319
|
let refreshing = false;
|
|
14320
|
-
_html(`<div${_attr_class("
|
|
14320
|
+
_html(`<div${_attr_class("_hD")}>`);
|
|
14321
14321
|
_if(() => {
|
|
14322
14322
|
{
|
|
14323
14323
|
const $scope4_id = _scope_id();
|
|
@@ -14422,21 +14422,21 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14422
14422
|
_resume_branch($scope9_id);
|
|
14423
14423
|
}, $scope0_id) };
|
|
14424
14424
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
14425
|
-
_html(`<div${_attr_class([compact ? "
|
|
14426
|
-
["
|
|
14427
|
-
["
|
|
14425
|
+
_html(`<div${_attr_class([compact ? "_dY" : "_hr", {
|
|
14426
|
+
["_dZ"]: compact && !input$2.open,
|
|
14427
|
+
["_d0"]: input$2.pinned
|
|
14428
14428
|
}])}>`);
|
|
14429
14429
|
_if(() => {
|
|
14430
14430
|
if (!compact && ssoPending.length) {
|
|
14431
14431
|
const $scope11_id = _scope_id();
|
|
14432
|
-
_html(`<div${_attr_class("
|
|
14432
|
+
_html(`<div${_attr_class("_hu")}>`);
|
|
14433
14433
|
ssoBlock.content({});
|
|
14434
14434
|
_html("</div>");
|
|
14435
14435
|
writeScope($scope11_id, {});
|
|
14436
14436
|
return 0;
|
|
14437
14437
|
}
|
|
14438
14438
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
14439
|
-
_html(`<div${!compact && input$2.action ? _attr_class("
|
|
14439
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_hs") : _attr_class("_ht")}><label${_attr_class(["_1", compact && "_d1"])}>`);
|
|
14440
14440
|
icon_search_default({
|
|
14441
14441
|
size: 14,
|
|
14442
14442
|
class: "_2"
|
|
@@ -14448,7 +14448,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14448
14448
|
}, "w0", $scope0_id))}${_attr_class([
|
|
14449
14449
|
compact ? "_Z" : inputLg,
|
|
14450
14450
|
"_3",
|
|
14451
|
-
compact && "
|
|
14451
|
+
compact && "_d2"
|
|
14452
14452
|
])} 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)}`);
|
|
14453
14453
|
_if(() => {
|
|
14454
14454
|
if (!compact && input$2.action) {
|
|
@@ -14462,7 +14462,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14462
14462
|
_if(() => {
|
|
14463
14463
|
if (compact) {
|
|
14464
14464
|
const $scope2_id = _scope_id();
|
|
14465
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14465
|
+
_html(`<button${_attr_class([iconBtnRow, "_d3"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
14466
14466
|
icon_xmark_default({ size: 14 });
|
|
14467
14467
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
14468
14468
|
_script($scope2_id, "w14");
|
|
@@ -14470,11 +14470,11 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14470
14470
|
return 0;
|
|
14471
14471
|
}
|
|
14472
14472
|
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
14473
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
14473
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hv"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
14474
14474
|
_if(() => {
|
|
14475
14475
|
if (compact && ssoPending.length) {
|
|
14476
14476
|
const $scope12_id = _scope_id();
|
|
14477
|
-
_html(`<div${_attr_class("
|
|
14477
|
+
_html(`<div${_attr_class("_hu")}>`);
|
|
14478
14478
|
ssoBlock.content({});
|
|
14479
14479
|
_html("</div>");
|
|
14480
14480
|
writeScope($scope12_id, {});
|
|
@@ -14484,16 +14484,16 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14484
14484
|
_if(() => {
|
|
14485
14485
|
if (pasted) {
|
|
14486
14486
|
const $scope3_id = _scope_id();
|
|
14487
|
-
_html(`<ul${_attr_class("
|
|
14487
|
+
_html(`<ul${_attr_class("_hw")}><li><div${_attr_class(["_hy", "_hx"])}><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)`)}>`);
|
|
14488
14488
|
icon_plus_default({
|
|
14489
14489
|
size: 12,
|
|
14490
|
-
class: "
|
|
14490
|
+
class: "_hF"
|
|
14491
14491
|
});
|
|
14492
|
-
_html(`<span${_attr_class("
|
|
14492
|
+
_html(`<span${_attr_class("_hG")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
14493
14493
|
_if(() => {
|
|
14494
14494
|
if (pastedForkable) {
|
|
14495
14495
|
const $scope10_id = _scope_id();
|
|
14496
|
-
_html(`<button${_attr_class(["
|
|
14496
|
+
_html(`<button${_attr_class(["_hC", { ["_hA"]: 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"}>`);
|
|
14497
14497
|
_if(() => {
|
|
14498
14498
|
if (pasteWillFork) {
|
|
14499
14499
|
const $scope14_id = _scope_id();
|
|
@@ -14513,7 +14513,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14513
14513
|
return 0;
|
|
14514
14514
|
}
|
|
14515
14515
|
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
14516
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
14516
|
+
_html(`<button${_attr_class([resultBranch, { ["_hA"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
14517
14517
|
icon_branch_default({ size: 12 });
|
|
14518
14518
|
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
14519
14519
|
_if(() => {
|
|
@@ -14548,15 +14548,15 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
14548
14548
|
_if(() => {
|
|
14549
14549
|
if (results.length) {
|
|
14550
14550
|
const $scope5_id = _scope_id();
|
|
14551
|
-
_html(`<ul${_attr_class("
|
|
14551
|
+
_html(`<ul${_attr_class("_hw")}>`);
|
|
14552
14552
|
_for_of(results, (repo, i) => {
|
|
14553
14553
|
const $scope6_id = _scope_id();
|
|
14554
|
-
_html(`<li><div${_attr_class(["
|
|
14554
|
+
_html(`<li><div${_attr_class(["_hy", { ["_hx"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
14555
14555
|
icon_plus_default({
|
|
14556
14556
|
size: 12,
|
|
14557
|
-
class: "
|
|
14557
|
+
class: "_hF"
|
|
14558
14558
|
});
|
|
14559
|
-
_html(`<span${_attr_class("
|
|
14559
|
+
_html(`<span${_attr_class("_hG")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hA"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
14560
14560
|
icon_branch_default({ size: 12 });
|
|
14561
14561
|
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
14562
14562
|
_if(() => {
|
|
@@ -14811,7 +14811,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
14811
14811
|
setTimeout(() => loadProcs(void 0), 500);
|
|
14812
14812
|
}, "r10", $scope0_id);
|
|
14813
14813
|
const titleId = _id();
|
|
14814
|
-
_html(`<div${_attr_class("
|
|
14814
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
14815
14815
|
_set_serialize_reason(30);
|
|
14816
14816
|
const $childScope = _peek_scope_id();
|
|
14817
14817
|
page_head_default({
|
|
@@ -14824,7 +14824,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
14824
14824
|
meta: attrTag({ content: _content("r20", () => {
|
|
14825
14825
|
_scope_reason();
|
|
14826
14826
|
const $scope13_id = _scope_id();
|
|
14827
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
14827
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_go")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
14828
14828
|
_if(() => {
|
|
14829
14829
|
if (ws.status !== "active") {
|
|
14830
14830
|
const $scope17_id = _scope_id();
|
|
@@ -14833,7 +14833,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
14833
14833
|
return 0;
|
|
14834
14834
|
}
|
|
14835
14835
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
14836
|
-
_html(`<span${_attr_class("
|
|
14836
|
+
_html(`<span${_attr_class("_gp")} 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")}`);
|
|
14837
14837
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
14838
14838
|
_: _scope_with_id($scope0_id),
|
|
14839
14839
|
Ccf: 1
|
|
@@ -14918,7 +14918,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
14918
14918
|
return 0;
|
|
14919
14919
|
}
|
|
14920
14920
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
14921
|
-
_html(`<section${_attr_class("_cf")}><div${_attr_class("_cg")}><h2${_attr_class("_ct")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "
|
|
14921
|
+
_html(`<section${_attr_class("_cf")}><div${_attr_class("_cg")}><h2${_attr_class("_ct")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_gF"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
14922
14922
|
icon_plus_default({ size: 16 });
|
|
14923
14923
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
14924
14924
|
_set_serialize_reason(26);
|
|
@@ -15034,14 +15034,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
15034
15034
|
_for_of(allSkills, ({ s, linked }) => {
|
|
15035
15035
|
const $scope3_id = _scope_id();
|
|
15036
15036
|
const isBusy = skillBusy.has(s.id);
|
|
15037
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
15037
|
+
_html(`<li${_attr_class([skillRow, { ["_gx"]: !linked }])}><span${_attr_class("_gz")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
15038
15038
|
_if(() => {
|
|
15039
15039
|
if (s.worktree && !s.broken) {
|
|
15040
15040
|
const $scope26_id = _scope_id();
|
|
15041
15041
|
_html(`<span${_attr_class([
|
|
15042
15042
|
"_N",
|
|
15043
15043
|
"_y",
|
|
15044
|
-
"
|
|
15044
|
+
"_gA"
|
|
15045
15045
|
])}${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")}`);
|
|
15046
15046
|
writeScope($scope26_id, {});
|
|
15047
15047
|
return 0;
|
|
@@ -15096,7 +15096,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
15096
15096
|
"_cp",
|
|
15097
15097
|
"_8",
|
|
15098
15098
|
"_9",
|
|
15099
|
-
"
|
|
15099
|
+
"_gD",
|
|
15100
15100
|
{ ["_s"]: confirmingSkill === s.id }
|
|
15101
15101
|
])} 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}`)}>`);
|
|
15102
15102
|
_if(() => {
|
|
@@ -15149,17 +15149,17 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
15149
15149
|
_html(`<section${_attr_class("_cf")}><div${_attr_class("_cg")}><h2${_attr_class("_ct")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
15150
15150
|
_for_of(running, (p) => {
|
|
15151
15151
|
const $scope16_id = _scope_id();
|
|
15152
|
-
_html(`<li${_attr_class("
|
|
15152
|
+
_html(`<li${_attr_class("_gr")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_gs"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_gt"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_gu")}>`);
|
|
15153
15153
|
_for_of(p.ports, (port) => {
|
|
15154
15154
|
const $scope34_id = _scope_id();
|
|
15155
15155
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
15156
15156
|
_script($scope34_id, "r27");
|
|
15157
15157
|
writeScope($scope34_id, { d: port });
|
|
15158
15158
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
15159
|
-
_html(`<span${_attr_class(["_y", "
|
|
15159
|
+
_html(`<span${_attr_class(["_y", "_gv"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
15160
15160
|
"_cp",
|
|
15161
15161
|
"_8",
|
|
15162
|
-
"
|
|
15162
|
+
"_gE"
|
|
15163
15163
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
15164
15164
|
icon_xmark_default({ size: 14 });
|
|
15165
15165
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -15240,14 +15240,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
15240
15240
|
});
|
|
15241
15241
|
_resume_branch($scope0_id);
|
|
15242
15242
|
});
|
|
15243
|
-
var curRepos = "
|
|
15244
|
-
var curRow = "
|
|
15245
|
-
var curEmpty = "
|
|
15246
|
-
var curBase = "
|
|
15247
|
-
var archived = "
|
|
15248
|
-
var archivedHint = "
|
|
15249
|
-
var archivedList = "
|
|
15250
|
-
var archivedRow = "
|
|
15243
|
+
var curRepos = "_cO _ck _cB _cM";
|
|
15244
|
+
var curRow = "_fd _cP _cN";
|
|
15245
|
+
var curEmpty = "_ff _cq";
|
|
15246
|
+
var curBase = "_fi _Y _X";
|
|
15247
|
+
var archived = "_fn _cf";
|
|
15248
|
+
var archivedHint = "_fo _X";
|
|
15249
|
+
var archivedList = "_cO _ck _cB _cM";
|
|
15250
|
+
var archivedRow = "_fp _cP _cN";
|
|
15251
15251
|
//#endregion
|
|
15252
15252
|
//#region src/tags/icons/icon-group.marko
|
|
15253
15253
|
var icon_group_default = _template("fb", (input) => {
|
|
@@ -15267,8 +15267,8 @@ var icon_group_default = _template("fb", (input) => {
|
|
|
15267
15267
|
});
|
|
15268
15268
|
//#endregion
|
|
15269
15269
|
//#region src/tags/join-dialog.css.ts
|
|
15270
|
-
var dlg = "
|
|
15271
|
-
var hint = "
|
|
15270
|
+
var dlg = "_hL _gI";
|
|
15271
|
+
var hint = "_hM _X";
|
|
15272
15272
|
//#endregion
|
|
15273
15273
|
//#region src/tags/join-dialog.marko
|
|
15274
15274
|
var api$3;
|
|
@@ -15397,26 +15397,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
15397
15397
|
content: _content("o12", () => {
|
|
15398
15398
|
_scope_reason();
|
|
15399
15399
|
const $scope1_id = _scope_id();
|
|
15400
|
-
_html(`<h2${_attr_class("
|
|
15400
|
+
_html(`<h2${_attr_class("_gJ")}${_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([
|
|
15401
15401
|
"_Z",
|
|
15402
15402
|
"_y",
|
|
15403
|
-
"
|
|
15403
|
+
"_hO"
|
|
15404
15404
|
])} 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")}`);
|
|
15405
15405
|
_if(() => {
|
|
15406
15406
|
if (parsed.error) {
|
|
15407
15407
|
const $scope8_id = _scope_id();
|
|
15408
|
-
_html(`<p${_attr_class([hint, "
|
|
15408
|
+
_html(`<p${_attr_class([hint, "_hN"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
15409
15409
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
15410
15410
|
return 0;
|
|
15411
15411
|
} else if (parsed.ok) {
|
|
15412
15412
|
const $scope3_id = _scope_id();
|
|
15413
|
-
_html(`<ul${_attr_class("
|
|
15413
|
+
_html(`<ul${_attr_class("_hP")}>`);
|
|
15414
15414
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
15415
15415
|
const $scope9_id = _scope_id();
|
|
15416
|
-
_html(`<li${_attr_class("
|
|
15416
|
+
_html(`<li${_attr_class("_hQ")}><span${_attr_class("_hR")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
15417
15417
|
writeScope($scope9_id, {});
|
|
15418
15418
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
15419
|
-
_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("
|
|
15419
|
+
_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("_hS")}><span${_attr_class("_ct")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
15420
15420
|
name = _new_name;
|
|
15421
15421
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
15422
15422
|
_script($scope3_id, "o8");
|
|
@@ -15453,10 +15453,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
15453
15453
|
_if(() => {
|
|
15454
15454
|
if (busy && steps$2.length) {
|
|
15455
15455
|
const $scope6_id = _scope_id();
|
|
15456
|
-
_html(`<ul${_attr_class("
|
|
15456
|
+
_html(`<ul${_attr_class("_hT")}>`);
|
|
15457
15457
|
_for_of(steps$2, (step$2, i) => {
|
|
15458
15458
|
const $scope7_id = _scope_id();
|
|
15459
|
-
_html(`<li${_attr_class(["
|
|
15459
|
+
_html(`<li${_attr_class(["_hV", { ["_hU"]: i === steps$2.length - 1 }])}>`);
|
|
15460
15460
|
_if(() => {
|
|
15461
15461
|
if (i === steps$2.length - 1) {
|
|
15462
15462
|
const $scope10_id = _scope_id();
|
|
@@ -15465,7 +15465,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
15465
15465
|
return 0;
|
|
15466
15466
|
} else {
|
|
15467
15467
|
const $scope11_id = _scope_id();
|
|
15468
|
-
_html(`<span${_attr_class("
|
|
15468
|
+
_html(`<span${_attr_class("_hW")}>`);
|
|
15469
15469
|
icon_check_default({ size: 14 });
|
|
15470
15470
|
_html("</span>");
|
|
15471
15471
|
writeScope($scope11_id, {});
|
|
@@ -15623,7 +15623,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15623
15623
|
}
|
|
15624
15624
|
}, "t6", $scope0_id);
|
|
15625
15625
|
const titleId = _id();
|
|
15626
|
-
_html(`<div${_attr_class("
|
|
15626
|
+
_html(`<div${_attr_class("_d8")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_d9")}><div${_attr_class("_d_")}>`);
|
|
15627
15627
|
_set_serialize_reason({
|
|
15628
15628
|
0: _serialize_guard($scope0_reason, 2),
|
|
15629
15629
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -15672,16 +15672,16 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15672
15672
|
return 0;
|
|
15673
15673
|
}
|
|
15674
15674
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
15675
|
-
_html(`<label${_attr_class("
|
|
15675
|
+
_html(`<label${_attr_class("_e_")}><span${_attr_class("_ct")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
15676
15676
|
name = _new_name;
|
|
15677
|
-
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_cf")}><div${_attr_class("
|
|
15677
|
+
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_cf")}><div${_attr_class("_fb")}><h2${_attr_class("_ct")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
15678
15678
|
_for_of(selected, (repo) => {
|
|
15679
15679
|
const $scope4_id = _scope_id();
|
|
15680
|
-
_html(`<li${_attr_class("
|
|
15680
|
+
_html(`<li${_attr_class("_fc")}><div${_attr_class(curRow)}><span${_attr_class("_fg")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
|
|
15681
15681
|
_if(() => {
|
|
15682
15682
|
if (repo.fork !== void 0) {
|
|
15683
15683
|
const $scope5_id = _scope_id();
|
|
15684
|
-
_html(`<button${_attr_class(["
|
|
15684
|
+
_html(`<button${_attr_class(["_fj", { ["_fh"]: 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)}>`);
|
|
15685
15685
|
_if(() => {
|
|
15686
15686
|
if (repo.fork) {
|
|
15687
15687
|
const $scope14_id = _scope_id();
|
|
@@ -15704,7 +15704,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15704
15704
|
_html(`<button${_attr_class([
|
|
15705
15705
|
curBase,
|
|
15706
15706
|
"_y",
|
|
15707
|
-
{ ["
|
|
15707
|
+
{ ["_fh"]: branchesFor === repo.fullName }
|
|
15708
15708
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
15709
15709
|
icon_branch_default({ size: 12 });
|
|
15710
15710
|
_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)}>`);
|
|
@@ -15713,7 +15713,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15713
15713
|
_if(() => {
|
|
15714
15714
|
if (branchesFor === repo.fullName) {
|
|
15715
15715
|
const $scope10_id = _scope_id();
|
|
15716
|
-
_html(`<div${_attr_class("
|
|
15716
|
+
_html(`<div${_attr_class("_fe")}>`);
|
|
15717
15717
|
const $childScope2 = _peek_scope_id();
|
|
15718
15718
|
branch_pick_default({
|
|
15719
15719
|
repo: repo.fullName,
|
|
@@ -15764,7 +15764,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15764
15764
|
action: attrTag({ content: _content("t21", () => {
|
|
15765
15765
|
_scope_reason();
|
|
15766
15766
|
const $scope2_id = _scope_id();
|
|
15767
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15767
|
+
_html(`<button${_attr_class([iconBtnRow, "_fa"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
15768
15768
|
_set_serialize_reason(1);
|
|
15769
15769
|
const $childScope3 = _peek_scope_id();
|
|
15770
15770
|
icon_refresh_default({
|
|
@@ -15785,10 +15785,10 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15785
15785
|
_if(() => {
|
|
15786
15786
|
if (busy && steps.length) {
|
|
15787
15787
|
const $scope11_id = _scope_id();
|
|
15788
|
-
_html(`<ul${_attr_class("
|
|
15788
|
+
_html(`<ul${_attr_class("_fk")}>`);
|
|
15789
15789
|
_for_of(steps, (step, i) => {
|
|
15790
15790
|
const $scope12_id = _scope_id();
|
|
15791
|
-
_html(`<li${_attr_class(["
|
|
15791
|
+
_html(`<li${_attr_class(["_fq", { ["_fl"]: i === steps.length - 1 }])}>`);
|
|
15792
15792
|
_if(() => {
|
|
15793
15793
|
if (i === steps.length - 1) {
|
|
15794
15794
|
const $scope17_id = _scope_id();
|
|
@@ -15797,7 +15797,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15797
15797
|
return 0;
|
|
15798
15798
|
} else {
|
|
15799
15799
|
const $scope18_id = _scope_id();
|
|
15800
|
-
_html(`<span${_attr_class("
|
|
15800
|
+
_html(`<span${_attr_class("_fm")}>`);
|
|
15801
15801
|
icon_check_default({ size: 14 });
|
|
15802
15802
|
_html("</span>");
|
|
15803
15803
|
writeScope($scope18_id, {});
|
|
@@ -15811,15 +15811,15 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
15811
15811
|
return 0;
|
|
15812
15812
|
}
|
|
15813
15813
|
}, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
15814
|
-
_html(`<div${_attr_class("
|
|
15814
|
+
_html(`<div${_attr_class("_e8")}><button type=button${_attr_class([
|
|
15815
15815
|
btnLg,
|
|
15816
15816
|
"_r",
|
|
15817
|
-
"
|
|
15817
|
+
"_e9"
|
|
15818
15818
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
|
|
15819
15819
|
_if(() => {
|
|
15820
15820
|
if (archived$1.length) {
|
|
15821
15821
|
const $scope6_id = _scope_id();
|
|
15822
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
15822
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_fb")}><h2${_attr_class("_ct")}>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)}>`);
|
|
15823
15823
|
_for_of(archived$1, (ws) => {
|
|
15824
15824
|
const $scope7_id = _scope_id();
|
|
15825
15825
|
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_cl")}><span${_attr_class("_cm")}>${_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)}>`);
|
|
@@ -15938,19 +15938,19 @@ var term_find_default = _template("E", (input) => {
|
|
|
15938
15938
|
const canStep = hasQuery && open;
|
|
15939
15939
|
const keybar = input.placement === "keybar";
|
|
15940
15940
|
_html(`<div${_attr_class([
|
|
15941
|
-
"
|
|
15942
|
-
keybar ? "
|
|
15943
|
-
!open && "
|
|
15944
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
15941
|
+
"_el",
|
|
15942
|
+
keybar ? "_en" : "_em",
|
|
15943
|
+
!open && "_ep"
|
|
15944
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_eg", keybar ? "_eo" : "_ei"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
15945
15945
|
if (!open) return;
|
|
15946
15946
|
query = v;
|
|
15947
15947
|
live.query = v;
|
|
15948
15948
|
run(0);
|
|
15949
|
-
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
15949
|
+
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "_eq"])} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in terminal" aria-label="Find in terminal">${_el_resume($scope0_id, "c")}<button type=button${_attr_class([findIconBtn, keybar && "_er"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
15950
15950
|
icon_arrow_up_default({ size: 14 });
|
|
15951
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
15951
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_er"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
15952
15952
|
icon_arrow_down_default({ size: 14 });
|
|
15953
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
15953
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_er"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
15954
15954
|
icon_xmark_default({ size: 14 });
|
|
15955
15955
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
15956
15956
|
const $return = focusInput;
|
|
@@ -16101,7 +16101,7 @@ var term_default = _template("F", (input) => {
|
|
|
16101
16101
|
}
|
|
16102
16102
|
}, "F9", $scope0_id);
|
|
16103
16103
|
input.keys;
|
|
16104
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
16104
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eX")}><div${_attr_class("_eY")}></div>${_el_resume($scope0_id, "b")}`);
|
|
16105
16105
|
_if(() => {
|
|
16106
16106
|
if (findOpen) {
|
|
16107
16107
|
const $scope4_id = _scope_id();
|
|
@@ -16128,7 +16128,7 @@ var term_default = _template("F", (input) => {
|
|
|
16128
16128
|
_if(() => {
|
|
16129
16129
|
if (uploading) {
|
|
16130
16130
|
const $scope5_id = _scope_id();
|
|
16131
|
-
_html(`<div${_attr_class("
|
|
16131
|
+
_html(`<div${_attr_class("_e4")}>uploading…</div>`);
|
|
16132
16132
|
writeScope($scope5_id, {});
|
|
16133
16133
|
return 0;
|
|
16134
16134
|
}
|
|
@@ -16136,7 +16136,7 @@ var term_default = _template("F", (input) => {
|
|
|
16136
16136
|
_if(() => {
|
|
16137
16137
|
if (copiedFlash) {
|
|
16138
16138
|
const $scope6_id = _scope_id();
|
|
16139
|
-
_html(`<div${_attr_class("
|
|
16139
|
+
_html(`<div${_attr_class("_e3")}>Copied</div>`);
|
|
16140
16140
|
writeScope($scope6_id, {});
|
|
16141
16141
|
return 0;
|
|
16142
16142
|
}
|
|
@@ -16145,7 +16145,7 @@ var term_default = _template("F", (input) => {
|
|
|
16145
16145
|
_if(() => {
|
|
16146
16146
|
if (trapOpen) {
|
|
16147
16147
|
const $scope3_id = _scope_id();
|
|
16148
|
-
_html(`<div${_attr_class("
|
|
16148
|
+
_html(`<div${_attr_class("_e5")}><div${_attr_class("_e6")}><p${_attr_class("_e7")}>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")}`);
|
|
16149
16149
|
_script($scope3_id, "F16");
|
|
16150
16150
|
_script($scope3_id, "F17");
|
|
16151
16151
|
writeScope($scope3_id, {});
|
|
@@ -16744,8 +16744,8 @@ _template("tb", (input) => {
|
|
|
16744
16744
|
});
|
|
16745
16745
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
16746
16746
|
});
|
|
16747
|
-
var sessOpen = "
|
|
16748
|
-
var sessRename = "
|
|
16747
|
+
var sessOpen = "_ew _I";
|
|
16748
|
+
var sessRename = "_eA _J";
|
|
16749
16749
|
//#endregion
|
|
16750
16750
|
//#region src/tags/key-bar-sessions.marko
|
|
16751
16751
|
var usageFor;
|
|
@@ -16776,7 +16776,7 @@ _template("p", (input) => {
|
|
|
16776
16776
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
16777
16777
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
16778
16778
|
}, "p2", $scope0_id);
|
|
16779
|
-
_html(`<button${_attr_class([kbtn, "
|
|
16779
|
+
_html(`<button${_attr_class([kbtn, "_es"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
16780
16780
|
_set_serialize_reason({
|
|
16781
16781
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
16782
16782
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -16790,12 +16790,12 @@ _template("p", (input) => {
|
|
|
16790
16790
|
"_A",
|
|
16791
16791
|
"_bc",
|
|
16792
16792
|
phase[sessionPhase(current$2?.state)]
|
|
16793
|
-
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "
|
|
16793
|
+
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "_et"])}>`);
|
|
16794
16794
|
_for_of(input.sessions, (s) => {
|
|
16795
16795
|
const $scope1_id = _scope_id();
|
|
16796
16796
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
16797
16797
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
16798
|
-
_html(`<div${_attr_class(["
|
|
16798
|
+
_html(`<div${_attr_class(["_ev", { ["_eu"]: s.id === input.sessionId }])}>`);
|
|
16799
16799
|
_if(() => {
|
|
16800
16800
|
if (renamingId === s.id) {
|
|
16801
16801
|
const $scope5_id = _scope_id();
|
|
@@ -16827,7 +16827,7 @@ _template("p", (input) => {
|
|
|
16827
16827
|
agent: activeAgent(s),
|
|
16828
16828
|
size: 14
|
|
16829
16829
|
});
|
|
16830
|
-
_html(`<span${_attr_class("
|
|
16830
|
+
_html(`<span${_attr_class("_ex")}><span${_attr_class("_ez")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
16831
16831
|
_if(() => {
|
|
16832
16832
|
if (s.id === input.sessionId) {
|
|
16833
16833
|
const $scope7_id = _scope_id();
|
|
@@ -16839,7 +16839,7 @@ _template("p", (input) => {
|
|
|
16839
16839
|
const $childScope4 = _peek_scope_id();
|
|
16840
16840
|
usage_pcts_default({
|
|
16841
16841
|
agent: plan,
|
|
16842
|
-
class: "
|
|
16842
|
+
class: "_ey"
|
|
16843
16843
|
});
|
|
16844
16844
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
16845
16845
|
return 0;
|
|
@@ -16856,7 +16856,7 @@ _template("p", (input) => {
|
|
|
16856
16856
|
_if(() => {
|
|
16857
16857
|
if (input.onRenameSession) {
|
|
16858
16858
|
const $scope6_id = _scope_id();
|
|
16859
|
-
_html(`<button${_attr_class(["
|
|
16859
|
+
_html(`<button${_attr_class(["_eB", "_eC"])} title="Rename session">`);
|
|
16860
16860
|
icon_edit_default({ size: 12 });
|
|
16861
16861
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
16862
16862
|
_script($scope6_id, "p4");
|
|
@@ -16868,7 +16868,7 @@ _template("p", (input) => {
|
|
|
16868
16868
|
if (input.onCloseSession) {
|
|
16869
16869
|
const $scope3_id = _scope_id();
|
|
16870
16870
|
_html(`<button${_attr_class([
|
|
16871
|
-
"
|
|
16871
|
+
"_eB",
|
|
16872
16872
|
"_8",
|
|
16873
16873
|
{ ["_s"]: armedClose === s.id }
|
|
16874
16874
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -16895,7 +16895,7 @@ _template("p", (input) => {
|
|
|
16895
16895
|
k: $si__input_sessions && $for_content__s_id__closures
|
|
16896
16896
|
});
|
|
16897
16897
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
16898
|
-
_html(`<div${_attr_class("
|
|
16898
|
+
_html(`<div${_attr_class("_eD")}><span${_attr_class("_eE")}>New session</span><div${_attr_class("_eF")}>`);
|
|
16899
16899
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
16900
16900
|
const $scope4_id = _scope_id();
|
|
16901
16901
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -25902,4 +25902,4 @@ server.listen(port, () => {
|
|
|
25902
25902
|
//#endregion
|
|
25903
25903
|
export {};
|
|
25904
25904
|
|
|
25905
|
-
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-
|
|
25905
|
+
;var __MARKO_MANIFEST__={"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-DyrVoVeZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DyrVoVeZ.css\"",">"],"defer":[2,"/assets/w._-qqqf-1EI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-qqqf-1EI.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/_BpIalLUl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpIalLUl.js\"",">",2,"modulepreload#/assets/__CI6owKB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/__CI6owKB.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-DyrVoVeZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DyrVoVeZ.css\"",">"],"defer":[2,"/assets/w._-Bmrox8Ci.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Bmrox8Ci.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/_BpIalLUl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpIalLUl.js\"",">",2,"modulepreload#/assets/__CI6owKB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/__CI6owKB.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-DyrVoVeZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DyrVoVeZ.css\"",">"],"defer":[2,"/assets/new-qqqf-1EI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-qqqf-1EI.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/_BpIalLUl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpIalLUl.js\"",">",2,"modulepreload#/assets/__CI6owKB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/__CI6owKB.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-DyrVoVeZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DyrVoVeZ.css\"",">"],"defer":[2,"/assets/w-qqqf-1EI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-qqqf-1EI.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/_BpIalLUl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpIalLUl.js\"",">",2,"modulepreload#/assets/__CI6owKB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/__CI6owKB.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">",2,"stylesheet#/assets/app-page-DyrVoVeZ.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-DyrVoVeZ.css\"",">"],"defer":[2,"/assets/settings-qqqf-1EI.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-qqqf-1EI.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/_BpIalLUl.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BpIalLUl.js\"",">",2,"modulepreload#/assets/__CI6owKB.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/__CI6owKB.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-DKJzuUb0.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-DKJzuUb0.css\"",">",2,"stylesheet#/assets/icon-arrow-down-Bh8nsodJ.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-Bh8nsodJ.css\"",">"],"defer":[2,"/assets/diff-view-DH-5ACi2.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-DH-5ACi2.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|