@dylanpiercey/work 0.0.142 → 0.0.144
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_BF-bl9wz.js +2 -0
- package/dist/{_CgMVRC4h.js → _RdvbSrnZ.js} +16 -3
- package/dist/index.mjs +890 -848
- package/dist/public/assets/_4Y6ekdGb.js +1 -0
- package/dist/public/assets/_BFg3_nle.js +1 -0
- package/dist/public/assets/_BPRKlpMz.js +1 -0
- package/dist/public/assets/_Br7eWB7m.js +1 -0
- package/dist/public/assets/_Bwzp4RLI.js +1 -0
- package/dist/public/assets/_C10kGcyi.js +1 -0
- package/dist/public/assets/_C5FNNYI5.js +1 -0
- package/dist/public/assets/_C7j-vS2e.js +1 -0
- package/dist/public/assets/_C7yluL0H.js +1 -0
- package/dist/public/assets/_CXkshpex.js +1 -0
- package/dist/public/assets/_CZBQcNr7.js +1 -0
- package/dist/public/assets/{_KxAphaRA.js → _D-QDYHNQ.js} +4 -4
- package/dist/public/assets/_D-QDYHNQ.js.br +0 -0
- package/dist/public/assets/_D0EwNm4n.js +1 -0
- package/dist/public/assets/_D0ybiLEI.js +1 -0
- package/dist/public/assets/_D2pMsdz_.js +1 -0
- package/dist/public/assets/_D5_un4BC.js +1 -0
- package/dist/public/assets/_DDhFDkll.js +1 -0
- package/dist/public/assets/_DdQplHjm.js +1 -0
- package/dist/public/assets/{_Cs7p4yDS.js → _DiUHGn7z.js} +1 -1
- package/dist/public/assets/_DiUHGn7z.js.br +0 -0
- package/dist/public/assets/{_BKISLRf4.js → _HC3RV2wu.js} +20 -20
- package/dist/public/assets/_HC3RV2wu.js.br +0 -0
- package/dist/public/assets/_OON0z5H2.js +1 -0
- package/dist/public/assets/_rB9TOam3.js +1 -0
- package/dist/public/assets/app-page-CIdgYOQ5.css +1 -0
- package/dist/public/assets/app-page-CIdgYOQ5.css.br +0 -0
- package/dist/public/assets/diff-view-0QHeqmk-.js +2 -0
- package/dist/public/assets/diff-view-CxLi8fFp.css +1 -0
- package/dist/public/assets/diff-view-CxLi8fFp.css.br +0 -0
- package/dist/public/assets/{icon-arrow-down-BNBeL8Ga.css → icon-arrow-down-x-DhkLau.css} +1 -1
- package/dist/public/assets/icon-arrow-down-x-DhkLau.css.br +0 -0
- package/dist/public/assets/new-KAGXbHEQ.js +1 -0
- package/dist/public/assets/settings-KAGXbHEQ.js +1 -0
- package/dist/public/assets/w-KAGXbHEQ.js +1 -0
- package/dist/public/assets/w._-KAGXbHEQ.js +1 -0
- package/dist/public/assets/w._-Mq7oFVgO.js +1 -0
- package/lib/setup/doctor.d.mts +4 -0
- package/lib/setup/doctor.mjs +13 -1
- package/package.json +1 -1
- package/dist/_CwAYWKgO.js +0 -2
- package/dist/public/assets/_8hG8C_PZ.js +0 -1
- package/dist/public/assets/_B-zFviqb.js +0 -1
- package/dist/public/assets/_BDvd4EZB.js +0 -1
- package/dist/public/assets/_BI8c6j8A.js +0 -1
- package/dist/public/assets/_BJdnnx2G.js +0 -1
- package/dist/public/assets/_BKISLRf4.js.br +0 -0
- package/dist/public/assets/_BpvmtZ-d.js +0 -1
- package/dist/public/assets/_C4a3hSl8.js +0 -1
- package/dist/public/assets/_C4z7ZpSn.js +0 -1
- package/dist/public/assets/_C9MkQEgN.js +0 -1
- package/dist/public/assets/_C9xSVjMf.js +0 -1
- package/dist/public/assets/_CZQPAwyq.js +0 -1
- package/dist/public/assets/_ChnoRUJ0.js +0 -1
- package/dist/public/assets/_CnuE-eGh.js +0 -1
- package/dist/public/assets/_Cs7p4yDS.js.br +0 -0
- package/dist/public/assets/_D6XehGQQ.js +0 -1
- package/dist/public/assets/_DCj2SQDi.js +0 -1
- package/dist/public/assets/_DWyAxr1i.js +0 -1
- package/dist/public/assets/_D_uw8N56.js +0 -1
- package/dist/public/assets/_KxAphaRA.js.br +0 -0
- package/dist/public/assets/_NJCyKDdt.js +0 -1
- package/dist/public/assets/_rXH_a0uy.js +0 -1
- package/dist/public/assets/app-page-ykWloqi5.css +0 -1
- package/dist/public/assets/app-page-ykWloqi5.css.br +0 -0
- package/dist/public/assets/diff-view-CNup0zAN.css +0 -1
- package/dist/public/assets/diff-view-CNup0zAN.css.br +0 -0
- package/dist/public/assets/diff-view-CWrMPKfC.js +0 -2
- package/dist/public/assets/icon-arrow-down-BNBeL8Ga.css.br +0 -0
- package/dist/public/assets/new-Cm1HuQpH.js +0 -1
- package/dist/public/assets/settings-Cm1HuQpH.js +0 -1
- package/dist/public/assets/w-Cm1HuQpH.js +0 -1
- package/dist/public/assets/w._-BR_j-SQU.js +0 -1
- package/dist/public/assets/w._-Cm1HuQpH.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 setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as
|
|
2
|
+
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as gh, a as ensureTmuxServer, at as setupPath, b as readHookPayload, bt as tmux, c as killWorkspaceSessions, ct as TOOLS, d as newSessionArgs, dt as toolById, et as discoverAgents, ft as all, g as sessionStates, gt as TMUX_SOCKET, h as sendToSession, ht as workspacePath, i as disposeSessions, it as miseVersions, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as agentById, m as renameSession, mt as get$1, n as clearTmuxStarted, nt as ghKnownHosts, o as getSession, ot as which, p as panePids, pt as db, q as disabledAgents, r as createSession, rt as miseInstalls, s as killSession, st as DEFAULT_GITHUB_HOST, t as cleanEnv, tt as doctor, u as markTmuxStarted, ut as agentLabel$1, v as tmuxWasStarted, vt as git, w as agentFamily, x as reportsWorking, xt as config, y as AGENTS, yt as run, z as pushPublicKey } from "./_RdvbSrnZ.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import http, { createServer } from "node:http";
|
|
5
5
|
import path from "node:path";
|
|
@@ -3975,20 +3975,24 @@ async function logoutGithub(host, opts = {}) {
|
|
|
3975
3975
|
/** Probing spawns gh per host and mise once; a minute of staleness is fine
|
|
3976
3976
|
* for a page load, and every mutation below refreshes explicitly. */
|
|
3977
3977
|
var doctorCache = swr(6e4, (_key, _refresh) => doctor({ hosts: configuredHosts() }));
|
|
3978
|
-
/** `mise outdated --bump` (latest release even past an exact pin) hits the network per tool, so it lives in its own cache
|
|
3979
|
-
* and is only awaited by an explicit refresh — a plain snapshot merges in
|
|
3980
|
-
* whatever is already known and warms it in the background. */
|
|
3981
3978
|
var outdated = swr(6e5, async (_key) => {
|
|
3982
3979
|
if (!which("mise")) return {};
|
|
3983
|
-
const
|
|
3980
|
+
const probe = (bump) => runStreaming("mise", [
|
|
3984
3981
|
"outdated",
|
|
3985
|
-
"--bump",
|
|
3982
|
+
...bump ? ["--bump"] : [],
|
|
3986
3983
|
"--json"
|
|
3987
|
-
], { timeout: 9e4 }).
|
|
3984
|
+
], { timeout: 9e4 }).then((lines) => {
|
|
3985
|
+
const json = lines.join("\n").trim() || "{}";
|
|
3986
|
+
return JSON.parse(json);
|
|
3987
|
+
}).catch(() => ({}));
|
|
3988
|
+
const [pinned, bumped] = await Promise.all([probe(false), probe(true)]);
|
|
3988
3989
|
const out = {};
|
|
3989
|
-
|
|
3990
|
-
|
|
3991
|
-
|
|
3990
|
+
for (const [name, info] of Object.entries(bumped)) {
|
|
3991
|
+
if (!info?.latest) continue;
|
|
3992
|
+
out[name] = { newest: info.latest };
|
|
3993
|
+
if (/^\d/.test(info.requested || "")) out[name].latest = info.latest;
|
|
3994
|
+
}
|
|
3995
|
+
for (const [name, info] of Object.entries(pinned)) if (info?.latest) (out[name] ||= {}).latest = info.latest;
|
|
3992
3996
|
return out;
|
|
3993
3997
|
});
|
|
3994
3998
|
/**
|
|
@@ -3997,18 +4001,27 @@ var outdated = swr(6e5, async (_key) => {
|
|
|
3997
4001
|
* catalog. `refresh` re-probes and awaits `mise outdated`.
|
|
3998
4002
|
*/
|
|
3999
4003
|
async function getSetup(refresh = false) {
|
|
4000
|
-
const [d,
|
|
4004
|
+
const [d, installs] = await Promise.all([doctorCache("doctor", refresh), miseInstalls()]);
|
|
4001
4005
|
if (refresh) await outdated("all", true);
|
|
4002
4006
|
else outdated("all").catch(() => {});
|
|
4003
|
-
const
|
|
4007
|
+
const known = outdated.get("all") || {};
|
|
4008
|
+
const versions = (name) => {
|
|
4009
|
+
if (!name) return {};
|
|
4010
|
+
const o = known[name] || {};
|
|
4011
|
+
return {
|
|
4012
|
+
pin: installs?.[name]?.pin,
|
|
4013
|
+
latest: o.latest,
|
|
4014
|
+
newest: o.newest !== o.latest ? o.newest : void 0
|
|
4015
|
+
};
|
|
4016
|
+
};
|
|
4004
4017
|
const tools = d.tools.map((t) => ({
|
|
4005
4018
|
...t,
|
|
4006
|
-
|
|
4019
|
+
...versions(t.mise),
|
|
4007
4020
|
recommended: true
|
|
4008
4021
|
}));
|
|
4009
|
-
const
|
|
4010
|
-
for (const [name, version] of Object.entries(
|
|
4011
|
-
if (
|
|
4022
|
+
const catalog = new Set(TOOLS.map((t) => t.mise).filter(Boolean));
|
|
4023
|
+
for (const [name, { version }] of Object.entries(installs || {})) {
|
|
4024
|
+
if (catalog.has(name)) continue;
|
|
4012
4025
|
tools.push({
|
|
4013
4026
|
id: name,
|
|
4014
4027
|
label: name,
|
|
@@ -4016,7 +4029,7 @@ async function getSetup(refresh = false) {
|
|
|
4016
4029
|
installed: true,
|
|
4017
4030
|
installable: true,
|
|
4018
4031
|
version,
|
|
4019
|
-
|
|
4032
|
+
...versions(name),
|
|
4020
4033
|
mise: name,
|
|
4021
4034
|
recommended: false
|
|
4022
4035
|
});
|
|
@@ -6919,14 +6932,14 @@ function repoLabel(fullName) {
|
|
|
6919
6932
|
return fullName;
|
|
6920
6933
|
}
|
|
6921
6934
|
var toastKind = {
|
|
6922
|
-
error: "
|
|
6923
|
-
warn: "
|
|
6924
|
-
info: "
|
|
6935
|
+
error: "_bi",
|
|
6936
|
+
warn: "_bj",
|
|
6937
|
+
info: "_bk"
|
|
6925
6938
|
};
|
|
6926
6939
|
var toastTitle = {
|
|
6927
|
-
error: "
|
|
6928
|
-
warn: "
|
|
6929
|
-
info: "
|
|
6940
|
+
error: "_bl",
|
|
6941
|
+
warn: "_bm",
|
|
6942
|
+
info: "_bn"
|
|
6930
6943
|
};
|
|
6931
6944
|
//#endregion
|
|
6932
6945
|
//#region src/styles/tokens.css.ts
|
|
@@ -6972,18 +6985,18 @@ var toast_default = _template("F", (input) => {
|
|
|
6972
6985
|
const kind = inputKind || "error";
|
|
6973
6986
|
const placement = inputPlacement || "float";
|
|
6974
6987
|
const placementClass = {
|
|
6975
|
-
float: "
|
|
6976
|
-
inline: "
|
|
6988
|
+
float: "_bg",
|
|
6989
|
+
inline: "_bh"
|
|
6977
6990
|
}[placement];
|
|
6978
6991
|
_html(`<div${_attr_class([
|
|
6979
|
-
"
|
|
6992
|
+
"_bf",
|
|
6980
6993
|
toastKind[kind],
|
|
6981
6994
|
placementClass,
|
|
6982
6995
|
inputClass
|
|
6983
6996
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
6984
6997
|
class: 1,
|
|
6985
6998
|
role: 1
|
|
6986
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
6999
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_bo")}>`);
|
|
6987
7000
|
_if(() => {
|
|
6988
7001
|
if (title) {
|
|
6989
7002
|
const $scope1_id = _scope_id();
|
|
@@ -6995,7 +7008,7 @@ var toast_default = _template("F", (input) => {
|
|
|
6995
7008
|
_if(() => {
|
|
6996
7009
|
if (content) {
|
|
6997
7010
|
const $scope2_id = _scope_id();
|
|
6998
|
-
_html(`<div${_attr_class("
|
|
7011
|
+
_html(`<div${_attr_class("_bp")}>`);
|
|
6999
7012
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
7000
7013
|
_html("</div>");
|
|
7001
7014
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7006,7 +7019,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7006
7019
|
_if(() => {
|
|
7007
7020
|
if (action || onDismiss) {
|
|
7008
7021
|
const $scope3_id = _scope_id();
|
|
7009
|
-
_html(`<div${_attr_class(["
|
|
7022
|
+
_html(`<div${_attr_class(["_bq", action && "_br"])}>`);
|
|
7010
7023
|
_if(() => {
|
|
7011
7024
|
if (action) {
|
|
7012
7025
|
const $scope4_id = _scope_id();
|
|
@@ -7018,7 +7031,7 @@ var toast_default = _template("F", (input) => {
|
|
|
7018
7031
|
_if(() => {
|
|
7019
7032
|
if (onDismiss) {
|
|
7020
7033
|
const $scope5_id = _scope_id();
|
|
7021
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7034
|
+
_html(`<button${_attr_class([iconBtnRow, "_bs"])} type=button title=Dismiss aria-label=Dismiss>`);
|
|
7022
7035
|
icon_xmark_default({ size: 14 });
|
|
7023
7036
|
_html(`</button>${_el_resume($scope5_id, "a")}`);
|
|
7024
7037
|
_script($scope5_id, "F0");
|
|
@@ -7231,18 +7244,18 @@ function applyInstance(inst) {
|
|
|
7231
7244
|
}
|
|
7232
7245
|
//#endregion
|
|
7233
7246
|
//#region src/tags/settings-page.css.ts
|
|
7234
|
-
var content$2 = "
|
|
7235
|
-
var agentGrid = "
|
|
7236
|
-
var toolGrid = "
|
|
7237
|
-
var toolRow = "
|
|
7238
|
-
var themeSeg = "
|
|
7239
|
-
var swatches = "
|
|
7240
|
-
var checkList = "
|
|
7241
|
-
var flatCardRow = "
|
|
7242
|
-
var pop$1 = "
|
|
7243
|
-
var spinner = "
|
|
7244
|
-
var busy = "
|
|
7245
|
-
var pop = "
|
|
7247
|
+
var content$2 = "_cA _bx _by";
|
|
7248
|
+
var agentGrid = "_cD _bI";
|
|
7249
|
+
var toolGrid = "_cN _cx";
|
|
7250
|
+
var toolRow = "_cO _cy";
|
|
7251
|
+
var themeSeg = "_db _bc";
|
|
7252
|
+
var swatches = "_dj _bc";
|
|
7253
|
+
var checkList = "_dA _bI";
|
|
7254
|
+
var flatCardRow = "_cz _cy";
|
|
7255
|
+
var pop$1 = "_dJ _8";
|
|
7256
|
+
var spinner = "_dM _0 _E";
|
|
7257
|
+
var busy = "_dQ _dP";
|
|
7258
|
+
var pop = "_dS _8";
|
|
7246
7259
|
var sectionCount = "_bH _L _M";
|
|
7247
7260
|
var row = "_bS _bK";
|
|
7248
7261
|
var iconBtn$1 = "_3 _j";
|
|
@@ -7285,18 +7298,18 @@ var icon_back_default = _template("O", (input) => {
|
|
|
7285
7298
|
var page_head_default = _template("t", (input) => {
|
|
7286
7299
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
7287
7300
|
const $scope0_id = _scope_id();
|
|
7288
|
-
_html(`<header${_attr_class("
|
|
7301
|
+
_html(`<header${_attr_class("_bz")}>`);
|
|
7289
7302
|
_if(() => {
|
|
7290
7303
|
if (input.backHref) {
|
|
7291
7304
|
const $scope1_id = _scope_id();
|
|
7292
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7305
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_ea"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7293
7306
|
icon_back_default({ size: 16 });
|
|
7294
7307
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7295
7308
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7296
7309
|
return 0;
|
|
7297
7310
|
} else if (input.onBack) {
|
|
7298
7311
|
const $scope2_id = _scope_id();
|
|
7299
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7312
|
+
_html(`<button${_attr_class([iconBtnRow, "_ea"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7300
7313
|
icon_back_default({ size: 16 });
|
|
7301
7314
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7302
7315
|
_script($scope2_id, "t0");
|
|
@@ -7304,11 +7317,11 @@ var page_head_default = _template("t", (input) => {
|
|
|
7304
7317
|
return 1;
|
|
7305
7318
|
}
|
|
7306
7319
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
7307
|
-
_html(`<div${_attr_class("
|
|
7320
|
+
_html(`<div${_attr_class("_bB")}><h1${_attr("id", input.titleId)}${_attr_class("_bA")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7308
7321
|
_if(() => {
|
|
7309
7322
|
if (input.meta) {
|
|
7310
7323
|
const $scope3_id = _scope_id();
|
|
7311
|
-
_html(`<p${_attr_class("
|
|
7324
|
+
_html(`<p${_attr_class("_bC")}>`);
|
|
7312
7325
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7313
7326
|
_html("</p>");
|
|
7314
7327
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7319,7 +7332,7 @@ var page_head_default = _template("t", (input) => {
|
|
|
7319
7332
|
_if(() => {
|
|
7320
7333
|
if (input.actions) {
|
|
7321
7334
|
const $scope4_id = _scope_id();
|
|
7322
|
-
_html(`<div${_attr_class("
|
|
7335
|
+
_html(`<div${_attr_class("_bD")}>`);
|
|
7323
7336
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7324
7337
|
_html("</div>");
|
|
7325
7338
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7387,7 +7400,7 @@ var icon_agent_default = _template("J", (input) => {
|
|
|
7387
7400
|
n: $badge__closures
|
|
7388
7401
|
});
|
|
7389
7402
|
});
|
|
7390
|
-
var usageNote = "
|
|
7403
|
+
var usageNote = "_eW _V";
|
|
7391
7404
|
//#endregion
|
|
7392
7405
|
//#region src/tags/icons/icon-warning.marko
|
|
7393
7406
|
var icon_warning_default = _template("ob", (input) => {
|
|
@@ -7417,11 +7430,11 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7417
7430
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
7418
7431
|
const $scope0_id = _scope_id();
|
|
7419
7432
|
const agent = input.agent;
|
|
7420
|
-
_html(`<div${_attr_class(["
|
|
7433
|
+
_html(`<div${_attr_class(["_eQ", { ["_eR"]: input.hideName }])}><div${_attr_class("_eS")}>`);
|
|
7421
7434
|
_if(() => {
|
|
7422
7435
|
if (!input.hideName) {
|
|
7423
7436
|
const $scope1_id = _scope_id();
|
|
7424
|
-
_html(`<strong${_attr_class("
|
|
7437
|
+
_html(`<strong${_attr_class("_fa")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7425
7438
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7426
7439
|
return 0;
|
|
7427
7440
|
}
|
|
@@ -7429,7 +7442,7 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7429
7442
|
_if(() => {
|
|
7430
7443
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7431
7444
|
const $scope2_id = _scope_id();
|
|
7432
|
-
_html(`<span${_attr_class("
|
|
7445
|
+
_html(`<span${_attr_class("_eT")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7433
7446
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7434
7447
|
return 0;
|
|
7435
7448
|
}
|
|
@@ -7437,21 +7450,21 @@ var usage_meters_default = _template("G", (input) => {
|
|
|
7437
7450
|
_if(() => {
|
|
7438
7451
|
if (agent.stale_seconds != null) {
|
|
7439
7452
|
const $scope3_id = _scope_id();
|
|
7440
|
-
_html(`<span${_attr_class("
|
|
7453
|
+
_html(`<span${_attr_class("_eU")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7441
7454
|
icon_warning_default({ size: 12 });
|
|
7442
7455
|
_html(` ${_text_resume($scope3_id, "c", duration(agent.stale_seconds * 1e3), $sg__input_agent * 2)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
7443
7456
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7444
7457
|
return 0;
|
|
7445
7458
|
}
|
|
7446
7459
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7447
|
-
_html(`</div><div${_attr_class(["
|
|
7460
|
+
_html(`</div><div${_attr_class(["_eV", { ["_fb"]: agent.stale_seconds != null }])}>`);
|
|
7448
7461
|
_for_of(agent.windows || [], (win) => {
|
|
7449
7462
|
const $scope4_id = _scope_id();
|
|
7450
7463
|
const pct = pctText(win.used_percent);
|
|
7451
7464
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7452
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7453
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7454
|
-
_html(`<div${_attr_class("
|
|
7465
|
+
const fillClass = win.used_percent >= 90 ? "_e4" : win.used_percent >= 70 ? "_e3" : win.used_percent >= 40 ? "_e2" : "_e1";
|
|
7466
|
+
const pctClass = win.used_percent >= 90 ? "_e9" : win.used_percent >= 70 ? "_e8" : win.used_percent >= 40 ? "_e7" : "_e6";
|
|
7467
|
+
_html(`<div${_attr_class("_eX")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eY")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_eZ")}><span${_attr_class(["_e0", 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(["_e5", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e_")}>`);
|
|
7455
7468
|
_if(() => {
|
|
7456
7469
|
if (label) {
|
|
7457
7470
|
const $scope6_id = _scope_id();
|
|
@@ -7568,14 +7581,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7568
7581
|
localCode = null;
|
|
7569
7582
|
}
|
|
7570
7583
|
}, "C0", $scope0_id);
|
|
7571
|
-
_html(`<div${_attr_class(["
|
|
7584
|
+
_html(`<div${_attr_class(["_fj", input.class])}>`);
|
|
7572
7585
|
_for_of(input.items, (s) => {
|
|
7573
7586
|
const $scope1_id = _scope_id();
|
|
7574
|
-
_html(`<div${_attr_class("
|
|
7587
|
+
_html(`<div${_attr_class("_fk")}><span${_attr_class("_fm")}><span${_attr_class("_fn")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_fo", "_fp"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7575
7588
|
_if(() => {
|
|
7576
7589
|
if (!busy) {
|
|
7577
7590
|
const $scope2_id = _scope_id();
|
|
7578
|
-
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
7591
|
+
_html(`<button type=button${_attr_class([btnSm, "_p"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_fq"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7579
7592
|
_script($scope2_id, "C1");
|
|
7580
7593
|
writeScope($scope2_id, {});
|
|
7581
7594
|
return 0;
|
|
@@ -7590,13 +7603,13 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7590
7603
|
_if(() => {
|
|
7591
7604
|
if (localBusy && localCode) {
|
|
7592
7605
|
const $scope4_id = _scope_id();
|
|
7593
|
-
_html(`<div${_attr_class(["
|
|
7606
|
+
_html(`<div${_attr_class(["_fk", "_fr"])}><span${_attr_class("_E")}></span> Enter code <strong${_attr_class("_fs")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_ft")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7594
7607
|
_script($scope4_id, "C2");
|
|
7595
7608
|
writeScope($scope4_id, {});
|
|
7596
7609
|
return 0;
|
|
7597
7610
|
} else if (localBusy) {
|
|
7598
7611
|
const $scope6_id = _scope_id();
|
|
7599
|
-
_html(`<div${_attr_class(["
|
|
7612
|
+
_html(`<div${_attr_class(["_fk", "_fr"])}><span${_attr_class("_E")}></span>Starting GitHub re-authorization…</div>`);
|
|
7600
7613
|
writeScope($scope6_id, {});
|
|
7601
7614
|
return 1;
|
|
7602
7615
|
}
|
|
@@ -7604,14 +7617,14 @@ var sso_auth_default = _template("C", (input) => {
|
|
|
7604
7617
|
_if(() => {
|
|
7605
7618
|
if (localError) {
|
|
7606
7619
|
const $scope5_id = _scope_id();
|
|
7607
|
-
_html(`<p${_attr_class(["
|
|
7620
|
+
_html(`<p${_attr_class(["_fk", "_fu"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7608
7621
|
writeScope($scope5_id, {});
|
|
7609
7622
|
return 0;
|
|
7610
7623
|
}
|
|
7611
7624
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7612
7625
|
_for_of(skipped, (s) => {
|
|
7613
7626
|
const $scope3_id = _scope_id();
|
|
7614
|
-
_html(`<div${_attr_class(["
|
|
7627
|
+
_html(`<div${_attr_class(["_fk", "_fl"])}><span${_attr_class("_fm")}><span${_attr_class("_fn")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_fo")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_fq"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7615
7628
|
_script($scope3_id, "C3");
|
|
7616
7629
|
writeScope($scope3_id, {
|
|
7617
7630
|
i: s?.org,
|
|
@@ -7679,7 +7692,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7679
7692
|
const $input_tags__closures = /* @__PURE__ */ new Set();
|
|
7680
7693
|
const $input_actions__closures = /* @__PURE__ */ new Set();
|
|
7681
7694
|
const $input_trailing__closures = /* @__PURE__ */ new Set();
|
|
7682
|
-
_html(`<li${_attr_class("
|
|
7695
|
+
_html(`<li${_attr_class("_dO")}>`);
|
|
7683
7696
|
_if(() => {
|
|
7684
7697
|
if (input.busy != null) {
|
|
7685
7698
|
const $scope1_id = _scope_id();
|
|
@@ -7689,11 +7702,11 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7689
7702
|
} else {
|
|
7690
7703
|
const $scope2_id = _scope_id();
|
|
7691
7704
|
const popId = _id();
|
|
7692
|
-
_html(`<button${_attr_class("
|
|
7705
|
+
_html(`<button${_attr_class("_dP")}${_attr("popovertarget", popId)}${_attr("title", `About ${input.name}`)}>${_text_resume($scope2_id, "b", input.name, $sg__input_name)}`);
|
|
7693
7706
|
_if(() => {
|
|
7694
7707
|
if (input.hint) {
|
|
7695
7708
|
const $scope3_id = _scope_id();
|
|
7696
|
-
_html(`<span${_attr_class("
|
|
7709
|
+
_html(`<span${_attr_class("_dR")}>${_text_resume($scope3_id, "b", input.hint, $sg__input_hint)}</span>`);
|
|
7697
7710
|
$si__input_busy__OR__input_hint && _subscribe($si__input_hint && $input_hint__closures, writeScope($scope3_id, { _: _scope_with_id($scope2_id) }));
|
|
7698
7711
|
return 0;
|
|
7699
7712
|
}
|
|
@@ -7741,7 +7754,7 @@ var skill_chip_default = _template("B", (input) => {
|
|
|
7741
7754
|
_if(() => {
|
|
7742
7755
|
if (input.actions) {
|
|
7743
7756
|
const $scope8_id = _scope_id();
|
|
7744
|
-
_html(`<div${_attr_class("
|
|
7757
|
+
_html(`<div${_attr_class("_dT")}>`);
|
|
7745
7758
|
_dynamic_tag($scope8_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7746
7759
|
_html("</div>");
|
|
7747
7760
|
$si__input_busy__OR__input_actions && _subscribe($si__input_actions && $input_actions__closures, writeScope($scope8_id, { _: _scope_with_id($scope2_id) }));
|
|
@@ -7801,7 +7814,7 @@ var icon_arrow_up_default = _template("N", (input) => {
|
|
|
7801
7814
|
});
|
|
7802
7815
|
//#endregion
|
|
7803
7816
|
//#region src/tags/prompt-dialog.css.ts
|
|
7804
|
-
var promptDlg = "
|
|
7817
|
+
var promptDlg = "_fi _dV";
|
|
7805
7818
|
//#endregion
|
|
7806
7819
|
//#region src/tags/dialog-close.marko
|
|
7807
7820
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7825,7 +7838,7 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7825
7838
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
7826
7839
|
const dismissable = input.dismissable !== false;
|
|
7827
7840
|
let open = input.open;
|
|
7828
|
-
_html(`<dialog${_attr_class(["
|
|
7841
|
+
_html(`<dialog${_attr_class(["_dU", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7829
7842
|
...htmlInput,
|
|
7830
7843
|
open: null
|
|
7831
7844
|
}, {
|
|
@@ -7835,20 +7848,20 @@ var modal_view_default = _template("r", (input) => {
|
|
|
7835
7848
|
closedby: 1,
|
|
7836
7849
|
"on-cancel": 1,
|
|
7837
7850
|
"on-close": 1
|
|
7838
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7851
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_dX")}>`);
|
|
7839
7852
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7840
7853
|
_html("</div>");
|
|
7841
7854
|
_if(() => {
|
|
7842
7855
|
if (footer) {
|
|
7843
7856
|
const $scope1_id = _scope_id();
|
|
7844
|
-
_html(`<form method=dialog${_attr_class("
|
|
7857
|
+
_html(`<form method=dialog${_attr_class("_dY")}>`);
|
|
7845
7858
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7846
7859
|
_html("</form>");
|
|
7847
7860
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7848
7861
|
return 0;
|
|
7849
7862
|
} else if (input.openChange) {
|
|
7850
7863
|
const $scope2_id = _scope_id();
|
|
7851
|
-
_html(`<form method=dialog${_attr_class("
|
|
7864
|
+
_html(`<form method=dialog${_attr_class("_dY")}>`);
|
|
7852
7865
|
dialog_close_default({
|
|
7853
7866
|
class: ["_o", "_p"],
|
|
7854
7867
|
content: _content("r0", () => {
|
|
@@ -7932,7 +7945,7 @@ var prompt_dialog_default = _template("u", (input) => {
|
|
|
7932
7945
|
content: _content("u7", () => {
|
|
7933
7946
|
_scope_reason();
|
|
7934
7947
|
const $scope2_id = _scope_id();
|
|
7935
|
-
_html(`<h2${_attr_class("
|
|
7948
|
+
_html(`<h2${_attr_class("_dW")}${_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) => {
|
|
7936
7949
|
value = _new_value;
|
|
7937
7950
|
}, "u0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
7938
7951
|
_script($scope2_id, "u5");
|
|
@@ -8438,14 +8451,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8438
8451
|
}, 250);
|
|
8439
8452
|
}, "x1", $scope0_id);
|
|
8440
8453
|
const outdated = _resume((t) => !!(t.installed && t.latest && t.latest !== t.version), "x32");
|
|
8454
|
+
const aliasPin = _resume((t) => !!t.pin && t.pin !== "latest" && !/^\d/.test(t.pin), "x33");
|
|
8441
8455
|
const tools = setup?.tools || [];
|
|
8442
8456
|
const missingInstallable = tools.filter((t) => t.recommended && !t.installed && t.installable);
|
|
8443
8457
|
const missingCount = tools.filter((t) => t.recommended && !t.installed).length;
|
|
8444
8458
|
const outdatedIds = tools.filter(outdated).map((t) => t.id);
|
|
8445
8459
|
const families = setup?.agents || [];
|
|
8446
8460
|
const instanceIds = new Set(families.flatMap((f) => f.instances.map((i) => i.id)));
|
|
8447
|
-
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "
|
|
8448
|
-
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "
|
|
8461
|
+
const accountsFor = _resume((id) => (usage?.agents || []).filter((u) => u.agent === id), "x34", $scope0_id);
|
|
8462
|
+
const strayAccountsFor = _resume((f) => (usage?.agents || []).filter((u) => !instanceIds.has(u.agent) && familyOf(u.agent, families) === f.id), "x35", $scope0_id);
|
|
8449
8463
|
const otherUsage = (usage?.agents || []).filter((u) => familyOf(u.agent, families) === null);
|
|
8450
8464
|
const titleId = _id();
|
|
8451
8465
|
const agentsId = _id();
|
|
@@ -8453,7 +8467,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8453
8467
|
const githubId = _id();
|
|
8454
8468
|
const backupId = _id();
|
|
8455
8469
|
const machineId = _id();
|
|
8456
|
-
_html(`<div${_attr_class("
|
|
8470
|
+
_html(`<div${_attr_class("_bv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bw")}><div${_attr_class(content$2)}>`);
|
|
8457
8471
|
_set_serialize_reason({
|
|
8458
8472
|
0: _serialize_guard($scope0_reason, 4),
|
|
8459
8473
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8462,10 +8476,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8462
8476
|
6: 1
|
|
8463
8477
|
});
|
|
8464
8478
|
let $meta;
|
|
8465
|
-
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("
|
|
8479
|
+
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("x44", () => {
|
|
8466
8480
|
_scope_reason();
|
|
8467
8481
|
const $scope5_id = _scope_id();
|
|
8468
|
-
_html(`<span${_attr_class("
|
|
8482
|
+
_html(`<span${_attr_class("_cC")}>Not ready</span>. Missing ${_text_resume($scope5_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8469
8483
|
_subscribe($setup_missing__closures, writeScope($scope5_id, { _: _scope_with_id($scope0_id) }));
|
|
8470
8484
|
_resume_branch($scope5_id);
|
|
8471
8485
|
}, $scope0_id) });
|
|
@@ -8474,9 +8488,9 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8474
8488
|
title: "Settings",
|
|
8475
8489
|
titleId,
|
|
8476
8490
|
backHref: input$3.backHref,
|
|
8477
|
-
onBack: input$3.onExit && _resume(() => input$3.onExit?.(), "
|
|
8491
|
+
onBack: input$3.onExit && _resume(() => input$3.onExit?.(), "x36", $scope0_id),
|
|
8478
8492
|
meta: $meta,
|
|
8479
|
-
actions: attrTag({ content: _content("
|
|
8493
|
+
actions: attrTag({ content: _content("x45", () => {
|
|
8480
8494
|
_scope_reason();
|
|
8481
8495
|
const $scope12_id = _scope_id();
|
|
8482
8496
|
_html(`<button${_attr_class(iconBtnRow)} title="Refresh: re-check this machine and agent usage" aria-label="Re-check this machine"${_attr("disabled", refreshing)}>`);
|
|
@@ -8487,7 +8501,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8487
8501
|
class: refreshing && "_D"
|
|
8488
8502
|
});
|
|
8489
8503
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
8490
|
-
_script($scope12_id, "
|
|
8504
|
+
_script($scope12_id, "x43");
|
|
8491
8505
|
_subscribe($refreshing__closures, writeScope($scope12_id, {
|
|
8492
8506
|
_: _scope_with_id($scope0_id),
|
|
8493
8507
|
b: _existing_scope($childScope)
|
|
@@ -8502,8 +8516,8 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8502
8516
|
placement: "inline",
|
|
8503
8517
|
onDismiss: _resume(function() {
|
|
8504
8518
|
error = null;
|
|
8505
|
-
}, "
|
|
8506
|
-
content: _content("
|
|
8519
|
+
}, "x37", $scope10_id),
|
|
8520
|
+
content: _content("x46", () => {
|
|
8507
8521
|
_scope_reason();
|
|
8508
8522
|
const $scope11_id = _scope_id();
|
|
8509
8523
|
_html(_text_resume($scope11_id, "a", error));
|
|
@@ -8518,16 +8532,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8518
8532
|
_if(() => {
|
|
8519
8533
|
if (selfUpdatePending || selfUpdating) {
|
|
8520
8534
|
const $scope45_id = _scope_id();
|
|
8521
|
-
_html(`<div${_attr_class("
|
|
8535
|
+
_html(`<div${_attr_class("_df")} role=status><div${_attr_class("_dg")}>`);
|
|
8522
8536
|
_if(() => {
|
|
8523
8537
|
if (selfUpdating) {
|
|
8524
|
-
const $
|
|
8525
|
-
_html(`<span${_attr_class("
|
|
8526
|
-
writeScope($
|
|
8538
|
+
const $scope79_id = _scope_id();
|
|
8539
|
+
_html(`<span${_attr_class("_dh")}><span${_attr_class("_E")}></span> Updating work…</span><span${_attr_class("_di")}>The app restarts and reloads when it is done.</span>`);
|
|
8540
|
+
writeScope($scope79_id, {});
|
|
8527
8541
|
return 0;
|
|
8528
8542
|
} else {
|
|
8529
8543
|
const $scope46_id = _scope_id();
|
|
8530
|
-
_html(`<span${_attr_class("
|
|
8544
|
+
_html(`<span${_attr_class("_dh")}>Update available</span><span${_attr_class("_di")}>v${_text_resume($scope46_id, "c", self.version, 2)} → v${_text_resume($scope46_id, "d", self.latest, 2)}</span>`);
|
|
8531
8545
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope46_id, {})));
|
|
8532
8546
|
return 1;
|
|
8533
8547
|
}
|
|
@@ -8536,8 +8550,8 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8536
8550
|
if (!selfUpdating) {
|
|
8537
8551
|
const $scope47_id = _scope_id();
|
|
8538
8552
|
_html(`<button${_attr_class(["_o", "_p"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope47_id, "a")}`);
|
|
8539
|
-
_script($scope47_id, "
|
|
8540
|
-
_subscribe($self_latest__closures, writeScope($scope47_id, {
|
|
8553
|
+
_script($scope47_id, "x47");
|
|
8554
|
+
_subscribe($self_latest__closures, writeScope($scope47_id, { Chb: 1 }));
|
|
8541
8555
|
return 0;
|
|
8542
8556
|
}
|
|
8543
8557
|
}, $scope45_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -8546,15 +8560,15 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8546
8560
|
return 0;
|
|
8547
8561
|
}
|
|
8548
8562
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8549
|
-
_html(`<section${_attr_class("_bF")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bG")}><h2${_attr("id", agentsId)}${_attr_class("_bT")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("
|
|
8563
|
+
_html(`<section${_attr_class("_bF")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bG")}><h2${_attr("id", agentsId)}${_attr_class("_bT")}>Agents</h2><div${_attr_class("_x")}></div><label${_attr_class("_cF")}><span${_attr_class("_V")}>Default</span><span${_attr_class("_m")}>`);
|
|
8550
8564
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8551
8565
|
setPreferred(v);
|
|
8552
8566
|
}, "x2", $scope0_id), () => {
|
|
8553
|
-
_html(`<select${_attr_class(["_n", "
|
|
8567
|
+
_html(`<select${_attr_class(["_n", "_cG"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8554
8568
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8555
|
-
const $
|
|
8556
|
-
_html(`<option${_attr_option_value(id)}>${_text_resume($
|
|
8557
|
-
_serialize_if($scope0_reason, 5) && writeScope($
|
|
8569
|
+
const $scope80_id = _scope_id();
|
|
8570
|
+
_html(`<option${_attr_option_value(id)}>${_text_resume($scope80_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope80_id, "a", $sg__input_agents)}`);
|
|
8571
|
+
_serialize_if($scope0_reason, 5) && writeScope($scope80_id, {});
|
|
8558
8572
|
}, (a) => a, $scope0_id, "n", $sg__input_agents, 1, 1, "</select>", 1);
|
|
8559
8573
|
});
|
|
8560
8574
|
_html(`</span></label></div><ul${_attr_class(agentGrid)}>`);
|
|
@@ -8564,7 +8578,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8564
8578
|
const rows = lone ? [] : a.instances;
|
|
8565
8579
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8566
8580
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8567
|
-
_html(`<li${_attr_class(["_bK", "
|
|
8581
|
+
_html(`<li${_attr_class(["_bK", "_cE"])}><div${_attr_class(["_cH", { ["_cK"]: lone && !lone.enabled }])}>`);
|
|
8568
8582
|
_set_serialize_reason(12);
|
|
8569
8583
|
const $childScope3 = _peek_scope_id();
|
|
8570
8584
|
icon_agent_default({
|
|
@@ -8574,9 +8588,9 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8574
8588
|
_html(`<div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_text_resume($scope1_id, "g", a.label)}</span>`);
|
|
8575
8589
|
_if(() => {
|
|
8576
8590
|
if (lone && input$3.preferred === lone.id) {
|
|
8577
|
-
const $
|
|
8591
|
+
const $scope81_id = _scope_id();
|
|
8578
8592
|
_html(`<span${_attr_class(["_L", tone.accent])}>default</span>`);
|
|
8579
|
-
writeScope($
|
|
8593
|
+
writeScope($scope81_id, {});
|
|
8580
8594
|
return 0;
|
|
8581
8595
|
}
|
|
8582
8596
|
}, $scope1_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -8584,13 +8598,13 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8584
8598
|
_if(() => {
|
|
8585
8599
|
if (active.has(a.id)) {
|
|
8586
8600
|
const $scope13_id = _scope_id();
|
|
8587
|
-
_html(`<span${_attr_class("
|
|
8601
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>${_text_resume($scope13_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8588
8602
|
_subscribe($active__closures, writeScope($scope13_id, {}));
|
|
8589
8603
|
return 0;
|
|
8590
8604
|
} else if (!a.installed) {
|
|
8591
|
-
const $
|
|
8605
|
+
const $scope82_id = _scope_id();
|
|
8592
8606
|
_html(`<span${_attr_class("_bO")}>Not installed</span>`);
|
|
8593
|
-
writeScope($
|
|
8607
|
+
writeScope($scope82_id, {});
|
|
8594
8608
|
return 1;
|
|
8595
8609
|
}
|
|
8596
8610
|
}, $scope1_id, "i", 1, 1, 1, 0, 1);
|
|
@@ -8599,17 +8613,17 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8599
8613
|
if (!a.installed && !active.has(a.id)) {
|
|
8600
8614
|
const $scope58_id = _scope_id();
|
|
8601
8615
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope58_id, "a")}`);
|
|
8602
|
-
_script($scope58_id, "
|
|
8616
|
+
_script($scope58_id, "x48");
|
|
8603
8617
|
writeScope($scope58_id, {});
|
|
8604
8618
|
return 0;
|
|
8605
8619
|
}
|
|
8606
8620
|
}, $scope1_id, "j", 1, 1, 1, 0, 1);
|
|
8607
8621
|
_if(() => {
|
|
8608
8622
|
if (lone) {
|
|
8609
|
-
const $
|
|
8610
|
-
_html(`<button${_attr_class("_F")} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($
|
|
8611
|
-
_script($
|
|
8612
|
-
writeScope($
|
|
8623
|
+
const $scope78_id = _scope_id();
|
|
8624
|
+
_html(`<button${_attr_class("_F")} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($scope78_id, "a")}`);
|
|
8625
|
+
_script($scope78_id, "x49");
|
|
8626
|
+
writeScope($scope78_id, {});
|
|
8613
8627
|
return 0;
|
|
8614
8628
|
}
|
|
8615
8629
|
}, $scope1_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -8617,36 +8631,36 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8617
8631
|
_if(() => {
|
|
8618
8632
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8619
8633
|
const $scope2_id = _scope_id();
|
|
8620
|
-
_html(`<ul${_attr_class(["
|
|
8634
|
+
_html(`<ul${_attr_class(["_cM", { ["_cK"]: lone && !lone.enabled }])}>`);
|
|
8621
8635
|
_for_of(rows, (inst) => {
|
|
8622
8636
|
const $scope3_id = _scope_id();
|
|
8623
8637
|
const accounts = accountsFor(inst.id);
|
|
8624
|
-
_html(`<li${_attr_class(["
|
|
8638
|
+
_html(`<li${_attr_class(["_cI", { ["_cK"]: !inst.enabled }])}><div${_attr_class("_cJ")}>`);
|
|
8625
8639
|
_set_serialize_reason(12);
|
|
8626
8640
|
const $childScope4 = _peek_scope_id();
|
|
8627
8641
|
icon_agent_default({ agent: inst.id });
|
|
8628
|
-
_html(`<span${_attr_class(["
|
|
8642
|
+
_html(`<span${_attr_class(["_cL", "_w"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8629
8643
|
_if(() => {
|
|
8630
8644
|
if (input$3.preferred === inst.id) {
|
|
8631
|
-
const $
|
|
8645
|
+
const $scope83_id = _scope_id();
|
|
8632
8646
|
_html(`<span${_attr_class(["_L", tone.accent])}>default</span>`);
|
|
8633
|
-
writeScope($
|
|
8647
|
+
writeScope($scope83_id, {});
|
|
8634
8648
|
return 0;
|
|
8635
8649
|
}
|
|
8636
8650
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
8637
8651
|
_html(`<span${_attr_class("_x")}></span><button${_attr_class("_F")} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}></button>${_el_resume($scope3_id, "h")}</div>`);
|
|
8638
8652
|
_for_of(accounts, (u) => {
|
|
8639
|
-
const $
|
|
8653
|
+
const $scope84_id = _scope_id();
|
|
8640
8654
|
_set_serialize_reason(6);
|
|
8641
8655
|
const $childScope5 = _peek_scope_id();
|
|
8642
8656
|
usage_meters_default({
|
|
8643
8657
|
agent: u,
|
|
8644
8658
|
hideName: true
|
|
8645
8659
|
});
|
|
8646
|
-
writeScope($
|
|
8660
|
+
writeScope($scope84_id, { a: _existing_scope($childScope5) });
|
|
8647
8661
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope3_id, "i", 1, 1, 1, 0, 1);
|
|
8648
8662
|
_html(`</li>${_el_resume($scope3_id, "a")}`);
|
|
8649
|
-
_script($scope3_id, "
|
|
8663
|
+
_script($scope3_id, "x50");
|
|
8650
8664
|
_subscribe($accountsFor2__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope3_id, {
|
|
8651
8665
|
l: inst?.id,
|
|
8652
8666
|
o: inst?.enabled,
|
|
@@ -8654,7 +8668,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8654
8668
|
})));
|
|
8655
8669
|
}, "id", $scope2_id, "b", 1, 1, 1, 0, 1);
|
|
8656
8670
|
_for_of(loneAccounts, (u) => {
|
|
8657
|
-
const $
|
|
8671
|
+
const $scope85_id = _scope_id();
|
|
8658
8672
|
_html("<li>");
|
|
8659
8673
|
_set_serialize_reason(6);
|
|
8660
8674
|
const $childScope6 = _peek_scope_id();
|
|
@@ -8663,16 +8677,16 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8663
8677
|
hideName: true
|
|
8664
8678
|
});
|
|
8665
8679
|
_html("</li>");
|
|
8666
|
-
writeScope($
|
|
8680
|
+
writeScope($scope85_id, { a: _existing_scope($childScope6) });
|
|
8667
8681
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "c", 1, 1, 1, 0, 1);
|
|
8668
8682
|
_for_of(extraAccounts, (u) => {
|
|
8669
|
-
const $
|
|
8683
|
+
const $scope86_id = _scope_id();
|
|
8670
8684
|
_html("<li>");
|
|
8671
8685
|
_set_serialize_reason(6);
|
|
8672
8686
|
const $childScope7 = _peek_scope_id();
|
|
8673
8687
|
usage_meters_default({ agent: u });
|
|
8674
8688
|
_html("</li>");
|
|
8675
|
-
writeScope($
|
|
8689
|
+
writeScope($scope86_id, { a: _existing_scope($childScope7) });
|
|
8676
8690
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
8677
8691
|
_html(`</ul>${_el_resume($scope2_id, "a")}`);
|
|
8678
8692
|
writeScope($scope2_id, {});
|
|
@@ -8695,20 +8709,20 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8695
8709
|
});
|
|
8696
8710
|
}, "id", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
8697
8711
|
_for_of(otherUsage, (u) => {
|
|
8698
|
-
const $
|
|
8699
|
-
_html(`<li${_attr_class(["_bK", "
|
|
8712
|
+
const $scope87_id = _scope_id();
|
|
8713
|
+
_html(`<li${_attr_class(["_bK", "_cE"])}>`);
|
|
8700
8714
|
_set_serialize_reason(6);
|
|
8701
8715
|
const $childScope8 = _peek_scope_id();
|
|
8702
8716
|
usage_meters_default({ agent: u });
|
|
8703
8717
|
_html("</li>");
|
|
8704
|
-
writeScope($
|
|
8718
|
+
writeScope($scope87_id, { b: _existing_scope($childScope8) });
|
|
8705
8719
|
}, (u) => `${u.agent}-${u.account || ""}`, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
8706
8720
|
_html("</ul>");
|
|
8707
8721
|
_if(() => {
|
|
8708
8722
|
if (!usage && families.length) {
|
|
8709
|
-
const $
|
|
8723
|
+
const $scope88_id = _scope_id();
|
|
8710
8724
|
_html(`<p${_attr_class("_bQ")}><span${_attr_class("_E")}></span> Loading usage…</p>`);
|
|
8711
|
-
writeScope($
|
|
8725
|
+
writeScope($scope88_id, {});
|
|
8712
8726
|
return 0;
|
|
8713
8727
|
} else if (usage?.error) {
|
|
8714
8728
|
const $scope9_id = _scope_id();
|
|
@@ -8721,10 +8735,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8721
8735
|
_if(() => {
|
|
8722
8736
|
if (setup && !addingHost) {
|
|
8723
8737
|
const $scope43_id = _scope_id();
|
|
8724
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8738
|
+
_html(`<button${_attr_class([iconBtnRow, "_cV"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8725
8739
|
icon_plus_default({ size: 16 });
|
|
8726
8740
|
_html(`</button>${_el_resume($scope43_id, "a")}`);
|
|
8727
|
-
_script($scope43_id, "
|
|
8741
|
+
_script($scope43_id, "x51");
|
|
8728
8742
|
writeScope($scope43_id, {});
|
|
8729
8743
|
return 0;
|
|
8730
8744
|
}
|
|
@@ -8733,10 +8747,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8733
8747
|
if (setup) {
|
|
8734
8748
|
const $scope42_id = _scope_id();
|
|
8735
8749
|
_html(`<form${_attr_class([
|
|
8736
|
-
"
|
|
8737
|
-
"
|
|
8738
|
-
{ ["
|
|
8739
|
-
])}><label${_attr_class(["_Z", "
|
|
8750
|
+
"_dE",
|
|
8751
|
+
"_cV",
|
|
8752
|
+
{ ["_dF"]: !addingHost }
|
|
8753
|
+
])}><label${_attr_class(["_Z", "_dG"])}>`);
|
|
8740
8754
|
icon_github_default({
|
|
8741
8755
|
size: 14,
|
|
8742
8756
|
class: "_0"
|
|
@@ -8746,37 +8760,37 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8746
8760
|
}, "x3", $scope42_id))}${_attr_class([
|
|
8747
8761
|
"_X",
|
|
8748
8762
|
"_1",
|
|
8749
|
-
"
|
|
8763
|
+
"_dH"
|
|
8750
8764
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope42_id, "d")}</label><button${_attr_class([
|
|
8751
8765
|
btnSm,
|
|
8752
8766
|
"_p",
|
|
8753
|
-
"
|
|
8754
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope42_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
8767
|
+
"_cU"
|
|
8768
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope42_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope42_id, "e")}<button${_attr_class([iconBtnRow, "_dI"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8755
8769
|
icon_xmark_default({ size: 12 });
|
|
8756
8770
|
_html(`</button>${_el_resume($scope42_id, "g")}</form>${_el_resume($scope42_id, "a")}`);
|
|
8757
|
-
_script($scope42_id, "
|
|
8771
|
+
_script($scope42_id, "x52");
|
|
8758
8772
|
writeScope($scope42_id, {});
|
|
8759
8773
|
return 0;
|
|
8760
8774
|
}
|
|
8761
8775
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8762
|
-
_html(`</div><div${_attr_class(["_bK", "
|
|
8776
|
+
_html(`</div><div${_attr_class(["_bK", "_cj"])}>`);
|
|
8763
8777
|
_for_of(setup?.github || [], (h) => {
|
|
8764
8778
|
const $scope7_id = _scope_id();
|
|
8765
8779
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
8766
8780
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8767
8781
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8768
8782
|
const busy = active.has(h.host);
|
|
8769
|
-
_html(`<div${_attr_class(["
|
|
8783
|
+
_html(`<div${_attr_class(["_ck", "_cW"])}><div${_attr_class("_cX")}>`);
|
|
8770
8784
|
icon_github_default({
|
|
8771
8785
|
size: 18,
|
|
8772
|
-
class: "
|
|
8786
|
+
class: "_cY"
|
|
8773
8787
|
});
|
|
8774
8788
|
_html(`<div${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_text_resume($scope7_id, "g", h.host)}</span>`);
|
|
8775
8789
|
_if(() => {
|
|
8776
8790
|
if (h.isEnterprise) {
|
|
8777
|
-
const $
|
|
8791
|
+
const $scope91_id = _scope_id();
|
|
8778
8792
|
_html(`<span${_attr_class("_L")}>Enterprise</span>`);
|
|
8779
|
-
writeScope($
|
|
8793
|
+
writeScope($scope91_id, {});
|
|
8780
8794
|
return 0;
|
|
8781
8795
|
}
|
|
8782
8796
|
}, $scope7_id, "h", 1, 1, 1, 0, 1);
|
|
@@ -8784,34 +8798,34 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8784
8798
|
_if(() => {
|
|
8785
8799
|
if (busy) {
|
|
8786
8800
|
const $scope14_id = _scope_id();
|
|
8787
|
-
_html(`<span${_attr_class(["_bO", "
|
|
8788
|
-
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, {
|
|
8801
|
+
_html(`<span${_attr_class(["_bO", "_cZ"])}><span${_attr_class("_E")}></span>${_text_resume($scope14_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8802
|
+
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope14_id, { Cgv: 1 })));
|
|
8789
8803
|
return 0;
|
|
8790
8804
|
} else if (h.authed) {
|
|
8791
|
-
const $
|
|
8792
|
-
_html(`<span${_attr_class(["_bO", "
|
|
8805
|
+
const $scope89_id = _scope_id();
|
|
8806
|
+
_html(`<span${_attr_class(["_bO", "_cZ"])}>`);
|
|
8793
8807
|
icon_check_default({
|
|
8794
8808
|
size: 12,
|
|
8795
|
-
class: "
|
|
8809
|
+
class: "_c0"
|
|
8796
8810
|
});
|
|
8797
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8798
|
-
writeScope($
|
|
8811
|
+
_html(` Signed in as <strong${_attr_class("_c2")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8812
|
+
writeScope($scope89_id, {});
|
|
8799
8813
|
return 1;
|
|
8800
8814
|
} else if (h.error) {
|
|
8801
|
-
const $
|
|
8815
|
+
const $scope90_id = _scope_id();
|
|
8802
8816
|
_html(`<span${_attr_class([
|
|
8803
8817
|
"_bO",
|
|
8804
|
-
"
|
|
8805
|
-
"
|
|
8818
|
+
"_cZ",
|
|
8819
|
+
"_c1"
|
|
8806
8820
|
])}>`);
|
|
8807
8821
|
icon_warning_default({ size: 12 });
|
|
8808
|
-
_html(`${_text_resume($
|
|
8809
|
-
writeScope($
|
|
8822
|
+
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
8823
|
+
writeScope($scope90_id, {});
|
|
8810
8824
|
return 2;
|
|
8811
8825
|
} else {
|
|
8812
|
-
const $
|
|
8813
|
-
_html(`<span${_attr_class(["_bO", "
|
|
8814
|
-
writeScope($
|
|
8826
|
+
const $scope92_id = _scope_id();
|
|
8827
|
+
_html(`<span${_attr_class(["_bO", "_cZ"])}>Not signed in</span>`);
|
|
8828
|
+
writeScope($scope92_id, {});
|
|
8815
8829
|
return 3;
|
|
8816
8830
|
}
|
|
8817
8831
|
}, $scope7_id, "i", 1, 1, 1, 0, 1);
|
|
@@ -8823,7 +8837,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8823
8837
|
if (!h.authed) {
|
|
8824
8838
|
const $scope59_id = _scope_id();
|
|
8825
8839
|
_html(`<button${_attr_class([btnSm, "_p"])}>Sign in</button>${_el_resume($scope59_id, "a")}`);
|
|
8826
|
-
_script($scope59_id, "
|
|
8840
|
+
_script($scope59_id, "x53");
|
|
8827
8841
|
writeScope($scope59_id, {});
|
|
8828
8842
|
return 0;
|
|
8829
8843
|
} else {
|
|
@@ -8832,7 +8846,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8832
8846
|
["_r"]: confirmingRemove === `out:${h.host}`,
|
|
8833
8847
|
["_q"]: confirmingRemove === `out:${h.host}`
|
|
8834
8848
|
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${_text_resume($scope33_id, "b", confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out")}</button>${_el_resume($scope33_id, "a")}`);
|
|
8835
|
-
_script($scope33_id, "
|
|
8849
|
+
_script($scope33_id, "x54");
|
|
8836
8850
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope33_id, {})));
|
|
8837
8851
|
return 1;
|
|
8838
8852
|
}
|
|
@@ -8848,20 +8862,20 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8848
8862
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
|
|
8849
8863
|
_if(() => {
|
|
8850
8864
|
if (confirmingRemove === h.host) {
|
|
8851
|
-
const $
|
|
8865
|
+
const $scope93_id = _scope_id();
|
|
8852
8866
|
_html("Forget?");
|
|
8853
|
-
writeScope($
|
|
8867
|
+
writeScope($scope93_id, {});
|
|
8854
8868
|
return 0;
|
|
8855
8869
|
} else {
|
|
8856
|
-
const $
|
|
8870
|
+
const $scope94_id = _scope_id();
|
|
8857
8871
|
icon_xmark_default({ size: 12 });
|
|
8858
|
-
writeScope($
|
|
8872
|
+
writeScope($scope94_id, {});
|
|
8859
8873
|
return 1;
|
|
8860
8874
|
}
|
|
8861
8875
|
}, $scope34_id, "a", 1, 1, 1, "</button>");
|
|
8862
|
-
_script($scope34_id, "
|
|
8876
|
+
_script($scope34_id, "x55");
|
|
8863
8877
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope34_id, {
|
|
8864
|
-
|
|
8878
|
+
Cgy: 1,
|
|
8865
8879
|
Ca4: 1
|
|
8866
8880
|
})));
|
|
8867
8881
|
return 0;
|
|
@@ -8875,8 +8889,8 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8875
8889
|
_if(() => {
|
|
8876
8890
|
if (busy && authCodes.has(h.host)) {
|
|
8877
8891
|
const $scope31_id = _scope_id();
|
|
8878
|
-
_html(`<div${_attr_class("
|
|
8879
|
-
_subscribe($authCodes__closures, writeScope($scope31_id, {
|
|
8892
|
+
_html(`<div${_attr_class("_c3")}><span${_attr_class("_c4")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_c6")}>${_text_resume($scope31_id, "d", h.host)}/login/device</a>${_el_resume($scope31_id, "c")}</span><code${_attr_class("_c5")}>${_text_resume($scope31_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8893
|
+
_subscribe($authCodes__closures, writeScope($scope31_id, { Cgx: 1 }));
|
|
8880
8894
|
return 0;
|
|
8881
8895
|
}
|
|
8882
8896
|
}, $scope7_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -8887,19 +8901,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8887
8901
|
_set_serialize_reason(30);
|
|
8888
8902
|
const $childScope9 = _peek_scope_id();
|
|
8889
8903
|
sso_auth_default({
|
|
8890
|
-
class: ["
|
|
8904
|
+
class: ["_ck", "_c7"],
|
|
8891
8905
|
items: hostSso$1,
|
|
8892
8906
|
skipped: skippedSso,
|
|
8893
8907
|
busy,
|
|
8894
8908
|
onChange: _resume(function() {
|
|
8895
8909
|
readIgnoredSso();
|
|
8896
|
-
}, "
|
|
8910
|
+
}, "x38", $scope8_id),
|
|
8897
8911
|
onAuthorize: _resume(function() {
|
|
8898
8912
|
run(h.host, "auth-refresh");
|
|
8899
|
-
}, "
|
|
8913
|
+
}, "x39", $scope8_id),
|
|
8900
8914
|
onDone: _resume(function() {
|
|
8901
8915
|
refresh();
|
|
8902
|
-
}, "
|
|
8916
|
+
}, "x40", $scope8_id)
|
|
8903
8917
|
});
|
|
8904
8918
|
_subscribe($run2__closures, _subscribe($si__input_setupChange && $refresh2__closures, writeScope($scope8_id, { a: _existing_scope($childScope9) })));
|
|
8905
8919
|
return 0;
|
|
@@ -8920,24 +8934,24 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8920
8934
|
}, "host", $scope0_id, "x", 1, 1, 1, "</div>");
|
|
8921
8935
|
_if(() => {
|
|
8922
8936
|
if (setup && !setup.github.length) {
|
|
8923
|
-
const $
|
|
8937
|
+
const $scope95_id = _scope_id();
|
|
8924
8938
|
_html(`<p${_attr_class("_bQ")}>Install the GitHub CLI below to sign in.</p>`);
|
|
8925
|
-
writeScope($
|
|
8939
|
+
writeScope($scope95_id, {});
|
|
8926
8940
|
return 0;
|
|
8927
8941
|
}
|
|
8928
8942
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8929
|
-
_html(`</section><section${_attr_class("_bF")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bG")}><h2${_attr("id", machineId)}${_attr_class("_bT")}>Machine</h2></div><div${_attr_class(["_bK", "
|
|
8943
|
+
_html(`</section><section${_attr_class("_bF")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bG")}><h2${_attr("id", machineId)}${_attr_class("_bT")}>Machine</h2></div><div${_attr_class(["_bK", "_cj"])}><div${_attr_class(["_ck", "_co"])}><div${_attr_class(["_cp", { ["_cq"]: skillsOpen }])}><button${_attr_class("_cr")} aria-expanded=true>`);
|
|
8930
8944
|
_set_serialize_reason(1);
|
|
8931
8945
|
const $childScope10 = _peek_scope_id();
|
|
8932
8946
|
icon_chevron_right_default({
|
|
8933
8947
|
size: 12,
|
|
8934
|
-
class: ["
|
|
8948
|
+
class: ["_cv", { ["_cw"]: skillsOpen }]
|
|
8935
8949
|
});
|
|
8936
|
-
_html(`<span${_attr_class("
|
|
8950
|
+
_html(`<span${_attr_class("_cs")}>Skills</span>`);
|
|
8937
8951
|
_if(() => {
|
|
8938
8952
|
if (skills?.global.length) {
|
|
8939
8953
|
const $scope52_id = _scope_id();
|
|
8940
|
-
_html(`<span${_attr_class("
|
|
8954
|
+
_html(`<span${_attr_class("_ct")}>${_text_resume($scope52_id, "b", skills.global.length)} installed</span>`);
|
|
8941
8955
|
writeScope($scope52_id, {});
|
|
8942
8956
|
return 0;
|
|
8943
8957
|
}
|
|
@@ -8949,7 +8963,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8949
8963
|
_html(`<button${_attr_class(iconBtnRow)} title="Add skill" aria-label="Add skill">`);
|
|
8950
8964
|
icon_plus_default({ size: 16 });
|
|
8951
8965
|
_html(`</button>${_el_resume($scope56_id, "a")}`);
|
|
8952
|
-
_script($scope56_id, "
|
|
8966
|
+
_script($scope56_id, "x56");
|
|
8953
8967
|
writeScope($scope56_id, {});
|
|
8954
8968
|
return 0;
|
|
8955
8969
|
}
|
|
@@ -8957,55 +8971,55 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
8957
8971
|
_if(() => {
|
|
8958
8972
|
if (skills?.available && skills.agents.length) {
|
|
8959
8973
|
const $scope15_id = _scope_id();
|
|
8960
|
-
_html(`<div${_attr_class(["
|
|
8974
|
+
_html(`<div${_attr_class(["_dE", { ["_dF"]: true }])}><label${_attr_class(["_Z", "_dG"])}>`);
|
|
8961
8975
|
_if(() => {
|
|
8962
8976
|
if (skillSearching) {
|
|
8963
|
-
const $
|
|
8977
|
+
const $scope96_id = _scope_id();
|
|
8964
8978
|
_html(`<span${_attr_class(spinner)}></span>`);
|
|
8965
|
-
writeScope($
|
|
8979
|
+
writeScope($scope96_id, {});
|
|
8966
8980
|
return 0;
|
|
8967
8981
|
} else {
|
|
8968
|
-
const $
|
|
8982
|
+
const $scope97_id = _scope_id();
|
|
8969
8983
|
icon_search_default({
|
|
8970
8984
|
size: 14,
|
|
8971
8985
|
class: "_0"
|
|
8972
8986
|
});
|
|
8973
|
-
writeScope($
|
|
8987
|
+
writeScope($scope97_id, {});
|
|
8974
8988
|
return 1;
|
|
8975
8989
|
}
|
|
8976
8990
|
}, $scope15_id, "c", 1, 1, 1, 0, 1);
|
|
8977
8991
|
_html(`<input${_attr_input_value($scope15_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
8978
8992
|
"_X",
|
|
8979
8993
|
"_1",
|
|
8980
|
-
"
|
|
8981
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
8994
|
+
"_dH"
|
|
8995
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope15_id, "d")}</label><button${_attr_class([iconBtnRow, "_dI"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
8982
8996
|
icon_xmark_default({ size: 12 });
|
|
8983
|
-
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "
|
|
8997
|
+
_html(`</button>${_el_resume($scope15_id, "e")}<ul${_attr_class([pop$1, "_dK"])}${_attr("hidden", true)}>`);
|
|
8984
8998
|
_if(() => {
|
|
8985
8999
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
8986
|
-
const $
|
|
8987
|
-
_html(`<li${_attr_class("
|
|
8988
|
-
writeScope($
|
|
9000
|
+
const $scope98_id = _scope_id();
|
|
9001
|
+
_html(`<li${_attr_class("_dL")}>Searching skills.sh…</li>`);
|
|
9002
|
+
writeScope($scope98_id, {});
|
|
8989
9003
|
return 0;
|
|
8990
9004
|
}
|
|
8991
9005
|
}, $scope15_id, "h", 1, 1, 1, 0, 1);
|
|
8992
9006
|
_if(() => {
|
|
8993
9007
|
if (looksLikeSource(skillQuery)) {
|
|
8994
9008
|
const $scope16_id = _scope_id();
|
|
8995
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["
|
|
9009
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["_cQ", "_w"])}>${_text_resume($scope16_id, "d", skillQuery.trim())}</span>`);
|
|
8996
9010
|
_if(() => {
|
|
8997
9011
|
if (active.has(skillQuery.trim())) {
|
|
8998
9012
|
const $scope17_id = _scope_id();
|
|
8999
|
-
_html(`<span${_attr_class("
|
|
9013
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>${_text_resume($scope17_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9000
9014
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope17_id, {
|
|
9001
|
-
|
|
9002
|
-
|
|
9015
|
+
Cgv: 3,
|
|
9016
|
+
Chk: 1
|
|
9003
9017
|
})));
|
|
9004
9018
|
return 0;
|
|
9005
9019
|
} else {
|
|
9006
|
-
const $
|
|
9020
|
+
const $scope99_id = _scope_id();
|
|
9007
9021
|
_html(`<span${_attr_class("_bO")}>Add straight from this source</span>`);
|
|
9008
|
-
writeScope($
|
|
9022
|
+
writeScope($scope99_id, {});
|
|
9009
9023
|
return 1;
|
|
9010
9024
|
}
|
|
9011
9025
|
}, $scope16_id, "e", 1, 1, 1, 0, 1);
|
|
@@ -9014,60 +9028,60 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9014
9028
|
if (!active.has(skillQuery.trim())) {
|
|
9015
9029
|
const $scope53_id = _scope_id();
|
|
9016
9030
|
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope53_id, "a")}`);
|
|
9017
|
-
_script($scope53_id, "
|
|
9031
|
+
_script($scope53_id, "x57");
|
|
9018
9032
|
writeScope($scope53_id, {});
|
|
9019
9033
|
return 0;
|
|
9020
9034
|
}
|
|
9021
9035
|
}, $scope16_id, "f", 1, 1, 1, 0, 1);
|
|
9022
9036
|
_html("</li>");
|
|
9023
|
-
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9037
|
+
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, { Cgv: 2 })));
|
|
9024
9038
|
return 0;
|
|
9025
9039
|
}
|
|
9026
9040
|
}, $scope15_id, "i", 1, 1, 1, 0, 1);
|
|
9027
9041
|
_for_of(skillHits || [], (h) => {
|
|
9028
9042
|
const $scope18_id = _scope_id();
|
|
9029
9043
|
const $for_content5__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9030
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["
|
|
9044
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["_cQ", "_w"])}>${_text_resume($scope18_id, "d", h.name)}</span>`);
|
|
9031
9045
|
_if(() => {
|
|
9032
9046
|
if (active.has(h.skillId)) {
|
|
9033
9047
|
const $scope19_id = _scope_id();
|
|
9034
|
-
_html(`<span${_attr_class("
|
|
9035
|
-
_subscribe($active__closures, writeScope($scope19_id, {
|
|
9048
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>${_text_resume($scope19_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9049
|
+
_subscribe($active__closures, writeScope($scope19_id, { Cgv: 5 }));
|
|
9036
9050
|
return 0;
|
|
9037
9051
|
} else {
|
|
9038
|
-
const $
|
|
9039
|
-
_html(`<span${_attr_class("_bO")}${_attr("title", h.source)}>${_text_resume($
|
|
9040
|
-
writeScope($
|
|
9052
|
+
const $scope100_id = _scope_id();
|
|
9053
|
+
_html(`<span${_attr_class("_bO")}${_attr("title", h.source)}>${_text_resume($scope100_id, "b", h.source)}</span>${_el_resume($scope100_id, "a")}`);
|
|
9054
|
+
writeScope($scope100_id, {});
|
|
9041
9055
|
return 1;
|
|
9042
9056
|
}
|
|
9043
9057
|
}, $scope18_id, "e", 1, 1, 1, 0, 1);
|
|
9044
9058
|
_html("</div>");
|
|
9045
9059
|
_if(() => {
|
|
9046
9060
|
if (!active.has(h.skillId)) {
|
|
9047
|
-
const $
|
|
9061
|
+
const $scope63_id = _scope_id();
|
|
9048
9062
|
_if(() => {
|
|
9049
9063
|
if (h.installs) {
|
|
9050
|
-
const $
|
|
9051
|
-
_html(`<span${_attr_class(["_L", "_M"])}${_attr("title", `${h.installs} installs`)}>${_text_resume($
|
|
9052
|
-
_subscribe($for_content5__h_installs__closures, writeScope($
|
|
9064
|
+
const $scope101_id = _scope_id();
|
|
9065
|
+
_html(`<span${_attr_class(["_L", "_M"])}${_attr("title", `${h.installs} installs`)}>${_text_resume($scope101_id, "b", skillInstalls(h.installs))}</span>${_el_resume($scope101_id, "a")}`);
|
|
9066
|
+
_subscribe($for_content5__h_installs__closures, writeScope($scope101_id, {}));
|
|
9053
9067
|
return 0;
|
|
9054
9068
|
}
|
|
9055
|
-
}, $
|
|
9069
|
+
}, $scope63_id, "a", 1, 1, 1, 0, 1);
|
|
9056
9070
|
_if(() => {
|
|
9057
9071
|
if (h.installed) {
|
|
9058
|
-
const $
|
|
9072
|
+
const $scope102_id = _scope_id();
|
|
9059
9073
|
_html(`<span${_attr_class("_L")}>installed</span>`);
|
|
9060
|
-
writeScope($
|
|
9074
|
+
writeScope($scope102_id, {});
|
|
9061
9075
|
return 0;
|
|
9062
9076
|
} else {
|
|
9063
|
-
const $
|
|
9064
|
-
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($
|
|
9065
|
-
_script($
|
|
9066
|
-
writeScope($
|
|
9077
|
+
const $scope64_id = _scope_id();
|
|
9078
|
+
_html(`<button${_attr_class(btnSm)}>Add</button>${_el_resume($scope64_id, "a")}`);
|
|
9079
|
+
_script($scope64_id, "x58");
|
|
9080
|
+
writeScope($scope64_id, {});
|
|
9067
9081
|
return 1;
|
|
9068
9082
|
}
|
|
9069
|
-
}, $
|
|
9070
|
-
writeScope($
|
|
9083
|
+
}, $scope63_id, "b", 1, 1, 1, 0, 1);
|
|
9084
|
+
writeScope($scope63_id, {});
|
|
9071
9085
|
return 0;
|
|
9072
9086
|
}
|
|
9073
9087
|
}, $scope18_id, "f");
|
|
@@ -9078,19 +9092,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9078
9092
|
m: h?.installs,
|
|
9079
9093
|
n: h?.installed,
|
|
9080
9094
|
q: $for_content5__h_installs__closures,
|
|
9081
|
-
|
|
9095
|
+
Cgv: 4
|
|
9082
9096
|
}));
|
|
9083
9097
|
}, "skillId", $scope15_id, "j", 1, 1, 1, 0, 1);
|
|
9084
9098
|
_if(() => {
|
|
9085
9099
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9086
9100
|
const $scope54_id = _scope_id();
|
|
9087
|
-
_html(`<li${_attr_class("
|
|
9088
|
-
_subscribe($skillQuery__closures, writeScope($scope54_id, {
|
|
9101
|
+
_html(`<li${_attr_class("_dL")}>No skills match "${_text_resume($scope54_id, "b", skillQuery, 2)}".</li>`);
|
|
9102
|
+
_subscribe($skillQuery__closures, writeScope($scope54_id, { Chk: 2 }));
|
|
9089
9103
|
return 0;
|
|
9090
9104
|
}
|
|
9091
9105
|
}, $scope15_id, "k", 1, 1, 1, 0, 1);
|
|
9092
9106
|
_html(`</ul>${_el_resume($scope15_id, "g")}</div>${_el_resume($scope15_id, "a")}`);
|
|
9093
|
-
_script($scope15_id, "
|
|
9107
|
+
_script($scope15_id, "x59");
|
|
9094
9108
|
writeScope($scope15_id, {});
|
|
9095
9109
|
return 0;
|
|
9096
9110
|
}
|
|
@@ -9099,22 +9113,22 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9099
9113
|
_if(() => {
|
|
9100
9114
|
{
|
|
9101
9115
|
const $scope20_id = _scope_id();
|
|
9102
|
-
_html(`<div${_attr_class("
|
|
9116
|
+
_html(`<div${_attr_class("_cu")}>`);
|
|
9103
9117
|
_if(() => {
|
|
9104
9118
|
if (skills && !skills.agents.length) {
|
|
9105
|
-
const $
|
|
9119
|
+
const $scope103_id = _scope_id();
|
|
9106
9120
|
_html(`<p${_attr_class("_bQ")}>No agent CLIs are installed, so a skill would have nowhere to go. Install one from Agents above.</p>`);
|
|
9107
|
-
writeScope($
|
|
9121
|
+
writeScope($scope103_id, {});
|
|
9108
9122
|
return 0;
|
|
9109
9123
|
} else if (skills && !skills.available) {
|
|
9110
9124
|
const $scope21_id = _scope_id();
|
|
9111
9125
|
_html(`<p${_attr_class("_bQ")}>The skills CLI is not installed, so skills can be listed but not added or removed. <button${_attr_class(btnSm)}${_attr("disabled", active.has("skills"))}>${_text_resume($scope21_id, "c", active.has("skills") ? "Installing…" : "Install it")}</button>${_el_resume($scope21_id, "b")}</p>`);
|
|
9112
|
-
_script($scope21_id, "
|
|
9113
|
-
_subscribe($active__closures, writeScope($scope21_id, {
|
|
9126
|
+
_script($scope21_id, "x60");
|
|
9127
|
+
_subscribe($active__closures, writeScope($scope21_id, { Cgv: 6 }));
|
|
9114
9128
|
return 1;
|
|
9115
9129
|
}
|
|
9116
9130
|
}, $scope20_id, "b", 1, 1, 1, 0, 1);
|
|
9117
|
-
_html(`<ul${_attr_class("
|
|
9131
|
+
_html(`<ul${_attr_class("_dN")}>`);
|
|
9118
9132
|
_for_of(skills?.global || [], (s) => {
|
|
9119
9133
|
const $scope22_id = _scope_id();
|
|
9120
9134
|
const $for_content6__s_agents__closures = /* @__PURE__ */ new Set();
|
|
@@ -9124,21 +9138,21 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9124
9138
|
let $tags;
|
|
9125
9139
|
let $actions;
|
|
9126
9140
|
let $trailing;
|
|
9127
|
-
if (skills && s.agents.length < skills.agents.length) $tags = attrTag({ content: _content_resume("
|
|
9141
|
+
if (skills && s.agents.length < skills.agents.length) $tags = attrTag({ content: _content_resume("x63", () => {
|
|
9128
9142
|
_scope_reason();
|
|
9129
|
-
const $
|
|
9130
|
-
_html(`<span${_attr_class("_L")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($
|
|
9131
|
-
_subscribe($for_content6__s_agents__closures, writeScope($
|
|
9132
|
-
_resume_branch($
|
|
9143
|
+
const $scope104_id = _scope_id();
|
|
9144
|
+
_html(`<span${_attr_class("_L")}${_attr("title", `Only installed for ${s.agents.map(agentLabel).join(", ")}`)}>${_text_resume($scope104_id, "b", s.agents.map(agentLabel).join(", "))} only</span>${_el_resume($scope104_id, "a")}`);
|
|
9145
|
+
_subscribe($for_content6__s_agents__closures, writeScope($scope104_id, { _: _scope_with_id($scope22_id) }));
|
|
9146
|
+
_resume_branch($scope104_id);
|
|
9133
9147
|
}, $scope22_id) });
|
|
9134
|
-
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("
|
|
9148
|
+
if (skills?.available && s.source) $actions = attrTag({ content: _content_resume("x64", () => {
|
|
9135
9149
|
_scope_reason();
|
|
9136
|
-
const $
|
|
9137
|
-
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($
|
|
9138
|
-
_script($
|
|
9139
|
-
writeScope($
|
|
9150
|
+
const $scope65_id = _scope_id();
|
|
9151
|
+
_html(`<button${_attr_class(btnSm)}>Update</button>${_el_resume($scope65_id, "a")}`);
|
|
9152
|
+
_script($scope65_id, "x61");
|
|
9153
|
+
writeScope($scope65_id, { _: _scope_with_id($scope22_id) });
|
|
9140
9154
|
}, $scope22_id) });
|
|
9141
|
-
if (skills?.available) $trailing = attrTag({ content: _content_resume("
|
|
9155
|
+
if (skills?.available) $trailing = attrTag({ content: _content_resume("x65", () => {
|
|
9142
9156
|
_scope_reason();
|
|
9143
9157
|
const $scope55_id = _scope_id();
|
|
9144
9158
|
_html(`<button${_attr_class([
|
|
@@ -9149,18 +9163,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9149
9163
|
])}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name}?`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
9150
9164
|
_if(() => {
|
|
9151
9165
|
if (confirmingSkill === s.id) {
|
|
9152
|
-
const $
|
|
9166
|
+
const $scope106_id = _scope_id();
|
|
9153
9167
|
_html("Remove?");
|
|
9154
|
-
writeScope($
|
|
9168
|
+
writeScope($scope106_id, {});
|
|
9155
9169
|
return 0;
|
|
9156
9170
|
} else {
|
|
9157
|
-
const $
|
|
9171
|
+
const $scope107_id = _scope_id();
|
|
9158
9172
|
icon_xmark_default({ size: 12 });
|
|
9159
|
-
writeScope($
|
|
9173
|
+
writeScope($scope107_id, {});
|
|
9160
9174
|
return 1;
|
|
9161
9175
|
}
|
|
9162
9176
|
}, $scope55_id, "a", 1, 1, 1, "</button>");
|
|
9163
|
-
_script($scope55_id, "
|
|
9177
|
+
_script($scope55_id, "x62");
|
|
9164
9178
|
_subscribe($for_content6__s_id__closures, _subscribe($for_content6__s_name__closures, _subscribe($confirmingSkill__closures, writeScope($scope55_id, { _: _scope_with_id($scope22_id) }))));
|
|
9165
9179
|
_resume_branch($scope55_id);
|
|
9166
9180
|
}, $scope22_id) });
|
|
@@ -9184,14 +9198,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9184
9198
|
n: $for_content6__s_name__closures,
|
|
9185
9199
|
o: $for_content6__s_id__closures,
|
|
9186
9200
|
a: _existing_scope($childScope11),
|
|
9187
|
-
|
|
9201
|
+
Cgv: 7
|
|
9188
9202
|
}))));
|
|
9189
9203
|
}, "id", $scope20_id, "c", 1, 1, 1, "</ul>", 1);
|
|
9190
9204
|
_if(() => {
|
|
9191
9205
|
if (skills && !skills.global.length && skills.available && skills.agents.length) {
|
|
9192
|
-
const $
|
|
9206
|
+
const $scope108_id = _scope_id();
|
|
9193
9207
|
_html(`<p${_attr_class("_bQ")}>No skills installed. Search below, or paste an owner/repo.</p>`);
|
|
9194
|
-
writeScope($
|
|
9208
|
+
writeScope($scope108_id, {});
|
|
9195
9209
|
return 0;
|
|
9196
9210
|
}
|
|
9197
9211
|
}, $scope20_id, "d", 1, 1, 1, 0, 1);
|
|
@@ -9200,19 +9214,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9200
9214
|
return 0;
|
|
9201
9215
|
}
|
|
9202
9216
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9203
|
-
_html(`</div><div${_attr_class(["
|
|
9217
|
+
_html(`</div><div${_attr_class(["_ck", "_co"])}><div${_attr_class(["_cp", { ["_cq"]: machineOpen }])}><button${_attr_class("_cr")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9204
9218
|
_set_serialize_reason(1);
|
|
9205
9219
|
const $childScope12 = _peek_scope_id();
|
|
9206
9220
|
icon_chevron_right_default({
|
|
9207
9221
|
size: 12,
|
|
9208
|
-
class: ["
|
|
9222
|
+
class: ["_cv", { ["_cw"]: machineOpen }]
|
|
9209
9223
|
});
|
|
9210
|
-
_html(`<span${_attr_class("
|
|
9224
|
+
_html(`<span${_attr_class("_cs")}>Tools</span><span${_attr_class("_ct")}>${_text_resume($scope0_id, "ai", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "aj", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "ak", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
9211
9225
|
_if(() => {
|
|
9212
9226
|
if (outdatedIds.length > 1) {
|
|
9213
9227
|
const $scope23_id = _scope_id();
|
|
9214
9228
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Update all</button>${_el_resume($scope23_id, "a")}`);
|
|
9215
|
-
_script($scope23_id, "
|
|
9229
|
+
_script($scope23_id, "x66");
|
|
9216
9230
|
writeScope($scope23_id, {});
|
|
9217
9231
|
return 0;
|
|
9218
9232
|
}
|
|
@@ -9221,7 +9235,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9221
9235
|
if (missingInstallable.length > 1) {
|
|
9222
9236
|
const $scope24_id = _scope_id();
|
|
9223
9237
|
_html(`<button${_attr_class(btnSm)}${_attr("disabled", active.size > 0)}>Install missing</button>${_el_resume($scope24_id, "a")}`);
|
|
9224
|
-
_script($scope24_id, "
|
|
9238
|
+
_script($scope24_id, "x67");
|
|
9225
9239
|
writeScope($scope24_id, {});
|
|
9226
9240
|
return 0;
|
|
9227
9241
|
}
|
|
@@ -9232,7 +9246,7 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9232
9246
|
_html(`<button${_attr_class(iconBtnRow)} title="Add tool" aria-label="Add tool">`);
|
|
9233
9247
|
icon_plus_default({ size: 16 });
|
|
9234
9248
|
_html(`</button>${_el_resume($scope57_id, "a")}`);
|
|
9235
|
-
_script($scope57_id, "
|
|
9249
|
+
_script($scope57_id, "x68");
|
|
9236
9250
|
writeScope($scope57_id, {});
|
|
9237
9251
|
return 0;
|
|
9238
9252
|
}
|
|
@@ -9240,59 +9254,59 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9240
9254
|
_if(() => {
|
|
9241
9255
|
if (setup && setup.mise.installed) {
|
|
9242
9256
|
const $scope25_id = _scope_id();
|
|
9243
|
-
_html(`<div${_attr_class(["
|
|
9257
|
+
_html(`<div${_attr_class(["_dE", { ["_dF"]: true }])}><label${_attr_class(["_Z", "_dG"])}>`);
|
|
9244
9258
|
_if(() => {
|
|
9245
9259
|
if (searching) {
|
|
9246
|
-
const $
|
|
9260
|
+
const $scope109_id = _scope_id();
|
|
9247
9261
|
_html(`<span${_attr_class(spinner)}></span>`);
|
|
9248
|
-
writeScope($
|
|
9262
|
+
writeScope($scope109_id, {});
|
|
9249
9263
|
return 0;
|
|
9250
9264
|
} else {
|
|
9251
|
-
const $
|
|
9265
|
+
const $scope110_id = _scope_id();
|
|
9252
9266
|
icon_search_default({
|
|
9253
9267
|
size: 14,
|
|
9254
9268
|
class: "_0"
|
|
9255
9269
|
});
|
|
9256
|
-
writeScope($
|
|
9270
|
+
writeScope($scope110_id, {});
|
|
9257
9271
|
return 1;
|
|
9258
9272
|
}
|
|
9259
9273
|
}, $scope25_id, "c", 1, 1, 1, 0, 1);
|
|
9260
9274
|
_html(`<input${_attr_input_value($scope25_id, "d", query, search)}${_attr_class([
|
|
9261
9275
|
"_X",
|
|
9262
9276
|
"_1",
|
|
9263
|
-
"
|
|
9264
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9277
|
+
"_dH"
|
|
9278
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope25_id, "d")}</label><button${_attr_class([iconBtnRow, "_dI"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9265
9279
|
icon_xmark_default({ size: 12 });
|
|
9266
|
-
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "
|
|
9280
|
+
_html(`</button>${_el_resume($scope25_id, "e")}<ul${_attr_class([pop$1, "_dK"])}${_attr("hidden", true)}>`);
|
|
9267
9281
|
_if(() => {
|
|
9268
9282
|
if (searching && !hits?.length) {
|
|
9269
|
-
const $
|
|
9270
|
-
_html(`<li${_attr_class("
|
|
9271
|
-
writeScope($
|
|
9283
|
+
const $scope111_id = _scope_id();
|
|
9284
|
+
_html(`<li${_attr_class("_dL")}>Searching the mise registry…</li>`);
|
|
9285
|
+
writeScope($scope111_id, {});
|
|
9272
9286
|
return 0;
|
|
9273
9287
|
}
|
|
9274
9288
|
}, $scope25_id, "h", 1, 1, 1, 0, 1);
|
|
9275
9289
|
_if(() => {
|
|
9276
9290
|
if (hits && !hits.length && !searching) {
|
|
9277
9291
|
const $scope44_id = _scope_id();
|
|
9278
|
-
_html(`<li${_attr_class("
|
|
9292
|
+
_html(`<li${_attr_class("_dL")}>No tools match "${_text_resume($scope44_id, "b", query, 2)}".</li>`);
|
|
9279
9293
|
_subscribe($query__closures, writeScope($scope44_id, {}));
|
|
9280
9294
|
return 0;
|
|
9281
9295
|
}
|
|
9282
9296
|
}, $scope25_id, "i", 1, 1, 1, 0, 1);
|
|
9283
9297
|
_for_of(hits || [], (h) => {
|
|
9284
9298
|
const $scope26_id = _scope_id();
|
|
9285
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["
|
|
9299
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_bL")}><span${_attr_class(["_cQ", "_w"])}>${_text_resume($scope26_id, "d", h.name)}</span>`);
|
|
9286
9300
|
_if(() => {
|
|
9287
9301
|
if (active.has(h.name)) {
|
|
9288
9302
|
const $scope27_id = _scope_id();
|
|
9289
|
-
_html(`<span${_attr_class("
|
|
9290
|
-
_subscribe($active__closures, writeScope($scope27_id, {
|
|
9303
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>${_text_resume($scope27_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9304
|
+
_subscribe($active__closures, writeScope($scope27_id, { Cgv: 9 }));
|
|
9291
9305
|
return 0;
|
|
9292
9306
|
} else if (h.description) {
|
|
9293
|
-
const $
|
|
9294
|
-
_html(`<span${_attr_class("_bO")}${_attr("title", h.description)}>${_text_resume($
|
|
9295
|
-
writeScope($
|
|
9307
|
+
const $scope112_id = _scope_id();
|
|
9308
|
+
_html(`<span${_attr_class("_bO")}${_attr("title", h.description)}>${_text_resume($scope112_id, "b", h.description)}</span>${_el_resume($scope112_id, "a")}`);
|
|
9309
|
+
writeScope($scope112_id, {});
|
|
9296
9310
|
return 1;
|
|
9297
9311
|
}
|
|
9298
9312
|
}, $scope26_id, "e", 1, 1, 1, 0, 1);
|
|
@@ -9302,14 +9316,14 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9302
9316
|
const $scope38_id = _scope_id();
|
|
9303
9317
|
_if(() => {
|
|
9304
9318
|
if (h.installed) {
|
|
9305
|
-
const $
|
|
9319
|
+
const $scope113_id = _scope_id();
|
|
9306
9320
|
_html(`<span${_attr_class("_L")}>installed</span>`);
|
|
9307
|
-
writeScope($
|
|
9321
|
+
writeScope($scope113_id, {});
|
|
9308
9322
|
return 0;
|
|
9309
9323
|
} else {
|
|
9310
9324
|
const $scope39_id = _scope_id();
|
|
9311
9325
|
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope39_id, "a")}<button${_attr_class(btnSm)} title="Install a specific version">@…</button>${_el_resume($scope39_id, "b")}`);
|
|
9312
|
-
_script($scope39_id, "
|
|
9326
|
+
_script($scope39_id, "x69");
|
|
9313
9327
|
writeScope($scope39_id, {});
|
|
9314
9328
|
return 1;
|
|
9315
9329
|
}
|
|
@@ -9323,11 +9337,11 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9323
9337
|
i: h?.name,
|
|
9324
9338
|
k: h?.description,
|
|
9325
9339
|
m: h?.installed,
|
|
9326
|
-
|
|
9340
|
+
Cgv: 8
|
|
9327
9341
|
}));
|
|
9328
9342
|
}, "name", $scope25_id, "j", 1, 1, 1, 0, 1);
|
|
9329
9343
|
_html(`</ul>${_el_resume($scope25_id, "g")}</div>${_el_resume($scope25_id, "a")}`);
|
|
9330
|
-
_script($scope25_id, "
|
|
9344
|
+
_script($scope25_id, "x70");
|
|
9331
9345
|
writeScope($scope25_id, {});
|
|
9332
9346
|
return 0;
|
|
9333
9347
|
}
|
|
@@ -9336,13 +9350,13 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9336
9350
|
_if(() => {
|
|
9337
9351
|
if (machineOpen) {
|
|
9338
9352
|
const $scope6_id = _scope_id();
|
|
9339
|
-
_html(`<div${_attr_class("
|
|
9353
|
+
_html(`<div${_attr_class("_cu")}>`);
|
|
9340
9354
|
_if(() => {
|
|
9341
9355
|
if (setup && !setup.mise.installed) {
|
|
9342
9356
|
const $scope28_id = _scope_id();
|
|
9343
9357
|
_html(`<p${_attr_class("_bQ")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${_text_resume($scope28_id, "c", active.has("mise") ? "Installing…" : "Install mise")}</button>${_el_resume($scope28_id, "b")}</p>`);
|
|
9344
|
-
_script($scope28_id, "
|
|
9345
|
-
_subscribe($active__closures, writeScope($scope28_id, {
|
|
9358
|
+
_script($scope28_id, "x71");
|
|
9359
|
+
_subscribe($active__closures, writeScope($scope28_id, { Cgv: 10 }));
|
|
9346
9360
|
return 0;
|
|
9347
9361
|
}
|
|
9348
9362
|
}, $scope6_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -9350,40 +9364,40 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9350
9364
|
_if(() => {
|
|
9351
9365
|
if (self) {
|
|
9352
9366
|
const $scope48_id = _scope_id();
|
|
9353
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9367
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_cQ", "_w"])}>work</span>`);
|
|
9354
9368
|
_if(() => {
|
|
9355
9369
|
if (selfUpdating) {
|
|
9356
|
-
const $
|
|
9357
|
-
_html(`<span${_attr_class("
|
|
9358
|
-
writeScope($
|
|
9370
|
+
const $scope114_id = _scope_id();
|
|
9371
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9372
|
+
writeScope($scope114_id, {});
|
|
9359
9373
|
return 0;
|
|
9360
9374
|
} else {
|
|
9361
9375
|
const $scope49_id = _scope_id();
|
|
9362
9376
|
_html(`<span${_attr_class(["_w", metaTrunc])} title="Running version">v${_text_resume($scope49_id, "b", self.version, 2)}</span>`);
|
|
9363
9377
|
_if(() => {
|
|
9364
9378
|
if (self.install === "source") {
|
|
9365
|
-
const $
|
|
9379
|
+
const $scope115_id = _scope_id();
|
|
9366
9380
|
_html(`<span${_attr_class(metaTrunc)} title="Started from a checkout, not the published package">source checkout — update with git</span>`);
|
|
9367
|
-
writeScope($
|
|
9381
|
+
writeScope($scope115_id, {});
|
|
9368
9382
|
return 0;
|
|
9369
9383
|
} else if (self.latest && self.latest !== self.version) {
|
|
9370
9384
|
const $scope50_id = _scope_id();
|
|
9371
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9385
|
+
_html(`<button${_attr_class([btnSm, "_cT"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9372
9386
|
icon_arrow_up_default({ size: 12 });
|
|
9373
9387
|
_html(` ${_text_resume($scope50_id, "c", self.latest, 2)}</button>${_el_resume($scope50_id, "a")}`);
|
|
9374
|
-
_script($scope50_id, "
|
|
9375
|
-
_subscribe($self_latest__closures, writeScope($scope50_id, {
|
|
9388
|
+
_script($scope50_id, "x72");
|
|
9389
|
+
_subscribe($self_latest__closures, writeScope($scope50_id, { Chb: 3 }));
|
|
9376
9390
|
return 1;
|
|
9377
9391
|
} else if (self.latest) {
|
|
9378
|
-
const $
|
|
9392
|
+
const $scope116_id = _scope_id();
|
|
9379
9393
|
_html(`<span${_attr_class(metaTrunc)}>up to date</span>`);
|
|
9380
|
-
writeScope($
|
|
9394
|
+
writeScope($scope116_id, {});
|
|
9381
9395
|
return 2;
|
|
9382
9396
|
}
|
|
9383
9397
|
}, $scope49_id, "c", 1, 1, 1, 0, 1);
|
|
9384
9398
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, _subscribe($self_install__closures, writeScope($scope49_id, {
|
|
9385
|
-
|
|
9386
|
-
|
|
9399
|
+
Chb: 2,
|
|
9400
|
+
Chc: 1
|
|
9387
9401
|
}))));
|
|
9388
9402
|
return 1;
|
|
9389
9403
|
}
|
|
@@ -9391,9 +9405,9 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9391
9405
|
_html(`<span${_attr_class("_x")}></span>`);
|
|
9392
9406
|
_if(() => {
|
|
9393
9407
|
if (!selfUpdating) {
|
|
9394
|
-
const $
|
|
9408
|
+
const $scope117_id = _scope_id();
|
|
9395
9409
|
_html(`<span${_attr_class("_L")}>app</span>`);
|
|
9396
|
-
writeScope($
|
|
9410
|
+
writeScope($scope117_id, {});
|
|
9397
9411
|
return 0;
|
|
9398
9412
|
}
|
|
9399
9413
|
}, $scope48_id, "e", 1, 1, 1, 0, 1);
|
|
@@ -9404,56 +9418,77 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9404
9418
|
}, $scope6_id, "d", 1, 1, 1, 0, 1);
|
|
9405
9419
|
_for_of(tools, (t) => {
|
|
9406
9420
|
const $scope29_id = _scope_id();
|
|
9407
|
-
const $
|
|
9421
|
+
const $for_content8__t_pin__closures = /* @__PURE__ */ new Set();
|
|
9422
|
+
const $for_content8__t__closures = /* @__PURE__ */ new Set();
|
|
9408
9423
|
const $for_content8__t_version__closures = /* @__PURE__ */ new Set();
|
|
9409
9424
|
const $for_content8__t_path__closures = /* @__PURE__ */ new Set();
|
|
9410
9425
|
const $for_content8__t_latest__closures = /* @__PURE__ */ new Set();
|
|
9426
|
+
const $for_content8__t_label__closures = /* @__PURE__ */ new Set();
|
|
9427
|
+
const $for_content8__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9411
9428
|
const $for_content8__t_id__closures = /* @__PURE__ */ new Set();
|
|
9412
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9429
|
+
_html(`<li${_attr_class([toolRow, { ["_cP"]: !t.installed }])}><span${_attr_class(["_cQ", "_w"])}>${_text_resume($scope29_id, "c", t.label)}</span>`);
|
|
9413
9430
|
_if(() => {
|
|
9414
9431
|
if (active.has(t.id)) {
|
|
9415
9432
|
const $scope30_id = _scope_id();
|
|
9416
|
-
_html(`<span${_attr_class("
|
|
9417
|
-
_subscribe($active__closures, writeScope($scope30_id, {
|
|
9433
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>${_text_resume($scope30_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9434
|
+
_subscribe($active__closures, writeScope($scope30_id, { Cgv: 12 }));
|
|
9418
9435
|
return 0;
|
|
9419
9436
|
} else if (t.installed) {
|
|
9420
9437
|
const $scope40_id = _scope_id();
|
|
9421
9438
|
_if(() => {
|
|
9422
9439
|
if (t.version) {
|
|
9423
9440
|
const $scope41_id = _scope_id();
|
|
9424
|
-
_html(`<button${_attr_class(["
|
|
9425
|
-
|
|
9426
|
-
|
|
9441
|
+
_html(`<button${_attr_class(["_cS", "_w"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope41_id, "b", t.version, 2)}`);
|
|
9442
|
+
_if(() => {
|
|
9443
|
+
if (aliasPin(t)) {
|
|
9444
|
+
const $scope118_id = _scope_id();
|
|
9445
|
+
_html(`<span${_attr_class("_cR")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9446
|
+
_subscribe($for_content8__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9447
|
+
return 0;
|
|
9448
|
+
}
|
|
9449
|
+
}, $scope41_id, "c", 1, 1, 1, 0, 1);
|
|
9450
|
+
_html(`</button>${_el_resume($scope41_id, "a")}`);
|
|
9451
|
+
_script($scope41_id, "x73");
|
|
9452
|
+
_subscribe($for_content8__t_version__closures, _subscribe($for_content8__t__closures, writeScope($scope41_id, {})));
|
|
9427
9453
|
return 0;
|
|
9428
9454
|
} else {
|
|
9429
|
-
const $
|
|
9430
|
-
_html(`<span${_attr_class([metaTrunc, "_w"])}${_attr("title", t.path)}>${_text_resume($
|
|
9431
|
-
_subscribe($for_content8__t_path__closures, writeScope($
|
|
9455
|
+
const $scope119_id = _scope_id();
|
|
9456
|
+
_html(`<span${_attr_class([metaTrunc, "_w"])}${_attr("title", t.path)}>${_text_resume($scope119_id, "b", t.path)}</span>${_el_resume($scope119_id, "a")}`);
|
|
9457
|
+
_subscribe($for_content8__t_path__closures, writeScope($scope119_id, {}));
|
|
9432
9458
|
return 1;
|
|
9433
9459
|
}
|
|
9434
9460
|
}, $scope40_id, "a", 1, 1, 1, 0, 1);
|
|
9435
9461
|
_if(() => {
|
|
9436
9462
|
if (outdated(t)) {
|
|
9437
9463
|
const $scope60_id = _scope_id();
|
|
9438
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9464
|
+
_html(`<button${_attr_class([btnSm, "_cT"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9439
9465
|
icon_arrow_up_default({ size: 12 });
|
|
9440
9466
|
_html(` ${_text_resume($scope60_id, "c", t.latest, 2)}</button>${_el_resume($scope60_id, "a")}`);
|
|
9441
|
-
_script($scope60_id, "
|
|
9467
|
+
_script($scope60_id, "x74");
|
|
9442
9468
|
_subscribe($for_content8__t_latest__closures, writeScope($scope60_id, {}));
|
|
9443
9469
|
return 0;
|
|
9470
|
+
} else if (t.newest) {
|
|
9471
|
+
const $scope61_id = _scope_id();
|
|
9472
|
+
_html(`<button${_attr_class(["_cS", "_w"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope61_id, "b", t.newest)} available</button>${_el_resume($scope61_id, "a")}`);
|
|
9473
|
+
_script($scope61_id, "x75");
|
|
9474
|
+
_subscribe($for_content8__t_newest__closures, _subscribe($for_content8__t_pin__closures, _subscribe($for_content8__t_version__closures, _subscribe($for_content8__t_label__closures, writeScope($scope61_id, {
|
|
9475
|
+
Cw: 1,
|
|
9476
|
+
Cy: 1
|
|
9477
|
+
})))));
|
|
9478
|
+
return 1;
|
|
9444
9479
|
}
|
|
9445
9480
|
}, $scope40_id, "b", 1, 1, 1, 0, 1);
|
|
9446
9481
|
writeScope($scope40_id, {});
|
|
9447
9482
|
return 1;
|
|
9448
9483
|
} else if (t.installable) {
|
|
9449
|
-
const $
|
|
9484
|
+
const $scope120_id = _scope_id();
|
|
9450
9485
|
_html(`<span${_attr_class(metaTrunc)}>not installed</span>`);
|
|
9451
|
-
writeScope($
|
|
9486
|
+
writeScope($scope120_id, {});
|
|
9452
9487
|
return 2;
|
|
9453
9488
|
} else {
|
|
9454
|
-
const $
|
|
9489
|
+
const $scope121_id = _scope_id();
|
|
9455
9490
|
_html(`<span${_attr_class(metaTrunc)} title="Installed with the system package manager">system package</span>`);
|
|
9456
|
-
writeScope($
|
|
9491
|
+
writeScope($scope121_id, {});
|
|
9457
9492
|
return 3;
|
|
9458
9493
|
}
|
|
9459
9494
|
}, $scope29_id, "d");
|
|
@@ -9463,18 +9498,18 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9463
9498
|
const $scope35_id = _scope_id();
|
|
9464
9499
|
_if(() => {
|
|
9465
9500
|
if (t.required) {
|
|
9466
|
-
const $
|
|
9501
|
+
const $scope122_id = _scope_id();
|
|
9467
9502
|
_html(`<span${_attr_class("_L")}>required</span>`);
|
|
9468
|
-
writeScope($
|
|
9503
|
+
writeScope($scope122_id, {});
|
|
9469
9504
|
return 0;
|
|
9470
9505
|
}
|
|
9471
9506
|
}, $scope35_id, "a", 1, 1, 1, 0, 1);
|
|
9472
9507
|
_if(() => {
|
|
9473
9508
|
if (!t.installed && t.installable) {
|
|
9474
|
-
const $
|
|
9475
|
-
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($
|
|
9476
|
-
_script($
|
|
9477
|
-
writeScope($
|
|
9509
|
+
const $scope62_id = _scope_id();
|
|
9510
|
+
_html(`<button${_attr_class(btnSm)}>Install</button>${_el_resume($scope62_id, "a")}`);
|
|
9511
|
+
_script($scope62_id, "x76");
|
|
9512
|
+
writeScope($scope62_id, {});
|
|
9478
9513
|
return 0;
|
|
9479
9514
|
} else if (t.installed && t.version && !t.required) {
|
|
9480
9515
|
const $scope36_id = _scope_id();
|
|
@@ -9486,19 +9521,19 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9486
9521
|
])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
|
|
9487
9522
|
_if(() => {
|
|
9488
9523
|
if (confirmingRemove === t.id) {
|
|
9489
|
-
const $
|
|
9524
|
+
const $scope123_id = _scope_id();
|
|
9490
9525
|
_html("Remove?");
|
|
9491
|
-
writeScope($
|
|
9526
|
+
writeScope($scope123_id, {});
|
|
9492
9527
|
return 0;
|
|
9493
9528
|
} else {
|
|
9494
|
-
const $
|
|
9529
|
+
const $scope124_id = _scope_id();
|
|
9495
9530
|
icon_xmark_default({ size: 12 });
|
|
9496
|
-
writeScope($
|
|
9531
|
+
writeScope($scope124_id, {});
|
|
9497
9532
|
return 1;
|
|
9498
9533
|
}
|
|
9499
9534
|
}, $scope36_id, "a", 1, 1, 1, "</button>");
|
|
9500
|
-
_script($scope36_id, "
|
|
9501
|
-
_subscribe($for_content8__t_id__closures, _subscribe($for_content8__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope36_id, {
|
|
9535
|
+
_script($scope36_id, "x77");
|
|
9536
|
+
_subscribe($for_content8__t_id__closures, _subscribe($for_content8__t_label__closures, _subscribe($confirmingRemove__closures, writeScope($scope36_id, { Cgy: 2 }))));
|
|
9502
9537
|
return 1;
|
|
9503
9538
|
}
|
|
9504
9539
|
}, $scope35_id, "b", 1, 1, 1, 0, 1);
|
|
@@ -9514,15 +9549,20 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9514
9549
|
k: t?.id,
|
|
9515
9550
|
m: t?.version,
|
|
9516
9551
|
n: t?.path,
|
|
9517
|
-
o: t?.
|
|
9518
|
-
p: t?.
|
|
9519
|
-
|
|
9520
|
-
|
|
9521
|
-
|
|
9522
|
-
|
|
9523
|
-
|
|
9524
|
-
|
|
9525
|
-
|
|
9552
|
+
o: t?.pin,
|
|
9553
|
+
p: t?.newest,
|
|
9554
|
+
q: t?.latest,
|
|
9555
|
+
r: t?.installable,
|
|
9556
|
+
t: t?.required,
|
|
9557
|
+
a0: $for_content8__t_pin__closures,
|
|
9558
|
+
u: $for_content8__t__closures,
|
|
9559
|
+
y: $for_content8__t_version__closures,
|
|
9560
|
+
z: $for_content8__t_path__closures,
|
|
9561
|
+
a2: $for_content8__t_latest__closures,
|
|
9562
|
+
w: $for_content8__t_label__closures,
|
|
9563
|
+
a1: $for_content8__t_newest__closures,
|
|
9564
|
+
x: $for_content8__t_id__closures,
|
|
9565
|
+
Cgv: 11
|
|
9526
9566
|
}));
|
|
9527
9567
|
}, "id", $scope6_id, "e", 1, 1, 1, 0, 1);
|
|
9528
9568
|
_html("</ul></div>");
|
|
@@ -9544,38 +9584,38 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9544
9584
|
label: "Dark"
|
|
9545
9585
|
}
|
|
9546
9586
|
];
|
|
9547
|
-
_html(`</div></div></section><section${_attr_class("_bF")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bG")}><h2${_attr("id", appearanceId)}${_attr_class("_bT")}>Appearance</h2></div><div${_attr_class(["_bK", "
|
|
9587
|
+
_html(`</div></div></section><section${_attr_class("_bF")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bG")}><h2${_attr("id", appearanceId)}${_attr_class("_bT")}>Appearance</h2></div><div${_attr_class(["_bK", "_c8"])}><label${_attr_class("_c9")}><span${_attr_class("_c_")}>Name</span><input${_attr_input_value($scope0_id, "aw", input$3.instance.name, _resume(function(v) {
|
|
9548
9588
|
setInstance({ name: v });
|
|
9549
|
-
}, "x4", $scope0_id))}${_attr_class(["_X", "
|
|
9589
|
+
}, "x4", $scope0_id))}${_attr_class(["_X", "_da"])} type=text placeholder="Tab title" maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "aw")}</label><div${_attr_class("_c9")}><span${_attr_class("_c_")}>Theme</span><span${_attr_class("_dc")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9550
9590
|
_for_of(themeOpts, (opt) => {
|
|
9551
9591
|
const $scope51_id = _scope_id();
|
|
9552
9592
|
_html(`<button type=button${_attr_class(["_be", { ["_bd"]: themeMode === opt.id }])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>${_escape(opt.label)}</button>${_el_resume($scope51_id, "a")}`);
|
|
9553
|
-
_script($scope51_id, "
|
|
9593
|
+
_script($scope51_id, "x78");
|
|
9554
9594
|
writeScope($scope51_id, {
|
|
9555
9595
|
e: opt?.id,
|
|
9556
9596
|
_: _scope_with_id($scope0_id)
|
|
9557
9597
|
});
|
|
9558
9598
|
}, "id", $scope0_id, "b0", 1, 0, 1, 0, 1);
|
|
9559
|
-
_html(`</span><span${_attr_class(["_m", "
|
|
9599
|
+
_html(`</span><span${_attr_class(["_m", "_dd"])}>`);
|
|
9560
9600
|
_attr_select_value($scope0_id, "b2", themeMode, _resume(function(v) {
|
|
9561
9601
|
setThemeMode(v);
|
|
9562
9602
|
}, "x5", $scope0_id), () => {
|
|
9563
|
-
_html(`<select${_attr_class(["_n", "
|
|
9603
|
+
_html(`<select${_attr_class(["_n", "_de"])} aria-label="Color theme">`);
|
|
9564
9604
|
forOf(themeOpts, (opt) => {
|
|
9565
9605
|
_scope_id();
|
|
9566
9606
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9567
9607
|
});
|
|
9568
9608
|
_html("</select>");
|
|
9569
9609
|
});
|
|
9570
|
-
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("
|
|
9571
|
-
"
|
|
9572
|
-
"
|
|
9573
|
-
{ ["
|
|
9610
|
+
_html(`${_el_resume($scope0_id, "b2")}</span></span></div><div${_attr_class("_c9")}><span${_attr_class("_c_")}>Accent</span><span${_attr_class(swatches)} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9611
|
+
"_dk",
|
|
9612
|
+
"_dm",
|
|
9613
|
+
{ ["_dl"]: !input$3.instance.accent }
|
|
9574
9614
|
])} role=radio aria-checked=${!input$3.instance.accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)"></button>${_el_resume($scope0_id, "b6")}`);
|
|
9575
9615
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9576
9616
|
const $scope4_id = _scope_id();
|
|
9577
|
-
_html(`<button type=button${_attr_class(["
|
|
9578
|
-
_script($scope4_id, "
|
|
9617
|
+
_html(`<button type=button${_attr_class(["_dk", { ["_dl"]: input$3.instance.accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${input$3.instance.accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}></button>${_el_resume($scope4_id, "a")}`);
|
|
9618
|
+
_script($scope4_id, "x79");
|
|
9579
9619
|
writeScope($scope4_id, {
|
|
9580
9620
|
d: p?.value,
|
|
9581
9621
|
_: _scope_with_id($scope0_id)
|
|
@@ -9583,214 +9623,214 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9583
9623
|
}, "value", $scope0_id, "b7", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9584
9624
|
const customOn = !!input$3.instance.accent && !ACCENT_PRESETS.some((p) => p.value === input$3.instance.accent);
|
|
9585
9625
|
_html(`<label${_attr_class([
|
|
9586
|
-
"
|
|
9587
|
-
"
|
|
9588
|
-
{ ["
|
|
9626
|
+
"_dk",
|
|
9627
|
+
"_dn",
|
|
9628
|
+
{ ["_dl"]: customOn }
|
|
9589
9629
|
])}${customOn ? _attr_style(`--swatch:${input$3.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "b9", input$3.instance.accent || "#3556d8", _resume(function(v) {
|
|
9590
9630
|
setInstance({ accent: v });
|
|
9591
|
-
}, "x6", $scope0_id))}${_attr_class("
|
|
9631
|
+
}, "x6", $scope0_id))}${_attr_class("_do")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "b9")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "b8", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bF")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bG")}><h2${_attr("id", backupId)}${_attr_class("_bT")}>Backup</h2></div><div${_attr_class(["_bK", "_cj"])}><div${_attr_class("_ck")}><div${_attr_class("_dp")}><div${_attr_class("_bL")}>`);
|
|
9592
9632
|
_if(() => {
|
|
9593
9633
|
if (backupBusy === "preflight") {
|
|
9594
|
-
const $
|
|
9595
|
-
_html(`<span${_attr_class("
|
|
9596
|
-
writeScope($
|
|
9634
|
+
const $scope66_id = _scope_id();
|
|
9635
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>${_text_resume($scope66_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9636
|
+
writeScope($scope66_id, {});
|
|
9597
9637
|
return 0;
|
|
9598
9638
|
} else {
|
|
9599
|
-
const $
|
|
9639
|
+
const $scope126_id = _scope_id();
|
|
9600
9640
|
_html(`<span${_attr_class("_bO")}>Save workspaces, settings, skills and tool pins to a file. Code stays on GitHub.</span>`);
|
|
9601
|
-
writeScope($
|
|
9641
|
+
writeScope($scope126_id, {});
|
|
9602
9642
|
return 1;
|
|
9603
9643
|
}
|
|
9604
9644
|
}, $scope0_id, "bg", 1, 1, 1, "</div>", 1);
|
|
9605
9645
|
_if(() => {
|
|
9606
9646
|
if (!backupBusy && !preflight) {
|
|
9607
|
-
const $
|
|
9608
|
-
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($
|
|
9609
|
-
_script($
|
|
9610
|
-
writeScope($
|
|
9647
|
+
const $scope76_id = _scope_id();
|
|
9648
|
+
_html(`<button${_attr_class(btnSm)}>Export…</button>${_el_resume($scope76_id, "a")}`);
|
|
9649
|
+
_script($scope76_id, "x80");
|
|
9650
|
+
writeScope($scope76_id, {});
|
|
9611
9651
|
return 0;
|
|
9612
9652
|
}
|
|
9613
9653
|
}, $scope0_id, "bh", 1, 1, 1, 0, 1);
|
|
9614
9654
|
_html("</div>");
|
|
9615
9655
|
_if(() => {
|
|
9616
9656
|
if (preflight && !backupBusy) {
|
|
9617
|
-
const $
|
|
9618
|
-
_html(`<div${_attr_class("
|
|
9657
|
+
const $scope68_id = _scope_id();
|
|
9658
|
+
_html(`<div${_attr_class("_dr")}><p${_attr_class("_ds")}>In the file: ${_text_resume($scope68_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope68_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope68_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope68_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope68_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope68_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope68_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope68_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_ds")}>Not in the file: `);
|
|
9619
9659
|
_if(() => {
|
|
9620
9660
|
if (preflight.unpushed) {
|
|
9621
|
-
const $
|
|
9622
|
-
_html(` ${_text_resume($
|
|
9661
|
+
const $scope69_id = _scope_id();
|
|
9662
|
+
_html(` ${_text_resume($scope69_id, "a", preflight.unpushed, 2)} unpushed commit${_text_resume($scope69_id, "b", preflight.unpushed === 1 ? "" : "s", 2)}`);
|
|
9623
9663
|
_if(() => {
|
|
9624
9664
|
if (preflight.files) {
|
|
9625
|
-
const $
|
|
9665
|
+
const $scope127_id = _scope_id();
|
|
9626
9666
|
_html(",");
|
|
9627
|
-
writeScope($
|
|
9667
|
+
writeScope($scope127_id, {});
|
|
9628
9668
|
return 0;
|
|
9629
9669
|
}
|
|
9630
|
-
}, $
|
|
9631
|
-
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($
|
|
9670
|
+
}, $scope69_id, "c");
|
|
9671
|
+
_subscribe($preflight_files__closures, _subscribe($preflight_unpushed__closures, writeScope($scope69_id, {})));
|
|
9632
9672
|
return 0;
|
|
9633
9673
|
}
|
|
9634
|
-
}, $
|
|
9635
|
-
_html(`${_text_resume($
|
|
9674
|
+
}, $scope68_id, "m");
|
|
9675
|
+
_html(`${_text_resume($scope68_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_dt")}>`);
|
|
9636
9676
|
_for_of(preflight.workspaces, (w) => {
|
|
9637
|
-
const $
|
|
9677
|
+
const $scope128_id = _scope_id();
|
|
9638
9678
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9639
|
-
_html(`<li${_attr_class("
|
|
9679
|
+
_html(`<li${_attr_class("_du")}><span${_attr_class("_bM")}>${_text_resume($scope128_id, "c", w.name)}</span><ul${_attr_class("_dt")}>`);
|
|
9640
9680
|
_for_of(w.repos, (r) => {
|
|
9641
|
-
const $
|
|
9681
|
+
const $scope129_id = _scope_id();
|
|
9642
9682
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9643
|
-
_html(`<li${_attr_class("
|
|
9683
|
+
_html(`<li${_attr_class("_dv")}><span${_attr_class("_dw")}><span${_attr_class("_w")}>${_text_resume($scope129_id, "d", r.worktree)}/</span>`);
|
|
9644
9684
|
_for_of(r.unpushed, (b) => {
|
|
9645
|
-
const $
|
|
9646
|
-
_html(`<span${_attr_class(["_L", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($
|
|
9685
|
+
const $scope130_id = _scope_id();
|
|
9686
|
+
_html(`<span${_attr_class(["_L", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope130_id, "b", b.count)} unpushed `);
|
|
9647
9687
|
_if(() => {
|
|
9648
9688
|
if (b.branch !== w.name) {
|
|
9649
|
-
const $
|
|
9650
|
-
_html(`<span${_attr_class("_w")}>${_text_resume($
|
|
9651
|
-
writeScope($
|
|
9689
|
+
const $scope133_id = _scope_id();
|
|
9690
|
+
_html(`<span${_attr_class("_w")}>${_text_resume($scope133_id, "b", b.branch)}</span>`);
|
|
9691
|
+
writeScope($scope133_id, {});
|
|
9652
9692
|
return 0;
|
|
9653
9693
|
}
|
|
9654
|
-
}, $
|
|
9655
|
-
_html(`</span>${_el_resume($
|
|
9656
|
-
_subscribe($for_content18__w_name__closures, writeScope($
|
|
9657
|
-
}, "branch", $
|
|
9694
|
+
}, $scope130_id, "c", 1, 1, 1, 0, 1);
|
|
9695
|
+
_html(`</span>${_el_resume($scope130_id, "a")}`);
|
|
9696
|
+
_subscribe($for_content18__w_name__closures, writeScope($scope130_id, { f: b?.branch }));
|
|
9697
|
+
}, "branch", $scope129_id, "e", 1, 1, 1, 0, 1);
|
|
9658
9698
|
_html("</span>");
|
|
9659
9699
|
_if(() => {
|
|
9660
9700
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9661
|
-
const $
|
|
9662
|
-
_html(`<ul${_attr_class("
|
|
9701
|
+
const $scope131_id = _scope_id();
|
|
9702
|
+
_html(`<ul${_attr_class("_dx")}>`);
|
|
9663
9703
|
_for_of(r.modified, (f) => {
|
|
9664
|
-
const $
|
|
9665
|
-
_html(`<li${_attr_class("
|
|
9704
|
+
const $scope134_id = _scope_id();
|
|
9705
|
+
_html(`<li${_attr_class("_dy")}><span${_attr_class([
|
|
9666
9706
|
"_L",
|
|
9667
9707
|
"_N",
|
|
9668
9708
|
tone.warn
|
|
9669
|
-
])} title="Modified, not committed">M</span><span${_attr_class(["_w", "__"])}>${_text_resume($
|
|
9670
|
-
writeScope($
|
|
9671
|
-
}, (f) => f, $
|
|
9709
|
+
])} title="Modified, not committed">M</span><span${_attr_class(["_w", "__"])}>${_text_resume($scope134_id, "d", f)}</span></li>`);
|
|
9710
|
+
writeScope($scope134_id, {});
|
|
9711
|
+
}, (f) => f, $scope131_id, "b", 1, 1, 1, 0, 1);
|
|
9672
9712
|
_for_of(r.untracked, (f) => {
|
|
9673
|
-
const $
|
|
9674
|
-
_html(`<li${_attr_class("
|
|
9675
|
-
writeScope($
|
|
9676
|
-
}, (f) => f, $
|
|
9713
|
+
const $scope135_id = _scope_id();
|
|
9714
|
+
_html(`<li${_attr_class("_dy")}><span${_attr_class(["_L", "_N"])} title=Untracked>?</span><span${_attr_class(["_w", "__"])}>${_text_resume($scope135_id, "d", f)}</span></li>`);
|
|
9715
|
+
writeScope($scope135_id, {});
|
|
9716
|
+
}, (f) => f, $scope131_id, "c", 1, 1, 1, 0, 1);
|
|
9677
9717
|
_for_of(r.ignored, (f) => {
|
|
9678
|
-
const $
|
|
9679
|
-
_html(`<li${_attr_class("
|
|
9680
|
-
writeScope($
|
|
9681
|
-
}, (f) => f, $
|
|
9718
|
+
const $scope136_id = _scope_id();
|
|
9719
|
+
_html(`<li${_attr_class("_dy")}><span${_attr_class(["_L", "_N"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_w", "__"])}>${_text_resume($scope136_id, "d", f)}</span></li>`);
|
|
9720
|
+
writeScope($scope136_id, {});
|
|
9721
|
+
}, (f) => f, $scope131_id, "d", 1, 1, 1, 0, 1);
|
|
9682
9722
|
_if(() => {
|
|
9683
9723
|
if (r.more) {
|
|
9684
|
-
const $
|
|
9685
|
-
_html(`<li${_attr_class(["
|
|
9686
|
-
_subscribe($for_content19__r_more__closures, writeScope($
|
|
9724
|
+
const $scope132_id = _scope_id();
|
|
9725
|
+
_html(`<li${_attr_class(["_dy", "_v"])}>+${_text_resume($scope132_id, "b", r.more, 2)} more</li>`);
|
|
9726
|
+
_subscribe($for_content19__r_more__closures, writeScope($scope132_id, {}));
|
|
9687
9727
|
return 0;
|
|
9688
9728
|
}
|
|
9689
|
-
}, $
|
|
9729
|
+
}, $scope131_id, "e", 1, 1, 1, 0, 1);
|
|
9690
9730
|
_html("</ul>");
|
|
9691
|
-
writeScope($
|
|
9731
|
+
writeScope($scope131_id, {});
|
|
9692
9732
|
return 0;
|
|
9693
9733
|
}
|
|
9694
|
-
}, $
|
|
9734
|
+
}, $scope129_id, "f", 1, 1, 1, 0, 1);
|
|
9695
9735
|
_html("</li>");
|
|
9696
|
-
writeScope($
|
|
9736
|
+
writeScope($scope129_id, {
|
|
9697
9737
|
k: r?.modified,
|
|
9698
9738
|
m: r?.untracked,
|
|
9699
9739
|
o: r?.ignored,
|
|
9700
9740
|
r: r?.more,
|
|
9701
9741
|
v: $for_content19__r_more__closures
|
|
9702
9742
|
});
|
|
9703
|
-
}, "worktree", $
|
|
9743
|
+
}, "worktree", $scope128_id, "d", 1, 1, 1, "</ul>", 1);
|
|
9704
9744
|
_html("</li>");
|
|
9705
|
-
writeScope($
|
|
9745
|
+
writeScope($scope128_id, {
|
|
9706
9746
|
g: w?.name,
|
|
9707
9747
|
i: $for_content18__w_name__closures
|
|
9708
9748
|
});
|
|
9709
|
-
}, "id", $
|
|
9710
|
-
_html(`<div${_attr_class("
|
|
9711
|
-
_script($
|
|
9712
|
-
writeScope($
|
|
9749
|
+
}, "id", $scope68_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9750
|
+
_html(`<div${_attr_class("_dz")}><button${_attr_class([btnSm, { ["_p"]: !preflight.unpushed }])}>${_text_resume($scope68_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope68_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope68_id, "s")}</div></div>`);
|
|
9751
|
+
_script($scope68_id, "x81");
|
|
9752
|
+
writeScope($scope68_id, {});
|
|
9713
9753
|
return 0;
|
|
9714
9754
|
}
|
|
9715
9755
|
}, $scope0_id, "bi", 1, 1, 1, 0, 1);
|
|
9716
|
-
_html(`</div><div${_attr_class("
|
|
9756
|
+
_html(`</div><div${_attr_class("_ck")}><div${_attr_class("_dp")}><div${_attr_class("_bL")}>`);
|
|
9717
9757
|
_if(() => {
|
|
9718
9758
|
if (backupBusy === "restore") {
|
|
9719
|
-
const $
|
|
9720
|
-
_html(`<span${_attr_class("
|
|
9721
|
-
writeScope($
|
|
9759
|
+
const $scope67_id = _scope_id();
|
|
9760
|
+
_html(`<span${_attr_class("_cB")}><span${_attr_class("_E")}></span>${_text_resume($scope67_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9761
|
+
writeScope($scope67_id, {});
|
|
9722
9762
|
return 0;
|
|
9723
9763
|
} else if (restoreDone) {
|
|
9724
|
-
const $
|
|
9725
|
-
_html(`<span${_attr_class("_bO")}>${_text_resume($
|
|
9726
|
-
writeScope($
|
|
9764
|
+
const $scope75_id = _scope_id();
|
|
9765
|
+
_html(`<span${_attr_class("_bO")}>${_text_resume($scope75_id, "b", restoreDone)}</span>`);
|
|
9766
|
+
writeScope($scope75_id, {});
|
|
9727
9767
|
return 1;
|
|
9728
9768
|
} else {
|
|
9729
|
-
const $
|
|
9769
|
+
const $scope137_id = _scope_id();
|
|
9730
9770
|
_html(`<span${_attr_class("_bO")}>Load a backup file. Repos clone in the background.</span>`);
|
|
9731
|
-
writeScope($
|
|
9771
|
+
writeScope($scope137_id, {});
|
|
9732
9772
|
return 2;
|
|
9733
9773
|
}
|
|
9734
9774
|
}, $scope0_id, "bl", 1, 1, 1, "</div>", 1);
|
|
9735
9775
|
_if(() => {
|
|
9736
9776
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9737
|
-
const $
|
|
9738
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9739
|
-
_script($
|
|
9740
|
-
writeScope($
|
|
9777
|
+
const $scope77_id = _scope_id();
|
|
9778
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dq")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope77_id, "b")}</label>`);
|
|
9779
|
+
_script($scope77_id, "x82");
|
|
9780
|
+
writeScope($scope77_id, {});
|
|
9741
9781
|
return 0;
|
|
9742
9782
|
}
|
|
9743
9783
|
}, $scope0_id, "bm", 1, 1, 1, 0, 1);
|
|
9744
9784
|
_html("</div>");
|
|
9745
9785
|
_if(() => {
|
|
9746
9786
|
if (restorePreview && backupBusy !== "restore") {
|
|
9747
|
-
const $
|
|
9787
|
+
const $scope70_id = _scope_id();
|
|
9748
9788
|
const { preview } = restorePreview;
|
|
9749
|
-
_html(`<div${_attr_class("
|
|
9789
|
+
_html(`<div${_attr_class("_dr")}><p${_attr_class("_ds")}>From ${_text_resume($scope70_id, "c", preview.from.host, 2)} on ${_text_resume($scope70_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope70_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
9750
9790
|
_if(() => {
|
|
9751
9791
|
if (preview.workspaces.length) {
|
|
9752
|
-
const $
|
|
9792
|
+
const $scope71_id = _scope_id();
|
|
9753
9793
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9754
9794
|
_for_of(preview.workspaces, (w) => {
|
|
9755
|
-
const $
|
|
9756
|
-
_html(`<li><label${_attr_class(["
|
|
9795
|
+
const $scope72_id = _scope_id();
|
|
9796
|
+
_html(`<li><label${_attr_class(["_dB", { ["_dD"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope72_id, "b", restoreWs.has(w.id))}${_attr_class("_dC")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope72_id, "b")}<span${_attr_class("_bL")}><span${_attr_class("_bN")}><span${_attr_class("_bM")}>${_text_resume($scope72_id, "f", w.name)}</span>`);
|
|
9757
9797
|
_if(() => {
|
|
9758
9798
|
if (w.status === "archived") {
|
|
9759
|
-
const $
|
|
9799
|
+
const $scope141_id = _scope_id();
|
|
9760
9800
|
_html(`<span${_attr_class(["_L", "_N"])}>archived</span>`);
|
|
9761
|
-
writeScope($
|
|
9801
|
+
writeScope($scope141_id, {});
|
|
9762
9802
|
return 0;
|
|
9763
9803
|
}
|
|
9764
|
-
}, $
|
|
9804
|
+
}, $scope72_id, "g", 1, 1, 1, 0, 1);
|
|
9765
9805
|
_if(() => {
|
|
9766
9806
|
if (w.exists) {
|
|
9767
|
-
const $
|
|
9807
|
+
const $scope142_id = _scope_id();
|
|
9768
9808
|
_html(`<span${_attr_class("_L")}>already here</span>`);
|
|
9769
|
-
writeScope($
|
|
9809
|
+
writeScope($scope142_id, {});
|
|
9770
9810
|
return 0;
|
|
9771
9811
|
} else if (w.unknownHost) {
|
|
9772
|
-
const $
|
|
9773
|
-
_html(`<span${_attr_class(["_L", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($
|
|
9774
|
-
writeScope($
|
|
9812
|
+
const $scope140_id = _scope_id();
|
|
9813
|
+
_html(`<span${_attr_class(["_L", tone.warn])} title="Add this GitHub host above first">unknown host ${_text_resume($scope140_id, "b", w.unknownHost, 2)}</span>`);
|
|
9814
|
+
writeScope($scope140_id, {});
|
|
9775
9815
|
return 1;
|
|
9776
9816
|
}
|
|
9777
|
-
}, $
|
|
9778
|
-
_html(`</span><span${_attr_class("_bO")}>${_text_resume($
|
|
9779
|
-
_script($
|
|
9780
|
-
_subscribe($restoreWs__closures, writeScope($
|
|
9817
|
+
}, $scope72_id, "h", 1, 1, 1, 0, 1);
|
|
9818
|
+
_html(`</span><span${_attr_class("_bO")}>${_text_resume($scope72_id, "j", w.repos.join(", ") || "no repos")}</span></span></label>${_el_resume($scope72_id, "a")}</li>`);
|
|
9819
|
+
_script($scope72_id, "x83");
|
|
9820
|
+
_subscribe($restoreWs__closures, writeScope($scope72_id, {
|
|
9781
9821
|
n: w?.unknownHost,
|
|
9782
9822
|
p: w?.id
|
|
9783
9823
|
}));
|
|
9784
|
-
}, "id", $
|
|
9785
|
-
_subscribe($preview_workspaces__closures, writeScope($
|
|
9824
|
+
}, "id", $scope71_id, "a", 1, 1, 1, "</ul>", 1);
|
|
9825
|
+
_subscribe($preview_workspaces__closures, writeScope($scope71_id, {}));
|
|
9786
9826
|
return 0;
|
|
9787
9827
|
} else {
|
|
9788
|
-
const $
|
|
9828
|
+
const $scope139_id = _scope_id();
|
|
9789
9829
|
_html(`<p${_attr_class("_bQ")}>No workspaces in this file.</p>`);
|
|
9790
|
-
writeScope($
|
|
9830
|
+
writeScope($scope139_id, {});
|
|
9791
9831
|
return 1;
|
|
9792
9832
|
}
|
|
9793
|
-
}, $
|
|
9833
|
+
}, $scope70_id, "f", 1, 1, 1, 0, 1);
|
|
9794
9834
|
const parts = [
|
|
9795
9835
|
{
|
|
9796
9836
|
key: "tools",
|
|
@@ -9819,50 +9859,50 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9819
9859
|
];
|
|
9820
9860
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9821
9861
|
_for_of(parts, (p) => {
|
|
9822
|
-
const $
|
|
9862
|
+
const $scope73_id = _scope_id();
|
|
9823
9863
|
const $for_content11__p_missing__closures = /* @__PURE__ */ new Set();
|
|
9824
9864
|
const $for_content11__p_missing_length__closures = /* @__PURE__ */ new Set();
|
|
9825
9865
|
const $for_content11__p_total__closures = /* @__PURE__ */ new Set();
|
|
9826
9866
|
_if(() => {
|
|
9827
9867
|
if (p.total) {
|
|
9828
|
-
const $
|
|
9829
|
-
_html(`<li><label${_attr_class(["
|
|
9868
|
+
const $scope74_id = _scope_id();
|
|
9869
|
+
_html(`<li><label${_attr_class(["_dB", { ["_dD"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope74_id, "b", restoreParts[p.key])}${_attr_class("_dC")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope74_id, "b")}<span${_attr_class("_bL")}><span${_attr_class("_bM")}>${_text_resume($scope74_id, "e", p.label)}</span><span${_attr_class("_bO")}>`);
|
|
9830
9870
|
_if(() => {
|
|
9831
9871
|
if (p.key === "settings") {
|
|
9832
|
-
const $
|
|
9833
|
-
_html(`${_text_resume($
|
|
9872
|
+
const $scope138_id = _scope_id();
|
|
9873
|
+
_html(`${_text_resume($scope138_id, "a", preview.settings)} value${_text_resume($scope138_id, "b", preview.settings === 1 ? "" : "s", 2)}`);
|
|
9834
9874
|
_if(() => {
|
|
9835
9875
|
if (p.missing.length) {
|
|
9836
|
-
const $
|
|
9837
|
-
_html(`, add host${_text_resume($
|
|
9838
|
-
_subscribe($for_content11__p_missing_length__closures, _subscribe($for_content11__p_missing__closures, writeScope($
|
|
9876
|
+
const $scope143_id = _scope_id();
|
|
9877
|
+
_html(`, add host${_text_resume($scope143_id, "a", p.missing.length === 1 ? "" : "s", 2)} ${_text_resume($scope143_id, "b", p.missing.join(", "), 2)}`);
|
|
9878
|
+
_subscribe($for_content11__p_missing_length__closures, _subscribe($for_content11__p_missing__closures, writeScope($scope143_id, { Ck: 1 })));
|
|
9839
9879
|
return 0;
|
|
9840
9880
|
}
|
|
9841
|
-
}, $
|
|
9842
|
-
_subscribe($for_content11__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($
|
|
9881
|
+
}, $scope138_id, "c");
|
|
9882
|
+
_subscribe($for_content11__p_missing_length__closures, _subscribe($preview_settings__closures, writeScope($scope138_id, {})));
|
|
9843
9883
|
return 0;
|
|
9844
9884
|
} else if (p.missing.length) {
|
|
9845
|
-
const $
|
|
9846
|
-
_html(`${_text_resume($
|
|
9847
|
-
_subscribe($for_content11__p_missing_length__closures, _subscribe($for_content11__p_missing__closures, writeScope($
|
|
9885
|
+
const $scope144_id = _scope_id();
|
|
9886
|
+
_html(`${_text_resume($scope144_id, "a", p.missing.length)} to install: ${_text_resume($scope144_id, "b", p.missing.join(", "), 2)}`);
|
|
9887
|
+
_subscribe($for_content11__p_missing_length__closures, _subscribe($for_content11__p_missing__closures, writeScope($scope144_id, {
|
|
9848
9888
|
Cj: 1,
|
|
9849
9889
|
Ck: 2
|
|
9850
9890
|
})));
|
|
9851
9891
|
return 1;
|
|
9852
9892
|
} else {
|
|
9853
|
-
const $
|
|
9854
|
-
_html(`all ${_text_resume($
|
|
9855
|
-
_subscribe($for_content11__p_total__closures, writeScope($
|
|
9893
|
+
const $scope145_id = _scope_id();
|
|
9894
|
+
_html(`all ${_text_resume($scope145_id, "a", p.total, 2)} already installed`);
|
|
9895
|
+
_subscribe($for_content11__p_total__closures, writeScope($scope145_id, {}));
|
|
9856
9896
|
return 2;
|
|
9857
9897
|
}
|
|
9858
|
-
}, $
|
|
9859
|
-
_html(`</span></label>${_el_resume($
|
|
9860
|
-
_script($
|
|
9861
|
-
_subscribe($restoreParts__closures, writeScope($
|
|
9898
|
+
}, $scope74_id, "f", 1, 1, 1, "</span>");
|
|
9899
|
+
_html(`</span></label>${_el_resume($scope74_id, "a")}</li>`);
|
|
9900
|
+
_script($scope74_id, "x84");
|
|
9901
|
+
_subscribe($restoreParts__closures, writeScope($scope74_id, {}));
|
|
9862
9902
|
return 0;
|
|
9863
9903
|
}
|
|
9864
|
-
}, $
|
|
9865
|
-
writeScope($
|
|
9904
|
+
}, $scope73_id, "a", 1, 1, 1, 0, 1);
|
|
9905
|
+
writeScope($scope73_id, {
|
|
9866
9906
|
d: p?.total,
|
|
9867
9907
|
e: p?.missing,
|
|
9868
9908
|
f: p?.missing?.length,
|
|
@@ -9872,10 +9912,10 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9872
9912
|
k: $for_content11__p_missing_length__closures,
|
|
9873
9913
|
i: $for_content11__p_total__closures
|
|
9874
9914
|
});
|
|
9875
|
-
}, "key", $
|
|
9876
|
-
_html(`</ul><div${_attr_class("
|
|
9877
|
-
_script($
|
|
9878
|
-
writeScope($
|
|
9915
|
+
}, "key", $scope70_id, "h");
|
|
9916
|
+
_html(`</ul><div${_attr_class("_dz")}><button${_attr_class([btnSm, "_p"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope70_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope70_id, "k")}</div></div>`);
|
|
9917
|
+
_script($scope70_id, "x85");
|
|
9918
|
+
writeScope($scope70_id, {});
|
|
9879
9919
|
return 0;
|
|
9880
9920
|
}
|
|
9881
9921
|
}, $scope0_id, "bn", 1, 1, 1, 0, 1);
|
|
@@ -9886,26 +9926,26 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9886
9926
|
_set_serialize_reason(10);
|
|
9887
9927
|
const $childScope13 = _peek_scope_id();
|
|
9888
9928
|
prompt_dialog_default({
|
|
9889
|
-
label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)`,
|
|
9929
|
+
label: `Pin ${versionPick.label}: latest, lts, a prefix (22), or exact (22.11.0)${versionPick.newest ? `. Newest release: ${versionPick.newest}` : ""}`,
|
|
9890
9930
|
placeholder: "latest",
|
|
9891
9931
|
value: versionPick.current,
|
|
9892
9932
|
submitLabel: "Install",
|
|
9893
9933
|
open: versionPick != null,
|
|
9894
9934
|
openChange: _resume(function(o) {
|
|
9895
9935
|
if (!o) versionPick = null;
|
|
9896
|
-
}, "
|
|
9936
|
+
}, "x41", $scope37_id),
|
|
9897
9937
|
onSubmit: _resume(function(v) {
|
|
9898
9938
|
const pick = versionPick;
|
|
9899
9939
|
versionPick = null;
|
|
9900
9940
|
run(pick.id, "install", v);
|
|
9901
|
-
}, "
|
|
9941
|
+
}, "x42", $scope37_id)
|
|
9902
9942
|
});
|
|
9903
9943
|
writeScope($scope37_id, { a: _existing_scope($childScope13) });
|
|
9904
9944
|
return 0;
|
|
9905
9945
|
}
|
|
9906
9946
|
}, $scope0_id, "bo", 1, 1, 1, 0, 1);
|
|
9907
|
-
_script($scope0_id, "
|
|
9908
|
-
_script($scope0_id, "
|
|
9947
|
+
_script($scope0_id, "x86");
|
|
9948
|
+
_script($scope0_id, "x87");
|
|
9909
9949
|
writeScope($scope0_id, {
|
|
9910
9950
|
bs: input$3.setupChange,
|
|
9911
9951
|
bt: input$3.agentsChange,
|
|
@@ -9931,138 +9971,140 @@ var settings_page_default = _template("x", (input$3) => {
|
|
|
9931
9971
|
cj: confirmingRemove,
|
|
9932
9972
|
ck: versionPick,
|
|
9933
9973
|
cl: versionPick?.label,
|
|
9934
|
-
cm: versionPick?.
|
|
9935
|
-
cn:
|
|
9936
|
-
co:
|
|
9937
|
-
|
|
9938
|
-
cr:
|
|
9939
|
-
cs:
|
|
9940
|
-
ct: hits
|
|
9941
|
-
cu:
|
|
9942
|
-
cv: self
|
|
9943
|
-
cw: self?.
|
|
9944
|
-
cx: self?.
|
|
9945
|
-
cy:
|
|
9946
|
-
|
|
9947
|
-
|
|
9948
|
-
|
|
9949
|
-
d6: skills
|
|
9950
|
-
d7: skills?.global
|
|
9951
|
-
d8: skills?.
|
|
9952
|
-
|
|
9953
|
-
db:
|
|
9954
|
-
dc:
|
|
9955
|
-
dd: skillHits
|
|
9956
|
-
de:
|
|
9957
|
-
df:
|
|
9958
|
-
|
|
9959
|
-
|
|
9960
|
-
dk:
|
|
9961
|
-
dl:
|
|
9962
|
-
|
|
9963
|
-
|
|
9964
|
-
|
|
9965
|
-
|
|
9966
|
-
dw:
|
|
9967
|
-
dx:
|
|
9968
|
-
dy:
|
|
9969
|
-
|
|
9970
|
-
e1:
|
|
9971
|
-
|
|
9972
|
-
e4:
|
|
9973
|
-
e5:
|
|
9974
|
-
|
|
9975
|
-
|
|
9976
|
-
ea: skillSeq.
|
|
9977
|
-
eb:
|
|
9978
|
-
|
|
9979
|
-
ef:
|
|
9980
|
-
eg:
|
|
9981
|
-
eh:
|
|
9982
|
-
ei:
|
|
9983
|
-
|
|
9984
|
-
em: preflight?.contents?.
|
|
9985
|
-
en: preflight?.contents?.
|
|
9986
|
-
eo: preflight?.contents?.
|
|
9987
|
-
ep: preflight?.contents?.
|
|
9988
|
-
eq: preflight?.
|
|
9989
|
-
er: preflight?.
|
|
9990
|
-
es: preflight?.
|
|
9991
|
-
et:
|
|
9992
|
-
|
|
9993
|
-
ew: restoreWs
|
|
9994
|
-
ex:
|
|
9995
|
-
|
|
9996
|
-
|
|
9997
|
-
|
|
9998
|
-
f4:
|
|
9999
|
-
f5:
|
|
10000
|
-
f6:
|
|
10001
|
-
f7:
|
|
10002
|
-
f8:
|
|
10003
|
-
f9:
|
|
10004
|
-
fa:
|
|
10005
|
-
|
|
10006
|
-
|
|
10007
|
-
|
|
10008
|
-
fj:
|
|
10009
|
-
fk:
|
|
10010
|
-
fl:
|
|
10011
|
-
|
|
10012
|
-
|
|
10013
|
-
|
|
10014
|
-
|
|
10015
|
-
|
|
10016
|
-
|
|
10017
|
-
|
|
10018
|
-
|
|
10019
|
-
|
|
10020
|
-
gd: restorePreview?.preview?.from?.
|
|
10021
|
-
ge: restorePreview?.preview?.
|
|
10022
|
-
gf: restorePreview?.preview?.
|
|
10023
|
-
gg: restorePreview?.preview?.
|
|
10024
|
-
gh: restorePreview?.preview?.
|
|
10025
|
-
gi: restorePreview?.preview?.
|
|
10026
|
-
gj: restorePreview?.preview?.
|
|
10027
|
-
gk: restorePreview?.preview?.
|
|
10028
|
-
|
|
10029
|
-
|
|
9974
|
+
cm: versionPick?.newest,
|
|
9975
|
+
cn: versionPick?.current,
|
|
9976
|
+
co: hostInput,
|
|
9977
|
+
cp: addingHost,
|
|
9978
|
+
cr: hostBusy,
|
|
9979
|
+
cs: query,
|
|
9980
|
+
ct: hits,
|
|
9981
|
+
cu: hits?.length,
|
|
9982
|
+
cv: self,
|
|
9983
|
+
cw: self?.install,
|
|
9984
|
+
cx: self?.latest,
|
|
9985
|
+
cy: self?.version,
|
|
9986
|
+
cz: selfUpdating,
|
|
9987
|
+
d2: searching,
|
|
9988
|
+
d4: searchTimer.id,
|
|
9989
|
+
d6: skills,
|
|
9990
|
+
d7: skills?.global,
|
|
9991
|
+
d8: skills?.global?.length,
|
|
9992
|
+
d9: skills?.available,
|
|
9993
|
+
db: skills?.agents?.length,
|
|
9994
|
+
dc: skillQuery,
|
|
9995
|
+
dd: skillHits,
|
|
9996
|
+
de: skillHits?.length,
|
|
9997
|
+
df: skillSearching,
|
|
9998
|
+
dg: confirmingSkill,
|
|
9999
|
+
di: skillTimer.id,
|
|
10000
|
+
dk: machineOpen,
|
|
10001
|
+
dl: skillsOpen,
|
|
10002
|
+
dm: addingSkill,
|
|
10003
|
+
do: addingTool,
|
|
10004
|
+
dq: setThemeMode,
|
|
10005
|
+
du: applySetup,
|
|
10006
|
+
dw: syncAgents,
|
|
10007
|
+
dx: retryWhenBack,
|
|
10008
|
+
dy: loadSetup,
|
|
10009
|
+
dz: loadSelf,
|
|
10010
|
+
e1: updateSelf,
|
|
10011
|
+
e2: loadUsage,
|
|
10012
|
+
e4: refresh,
|
|
10013
|
+
e5: refreshUsage,
|
|
10014
|
+
e6: setActive,
|
|
10015
|
+
e8: run,
|
|
10016
|
+
ea: skillSeq.applied,
|
|
10017
|
+
eb: skillSeq.issued,
|
|
10018
|
+
ec: applySkills,
|
|
10019
|
+
ef: loadSkills,
|
|
10020
|
+
eg: runSkill,
|
|
10021
|
+
eh: backupBusy,
|
|
10022
|
+
ei: backupLine,
|
|
10023
|
+
ej: preflight,
|
|
10024
|
+
em: preflight?.contents?.workspaces,
|
|
10025
|
+
en: preflight?.contents?.archived,
|
|
10026
|
+
eo: preflight?.contents?.tools,
|
|
10027
|
+
ep: preflight?.contents?.skills,
|
|
10028
|
+
eq: preflight?.contents?.agents,
|
|
10029
|
+
er: preflight?.unpushed,
|
|
10030
|
+
es: preflight?.files,
|
|
10031
|
+
et: preflight?.workspaces,
|
|
10032
|
+
eu: restorePreview,
|
|
10033
|
+
ew: restoreWs,
|
|
10034
|
+
ex: restoreWs?.size,
|
|
10035
|
+
ey: restoreParts,
|
|
10036
|
+
f0: restoreDone,
|
|
10037
|
+
f2: downloadManifest,
|
|
10038
|
+
f4: startExport,
|
|
10039
|
+
f5: pickRestoreFile,
|
|
10040
|
+
f6: toggleRestoreWs,
|
|
10041
|
+
f7: runRestore,
|
|
10042
|
+
f8: searchSkills,
|
|
10043
|
+
f9: changeHost,
|
|
10044
|
+
fa: runEach,
|
|
10045
|
+
fb: setPreferred,
|
|
10046
|
+
fe: saveTimer.id,
|
|
10047
|
+
fg: setInstance,
|
|
10048
|
+
fj: setEnabled,
|
|
10049
|
+
fk: search,
|
|
10050
|
+
fl: outdated,
|
|
10051
|
+
fm: aliasPin,
|
|
10052
|
+
fn: tools,
|
|
10053
|
+
fp: missingInstallable,
|
|
10054
|
+
fs: outdatedIds,
|
|
10055
|
+
fu: families,
|
|
10056
|
+
fw: families.length,
|
|
10057
|
+
fy: instanceIds,
|
|
10058
|
+
g0: accountsFor,
|
|
10059
|
+
g1: strayAccountsFor,
|
|
10060
|
+
gd: restorePreview?.preview?.from?.host,
|
|
10061
|
+
ge: restorePreview?.preview?.from?.exportedAt,
|
|
10062
|
+
gf: restorePreview?.preview?.from?.version,
|
|
10063
|
+
gg: restorePreview?.preview?.workspaces,
|
|
10064
|
+
gh: restorePreview?.preview?.workspaces?.length,
|
|
10065
|
+
gi: restorePreview?.preview?.tools,
|
|
10066
|
+
gj: restorePreview?.preview?.skills,
|
|
10067
|
+
gk: restorePreview?.preview?.agents,
|
|
10068
|
+
gl: restorePreview?.preview?.hosts,
|
|
10069
|
+
gm: restorePreview?.preview?.settings,
|
|
10070
|
+
gq: $setup_missing__closures,
|
|
10071
|
+
gu: $refreshing__closures,
|
|
10030
10072
|
d: _existing_scope($childScope2),
|
|
10031
|
-
|
|
10032
|
-
|
|
10033
|
-
|
|
10034
|
-
|
|
10035
|
-
|
|
10036
|
-
|
|
10037
|
-
|
|
10038
|
-
|
|
10039
|
-
|
|
10040
|
-
|
|
10073
|
+
gt: $error__closures,
|
|
10074
|
+
hb: $self_latest__closures,
|
|
10075
|
+
hc: $self_version__closures,
|
|
10076
|
+
gv: $active__closures,
|
|
10077
|
+
gn: $si__input_preferred && $input_preferred__closures,
|
|
10078
|
+
ib: $accountsFor2__closures,
|
|
10079
|
+
gx: $authCodes__closures,
|
|
10080
|
+
gy: $confirmingRemove__closures,
|
|
10081
|
+
hr: $si__input_setupChange && $refresh2__closures,
|
|
10082
|
+
hs: $run2__closures,
|
|
10041
10083
|
a6: _existing_scope($childScope10),
|
|
10042
|
-
|
|
10043
|
-
|
|
10044
|
-
|
|
10045
|
-
|
|
10084
|
+
hk: $skillQuery__closures,
|
|
10085
|
+
ho: $confirmingSkill__closures,
|
|
10086
|
+
hg: $skills__closures,
|
|
10087
|
+
hj: $skills_available__closures,
|
|
10046
10088
|
af: _existing_scope($childScope12),
|
|
10047
|
-
|
|
10048
|
-
|
|
10049
|
-
|
|
10050
|
-
|
|
10051
|
-
|
|
10052
|
-
|
|
10053
|
-
|
|
10054
|
-
|
|
10055
|
-
|
|
10089
|
+
h6: $query__closures,
|
|
10090
|
+
ha: $self_install__closures,
|
|
10091
|
+
hd: $selfUpdating__closures,
|
|
10092
|
+
hz: $preflight_unpushed__closures,
|
|
10093
|
+
i0: $preflight_files__closures,
|
|
10094
|
+
i2: $restoreWs__closures,
|
|
10095
|
+
ig: $preview_workspaces__closures,
|
|
10096
|
+
im: $preview_settings__closures,
|
|
10097
|
+
i4: $restoreParts__closures
|
|
10056
10098
|
});
|
|
10057
10099
|
_resume_branch($scope0_id);
|
|
10058
10100
|
});
|
|
10059
10101
|
//#endregion
|
|
10060
10102
|
//#region src/tags/new-workspace.css.ts
|
|
10061
|
-
var content$1 = "
|
|
10062
|
-
var curBase = "
|
|
10063
|
-
var archived = "
|
|
10064
|
-
var archivedHint = "
|
|
10065
|
-
var archivedCard = "
|
|
10103
|
+
var content$1 = "_bU _bx";
|
|
10104
|
+
var curBase = "_b2 _W _V";
|
|
10105
|
+
var archived = "_b7 _bF";
|
|
10106
|
+
var archivedHint = "_b8 _V";
|
|
10107
|
+
var archivedCard = "_b9 _bK";
|
|
10066
10108
|
//#endregion
|
|
10067
10109
|
//#region src/tags/icons/icon-group.marko
|
|
10068
10110
|
var icon_group_default = _template("eb", (input) => {
|
|
@@ -10139,8 +10181,8 @@ function fuzzy(query, text) {
|
|
|
10139
10181
|
}
|
|
10140
10182
|
return true;
|
|
10141
10183
|
}
|
|
10142
|
-
var resultRow = "
|
|
10143
|
-
var resultBranch = "
|
|
10184
|
+
var resultRow = "_eh _G";
|
|
10185
|
+
var resultBranch = "_ej _2 _j";
|
|
10144
10186
|
//#endregion
|
|
10145
10187
|
//#region src/tags/branch-pick.marko
|
|
10146
10188
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -10153,7 +10195,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
10153
10195
|
let branchFilter = "";
|
|
10154
10196
|
let reloadTick = 0;
|
|
10155
10197
|
let refreshing = false;
|
|
10156
|
-
_html(`<div${_attr_class("
|
|
10198
|
+
_html(`<div${_attr_class("_el")}>`);
|
|
10157
10199
|
_if(() => {
|
|
10158
10200
|
{
|
|
10159
10201
|
const $scope4_id = _scope_id();
|
|
@@ -10258,18 +10300,18 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
10258
10300
|
_resume_branch($scope8_id);
|
|
10259
10301
|
}, $scope0_id) };
|
|
10260
10302
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
10261
|
-
_html(`<div${_attr_class([compact ? "
|
|
10303
|
+
_html(`<div${_attr_class([compact ? "_dE" : "_eb", { ["_dF"]: compact && !input$2.open }])}>`);
|
|
10262
10304
|
_if(() => {
|
|
10263
10305
|
if (!compact && ssoPending.length) {
|
|
10264
10306
|
const $scope10_id = _scope_id();
|
|
10265
|
-
_html(`<div${_attr_class("
|
|
10307
|
+
_html(`<div${_attr_class("_ec")}>`);
|
|
10266
10308
|
ssoBlock.content({});
|
|
10267
10309
|
_html("</div>");
|
|
10268
10310
|
writeScope($scope10_id, {});
|
|
10269
10311
|
return 0;
|
|
10270
10312
|
}
|
|
10271
10313
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
10272
|
-
_html(`<label${_attr_class(["_Z", compact && "
|
|
10314
|
+
_html(`<label${_attr_class(["_Z", compact && "_dG"])}>`);
|
|
10273
10315
|
icon_search_default({
|
|
10274
10316
|
size: 14,
|
|
10275
10317
|
class: "_0"
|
|
@@ -10281,12 +10323,12 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
10281
10323
|
}, "v0", $scope0_id))}${_attr_class([
|
|
10282
10324
|
compact ? "_X" : inputLg,
|
|
10283
10325
|
"_1",
|
|
10284
|
-
compact && "
|
|
10326
|
+
compact && "_dH"
|
|
10285
10327
|
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "e")}</label>${_el_resume($scope0_id, "c", $sg__input_compact)}`);
|
|
10286
10328
|
_if(() => {
|
|
10287
10329
|
if (compact) {
|
|
10288
10330
|
const $scope1_id = _scope_id();
|
|
10289
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
10331
|
+
_html(`<button${_attr_class([iconBtnRow, "_dI"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
10290
10332
|
icon_xmark_default({ size: 12 });
|
|
10291
10333
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
10292
10334
|
_script($scope1_id, "v14");
|
|
@@ -10294,11 +10336,11 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
10294
10336
|
return 0;
|
|
10295
10337
|
}
|
|
10296
10338
|
}, $scope0_id, "f", $sg__input_compact__OR__input_open, $sg__input_compact, 1, 0, 1);
|
|
10297
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
10339
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_ed"])}${_attr("hidden", !hasBody || compact && !input$2.open)}>`);
|
|
10298
10340
|
_if(() => {
|
|
10299
10341
|
if (compact && ssoPending.length) {
|
|
10300
10342
|
const $scope11_id = _scope_id();
|
|
10301
|
-
_html(`<div${_attr_class("
|
|
10343
|
+
_html(`<div${_attr_class("_ec")}>`);
|
|
10302
10344
|
ssoBlock.content({});
|
|
10303
10345
|
_html("</div>");
|
|
10304
10346
|
writeScope($scope11_id, {});
|
|
@@ -10308,16 +10350,16 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
10308
10350
|
_if(() => {
|
|
10309
10351
|
if (pasted) {
|
|
10310
10352
|
const $scope2_id = _scope_id();
|
|
10311
|
-
_html(`<ul${_attr_class("
|
|
10353
|
+
_html(`<ul${_attr_class("_ee")}><li><div${_attr_class(["_eg", "_ef"])}><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)`)}>`);
|
|
10312
10354
|
icon_plus_default({
|
|
10313
10355
|
size: 12,
|
|
10314
|
-
class: "
|
|
10356
|
+
class: "_en"
|
|
10315
10357
|
});
|
|
10316
|
-
_html(`<span${_attr_class("
|
|
10358
|
+
_html(`<span${_attr_class("_eo")}>${_text_resume($scope2_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope2_id, "c")}`);
|
|
10317
10359
|
_if(() => {
|
|
10318
10360
|
if (pastedForkable) {
|
|
10319
10361
|
const $scope9_id = _scope_id();
|
|
10320
|
-
_html(`<button${_attr_class(["
|
|
10362
|
+
_html(`<button${_attr_class(["_ek", { ["_ei"]: 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"}>`);
|
|
10321
10363
|
_if(() => {
|
|
10322
10364
|
if (pasteWillFork) {
|
|
10323
10365
|
const $scope13_id = _scope_id();
|
|
@@ -10337,7 +10379,7 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
10337
10379
|
return 0;
|
|
10338
10380
|
}
|
|
10339
10381
|
}, $scope2_id, "g", 1, 1, 1, 0, 1);
|
|
10340
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
10382
|
+
_html(`<button${_attr_class([resultBranch, { ["_ei"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
10341
10383
|
icon_branch_default({ size: 12 });
|
|
10342
10384
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
10343
10385
|
_if(() => {
|
|
@@ -10372,15 +10414,15 @@ var repo_picker_default = _template("v", (input$2) => {
|
|
|
10372
10414
|
_if(() => {
|
|
10373
10415
|
if (results.length) {
|
|
10374
10416
|
const $scope4_id = _scope_id();
|
|
10375
|
-
_html(`<ul${_attr_class("
|
|
10417
|
+
_html(`<ul${_attr_class("_ee")}>`);
|
|
10376
10418
|
_for_of(results, (repo, i) => {
|
|
10377
10419
|
const $scope5_id = _scope_id();
|
|
10378
|
-
_html(`<li><div${_attr_class(["
|
|
10420
|
+
_html(`<li><div${_attr_class(["_eg", { ["_ef"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
10379
10421
|
icon_plus_default({
|
|
10380
10422
|
size: 12,
|
|
10381
|
-
class: "
|
|
10423
|
+
class: "_en"
|
|
10382
10424
|
});
|
|
10383
|
-
_html(`<span${_attr_class("
|
|
10425
|
+
_html(`<span${_attr_class("_eo")}>${_text_resume($scope5_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope5_id, "b")}<button${_attr_class([resultBranch, { ["_ei"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
10384
10426
|
icon_branch_default({ size: 12 });
|
|
10385
10427
|
_html(`</button>${_el_resume($scope5_id, "f")}</div>${_el_resume($scope5_id, "a")}`);
|
|
10386
10428
|
_if(() => {
|
|
@@ -10580,8 +10622,8 @@ function parseInvite(text) {
|
|
|
10580
10622
|
}
|
|
10581
10623
|
//#endregion
|
|
10582
10624
|
//#region src/tags/join-dialog.css.ts
|
|
10583
|
-
var dlg = "
|
|
10584
|
-
var hint = "
|
|
10625
|
+
var dlg = "_dZ _dV";
|
|
10626
|
+
var hint = "_d0 _V";
|
|
10585
10627
|
//#endregion
|
|
10586
10628
|
//#region src/tags/join-dialog.marko
|
|
10587
10629
|
var api$5;
|
|
@@ -10710,26 +10752,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
10710
10752
|
content: _content("o12", () => {
|
|
10711
10753
|
_scope_reason();
|
|
10712
10754
|
const $scope1_id = _scope_id();
|
|
10713
|
-
_html(`<h2${_attr_class("
|
|
10755
|
+
_html(`<h2${_attr_class("_dW")}${_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([
|
|
10714
10756
|
"_X",
|
|
10715
10757
|
"_w",
|
|
10716
|
-
"
|
|
10758
|
+
"_d2"
|
|
10717
10759
|
])} 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")}`);
|
|
10718
10760
|
_if(() => {
|
|
10719
10761
|
if (parsed.error) {
|
|
10720
10762
|
const $scope8_id = _scope_id();
|
|
10721
|
-
_html(`<p${_attr_class([hint, "
|
|
10763
|
+
_html(`<p${_attr_class([hint, "_d1"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
10722
10764
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
10723
10765
|
return 0;
|
|
10724
10766
|
} else if (parsed.ok) {
|
|
10725
10767
|
const $scope3_id = _scope_id();
|
|
10726
|
-
_html(`<ul${_attr_class("
|
|
10768
|
+
_html(`<ul${_attr_class("_d3")}>`);
|
|
10727
10769
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
10728
10770
|
const $scope9_id = _scope_id();
|
|
10729
|
-
_html(`<li${_attr_class("
|
|
10771
|
+
_html(`<li${_attr_class("_d4")}><span${_attr_class("_d5")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
10730
10772
|
writeScope($scope9_id, {});
|
|
10731
10773
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
10732
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
10774
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_w")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_d6")}><span${_attr_class("_bT")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
10733
10775
|
name = _new_name;
|
|
10734
10776
|
}, "o1", $scope3_id))}${_attr_class("_X")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
10735
10777
|
_script($scope3_id, "o8");
|
|
@@ -10766,10 +10808,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
10766
10808
|
_if(() => {
|
|
10767
10809
|
if (busy && steps$2.length) {
|
|
10768
10810
|
const $scope6_id = _scope_id();
|
|
10769
|
-
_html(`<ul${_attr_class("
|
|
10811
|
+
_html(`<ul${_attr_class("_d7")}>`);
|
|
10770
10812
|
_for_of(steps$2, (step$2, i) => {
|
|
10771
10813
|
const $scope7_id = _scope_id();
|
|
10772
|
-
_html(`<li${_attr_class(["
|
|
10814
|
+
_html(`<li${_attr_class(["_d9", { ["_d8"]: i === steps$2.length - 1 }])}>`);
|
|
10773
10815
|
_if(() => {
|
|
10774
10816
|
if (i === steps$2.length - 1) {
|
|
10775
10817
|
const $scope10_id = _scope_id();
|
|
@@ -10778,7 +10820,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
10778
10820
|
return 0;
|
|
10779
10821
|
} else {
|
|
10780
10822
|
const $scope11_id = _scope_id();
|
|
10781
|
-
_html(`<span${_attr_class("
|
|
10823
|
+
_html(`<span${_attr_class("_d_")}>`);
|
|
10782
10824
|
icon_check_default({ size: 14 });
|
|
10783
10825
|
_html("</span>");
|
|
10784
10826
|
writeScope($scope11_id, {});
|
|
@@ -10935,7 +10977,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
10935
10977
|
}
|
|
10936
10978
|
}, "s6", $scope0_id);
|
|
10937
10979
|
const titleId = _id();
|
|
10938
|
-
_html(`<div${_attr_class("
|
|
10980
|
+
_html(`<div${_attr_class("_bv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bw")}><div${_attr_class(content$1)}>`);
|
|
10939
10981
|
_set_serialize_reason({
|
|
10940
10982
|
0: _serialize_guard($scope0_reason, 2),
|
|
10941
10983
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -10984,23 +11026,23 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
10984
11026
|
return 0;
|
|
10985
11027
|
}
|
|
10986
11028
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
10987
|
-
_html(`<label${_attr_class("
|
|
11029
|
+
_html(`<label${_attr_class("_bX")}><span${_attr_class("_bT")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
10988
11030
|
name = _new_name;
|
|
10989
|
-
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bF")}><div${_attr_class("
|
|
11031
|
+
}, "s0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bF")}><div${_attr_class("_bY")}><h2${_attr_class("_bT")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
10990
11032
|
_set_serialize_reason(1);
|
|
10991
11033
|
const $childScope2 = _peek_scope_id();
|
|
10992
11034
|
icon_refresh_default({
|
|
10993
11035
|
size: 14,
|
|
10994
11036
|
class: catalogRefreshing && "_D"
|
|
10995
11037
|
});
|
|
10996
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
11038
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_bZ")}>`);
|
|
10997
11039
|
_for_of(selected, (repo) => {
|
|
10998
11040
|
const $scope4_id = _scope_id();
|
|
10999
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
11041
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_b0")}>${_text_resume($scope4_id, "c", repoLabel(repo.fullName))}</span>`);
|
|
11000
11042
|
_if(() => {
|
|
11001
11043
|
if (repo.fork !== void 0) {
|
|
11002
11044
|
const $scope5_id = _scope_id();
|
|
11003
|
-
_html(`<button${_attr_class(["
|
|
11045
|
+
_html(`<button${_attr_class(["_b3", { ["_b1"]: 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)}>`);
|
|
11004
11046
|
_if(() => {
|
|
11005
11047
|
if (repo.fork) {
|
|
11006
11048
|
const $scope14_id = _scope_id();
|
|
@@ -11023,7 +11065,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
11023
11065
|
_html(`<button${_attr_class([
|
|
11024
11066
|
curBase,
|
|
11025
11067
|
"_w",
|
|
11026
|
-
{ ["
|
|
11068
|
+
{ ["_b1"]: branchesFor === repo.fullName }
|
|
11027
11069
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
11028
11070
|
icon_branch_default({ size: 12 });
|
|
11029
11071
|
_html(`${_text_resume($scope4_id, "g", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "e")}<button${_attr_class([iconBtnXs, "_6"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -11084,10 +11126,10 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
11084
11126
|
_if(() => {
|
|
11085
11127
|
if (busy && steps.length) {
|
|
11086
11128
|
const $scope11_id = _scope_id();
|
|
11087
|
-
_html(`<ul${_attr_class("
|
|
11129
|
+
_html(`<ul${_attr_class("_b4")}>`);
|
|
11088
11130
|
_for_of(steps, (step, i) => {
|
|
11089
11131
|
const $scope12_id = _scope_id();
|
|
11090
|
-
_html(`<li${_attr_class(["
|
|
11132
|
+
_html(`<li${_attr_class(["_b_", { ["_b5"]: i === steps.length - 1 }])}>`);
|
|
11091
11133
|
_if(() => {
|
|
11092
11134
|
if (i === steps.length - 1) {
|
|
11093
11135
|
const $scope17_id = _scope_id();
|
|
@@ -11096,7 +11138,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
11096
11138
|
return 0;
|
|
11097
11139
|
} else {
|
|
11098
11140
|
const $scope18_id = _scope_id();
|
|
11099
|
-
_html(`<span${_attr_class("
|
|
11141
|
+
_html(`<span${_attr_class("_b6")}>`);
|
|
11100
11142
|
icon_check_default({ size: 14 });
|
|
11101
11143
|
_html("</span>");
|
|
11102
11144
|
writeScope($scope18_id, {});
|
|
@@ -11110,7 +11152,7 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
11110
11152
|
return 0;
|
|
11111
11153
|
}
|
|
11112
11154
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
11113
|
-
_html(`<div${_attr_class("
|
|
11155
|
+
_html(`<div${_attr_class("_bV")}>`);
|
|
11114
11156
|
_if(() => {
|
|
11115
11157
|
if (input.onExit || busy) {
|
|
11116
11158
|
const $scope1_id = _scope_id();
|
|
@@ -11123,12 +11165,12 @@ var new_workspace_default = _template("s", (input) => {
|
|
|
11123
11165
|
_html(`<button type=button${_attr_class([
|
|
11124
11166
|
btnLg,
|
|
11125
11167
|
"_p",
|
|
11126
|
-
"
|
|
11168
|
+
"_bW"
|
|
11127
11169
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "w", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
11128
11170
|
_if(() => {
|
|
11129
11171
|
if (archived$1.length) {
|
|
11130
11172
|
const $scope6_id = _scope_id();
|
|
11131
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
11173
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_bY")}><h2${_attr_class("_bT")}>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("_bI")}>`);
|
|
11132
11174
|
_for_of(archived$1, (ws) => {
|
|
11133
11175
|
const $scope7_id = _scope_id();
|
|
11134
11176
|
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bL")}><span${_attr_class("_bM")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_w"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
@@ -11437,8 +11479,8 @@ function treeDirs(files) {
|
|
|
11437
11479
|
};
|
|
11438
11480
|
return build(root, "", "", -1);
|
|
11439
11481
|
}
|
|
11440
|
-
var treeToggle = "
|
|
11441
|
-
var pageTitle$1 = "
|
|
11482
|
+
var treeToggle = "_gb _3 _j";
|
|
11483
|
+
var pageTitle$1 = "_gi _bA";
|
|
11442
11484
|
//#endregion
|
|
11443
11485
|
//#region src/tags/diff-send.marko
|
|
11444
11486
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -11448,7 +11490,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11448
11490
|
let sendTarget = null;
|
|
11449
11491
|
const sessions = input.sessions || [];
|
|
11450
11492
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
11451
|
-
_html(`<span${_attr_class("
|
|
11493
|
+
_html(`<span${_attr_class("_hn")}><button type=button${_attr_class("_o")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
11452
11494
|
_if(() => {
|
|
11453
11495
|
if (sessions.length === 1) {
|
|
11454
11496
|
const $scope1_id = _scope_id();
|
|
@@ -11458,11 +11500,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
11458
11500
|
return 0;
|
|
11459
11501
|
} else if (sessions.length) {
|
|
11460
11502
|
const $scope2_id = _scope_id();
|
|
11461
|
-
_html(`<span${_attr_class("
|
|
11503
|
+
_html(`<span${_attr_class("_ho")}><button type=button${_attr_class(["_p", "_hp"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
11462
11504
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
11463
11505
|
sendTarget = _new_sendTarget;
|
|
11464
11506
|
}, "j0", $scope2_id), () => {
|
|
11465
|
-
_html(`<select${_attr_class("
|
|
11507
|
+
_html(`<select${_attr_class("_hq")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
11466
11508
|
_for_of(sessions, (s) => {
|
|
11467
11509
|
const $scope3_id = _scope_id();
|
|
11468
11510
|
_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)}`);
|
|
@@ -12991,8 +13033,8 @@ function clip(line, at, len) {
|
|
|
12991
13033
|
const end = Math.min(line.length, at + len + pad);
|
|
12992
13034
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
12993
13035
|
}
|
|
12994
|
-
var findInput = "
|
|
12995
|
-
var findIconBtn = "
|
|
13036
|
+
var findInput = "_g7 _l";
|
|
13037
|
+
var findIconBtn = "_g_ _j";
|
|
12996
13038
|
//#endregion
|
|
12997
13039
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
12998
13040
|
var icon_arrow_down_default = _template("K", (input) => {
|
|
@@ -13080,9 +13122,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13080
13122
|
el.select();
|
|
13081
13123
|
}, 0);
|
|
13082
13124
|
}, "i0", $scope0_id);
|
|
13083
|
-
_html(`<div${_attr_class(["
|
|
13125
|
+
_html(`<div${_attr_class(["_g6", !open && "_g5"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13084
13126
|
type(v);
|
|
13085
|
-
}, "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("
|
|
13127
|
+
}, "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("_g9")}>${_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"}>`);
|
|
13086
13128
|
icon_arrow_up_default({ size: 14 });
|
|
13087
13129
|
_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"}>`);
|
|
13088
13130
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13184,9 +13226,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13184
13226
|
}
|
|
13185
13227
|
return shortHeadFallback(head);
|
|
13186
13228
|
}
|
|
13187
|
-
var repoWorktree = "
|
|
13188
|
-
var repoTitle = "
|
|
13189
|
-
var path$1 = "
|
|
13229
|
+
var repoWorktree = "_h5 _w";
|
|
13230
|
+
var repoTitle = "_ia _v";
|
|
13231
|
+
var path$1 = "_ir __";
|
|
13190
13232
|
//#endregion
|
|
13191
13233
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13192
13234
|
var icon_chevron_down_default = _template("T", (input) => {
|
|
@@ -13260,7 +13302,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
13260
13302
|
_scope_reason();
|
|
13261
13303
|
const $scope0_id = _scope_id();
|
|
13262
13304
|
_el($scope0_id, "h0");
|
|
13263
|
-
_html(`<div${_attr_class(["
|
|
13305
|
+
_html(`<div${_attr_class(["_iJ", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
13264
13306
|
_script($scope0_id, "h1");
|
|
13265
13307
|
writeScope($scope0_id, {
|
|
13266
13308
|
e: input.file,
|
|
@@ -13322,14 +13364,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13322
13364
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
13323
13365
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
13324
13366
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
13325
|
-
_html(`<section${_attr_class("
|
|
13367
|
+
_html(`<section${_attr_class("_h1")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_h2", { ["_h3"]: input.collapsible && input.collapsed }])}>`);
|
|
13326
13368
|
_if(() => {
|
|
13327
13369
|
if (input.collapsible) {
|
|
13328
13370
|
const $scope1_id = _scope_id();
|
|
13329
|
-
_html(`<button type=button${_attr_class("
|
|
13330
|
-
"
|
|
13331
|
-
!input.collapsed && "
|
|
13332
|
-
input.expanding && "
|
|
13371
|
+
_html(`<button type=button${_attr_class("_h4")} aria-expanded=${!input.collapsed ? "true" : "false"} aria-busy=${input.expanding ? "true" : "false"}${input.collapsed ? _attr("title", `Show ${countLabel} files`) : " title=\"Hide files\""}><span${_attr_class([
|
|
13372
|
+
"_io",
|
|
13373
|
+
!input.collapsed && "_ip",
|
|
13374
|
+
input.expanding && "_iq"
|
|
13333
13375
|
])} aria-hidden=true>`);
|
|
13334
13376
|
_if(() => {
|
|
13335
13377
|
if (input.collapsed) {
|
|
@@ -13368,14 +13410,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13368
13410
|
return 1;
|
|
13369
13411
|
}
|
|
13370
13412
|
}, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened);
|
|
13371
|
-
_html(`<span${_attr_class("
|
|
13413
|
+
_html(`<span${_attr_class("_ib")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_L", "_ic"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_N", "_ie"])} aria-hidden=true>vs</span><span${_attr_class(["_L", "_id"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13372
13414
|
_if(() => {
|
|
13373
13415
|
if (compare$1.topic) {
|
|
13374
13416
|
const $scope16_id = _scope_id();
|
|
13375
13417
|
_html(`<span${_attr_class([
|
|
13376
13418
|
"_L",
|
|
13377
13419
|
tone.accent,
|
|
13378
|
-
"
|
|
13420
|
+
"_if"
|
|
13379
13421
|
])}>${_text_resume($scope16_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
13380
13422
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
13381
13423
|
return 0;
|
|
@@ -13388,7 +13430,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13388
13430
|
_html(`<button type=button${_attr_class([
|
|
13389
13431
|
"_L",
|
|
13390
13432
|
tone.warn,
|
|
13391
|
-
"
|
|
13433
|
+
"_ig"
|
|
13392
13434
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope2_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope2_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope2_id, "a")}`);
|
|
13393
13435
|
_script($scope2_id, "w10");
|
|
13394
13436
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -13398,7 +13440,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13398
13440
|
_if(() => {
|
|
13399
13441
|
if (repo.contained && input.files.length) {
|
|
13400
13442
|
const $scope13_id = _scope_id();
|
|
13401
|
-
_html(`<span${_attr_class(["_L", "
|
|
13443
|
+
_html(`<span${_attr_class(["_L", "_ig"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope13_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope13_id, "a", $sg__input_repo)}`);
|
|
13402
13444
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
13403
13445
|
return 0;
|
|
13404
13446
|
}
|
|
@@ -13406,16 +13448,16 @@ var review_section_default = _template("w", (input) => {
|
|
|
13406
13448
|
_if(() => {
|
|
13407
13449
|
if (input.localDiffers) {
|
|
13408
13450
|
const $scope3_id = _scope_id();
|
|
13409
|
-
_html(`<span${_attr_class(["_L", "
|
|
13451
|
+
_html(`<span${_attr_class(["_L", "_ig"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope3_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
|
|
13410
13452
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope3_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
13411
13453
|
return 0;
|
|
13412
13454
|
}
|
|
13413
13455
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 38), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
13414
|
-
_html(`<span${_attr_class("
|
|
13456
|
+
_html(`<span${_attr_class("_h6")}><span>${_text_resume($scope0_id, "p", countLabel, $sg__input_files__OR__input_shownKeys)} file${_text_resume($scope0_id, "q", countLabel === 1 ? "" : "s", $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
13415
13457
|
_if(() => {
|
|
13416
13458
|
if (stats.additions || stats.deletions) {
|
|
13417
13459
|
const $scope15_id = _scope_id();
|
|
13418
|
-
_html(`<span${_attr_class("
|
|
13460
|
+
_html(`<span${_attr_class("_h7")}>+${_text_resume($scope15_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_h8")}>−${_text_resume($scope15_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
13419
13461
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
13420
13462
|
return 0;
|
|
13421
13463
|
}
|
|
@@ -13423,7 +13465,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13423
13465
|
_if(() => {
|
|
13424
13466
|
if (newCount || input.onlyNew) {
|
|
13425
13467
|
const $scope4_id = _scope_id();
|
|
13426
|
-
_html(`<button type=button${_attr_class(["
|
|
13468
|
+
_html(`<button type=button${_attr_class(["_h_", { ["_h9"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope4_id, "b", newCount, $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
|
|
13427
13469
|
_script($scope4_id, "w11");
|
|
13428
13470
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
13429
13471
|
return 0;
|
|
@@ -13433,7 +13475,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13433
13475
|
_if(() => {
|
|
13434
13476
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
13435
13477
|
const $scope5_id = _scope_id();
|
|
13436
|
-
_html(`<div${_attr_class("
|
|
13478
|
+
_html(`<div${_attr_class("_ii")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
13437
13479
|
_for_of(input.files, (file$2) => {
|
|
13438
13480
|
const $scope6_id = _scope_id();
|
|
13439
13481
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -13446,14 +13488,14 @@ var review_section_default = _template("w", (input) => {
|
|
|
13446
13488
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
13447
13489
|
input.onFileToggle(file$2.key, open);
|
|
13448
13490
|
}, "w0", $scope6_id))}${_attr_class([
|
|
13449
|
-
"
|
|
13450
|
-
forceNear && "
|
|
13451
|
-
input.findHit?.key === file$2.key && "
|
|
13452
|
-
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("
|
|
13491
|
+
"_ij",
|
|
13492
|
+
forceNear && "_ik",
|
|
13493
|
+
input.findHit?.key === file$2.key && "_hZ"
|
|
13494
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_im")}><span${_attr_class("_9")}${_attr("data-status", file$2.status)}>${_text_resume($scope6_id, "d", file$2.status, $sg__input_files)}</span>${_el_resume($scope6_id, "c", $sg__input_files)}<span${_attr_class([path$1, input.findHit?.key === file$2.key && input.findHit.line < 1 && "_h0"])}${_attr("title", file$2.path)}><bdi>${_text_resume($scope6_id, "f", file$2.path, $sg__input_files)}</bdi></span>${_el_resume($scope6_id, "e", _serialize_guard($scope0_reason, 19))}`);
|
|
13453
13495
|
_if(() => {
|
|
13454
13496
|
if (file$2.changedSince) {
|
|
13455
13497
|
const $scope20_id = _scope_id();
|
|
13456
|
-
_html(`<span${_attr_class(["_y", "
|
|
13498
|
+
_html(`<span${_attr_class(["_y", "_ih"])} title="Changed since your last visit"></span>`);
|
|
13457
13499
|
$si__input_files && writeScope($scope20_id, {});
|
|
13458
13500
|
return 0;
|
|
13459
13501
|
}
|
|
@@ -13473,8 +13515,8 @@ var review_section_default = _template("w", (input) => {
|
|
|
13473
13515
|
const $scope14_id = _scope_id();
|
|
13474
13516
|
_html(`<button type=button${_attr_class([
|
|
13475
13517
|
iconBtnXs,
|
|
13476
|
-
"
|
|
13477
|
-
{ ["
|
|
13518
|
+
"_it",
|
|
13519
|
+
{ ["_iu"]: wholeFiles.has(file$2.key) }
|
|
13478
13520
|
])} title=${wholeFiles.has(file$2.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-label=${wholeFiles.has(file$2.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-pressed=${wholeFiles.has(file$2.key) ? "true" : "false"}>`);
|
|
13479
13521
|
_if(() => {
|
|
13480
13522
|
if (wholeFiles.has(file$2.key)) {
|
|
@@ -13501,17 +13543,17 @@ var review_section_default = _template("w", (input) => {
|
|
|
13501
13543
|
_if(() => {
|
|
13502
13544
|
if (file$2.binary) {
|
|
13503
13545
|
const $scope23_id = _scope_id();
|
|
13504
|
-
_html(`<p${_attr_class(["
|
|
13546
|
+
_html(`<p${_attr_class(["_is", "_il"])}>binary file</p>`);
|
|
13505
13547
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
13506
13548
|
return 0;
|
|
13507
13549
|
} else if (file$2.tooLarge) {
|
|
13508
13550
|
const $scope24_id = _scope_id();
|
|
13509
|
-
_html(`<p${_attr_class(["
|
|
13551
|
+
_html(`<p${_attr_class(["_is", "_il"])}>file too large to display</p>`);
|
|
13510
13552
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
13511
13553
|
return 1;
|
|
13512
13554
|
} else if (file$2.old == null && file$2.new == null) {
|
|
13513
13555
|
const $scope25_id = _scope_id();
|
|
13514
|
-
_html(`<p${_attr_class(["
|
|
13556
|
+
_html(`<p${_attr_class(["_is", "_il"])}>file could not be read</p>`);
|
|
13515
13557
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
13516
13558
|
return 2;
|
|
13517
13559
|
} else if (expanded) {
|
|
@@ -13519,7 +13561,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13519
13561
|
_if(() => {
|
|
13520
13562
|
if (!forceNear) {
|
|
13521
13563
|
const $scope8_id = _scope_id();
|
|
13522
|
-
_html(`<div${_attr_class("
|
|
13564
|
+
_html(`<div${_attr_class("_in")}></div>${_el_resume($scope8_id, "a")}`);
|
|
13523
13565
|
_script($scope8_id, "w13");
|
|
13524
13566
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
13525
13567
|
return 0;
|
|
@@ -13527,7 +13569,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13527
13569
|
const $scope9_id = _scope_id();
|
|
13528
13570
|
const $childScope = _peek_scope_id();
|
|
13529
13571
|
diff_file_default({
|
|
13530
|
-
class: "
|
|
13572
|
+
class: "_il",
|
|
13531
13573
|
file: file$2,
|
|
13532
13574
|
comments: fileComments,
|
|
13533
13575
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -13668,7 +13710,7 @@ var review_section_default = _template("w", (input) => {
|
|
|
13668
13710
|
});
|
|
13669
13711
|
_resume_branch($scope0_id);
|
|
13670
13712
|
});
|
|
13671
|
-
var fileFilter = "
|
|
13713
|
+
var fileFilter = "_iI _l";
|
|
13672
13714
|
//#endregion
|
|
13673
13715
|
//#region src/tags/file-filter.marko
|
|
13674
13716
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -13698,7 +13740,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
13698
13740
|
pending = v;
|
|
13699
13741
|
box.timer = setTimeout(flush, 150);
|
|
13700
13742
|
}, "n2", $scope0_id);
|
|
13701
|
-
_html(`<div${_attr_class("
|
|
13743
|
+
_html(`<div${_attr_class("_iH")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
13702
13744
|
type(v);
|
|
13703
13745
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
13704
13746
|
_script($scope0_id, "n3");
|
|
@@ -13731,7 +13773,7 @@ var $content = (input) => {
|
|
|
13731
13773
|
_for_of(dir.dirs, (child) => {
|
|
13732
13774
|
const $scope1_id = _scope_id();
|
|
13733
13775
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
13734
|
-
_html(`<div${_attr_class("
|
|
13776
|
+
_html(`<div${_attr_class("_hQ")}><button type=button${_attr_class(["_hR", { ["_hI"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_hY")}>`);
|
|
13735
13777
|
_if(() => {
|
|
13736
13778
|
if (shut) {
|
|
13737
13779
|
const $scope4_id = _scope_id();
|
|
@@ -13745,7 +13787,7 @@ var $content = (input) => {
|
|
|
13745
13787
|
return 1;
|
|
13746
13788
|
}
|
|
13747
13789
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
13748
|
-
_html(`<span${_attr_class("
|
|
13790
|
+
_html(`<span${_attr_class("_hS")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
13749
13791
|
_if(() => {
|
|
13750
13792
|
if (!shut) {
|
|
13751
13793
|
const $scope2_id = _scope_id();
|
|
@@ -13792,11 +13834,11 @@ var $content = (input) => {
|
|
|
13792
13834
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
13793
13835
|
_for_of(dir.files, ({ file, name }) => {
|
|
13794
13836
|
const $scope3_id = _scope_id();
|
|
13795
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
13837
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_hU", { ["_hT"]: 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("_9")}${_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("_hV")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
13796
13838
|
_if(() => {
|
|
13797
13839
|
if (input.newKeys.has(file.key)) {
|
|
13798
13840
|
const $scope6_id = _scope_id();
|
|
13799
|
-
_html(`<span${_attr_class(["_y", "
|
|
13841
|
+
_html(`<span${_attr_class(["_y", "_hW"])} title="Changed since your last visit"></span>`);
|
|
13800
13842
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
13801
13843
|
return 0;
|
|
13802
13844
|
}
|
|
@@ -13804,7 +13846,7 @@ var $content = (input) => {
|
|
|
13804
13846
|
_if(() => {
|
|
13805
13847
|
if (input.commentKeys.has(file.key)) {
|
|
13806
13848
|
const $scope7_id = _scope_id();
|
|
13807
|
-
_html(`<span${_attr_class("
|
|
13849
|
+
_html(`<span${_attr_class("_hX")}>`);
|
|
13808
13850
|
icon_comment_default({ size: 12 });
|
|
13809
13851
|
_html("</span>");
|
|
13810
13852
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -13862,7 +13904,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
13862
13904
|
scope: input.scope ?? null,
|
|
13863
13905
|
file: key
|
|
13864
13906
|
}), "l0", $scope0_id);
|
|
13865
|
-
_html(`<aside${_attr_class(["
|
|
13907
|
+
_html(`<aside${_attr_class(["_hJ", { ["_hI"]: input.open === false }])}><div${_attr_class("_hK")}>`);
|
|
13866
13908
|
_set_serialize_reason(2);
|
|
13867
13909
|
const $childScope = _peek_scope_id();
|
|
13868
13910
|
file_filter_default({
|
|
@@ -13871,18 +13913,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
13871
13913
|
filter = _new_filter;
|
|
13872
13914
|
}, "l1", $scope0_id)
|
|
13873
13915
|
});
|
|
13874
|
-
_html(`</div><div${_attr_class("
|
|
13916
|
+
_html(`</div><div${_attr_class("_hL")}>`);
|
|
13875
13917
|
_if(() => {
|
|
13876
13918
|
if (!input.sections.length && filter) {
|
|
13877
13919
|
const $scope3_id = _scope_id();
|
|
13878
|
-
_html(`<p${_attr_class("
|
|
13920
|
+
_html(`<p${_attr_class("_hM")}>No files match.</p>`);
|
|
13879
13921
|
writeScope($scope3_id, {});
|
|
13880
13922
|
return 0;
|
|
13881
13923
|
}
|
|
13882
13924
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
13883
13925
|
_for_of(input.sections, (section) => {
|
|
13884
13926
|
const $scope1_id = _scope_id();
|
|
13885
|
-
_html(`<div${_attr_class("
|
|
13927
|
+
_html(`<div${_attr_class("_hN")}><button type=button${_attr_class(["_hO", { ["_hI"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_hY")}>`);
|
|
13886
13928
|
_if(() => {
|
|
13887
13929
|
if (collapsedRepos.has(section.id)) {
|
|
13888
13930
|
const $scope4_id = _scope_id();
|
|
@@ -13896,12 +13938,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
13896
13938
|
return 1;
|
|
13897
13939
|
}
|
|
13898
13940
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
13899
|
-
_html(`<span${_attr_class("
|
|
13941
|
+
_html(`<span${_attr_class("_hS")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
13900
13942
|
_if(() => {
|
|
13901
13943
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
13902
13944
|
const $scope2_id = _scope_id();
|
|
13903
13945
|
const root = treeDirs(section.files);
|
|
13904
|
-
_html(`<div${_attr_class("
|
|
13946
|
+
_html(`<div${_attr_class("_hP")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
13905
13947
|
_set_serialize_reason(1);
|
|
13906
13948
|
const $childScope2 = _peek_scope_id();
|
|
13907
13949
|
diff_tree_dir_default({
|
|
@@ -13971,7 +14013,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
13971
14013
|
});
|
|
13972
14014
|
_resume_branch($scope0_id);
|
|
13973
14015
|
});
|
|
13974
|
-
var sheetDir = "
|
|
14016
|
+
var sheetDir = "_hC __";
|
|
13975
14017
|
//#endregion
|
|
13976
14018
|
//#region src/tags/diff-file-sheet.marko
|
|
13977
14019
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14027,9 +14069,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14027
14069
|
_if(() => {
|
|
14028
14070
|
if (open) {
|
|
14029
14071
|
const $scope1_id = _scope_id();
|
|
14030
|
-
_html(`<div${_attr_class("
|
|
14072
|
+
_html(`<div${_attr_class("_ht")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_hu")} role=dialog aria-label="Jump to file"><div${_attr_class("_hv")}><strong${_attr_class("_hs")}>Files</strong><span${_attr_class("_hw")}>${_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, "_hr"])} title=Close aria-label=Close>`);
|
|
14031
14073
|
icon_xmark_default({ size: 16 });
|
|
14032
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14074
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_hE")}>`);
|
|
14033
14075
|
_set_serialize_reason(2);
|
|
14034
14076
|
const $childScope = _peek_scope_id();
|
|
14035
14077
|
file_filter_default({
|
|
@@ -14038,13 +14080,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14038
14080
|
filter = _new_filter;
|
|
14039
14081
|
}, "g1", $scope1_id)
|
|
14040
14082
|
});
|
|
14041
|
-
_html(`</div><div${_attr_class("
|
|
14083
|
+
_html(`</div><div${_attr_class("_hx")}>`);
|
|
14042
14084
|
_for_of(groups, (group) => {
|
|
14043
14085
|
const $scope2_id = _scope_id();
|
|
14044
|
-
_html(`<div${_attr_class("
|
|
14086
|
+
_html(`<div${_attr_class("_hy")}><div${_attr_class("_hz")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14045
14087
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14046
14088
|
const $scope3_id = _scope_id();
|
|
14047
|
-
_html(`<div${_attr_class("
|
|
14089
|
+
_html(`<div${_attr_class("_hA")}>`);
|
|
14048
14090
|
_if(() => {
|
|
14049
14091
|
if (dir) {
|
|
14050
14092
|
const $scope5_id = _scope_id();
|
|
@@ -14055,11 +14097,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14055
14097
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14056
14098
|
_for_of(files, ({ file, name }) => {
|
|
14057
14099
|
const $scope4_id = _scope_id();
|
|
14058
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14100
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_hB", "_w"])}><span${_attr_class("_9")}${_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("_hD")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14059
14101
|
_if(() => {
|
|
14060
14102
|
if (newKeys.has(file.key)) {
|
|
14061
14103
|
const $scope6_id = _scope_id();
|
|
14062
|
-
_html(`<span${_attr_class(["_y", "
|
|
14104
|
+
_html(`<span${_attr_class(["_y", "_hG"])} title="Changed since your last visit"></span>`);
|
|
14063
14105
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14064
14106
|
return 0;
|
|
14065
14107
|
}
|
|
@@ -14069,7 +14111,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14069
14111
|
const $scope7_id = _scope_id();
|
|
14070
14112
|
icon_comment_default({
|
|
14071
14113
|
size: 12,
|
|
14072
|
-
class: "
|
|
14114
|
+
class: "_hH"
|
|
14073
14115
|
});
|
|
14074
14116
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14075
14117
|
return 0;
|
|
@@ -14094,7 +14136,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14094
14136
|
_if(() => {
|
|
14095
14137
|
if (!input.files.length) {
|
|
14096
14138
|
const $scope8_id = _scope_id();
|
|
14097
|
-
_html(`<p${_attr_class("
|
|
14139
|
+
_html(`<p${_attr_class("_hF")}>No files match.</p>`);
|
|
14098
14140
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14099
14141
|
return 0;
|
|
14100
14142
|
}
|
|
@@ -14634,11 +14676,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14634
14676
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
14635
14677
|
}
|
|
14636
14678
|
}, "m33", $scope0_id);
|
|
14637
|
-
_html(`<div${_attr_class("
|
|
14679
|
+
_html(`<div${_attr_class("_f9")}><div${_attr_class("_gd")}><div${_attr_class("_ge")}><div${_attr_class(["_go", { ["_gn"]: !comments.length }])}>`);
|
|
14638
14680
|
_if(() => {
|
|
14639
14681
|
if (input.onExit) {
|
|
14640
14682
|
const $scope1_id = _scope_id();
|
|
14641
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
14683
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_gf"])} title="Back to terminal (Esc)">`);
|
|
14642
14684
|
icon_back_default({ size: 14 });
|
|
14643
14685
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
14644
14686
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -14649,7 +14691,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14649
14691
|
_if(() => {
|
|
14650
14692
|
if (comments.length) {
|
|
14651
14693
|
const $scope5_id = _scope_id();
|
|
14652
|
-
_html(`<span${_attr_class("
|
|
14694
|
+
_html(`<span${_attr_class("_gh")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
14653
14695
|
writeScope($scope5_id, {});
|
|
14654
14696
|
return 0;
|
|
14655
14697
|
}
|
|
@@ -14657,7 +14699,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14657
14699
|
_if(() => {
|
|
14658
14700
|
if (comments.length) {
|
|
14659
14701
|
const $scope2_id = _scope_id();
|
|
14660
|
-
_html(`<span${_attr_class("
|
|
14702
|
+
_html(`<span${_attr_class("_gg")}>`);
|
|
14661
14703
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
14662
14704
|
const $childScope = _peek_scope_id();
|
|
14663
14705
|
diff_send_default({
|
|
@@ -14670,14 +14712,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14670
14712
|
return 0;
|
|
14671
14713
|
}
|
|
14672
14714
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
14673
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
14715
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_gc")}>`);
|
|
14674
14716
|
_if(() => {
|
|
14675
14717
|
if (hasFiles) {
|
|
14676
14718
|
const $scope12_id = _scope_id();
|
|
14677
14719
|
_html(`<button${_attr_class([
|
|
14678
14720
|
treeToggle,
|
|
14679
|
-
"
|
|
14680
|
-
{ ["
|
|
14721
|
+
"_ga",
|
|
14722
|
+
{ ["_f_"]: treeOpen }
|
|
14681
14723
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
14682
14724
|
icon_sidebar_default({ size: 14 });
|
|
14683
14725
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -14686,7 +14728,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14686
14728
|
return 0;
|
|
14687
14729
|
}
|
|
14688
14730
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
14689
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
14731
|
+
_html(`<button${_attr_class([iconBtnRow, "_ga"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
14690
14732
|
_set_serialize_reason(1);
|
|
14691
14733
|
const $childScope2 = _peek_scope_id();
|
|
14692
14734
|
icon_refresh_default({
|
|
@@ -14697,19 +14739,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14697
14739
|
_if(() => {
|
|
14698
14740
|
if (hasFiles) {
|
|
14699
14741
|
const $scope13_id = _scope_id();
|
|
14700
|
-
_html(`<button${_attr_class(["_o", "
|
|
14742
|
+
_html(`<button${_attr_class(["_o", "_gx"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
14701
14743
|
_script($scope13_id, "m53");
|
|
14702
14744
|
writeScope($scope13_id, {});
|
|
14703
14745
|
return 0;
|
|
14704
14746
|
}
|
|
14705
14747
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
14706
|
-
_html(`<span${_attr_class(["_m", "
|
|
14748
|
+
_html(`<span${_attr_class(["_m", "_gp"])}>`);
|
|
14707
14749
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
14708
14750
|
setScope(v);
|
|
14709
14751
|
}, "m0", $scope0_id), () => {
|
|
14710
|
-
_html(`<select${_attr_class(["_n", "
|
|
14752
|
+
_html(`<select${_attr_class(["_n", "_gq"])} 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>`);
|
|
14711
14753
|
});
|
|
14712
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
14754
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_gl", { ["_gk"]: !findOpen }])}>`);
|
|
14713
14755
|
_set_serialize_reason(2);
|
|
14714
14756
|
const $childScope3 = _peek_scope_id();
|
|
14715
14757
|
let findFocus = diff_find_default({
|
|
@@ -14730,8 +14772,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14730
14772
|
const $scope14_id = _scope_id();
|
|
14731
14773
|
_html(`<button${_attr_class([
|
|
14732
14774
|
iconBtnRow,
|
|
14733
|
-
"
|
|
14734
|
-
"
|
|
14775
|
+
"_gj",
|
|
14776
|
+
"_ga"
|
|
14735
14777
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
14736
14778
|
icon_search_default({ size: 14 });
|
|
14737
14779
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -14740,7 +14782,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14740
14782
|
return 0;
|
|
14741
14783
|
}
|
|
14742
14784
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
14743
|
-
_html(`</div></div><div${_attr_class("
|
|
14785
|
+
_html(`</div></div><div${_attr_class("_gm")} data-diff-main>`);
|
|
14744
14786
|
_if(() => {
|
|
14745
14787
|
if (error) {
|
|
14746
14788
|
const $scope6_id = _scope_id();
|
|
@@ -14763,7 +14805,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
14763
14805
|
_if(() => {
|
|
14764
14806
|
if (!repos && loading) {
|
|
14765
14807
|
const $scope15_id = _scope_id();
|
|
14766
|
-
_html(`<div${_attr_class("
|
|
14808
|
+
_html(`<div${_attr_class("_gs")} aria-hidden=true><div${_attr_class(["_gt", "_gu"])}></div><div${_attr_class(["_gt", "_gv"])}></div><div${_attr_class(["_gt", "_gw"])}></div><div${_attr_class(["_gt", "_gv"])}></div><div${_attr_class(["_gt", "_gw"])}></div></div>`);
|
|
14767
14809
|
writeScope($scope15_id, {});
|
|
14768
14810
|
return 0;
|
|
14769
14811
|
}
|
|
@@ -15097,9 +15139,9 @@ function vapidKey(base64) {
|
|
|
15097
15139
|
const raw = atob(padded.replace(/-/g, "+").replace(/_/g, "/"));
|
|
15098
15140
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
15099
15141
|
}
|
|
15100
|
-
var iconBtn = "
|
|
15101
|
-
var settingsDot = "
|
|
15102
|
-
var navToggle = "
|
|
15142
|
+
var iconBtn = "_eu _j";
|
|
15143
|
+
var settingsDot = "_ev _ba";
|
|
15144
|
+
var navToggle = "_ez _j";
|
|
15103
15145
|
_template("Q", (input) => {
|
|
15104
15146
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
15105
15147
|
const $scope0_id = _scope_id();
|
|
@@ -15142,16 +15184,16 @@ var ARM_MS = 3500;
|
|
|
15142
15184
|
function disarmLater(fn) {
|
|
15143
15185
|
return setTimeout(fn, ARM_MS);
|
|
15144
15186
|
}
|
|
15145
|
-
var railBtn = "
|
|
15146
|
-
var wsBtn = "
|
|
15147
|
-
var rowIcon = "
|
|
15148
|
-
var close = "
|
|
15149
|
-
var sessRename$1 = "
|
|
15150
|
-
var sessBtn$1 = "
|
|
15187
|
+
var railBtn = "_gC _j";
|
|
15188
|
+
var wsBtn = "_gH _G";
|
|
15189
|
+
var rowIcon = "_gK _2 _j";
|
|
15190
|
+
var close = "_gL _5 _j _6";
|
|
15191
|
+
var sessRename$1 = "_gX _H";
|
|
15192
|
+
var sessBtn$1 = "_gZ _G";
|
|
15151
15193
|
//#endregion
|
|
15152
15194
|
//#region src/styles/session-pop.css.ts
|
|
15153
|
-
var sessionPop = "
|
|
15154
|
-
var sessionPopBtn = "
|
|
15195
|
+
var sessionPop = "_gy _8";
|
|
15196
|
+
var sessionPopBtn = "_gz _G";
|
|
15155
15197
|
//#endregion
|
|
15156
15198
|
//#region src/client/status.ts
|
|
15157
15199
|
/** Workspace activity dot from its polled status counts. */
|
|
@@ -15218,22 +15260,22 @@ var usage_pcts_default = _template("H", (input) => {
|
|
|
15218
15260
|
if (windows.length) {
|
|
15219
15261
|
const $scope1_id = _scope_id();
|
|
15220
15262
|
_html(`<span${_attr_class([
|
|
15221
|
-
"
|
|
15263
|
+
"_hh",
|
|
15222
15264
|
input.class,
|
|
15223
|
-
{ ["
|
|
15265
|
+
{ ["_hi"]: agent.stale_seconds != null }
|
|
15224
15266
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
15225
15267
|
_for_of(windows, (win$1, i) => {
|
|
15226
15268
|
const $scope2_id = _scope_id();
|
|
15227
|
-
_html(`<span${_attr_class("
|
|
15269
|
+
_html(`<span${_attr_class("_hj")}>`);
|
|
15228
15270
|
_if(() => {
|
|
15229
15271
|
if (i) {
|
|
15230
15272
|
const $scope3_id = _scope_id();
|
|
15231
|
-
_html(`<span${_attr_class("
|
|
15273
|
+
_html(`<span${_attr_class("_hm")} aria-hidden=true>·</span>`);
|
|
15232
15274
|
$si__input_agent && writeScope($scope3_id, {});
|
|
15233
15275
|
return 0;
|
|
15234
15276
|
}
|
|
15235
15277
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
15236
|
-
_html(`<span${_attr_class("
|
|
15278
|
+
_html(`<span${_attr_class("_hk")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_hl", win$1.used_percent >= 90 ? "_e9" : win$1.used_percent >= 70 ? "_e8" : win$1.used_percent >= 40 ? "_e7" : "_e6"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
15237
15279
|
$si__input_agent && writeScope($scope2_id, {});
|
|
15238
15280
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
15239
15281
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -15264,12 +15306,12 @@ var icon_edit_default = _template("$", (input) => {
|
|
|
15264
15306
|
});
|
|
15265
15307
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15266
15308
|
});
|
|
15267
|
-
var prChip = "
|
|
15268
|
-
var portChip = "
|
|
15309
|
+
var prChip = "_ix _s _iw";
|
|
15310
|
+
var portChip = "_iy _s _iw";
|
|
15269
15311
|
var prState = {
|
|
15270
|
-
open: "
|
|
15271
|
-
merged: "
|
|
15272
|
-
closed: "
|
|
15312
|
+
open: "_iC",
|
|
15313
|
+
merged: "_iD",
|
|
15314
|
+
closed: "_iE"
|
|
15273
15315
|
};
|
|
15274
15316
|
//#endregion
|
|
15275
15317
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -15341,7 +15383,7 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
15341
15383
|
const name = repo.full_name.split("/").at(-1);
|
|
15342
15384
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
15343
15385
|
}, "y4", $scope1_id);
|
|
15344
|
-
_html(`<div${_attr_class("
|
|
15386
|
+
_html(`<div${_attr_class("_iv")}>`);
|
|
15345
15387
|
_for_of(repos, (repo) => {
|
|
15346
15388
|
const $scope2_id = _scope_id();
|
|
15347
15389
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -15357,11 +15399,11 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
15357
15399
|
[prState.merged]: pr$1.state === "MERGED",
|
|
15358
15400
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
15359
15401
|
}
|
|
15360
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
15402
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_iz", { ["_iG"]: !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")}`);
|
|
15361
15403
|
_if(() => {
|
|
15362
15404
|
if (open) {
|
|
15363
15405
|
const $scope4_id = _scope_id();
|
|
15364
|
-
_html(`<a${_attr_class(["
|
|
15406
|
+
_html(`<a${_attr_class(["_iz", "_iA"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
15365
15407
|
icon_diff_default({ size: 12 });
|
|
15366
15408
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
15367
15409
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -15369,9 +15411,9 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
15369
15411
|
} else {
|
|
15370
15412
|
const $scope6_id = _scope_id();
|
|
15371
15413
|
_html(`<button type=button${_attr_class([
|
|
15414
|
+
"_iz",
|
|
15372
15415
|
"_iA",
|
|
15373
|
-
"_iB"
|
|
15374
|
-
"_iC"
|
|
15416
|
+
"_iB"
|
|
15375
15417
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
15376
15418
|
icon_xmark_default({ size: 12 });
|
|
15377
15419
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -15395,10 +15437,10 @@ var side_nav_chips_default = _template("y", (input) => {
|
|
|
15395
15437
|
}, "full_name", $scope1_id, "b");
|
|
15396
15438
|
_for_of(ports, (p) => {
|
|
15397
15439
|
const $scope5_id = _scope_id();
|
|
15398
|
-
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["
|
|
15440
|
+
_html(`<span${_attr_class(["_s", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_iz", "_iF"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope5_id, "c", p.port, 2)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
15441
|
+
"_iz",
|
|
15399
15442
|
"_iA",
|
|
15400
15443
|
"_iB",
|
|
15401
|
-
"_iC",
|
|
15402
15444
|
{ ["_q"]: armedPid === p.pid }
|
|
15403
15445
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
15404
15446
|
icon_xmark_default({ size: 12 });
|
|
@@ -15498,7 +15540,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15498
15540
|
_if(() => {
|
|
15499
15541
|
if (input.rail) {
|
|
15500
15542
|
const $scope2_id = _scope_id();
|
|
15501
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
15543
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gA"]: 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, 26))}<span${_attr_class([
|
|
15502
15544
|
"_y",
|
|
15503
15545
|
phase[dot$1],
|
|
15504
15546
|
"_ba"
|
|
@@ -15508,30 +15550,30 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15508
15550
|
} else if (ws$1.pending) {
|
|
15509
15551
|
const $scope3_id = _scope_id();
|
|
15510
15552
|
_html(`<section${_attr_class([
|
|
15511
|
-
"
|
|
15512
|
-
"
|
|
15553
|
+
"_gE",
|
|
15554
|
+
"_g1",
|
|
15513
15555
|
{
|
|
15514
|
-
["
|
|
15515
|
-
["
|
|
15556
|
+
["_gF"]: input.railPop,
|
|
15557
|
+
["_gD"]: input.page
|
|
15516
15558
|
}
|
|
15517
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
15559
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_gG")}><div${_attr_class(wsBtn)}>`);
|
|
15518
15560
|
_if(() => {
|
|
15519
15561
|
if (ws$1.pending_error) {
|
|
15520
15562
|
const $scope15_id = _scope_id();
|
|
15521
15563
|
icon_warning_default({
|
|
15522
15564
|
size: 12,
|
|
15523
|
-
class: "
|
|
15565
|
+
class: "_g3"
|
|
15524
15566
|
});
|
|
15525
15567
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope15_id, {});
|
|
15526
15568
|
return 0;
|
|
15527
15569
|
} else {
|
|
15528
15570
|
const $scope16_id = _scope_id();
|
|
15529
|
-
_html(`<span${_attr_class(["_E", "
|
|
15571
|
+
_html(`<span${_attr_class(["_E", "_g2"])}></span>`);
|
|
15530
15572
|
$si__input_workspaces__OR__input_workspaceId && writeScope($scope16_id, {});
|
|
15531
15573
|
return 1;
|
|
15532
15574
|
}
|
|
15533
15575
|
}, $scope3_id, "d", $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId, 0, 1);
|
|
15534
|
-
_html(`<span${_attr_class("
|
|
15576
|
+
_html(`<span${_attr_class("_gN")}><span${_attr_class("_gO")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspaces__OR__input_workspaceId)}</span><span${_attr_class("_g4")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 10))}`);
|
|
15535
15577
|
_subscribe($restoreLine__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_pending_error__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_page && $input_page__closures, writeScope($scope3_id, {
|
|
15536
15578
|
_: _scope_with_id($scope1_id),
|
|
15537
15579
|
Cb0: $si__input_workspaces__OR__input_workspaceId && 1
|
|
@@ -15541,15 +15583,15 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15541
15583
|
const $scope4_id = _scope_id();
|
|
15542
15584
|
const sessions$1 = input.sessions || [];
|
|
15543
15585
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
15544
|
-
_html(`<section${_attr_class(["
|
|
15545
|
-
["
|
|
15586
|
+
_html(`<section${_attr_class(["_gE", {
|
|
15587
|
+
["_gA"]: input.current,
|
|
15546
15588
|
["_bb"]: input.current,
|
|
15547
|
-
["
|
|
15548
|
-
["
|
|
15549
|
-
}])}><div${_attr_class("
|
|
15589
|
+
["_gF"]: input.railPop,
|
|
15590
|
+
["_gD"]: input.page
|
|
15591
|
+
}])}><div${_attr_class("_gG")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
15550
15592
|
"_y",
|
|
15551
15593
|
phase[dot$1],
|
|
15552
|
-
"
|
|
15594
|
+
"_gT"
|
|
15553
15595
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
15554
15596
|
_if(() => {
|
|
15555
15597
|
if (sessions$1.length === 1) {
|
|
@@ -15562,7 +15604,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15562
15604
|
icon_agent_default({
|
|
15563
15605
|
agent: activeAgent(sessions$1[0]),
|
|
15564
15606
|
size: 12,
|
|
15565
|
-
class: "
|
|
15607
|
+
class: "_gM"
|
|
15566
15608
|
});
|
|
15567
15609
|
$si__input_sessions && writeScope($scope17_id, {
|
|
15568
15610
|
_: _scope_with_id($scope4_id),
|
|
@@ -15572,11 +15614,11 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15572
15614
|
}
|
|
15573
15615
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
15574
15616
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
15575
|
-
_html(`<span${_attr_class("
|
|
15617
|
+
_html(`<span${_attr_class("_gN")}><span${_attr_class("_gO")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
15576
15618
|
_if(() => {
|
|
15577
15619
|
if (input.page && metaText) {
|
|
15578
15620
|
const $scope18_id = _scope_id();
|
|
15579
|
-
_html(`<span${_attr_class("
|
|
15621
|
+
_html(`<span${_attr_class("_gR")}>${_text_resume($scope18_id, "b", metaText, _serialize_guard($scope0_reason, 6))}</span>`);
|
|
15580
15622
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope18_id, { _: _serialize_if($scope0_reason, 6) && _scope_with_id($scope4_id) });
|
|
15581
15623
|
return 0;
|
|
15582
15624
|
}
|
|
@@ -15589,7 +15631,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15589
15631
|
"_L",
|
|
15590
15632
|
"_U",
|
|
15591
15633
|
"_N",
|
|
15592
|
-
"
|
|
15634
|
+
"_gS"
|
|
15593
15635
|
])}>${_text_resume($scope5_id, "b", input.current ? "Open" : "", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
15594
15636
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope5_id, {
|
|
15595
15637
|
_: _scope_with_id($scope4_id),
|
|
@@ -15602,7 +15644,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15602
15644
|
_if(() => {
|
|
15603
15645
|
if (!input.page) {
|
|
15604
15646
|
const $scope6_id = _scope_id();
|
|
15605
|
-
_html(`<div${_attr_class("
|
|
15647
|
+
_html(`<div${_attr_class("_gI")}>`);
|
|
15606
15648
|
_if(() => {
|
|
15607
15649
|
if (input.onNewSession) {
|
|
15608
15650
|
const $scope7_id = _scope_id();
|
|
@@ -15651,7 +15693,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15651
15693
|
return 0;
|
|
15652
15694
|
}
|
|
15653
15695
|
}, $scope6_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
15654
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
15696
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gB"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
15655
15697
|
icon_manage_default({ size: 12 });
|
|
15656
15698
|
_html(`</a>${_el_resume($scope6_id, "d", _serialize_guard($scope0_reason, 7))}</div>`);
|
|
15657
15699
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope6_id, {
|
|
@@ -15661,7 +15703,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15661
15703
|
return 0;
|
|
15662
15704
|
}
|
|
15663
15705
|
}, $scope4_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
15664
|
-
_html(`</div><div${_attr_class("
|
|
15706
|
+
_html(`</div><div${_attr_class("_gY")}>`);
|
|
15665
15707
|
_if(() => {
|
|
15666
15708
|
if (sessions$1.length === 1 && openPlan) {
|
|
15667
15709
|
const $scope12_id = _scope_id();
|
|
@@ -15669,7 +15711,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15669
15711
|
const $childScope3 = _peek_scope_id();
|
|
15670
15712
|
usage_pcts_default({
|
|
15671
15713
|
agent: openPlan,
|
|
15672
|
-
class: "
|
|
15714
|
+
class: "_gP"
|
|
15673
15715
|
});
|
|
15674
15716
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
15675
15717
|
a: _existing_scope($childScope3),
|
|
@@ -15680,14 +15722,14 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15680
15722
|
}, $scope4_id, "m");
|
|
15681
15723
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
15682
15724
|
const $scope9_id = _scope_id();
|
|
15683
|
-
_html(`<div${_attr_class(["
|
|
15725
|
+
_html(`<div${_attr_class(["_gJ", { ["_gA"]: s.id === input.currentTab }])}>`);
|
|
15684
15726
|
_if(() => {
|
|
15685
15727
|
if (renamingId === s.id) {
|
|
15686
15728
|
const $scope11_id = _scope_id();
|
|
15687
15729
|
_html(`<span${_attr_class([
|
|
15688
15730
|
"_y",
|
|
15689
15731
|
phase[sessionPhase(s.state)],
|
|
15690
|
-
"
|
|
15732
|
+
"_gW"
|
|
15691
15733
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
15692
15734
|
_set_serialize_reason({
|
|
15693
15735
|
1: $sg__input_sessions,
|
|
@@ -15697,7 +15739,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15697
15739
|
icon_agent_default({
|
|
15698
15740
|
agent: activeAgent(s),
|
|
15699
15741
|
size: 12,
|
|
15700
|
-
class: "
|
|
15742
|
+
class: "_g0"
|
|
15701
15743
|
});
|
|
15702
15744
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
15703
15745
|
renameValue = _new_renameValue;
|
|
@@ -15716,9 +15758,9 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15716
15758
|
icon_agent_default({
|
|
15717
15759
|
agent: activeAgent(s),
|
|
15718
15760
|
size: 12,
|
|
15719
|
-
class: "
|
|
15761
|
+
class: "_g0"
|
|
15720
15762
|
});
|
|
15721
|
-
_html(`<span${_attr_class("
|
|
15763
|
+
_html(`<span${_attr_class("_gU")}>${_text_resume($scope10_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 5))}<div${_attr_class("_gV")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
15722
15764
|
icon_edit_default({ size: 12 });
|
|
15723
15765
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_q"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
15724
15766
|
icon_xmark_default({ size: 12 });
|
|
@@ -15730,7 +15772,7 @@ var side_nav_item_default = _template("z", (input) => {
|
|
|
15730
15772
|
const $childScope6 = _peek_scope_id();
|
|
15731
15773
|
usage_pcts_default({
|
|
15732
15774
|
agent: openPlan,
|
|
15733
|
-
class: "
|
|
15775
|
+
class: "_gQ"
|
|
15734
15776
|
});
|
|
15735
15777
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
15736
15778
|
a: _existing_scope($childScope6),
|
|
@@ -15944,28 +15986,28 @@ var side_nav_default = _template("A", (input) => {
|
|
|
15944
15986
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
15945
15987
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
15946
15988
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
15947
|
-
_html(`<aside${_attr_class(["
|
|
15948
|
-
["
|
|
15949
|
-
["
|
|
15989
|
+
_html(`<aside${_attr_class(["_ey", {
|
|
15990
|
+
["_ew"]: !navOpen,
|
|
15991
|
+
["_ex"]: isPage
|
|
15950
15992
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
15951
15993
|
_if(() => {
|
|
15952
15994
|
if (isPage) {
|
|
15953
15995
|
const $scope1_id = _scope_id();
|
|
15954
|
-
_html(`<header${_attr_class("
|
|
15996
|
+
_html(`<header${_attr_class("_eB")}><div${_attr_class("_eK")}>`);
|
|
15955
15997
|
_if(() => {
|
|
15956
15998
|
if (input.instanceName) {
|
|
15957
15999
|
const $scope2_id = _scope_id();
|
|
15958
|
-
_html(`<div${_attr_class("
|
|
16000
|
+
_html(`<div${_attr_class("_eH")} title="This work server (Settings → Appearance)"><img${_attr_class("_eI")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_eJ")}>${_text_resume($scope2_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
15959
16001
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
15960
16002
|
return 0;
|
|
15961
16003
|
}
|
|
15962
16004
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
15963
|
-
_html(`<h1${_attr_class("
|
|
16005
|
+
_html(`<h1${_attr_class("_eC")}>Workspaces</h1></div><div${_attr_class("_eD")}>`);
|
|
15964
16006
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
15965
16007
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
15966
16008
|
iconBtn,
|
|
15967
|
-
"
|
|
15968
|
-
{ ["
|
|
16009
|
+
"_eE",
|
|
16010
|
+
{ ["_et"]: view === "settings" }
|
|
15969
16011
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
15970
16012
|
icon_settings_default({ size: 16 });
|
|
15971
16013
|
_if(() => {
|
|
@@ -15984,18 +16026,18 @@ var side_nav_default = _template("A", (input) => {
|
|
|
15984
16026
|
_if(() => {
|
|
15985
16027
|
if (!isPage && input.instanceName) {
|
|
15986
16028
|
const $scope3_id = _scope_id();
|
|
15987
|
-
_html(`<div${_attr_class("
|
|
16029
|
+
_html(`<div${_attr_class("_eH")} title="This work server (Settings → Appearance)"><img${_attr_class("_eI")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_eJ")}>${_text_resume($scope3_id, "d", input.instanceName, $sg__input_instanceName)}</span></div>`);
|
|
15988
16030
|
writeScope($scope3_id, {});
|
|
15989
16031
|
return 0;
|
|
15990
16032
|
}
|
|
15991
16033
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
15992
|
-
_html(`<div${_attr_class("
|
|
16034
|
+
_html(`<div${_attr_class("_eL")}>`);
|
|
15993
16035
|
_for_of(listIds, (wsId) => {
|
|
15994
16036
|
const $scope4_id = _scope_id();
|
|
15995
16037
|
_if(() => {
|
|
15996
16038
|
if (isPage && wsId === ws.id) {
|
|
15997
16039
|
const $scope13_id = _scope_id();
|
|
15998
|
-
_html(`<h2${_attr_class(["_bT", "
|
|
16040
|
+
_html(`<h2${_attr_class(["_bT", "_eF"])}>Current</h2>`);
|
|
15999
16041
|
writeScope($scope13_id, {});
|
|
16000
16042
|
return 0;
|
|
16001
16043
|
}
|
|
@@ -16003,7 +16045,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16003
16045
|
_if(() => {
|
|
16004
16046
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
16005
16047
|
const $scope14_id = _scope_id();
|
|
16006
|
-
_html(`<h2${_attr_class(["_bT", "
|
|
16048
|
+
_html(`<h2${_attr_class(["_bT", "_eF"])}>Other workspaces</h2>`);
|
|
16007
16049
|
writeScope($scope14_id, {});
|
|
16008
16050
|
return 0;
|
|
16009
16051
|
}
|
|
@@ -16087,7 +16129,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16087
16129
|
railHover = null;
|
|
16088
16130
|
}, 150);
|
|
16089
16131
|
}, "A6", $scope5_id);
|
|
16090
|
-
_html(`<div${_attr_class("
|
|
16132
|
+
_html(`<div${_attr_class("_eM")}>`);
|
|
16091
16133
|
_for_of(itemIds, (wsId, i) => {
|
|
16092
16134
|
const $scope6_id = _scope_id();
|
|
16093
16135
|
_html("<span>");
|
|
@@ -16141,7 +16183,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16141
16183
|
if (railHover) {
|
|
16142
16184
|
const $scope7_id = _scope_id();
|
|
16143
16185
|
const hoverId = railHover.id;
|
|
16144
|
-
_html(`<div${_attr_class(["_8", "
|
|
16186
|
+
_html(`<div${_attr_class(["_8", "_eP"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
16145
16187
|
_set_serialize_reason({
|
|
16146
16188
|
0: 1,
|
|
16147
16189
|
1: 1,
|
|
@@ -16226,7 +16268,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16226
16268
|
return 0;
|
|
16227
16269
|
}
|
|
16228
16270
|
}, $scope0_id, "e");
|
|
16229
|
-
_html(`<div${_attr_class("
|
|
16271
|
+
_html(`<div${_attr_class("_eN")}>`);
|
|
16230
16272
|
_if(() => {
|
|
16231
16273
|
if (isPage) {
|
|
16232
16274
|
const $scope9_id = _scope_id();
|
|
@@ -16234,7 +16276,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16234
16276
|
"_o",
|
|
16235
16277
|
"_p",
|
|
16236
16278
|
btnLg,
|
|
16237
|
-
"
|
|
16279
|
+
"_eG"
|
|
16238
16280
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
16239
16281
|
icon_folder_plus_default({ size: 16 });
|
|
16240
16282
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -16256,9 +16298,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16256
16298
|
return 1;
|
|
16257
16299
|
}
|
|
16258
16300
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
16259
|
-
_html(`<div${_attr_class(["_x", "
|
|
16301
|
+
_html(`<div${_attr_class(["_x", "_eO"])}></div>`);
|
|
16260
16302
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
16261
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["
|
|
16303
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn, { ["_et"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
16262
16304
|
icon_settings_default({});
|
|
16263
16305
|
_if(() => {
|
|
16264
16306
|
if (input.setupReady === false) {
|
|
@@ -16268,7 +16310,7 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16268
16310
|
return 0;
|
|
16269
16311
|
}
|
|
16270
16312
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
16271
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["
|
|
16313
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn, { ["_et"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
16272
16314
|
icon_folder_plus_default({ size: 16 });
|
|
16273
16315
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
16274
16316
|
_script($scope8_id, "A15");
|
|
@@ -16337,9 +16379,9 @@ var side_nav_default = _template("A", (input) => {
|
|
|
16337
16379
|
});
|
|
16338
16380
|
//#endregion
|
|
16339
16381
|
//#region src/tags/manage-workspace.css.ts
|
|
16340
|
-
var content = "
|
|
16341
|
-
var pageMeta = "
|
|
16342
|
-
var pathMeta = "
|
|
16382
|
+
var content = "_fc _bx";
|
|
16383
|
+
var pageMeta = "_fd _bC";
|
|
16384
|
+
var pathMeta = "_fg _w";
|
|
16343
16385
|
//#endregion
|
|
16344
16386
|
//#region src/tags/icons/icon-clipboard.marko
|
|
16345
16387
|
var icon_clipboard_default = _template("V", (input) => {
|
|
@@ -16514,7 +16556,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16514
16556
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16515
16557
|
}, "q9", $scope0_id);
|
|
16516
16558
|
const titleId = _id();
|
|
16517
|
-
_html(`<div${_attr_class("
|
|
16559
|
+
_html(`<div${_attr_class("_bv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bw")}><div${_attr_class(content)}>`);
|
|
16518
16560
|
_set_serialize_reason(286);
|
|
16519
16561
|
let $actions;
|
|
16520
16562
|
if (ws.repos.length) $actions = attrTag({ content: _content_resume("q17", () => {
|
|
@@ -16550,7 +16592,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16550
16592
|
meta: attrTag({ content: _content("q16", () => {
|
|
16551
16593
|
_scope_reason();
|
|
16552
16594
|
const $scope15_id = _scope_id();
|
|
16553
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16595
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fe")}>${_text_resume($scope15_id, "c", ws.name)}</span>`);
|
|
16554
16596
|
_if(() => {
|
|
16555
16597
|
if (ws.status !== "active") {
|
|
16556
16598
|
const $scope19_id = _scope_id();
|
|
@@ -16559,7 +16601,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16559
16601
|
return 0;
|
|
16560
16602
|
}
|
|
16561
16603
|
}, $scope15_id, "d", 1, 1, 1, 0, 1);
|
|
16562
|
-
_html(`<span${_attr_class("
|
|
16604
|
+
_html(`<span${_attr_class("_ff")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope15_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope15_id, "a")}`);
|
|
16563
16605
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope15_id, { _: _scope_with_id($scope0_id) })))));
|
|
16564
16606
|
_resume_branch($scope15_id);
|
|
16565
16607
|
}, $scope0_id) })
|
|
@@ -16592,23 +16634,23 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16592
16634
|
return 0;
|
|
16593
16635
|
}
|
|
16594
16636
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16595
|
-
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bT")}>Workspace</h2></div><div${_attr_class(["_bK", "
|
|
16637
|
+
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bT")}>Workspace</h2></div><div${_attr_class(["_bK", "_cj"])}><div${_attr_class(["_ck", "_cl"])}>`);
|
|
16596
16638
|
_if(() => {
|
|
16597
16639
|
if (ws.status === "active") {
|
|
16598
16640
|
const $scope8_id = _scope_id();
|
|
16599
|
-
_html(`<span${_attr_class("
|
|
16641
|
+
_html(`<span${_attr_class("_cn")}>Hide from the list. Worktrees stay on disk.</span><button type=button${_attr_class(btnSm)}${_attr("disabled", !!pendingAction)}>${_text_resume($scope8_id, "c", pendingAction === "archive" ? "Archiving…" : "Archive")}</button>${_el_resume($scope8_id, "b")}`);
|
|
16600
16642
|
_script($scope8_id, "q19");
|
|
16601
16643
|
writeScope($scope8_id, {});
|
|
16602
16644
|
return 0;
|
|
16603
16645
|
} else {
|
|
16604
16646
|
const $scope9_id = _scope_id();
|
|
16605
|
-
_html(`<span${_attr_class("
|
|
16647
|
+
_html(`<span${_attr_class("_cn")}>Archived and hidden from the list.</span><button type=button${_attr_class([btnSm, "_p"])}${_attr("disabled", !!pendingAction)}>${_text_resume($scope9_id, "c", pendingAction === "restore" ? "Restoring…" : "Restore")}</button>${_el_resume($scope9_id, "b")}`);
|
|
16606
16648
|
_script($scope9_id, "q20");
|
|
16607
16649
|
writeScope($scope9_id, {});
|
|
16608
16650
|
return 1;
|
|
16609
16651
|
}
|
|
16610
16652
|
}, $scope0_id, "k", 1, 1, 1, "</div>");
|
|
16611
|
-
_html(`<div${_attr_class(["
|
|
16653
|
+
_html(`<div${_attr_class(["_ck", "_cl"])}><span${_attr_class("_cn")}>Remove the workspace and its worktrees. Branches on origin stay.</span><button type=button${_attr_class([
|
|
16612
16654
|
btnSm,
|
|
16613
16655
|
"_r",
|
|
16614
16656
|
{ ["_q"]: confirmingDelete }
|
|
@@ -16644,8 +16686,8 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16644
16686
|
});
|
|
16645
16687
|
_html(`</button>${_el_resume($scope0_id, "z")}</div><ul${_attr_class([
|
|
16646
16688
|
"_bK",
|
|
16647
|
-
"
|
|
16648
|
-
"
|
|
16689
|
+
"_cj",
|
|
16690
|
+
"_cx"
|
|
16649
16691
|
])}>`);
|
|
16650
16692
|
_for_of(ws.repos, (row) => {
|
|
16651
16693
|
const $scope1_id = _scope_id();
|
|
@@ -16729,7 +16771,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16729
16771
|
return 0;
|
|
16730
16772
|
}
|
|
16731
16773
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
16732
|
-
_html(`</div><ul${_attr_class("
|
|
16774
|
+
_html(`</div><ul${_attr_class("_dN")}>`);
|
|
16733
16775
|
_for_of(wsSkills, (s) => {
|
|
16734
16776
|
const $scope3_id = _scope_id();
|
|
16735
16777
|
const $for_content2__s_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -16837,7 +16879,7 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16837
16879
|
_if(() => {
|
|
16838
16880
|
if (repoSkills.length) {
|
|
16839
16881
|
const $scope4_id = _scope_id();
|
|
16840
|
-
_html(`<ul${_attr_class("
|
|
16882
|
+
_html(`<ul${_attr_class("_dN")}>`);
|
|
16841
16883
|
_for_of(repoSkills, (s) => {
|
|
16842
16884
|
const $scope5_id = _scope_id();
|
|
16843
16885
|
const $for_content3__s_shadows__closures = /* @__PURE__ */ new Set();
|
|
@@ -16895,15 +16937,15 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16895
16937
|
const $scope17_id = _scope_id();
|
|
16896
16938
|
_html(`<section${_attr_class("_bF")}><div${_attr_class("_bG")}><h2${_attr_class("_bT")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope17_id, "e", running.length)}</span></div><ul${_attr_class([
|
|
16897
16939
|
"_bK",
|
|
16898
|
-
"
|
|
16899
|
-
"
|
|
16940
|
+
"_cj",
|
|
16941
|
+
"_cx"
|
|
16900
16942
|
])}>`);
|
|
16901
16943
|
_for_of(running, (p) => {
|
|
16902
16944
|
const $scope18_id = _scope_id();
|
|
16903
16945
|
_html(`<li${_attr_class(flatCardRow)}><div${_attr_class("_bL")}${_attr("title", p.args)}><span${_attr_class([
|
|
16904
16946
|
"_bM",
|
|
16905
16947
|
"_w",
|
|
16906
|
-
"
|
|
16948
|
+
"_fh"
|
|
16907
16949
|
])}>${_text_resume($scope18_id, "d", p.cmd)}</span>`);
|
|
16908
16950
|
_if(() => {
|
|
16909
16951
|
if (p.ports.length) {
|
|
@@ -16999,12 +17041,12 @@ var manage_workspace_default = _template("q", (input) => {
|
|
|
16999
17041
|
});
|
|
17000
17042
|
_resume_branch($scope0_id);
|
|
17001
17043
|
});
|
|
17002
|
-
var kbtn = "
|
|
17003
|
-
var sessOpen = "
|
|
17004
|
-
var sessRename = "
|
|
17005
|
-
var dpadPaste = "
|
|
17006
|
-
var repeat = "
|
|
17007
|
-
var dpadEsc = "
|
|
17044
|
+
var kbtn = "_fD _4 _j";
|
|
17045
|
+
var sessOpen = "_fS _G";
|
|
17046
|
+
var sessRename = "_fW _H";
|
|
17047
|
+
var dpadPaste = "_f4 _f3";
|
|
17048
|
+
var repeat = "_f5 _f3";
|
|
17049
|
+
var dpadEsc = "_f7 _f3";
|
|
17008
17050
|
//#endregion
|
|
17009
17051
|
//#region src/tags/term-find.marko
|
|
17010
17052
|
var term_find_default = _template("D", (input) => {
|
|
@@ -17041,19 +17083,19 @@ var term_find_default = _template("D", (input) => {
|
|
|
17041
17083
|
const canStep = hasQuery && open;
|
|
17042
17084
|
const keybar = input.placement === "keybar";
|
|
17043
17085
|
_html(`<div${_attr_class([
|
|
17044
|
-
"
|
|
17045
|
-
keybar ? "
|
|
17046
|
-
!open && "
|
|
17047
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17086
|
+
"_ha",
|
|
17087
|
+
keybar ? "_hc" : "_hb",
|
|
17088
|
+
!open && "_he"
|
|
17089
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_g6", keybar ? "_hd" : "_g8"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17048
17090
|
if (!open) return;
|
|
17049
17091
|
query = v;
|
|
17050
17092
|
live.query = v;
|
|
17051
17093
|
run(0);
|
|
17052
|
-
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17094
|
+
}, "D1", $scope0_id))}${_attr_class([findInput, keybar && "_hf"])} 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 && "_hg"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17053
17095
|
icon_arrow_up_default({ size: 14 });
|
|
17054
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17096
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_hg"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17055
17097
|
icon_arrow_down_default({ size: 14 });
|
|
17056
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17098
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_hg"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17057
17099
|
icon_xmark_default({ size: 14 });
|
|
17058
17100
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
17059
17101
|
const $return = focusInput;
|
|
@@ -17469,7 +17511,7 @@ var term_default = _template("E", (input) => {
|
|
|
17469
17511
|
trapOpen = true;
|
|
17470
17512
|
}
|
|
17471
17513
|
}, "E13", $scope0_id);
|
|
17472
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17514
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_fE")}><div${_attr_class("_fF")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17473
17515
|
_if(() => {
|
|
17474
17516
|
if (findOpen) {
|
|
17475
17517
|
const $scope12_id = _scope_id();
|
|
@@ -17499,7 +17541,7 @@ var term_default = _template("E", (input) => {
|
|
|
17499
17541
|
_if(() => {
|
|
17500
17542
|
if (uploading) {
|
|
17501
17543
|
const $scope21_id = _scope_id();
|
|
17502
|
-
_html(`<div${_attr_class("
|
|
17544
|
+
_html(`<div${_attr_class("_fL")}>uploading…</div>`);
|
|
17503
17545
|
writeScope($scope21_id, {});
|
|
17504
17546
|
return 0;
|
|
17505
17547
|
}
|
|
@@ -17507,7 +17549,7 @@ var term_default = _template("E", (input) => {
|
|
|
17507
17549
|
_if(() => {
|
|
17508
17550
|
if (copiedFlash) {
|
|
17509
17551
|
const $scope22_id = _scope_id();
|
|
17510
|
-
_html(`<div${_attr_class("
|
|
17552
|
+
_html(`<div${_attr_class("_fK")}>Copied</div>`);
|
|
17511
17553
|
writeScope($scope22_id, {});
|
|
17512
17554
|
return 0;
|
|
17513
17555
|
}
|
|
@@ -17516,7 +17558,7 @@ var term_default = _template("E", (input) => {
|
|
|
17516
17558
|
_if(() => {
|
|
17517
17559
|
if (trapOpen) {
|
|
17518
17560
|
const $scope11_id = _scope_id();
|
|
17519
|
-
_html(`<div${_attr_class("
|
|
17561
|
+
_html(`<div${_attr_class("_fM")}><div${_attr_class("_fN")}><p${_attr_class("_f8")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_o")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
17520
17562
|
_script($scope11_id, "E28");
|
|
17521
17563
|
_script($scope11_id, "E29");
|
|
17522
17564
|
writeScope($scope11_id, {});
|
|
@@ -17592,7 +17634,7 @@ var term_default = _template("E", (input) => {
|
|
|
17592
17634
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
17593
17635
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
17594
17636
|
}, "E19", $scope4_id);
|
|
17595
|
-
_html(`<button${_attr_class([kbtn, "
|
|
17637
|
+
_html(`<button${_attr_class([kbtn, "_fO"])} title=${onTermPage ? "Sessions" : "\"Back to session\""}${onTermPage ? _attr("popovertarget", sessPopId) : ""}>`);
|
|
17596
17638
|
_set_serialize_reason({
|
|
17597
17639
|
1: $sg__input_agent__OR__input_sessionState,
|
|
17598
17640
|
2: $sg__input_agent__OR__input_sessionState
|
|
@@ -17606,7 +17648,7 @@ var term_default = _template("E", (input) => {
|
|
|
17606
17648
|
"_y",
|
|
17607
17649
|
"_ba",
|
|
17608
17650
|
phase[sessionPhase(input.sessionState)]
|
|
17609
|
-
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_8", "
|
|
17651
|
+
])}></span>${_el_resume($scope4_id, "c", _serialize_guard($scope0_reason, 5))}</button>${_el_resume($scope4_id, "a")}<div${_attr("id", sessPopId)} popover=auto${_attr_class(["_8", "_fP"])}>`);
|
|
17610
17652
|
_if(() => {
|
|
17611
17653
|
if ((input.sessions || []).length > 0) {
|
|
17612
17654
|
const $scope5_id = _scope_id();
|
|
@@ -17622,7 +17664,7 @@ var term_default = _template("E", (input) => {
|
|
|
17622
17664
|
const $scope6_id = _scope_id();
|
|
17623
17665
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
17624
17666
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
17625
|
-
_html(`<div${_attr_class(["
|
|
17667
|
+
_html(`<div${_attr_class(["_fR", { ["_fQ"]: s.id === input.sessionId }])}>`);
|
|
17626
17668
|
_if(() => {
|
|
17627
17669
|
if (renamingId === s.id) {
|
|
17628
17670
|
const $scope24_id = _scope_id();
|
|
@@ -17654,7 +17696,7 @@ var term_default = _template("E", (input) => {
|
|
|
17654
17696
|
agent: activeAgent(s),
|
|
17655
17697
|
size: 14
|
|
17656
17698
|
});
|
|
17657
|
-
_html(`<span${_attr_class("
|
|
17699
|
+
_html(`<span${_attr_class("_fT")}><span${_attr_class("_fV")}>${_text_resume($scope7_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
17658
17700
|
_if(() => {
|
|
17659
17701
|
if (s.id === input.sessionId) {
|
|
17660
17702
|
const $scope23_id = _scope_id();
|
|
@@ -17666,7 +17708,7 @@ var term_default = _template("E", (input) => {
|
|
|
17666
17708
|
const $childScope6 = _peek_scope_id();
|
|
17667
17709
|
usage_pcts_default({
|
|
17668
17710
|
agent: plan,
|
|
17669
|
-
class: "
|
|
17711
|
+
class: "_fU"
|
|
17670
17712
|
});
|
|
17671
17713
|
writeScope($scope26_id, { a: _existing_scope($childScope6) });
|
|
17672
17714
|
return 0;
|
|
@@ -17683,7 +17725,7 @@ var term_default = _template("E", (input) => {
|
|
|
17683
17725
|
_if(() => {
|
|
17684
17726
|
if (input.onRenameSession) {
|
|
17685
17727
|
const $scope25_id = _scope_id();
|
|
17686
|
-
_html(`<button${_attr_class(["
|
|
17728
|
+
_html(`<button${_attr_class(["_fX", "_fY"])} title="Rename session">`);
|
|
17687
17729
|
icon_edit_default({ size: 12 });
|
|
17688
17730
|
_html(`</button>${_el_resume($scope25_id, "a")}`);
|
|
17689
17731
|
_script($scope25_id, "E32");
|
|
@@ -17695,7 +17737,7 @@ var term_default = _template("E", (input) => {
|
|
|
17695
17737
|
if (input.onCloseSession) {
|
|
17696
17738
|
const $scope8_id = _scope_id();
|
|
17697
17739
|
_html(`<button${_attr_class([
|
|
17698
|
-
"
|
|
17740
|
+
"_fX",
|
|
17699
17741
|
"_6",
|
|
17700
17742
|
{ ["_q"]: armedClose === s.id }
|
|
17701
17743
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -17737,8 +17779,8 @@ var term_default = _template("E", (input) => {
|
|
|
17737
17779
|
return 0;
|
|
17738
17780
|
}
|
|
17739
17781
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions);
|
|
17740
|
-
_html(`<div${_attr_class("
|
|
17741
|
-
_for_of([...input.agents || []
|
|
17782
|
+
_html(`<div${_attr_class("_fZ")}><span${_attr_class("_f0")}>New session</span><div${_attr_class("_f1")}>`);
|
|
17783
|
+
_for_of(["shell", ...input.agents || []], (agent) => {
|
|
17742
17784
|
const $scope9_id = _scope_id();
|
|
17743
17785
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
17744
17786
|
_set_serialize_reason({
|
|
@@ -17754,7 +17796,7 @@ var term_default = _template("E", (input) => {
|
|
|
17754
17796
|
_: _scope_with_id($scope4_id),
|
|
17755
17797
|
b: $si__input_agents && _existing_scope($childScope7)
|
|
17756
17798
|
});
|
|
17757
|
-
}, (a) => a, $scope4_id, "h", $sg__input_agents, $sg__input_agents, $sg__input_agents,
|
|
17799
|
+
}, (a) => a, $scope4_id, "h", $sg__input_agents, $sg__input_agents, $sg__input_agents, "</div>", 1);
|
|
17758
17800
|
_html(`</div></div>${_el_resume($scope4_id, "d")}`);
|
|
17759
17801
|
_script($scope4_id, "E36");
|
|
17760
17802
|
_script($scope4_id, "E37");
|
|
@@ -17782,9 +17824,9 @@ var term_default = _template("E", (input) => {
|
|
|
17782
17824
|
const dpadOpenBox = { open: false };
|
|
17783
17825
|
_html(`<button${_attr_class(kbtn)} title=${canKeys ? "\"More keys\"" : "\"Keys unavailable on this page\""} aria-haspopup=dialog${_attr("aria-controls", dpadId)}${_attr("disabled", !canKeys)}>`);
|
|
17784
17826
|
icon_dpad_default({ size: 16 });
|
|
17785
|
-
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["
|
|
17827
|
+
_html(`</button>${_el_resume($scope10_id, "a")}<button${_attr_class([kbtn, { ["_fC"]: findLit }])}${findLit ? " title=\"Close find\"" : canKeys ? ` title=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " title=\"Find unavailable on this page\""}${findLit ? " aria-label=\"Close find\"" : canKeys ? ` aria-label=${input.mode === "diff" ? "\"Find in review\"" : "\"Find in terminal\""}` : " aria-label=\"Find unavailable on this page\""} aria-pressed=${findLit ? "true" : "false"}${_attr("disabled", !canKeys)}>`);
|
|
17786
17828
|
icon_search_default({ size: 16 });
|
|
17787
|
-
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["
|
|
17829
|
+
_html(`</button>${_el_resume($scope10_id, "c")}<button${_attr_class([kbtn, { ["_fC"]: kb }])}${canKeys ? ` title=${kb ? "\"Hide keyboard\"" : "\"Show keyboard\""}` : " title=\"Keyboard unavailable on this page\""}${_attr("disabled", !canKeys)}>`);
|
|
17788
17830
|
icon_keyboard_default({ size: 16 });
|
|
17789
17831
|
_html(`</button>${_el_resume($scope10_id, "e")}`);
|
|
17790
17832
|
_script($scope10_id, "E38");
|
|
@@ -17800,7 +17842,7 @@ var term_default = _template("E", (input) => {
|
|
|
17800
17842
|
overlay: attrTag({ content: _content_resume("E49", () => {
|
|
17801
17843
|
_scope_reason();
|
|
17802
17844
|
const $scope15_id = _scope_id();
|
|
17803
|
-
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("
|
|
17845
|
+
_html(`<div${_attr("id", $dpadId_getter)} popover=auto${_attr_class("_f2")}>`);
|
|
17804
17846
|
forOf(DPAD, (row) => {
|
|
17805
17847
|
const $scope16_id = _scope_id();
|
|
17806
17848
|
forOf(row, (cell) => {
|
|
@@ -17820,7 +17862,7 @@ var term_default = _template("E", (input) => {
|
|
|
17820
17862
|
writeScope($scope18_id, { _: _scope_with_id($scope17_id) });
|
|
17821
17863
|
} else {
|
|
17822
17864
|
const $scope19_id = _scope_id();
|
|
17823
|
-
_html(`<button${_attr_class([repeat, { ["
|
|
17865
|
+
_html(`<button${_attr_class([repeat, { ["_f6"]: cell.icon === "enter" }])}${_attr("title", cell.label)}${_attr("aria-label", cell.label)}>`);
|
|
17824
17866
|
if (cell.icon === "arrow-up") {
|
|
17825
17867
|
_scope_id();
|
|
17826
17868
|
icon_arrow_up_default({ size: 18 });
|
|
@@ -18139,10 +18181,10 @@ var work_view_default = _template("I", (input) => {
|
|
|
18139
18181
|
toggleDiff();
|
|
18140
18182
|
}
|
|
18141
18183
|
}, "I14", $scope0_id);
|
|
18142
|
-
_html(`<div${_attr_class(["
|
|
18143
|
-
["
|
|
18144
|
-
["
|
|
18145
|
-
}])}><div${_attr_class("
|
|
18184
|
+
_html(`<div${_attr_class(["_cc", {
|
|
18185
|
+
["_ca"]: view === "nav",
|
|
18186
|
+
["_cb"]: !input.active
|
|
18187
|
+
}])}><div${_attr_class("_cd")}>`);
|
|
18146
18188
|
_set_serialize_reason({
|
|
18147
18189
|
0: _serialize_guard($scope0_reason, 0),
|
|
18148
18190
|
1: 1,
|
|
@@ -18211,7 +18253,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18211
18253
|
});
|
|
18212
18254
|
}, "I23", $scope0_id)
|
|
18213
18255
|
});
|
|
18214
|
-
_html(`</div><div${_attr_class("
|
|
18256
|
+
_html(`</div><div${_attr_class("_ce")}>`);
|
|
18215
18257
|
_if(() => {
|
|
18216
18258
|
if (error) {
|
|
18217
18259
|
const $scope9_id = _scope_id();
|
|
@@ -18234,7 +18276,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18234
18276
|
_if(() => {
|
|
18235
18277
|
if (diffMounted) {
|
|
18236
18278
|
const $scope1_id = _scope_id();
|
|
18237
|
-
_html(`<div${_attr_class("
|
|
18279
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "diff", "")}${_attr("inert", view !== "diff")}>`);
|
|
18238
18280
|
_set_serialize_reason({
|
|
18239
18281
|
0: $sg__input_workspace,
|
|
18240
18282
|
1: $sg__input_workspace,
|
|
@@ -18290,7 +18332,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18290
18332
|
_if(() => {
|
|
18291
18333
|
if (manageMounted) {
|
|
18292
18334
|
const $scope2_id = _scope_id();
|
|
18293
|
-
_html(`<div${_attr_class("
|
|
18335
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "manage", "")}${_attr("inert", view !== "manage")}>`);
|
|
18294
18336
|
_set_serialize_reason({
|
|
18295
18337
|
0: $sg__input_workspace,
|
|
18296
18338
|
1: _serialize_guard($scope0_reason, 16)
|
|
@@ -18316,7 +18358,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18316
18358
|
_if(() => {
|
|
18317
18359
|
if (settingsMounted) {
|
|
18318
18360
|
const $scope3_id = _scope_id();
|
|
18319
|
-
_html(`<div${_attr_class("
|
|
18361
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "settings", "")}${_attr("inert", view !== "settings")}>`);
|
|
18320
18362
|
_set_serialize_reason({
|
|
18321
18363
|
0: _serialize_guard($scope0_reason, 1),
|
|
18322
18364
|
1: $sg__input_workspace,
|
|
@@ -18357,7 +18399,7 @@ var work_view_default = _template("I", (input) => {
|
|
|
18357
18399
|
_if(() => {
|
|
18358
18400
|
if (newMounted) {
|
|
18359
18401
|
const $scope4_id = _scope_id();
|
|
18360
|
-
_html(`<div${_attr_class("
|
|
18402
|
+
_html(`<div${_attr_class("_cf")}${_attr_or("data-live", view === "new", "")}${_attr("inert", view !== "new")}>`);
|
|
18361
18403
|
_set_serialize_reason({
|
|
18362
18404
|
0: 1,
|
|
18363
18405
|
1: $sg__input_allWorkspaces,
|
|
@@ -18384,13 +18426,13 @@ var work_view_default = _template("I", (input) => {
|
|
|
18384
18426
|
return 0;
|
|
18385
18427
|
}
|
|
18386
18428
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
18387
|
-
_html(`<div${_attr_class(["
|
|
18429
|
+
_html(`<div${_attr_class(["_ch", { ["_cg"]: view !== "term" }])}>`);
|
|
18388
18430
|
_if(() => {
|
|
18389
18431
|
if (shownSessions) {
|
|
18390
18432
|
const $scope5_id = _scope_id();
|
|
18391
18433
|
_for_of(input.active ? shownSessions : shownSessions.filter((x) => x.id === curTab), (s) => {
|
|
18392
18434
|
const $scope6_id = _scope_id();
|
|
18393
|
-
_html(`<div${_attr_class("
|
|
18435
|
+
_html(`<div${_attr_class("_ci")}${_attr_or("data-live", s.id === curTab, "")}${_attr("inert", s.id !== curTab)}>`);
|
|
18394
18436
|
_set_serialize_reason({
|
|
18395
18437
|
0: 1,
|
|
18396
18438
|
1: 1,
|
|
@@ -27176,4 +27218,4 @@ server.listen(port, () => {
|
|
|
27176
27218
|
//#endregion
|
|
27177
27219
|
export {};
|
|
27178
27220
|
|
|
27179
|
-
;var __MARKO_MANIFEST__={"
|
|
27221
|
+
;var __MARKO_MANIFEST__={"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-x-DhkLau.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-x-DhkLau.css\"",">",2,"stylesheet#/assets/app-page-CIdgYOQ5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CIdgYOQ5.css\"",">"],"defer":[2,"/assets/w._-KAGXbHEQ.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-KAGXbHEQ.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/_DiUHGn7z.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiUHGn7z.js\"",">",2,"modulepreload#/assets/_HC3RV2wu.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_HC3RV2wu.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-x-DhkLau.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-x-DhkLau.css\"",">",2,"stylesheet#/assets/app-page-CIdgYOQ5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CIdgYOQ5.css\"",">"],"defer":[2,"/assets/settings-KAGXbHEQ.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-KAGXbHEQ.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/_DiUHGn7z.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiUHGn7z.js\"",">",2,"modulepreload#/assets/_HC3RV2wu.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_HC3RV2wu.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-x-DhkLau.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-x-DhkLau.css\"",">",2,"stylesheet#/assets/app-page-CIdgYOQ5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CIdgYOQ5.css\"",">"],"defer":[2,"/assets/w-KAGXbHEQ.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-KAGXbHEQ.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/_DiUHGn7z.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiUHGn7z.js\"",">",2,"modulepreload#/assets/_HC3RV2wu.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_HC3RV2wu.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-x-DhkLau.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-x-DhkLau.css\"",">",2,"stylesheet#/assets/app-page-CIdgYOQ5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CIdgYOQ5.css\"",">"],"defer":[2,"/assets/w._-Mq7oFVgO.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-Mq7oFVgO.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/_DiUHGn7z.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiUHGn7z.js\"",">",2,"modulepreload#/assets/_HC3RV2wu.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_HC3RV2wu.js\"",">"]},"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-x-DhkLau.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-x-DhkLau.css\"",">",2,"stylesheet#/assets/app-page-CIdgYOQ5.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-CIdgYOQ5.css\"",">"],"defer":[2,"/assets/new-KAGXbHEQ.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-KAGXbHEQ.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/_DiUHGn7z.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_DiUHGn7z.js\"",">",2,"modulepreload#/assets/_HC3RV2wu.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_HC3RV2wu.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-CxLi8fFp.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-CxLi8fFp.css\"",">",2,"stylesheet#/assets/icon-arrow-down-x-DhkLau.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-x-DhkLau.css\"",">"],"defer":[2,"/assets/diff-view-0QHeqmk-.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-0QHeqmk-.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|