@dylanpiercey/work 0.0.154 → 0.0.156
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/{_DGEhqy7E.js → _B8Ruz8T9.js} +27 -5
- package/dist/_wmfv4tOT.js +2 -0
- package/dist/index.mjs +574 -546
- package/dist/public/assets/_3TAs6e3a.js +1 -0
- package/dist/public/assets/_BhzAQNcR.js +1 -0
- package/dist/public/assets/_Bs0GH8Un.js +1 -0
- package/dist/public/assets/_BsQdE43w.js +1 -0
- package/dist/public/assets/_Bu6zDaCf.js +1 -0
- package/dist/public/assets/_C0Hkg4LE.js +1 -0
- package/dist/public/assets/{_DQjqPqJ6.js → _C91MT5yy.js} +19 -19
- package/dist/public/assets/_C91MT5yy.js.br +0 -0
- package/dist/public/assets/_CSyaSvmu.js +1 -0
- package/dist/public/assets/_CdmnYrOv.js +1 -0
- package/dist/public/assets/_Cprr2EDj.js +1 -0
- package/dist/public/assets/_CrjqDD-b.js +1 -0
- package/dist/public/assets/_CuD02PHO.js +1 -0
- package/dist/public/assets/_DUCGBps_.js +1 -0
- package/dist/public/assets/_DWip1MXY.js +1 -0
- package/dist/public/assets/_DjkR1-0g.js +1 -0
- package/dist/public/assets/_DtIeV3eK.js +1 -0
- package/dist/public/assets/_EshNWd65.js +1 -0
- package/dist/public/assets/_GGdKVYFt.js +1 -0
- package/dist/public/assets/{_Cdz2XtpX.js → _HiS0aCND.js} +4 -4
- package/dist/public/assets/_HiS0aCND.js.br +0 -0
- package/dist/public/assets/_QXWaVkby.js +1 -0
- package/dist/public/assets/{_D1NQ8Ak7.js → _Uo3NXPui.js} +1 -1
- package/dist/public/assets/_Uo3NXPui.js.br +0 -0
- package/dist/public/assets/_X3Y1Ka-i.js +1 -0
- package/dist/public/assets/app-page-C_8cFCmf.css +1 -0
- package/dist/public/assets/app-page-C_8cFCmf.css.br +0 -0
- package/dist/public/assets/diff-view-Bb2JIhMi.css +1 -0
- package/dist/public/assets/diff-view-Bb2JIhMi.css.br +0 -0
- package/dist/public/assets/diff-view-D8GrPRg5.js +2 -0
- package/dist/public/assets/{icon-arrow-down-DWdcJRsU.css → icon-arrow-down-CK1qiyoU.css} +1 -1
- package/dist/public/assets/icon-arrow-down-CK1qiyoU.css.br +0 -0
- package/dist/public/assets/new-DvLxb34o.js +1 -0
- package/dist/public/assets/settings-DvLxb34o.js +1 -0
- package/dist/public/assets/w-DvLxb34o.js +1 -0
- package/dist/public/assets/w._-DvLxb34o.js +1 -0
- package/dist/public/assets/w._-I2MUgpxd.js +1 -0
- package/package.json +1 -1
- package/scripts/migrate.mjs +66 -0
- package/dist/_Bv4lCw13.js +0 -2
- package/dist/public/assets/_BXNuoDV3.js +0 -1
- package/dist/public/assets/_Bcy6Pq2-.js +0 -1
- package/dist/public/assets/_BjJumygZ.js +0 -1
- package/dist/public/assets/_CEKjLIVs.js +0 -1
- package/dist/public/assets/_CSo-Q5Mw.js +0 -1
- package/dist/public/assets/_Cdz2XtpX.js.br +0 -0
- package/dist/public/assets/_Ct1taywS.js +0 -1
- package/dist/public/assets/_Cy-hb_bd.js +0 -1
- package/dist/public/assets/_D-_EO5gk.js +0 -1
- package/dist/public/assets/_D-pZx7Du.js +0 -1
- package/dist/public/assets/_D1NQ8Ak7.js.br +0 -0
- package/dist/public/assets/_DCrsdU84.js +0 -1
- package/dist/public/assets/_DDIWSDe6.js +0 -1
- package/dist/public/assets/_DFwE0FAS.js +0 -1
- package/dist/public/assets/_DHlr4Tsy.js +0 -1
- package/dist/public/assets/_DQjqPqJ6.js.br +0 -0
- package/dist/public/assets/_DaY1YO13.js +0 -1
- package/dist/public/assets/_DqM4h5qK.js +0 -1
- package/dist/public/assets/_LzBeeO2Z.js +0 -1
- package/dist/public/assets/_SSjhgH1l.js +0 -1
- package/dist/public/assets/_mcwV1QCh.js +0 -1
- package/dist/public/assets/_ryNxYsOR.js +0 -1
- package/dist/public/assets/app-page-CEMTHZv1.css +0 -1
- package/dist/public/assets/app-page-CEMTHZv1.css.br +0 -0
- package/dist/public/assets/diff-view-C7n2ViB6.css +0 -1
- package/dist/public/assets/diff-view-C7n2ViB6.css.br +0 -0
- package/dist/public/assets/diff-view-DqyO3Q0l.js +0 -2
- package/dist/public/assets/icon-arrow-down-DWdcJRsU.css.br +0 -0
- package/dist/public/assets/new-FeHAUUAK.js +0 -1
- package/dist/public/assets/settings-FeHAUUAK.js +0 -1
- package/dist/public/assets/w-FeHAUUAK.js +0 -1
- package/dist/public/assets/w._-D-RmquIa.js +0 -1
- package/dist/public/assets/w._-FeHAUUAK.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./_BMI-E3GI.js";
|
|
2
|
-
import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./
|
|
2
|
+
import { $ as disabledAgents, A as clearAgentPhase, B as deleteSubscription, C as reportsWorking, Ct as gh, D as agentFromCommand, Dt as config, E as agentFamily, Et as tmux, F as getInstance, G as subscribe, H as saveSubscription, I as iconSvg, J as shared, K as subscriberCount, L as manifest, M as setScrapedPhase, N as setSessionViewers, O as agentLabel, P as ACCENT_RE, Q as allPrefs, R as normalizeAccent, S as readHookPayload, St as TMUX_SOCKET, T as agentBadge, Tt as run, U as publish, V as pushPublicKey, W as publishJson, X as withLock, Y as swr, Z as agentChoices, _ as sendToSession, _t as toolById, a as ensureTmuxServer, at as setSetting, b as tmuxWasStarted, bt as get$1, c as killSession, ct as ghKnownHosts, d as listSessions, dt as setupPath, et as enabledAgents, f as markTmuxStarted, ft as which, g as renameSession, gt as agentLabel$1, h as panePids, ht as agentById, i as disposeSessions, it as setPref, j as setAgentPhase, k as agentMeta, l as killWorkspaceSessions, lt as miseInstalls, mt as TOOLS, n as clearTmuxStarted, nt as preferredAgent, o as forgetPanes, ot as discoverAgents, p as newSessionArgs, pt as DEFAULT_GITHUB_HOST, q as subscriberJoins, r as createSession, rt as setDisabledAgents, s as getSession, st as doctor, t as cleanEnv, tt as getSetting, u as listPanes, ut as miseVersions, v as sessionStates, vt as all, w as blankRow, wt as git, x as AGENTS, xt as workspacePath, y as tmuxName, yt as db, z as setInstance } from "./_B8Ruz8T9.js";
|
|
3
3
|
import fs from "node:fs";
|
|
4
4
|
import http, { createServer } from "node:http";
|
|
5
5
|
import path from "node:path";
|
|
@@ -2283,7 +2283,7 @@ async function ensureGitCredentials(host) {
|
|
|
2283
2283
|
"setup-git",
|
|
2284
2284
|
"--hostname",
|
|
2285
2285
|
host
|
|
2286
|
-
]).catch(() => {});
|
|
2286
|
+
], void 0, void 0, { timeoutMs: 3e4 }).catch(() => {});
|
|
2287
2287
|
}
|
|
2288
2288
|
function graphqlUrl(host) {
|
|
2289
2289
|
return host === DEFAULT_HOST ? "https://api.github.com/graphql" : `https://${host}/api/graphql`;
|
|
@@ -3489,12 +3489,18 @@ async function ensureBare(fullName) {
|
|
|
3489
3489
|
progress$1(`Cloning ${fullName} (first time, may take a while)…`);
|
|
3490
3490
|
fs.mkdirSync(path.dirname(bare), { recursive: true });
|
|
3491
3491
|
await ensureGitCredentials(splitRepo(fullName).host);
|
|
3492
|
+
fs.mkdirSync(bare, { recursive: true });
|
|
3492
3493
|
await git([
|
|
3493
|
-
"
|
|
3494
|
+
"init",
|
|
3494
3495
|
"--bare",
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3496
|
+
"--quiet"
|
|
3497
|
+
], bare);
|
|
3498
|
+
await git([
|
|
3499
|
+
"remote",
|
|
3500
|
+
"add",
|
|
3501
|
+
"origin",
|
|
3502
|
+
cloneUrl(fullName)
|
|
3503
|
+
], bare);
|
|
3498
3504
|
await git([
|
|
3499
3505
|
"config",
|
|
3500
3506
|
"remote.origin.fetch",
|
|
@@ -7246,16 +7252,16 @@ function applyInstance(inst) {
|
|
|
7246
7252
|
if (icon) icon.href = `/api/instance/icon${inst.accent ? `?v=${inst.accent.slice(1)}` : ""}`;
|
|
7247
7253
|
syncThemeColorMetas(theme(), inst.accent || "");
|
|
7248
7254
|
}
|
|
7249
|
-
var agentList = "
|
|
7250
|
-
var agentRow = "
|
|
7251
|
-
var toolGrid = "
|
|
7252
|
-
var toolRow = "
|
|
7253
|
-
var themeSeg = "
|
|
7254
|
-
var checkList = "
|
|
7255
|
-
var list$2 = "
|
|
7256
|
-
var flatCardRow = "
|
|
7257
|
-
var pop$1 = "
|
|
7258
|
-
var spinner = "
|
|
7255
|
+
var agentList = "_cQ _bZ _cD _cO";
|
|
7256
|
+
var agentRow = "_cU _cE";
|
|
7257
|
+
var toolGrid = "_c2 _cO";
|
|
7258
|
+
var toolRow = "_c3 _cP";
|
|
7259
|
+
var themeSeg = "_dq _be";
|
|
7260
|
+
var checkList = "_dW _bX";
|
|
7261
|
+
var list$2 = "_cQ _bZ _cD _cO";
|
|
7262
|
+
var flatCardRow = "_cR _cP";
|
|
7263
|
+
var pop$1 = "_d6 __";
|
|
7264
|
+
var spinner = "_d9 _2 _G";
|
|
7259
7265
|
var busy = "_ec _eb";
|
|
7260
7266
|
var pop = "_ee __";
|
|
7261
7267
|
var sectionCount = "_bW _N _O";
|
|
@@ -7299,18 +7305,18 @@ var icon_back_default = _template("R", (input) => {
|
|
|
7299
7305
|
var page_head_default = _template("u", (input) => {
|
|
7300
7306
|
const $scope0_reason = _scope_reason(), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions = _serialize_guard($scope0_reason, 3), $sg__input_meta = _serialize_guard($scope0_reason, 6), $sg__input_actions = _serialize_guard($scope0_reason, 7), $si__input_backHref__OR__input_onBack = _serialize_if($scope0_reason, 1), $si__input_meta = _serialize_if($scope0_reason, 6), $si__input_actions = _serialize_if($scope0_reason, 7);
|
|
7301
7307
|
const $scope0_id = _scope_id();
|
|
7302
|
-
_html(`<header${_attr_class("
|
|
7308
|
+
_html(`<header${_attr_class("_cy")}>`);
|
|
7303
7309
|
_if(() => {
|
|
7304
7310
|
if (input.backHref) {
|
|
7305
7311
|
const $scope1_id = _scope_id();
|
|
7306
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
7312
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7307
7313
|
icon_back_default({ size: 14 });
|
|
7308
7314
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
7309
7315
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
7310
7316
|
return 0;
|
|
7311
7317
|
} else if (input.onBack) {
|
|
7312
7318
|
const $scope2_id = _scope_id();
|
|
7313
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
7319
|
+
_html(`<button${_attr_class([iconBtnRow, "_gK"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
7314
7320
|
icon_back_default({ size: 14 });
|
|
7315
7321
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
7316
7322
|
_script($scope2_id, "u0");
|
|
@@ -7318,11 +7324,11 @@ var page_head_default = _template("u", (input) => {
|
|
|
7318
7324
|
return 1;
|
|
7319
7325
|
}
|
|
7320
7326
|
}, $scope0_id, "b", _serialize_guard($scope0_reason, 2), _serialize_guard($scope0_reason, 1), $sg__input_backHref__OR__input_onBack__OR__input_meta__OR__input_actions, 0, 1);
|
|
7321
|
-
_html(`<div${_attr_class("
|
|
7327
|
+
_html(`<div${_attr_class("_cA")}><h1${_attr("id", input.titleId)}${_attr_class("_cz")}>${_text_resume($scope0_id, "e", input.title, _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
7322
7328
|
_if(() => {
|
|
7323
7329
|
if (input.meta) {
|
|
7324
7330
|
const $scope3_id = _scope_id();
|
|
7325
|
-
_html(`<p${_attr_class("
|
|
7331
|
+
_html(`<p${_attr_class("_cB")}>`);
|
|
7326
7332
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
7327
7333
|
_html("</p>");
|
|
7328
7334
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7333,7 +7339,7 @@ var page_head_default = _template("u", (input) => {
|
|
|
7333
7339
|
_if(() => {
|
|
7334
7340
|
if (input.actions) {
|
|
7335
7341
|
const $scope4_id = _scope_id();
|
|
7336
|
-
_html(`<div${_attr_class("
|
|
7342
|
+
_html(`<div${_attr_class("_cC")}>`);
|
|
7337
7343
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
7338
7344
|
_html("</div>");
|
|
7339
7345
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -7401,7 +7407,7 @@ var icon_agent_default = _template("L", (input) => {
|
|
|
7401
7407
|
n: $badge__closures
|
|
7402
7408
|
});
|
|
7403
7409
|
});
|
|
7404
|
-
var usageNote = "
|
|
7410
|
+
var usageNote = "_gR _X";
|
|
7405
7411
|
//#endregion
|
|
7406
7412
|
//#region src/tags/icons/icon-warning.marko
|
|
7407
7413
|
var icon_warning_default = _template("sb", (input) => {
|
|
@@ -7431,11 +7437,11 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7431
7437
|
const $scope0_reason = _scope_reason(), $sg__input_agent__OR__input_hideName = _serialize_guard($scope0_reason, 0), $sg__input_agent = _serialize_guard($scope0_reason, 1), $si__input_agent = _serialize_if($scope0_reason, 1), $sg__input_hideName = _serialize_guard($scope0_reason, 2), $si__input_agent__OR__input_hideName = _serialize_if($scope0_reason, 0);
|
|
7432
7438
|
const $scope0_id = _scope_id();
|
|
7433
7439
|
const agent = input.agent;
|
|
7434
|
-
_html(`<div${_attr_class(["
|
|
7440
|
+
_html(`<div${_attr_class(["_gL", { ["_gM"]: input.hideName }])}><div${_attr_class("_gN")}>`);
|
|
7435
7441
|
_if(() => {
|
|
7436
7442
|
if (!input.hideName) {
|
|
7437
7443
|
const $scope1_id = _scope_id();
|
|
7438
|
-
_html(`<strong${_attr_class("
|
|
7444
|
+
_html(`<strong${_attr_class("_g6")}>${_text_resume($scope1_id, "b", agent.agent, $sg__input_agent)}</strong>`);
|
|
7439
7445
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
7440
7446
|
return 0;
|
|
7441
7447
|
}
|
|
@@ -7443,7 +7449,7 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7443
7449
|
_if(() => {
|
|
7444
7450
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
7445
7451
|
const $scope2_id = _scope_id();
|
|
7446
|
-
_html(`<span${_attr_class("
|
|
7452
|
+
_html(`<span${_attr_class("_gO")}>${_text_resume($scope2_id, "b", agent.plan.replace(/^default_/, "").replaceAll("_", " "), $sg__input_agent)}</span>`);
|
|
7447
7453
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
7448
7454
|
return 0;
|
|
7449
7455
|
}
|
|
@@ -7451,21 +7457,21 @@ var usage_meters_default = _template("H", (input) => {
|
|
|
7451
7457
|
_if(() => {
|
|
7452
7458
|
if (agent.stale_seconds != null) {
|
|
7453
7459
|
const $scope3_id = _scope_id();
|
|
7454
|
-
_html(`<span${_attr_class("
|
|
7460
|
+
_html(`<span${_attr_class("_gP")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
7455
7461
|
icon_warning_default({ size: 12 });
|
|
7456
7462
|
_html(` ${_text_resume($scope3_id, "c", duration(agent.stale_seconds * 1e3), $sg__input_agent * 2)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
7457
7463
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
7458
7464
|
return 0;
|
|
7459
7465
|
}
|
|
7460
7466
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
7461
|
-
_html(`</div><div${_attr_class(["
|
|
7467
|
+
_html(`</div><div${_attr_class(["_gQ", { ["_g7"]: agent.stale_seconds != null }])}>`);
|
|
7462
7468
|
_for_of(agent.windows || [], (win) => {
|
|
7463
7469
|
const $scope4_id = _scope_id();
|
|
7464
7470
|
const pct = pctText(win.used_percent);
|
|
7465
7471
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
7466
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
7467
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
7468
|
-
_html(`<div${_attr_class("
|
|
7472
|
+
const fillClass = win.used_percent >= 90 ? "_gZ" : win.used_percent >= 70 ? "_gY" : win.used_percent >= 40 ? "_gX" : "_gW";
|
|
7473
|
+
const pctClass = win.used_percent >= 90 ? "_g4" : win.used_percent >= 70 ? "_g3" : win.used_percent >= 40 ? "_g2" : "_g1";
|
|
7474
|
+
_html(`<div${_attr_class("_gS")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_gT")}>${_text_resume($scope4_id, "c", win.window, $sg__input_agent)}</span><span${_attr_class("_gU")}><span${_attr_class(["_gV", 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(["_g0", pctClass])}>${_text_resume($scope4_id, "g", pct, $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_g5")}>`);
|
|
7469
7475
|
_if(() => {
|
|
7470
7476
|
if (label) {
|
|
7471
7477
|
const $scope6_id = _scope_id();
|
|
@@ -7582,14 +7588,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7582
7588
|
localCode = null;
|
|
7583
7589
|
}
|
|
7584
7590
|
}, "D0", $scope0_id);
|
|
7585
|
-
_html(`<div${_attr_class(["
|
|
7591
|
+
_html(`<div${_attr_class(["_hd", input.class])}>`);
|
|
7586
7592
|
_for_of(input.items, (s) => {
|
|
7587
7593
|
const $scope1_id = _scope_id();
|
|
7588
|
-
_html(`<div${_attr_class("
|
|
7594
|
+
_html(`<div${_attr_class("_he")}><span${_attr_class("_hg")}><span${_attr_class("_hh")}>${_text_resume($scope1_id, "d", s.org, $sg__input_items)}</span><span${_attr_class(["_hi", "_hj"])} title="Repos and PRs in this org stay hidden until the GitHub CLI is authorized for it.">SSO not authorized</span></span>`);
|
|
7589
7595
|
_if(() => {
|
|
7590
7596
|
if (!busy) {
|
|
7591
7597
|
const $scope2_id = _scope_id();
|
|
7592
|
-
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "
|
|
7598
|
+
_html(`<button type=button${_attr_class([btnSm, "_r"])} title="Re-authorize GitHub CLI (same device flow as Sign in)">Authorize</button>${_el_resume($scope2_id, "a")}<button type=button${_attr_class([btnSm, "_hk"])}${_attr("title", `Ignore ${s.org} — stop asking about it`)}>Ignore</button>${_el_resume($scope2_id, "b")}`);
|
|
7593
7599
|
_script($scope2_id, "D1");
|
|
7594
7600
|
writeScope($scope2_id, {});
|
|
7595
7601
|
return 0;
|
|
@@ -7604,13 +7610,13 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7604
7610
|
_if(() => {
|
|
7605
7611
|
if (localBusy && localCode) {
|
|
7606
7612
|
const $scope4_id = _scope_id();
|
|
7607
|
-
_html(`<div${_attr_class(["
|
|
7613
|
+
_html(`<div${_attr_class(["_he", "_hl"])}><span${_attr_class("_G")}></span> Enter code <strong${_attr_class("_hm")}>${_text_resume($scope4_id, "d", localCode)}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_hn")}>${_text_resume($scope4_id, "f", host, _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope4_id, "e")}</div>`);
|
|
7608
7614
|
_script($scope4_id, "D2");
|
|
7609
7615
|
writeScope($scope4_id, {});
|
|
7610
7616
|
return 0;
|
|
7611
7617
|
} else if (localBusy) {
|
|
7612
7618
|
const $scope6_id = _scope_id();
|
|
7613
|
-
_html(`<div${_attr_class(["
|
|
7619
|
+
_html(`<div${_attr_class(["_he", "_hl"])}><span${_attr_class("_G")}></span>Starting GitHub re-authorization…</div>`);
|
|
7614
7620
|
writeScope($scope6_id, {});
|
|
7615
7621
|
return 1;
|
|
7616
7622
|
}
|
|
@@ -7618,14 +7624,14 @@ var sso_auth_default = _template("D", (input) => {
|
|
|
7618
7624
|
_if(() => {
|
|
7619
7625
|
if (localError) {
|
|
7620
7626
|
const $scope5_id = _scope_id();
|
|
7621
|
-
_html(`<p${_attr_class(["
|
|
7627
|
+
_html(`<p${_attr_class(["_he", "_ho"])}>${_text_resume($scope5_id, "b", localError)}</p>`);
|
|
7622
7628
|
writeScope($scope5_id, {});
|
|
7623
7629
|
return 0;
|
|
7624
7630
|
}
|
|
7625
7631
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
7626
7632
|
_for_of(skipped, (s) => {
|
|
7627
7633
|
const $scope3_id = _scope_id();
|
|
7628
|
-
_html(`<div${_attr_class(["
|
|
7634
|
+
_html(`<div${_attr_class(["_he", "_hf"])}><span${_attr_class("_hg")}><span${_attr_class("_hh")}>${_text_resume($scope3_id, "d", s.org, $sg__input_skipped)}</span><span${_attr_class("_hi")}>Ignored</span></span><button type=button${_attr_class([btnSm, "_hk"])}${_attr("title", `Ask about ${s.org} again`)}>Undo</button>${_el_resume($scope3_id, "f")}</div>`);
|
|
7629
7635
|
_script($scope3_id, "D3");
|
|
7630
7636
|
writeScope($scope3_id, {
|
|
7631
7637
|
i: s?.org,
|
|
@@ -7866,7 +7872,7 @@ var icon_moon_default = _template("jb", (input) => {
|
|
|
7866
7872
|
});
|
|
7867
7873
|
//#endregion
|
|
7868
7874
|
//#region src/tags/prompt-dialog.css.ts
|
|
7869
|
-
var promptDlg = "
|
|
7875
|
+
var promptDlg = "_hc _g9";
|
|
7870
7876
|
//#endregion
|
|
7871
7877
|
//#region src/tags/dialog-close.marko
|
|
7872
7878
|
var dialog_close_default = _template("f", (input) => {
|
|
@@ -7890,7 +7896,7 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7890
7896
|
const { label, class: inputClass, open: _open, openChange: _openChange, dismissable: _dismissable, content, footer, closedby: _closedby, onCancel: _onCancel, onClose: _onClose, "aria-label": inputAriaLabel, "aria-labelledby": inputLabelledBy, ...htmlInput } = input;
|
|
7891
7897
|
const dismissable = input.dismissable !== false;
|
|
7892
7898
|
let open = input.open;
|
|
7893
|
-
_html(`<dialog${_attr_class(["
|
|
7899
|
+
_html(`<dialog${_attr_class(["_g8", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
7894
7900
|
...htmlInput,
|
|
7895
7901
|
open: null
|
|
7896
7902
|
}, {
|
|
@@ -7900,20 +7906,20 @@ var modal_view_default = _template("s", (input) => {
|
|
|
7900
7906
|
closedby: 1,
|
|
7901
7907
|
"on-cancel": 1,
|
|
7902
7908
|
"on-close": 1
|
|
7903
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
7909
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_ha")}>`);
|
|
7904
7910
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
7905
7911
|
_html("</div>");
|
|
7906
7912
|
_if(() => {
|
|
7907
7913
|
if (footer) {
|
|
7908
7914
|
const $scope1_id = _scope_id();
|
|
7909
|
-
_html(`<form method=dialog${_attr_class("
|
|
7915
|
+
_html(`<form method=dialog${_attr_class("_hb")}>`);
|
|
7910
7916
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
7911
7917
|
_html("</form>");
|
|
7912
7918
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
7913
7919
|
return 0;
|
|
7914
7920
|
} else if (input.openChange) {
|
|
7915
7921
|
const $scope2_id = _scope_id();
|
|
7916
|
-
_html(`<form method=dialog${_attr_class("
|
|
7922
|
+
_html(`<form method=dialog${_attr_class("_hb")}>`);
|
|
7917
7923
|
dialog_close_default({
|
|
7918
7924
|
class: ["_q", "_r"],
|
|
7919
7925
|
content: _content("s0", () => {
|
|
@@ -7997,7 +8003,7 @@ var prompt_dialog_default = _template("v", (input) => {
|
|
|
7997
8003
|
content: _content("v7", () => {
|
|
7998
8004
|
_scope_reason();
|
|
7999
8005
|
const $scope2_id = _scope_id();
|
|
8000
|
-
_html(`<h2${_attr_class("
|
|
8006
|
+
_html(`<h2${_attr_class("_g_")}${_attr("id", titleId)}>${_text_resume($scope2_id, "b", input.label, $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
8001
8007
|
value = _new_value;
|
|
8002
8008
|
}, "v0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
8003
8009
|
_script($scope2_id, "v5");
|
|
@@ -8519,7 +8525,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8519
8525
|
const githubId = _id();
|
|
8520
8526
|
const backupId = _id();
|
|
8521
8527
|
const machineId = _id();
|
|
8522
|
-
_html(`<div${_attr_class("
|
|
8528
|
+
_html(`<div${_attr_class("_cv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_cw")}><div${_attr_class("_cx")}>`);
|
|
8523
8529
|
_set_serialize_reason({
|
|
8524
8530
|
0: _serialize_guard($scope0_reason, 4),
|
|
8525
8531
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -8531,7 +8537,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8531
8537
|
if (setup && !setup.ready) $meta = attrTag({ content: _content_resume("y44", () => {
|
|
8532
8538
|
_scope_reason();
|
|
8533
8539
|
const $scope4_id = _scope_id();
|
|
8534
|
-
_html(`<span${_attr_class("
|
|
8540
|
+
_html(`<span${_attr_class("_cT")}>Not ready</span>. Missing ${_text_resume($scope4_id, "b", setup.missing.map((m) => MISSING_LABEL[m] || m).join(", "), 2)}.`);
|
|
8535
8541
|
_subscribe($setup_missing__closures, writeScope($scope4_id, { _: _scope_with_id($scope0_id) }));
|
|
8536
8542
|
_resume_branch($scope4_id);
|
|
8537
8543
|
}, $scope0_id) });
|
|
@@ -8584,16 +8590,16 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8584
8590
|
_if(() => {
|
|
8585
8591
|
if (selfUpdatePending || selfUpdating) {
|
|
8586
8592
|
const $scope44_id = _scope_id();
|
|
8587
|
-
_html(`<div${_attr_class("
|
|
8593
|
+
_html(`<div${_attr_class("_du")} role=status><div${_attr_class("_dv")}>`);
|
|
8588
8594
|
_if(() => {
|
|
8589
8595
|
if (selfUpdating) {
|
|
8590
8596
|
const $scope79_id = _scope_id();
|
|
8591
|
-
_html(`<span${_attr_class("
|
|
8597
|
+
_html(`<span${_attr_class("_dw")}><span${_attr_class("_G")}></span> Updating work…</span><span${_attr_class("_dx")}>The app restarts and reloads when it is done.</span>`);
|
|
8592
8598
|
writeScope($scope79_id, {});
|
|
8593
8599
|
return 0;
|
|
8594
8600
|
} else {
|
|
8595
8601
|
const $scope45_id = _scope_id();
|
|
8596
|
-
_html(`<span${_attr_class("
|
|
8602
|
+
_html(`<span${_attr_class("_dw")}>Update available</span><span${_attr_class("_dx")}>v${_text_resume($scope45_id, "c", self.version, 2)} → v${_text_resume($scope45_id, "d", self.latest, 2)}</span>`);
|
|
8597
8603
|
_subscribe($self_version__closures, _subscribe($self_latest__closures, writeScope($scope45_id, {})));
|
|
8598
8604
|
return 1;
|
|
8599
8605
|
}
|
|
@@ -8612,11 +8618,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8612
8618
|
return 0;
|
|
8613
8619
|
}
|
|
8614
8620
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
8615
|
-
_html(`<section${_attr_class("_bU")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bV")}><h2${_attr("id", agentsId)}${_attr_class("_b8")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("
|
|
8621
|
+
_html(`<section${_attr_class("_bU")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bV")}><h2${_attr("id", agentsId)}${_attr_class("_b8")}>Agents</h2><div${_attr_class("_z")}></div><label${_attr_class("_cV")}><span${_attr_class("_X")}>Default</span><span${_attr_class("_o")}>`);
|
|
8616
8622
|
_attr_select_value($scope0_id, "n", input$3.preferred, _resume(function(v) {
|
|
8617
8623
|
setPreferred(v);
|
|
8618
8624
|
}, "y2", $scope0_id), () => {
|
|
8619
|
-
_html(`<select${_attr_class(["_p", "
|
|
8625
|
+
_html(`<select${_attr_class(["_p", "_cW"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
8620
8626
|
_for_of(input$3.agents.filter((a) => a !== "shell"), (id) => {
|
|
8621
8627
|
const $scope80_id = _scope_id();
|
|
8622
8628
|
_html(`<option${_attr_option_value(id)}>${_text_resume($scope80_id, "b", agentLabel(id), $sg__input_agents)}</option>${_el_resume($scope80_id, "a", $sg__input_agents)}`);
|
|
@@ -8630,7 +8636,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8630
8636
|
const rows = lone ? [] : a.instances;
|
|
8631
8637
|
const loneAccounts = lone ? accountsFor(lone.id) : [];
|
|
8632
8638
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
8633
|
-
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["
|
|
8639
|
+
_html(`<li${_attr_class(agentRow)}><div${_attr_class(["_cX", { ["_cZ"]: lone && !lone.enabled }])}>`);
|
|
8634
8640
|
_set_serialize_reason(12);
|
|
8635
8641
|
const $childScope3 = _peek_scope_id();
|
|
8636
8642
|
icon_agent_default({
|
|
@@ -8650,7 +8656,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8650
8656
|
_if(() => {
|
|
8651
8657
|
if (active.has(a.id)) {
|
|
8652
8658
|
const $scope12_id = _scope_id();
|
|
8653
|
-
_html(`<span${_attr_class("
|
|
8659
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope12_id, "c", active.get(a.id) || "Starting…")}</span>`);
|
|
8654
8660
|
_subscribe($active__closures, writeScope($scope12_id, {}));
|
|
8655
8661
|
return 0;
|
|
8656
8662
|
} else if (!a.installed) {
|
|
@@ -8683,15 +8689,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8683
8689
|
_if(() => {
|
|
8684
8690
|
if (rows.length || loneAccounts.length || extraAccounts.length) {
|
|
8685
8691
|
const $scope2_id = _scope_id();
|
|
8686
|
-
_html(`<ul${_attr_class(["
|
|
8692
|
+
_html(`<ul${_attr_class(["_c1", { ["_cZ"]: lone && !lone.enabled }])}>`);
|
|
8687
8693
|
_for_of(rows, (inst) => {
|
|
8688
8694
|
const $scope3_id = _scope_id();
|
|
8689
8695
|
const accounts = accountsFor(inst.id);
|
|
8690
|
-
_html(`<li${_attr_class(["
|
|
8696
|
+
_html(`<li${_attr_class(["_cY", { ["_cZ"]: !inst.enabled }])}><div${_attr_class("_cX")}>`);
|
|
8691
8697
|
_set_serialize_reason(12);
|
|
8692
8698
|
const $childScope4 = _peek_scope_id();
|
|
8693
8699
|
icon_agent_default({ agent: inst.id });
|
|
8694
|
-
_html(`<span${_attr_class(["
|
|
8700
|
+
_html(`<span${_attr_class(["_c0", "_y"])}>${_text_resume($scope3_id, "e", inst.command)}</span>`);
|
|
8695
8701
|
_if(() => {
|
|
8696
8702
|
if (input$3.preferred === inst.id) {
|
|
8697
8703
|
const $scope83_id = _scope_id();
|
|
@@ -8787,7 +8793,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8787
8793
|
_if(() => {
|
|
8788
8794
|
if (setup && !addingHost) {
|
|
8789
8795
|
const $scope42_id = _scope_id();
|
|
8790
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
8796
|
+
_html(`<button${_attr_class([iconBtnRow, "_c_"])} title="Add Enterprise host" aria-label="Add Enterprise host">`);
|
|
8791
8797
|
icon_plus_default({ size: 16 });
|
|
8792
8798
|
_html(`</button>${_el_resume($scope42_id, "a")}`);
|
|
8793
8799
|
_script($scope42_id, "y51");
|
|
@@ -8799,10 +8805,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8799
8805
|
if (setup) {
|
|
8800
8806
|
const $scope41_id = _scope_id();
|
|
8801
8807
|
_html(`<form${_attr_class([
|
|
8802
|
-
"
|
|
8803
|
-
"
|
|
8804
|
-
{ ["
|
|
8805
|
-
])}><label${_attr_class(["_1", "
|
|
8808
|
+
"_d0",
|
|
8809
|
+
"_c_",
|
|
8810
|
+
{ ["_d1"]: !addingHost }
|
|
8811
|
+
])}><label${_attr_class(["_1", "_d3"])}>`);
|
|
8806
8812
|
icon_github_default({
|
|
8807
8813
|
size: 14,
|
|
8808
8814
|
class: "_2"
|
|
@@ -8812,12 +8818,12 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8812
8818
|
}, "y3", $scope41_id))}${_attr_class([
|
|
8813
8819
|
"_Z",
|
|
8814
8820
|
"_3",
|
|
8815
|
-
"
|
|
8821
|
+
"_d4"
|
|
8816
8822
|
])} type=text placeholder=github.example.com aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope41_id, "d")}</label><button${_attr_class([
|
|
8817
8823
|
btnSm,
|
|
8818
8824
|
"_r",
|
|
8819
|
-
"
|
|
8820
|
-
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "
|
|
8825
|
+
"_c9"
|
|
8826
|
+
])} type=submit${_attr("hidden", !addingHost)}${_attr("disabled", !hostInput.trim() || hostBusy)}>${_text_resume($scope41_id, "f", hostBusy ? "Adding…" : "Add")}</button>${_el_resume($scope41_id, "e")}<button${_attr_class([iconBtnRow, "_d5"])} type=button${_attr("hidden", !addingHost)} title=Cancel aria-label=Cancel${_attr("disabled", hostBusy)}>`);
|
|
8821
8827
|
icon_xmark_default({ size: 14 });
|
|
8822
8828
|
_html(`</button>${_el_resume($scope41_id, "g")}</form>${_el_resume($scope41_id, "a")}`);
|
|
8823
8829
|
_script($scope41_id, "y52");
|
|
@@ -8825,17 +8831,17 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8825
8831
|
return 0;
|
|
8826
8832
|
}
|
|
8827
8833
|
}, $scope0_id, "w", 1, 1, 1, 0, 1);
|
|
8828
|
-
_html(`</div><div${_attr_class(["_bZ", "
|
|
8834
|
+
_html(`</div><div${_attr_class(["_bZ", "_cD"])}>`);
|
|
8829
8835
|
_for_of(setup?.github || [], (h) => {
|
|
8830
8836
|
const $scope6_id = _scope_id();
|
|
8831
8837
|
const $for_content3__h_host__closures = /* @__PURE__ */ new Set();
|
|
8832
8838
|
const hostSso$1 = (h.sso || []).filter((s) => !ignoredSso.has(s.org));
|
|
8833
8839
|
const skippedSso = (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
8834
8840
|
const busy = active.has(h.host);
|
|
8835
|
-
_html(`<div${_attr_class(["
|
|
8841
|
+
_html(`<div${_attr_class(["_cE", "_da"])}><div${_attr_class("_db")}>`);
|
|
8836
8842
|
icon_github_default({
|
|
8837
8843
|
size: 18,
|
|
8838
|
-
class: "
|
|
8844
|
+
class: "_dc"
|
|
8839
8845
|
});
|
|
8840
8846
|
_html(`<div${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope6_id, "g", h.host)}</span>`);
|
|
8841
8847
|
_if(() => {
|
|
@@ -8850,25 +8856,25 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8850
8856
|
_if(() => {
|
|
8851
8857
|
if (busy) {
|
|
8852
8858
|
const $scope13_id = _scope_id();
|
|
8853
|
-
_html(`<span${_attr_class(["_b3", "
|
|
8859
|
+
_html(`<span${_attr_class(["_b3", "_dd"])}><span${_attr_class("_G")}></span>${_text_resume($scope13_id, "c", authCodes.has(h.host) ? "Waiting for the browser…" : active.get(h.host) || "Starting…")}</span>`);
|
|
8854
8860
|
_subscribe($authCodes__closures, _subscribe($active__closures, writeScope($scope13_id, { Ch2: 1 })));
|
|
8855
8861
|
return 0;
|
|
8856
8862
|
} else if (h.authed) {
|
|
8857
8863
|
const $scope89_id = _scope_id();
|
|
8858
|
-
_html(`<span${_attr_class(["_b3", "
|
|
8864
|
+
_html(`<span${_attr_class(["_b3", "_dd"])}>`);
|
|
8859
8865
|
icon_check_default({
|
|
8860
8866
|
size: 12,
|
|
8861
|
-
class: "
|
|
8867
|
+
class: "_de"
|
|
8862
8868
|
});
|
|
8863
|
-
_html(` Signed in as <strong${_attr_class("
|
|
8869
|
+
_html(` Signed in as <strong${_attr_class("_dg")}>${_text_resume($scope89_id, "d", h.user || "?")}</strong></span>`);
|
|
8864
8870
|
writeScope($scope89_id, {});
|
|
8865
8871
|
return 1;
|
|
8866
8872
|
} else if (h.error) {
|
|
8867
8873
|
const $scope90_id = _scope_id();
|
|
8868
8874
|
_html(`<span${_attr_class([
|
|
8869
8875
|
"_b3",
|
|
8870
|
-
"
|
|
8871
|
-
"
|
|
8876
|
+
"_dd",
|
|
8877
|
+
"_df"
|
|
8872
8878
|
])}>`);
|
|
8873
8879
|
icon_warning_default({ size: 12 });
|
|
8874
8880
|
_html(`${_text_resume($scope90_id, "c", h.error)}</span>`);
|
|
@@ -8876,7 +8882,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8876
8882
|
return 2;
|
|
8877
8883
|
} else {
|
|
8878
8884
|
const $scope92_id = _scope_id();
|
|
8879
|
-
_html(`<span${_attr_class(["_b3", "
|
|
8885
|
+
_html(`<span${_attr_class(["_b3", "_dd"])}>Not signed in</span>`);
|
|
8880
8886
|
writeScope($scope92_id, {});
|
|
8881
8887
|
return 3;
|
|
8882
8888
|
}
|
|
@@ -8941,7 +8947,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8941
8947
|
_if(() => {
|
|
8942
8948
|
if (busy && authCodes.has(h.host)) {
|
|
8943
8949
|
const $scope30_id = _scope_id();
|
|
8944
|
-
_html(`<div${_attr_class("
|
|
8950
|
+
_html(`<div${_attr_class("_dh")}><span${_attr_class("_di")}>Enter this code at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_dk")}>${_text_resume($scope30_id, "d", h.host)}/login/device</a>${_el_resume($scope30_id, "c")}</span><code${_attr_class("_dj")}>${_text_resume($scope30_id, "f", authCodes.get(h.host))}</code></div>`);
|
|
8945
8951
|
_subscribe($authCodes__closures, writeScope($scope30_id, { Ch4: 1 }));
|
|
8946
8952
|
return 0;
|
|
8947
8953
|
}
|
|
@@ -8953,7 +8959,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8953
8959
|
_set_serialize_reason(30);
|
|
8954
8960
|
const $childScope9 = _peek_scope_id();
|
|
8955
8961
|
sso_auth_default({
|
|
8956
|
-
class: ["
|
|
8962
|
+
class: ["_cE", "_dl"],
|
|
8957
8963
|
items: hostSso$1,
|
|
8958
8964
|
skipped: skippedSso,
|
|
8959
8965
|
busy,
|
|
@@ -8992,18 +8998,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
8992
8998
|
return 0;
|
|
8993
8999
|
}
|
|
8994
9000
|
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
8995
|
-
_html(`</section><section${_attr_class("_bU")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bV")}><h2${_attr("id", machineId)}${_attr_class("_b8")}>Machine</h2></div><div${_attr_class(["_bZ", "
|
|
9001
|
+
_html(`</section><section${_attr_class("_bU")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bV")}><h2${_attr("id", machineId)}${_attr_class("_b8")}>Machine</h2></div><div${_attr_class(["_bZ", "_cD"])}><div${_attr_class(["_cE", "_cF"])}><div${_attr_class(["_cG", { ["_cH"]: skillsOpen }])}><button${_attr_class("_cI")} aria-expanded=true>`);
|
|
8996
9002
|
_set_serialize_reason(1);
|
|
8997
9003
|
const $childScope10 = _peek_scope_id();
|
|
8998
9004
|
icon_chevron_right_default({
|
|
8999
9005
|
size: 12,
|
|
9000
|
-
class: ["
|
|
9006
|
+
class: ["_cM", { ["_cN"]: skillsOpen }]
|
|
9001
9007
|
});
|
|
9002
|
-
_html(`<span${_attr_class("
|
|
9008
|
+
_html(`<span${_attr_class("_cJ")}>Skills</span>`);
|
|
9003
9009
|
_if(() => {
|
|
9004
9010
|
if (skills?.global.length) {
|
|
9005
9011
|
const $scope51_id = _scope_id();
|
|
9006
|
-
_html(`<span${_attr_class("
|
|
9012
|
+
_html(`<span${_attr_class("_cK")}>${_text_resume($scope51_id, "b", skills.global.length)} installed</span>`);
|
|
9007
9013
|
writeScope($scope51_id, {});
|
|
9008
9014
|
return 0;
|
|
9009
9015
|
}
|
|
@@ -9023,7 +9029,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9023
9029
|
_if(() => {
|
|
9024
9030
|
if (skills?.available && skills.agents.length) {
|
|
9025
9031
|
const $scope14_id = _scope_id();
|
|
9026
|
-
_html(`<div${_attr_class(["
|
|
9032
|
+
_html(`<div${_attr_class(["_d0", { ["_d1"]: true }])}><label${_attr_class(["_1", "_d3"])}>`);
|
|
9027
9033
|
_if(() => {
|
|
9028
9034
|
if (skillSearching) {
|
|
9029
9035
|
const $scope96_id = _scope_id();
|
|
@@ -9043,14 +9049,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9043
9049
|
_html(`<input${_attr_input_value($scope14_id, "d", skillQuery, searchSkills)}${_attr_class([
|
|
9044
9050
|
"_Z",
|
|
9045
9051
|
"_3",
|
|
9046
|
-
"
|
|
9047
|
-
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9052
|
+
"_d4"
|
|
9053
|
+
])} type=text placeholder="Search skills, or paste owner/repo…" aria-label="Search for a skill" autocomplete=off spellcheck=false>${_el_resume($scope14_id, "d")}</label><button${_attr_class([iconBtnRow, "_d5"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9048
9054
|
icon_xmark_default({ size: 14 });
|
|
9049
|
-
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "
|
|
9055
|
+
_html(`</button>${_el_resume($scope14_id, "e")}<ul${_attr_class([pop$1, "_d7"])}${_attr("hidden", true)}>`);
|
|
9050
9056
|
_if(() => {
|
|
9051
9057
|
if (skillSearching && !skillHits?.length && !looksLikeSource(skillQuery)) {
|
|
9052
9058
|
const $scope98_id = _scope_id();
|
|
9053
|
-
_html(`<li${_attr_class("
|
|
9059
|
+
_html(`<li${_attr_class("_d8")}>Searching skills.sh…</li>`);
|
|
9054
9060
|
writeScope($scope98_id, {});
|
|
9055
9061
|
return 0;
|
|
9056
9062
|
}
|
|
@@ -9058,11 +9064,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9058
9064
|
_if(() => {
|
|
9059
9065
|
if (looksLikeSource(skillQuery)) {
|
|
9060
9066
|
const $scope15_id = _scope_id();
|
|
9061
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["
|
|
9067
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_c5", "_y"])}>${_text_resume($scope15_id, "d", skillQuery.trim())}</span>`);
|
|
9062
9068
|
_if(() => {
|
|
9063
9069
|
if (active.has(skillQuery.trim())) {
|
|
9064
9070
|
const $scope16_id = _scope_id();
|
|
9065
|
-
_html(`<span${_attr_class("
|
|
9071
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope16_id, "c", active.get(skillQuery.trim()) || "Starting…")}</span>`);
|
|
9066
9072
|
_subscribe($skillQuery__closures, _subscribe($active__closures, writeScope($scope16_id, {
|
|
9067
9073
|
Ch2: 3,
|
|
9068
9074
|
Chr: 1
|
|
@@ -9093,11 +9099,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9093
9099
|
_for_of(skillHits || [], (h) => {
|
|
9094
9100
|
const $scope17_id = _scope_id();
|
|
9095
9101
|
const $for_content4__h_installs__closures = /* @__PURE__ */ new Set();
|
|
9096
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["
|
|
9102
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_c5", "_y"])}>${_text_resume($scope17_id, "d", h.name)}</span>`);
|
|
9097
9103
|
_if(() => {
|
|
9098
9104
|
if (active.has(h.skillId)) {
|
|
9099
9105
|
const $scope18_id = _scope_id();
|
|
9100
|
-
_html(`<span${_attr_class("
|
|
9106
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope18_id, "c", active.get(h.skillId) || "Starting…")}</span>`);
|
|
9101
9107
|
_subscribe($active__closures, writeScope($scope18_id, { Ch2: 5 }));
|
|
9102
9108
|
return 0;
|
|
9103
9109
|
} else {
|
|
@@ -9150,7 +9156,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9150
9156
|
_if(() => {
|
|
9151
9157
|
if (skillHits && !skillHits.length && !skillSearching && !looksLikeSource(skillQuery)) {
|
|
9152
9158
|
const $scope53_id = _scope_id();
|
|
9153
|
-
_html(`<li${_attr_class("
|
|
9159
|
+
_html(`<li${_attr_class("_d8")}>No skills match "${_text_resume($scope53_id, "b", skillQuery, 2)}".</li>`);
|
|
9154
9160
|
_subscribe($skillQuery__closures, writeScope($scope53_id, { Chr: 2 }));
|
|
9155
9161
|
return 0;
|
|
9156
9162
|
}
|
|
@@ -9165,7 +9171,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9165
9171
|
_if(() => {
|
|
9166
9172
|
{
|
|
9167
9173
|
const $scope19_id = _scope_id();
|
|
9168
|
-
_html(`<div${_attr_class("
|
|
9174
|
+
_html(`<div${_attr_class("_cL")}>`);
|
|
9169
9175
|
_if(() => {
|
|
9170
9176
|
if (skills && !skills.agents.length) {
|
|
9171
9177
|
const $scope103_id = _scope_id();
|
|
@@ -9266,14 +9272,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9266
9272
|
return 0;
|
|
9267
9273
|
}
|
|
9268
9274
|
}, $scope0_id, "ab", 1, 1, 1, 0, 1);
|
|
9269
|
-
_html(`</div><div${_attr_class(["
|
|
9275
|
+
_html(`</div><div${_attr_class(["_cE", "_cF"])}><div${_attr_class(["_cG", { ["_cH"]: machineOpen }])}><button${_attr_class("_cI")} aria-expanded=${machineOpen ? "true" : "false"}>`);
|
|
9270
9276
|
_set_serialize_reason(1);
|
|
9271
9277
|
const $childScope12 = _peek_scope_id();
|
|
9272
9278
|
icon_chevron_right_default({
|
|
9273
9279
|
size: 12,
|
|
9274
|
-
class: ["
|
|
9280
|
+
class: ["_cM", { ["_cN"]: machineOpen }]
|
|
9275
9281
|
});
|
|
9276
|
-
_html(`<span${_attr_class("
|
|
9282
|
+
_html(`<span${_attr_class("_cJ")}>Tools</span><span${_attr_class("_cK")}>${_text_resume($scope0_id, "ai", tools.filter((t) => t.installed).length)} installed ${_text_resume($scope0_id, "aj", missingCount ? `${_to_text(" · ")}${_to_text(missingCount)} missing` : "", 2)}${_text_resume($scope0_id, "ak", outdatedIds.length ? `${_to_text(" · ")}${_to_text(outdatedIds.length)} outdated` : "", 2)}</span></button>${_el_resume($scope0_id, "ae")}`);
|
|
9277
9283
|
_if(() => {
|
|
9278
9284
|
if (outdatedIds.length > 1) {
|
|
9279
9285
|
const $scope22_id = _scope_id();
|
|
@@ -9306,7 +9312,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9306
9312
|
_if(() => {
|
|
9307
9313
|
if (setup && setup.mise.installed) {
|
|
9308
9314
|
const $scope24_id = _scope_id();
|
|
9309
|
-
_html(`<div${_attr_class(["
|
|
9315
|
+
_html(`<div${_attr_class(["_d0", { ["_d1"]: true }])}><label${_attr_class(["_1", "_d3"])}>`);
|
|
9310
9316
|
_if(() => {
|
|
9311
9317
|
if (searching) {
|
|
9312
9318
|
const $scope109_id = _scope_id();
|
|
@@ -9326,14 +9332,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9326
9332
|
_html(`<input${_attr_input_value($scope24_id, "d", query, search)}${_attr_class([
|
|
9327
9333
|
"_Z",
|
|
9328
9334
|
"_3",
|
|
9329
|
-
"
|
|
9330
|
-
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "
|
|
9335
|
+
"_d4"
|
|
9336
|
+
])} type=text placeholder="Search the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope24_id, "d")}</label><button${_attr_class([iconBtnRow, "_d5"])} type=button${_attr("hidden", true)} title="Close search" aria-label="Close search">`);
|
|
9331
9337
|
icon_xmark_default({ size: 14 });
|
|
9332
|
-
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "
|
|
9338
|
+
_html(`</button>${_el_resume($scope24_id, "e")}<ul${_attr_class([pop$1, "_d7"])}${_attr("hidden", true)}>`);
|
|
9333
9339
|
_if(() => {
|
|
9334
9340
|
if (searching && !hits?.length) {
|
|
9335
9341
|
const $scope111_id = _scope_id();
|
|
9336
|
-
_html(`<li${_attr_class("
|
|
9342
|
+
_html(`<li${_attr_class("_d8")}>Searching the mise registry…</li>`);
|
|
9337
9343
|
writeScope($scope111_id, {});
|
|
9338
9344
|
return 0;
|
|
9339
9345
|
}
|
|
@@ -9341,18 +9347,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9341
9347
|
_if(() => {
|
|
9342
9348
|
if (hits && !hits.length && !searching) {
|
|
9343
9349
|
const $scope43_id = _scope_id();
|
|
9344
|
-
_html(`<li${_attr_class("
|
|
9350
|
+
_html(`<li${_attr_class("_d8")}>No tools match "${_text_resume($scope43_id, "b", query, 2)}".</li>`);
|
|
9345
9351
|
_subscribe($query__closures, writeScope($scope43_id, {}));
|
|
9346
9352
|
return 0;
|
|
9347
9353
|
}
|
|
9348
9354
|
}, $scope24_id, "i", 1, 1, 1, 0, 1);
|
|
9349
9355
|
_for_of(hits || [], (h) => {
|
|
9350
9356
|
const $scope25_id = _scope_id();
|
|
9351
|
-
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["
|
|
9357
|
+
_html(`<li${_attr_class(toolRow)}><div${_attr_class("_b0")}><span${_attr_class(["_c5", "_y"])}>${_text_resume($scope25_id, "d", h.name)}</span>`);
|
|
9352
9358
|
_if(() => {
|
|
9353
9359
|
if (active.has(h.name)) {
|
|
9354
9360
|
const $scope26_id = _scope_id();
|
|
9355
|
-
_html(`<span${_attr_class("
|
|
9361
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope26_id, "c", active.get(h.name) || "Starting…")}</span>`);
|
|
9356
9362
|
_subscribe($active__closures, writeScope($scope26_id, { Ch2: 9 }));
|
|
9357
9363
|
return 0;
|
|
9358
9364
|
} else if (h.description) {
|
|
@@ -9402,7 +9408,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9402
9408
|
_if(() => {
|
|
9403
9409
|
if (machineOpen) {
|
|
9404
9410
|
const $scope5_id = _scope_id();
|
|
9405
|
-
_html(`<div${_attr_class("
|
|
9411
|
+
_html(`<div${_attr_class("_cL")}>`);
|
|
9406
9412
|
_if(() => {
|
|
9407
9413
|
if (setup && !setup.mise.installed) {
|
|
9408
9414
|
const $scope27_id = _scope_id();
|
|
@@ -9416,11 +9422,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9416
9422
|
_if(() => {
|
|
9417
9423
|
if (self) {
|
|
9418
9424
|
const $scope47_id = _scope_id();
|
|
9419
|
-
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["
|
|
9425
|
+
_html(`<li${_attr_class(toolRow)}><span${_attr_class(["_c5", "_y"])}>work</span>`);
|
|
9420
9426
|
_if(() => {
|
|
9421
9427
|
if (selfUpdating) {
|
|
9422
9428
|
const $scope114_id = _scope_id();
|
|
9423
|
-
_html(`<span${_attr_class("
|
|
9429
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
9424
9430
|
writeScope($scope114_id, {});
|
|
9425
9431
|
return 0;
|
|
9426
9432
|
} else {
|
|
@@ -9434,7 +9440,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9434
9440
|
return 0;
|
|
9435
9441
|
} else if (self.latest && self.latest !== self.version) {
|
|
9436
9442
|
const $scope49_id = _scope_id();
|
|
9437
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9443
|
+
_html(`<button${_attr_class([btnSm, "_c8"])}${_attr("title", `Update work to v${self.latest} and restart`)}>`);
|
|
9438
9444
|
icon_arrow_up_default({ size: 12 });
|
|
9439
9445
|
_html(` ${_text_resume($scope49_id, "c", self.latest, 2)}</button>${_el_resume($scope49_id, "a")}`);
|
|
9440
9446
|
_script($scope49_id, "y72");
|
|
@@ -9478,11 +9484,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9478
9484
|
const $for_content7__t_label__closures = /* @__PURE__ */ new Set();
|
|
9479
9485
|
const $for_content7__t_newest__closures = /* @__PURE__ */ new Set();
|
|
9480
9486
|
const $for_content7__t_id__closures = /* @__PURE__ */ new Set();
|
|
9481
|
-
_html(`<li${_attr_class([toolRow, { ["
|
|
9487
|
+
_html(`<li${_attr_class([toolRow, { ["_c4"]: !t.installed }])}><span${_attr_class(["_c5", "_y"])}>${_text_resume($scope28_id, "c", t.label)}</span>`);
|
|
9482
9488
|
_if(() => {
|
|
9483
9489
|
if (active.has(t.id)) {
|
|
9484
9490
|
const $scope29_id = _scope_id();
|
|
9485
|
-
_html(`<span${_attr_class("
|
|
9491
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope29_id, "c", active.get(t.id) || "Starting…")}</span>`);
|
|
9486
9492
|
_subscribe($active__closures, writeScope($scope29_id, { Ch2: 12 }));
|
|
9487
9493
|
return 0;
|
|
9488
9494
|
} else if (t.installed) {
|
|
@@ -9490,11 +9496,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9490
9496
|
_if(() => {
|
|
9491
9497
|
if (t.version) {
|
|
9492
9498
|
const $scope40_id = _scope_id();
|
|
9493
|
-
_html(`<button${_attr_class(["
|
|
9499
|
+
_html(`<button${_attr_class(["_c7", "_y"])}${_attr("title", `${t.path || t.label}${aliasPin(t) ? `, pinned to ${t.pin}` : ""}. Pin a version`)}>v${_text_resume($scope40_id, "b", t.version, 2)}`);
|
|
9494
9500
|
_if(() => {
|
|
9495
9501
|
if (aliasPin(t)) {
|
|
9496
9502
|
const $scope118_id = _scope_id();
|
|
9497
|
-
_html(`<span${_attr_class("
|
|
9503
|
+
_html(`<span${_attr_class("_c6")}>${_text_resume($scope118_id, "b", t.pin)}</span>`);
|
|
9498
9504
|
_subscribe($for_content7__t_pin__closures, writeScope($scope118_id, { Ca0: 1 }));
|
|
9499
9505
|
return 0;
|
|
9500
9506
|
}
|
|
@@ -9513,7 +9519,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9513
9519
|
_if(() => {
|
|
9514
9520
|
if (outdated(t)) {
|
|
9515
9521
|
const $scope59_id = _scope_id();
|
|
9516
|
-
_html(`<button${_attr_class([btnSm, "
|
|
9522
|
+
_html(`<button${_attr_class([btnSm, "_c8"])}${_attr("title", `Update to v${t.latest}`)}>`);
|
|
9517
9523
|
icon_arrow_up_default({ size: 12 });
|
|
9518
9524
|
_html(` ${_text_resume($scope59_id, "c", t.latest, 2)}</button>${_el_resume($scope59_id, "a")}`);
|
|
9519
9525
|
_script($scope59_id, "y74");
|
|
@@ -9521,7 +9527,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9521
9527
|
return 0;
|
|
9522
9528
|
} else if (t.newest) {
|
|
9523
9529
|
const $scope60_id = _scope_id();
|
|
9524
|
-
_html(`<button${_attr_class(["
|
|
9530
|
+
_html(`<button${_attr_class(["_c7", "_y"])}${_attr("title", `v${t.newest} is out; ${t.pin} holds ${t.label} at v${t.version}. Pin v${t.newest} instead`)}>${_text_resume($scope60_id, "b", t.newest)} available</button>${_el_resume($scope60_id, "a")}`);
|
|
9525
9531
|
_script($scope60_id, "y75");
|
|
9526
9532
|
_subscribe($for_content7__t_newest__closures, _subscribe($for_content7__t_pin__closures, _subscribe($for_content7__t_version__closures, _subscribe($for_content7__t_label__closures, writeScope($scope60_id, {
|
|
9527
9533
|
Cw: 1,
|
|
@@ -9637,14 +9643,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9637
9643
|
label: "Dark"
|
|
9638
9644
|
}
|
|
9639
9645
|
];
|
|
9640
|
-
_html(`</div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bV")}><h2${_attr("id", appearanceId)}${_attr_class("_b8")}>Appearance</h2></div><div${_attr_class(["_bZ", "
|
|
9646
|
+
_html(`</div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bV")}><h2${_attr("id", appearanceId)}${_attr_class("_b8")}>Appearance</h2></div><div${_attr_class(["_bZ", "_dm"])}><div${_attr_class("_dy")}><img${_attr_class("_dz")}${_attr("src", `/api/instance/icon${accent ? `?v=${accent.slice(1)}` : ""}`)} alt aria-hidden=true>${_el_resume($scope0_id, "av", $sg__input_instance_accent)}<span${_attr_class("_dA")}><span${_attr_class("_dB")}>${_text_resume($scope0_id, "ay", input$3.instance.name || "work", _serialize_guard($scope0_reason, 7))}</span><span${_attr_class("_dC")}>Sidebar, tab title, home-screen icon and notifications</span></span></div><label${_attr_class("_dn")}><span${_attr_class("_do")}>Name</span><input${_attr_input_value($scope0_id, "b2", input$3.instance.name, _resume(function(v) {
|
|
9641
9647
|
setInstance({ name: v });
|
|
9642
|
-
}, "y4", $scope0_id))}${_attr_class(["_Z", "
|
|
9648
|
+
}, "y4", $scope0_id))}${_attr_class(["_Z", "_dp"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false>${_el_resume($scope0_id, "b2")}</label><div${_attr_class("_dn")}><span${_attr_class("_do")}>Theme</span><span${_attr_class("_dr")}><span${_attr_class(themeSeg)} role=radiogroup aria-label="Color theme">`);
|
|
9643
9649
|
_for_of(themeOpts, (opt) => {
|
|
9644
9650
|
const $scope50_id = _scope_id();
|
|
9645
9651
|
_html(`<button type=button${_attr_class([
|
|
9646
9652
|
"_bg",
|
|
9647
|
-
"
|
|
9653
|
+
"_dD",
|
|
9648
9654
|
{ ["_bf"]: themeMode === opt.id }
|
|
9649
9655
|
])} role=radio aria-checked=${themeMode === opt.id ? "true" : "false"}>`);
|
|
9650
9656
|
if (opt.id === "system") {
|
|
@@ -9664,28 +9670,28 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9664
9670
|
_: _scope_with_id($scope0_id)
|
|
9665
9671
|
});
|
|
9666
9672
|
}, "id", $scope0_id, "b6", 1, 0, 1, 0, 1);
|
|
9667
|
-
_html(`</span><span${_attr_class(["_o", "
|
|
9673
|
+
_html(`</span><span${_attr_class(["_o", "_ds"])}>`);
|
|
9668
9674
|
_attr_select_value($scope0_id, "b8", themeMode, _resume(function(v) {
|
|
9669
9675
|
setThemeMode(v);
|
|
9670
9676
|
}, "y5", $scope0_id), () => {
|
|
9671
|
-
_html(`<select${_attr_class(["_p", "
|
|
9677
|
+
_html(`<select${_attr_class(["_p", "_dt"])} aria-label="Color theme">`);
|
|
9672
9678
|
forOf(themeOpts, (opt) => {
|
|
9673
9679
|
_scope_id();
|
|
9674
9680
|
_html(`<option${_attr_option_value(opt.id)}>${_escape(opt.label)}</option>`);
|
|
9675
9681
|
});
|
|
9676
9682
|
_html("</select>");
|
|
9677
9683
|
});
|
|
9678
|
-
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("
|
|
9679
|
-
"
|
|
9680
|
-
"
|
|
9681
|
-
{ ["
|
|
9684
|
+
_html(`${_el_resume($scope0_id, "b8")}</span></span></div><div${_attr_class("_dn")}><span${_attr_class("_do")}>Accent</span><span${_attr_class("_dE")} role=radiogroup aria-label="Accent colour"><button type=button${_attr_class([
|
|
9685
|
+
"_dF",
|
|
9686
|
+
"_dI",
|
|
9687
|
+
{ ["_dG"]: !accent }
|
|
9682
9688
|
])} role=radio aria-checked=${!accent ? "true" : "false"} title="Default (blue)" aria-label="Default (blue)">`);
|
|
9683
9689
|
_if(() => {
|
|
9684
9690
|
if (!accent) {
|
|
9685
9691
|
const $scope129_id = _scope_id();
|
|
9686
9692
|
icon_check_default({
|
|
9687
9693
|
size: 12,
|
|
9688
|
-
class: "
|
|
9694
|
+
class: "_dH"
|
|
9689
9695
|
});
|
|
9690
9696
|
$si__input_instance_accent && writeScope($scope129_id, {});
|
|
9691
9697
|
return 0;
|
|
@@ -9693,13 +9699,13 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9693
9699
|
}, $scope0_id, "bc", $sg__input_instance_accent, 1, 1, "</button>", 1);
|
|
9694
9700
|
_for_of(ACCENT_PRESETS, (p) => {
|
|
9695
9701
|
const $scope77_id = _scope_id();
|
|
9696
|
-
_html(`<button type=button${_attr_class(["
|
|
9702
|
+
_html(`<button type=button${_attr_class(["_dF", { ["_dG"]: accent === p.value }])}${_attr_style(`--swatch:${p.value}`)} role=radio aria-checked=${accent === p.value ? "true" : "false"}${_attr("title", p.name)}${_attr("aria-label", p.name)}>`);
|
|
9697
9703
|
_if(() => {
|
|
9698
9704
|
if (accent === p.value) {
|
|
9699
9705
|
const $scope130_id = _scope_id();
|
|
9700
9706
|
icon_check_default({
|
|
9701
9707
|
size: 12,
|
|
9702
|
-
class: "
|
|
9708
|
+
class: "_dH"
|
|
9703
9709
|
});
|
|
9704
9710
|
$si__input_instance_accent && writeScope($scope130_id, {});
|
|
9705
9711
|
return 0;
|
|
@@ -9713,18 +9719,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9713
9719
|
}, "value", $scope0_id, "bd", $sg__input_instance_accent, 0, 1, 0, 1);
|
|
9714
9720
|
const customOn = !!accent && !ACCENT_PRESETS.some((p) => p.value === accent);
|
|
9715
9721
|
_html(`<label${_attr_class([
|
|
9716
|
-
"
|
|
9717
|
-
"
|
|
9718
|
-
{ ["
|
|
9722
|
+
"_dF",
|
|
9723
|
+
"_dJ",
|
|
9724
|
+
{ ["_dG"]: customOn }
|
|
9719
9725
|
])}${customOn ? _attr_style(`--swatch:${accent}`) : ""}${customOn ? _attr("title", `Custom ${accent}`) : " title=\"Custom colour\""}><input${_attr_input_value($scope0_id, "bf", accent || "#3556d8", _resume(function(v) {
|
|
9720
9726
|
setInstance({ accent: v });
|
|
9721
|
-
}, "y6", $scope0_id))}${_attr_class("
|
|
9727
|
+
}, "y6", $scope0_id))}${_attr_class("_dK")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "bf")}`);
|
|
9722
9728
|
_if(() => {
|
|
9723
9729
|
if (customOn) {
|
|
9724
9730
|
const $scope131_id = _scope_id();
|
|
9725
9731
|
icon_check_default({
|
|
9726
9732
|
size: 12,
|
|
9727
|
-
class: "
|
|
9733
|
+
class: "_dH"
|
|
9728
9734
|
});
|
|
9729
9735
|
$si__input_instance_accent && writeScope($scope131_id, {});
|
|
9730
9736
|
return 0;
|
|
@@ -9735,11 +9741,11 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9735
9741
|
return 1;
|
|
9736
9742
|
}
|
|
9737
9743
|
}, $scope0_id, "bg", $sg__input_instance_accent, $sg__input_instance_accent, 1, 0, 1);
|
|
9738
|
-
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bV")}><h2${_attr("id", backupId)}${_attr_class("_b8")}>Backup</h2></div><div${_attr_class(["_bZ", "
|
|
9744
|
+
_html(`</label>${_el_resume($scope0_id, "be", $sg__input_instance_accent)}</span></div></div></section><section${_attr_class("_bU")}${_attr("aria-labelledby", backupId)}><div${_attr_class("_bV")}><h2${_attr("id", backupId)}${_attr_class("_b8")}>Backup</h2></div><div${_attr_class(["_bZ", "_cD"])}><div${_attr_class("_cE")}><div${_attr_class("_dL")}><div${_attr_class("_b0")}>`);
|
|
9739
9745
|
_if(() => {
|
|
9740
9746
|
if (backupBusy === "preflight") {
|
|
9741
9747
|
const $scope65_id = _scope_id();
|
|
9742
|
-
_html(`<span${_attr_class("
|
|
9748
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope65_id, "c", backupLine || "Checking workspaces…")}</span>`);
|
|
9743
9749
|
writeScope($scope65_id, {});
|
|
9744
9750
|
return 0;
|
|
9745
9751
|
} else {
|
|
@@ -9762,7 +9768,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9762
9768
|
_if(() => {
|
|
9763
9769
|
if (preflight && !backupBusy) {
|
|
9764
9770
|
const $scope67_id = _scope_id();
|
|
9765
|
-
_html(`<div${_attr_class("
|
|
9771
|
+
_html(`<div${_attr_class("_dN")}><p${_attr_class("_dO")}>In the file: ${_text_resume($scope67_id, "c", preflight.contents.workspaces, 2)} workspace${_text_resume($scope67_id, "d", preflight.contents.workspaces === 1 ? "" : "s", 2)}${_text_resume($scope67_id, "e", preflight.contents.archived ? `${_to_text(" ")}(${_to_text(preflight.contents.archived)} archived)` : "", 2)} , ${_text_resume($scope67_id, "f", preflight.contents.tools, 2)} tool pin${_text_resume($scope67_id, "g", preflight.contents.tools === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "h", preflight.contents.skills, 2)} skill${_text_resume($scope67_id, "i", preflight.contents.skills === 1 ? "" : "s", 2)}, ${_text_resume($scope67_id, "j", preflight.contents.agents, 2)} agent${_text_resume($scope67_id, "k", preflight.contents.agents === 1 ? "" : "s", 2)}.</p><p${_attr_class("_dO")}>Not in the file: `);
|
|
9766
9772
|
_if(() => {
|
|
9767
9773
|
if (preflight.unpushed) {
|
|
9768
9774
|
const $scope68_id = _scope_id();
|
|
@@ -9779,15 +9785,15 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9779
9785
|
return 0;
|
|
9780
9786
|
}
|
|
9781
9787
|
}, $scope67_id, "m");
|
|
9782
|
-
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("
|
|
9788
|
+
_html(`${_text_resume($scope67_id, "n", preflight.files ? `${_to_text(" ")}${_to_text(preflight.files)} uncommitted file${_to_text(preflight.files === 1 ? "" : "s")}` : "", 2)} .</p><ul${_attr_class("_dP")}>`);
|
|
9783
9789
|
_for_of(preflight.workspaces, (w) => {
|
|
9784
9790
|
const $scope135_id = _scope_id();
|
|
9785
9791
|
const $for_content18__w_name__closures = /* @__PURE__ */ new Set();
|
|
9786
|
-
_html(`<li${_attr_class("
|
|
9792
|
+
_html(`<li${_attr_class("_dQ")}><span${_attr_class("_b1")}>${_text_resume($scope135_id, "c", w.name)}</span><ul${_attr_class("_dP")}>`);
|
|
9787
9793
|
_for_of(w.repos, (r) => {
|
|
9788
9794
|
const $scope136_id = _scope_id();
|
|
9789
9795
|
const $for_content19__r_more__closures = /* @__PURE__ */ new Set();
|
|
9790
|
-
_html(`<li${_attr_class("
|
|
9796
|
+
_html(`<li${_attr_class("_dR")}><span${_attr_class("_dS")}><span${_attr_class("_y")}>${_text_resume($scope136_id, "d", r.worktree)}/</span>`);
|
|
9791
9797
|
_for_of(r.unpushed, (b) => {
|
|
9792
9798
|
const $scope137_id = _scope_id();
|
|
9793
9799
|
_html(`<span${_attr_class(["_N", tone.warn])}${_attr("title", `${b.branch}: ${b.count} commit${b.count === 1 ? "" : "s"} origin does not have`)}>${_text_resume($scope137_id, "b", b.count)} unpushed `);
|
|
@@ -9806,10 +9812,10 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9806
9812
|
_if(() => {
|
|
9807
9813
|
if (r.modified.length || r.untracked.length || r.ignored.length) {
|
|
9808
9814
|
const $scope138_id = _scope_id();
|
|
9809
|
-
_html(`<ul${_attr_class("
|
|
9815
|
+
_html(`<ul${_attr_class("_dT")}>`);
|
|
9810
9816
|
_for_of(r.modified, (f) => {
|
|
9811
9817
|
const $scope141_id = _scope_id();
|
|
9812
|
-
_html(`<li${_attr_class("
|
|
9818
|
+
_html(`<li${_attr_class("_dU")}><span${_attr_class([
|
|
9813
9819
|
"_N",
|
|
9814
9820
|
"_P",
|
|
9815
9821
|
tone.warn
|
|
@@ -9818,18 +9824,18 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9818
9824
|
}, (f) => f, $scope138_id, "b", 1, 1, 1, 0, 1);
|
|
9819
9825
|
_for_of(r.untracked, (f) => {
|
|
9820
9826
|
const $scope142_id = _scope_id();
|
|
9821
|
-
_html(`<li${_attr_class("
|
|
9827
|
+
_html(`<li${_attr_class("_dU")}><span${_attr_class(["_N", "_P"])} title=Untracked>?</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope142_id, "d", f)}</span></li>`);
|
|
9822
9828
|
writeScope($scope142_id, {});
|
|
9823
9829
|
}, (f) => f, $scope138_id, "c", 1, 1, 1, 0, 1);
|
|
9824
9830
|
_for_of(r.ignored, (f) => {
|
|
9825
9831
|
const $scope143_id = _scope_id();
|
|
9826
|
-
_html(`<li${_attr_class("
|
|
9832
|
+
_html(`<li${_attr_class("_dU")}><span${_attr_class(["_N", "_P"])} title="Ignored by git — a restore cannot bring it back">ignored</span><span${_attr_class(["_y", "_bb"])}>${_text_resume($scope143_id, "d", f)}</span></li>`);
|
|
9827
9833
|
writeScope($scope143_id, {});
|
|
9828
9834
|
}, (f) => f, $scope138_id, "d", 1, 1, 1, 0, 1);
|
|
9829
9835
|
_if(() => {
|
|
9830
9836
|
if (r.more) {
|
|
9831
9837
|
const $scope139_id = _scope_id();
|
|
9832
|
-
_html(`<li${_attr_class(["
|
|
9838
|
+
_html(`<li${_attr_class(["_dU", "_x"])}>+${_text_resume($scope139_id, "b", r.more, 2)} more</li>`);
|
|
9833
9839
|
_subscribe($for_content19__r_more__closures, writeScope($scope139_id, {}));
|
|
9834
9840
|
return 0;
|
|
9835
9841
|
}
|
|
@@ -9854,17 +9860,17 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9854
9860
|
i: $for_content18__w_name__closures
|
|
9855
9861
|
});
|
|
9856
9862
|
}, "id", $scope67_id, "o", 1, 1, 1, "</ul>", 1);
|
|
9857
|
-
_html(`<div${_attr_class("
|
|
9863
|
+
_html(`<div${_attr_class("_dV")}><button${_attr_class([btnSm, { ["_r"]: !preflight.unpushed }])}>${_text_resume($scope67_id, "r", preflight.unpushed ? "Export anyway" : "Export")}</button>${_el_resume($scope67_id, "q")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope67_id, "s")}</div></div>`);
|
|
9858
9864
|
_script($scope67_id, "y81");
|
|
9859
9865
|
writeScope($scope67_id, {});
|
|
9860
9866
|
return 0;
|
|
9861
9867
|
}
|
|
9862
9868
|
}, $scope0_id, "bp", 1, 1, 1, 0, 1);
|
|
9863
|
-
_html(`</div><div${_attr_class("
|
|
9869
|
+
_html(`</div><div${_attr_class("_cE")}><div${_attr_class("_dL")}><div${_attr_class("_b0")}>`);
|
|
9864
9870
|
_if(() => {
|
|
9865
9871
|
if (backupBusy === "restore") {
|
|
9866
9872
|
const $scope66_id = _scope_id();
|
|
9867
|
-
_html(`<span${_attr_class("
|
|
9873
|
+
_html(`<span${_attr_class("_cS")}><span${_attr_class("_G")}></span>${_text_resume($scope66_id, "c", backupLine || "Restoring…")}</span>`);
|
|
9868
9874
|
writeScope($scope66_id, {});
|
|
9869
9875
|
return 0;
|
|
9870
9876
|
} else if (restoreDone) {
|
|
@@ -9882,7 +9888,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9882
9888
|
_if(() => {
|
|
9883
9889
|
if (!restorePreview && backupBusy !== "restore") {
|
|
9884
9890
|
const $scope76_id = _scope_id();
|
|
9885
|
-
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("
|
|
9891
|
+
_html(`<label${_attr_class(btnSm)} title="Pick a work backup file">Restore… <input${_attr_class("_dM")} type=file accept=application/json,.json aria-label="Backup file">${_el_resume($scope76_id, "b")}</label>`);
|
|
9886
9892
|
_script($scope76_id, "y82");
|
|
9887
9893
|
writeScope($scope76_id, {});
|
|
9888
9894
|
return 0;
|
|
@@ -9893,14 +9899,14 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9893
9899
|
if (restorePreview && backupBusy !== "restore") {
|
|
9894
9900
|
const $scope69_id = _scope_id();
|
|
9895
9901
|
const { preview } = restorePreview;
|
|
9896
|
-
_html(`<div${_attr_class("
|
|
9902
|
+
_html(`<div${_attr_class("_dN")}><p${_attr_class("_dO")}>From ${_text_resume($scope69_id, "c", preview.from.host, 2)} on ${_text_resume($scope69_id, "d", new Date(preview.from.exportedAt).toLocaleDateString(), 2)}${_text_resume($scope69_id, "e", preview.from.version ? ` (work ${preview.from.version})` : "", 2)}.</p>`);
|
|
9897
9903
|
_if(() => {
|
|
9898
9904
|
if (preview.workspaces.length) {
|
|
9899
9905
|
const $scope70_id = _scope_id();
|
|
9900
9906
|
_html(`<ul${_attr_class(checkList)}>`);
|
|
9901
9907
|
_for_of(preview.workspaces, (w) => {
|
|
9902
9908
|
const $scope71_id = _scope_id();
|
|
9903
|
-
_html(`<li><label${_attr_class(["
|
|
9909
|
+
_html(`<li><label${_attr_class(["_dX", { ["_dZ"]: w.exists || !!w.unknownHost }])}><input${_attr_input_checked($scope71_id, "b", restoreWs.has(w.id))}${_attr_class("_dY")} type=checkbox${_attr("disabled", w.exists || !!w.unknownHost)}>${_el_resume($scope71_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b2")}><span${_attr_class("_b1")}>${_text_resume($scope71_id, "f", w.name)}</span>`);
|
|
9904
9910
|
_if(() => {
|
|
9905
9911
|
if (w.status === "archived") {
|
|
9906
9912
|
const $scope148_id = _scope_id();
|
|
@@ -9973,7 +9979,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
9973
9979
|
_if(() => {
|
|
9974
9980
|
if (p.total) {
|
|
9975
9981
|
const $scope73_id = _scope_id();
|
|
9976
|
-
_html(`<li><label${_attr_class(["
|
|
9982
|
+
_html(`<li><label${_attr_class(["_dX", { ["_dZ"]: !p.missing.length && p.key !== "settings" }])}><input${_attr_input_checked($scope73_id, "b", restoreParts[p.key])}${_attr_class("_dY")} type=checkbox${_attr("disabled", !p.missing.length && p.key !== "settings")}>${_el_resume($scope73_id, "b")}<span${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope73_id, "e", p.label)}</span><span${_attr_class("_b3")}>`);
|
|
9977
9983
|
_if(() => {
|
|
9978
9984
|
if (p.key === "settings") {
|
|
9979
9985
|
const $scope145_id = _scope_id();
|
|
@@ -10020,7 +10026,7 @@ var settings_page_default = _template("y", (input$3) => {
|
|
|
10020
10026
|
i: $for_content10__p_total__closures
|
|
10021
10027
|
});
|
|
10022
10028
|
}, "key", $scope69_id, "h");
|
|
10023
|
-
_html(`</ul><div${_attr_class("
|
|
10029
|
+
_html(`</ul><div${_attr_class("_dV")}><button${_attr_class([btnSm, "_r"])}${_attr("disabled", !restoreWs.size && !Object.values(restoreParts).some(Boolean))}>Restore</button>${_el_resume($scope69_id, "j")}<button${_attr_class(btnSm)}>Cancel</button>${_el_resume($scope69_id, "k")}</div></div>`);
|
|
10024
10030
|
_script($scope69_id, "y85");
|
|
10025
10031
|
writeScope($scope69_id, {});
|
|
10026
10032
|
return 0;
|
|
@@ -10305,8 +10311,8 @@ function activeAgent(session) {
|
|
|
10305
10311
|
const command = session.state?.command?.trim();
|
|
10306
10312
|
return command && agentFromCommand(command) || session.agent;
|
|
10307
10313
|
}
|
|
10308
|
-
var rowState = "
|
|
10309
|
-
var rowArchive = "
|
|
10314
|
+
var rowState = "_fs _N";
|
|
10315
|
+
var rowArchive = "_fu _q _L";
|
|
10310
10316
|
//#endregion
|
|
10311
10317
|
//#region src/client/arm.ts
|
|
10312
10318
|
/** Two-step destructive controls: first click arms (label/colour flips),
|
|
@@ -10317,12 +10323,12 @@ var ARM_MS = 3500;
|
|
|
10317
10323
|
function disarmLater(fn) {
|
|
10318
10324
|
return setTimeout(fn, ARM_MS);
|
|
10319
10325
|
}
|
|
10320
|
-
var prChip = "
|
|
10321
|
-
var portChip = "
|
|
10326
|
+
var prChip = "_h3 _u _h2";
|
|
10327
|
+
var portChip = "_h4 _u _h2";
|
|
10322
10328
|
var prState = {
|
|
10323
|
-
open: "
|
|
10324
|
-
merged: "
|
|
10325
|
-
closed: "
|
|
10329
|
+
open: "_h8",
|
|
10330
|
+
merged: "_h9",
|
|
10331
|
+
closed: "_h_"
|
|
10326
10332
|
};
|
|
10327
10333
|
//#endregion
|
|
10328
10334
|
//#region src/tags/icons/icon-diff.marko
|
|
@@ -10413,7 +10419,7 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10413
10419
|
const name = repo.full_name.split("/").at(-1);
|
|
10414
10420
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
10415
10421
|
}, "z4", $scope1_id);
|
|
10416
|
-
_html(`<div${_attr_class("
|
|
10422
|
+
_html(`<div${_attr_class("_h1")}>`);
|
|
10417
10423
|
_for_of(repos, (repo) => {
|
|
10418
10424
|
const $scope2_id = _scope_id();
|
|
10419
10425
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -10429,11 +10435,11 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10429
10435
|
[prState.merged]: pr$1.state === "MERGED",
|
|
10430
10436
|
[prState.closed]: pr$1.state === "CLOSED"
|
|
10431
10437
|
}
|
|
10432
|
-
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["
|
|
10438
|
+
])}${_attr("title", prTitle(repo, pr$1))}><a${_attr_class(["_h5", { ["_ic"]: !open }])}${_attr("href", pr$1.url)} target=_blank rel=noopener>${_text_resume($scope3_id, "c", repoLabel$1(repo))}#${_text_resume($scope3_id, "d", pr$1.number, 2)}</a>${_el_resume($scope3_id, "b")}`);
|
|
10433
10439
|
_if(() => {
|
|
10434
10440
|
if (open) {
|
|
10435
10441
|
const $scope4_id = _scope_id();
|
|
10436
|
-
_html(`<a${_attr_class(["
|
|
10442
|
+
_html(`<a${_attr_class(["_h5", "_h6"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr$1.number}`)}`)}${_attr("title", `Review #${pr$1.number} changes`)}>`);
|
|
10437
10443
|
icon_diff_default({ size: 12 });
|
|
10438
10444
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
10439
10445
|
_subscribe($for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, {})));
|
|
@@ -10441,9 +10447,9 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10441
10447
|
} else {
|
|
10442
10448
|
const $scope6_id = _scope_id();
|
|
10443
10449
|
_html(`<button type=button${_attr_class([
|
|
10444
|
-
"
|
|
10445
|
-
"
|
|
10446
|
-
"
|
|
10450
|
+
"_h5",
|
|
10451
|
+
"_h6",
|
|
10452
|
+
"_h7"
|
|
10447
10453
|
])}${_attr("title", `Dismiss #${pr$1.number}`)}>`);
|
|
10448
10454
|
icon_xmark_default({ size: 12 });
|
|
10449
10455
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -10471,21 +10477,21 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10471
10477
|
_if(() => {
|
|
10472
10478
|
if (dead.has(p.port)) {
|
|
10473
10479
|
const $scope7_id = _scope_id();
|
|
10474
|
-
_html(`<span${_attr_class(["
|
|
10480
|
+
_html(`<span${_attr_class(["_h5", "_ia"])}${_attr("title", dead.get(p.port))} aria-disabled=true>:${_text_resume($scope7_id, "b", p.port, 2)}</span>${_el_resume($scope7_id, "a")}`);
|
|
10475
10481
|
_subscribe($dead__closures, writeScope($scope7_id, { Ca3: 1 }));
|
|
10476
10482
|
return 0;
|
|
10477
10483
|
} else {
|
|
10478
10484
|
const $scope8_id = _scope_id();
|
|
10479
|
-
_html(`<button type=button${_attr_class(["
|
|
10485
|
+
_html(`<button type=button${_attr_class(["_h5", "_ib"])}${_attr("title", `Open port ${p.port}`)}>:${_text_resume($scope8_id, "b", p.port, 2)}</button>${_el_resume($scope8_id, "a")}`);
|
|
10480
10486
|
_script($scope8_id, "z6");
|
|
10481
10487
|
writeScope($scope8_id, {});
|
|
10482
10488
|
return 1;
|
|
10483
10489
|
}
|
|
10484
10490
|
}, $scope5_id, "b", 1, 1, 1, 0, 1);
|
|
10485
10491
|
_html(`<button type=button${_attr_class([
|
|
10486
|
-
"
|
|
10487
|
-
"
|
|
10488
|
-
"
|
|
10492
|
+
"_h5",
|
|
10493
|
+
"_h6",
|
|
10494
|
+
"_h7",
|
|
10489
10495
|
{ ["_s"]: armedPid === p.pid }
|
|
10490
10496
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
10491
10497
|
icon_xmark_default({ size: 12 });
|
|
@@ -10528,16 +10534,16 @@ var side_nav_chips_default = _template("z", (input) => {
|
|
|
10528
10534
|
});
|
|
10529
10535
|
_resume_branch($scope0_id);
|
|
10530
10536
|
});
|
|
10531
|
-
var railBtn = "
|
|
10532
|
-
var wsBtn = "
|
|
10533
|
-
var rowIcon = "
|
|
10534
|
-
var close = "
|
|
10535
|
-
var sessRename$1 = "
|
|
10536
|
-
var sessBtn$1 = "
|
|
10537
|
+
var railBtn = "_gh _l";
|
|
10538
|
+
var wsBtn = "_gm _I";
|
|
10539
|
+
var rowIcon = "_gp _4 _l";
|
|
10540
|
+
var close = "_gq _7 _l _8";
|
|
10541
|
+
var sessRename$1 = "_gB _J";
|
|
10542
|
+
var sessBtn$1 = "_gD _I";
|
|
10537
10543
|
//#endregion
|
|
10538
10544
|
//#region src/styles/session-pop.css.ts
|
|
10539
|
-
var sessionPop = "
|
|
10540
|
-
var sessionPopBtn = "
|
|
10545
|
+
var sessionPop = "_fv __";
|
|
10546
|
+
var sessionPopBtn = "_fw _I";
|
|
10541
10547
|
//#endregion
|
|
10542
10548
|
//#region src/tags/icons/icon-archive.marko
|
|
10543
10549
|
var icon_archive_default = _template("M", (input) => {
|
|
@@ -10583,22 +10589,22 @@ var usage_pcts_default = _template("I", (input) => {
|
|
|
10583
10589
|
if (windows.length) {
|
|
10584
10590
|
const $scope1_id = _scope_id();
|
|
10585
10591
|
_html(`<span${_attr_class([
|
|
10586
|
-
"
|
|
10592
|
+
"_hp",
|
|
10587
10593
|
input.class,
|
|
10588
|
-
{ ["
|
|
10594
|
+
{ ["_hq"]: agent.stale_seconds != null }
|
|
10589
10595
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
10590
10596
|
_for_of(windows, (win$1, i) => {
|
|
10591
10597
|
const $scope2_id = _scope_id();
|
|
10592
|
-
_html(`<span${_attr_class("
|
|
10598
|
+
_html(`<span${_attr_class("_hr")}>`);
|
|
10593
10599
|
_if(() => {
|
|
10594
10600
|
if (i) {
|
|
10595
10601
|
const $scope3_id = _scope_id();
|
|
10596
|
-
_html(`<span${_attr_class("
|
|
10602
|
+
_html(`<span${_attr_class("_hu")} aria-hidden=true>·</span>`);
|
|
10597
10603
|
$si__input_agent && writeScope($scope3_id, {});
|
|
10598
10604
|
return 0;
|
|
10599
10605
|
}
|
|
10600
10606
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
10601
|
-
_html(`<span${_attr_class("
|
|
10607
|
+
_html(`<span${_attr_class("_hs")}>${_text_resume($scope2_id, "d", win$1.window, $sg__input_agent)}</span><span${_attr_class(["_ht", win$1.used_percent >= 90 ? "_g4" : win$1.used_percent >= 70 ? "_g3" : win$1.used_percent >= 40 ? "_g2" : "_g1"])}>${_text_resume($scope2_id, "f", pctText(win$1.used_percent), $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
10602
10608
|
$si__input_agent && writeScope($scope2_id, {});
|
|
10603
10609
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
10604
10610
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -10710,7 +10716,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10710
10716
|
_if(() => {
|
|
10711
10717
|
if (input.rail) {
|
|
10712
10718
|
const $scope2_id = _scope_id();
|
|
10713
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
10719
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gf"]: input.current }])}${ws$1.pending ? _attr("title", `${ws$1.name} — restoring`) : _attr("title", ws$1.name)}>${_text_resume($scope2_id, "b", input.index === void 0 ? "·" : input.index + 1, _serialize_guard($scope0_reason, 28))}<span${_attr_class([
|
|
10714
10720
|
"_A",
|
|
10715
10721
|
phase[dot$1],
|
|
10716
10722
|
"_bc"
|
|
@@ -10720,34 +10726,34 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10720
10726
|
} else if (ws$1.pending) {
|
|
10721
10727
|
const $scope3_id = _scope_id();
|
|
10722
10728
|
_html(`<section${_attr_class([
|
|
10723
|
-
"
|
|
10724
|
-
"
|
|
10729
|
+
"_gj",
|
|
10730
|
+
"_gF",
|
|
10725
10731
|
{
|
|
10726
|
-
["
|
|
10727
|
-
["
|
|
10732
|
+
["_gk"]: input.railPop,
|
|
10733
|
+
["_gi"]: input.page
|
|
10728
10734
|
}
|
|
10729
|
-
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("
|
|
10735
|
+
])} aria-busy=${ws$1.pending_error ? "false" : "true"}><div${_attr_class("_gl")}><div${_attr_class(wsBtn)}>`);
|
|
10730
10736
|
_if(() => {
|
|
10731
10737
|
if (ws$1.pending_error) {
|
|
10732
10738
|
const $scope16_id = _scope_id();
|
|
10733
10739
|
icon_warning_default({
|
|
10734
10740
|
size: 12,
|
|
10735
|
-
class: "
|
|
10741
|
+
class: "_gH"
|
|
10736
10742
|
});
|
|
10737
10743
|
$si__input_workspace && writeScope($scope16_id, {});
|
|
10738
10744
|
return 0;
|
|
10739
10745
|
} else {
|
|
10740
10746
|
const $scope17_id = _scope_id();
|
|
10741
|
-
_html(`<span${_attr_class(["_G", "
|
|
10747
|
+
_html(`<span${_attr_class(["_G", "_gG"])}></span>`);
|
|
10742
10748
|
$si__input_workspace && writeScope($scope17_id, {});
|
|
10743
10749
|
return 1;
|
|
10744
10750
|
}
|
|
10745
10751
|
}, $scope3_id, "d", $sg__input_workspace, $sg__input_workspace, 1, 0, 1);
|
|
10746
|
-
_html(`<span${_attr_class("
|
|
10752
|
+
_html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope3_id, "g", ws$1.name, $sg__input_workspace)}</span><span${_attr_class("_gJ")}${_attr("title", ws$1.pending_error || restoreLine)}>${_text_resume($scope3_id, "i", ws$1.pending_error ? `Restore failed: ${ws$1.pending_error}` : restoreLine || "Restoring…")}</span>${_el_resume($scope3_id, "h")}</span></div></div>`);
|
|
10747
10753
|
_if(() => {
|
|
10748
10754
|
if (ws$1.pending_error && !retrying) {
|
|
10749
10755
|
const $scope15_id = _scope_id();
|
|
10750
|
-
_html(`<div${_attr_class("
|
|
10756
|
+
_html(`<div${_attr_class("_gI")}><button type=button${_attr_class(["_q", btnSm])} title="Run the restore again">Retry</button>${_el_resume($scope15_id, "b")}<button type=button${_attr_class([
|
|
10751
10757
|
"_q",
|
|
10752
10758
|
btnSm,
|
|
10753
10759
|
{ ["_s"]: armedDelete }
|
|
@@ -10767,15 +10773,15 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10767
10773
|
const $scope4_id = _scope_id();
|
|
10768
10774
|
const sessions$1 = input.sessions || [];
|
|
10769
10775
|
const phaseLabel = dot$1 === "working" ? "Working" : dot$1 === "waiting" ? "Needs input" : dot$1 === "idle" ? "Idle" : "Not running";
|
|
10770
|
-
_html(`<section${_attr_class(["
|
|
10771
|
-
["
|
|
10776
|
+
_html(`<section${_attr_class(["_gj", {
|
|
10777
|
+
["_gf"]: input.current,
|
|
10772
10778
|
["_bd"]: input.current,
|
|
10773
|
-
["
|
|
10774
|
-
["
|
|
10775
|
-
}])}><div${_attr_class("
|
|
10779
|
+
["_gk"]: input.railPop,
|
|
10780
|
+
["_gi"]: input.page
|
|
10781
|
+
}])}><div${_attr_class("_gl")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class(wsBtn)}><span${_attr_class([
|
|
10776
10782
|
"_A",
|
|
10777
10783
|
phase[dot$1],
|
|
10778
|
-
"
|
|
10784
|
+
"_gx"
|
|
10779
10785
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope4_id, "d", $sg__input_status)}`);
|
|
10780
10786
|
_if(() => {
|
|
10781
10787
|
if (sessions$1.length === 1) {
|
|
@@ -10788,7 +10794,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10788
10794
|
icon_agent_default({
|
|
10789
10795
|
agent: activeAgent(sessions$1[0]),
|
|
10790
10796
|
size: 12,
|
|
10791
|
-
class: "
|
|
10797
|
+
class: "_gr"
|
|
10792
10798
|
});
|
|
10793
10799
|
$si__input_sessions && writeScope($scope18_id, {
|
|
10794
10800
|
_: _scope_with_id($scope4_id),
|
|
@@ -10798,11 +10804,11 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10798
10804
|
}
|
|
10799
10805
|
}, $scope4_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
10800
10806
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length > 1 ? `${sessions$1.length} sessions` : "";
|
|
10801
|
-
_html(`<span${_attr_class("
|
|
10807
|
+
_html(`<span${_attr_class("_gs")}><span${_attr_class("_gt")}>${_text_resume($scope4_id, "h", ws$1.name, $sg__input_workspace)}</span>`);
|
|
10802
10808
|
_if(() => {
|
|
10803
10809
|
if (input.page && metaText) {
|
|
10804
10810
|
const $scope19_id = _scope_id();
|
|
10805
|
-
_html(`<span${_attr_class("
|
|
10811
|
+
_html(`<span${_attr_class("_gw")}>${_text_resume($scope19_id, "b", metaText, _serialize_guard($scope0_reason, 3))}</span>`);
|
|
10806
10812
|
$si__input_page__OR__input_sessions__OR__input_status && writeScope($scope19_id, { _: _serialize_if($scope0_reason, 3) && _scope_with_id($scope4_id) });
|
|
10807
10813
|
return 0;
|
|
10808
10814
|
}
|
|
@@ -10811,7 +10817,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10811
10817
|
_if(() => {
|
|
10812
10818
|
if (!input.page) {
|
|
10813
10819
|
const $scope5_id = _scope_id();
|
|
10814
|
-
_html(`<div${_attr_class("
|
|
10820
|
+
_html(`<div${_attr_class("_gn")}>`);
|
|
10815
10821
|
_if(() => {
|
|
10816
10822
|
if (input.onArchive) {
|
|
10817
10823
|
const $scope6_id = _scope_id();
|
|
@@ -10876,7 +10882,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10876
10882
|
return 0;
|
|
10877
10883
|
}
|
|
10878
10884
|
}, $scope5_id, "d", $sg__input_onReview, $sg__input_onReview, $sg__input_onArchive__OR__input_onNewSession__OR__input_onReview, 0, 1);
|
|
10879
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
10885
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gg"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
10880
10886
|
icon_manage_default({ size: 12 });
|
|
10881
10887
|
_html(`</a>${_el_resume($scope5_id, "e", _serialize_guard($scope0_reason, 4))}</div>`);
|
|
10882
10888
|
_subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_onArchive && $input_onArchive__closures, writeScope($scope5_id, {
|
|
@@ -10886,7 +10892,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10886
10892
|
return 0;
|
|
10887
10893
|
}
|
|
10888
10894
|
}, $scope4_id, "j", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
10889
|
-
_html(`</div><div${_attr_class("
|
|
10895
|
+
_html(`</div><div${_attr_class("_gC")}>`);
|
|
10890
10896
|
_if(() => {
|
|
10891
10897
|
if (sessions$1.length === 1 && openPlan) {
|
|
10892
10898
|
const $scope12_id = _scope_id();
|
|
@@ -10894,7 +10900,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10894
10900
|
const $childScope3 = _peek_scope_id();
|
|
10895
10901
|
usage_pcts_default({
|
|
10896
10902
|
agent: openPlan,
|
|
10897
|
-
class: "
|
|
10903
|
+
class: "_gu"
|
|
10898
10904
|
});
|
|
10899
10905
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
10900
10906
|
a: _existing_scope($childScope3),
|
|
@@ -10905,14 +10911,14 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10905
10911
|
}, $scope4_id, "l");
|
|
10906
10912
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
10907
10913
|
const $scope9_id = _scope_id();
|
|
10908
|
-
_html(`<div${_attr_class(["
|
|
10914
|
+
_html(`<div${_attr_class(["_go", { ["_gf"]: s.id === input.currentTab }])}>`);
|
|
10909
10915
|
_if(() => {
|
|
10910
10916
|
if (renamingId === s.id) {
|
|
10911
10917
|
const $scope11_id = _scope_id();
|
|
10912
10918
|
_html(`<span${_attr_class([
|
|
10913
10919
|
"_A",
|
|
10914
10920
|
phase[sessionPhase(s.state)],
|
|
10915
|
-
"
|
|
10921
|
+
"_gA"
|
|
10916
10922
|
])}></span>${_el_resume($scope11_id, "a", $sg__input_sessions)}`);
|
|
10917
10923
|
_set_serialize_reason({
|
|
10918
10924
|
1: $sg__input_sessions,
|
|
@@ -10922,7 +10928,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10922
10928
|
icon_agent_default({
|
|
10923
10929
|
agent: activeAgent(s),
|
|
10924
10930
|
size: 12,
|
|
10925
|
-
class: "
|
|
10931
|
+
class: "_gE"
|
|
10926
10932
|
});
|
|
10927
10933
|
_html(`<input${_attr_input_value($scope11_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
10928
10934
|
renameValue = _new_renameValue;
|
|
@@ -10941,9 +10947,9 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10941
10947
|
icon_agent_default({
|
|
10942
10948
|
agent: activeAgent(s),
|
|
10943
10949
|
size: 12,
|
|
10944
|
-
class: "
|
|
10950
|
+
class: "_gE"
|
|
10945
10951
|
});
|
|
10946
|
-
_html(`<span${_attr_class("
|
|
10952
|
+
_html(`<span${_attr_class("_gy")}>${_text_resume($scope10_id, "e", s.title || activeAgent(s), $sg__input_sessions)}</span></a>${_el_resume($scope10_id, "a", _serialize_guard($scope0_reason, 2))}<div${_attr_class("_gz")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
10947
10953
|
icon_edit_default({ size: 12 });
|
|
10948
10954
|
_html(`</button>${_el_resume($scope10_id, "g")}<button${_attr_class([close, { ["_s"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
10949
10955
|
icon_xmark_default({ size: 12 });
|
|
@@ -10955,7 +10961,7 @@ var side_nav_item_default = _template("A", (input) => {
|
|
|
10955
10961
|
const $childScope6 = _peek_scope_id();
|
|
10956
10962
|
usage_pcts_default({
|
|
10957
10963
|
agent: openPlan,
|
|
10958
|
-
class: "
|
|
10964
|
+
class: "_gv"
|
|
10959
10965
|
});
|
|
10960
10966
|
_subscribe($openPlan__closures, writeScope($scope13_id, {
|
|
10961
10967
|
a: _existing_scope($childScope6),
|
|
@@ -11097,11 +11103,11 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11097
11103
|
const sessions = input.sessions || st?.sessions || [];
|
|
11098
11104
|
const manySessions = sessions.length > 1;
|
|
11099
11105
|
const heroMeta$1 = sessions.length === 0 ? "No sessions" : manySessions ? `${sessions.length} sessions` : "";
|
|
11100
|
-
_html(`<div${_attr_class("
|
|
11106
|
+
_html(`<div${_attr_class("_fb")}>`);
|
|
11101
11107
|
_if(() => {
|
|
11102
11108
|
if (ws) {
|
|
11103
11109
|
const $scope1_id = _scope_id();
|
|
11104
|
-
_html(`<section${_attr_class("
|
|
11110
|
+
_html(`<section${_attr_class("_fc")} aria-current=page><a${_attr("href", `/w/${ws.id}`)}${_attr_class("_fd")} data-open><span${_attr_class(["_A", phase[phase$1]])}></span>${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 0))}`);
|
|
11105
11111
|
_if(() => {
|
|
11106
11112
|
if (sessions.length === 1) {
|
|
11107
11113
|
const $scope10_id = _scope_id();
|
|
@@ -11113,7 +11119,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11113
11119
|
icon_agent_default({
|
|
11114
11120
|
agent: activeAgent(sessions[0]),
|
|
11115
11121
|
size: 16,
|
|
11116
|
-
class: "
|
|
11122
|
+
class: "_fg"
|
|
11117
11123
|
});
|
|
11118
11124
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions && _subscribe($sessions___closures, writeScope($scope10_id, {
|
|
11119
11125
|
_: _scope_with_id($scope1_id),
|
|
@@ -11122,14 +11128,14 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11122
11128
|
return 0;
|
|
11123
11129
|
}
|
|
11124
11130
|
}, $scope1_id, "d", $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions, $sg__input_workspace__OR__input_allStatus__OR__input_sessions);
|
|
11125
|
-
_html(`<span${_attr_class("
|
|
11131
|
+
_html(`<span${_attr_class("_fe")}>${_text_resume($scope1_id, "f", ws.name, $sg__input_workspace)}</span><span${_attr_class("_ff")}>${_text_resume($scope1_id, "h", heroMeta$1, $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope1_id, "b", $sg__input_workspace)}`);
|
|
11126
11132
|
_if(() => {
|
|
11127
11133
|
if (manySessions) {
|
|
11128
11134
|
const $scope2_id = _scope_id();
|
|
11129
|
-
_html(`<div${_attr_class("
|
|
11135
|
+
_html(`<div${_attr_class("_fh")}>`);
|
|
11130
11136
|
_for_of(sessions, (s) => {
|
|
11131
11137
|
const $scope3_id = _scope_id();
|
|
11132
|
-
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["
|
|
11138
|
+
_html(`<a${_attr("href", `/w/${ws.id}?s=${s.id}`)}${_attr_class(["_fj", { ["_fi"]: s.id === input.tab }])}><span${_attr_class(["_A", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope3_id, "b", $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}`);
|
|
11133
11139
|
_set_serialize_reason({
|
|
11134
11140
|
1: $sg__input_workspace__OR__input_allStatus__OR__input_sessions,
|
|
11135
11141
|
2: $sg__input_workspace__OR__input_allStatus__OR__input_sessions
|
|
@@ -11139,7 +11145,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11139
11145
|
agent: activeAgent(s),
|
|
11140
11146
|
size: 14
|
|
11141
11147
|
});
|
|
11142
|
-
_html(`<span${_attr_class("
|
|
11148
|
+
_html(`<span${_attr_class("_fk")}>${_text_resume($scope3_id, "e", s.title || activeAgent(s), $sg__input_workspace__OR__input_allStatus__OR__input_sessions)}</span></a>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 5))}`);
|
|
11143
11149
|
$si__input_workspace__OR__input_allStatus__OR__input_sessions__OR__input_tab && _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_tab && $input_tab__closures, writeScope($scope3_id, {
|
|
11144
11150
|
h: $si__input_tab && s?.id,
|
|
11145
11151
|
_: _scope_with_id($scope2_id),
|
|
@@ -11172,16 +11178,16 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11172
11178
|
const $scope5_id = _scope_id();
|
|
11173
11179
|
const $if_content3__done__closures = /* @__PURE__ */ new Set();
|
|
11174
11180
|
const done = i === 1;
|
|
11175
|
-
_html(`<section${_attr_class("
|
|
11181
|
+
_html(`<section${_attr_class("_fl")}>`);
|
|
11176
11182
|
_if(() => {
|
|
11177
11183
|
if (done) {
|
|
11178
11184
|
const $scope11_id = _scope_id();
|
|
11179
|
-
_html(`<h2${_attr_class(["_b8", "
|
|
11185
|
+
_html(`<h2${_attr_class(["_b8", "_fm"])}>Done</h2>`);
|
|
11180
11186
|
$si__input_openIds__OR__input_doneIds && writeScope($scope11_id, {});
|
|
11181
11187
|
return 0;
|
|
11182
11188
|
}
|
|
11183
11189
|
}, $scope5_id, "b", $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, $sg__input_openIds__OR__input_doneIds, 0, 1);
|
|
11184
|
-
_html(`<div${_attr_class("
|
|
11190
|
+
_html(`<div${_attr_class("_fn")}>`);
|
|
11185
11191
|
_for_of(ids, (id) => {
|
|
11186
11192
|
const $scope6_id = _scope_id();
|
|
11187
11193
|
const w = input.byId.get(id);
|
|
@@ -11232,7 +11238,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11232
11238
|
const rp = phaseOf(rs);
|
|
11233
11239
|
const rowSessions = rs?.sessions || [];
|
|
11234
11240
|
const many = rowSessions.length > 1;
|
|
11235
|
-
_html(`<div${_attr_class("
|
|
11241
|
+
_html(`<div${_attr_class("_fo")}><a${_attr("href", `/w/${id}`)}${_attr_class("_fp")}><span${_attr_class(["_A", phase[rp]])}></span>${_el_resume($scope8_id, "c", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds)}`);
|
|
11236
11242
|
_if(() => {
|
|
11237
11243
|
if (rowSessions.length === 1) {
|
|
11238
11244
|
const $scope12_id = _scope_id();
|
|
@@ -11244,7 +11250,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11244
11250
|
icon_agent_default({
|
|
11245
11251
|
agent: activeAgent(rowSessions[0]),
|
|
11246
11252
|
size: 16,
|
|
11247
|
-
class: "
|
|
11253
|
+
class: "_fr"
|
|
11248
11254
|
});
|
|
11249
11255
|
$si__input_allStatus__OR__input_openIds__OR__input_doneIds && writeScope($scope12_id, {
|
|
11250
11256
|
_: _scope_with_id($scope8_id),
|
|
@@ -11253,7 +11259,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11253
11259
|
return 0;
|
|
11254
11260
|
}
|
|
11255
11261
|
}, $scope8_id, "d", $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds, $sg__input_allStatus__OR__input_openIds__OR__input_doneIds);
|
|
11256
|
-
_html(`<span${_attr_class("
|
|
11262
|
+
_html(`<span${_attr_class("_fq")}>${_text_resume($scope8_id, "f", w.name, $sg__input_openIds__OR__input_doneIds__OR__input_byId)}</span>`);
|
|
11257
11263
|
_if(() => {
|
|
11258
11264
|
if (many) {
|
|
11259
11265
|
const $scope13_id = _scope_id();
|
|
@@ -11275,7 +11281,7 @@ var workspace_switcher_default = _template("K", (input) => {
|
|
|
11275
11281
|
const $scope14_id = _scope_id();
|
|
11276
11282
|
icon_chevron_right_default({
|
|
11277
11283
|
size: 14,
|
|
11278
|
-
class: "
|
|
11284
|
+
class: "_ft"
|
|
11279
11285
|
});
|
|
11280
11286
|
$si__input_openIds__OR__input_doneIds && writeScope($scope14_id, {});
|
|
11281
11287
|
return 1;
|
|
@@ -12238,8 +12244,8 @@ function treeDirs(files) {
|
|
|
12238
12244
|
};
|
|
12239
12245
|
return build(root, "", "", -1);
|
|
12240
12246
|
}
|
|
12241
|
-
var treeToggle = "
|
|
12242
|
-
var pageTitle = "
|
|
12247
|
+
var treeToggle = "_fT _5 _l";
|
|
12248
|
+
var pageTitle = "_f0 _cz";
|
|
12243
12249
|
//#endregion
|
|
12244
12250
|
//#region src/tags/diff-send.marko
|
|
12245
12251
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -12249,7 +12255,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12249
12255
|
let sendTarget = null;
|
|
12250
12256
|
const sessions = input.sessions || [];
|
|
12251
12257
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
12252
|
-
_html(`<span${_attr_class("
|
|
12258
|
+
_html(`<span${_attr_class("_iu")}><button type=button${_attr_class("_q")} title="Copy comments as markdown">${_text_resume($scope0_id, "c", "Copy")}</button>${_el_resume($scope0_id, "b")}`);
|
|
12253
12259
|
_if(() => {
|
|
12254
12260
|
if (sessions.length === 1) {
|
|
12255
12261
|
const $scope1_id = _scope_id();
|
|
@@ -12259,11 +12265,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
12259
12265
|
return 0;
|
|
12260
12266
|
} else if (sessions.length) {
|
|
12261
12267
|
const $scope2_id = _scope_id();
|
|
12262
|
-
_html(`<span${_attr_class("
|
|
12268
|
+
_html(`<span${_attr_class("_iv")}><button type=button${_attr_class(["_r", "_iw"])}${_attr("disabled", sending)}>${_text_resume($scope2_id, "c", "Send to")}</button>${_el_resume($scope2_id, "b")}`);
|
|
12263
12269
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
12264
12270
|
sendTarget = _new_sendTarget;
|
|
12265
12271
|
}, "j0", $scope2_id), () => {
|
|
12266
|
-
_html(`<select${_attr_class("
|
|
12272
|
+
_html(`<select${_attr_class("_ix")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
12267
12273
|
_for_of(sessions, (s) => {
|
|
12268
12274
|
const $scope3_id = _scope_id();
|
|
12269
12275
|
_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)}`);
|
|
@@ -13775,8 +13781,8 @@ function clip(line, at, len) {
|
|
|
13775
13781
|
const end = Math.min(line.length, at + len + pad);
|
|
13776
13782
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13777
13783
|
}
|
|
13778
|
-
var findInput = "
|
|
13779
|
-
var findIconBtn = "
|
|
13784
|
+
var findInput = "_ew _n";
|
|
13785
|
+
var findIconBtn = "_ez _l";
|
|
13780
13786
|
//#endregion
|
|
13781
13787
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
13782
13788
|
var icon_arrow_down_default = _template("N", (input) => {
|
|
@@ -13864,9 +13870,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
13864
13870
|
el.select();
|
|
13865
13871
|
}, 0);
|
|
13866
13872
|
}, "i0", $scope0_id);
|
|
13867
|
-
_html(`<div${_attr_class(["
|
|
13873
|
+
_html(`<div${_attr_class(["_ev", !open && "_eu"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
13868
13874
|
type(v);
|
|
13869
|
-
}, "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("
|
|
13875
|
+
}, "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("_ey")}>${_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"}>`);
|
|
13870
13876
|
icon_arrow_up_default({ size: 14 });
|
|
13871
13877
|
_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"}>`);
|
|
13872
13878
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -13968,9 +13974,9 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
13968
13974
|
}
|
|
13969
13975
|
return shortHeadFallback(head);
|
|
13970
13976
|
}
|
|
13971
|
-
var repoWorktree = "
|
|
13972
|
-
var repoTitle = "
|
|
13973
|
-
var path$1 = "
|
|
13977
|
+
var repoWorktree = "_iV _y";
|
|
13978
|
+
var repoTitle = "_i1 _x";
|
|
13979
|
+
var path$1 = "_jh _bb";
|
|
13974
13980
|
//#endregion
|
|
13975
13981
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
13976
13982
|
var icon_chevron_down_default = _template("W", (input) => {
|
|
@@ -14010,7 +14016,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
14010
14016
|
_scope_reason();
|
|
14011
14017
|
const $scope0_id = _scope_id();
|
|
14012
14018
|
_el($scope0_id, "h0");
|
|
14013
|
-
_html(`<div${_attr_class(["
|
|
14019
|
+
_html(`<div${_attr_class(["_jl", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
14014
14020
|
_script($scope0_id, "h1");
|
|
14015
14021
|
writeScope($scope0_id, {
|
|
14016
14022
|
e: input.file,
|
|
@@ -14069,14 +14075,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14069
14075
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
14070
14076
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
14071
14077
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
14072
|
-
_html(`<section${_attr_class("
|
|
14078
|
+
_html(`<section${_attr_class("_iR")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_iS", { ["_iT"]: input.collapsible && input.collapsed }])}>`);
|
|
14073
14079
|
_if(() => {
|
|
14074
14080
|
if (input.collapsible) {
|
|
14075
14081
|
const $scope1_id = _scope_id();
|
|
14076
|
-
_html(`<button type=button${_attr_class("
|
|
14077
|
-
"
|
|
14078
|
-
!input.collapsed && "
|
|
14079
|
-
input.expanding && "
|
|
14082
|
+
_html(`<button type=button${_attr_class("_iU")} aria-expanded=${!input.collapsed ? "true" : "false"} aria-busy=${input.expanding ? "true" : "false"}${input.collapsed ? _attr("title", `Show ${countLabel} files`) : " title=\"Hide files\""}><span${_attr_class([
|
|
14083
|
+
"_je",
|
|
14084
|
+
!input.collapsed && "_jf",
|
|
14085
|
+
input.expanding && "_jg"
|
|
14080
14086
|
])} aria-hidden=true>`);
|
|
14081
14087
|
_if(() => {
|
|
14082
14088
|
if (input.collapsed) {
|
|
@@ -14115,14 +14121,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14115
14121
|
return 1;
|
|
14116
14122
|
}
|
|
14117
14123
|
}, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened);
|
|
14118
|
-
_html(`<span${_attr_class("
|
|
14124
|
+
_html(`<span${_attr_class("_i2")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_N", "_i3"])}>${_text_resume($scope0_id, "g", compare$1.base, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_P", "_i5"])} aria-hidden=true>vs</span><span${_attr_class(["_N", "_i4"])}>${_text_resume($scope0_id, "j", compare$1.head, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
14119
14125
|
_if(() => {
|
|
14120
14126
|
if (compare$1.topic) {
|
|
14121
14127
|
const $scope15_id = _scope_id();
|
|
14122
14128
|
_html(`<span${_attr_class([
|
|
14123
14129
|
"_N",
|
|
14124
14130
|
tone.accent,
|
|
14125
|
-
"
|
|
14131
|
+
"_i6"
|
|
14126
14132
|
])}>${_text_resume($scope15_id, "b", compare$1.topic, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
14127
14133
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
14128
14134
|
return 0;
|
|
@@ -14135,7 +14141,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14135
14141
|
_html(`<button type=button${_attr_class([
|
|
14136
14142
|
"_N",
|
|
14137
14143
|
tone.warn,
|
|
14138
|
-
"
|
|
14144
|
+
"_i7"
|
|
14139
14145
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_text_resume($scope2_id, "b", shortSha(repo.head, 7), $sg__input_repo * 2)} → ${_text_resume($scope2_id, "c", shortSha(repo.pr.headRefOid, 7), $sg__input_repo * 2)}</button>${_el_resume($scope2_id, "a")}`);
|
|
14140
14146
|
_script($scope2_id, "x10");
|
|
14141
14147
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -14145,7 +14151,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14145
14151
|
_if(() => {
|
|
14146
14152
|
if (repo.contained && input.files.length) {
|
|
14147
14153
|
const $scope13_id = _scope_id();
|
|
14148
|
-
_html(`<span${_attr_class(["_N", "
|
|
14154
|
+
_html(`<span${_attr_class(["_N", "_i7"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_text_resume($scope13_id, "b", repo.base, $sg__input_repo * 2)}</span>${_el_resume($scope13_id, "a", $sg__input_repo)}`);
|
|
14149
14155
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
14150
14156
|
return 0;
|
|
14151
14157
|
}
|
|
@@ -14153,16 +14159,16 @@ var review_section_default = _template("x", (input) => {
|
|
|
14153
14159
|
_if(() => {
|
|
14154
14160
|
if (input.localDiffers) {
|
|
14155
14161
|
const $scope3_id = _scope_id();
|
|
14156
|
-
_html(`<span${_attr_class(["_N", "
|
|
14162
|
+
_html(`<span${_attr_class(["_N", "_i7"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_text_resume($scope3_id, "b", shortBranch(repo.branch, input.workspaceBranch, input.workspaceName), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName * 2)}${_text_resume($scope3_id, "c", shortSha(repo.localHead, 7), $sg__input_repo * 2)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
|
|
14157
14163
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope3_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
14158
14164
|
return 0;
|
|
14159
14165
|
}
|
|
14160
14166
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 39), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
14161
|
-
_html(`<span${_attr_class("
|
|
14167
|
+
_html(`<span${_attr_class("_iW")}><span>${_text_resume($scope0_id, "p", countLabel, $sg__input_files__OR__input_shownKeys)} file${_text_resume($scope0_id, "q", countLabel === 1 ? "" : "s", $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
14162
14168
|
_if(() => {
|
|
14163
14169
|
if (stats.additions || stats.deletions) {
|
|
14164
14170
|
const $scope14_id = _scope_id();
|
|
14165
|
-
_html(`<span${_attr_class("
|
|
14171
|
+
_html(`<span${_attr_class("_iX")}>+${_text_resume($scope14_id, "b", stats.additions, $sg__input_files__OR__input_shownKeys * 2)}</span><span${_attr_class("_iY")}>−${_text_resume($scope14_id, "d", stats.deletions, $sg__input_files__OR__input_shownKeys * 2)}</span>`);
|
|
14166
14172
|
$si__input_files__OR__input_shownKeys && writeScope($scope14_id, { _: _scope_with_id($scope0_id) });
|
|
14167
14173
|
return 0;
|
|
14168
14174
|
}
|
|
@@ -14170,7 +14176,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14170
14176
|
_if(() => {
|
|
14171
14177
|
if (newCount || input.onlyNew) {
|
|
14172
14178
|
const $scope4_id = _scope_id();
|
|
14173
|
-
_html(`<button type=button${_attr_class(["
|
|
14179
|
+
_html(`<button type=button${_attr_class(["_i0", { ["_iZ"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_text_resume($scope4_id, "b", newCount, $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
|
|
14174
14180
|
_script($scope4_id, "x11");
|
|
14175
14181
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
14176
14182
|
return 0;
|
|
@@ -14180,7 +14186,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14180
14186
|
_if(() => {
|
|
14181
14187
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
14182
14188
|
const $scope5_id = _scope_id();
|
|
14183
|
-
_html(`<div${_attr_class("
|
|
14189
|
+
_html(`<div${_attr_class("_i9")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
14184
14190
|
_for_of(input.files, (file$2) => {
|
|
14185
14191
|
const $scope6_id = _scope_id();
|
|
14186
14192
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -14193,14 +14199,14 @@ var review_section_default = _template("x", (input) => {
|
|
|
14193
14199
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
14194
14200
|
input.onFileToggle(file$2.key, open);
|
|
14195
14201
|
}, "x0", $scope6_id))}${_attr_class([
|
|
14196
|
-
"
|
|
14197
|
-
forceNear && "
|
|
14198
|
-
input.findHit?.key === file$2.key && "
|
|
14199
|
-
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("
|
|
14202
|
+
"_i_",
|
|
14203
|
+
forceNear && "_ja",
|
|
14204
|
+
input.findHit?.key === file$2.key && "_iP"
|
|
14205
|
+
])}${_attr("data-key", file$2.key)}${_attr("hidden", !input.shownKeys.has(file$2.key))}><summary${_attr_class("_jc")}><span${_attr_class("_ba")}${_attr("data-status", file$2.status)}>${_text_resume($scope6_id, "d", file$2.status, $sg__input_files)}</span>${_el_resume($scope6_id, "c", $sg__input_files)}<span${_attr_class([path$1, input.findHit?.key === file$2.key && input.findHit.line < 1 && "_iQ"])}${_attr("title", file$2.path)}><bdi>${_text_resume($scope6_id, "f", file$2.path, $sg__input_files)}</bdi></span>${_el_resume($scope6_id, "e", _serialize_guard($scope0_reason, 19))}`);
|
|
14200
14206
|
_if(() => {
|
|
14201
14207
|
if (file$2.changedSince) {
|
|
14202
14208
|
const $scope19_id = _scope_id();
|
|
14203
|
-
_html(`<span${_attr_class(["_A", "
|
|
14209
|
+
_html(`<span${_attr_class(["_A", "_i8"])} title="Changed since your last visit"></span>`);
|
|
14204
14210
|
$si__input_files && writeScope($scope19_id, {});
|
|
14205
14211
|
return 0;
|
|
14206
14212
|
}
|
|
@@ -14219,17 +14225,17 @@ var review_section_default = _template("x", (input) => {
|
|
|
14219
14225
|
_if(() => {
|
|
14220
14226
|
if (file$2.binary) {
|
|
14221
14227
|
const $scope20_id = _scope_id();
|
|
14222
|
-
_html(`<p${_attr_class(["
|
|
14228
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>binary file</p>`);
|
|
14223
14229
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope20_id, {});
|
|
14224
14230
|
return 0;
|
|
14225
14231
|
} else if (file$2.tooLarge) {
|
|
14226
14232
|
const $scope21_id = _scope_id();
|
|
14227
|
-
_html(`<p${_attr_class(["
|
|
14233
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>file too large to display</p>`);
|
|
14228
14234
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope21_id, {});
|
|
14229
14235
|
return 1;
|
|
14230
14236
|
} else if (file$2.old == null && file$2.new == null) {
|
|
14231
14237
|
const $scope22_id = _scope_id();
|
|
14232
|
-
_html(`<p${_attr_class(["
|
|
14238
|
+
_html(`<p${_attr_class(["_ji", "_jb"])}>file could not be read</p>`);
|
|
14233
14239
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope22_id, {});
|
|
14234
14240
|
return 2;
|
|
14235
14241
|
} else if (expanded) {
|
|
@@ -14237,7 +14243,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14237
14243
|
_if(() => {
|
|
14238
14244
|
if (!forceNear) {
|
|
14239
14245
|
const $scope8_id = _scope_id();
|
|
14240
|
-
_html(`<div${_attr_class("
|
|
14246
|
+
_html(`<div${_attr_class("_jd")}></div>${_el_resume($scope8_id, "a")}`);
|
|
14241
14247
|
_script($scope8_id, "x12");
|
|
14242
14248
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
14243
14249
|
return 0;
|
|
@@ -14245,7 +14251,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14245
14251
|
const $scope9_id = _scope_id();
|
|
14246
14252
|
const $childScope = _peek_scope_id();
|
|
14247
14253
|
diff_file_default({
|
|
14248
|
-
class: "
|
|
14254
|
+
class: "_jb",
|
|
14249
14255
|
file: file$2,
|
|
14250
14256
|
comments: fileComments,
|
|
14251
14257
|
draft: input.draft && input.draft.key === file$2.key ? input.draft : null,
|
|
@@ -14382,7 +14388,7 @@ var review_section_default = _template("x", (input) => {
|
|
|
14382
14388
|
cd: $si__input_findHit_line && $input_findHit_line__closures
|
|
14383
14389
|
});
|
|
14384
14390
|
});
|
|
14385
|
-
var fileFilter = "
|
|
14391
|
+
var fileFilter = "_jk _n";
|
|
14386
14392
|
//#endregion
|
|
14387
14393
|
//#region src/tags/file-filter.marko
|
|
14388
14394
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -14412,7 +14418,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
14412
14418
|
pending = v;
|
|
14413
14419
|
box.timer = setTimeout(flush, 150);
|
|
14414
14420
|
}, "n2", $scope0_id);
|
|
14415
|
-
_html(`<div${_attr_class("
|
|
14421
|
+
_html(`<div${_attr_class("_jj")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
14416
14422
|
type(v);
|
|
14417
14423
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
14418
14424
|
_script($scope0_id, "n3");
|
|
@@ -14445,7 +14451,7 @@ var $content = (input) => {
|
|
|
14445
14451
|
_for_of(dir.dirs, (child) => {
|
|
14446
14452
|
const $scope1_id = _scope_id();
|
|
14447
14453
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
14448
|
-
_html(`<div${_attr_class("
|
|
14454
|
+
_html(`<div${_attr_class("_iG")}><button type=button${_attr_class(["_iH", { ["_iy"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_iO")}>`);
|
|
14449
14455
|
_if(() => {
|
|
14450
14456
|
if (shut) {
|
|
14451
14457
|
const $scope4_id = _scope_id();
|
|
@@ -14459,7 +14465,7 @@ var $content = (input) => {
|
|
|
14459
14465
|
return 1;
|
|
14460
14466
|
}
|
|
14461
14467
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
14462
|
-
_html(`<span${_attr_class("
|
|
14468
|
+
_html(`<span${_attr_class("_iI")}>${_text_resume($scope1_id, "e", child.label, $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14463
14469
|
_if(() => {
|
|
14464
14470
|
if (!shut) {
|
|
14465
14471
|
const $scope2_id = _scope_id();
|
|
@@ -14506,11 +14512,11 @@ var $content = (input) => {
|
|
|
14506
14512
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
14507
14513
|
_for_of(dir.files, ({ file, name }) => {
|
|
14508
14514
|
const $scope3_id = _scope_id();
|
|
14509
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
14515
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_iK", { ["_iJ"]: input.collapsedFiles?.has(file.key) }])}${input.collapsedFiles?.has(file.key) ? _attr("title", `${file.path} (folded — click to open)`) : _attr("title", file.path)}${_attr_style(`--depth:${dir.depth + 1}`)}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope3_id, "c", file.status, $sg__input_dir)}</span>${_el_resume($scope3_id, "b", $sg__input_dir)}<span${_attr_class("_iL")}>${_text_resume($scope3_id, "e", name, $sg__input_dir)}</span>`);
|
|
14510
14516
|
_if(() => {
|
|
14511
14517
|
if (input.newKeys.has(file.key)) {
|
|
14512
14518
|
const $scope6_id = _scope_id();
|
|
14513
|
-
_html(`<span${_attr_class(["_A", "
|
|
14519
|
+
_html(`<span${_attr_class(["_A", "_iM"])} title="Changed since your last visit"></span>`);
|
|
14514
14520
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14515
14521
|
return 0;
|
|
14516
14522
|
}
|
|
@@ -14518,7 +14524,7 @@ var $content = (input) => {
|
|
|
14518
14524
|
_if(() => {
|
|
14519
14525
|
if (input.commentKeys.has(file.key)) {
|
|
14520
14526
|
const $scope7_id = _scope_id();
|
|
14521
|
-
_html(`<span${_attr_class("
|
|
14527
|
+
_html(`<span${_attr_class("_iN")}>`);
|
|
14522
14528
|
icon_comment_default({ size: 12 });
|
|
14523
14529
|
_html("</span>");
|
|
14524
14530
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -14576,7 +14582,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14576
14582
|
scope: input.scope ?? null,
|
|
14577
14583
|
file: key
|
|
14578
14584
|
}), "l0", $scope0_id);
|
|
14579
|
-
_html(`<aside${_attr_class(["
|
|
14585
|
+
_html(`<aside${_attr_class(["_iz", { ["_iy"]: input.open === false }])}><div${_attr_class("_iA")}>`);
|
|
14580
14586
|
_set_serialize_reason(2);
|
|
14581
14587
|
const $childScope = _peek_scope_id();
|
|
14582
14588
|
file_filter_default({
|
|
@@ -14585,18 +14591,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14585
14591
|
filter = _new_filter;
|
|
14586
14592
|
}, "l1", $scope0_id)
|
|
14587
14593
|
});
|
|
14588
|
-
_html(`</div><div${_attr_class("
|
|
14594
|
+
_html(`</div><div${_attr_class("_iB")}>`);
|
|
14589
14595
|
_if(() => {
|
|
14590
14596
|
if (!input.sections.length && filter) {
|
|
14591
14597
|
const $scope3_id = _scope_id();
|
|
14592
|
-
_html(`<p${_attr_class("
|
|
14598
|
+
_html(`<p${_attr_class("_iC")}>No files match.</p>`);
|
|
14593
14599
|
writeScope($scope3_id, {});
|
|
14594
14600
|
return 0;
|
|
14595
14601
|
}
|
|
14596
14602
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
14597
14603
|
_for_of(input.sections, (section) => {
|
|
14598
14604
|
const $scope1_id = _scope_id();
|
|
14599
|
-
_html(`<div${_attr_class("
|
|
14605
|
+
_html(`<div${_attr_class("_iD")}><button type=button${_attr_class(["_iE", { ["_iy"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_iO")}>`);
|
|
14600
14606
|
_if(() => {
|
|
14601
14607
|
if (collapsedRepos.has(section.id)) {
|
|
14602
14608
|
const $scope4_id = _scope_id();
|
|
@@ -14610,12 +14616,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14610
14616
|
return 1;
|
|
14611
14617
|
}
|
|
14612
14618
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
14613
|
-
_html(`<span${_attr_class("
|
|
14619
|
+
_html(`<span${_attr_class("_iI")}>${_text_resume($scope1_id, "e", section.label, $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
14614
14620
|
_if(() => {
|
|
14615
14621
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
14616
14622
|
const $scope2_id = _scope_id();
|
|
14617
14623
|
const root = treeDirs(section.files);
|
|
14618
|
-
_html(`<div${_attr_class("
|
|
14624
|
+
_html(`<div${_attr_class("_iF")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
14619
14625
|
_set_serialize_reason(1);
|
|
14620
14626
|
const $childScope2 = _peek_scope_id();
|
|
14621
14627
|
diff_tree_dir_default({
|
|
@@ -14685,7 +14691,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
14685
14691
|
});
|
|
14686
14692
|
_resume_branch($scope0_id);
|
|
14687
14693
|
});
|
|
14688
|
-
var sheetDir = "
|
|
14694
|
+
var sheetDir = "_io _bb";
|
|
14689
14695
|
//#endregion
|
|
14690
14696
|
//#region src/tags/diff-file-sheet.marko
|
|
14691
14697
|
var diff_file_sheet_default = _template("g", (input) => {
|
|
@@ -14741,9 +14747,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14741
14747
|
_if(() => {
|
|
14742
14748
|
if (open) {
|
|
14743
14749
|
const $scope1_id = _scope_id();
|
|
14744
|
-
_html(`<div${_attr_class("
|
|
14750
|
+
_html(`<div${_attr_class("_if")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_ig")} role=dialog aria-label="Jump to file"><div${_attr_class("_ih")}><strong${_attr_class("_ie")}>Files</strong><span${_attr_class("_ii")}>${_text_resume($scope1_id, "f", input.files.length, $sg__input_files_length)}${_text_resume($scope1_id, "g", input.files.length !== total ? ` / ${total}` : "", _serialize_guard($scope0_reason, 2) * 2)}</span><button type=button${_attr_class([iconBtnLg, "_id"])} title=Close aria-label=Close>`);
|
|
14745
14751
|
icon_xmark_default({ size: 16 });
|
|
14746
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
14752
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_iq")}>`);
|
|
14747
14753
|
_set_serialize_reason(2);
|
|
14748
14754
|
const $childScope = _peek_scope_id();
|
|
14749
14755
|
file_filter_default({
|
|
@@ -14752,13 +14758,13 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14752
14758
|
filter = _new_filter;
|
|
14753
14759
|
}, "g1", $scope1_id)
|
|
14754
14760
|
});
|
|
14755
|
-
_html(`</div><div${_attr_class("
|
|
14761
|
+
_html(`</div><div${_attr_class("_ij")}>`);
|
|
14756
14762
|
_for_of(groups, (group) => {
|
|
14757
14763
|
const $scope2_id = _scope_id();
|
|
14758
|
-
_html(`<div${_attr_class("
|
|
14764
|
+
_html(`<div${_attr_class("_ik")}><div${_attr_class("_il")}>${_text_resume($scope2_id, "c", group.repo, $sg__input_files)}</div>`);
|
|
14759
14765
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
14760
14766
|
const $scope3_id = _scope_id();
|
|
14761
|
-
_html(`<div${_attr_class("
|
|
14767
|
+
_html(`<div${_attr_class("_im")}>`);
|
|
14762
14768
|
_if(() => {
|
|
14763
14769
|
if (dir) {
|
|
14764
14770
|
const $scope5_id = _scope_id();
|
|
@@ -14769,11 +14775,11 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14769
14775
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
14770
14776
|
_for_of(files, ({ file, name }) => {
|
|
14771
14777
|
const $scope4_id = _scope_id();
|
|
14772
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
14778
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_in", "_y"])}><span${_attr_class("_ba")}${_attr("data-status", file.status)}>${_text_resume($scope4_id, "c", file.status, $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_ip")}><bdi>${_text_resume($scope4_id, "e", name, $sg__input_files)}</bdi></span>`);
|
|
14773
14779
|
_if(() => {
|
|
14774
14780
|
if (newKeys.has(file.key)) {
|
|
14775
14781
|
const $scope6_id = _scope_id();
|
|
14776
|
-
_html(`<span${_attr_class(["_A", "
|
|
14782
|
+
_html(`<span${_attr_class(["_A", "_is"])} title="Changed since your last visit"></span>`);
|
|
14777
14783
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
14778
14784
|
return 0;
|
|
14779
14785
|
}
|
|
@@ -14783,7 +14789,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14783
14789
|
const $scope7_id = _scope_id();
|
|
14784
14790
|
icon_comment_default({
|
|
14785
14791
|
size: 12,
|
|
14786
|
-
class: "
|
|
14792
|
+
class: "_it"
|
|
14787
14793
|
});
|
|
14788
14794
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
14789
14795
|
return 0;
|
|
@@ -14808,7 +14814,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
14808
14814
|
_if(() => {
|
|
14809
14815
|
if (!input.files.length) {
|
|
14810
14816
|
const $scope8_id = _scope_id();
|
|
14811
|
-
_html(`<p${_attr_class("
|
|
14817
|
+
_html(`<p${_attr_class("_ir")}>No files match.</p>`);
|
|
14812
14818
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
14813
14819
|
return 0;
|
|
14814
14820
|
}
|
|
@@ -15348,11 +15354,11 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15348
15354
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
15349
15355
|
}
|
|
15350
15356
|
}, "m33", $scope0_id);
|
|
15351
|
-
_html(`<div${_attr_class("
|
|
15357
|
+
_html(`<div${_attr_class("_fQ")}><div${_attr_class("_fV")}><div${_attr_class("_fW")}><div${_attr_class(["_f6", { ["_f5"]: !comments.length }])}>`);
|
|
15352
15358
|
_if(() => {
|
|
15353
15359
|
if (input.onExit) {
|
|
15354
15360
|
const $scope1_id = _scope_id();
|
|
15355
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
15361
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_fX"])} title="Back to terminal (Esc)">`);
|
|
15356
15362
|
icon_back_default({ size: 14 });
|
|
15357
15363
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
15358
15364
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
@@ -15363,7 +15369,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15363
15369
|
_if(() => {
|
|
15364
15370
|
if (comments.length) {
|
|
15365
15371
|
const $scope5_id = _scope_id();
|
|
15366
|
-
_html(`<span${_attr_class("
|
|
15372
|
+
_html(`<span${_attr_class("_fZ")}>${_text_resume($scope5_id, "b", comments.length)} comment${_text_resume($scope5_id, "c", comments.length === 1 ? "" : "s", 2)}</span>`);
|
|
15367
15373
|
writeScope($scope5_id, {});
|
|
15368
15374
|
return 0;
|
|
15369
15375
|
}
|
|
@@ -15371,7 +15377,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15371
15377
|
_if(() => {
|
|
15372
15378
|
if (comments.length) {
|
|
15373
15379
|
const $scope2_id = _scope_id();
|
|
15374
|
-
_html(`<span${_attr_class("
|
|
15380
|
+
_html(`<span${_attr_class("_fY")}>`);
|
|
15375
15381
|
_set_serialize_reason(_serialize_guard($scope0_reason, 7));
|
|
15376
15382
|
const $childScope = _peek_scope_id();
|
|
15377
15383
|
diff_send_default({
|
|
@@ -15384,14 +15390,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15384
15390
|
return 0;
|
|
15385
15391
|
}
|
|
15386
15392
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
15387
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
15393
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_fU")}>`);
|
|
15388
15394
|
_if(() => {
|
|
15389
15395
|
if (hasFiles) {
|
|
15390
15396
|
const $scope12_id = _scope_id();
|
|
15391
15397
|
_html(`<button${_attr_class([
|
|
15392
15398
|
treeToggle,
|
|
15393
|
-
"
|
|
15394
|
-
{ ["
|
|
15399
|
+
"_fS",
|
|
15400
|
+
{ ["_fR"]: treeOpen }
|
|
15395
15401
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
15396
15402
|
icon_sidebar_default({ size: 14 });
|
|
15397
15403
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -15400,7 +15406,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15400
15406
|
return 0;
|
|
15401
15407
|
}
|
|
15402
15408
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
15403
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
15409
|
+
_html(`<button${_attr_class([iconBtnRow, "_fS"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
15404
15410
|
_set_serialize_reason(1);
|
|
15405
15411
|
const $childScope2 = _peek_scope_id();
|
|
15406
15412
|
icon_refresh_default({
|
|
@@ -15411,19 +15417,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15411
15417
|
_if(() => {
|
|
15412
15418
|
if (hasFiles) {
|
|
15413
15419
|
const $scope13_id = _scope_id();
|
|
15414
|
-
_html(`<button${_attr_class(["_q", "
|
|
15420
|
+
_html(`<button${_attr_class(["_q", "_ge"])} title="Jump to file">Files (${_text_resume($scope13_id, "b", shownFiles.length, 2)})</button>${_el_resume($scope13_id, "a")}`);
|
|
15415
15421
|
_script($scope13_id, "m53");
|
|
15416
15422
|
writeScope($scope13_id, {});
|
|
15417
15423
|
return 0;
|
|
15418
15424
|
}
|
|
15419
15425
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
15420
|
-
_html(`<span${_attr_class(["_o", "
|
|
15426
|
+
_html(`<span${_attr_class(["_o", "_f7"])}>`);
|
|
15421
15427
|
_attr_select_value($scope0_id, "o", scope, _resume(function(v) {
|
|
15422
15428
|
setScope(v);
|
|
15423
15429
|
}, "m0", $scope0_id), () => {
|
|
15424
|
-
_html(`<select${_attr_class(["_p", "
|
|
15430
|
+
_html(`<select${_attr_class(["_p", "_f8"])} aria-label="Review scope"${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option></select>`);
|
|
15425
15431
|
});
|
|
15426
|
-
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["
|
|
15432
|
+
_html(`${_el_resume($scope0_id, "o")}</span><div${_attr_class(["_f3", { ["_f2"]: !findOpen }])}>`);
|
|
15427
15433
|
_set_serialize_reason(2);
|
|
15428
15434
|
const $childScope3 = _peek_scope_id();
|
|
15429
15435
|
let findFocus = diff_find_default({
|
|
@@ -15444,8 +15450,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15444
15450
|
const $scope14_id = _scope_id();
|
|
15445
15451
|
_html(`<button${_attr_class([
|
|
15446
15452
|
iconBtnRow,
|
|
15447
|
-
"
|
|
15448
|
-
"
|
|
15453
|
+
"_f1",
|
|
15454
|
+
"_fS"
|
|
15449
15455
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
15450
15456
|
icon_search_default({ size: 14 });
|
|
15451
15457
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -15454,7 +15460,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15454
15460
|
return 0;
|
|
15455
15461
|
}
|
|
15456
15462
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
15457
|
-
_html(`</div></div><div${_attr_class("
|
|
15463
|
+
_html(`</div></div><div${_attr_class("_f4")} data-diff-main>`);
|
|
15458
15464
|
_if(() => {
|
|
15459
15465
|
if (error) {
|
|
15460
15466
|
const $scope6_id = _scope_id();
|
|
@@ -15477,7 +15483,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
15477
15483
|
_if(() => {
|
|
15478
15484
|
if (!repos && loading) {
|
|
15479
15485
|
const $scope15_id = _scope_id();
|
|
15480
|
-
_html(`<div${_attr_class("
|
|
15486
|
+
_html(`<div${_attr_class("_f_")} aria-hidden=true><div${_attr_class(["_ga", "_gb"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div><div${_attr_class(["_ga", "_gc"])}></div><div${_attr_class(["_ga", "_gd"])}></div></div>`);
|
|
15481
15487
|
writeScope($scope15_id, {});
|
|
15482
15488
|
return 0;
|
|
15483
15489
|
}
|
|
@@ -15879,12 +15885,12 @@ function parseInvite(text) {
|
|
|
15879
15885
|
}
|
|
15880
15886
|
//#endregion
|
|
15881
15887
|
//#region src/tags/manage-workspace.css.ts
|
|
15882
|
-
var pageMeta = "
|
|
15883
|
-
var pathMeta = "
|
|
15884
|
-
var skillRow = "
|
|
15885
|
-
var skillName = "
|
|
15886
|
-
var skillDesc = "
|
|
15887
|
-
var skillEnd = "
|
|
15888
|
+
var pageMeta = "_fx _cB";
|
|
15889
|
+
var pathMeta = "_fA _y";
|
|
15890
|
+
var skillRow = "_fG _fB";
|
|
15891
|
+
var skillName = "_fI _fC";
|
|
15892
|
+
var skillDesc = "_fL _fD";
|
|
15893
|
+
var skillEnd = "_fM _fE";
|
|
15888
15894
|
//#endregion
|
|
15889
15895
|
//#region src/tags/icons/icon-clipboard.marko
|
|
15890
15896
|
var icon_clipboard_default = _template("Y", (input) => {
|
|
@@ -15902,8 +15908,8 @@ var icon_clipboard_default = _template("Y", (input) => {
|
|
|
15902
15908
|
});
|
|
15903
15909
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
15904
15910
|
});
|
|
15905
|
-
var resultRow = "
|
|
15906
|
-
var resultBranch = "
|
|
15911
|
+
var resultRow = "_hP _I";
|
|
15912
|
+
var resultBranch = "_hR _4 _l";
|
|
15907
15913
|
//#endregion
|
|
15908
15914
|
//#region src/tags/icons/icon-branch.marko
|
|
15909
15915
|
var icon_branch_default = _template("U", (input) => {
|
|
@@ -15933,7 +15939,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15933
15939
|
let branchFilter = "";
|
|
15934
15940
|
let reloadTick = 0;
|
|
15935
15941
|
let refreshing = false;
|
|
15936
|
-
_html(`<div${_attr_class("
|
|
15942
|
+
_html(`<div${_attr_class("_hT")}>`);
|
|
15937
15943
|
_if(() => {
|
|
15938
15944
|
{
|
|
15939
15945
|
const $scope4_id = _scope_id();
|
|
@@ -15963,7 +15969,7 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
15963
15969
|
//#region src/tags/repo-picker.marko
|
|
15964
15970
|
var api$5;
|
|
15965
15971
|
var repo_picker_default = _template("w", (input$2) => {
|
|
15966
|
-
const $scope0_reason = _scope_reason(), $sg__input_compact = _serialize_guard($scope0_reason,
|
|
15972
|
+
const $scope0_reason = _scope_reason(), $sg__input_compact__OR__input_action = _serialize_guard($scope0_reason, 1), $sg__input_compact = _serialize_guard($scope0_reason, 7), $si__input_onError = _serialize_if($scope0_reason, 6), $si__input_compact__OR__input_action = _serialize_if($scope0_reason, 1);
|
|
15967
15973
|
const $scope0_id = _scope_id();
|
|
15968
15974
|
const $loadCatalog2__closures = /* @__PURE__ */ new Set();
|
|
15969
15975
|
const $ssoPending__closures = /* @__PURE__ */ new Set();
|
|
@@ -16018,7 +16024,7 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16018
16024
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
16019
16025
|
})();
|
|
16020
16026
|
const ssoBlock = { content: _content("w13", () => {
|
|
16021
|
-
const $
|
|
16027
|
+
const $scope9_id = _scope_id();
|
|
16022
16028
|
_scope_reason();
|
|
16023
16029
|
_set_serialize_reason(26);
|
|
16024
16030
|
const $childScope = _peek_scope_id();
|
|
@@ -16026,228 +16032,238 @@ var repo_picker_default = _template("w", (input$2) => {
|
|
|
16026
16032
|
items: ssoPending,
|
|
16027
16033
|
onChange: _resume(function() {
|
|
16028
16034
|
ssoIgnoreTick++;
|
|
16029
|
-
}, "w7", $
|
|
16035
|
+
}, "w7", $scope9_id),
|
|
16030
16036
|
onDone: _resume(function() {
|
|
16031
16037
|
loadCatalog(true);
|
|
16032
|
-
}, "w8", $
|
|
16038
|
+
}, "w8", $scope9_id)
|
|
16033
16039
|
});
|
|
16034
|
-
_subscribe($ssoPending__closures, _subscribe($si__input_onError && $loadCatalog2__closures, writeScope($
|
|
16040
|
+
_subscribe($ssoPending__closures, _subscribe($si__input_onError && $loadCatalog2__closures, writeScope($scope9_id, {
|
|
16035
16041
|
_: _scope_with_id($scope0_id),
|
|
16036
16042
|
a: _existing_scope($childScope)
|
|
16037
16043
|
})));
|
|
16038
|
-
_resume_branch($
|
|
16044
|
+
_resume_branch($scope9_id);
|
|
16039
16045
|
}, $scope0_id) };
|
|
16040
16046
|
const hasBody = !!(pasted || results.length || filter && (!catalog || !pasted) || compact && ssoPending.length);
|
|
16041
|
-
_html(`<div${_attr_class([compact ? "
|
|
16042
|
-
["
|
|
16043
|
-
["
|
|
16047
|
+
_html(`<div${_attr_class([compact ? "_d0" : "_hH", {
|
|
16048
|
+
["_d1"]: compact && !input$2.open,
|
|
16049
|
+
["_d2"]: input$2.pinned
|
|
16044
16050
|
}])}>`);
|
|
16045
16051
|
_if(() => {
|
|
16046
16052
|
if (!compact && ssoPending.length) {
|
|
16047
|
-
const $
|
|
16048
|
-
_html(`<div${_attr_class("
|
|
16053
|
+
const $scope11_id = _scope_id();
|
|
16054
|
+
_html(`<div${_attr_class("_hK")}>`);
|
|
16049
16055
|
ssoBlock.content({});
|
|
16050
16056
|
_html("</div>");
|
|
16051
|
-
writeScope($
|
|
16057
|
+
writeScope($scope11_id, {});
|
|
16052
16058
|
return 0;
|
|
16053
16059
|
}
|
|
16054
16060
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
16055
|
-
_html(`<label${_attr_class(["_1", compact && "
|
|
16061
|
+
_html(`<div${!compact && input$2.action ? _attr_class("_hI") : _attr_class("_hJ")}><label${_attr_class(["_1", compact && "_d3"])}>`);
|
|
16056
16062
|
icon_search_default({
|
|
16057
16063
|
size: 14,
|
|
16058
16064
|
class: "_2"
|
|
16059
16065
|
});
|
|
16060
|
-
_html(`<input${_attr_input_value($scope0_id, "
|
|
16066
|
+
_html(`<input${_attr_input_value($scope0_id, "f", filter, _resume(function(v) {
|
|
16061
16067
|
filter = v;
|
|
16062
16068
|
highlight = 0;
|
|
16063
16069
|
pasteWillFork = false;
|
|
16064
16070
|
}, "w0", $scope0_id))}${_attr_class([
|
|
16065
16071
|
compact ? "_Z" : inputLg,
|
|
16066
16072
|
"_3",
|
|
16067
|
-
compact && "
|
|
16068
|
-
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "
|
|
16073
|
+
compact && "_d4"
|
|
16074
|
+
])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input$2.disabled)}>${_el_resume($scope0_id, "f")}</label>${_el_resume($scope0_id, "d", $sg__input_compact)}`);
|
|
16069
16075
|
_if(() => {
|
|
16070
|
-
if (compact) {
|
|
16076
|
+
if (!compact && input$2.action) {
|
|
16071
16077
|
const $scope1_id = _scope_id();
|
|
16072
|
-
|
|
16078
|
+
_dynamic_tag($scope1_id, "a", input$2.action, {}, 0, 0, _serialize_guard($scope0_reason, 8));
|
|
16079
|
+
$si__input_compact__OR__input_action && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 8) && _scope_with_id($scope0_id) });
|
|
16080
|
+
return 0;
|
|
16081
|
+
}
|
|
16082
|
+
}, $scope0_id, "g", $sg__input_compact__OR__input_action, $sg__input_compact__OR__input_action);
|
|
16083
|
+
_html(`</div>${_el_resume($scope0_id, "c", $sg__input_compact__OR__input_action)}`);
|
|
16084
|
+
_if(() => {
|
|
16085
|
+
if (compact) {
|
|
16086
|
+
const $scope2_id = _scope_id();
|
|
16087
|
+
_html(`<button${_attr_class([iconBtnRow, "_d5"])} type=button title="Close search" aria-label="Close search"${_attr("hidden", !input$2.open)}>`);
|
|
16073
16088
|
icon_xmark_default({ size: 14 });
|
|
16074
|
-
_html(`</button>${_el_resume($
|
|
16075
|
-
_script($
|
|
16076
|
-
writeScope($
|
|
16089
|
+
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
16090
|
+
_script($scope2_id, "w14");
|
|
16091
|
+
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
16077
16092
|
return 0;
|
|
16078
16093
|
}
|
|
16079
|
-
}, $scope0_id, "
|
|
16080
|
-
_html(`<div${_attr_class([compact ? pop$1 : "
|
|
16094
|
+
}, $scope0_id, "h", _serialize_guard($scope0_reason, 0), $sg__input_compact, 1, 0, 1);
|
|
16095
|
+
_html(`<div${_attr_class([compact ? pop$1 : "_hL"])}${_attr("hidden", !hasBody || compact && !input$2.open && !input$2.pinned)}>`);
|
|
16081
16096
|
_if(() => {
|
|
16082
16097
|
if (compact && ssoPending.length) {
|
|
16083
|
-
const $
|
|
16084
|
-
_html(`<div${_attr_class("
|
|
16098
|
+
const $scope12_id = _scope_id();
|
|
16099
|
+
_html(`<div${_attr_class("_hK")}>`);
|
|
16085
16100
|
ssoBlock.content({});
|
|
16086
16101
|
_html("</div>");
|
|
16087
|
-
writeScope($
|
|
16102
|
+
writeScope($scope12_id, {});
|
|
16088
16103
|
return 0;
|
|
16089
16104
|
}
|
|
16090
|
-
}, $scope0_id, "
|
|
16105
|
+
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
16091
16106
|
_if(() => {
|
|
16092
16107
|
if (pasted) {
|
|
16093
|
-
const $
|
|
16094
|
-
_html(`<ul${_attr_class("
|
|
16108
|
+
const $scope3_id = _scope_id();
|
|
16109
|
+
_html(`<ul${_attr_class("_hM")}><li><div${_attr_class(["_hO", "_hN"])}><button${_attr_class(resultRow)}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
16095
16110
|
icon_plus_default({
|
|
16096
16111
|
size: 12,
|
|
16097
|
-
class: "
|
|
16112
|
+
class: "_hV"
|
|
16098
16113
|
});
|
|
16099
|
-
_html(`<span${_attr_class("
|
|
16114
|
+
_html(`<span${_attr_class("_hW")}>${_text_resume($scope3_id, "f", repoLabel(pasted))}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
16100
16115
|
_if(() => {
|
|
16101
16116
|
if (pastedForkable) {
|
|
16102
|
-
const $
|
|
16103
|
-
_html(`<button${_attr_class(["
|
|
16117
|
+
const $scope10_id = _scope_id();
|
|
16118
|
+
_html(`<button${_attr_class(["_hS", { ["_hQ"]: pasteWillFork }])}${pasteWillFork ? " title=\"Will fork to your account; click to clone as-is instead\"" : _attr("title", `Fork ${pasted} to your account and clone the fork`)} aria-pressed=${pasteWillFork ? "true" : "false"}>`);
|
|
16104
16119
|
_if(() => {
|
|
16105
16120
|
if (pasteWillFork) {
|
|
16106
|
-
const $
|
|
16121
|
+
const $scope14_id = _scope_id();
|
|
16107
16122
|
icon_check_default({ size: 12 });
|
|
16108
16123
|
_html(" fork");
|
|
16109
|
-
writeScope($
|
|
16124
|
+
writeScope($scope14_id, {});
|
|
16110
16125
|
return 0;
|
|
16111
16126
|
} else {
|
|
16112
|
-
const $
|
|
16127
|
+
const $scope15_id = _scope_id();
|
|
16113
16128
|
_html("Fork");
|
|
16114
|
-
writeScope($
|
|
16129
|
+
writeScope($scope15_id, {});
|
|
16115
16130
|
return 1;
|
|
16116
16131
|
}
|
|
16117
|
-
}, $
|
|
16118
|
-
_script($
|
|
16119
|
-
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($
|
|
16132
|
+
}, $scope10_id, "a", 1, 1, 1, "</button>");
|
|
16133
|
+
_script($scope10_id, "w15");
|
|
16134
|
+
_subscribe($pasteWillFork__closures, _subscribe($pasted__closures, writeScope($scope10_id, { Cb8: 1 })));
|
|
16120
16135
|
return 0;
|
|
16121
16136
|
}
|
|
16122
|
-
}, $
|
|
16123
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
16137
|
+
}, $scope3_id, "g", 1, 1, 1, 0, 1);
|
|
16138
|
+
_html(`<button${_attr_class([resultBranch, { ["_hQ"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
16124
16139
|
icon_branch_default({ size: 12 });
|
|
16125
|
-
_html(`</button>${_el_resume($
|
|
16140
|
+
_html(`</button>${_el_resume($scope3_id, "h")}</div>`);
|
|
16126
16141
|
_if(() => {
|
|
16127
16142
|
if (branchesFor === pasted) {
|
|
16128
|
-
const $
|
|
16143
|
+
const $scope4_id = _scope_id();
|
|
16129
16144
|
const $childScope2 = _peek_scope_id();
|
|
16130
16145
|
branch_pick_default({
|
|
16131
16146
|
repo: pasted,
|
|
16132
16147
|
onPick: _resume(function(branch, isDefault) {
|
|
16133
16148
|
pick(pasted, isDefault ? void 0 : branch, pastedFork(pasteWillFork));
|
|
16134
|
-
}, "w9", $
|
|
16149
|
+
}, "w9", $scope4_id),
|
|
16135
16150
|
onError: _resume(function(message) {
|
|
16136
16151
|
branchesFor = null;
|
|
16137
16152
|
input$2.onError?.(message);
|
|
16138
|
-
}, "w10", $
|
|
16153
|
+
}, "w10", $scope4_id)
|
|
16139
16154
|
});
|
|
16140
|
-
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($
|
|
16155
|
+
_subscribe($pasted__closures, _subscribe($si__input_onError && $input_onError__closures, writeScope($scope4_id, { a: _existing_scope($childScope2) })));
|
|
16141
16156
|
return 0;
|
|
16142
16157
|
}
|
|
16143
|
-
}, $
|
|
16158
|
+
}, $scope3_id, "j", 1, 1, 1, 0, 1);
|
|
16144
16159
|
_html("</li></ul>");
|
|
16145
|
-
_script($
|
|
16146
|
-
writeScope($
|
|
16160
|
+
_script($scope3_id, "w16");
|
|
16161
|
+
writeScope($scope3_id, {});
|
|
16147
16162
|
return 0;
|
|
16148
16163
|
} else if (filter && !catalog) {
|
|
16149
|
-
const $
|
|
16164
|
+
const $scope13_id = _scope_id();
|
|
16150
16165
|
_html(`<p${_attr_class("_b5")}>Loading repos…</p>`);
|
|
16151
|
-
writeScope($
|
|
16166
|
+
writeScope($scope13_id, {});
|
|
16152
16167
|
return 1;
|
|
16153
16168
|
}
|
|
16154
|
-
}, $scope0_id, "
|
|
16169
|
+
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
16155
16170
|
_if(() => {
|
|
16156
16171
|
if (results.length) {
|
|
16157
|
-
const $
|
|
16158
|
-
_html(`<ul${_attr_class("
|
|
16172
|
+
const $scope5_id = _scope_id();
|
|
16173
|
+
_html(`<ul${_attr_class("_hM")}>`);
|
|
16159
16174
|
_for_of(results, (repo, i) => {
|
|
16160
|
-
const $
|
|
16161
|
-
_html(`<li><div${_attr_class(["
|
|
16175
|
+
const $scope6_id = _scope_id();
|
|
16176
|
+
_html(`<li><div${_attr_class(["_hO", { ["_hN"]: i === highlight }])}><button${_attr_class(resultRow)}>`);
|
|
16162
16177
|
icon_plus_default({
|
|
16163
16178
|
size: 12,
|
|
16164
|
-
class: "
|
|
16179
|
+
class: "_hV"
|
|
16165
16180
|
});
|
|
16166
|
-
_html(`<span${_attr_class("
|
|
16181
|
+
_html(`<span${_attr_class("_hW")}>${_text_resume($scope6_id, "e", repoLabel(repo.nameWithOwner))}</span></button>${_el_resume($scope6_id, "b")}<button${_attr_class([resultBranch, { ["_hQ"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
16167
16182
|
icon_branch_default({ size: 12 });
|
|
16168
|
-
_html(`</button>${_el_resume($
|
|
16183
|
+
_html(`</button>${_el_resume($scope6_id, "f")}</div>${_el_resume($scope6_id, "a")}`);
|
|
16169
16184
|
_if(() => {
|
|
16170
16185
|
if (branchesFor === repo.nameWithOwner) {
|
|
16171
|
-
const $
|
|
16186
|
+
const $scope7_id = _scope_id();
|
|
16172
16187
|
const $childScope3 = _peek_scope_id();
|
|
16173
16188
|
branch_pick_default({
|
|
16174
16189
|
repo: repo.nameWithOwner,
|
|
16175
16190
|
onPick: _resume(function(branch, isDefault) {
|
|
16176
16191
|
pick(repo.nameWithOwner, isDefault ? void 0 : branch);
|
|
16177
|
-
}, "w11", $
|
|
16192
|
+
}, "w11", $scope7_id),
|
|
16178
16193
|
onError: _resume(function(message) {
|
|
16179
16194
|
branchesFor = null;
|
|
16180
16195
|
input$2.onError?.(message);
|
|
16181
|
-
}, "w12", $
|
|
16196
|
+
}, "w12", $scope7_id)
|
|
16182
16197
|
});
|
|
16183
|
-
_subscribe($si__input_onError && $input_onError__closures, writeScope($
|
|
16198
|
+
_subscribe($si__input_onError && $input_onError__closures, writeScope($scope7_id, {
|
|
16184
16199
|
a: _existing_scope($childScope3),
|
|
16185
|
-
|
|
16200
|
+
Cb1: $si__input_onError && 1
|
|
16186
16201
|
}));
|
|
16187
16202
|
return 0;
|
|
16188
16203
|
}
|
|
16189
|
-
}, $
|
|
16204
|
+
}, $scope6_id, "h", 1, 1, 1, 0, 1);
|
|
16190
16205
|
_html("</li>");
|
|
16191
|
-
_script($
|
|
16192
|
-
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($
|
|
16206
|
+
_script($scope6_id, "w17");
|
|
16207
|
+
_subscribe($branchesFor__closures, _subscribe($highlight__closures, writeScope($scope6_id, {
|
|
16193
16208
|
k: repo?.nameWithOwner,
|
|
16194
16209
|
m: i
|
|
16195
16210
|
})));
|
|
16196
|
-
}, "nameWithOwner", $
|
|
16197
|
-
writeScope($
|
|
16211
|
+
}, "nameWithOwner", $scope5_id, "a", 1, 1, 1, "</ul>", 1);
|
|
16212
|
+
writeScope($scope5_id, {});
|
|
16198
16213
|
return 0;
|
|
16199
16214
|
} else if (filter && catalog && !pasted) {
|
|
16200
|
-
const $
|
|
16201
|
-
_html(`<p${_attr_class("_b5")}>No repos match "${_text_resume($
|
|
16202
|
-
writeScope($
|
|
16215
|
+
const $scope8_id = _scope_id();
|
|
16216
|
+
_html(`<p${_attr_class("_b5")}>No repos match "${_text_resume($scope8_id, "b", filter, 2)}". Paste a clone URL to add any repo.</p>`);
|
|
16217
|
+
writeScope($scope8_id, {});
|
|
16203
16218
|
return 1;
|
|
16204
16219
|
}
|
|
16205
|
-
}, $scope0_id, "
|
|
16220
|
+
}, $scope0_id, "l", 1, 1, 1, 0, 1);
|
|
16206
16221
|
const handle = _resume((action) => {
|
|
16207
16222
|
if (action === "focus") ((inputEl) => inputEl())(_el_read_error)?.focus({ preventScroll: true });
|
|
16208
16223
|
else loadCatalog(true);
|
|
16209
16224
|
}, "w1", $scope0_id);
|
|
16210
|
-
_html(`</div>${_el_resume($scope0_id, "
|
|
16225
|
+
_html(`</div>${_el_resume($scope0_id, "i")}</div>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
16211
16226
|
const $return = handle;
|
|
16212
16227
|
_script($scope0_id, "w18");
|
|
16213
16228
|
_script($scope0_id, "w19");
|
|
16214
16229
|
writeScope($scope0_id, {
|
|
16215
|
-
|
|
16216
|
-
|
|
16217
|
-
|
|
16218
|
-
|
|
16219
|
-
|
|
16220
|
-
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
z:
|
|
16224
|
-
|
|
16225
|
-
|
|
16226
|
-
|
|
16227
|
-
|
|
16228
|
-
|
|
16229
|
-
|
|
16230
|
-
a9:
|
|
16231
|
-
|
|
16232
|
-
|
|
16233
|
-
|
|
16234
|
-
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
|
|
16238
|
-
|
|
16239
|
-
|
|
16240
|
-
|
|
16241
|
-
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
b5: $
|
|
16230
|
+
o: _serialize_if($scope0_reason, 5) && input$2.refreshing,
|
|
16231
|
+
p: _serialize_if($scope0_reason, 4) && input$2.refreshingChange,
|
|
16232
|
+
r: input$2.onError,
|
|
16233
|
+
s: input$2.exclude,
|
|
16234
|
+
t: input$2.onPick,
|
|
16235
|
+
v: input$2.open,
|
|
16236
|
+
w: input$2.pinned,
|
|
16237
|
+
x: $si__input_compact__OR__input_action && input$2.action,
|
|
16238
|
+
z: input$2.onClose,
|
|
16239
|
+
a2: catalog,
|
|
16240
|
+
a3: catalog?.repos,
|
|
16241
|
+
a5: catalog?.sso,
|
|
16242
|
+
a6: filter,
|
|
16243
|
+
a7: highlight,
|
|
16244
|
+
a8: loadCatalog,
|
|
16245
|
+
a9: excluded,
|
|
16246
|
+
ac: results,
|
|
16247
|
+
ad: results?.length,
|
|
16248
|
+
ae: pasted,
|
|
16249
|
+
ai: pastedForkable,
|
|
16250
|
+
aj: branchesFor,
|
|
16251
|
+
al: pasteWillFork,
|
|
16252
|
+
am: pick,
|
|
16253
|
+
an: pastedFork,
|
|
16254
|
+
ao: toggleBranches,
|
|
16255
|
+
ap: compact,
|
|
16256
|
+
as: ssoIgnoreTick,
|
|
16257
|
+
av: ssoPending?.length,
|
|
16258
|
+
ay: _serialize_if($scope0_reason, 2) && hasBody,
|
|
16259
|
+
a1: input$2.refreshingChange || void 0,
|
|
16260
|
+
b6: $si__input_onError && $loadCatalog2__closures,
|
|
16261
|
+
bc: $ssoPending__closures,
|
|
16262
|
+
b8: $pasted__closures,
|
|
16263
|
+
bb: $pasteWillFork__closures,
|
|
16264
|
+
b1: $si__input_onError && $input_onError__closures,
|
|
16265
|
+
b5: $highlight__closures,
|
|
16266
|
+
ba: $branchesFor__closures
|
|
16251
16267
|
});
|
|
16252
16268
|
_resume_branch($scope0_id);
|
|
16253
16269
|
return $return;
|
|
@@ -16417,7 +16433,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16417
16433
|
setTimeout(() => loadProcs(void 0), 500);
|
|
16418
16434
|
}, "r10", $scope0_id);
|
|
16419
16435
|
const titleId = _id();
|
|
16420
|
-
_html(`<div${_attr_class("
|
|
16436
|
+
_html(`<div${_attr_class("_cv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_cw")}><div${_attr_class("_cx")}>`);
|
|
16421
16437
|
_set_serialize_reason(30);
|
|
16422
16438
|
const $childScope = _peek_scope_id();
|
|
16423
16439
|
page_head_default({
|
|
@@ -16430,7 +16446,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16430
16446
|
meta: attrTag({ content: _content("r20", () => {
|
|
16431
16447
|
_scope_reason();
|
|
16432
16448
|
const $scope13_id = _scope_id();
|
|
16433
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
16449
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_fy")}>${_text_resume($scope13_id, "c", ws.name)}</span>`);
|
|
16434
16450
|
_if(() => {
|
|
16435
16451
|
if (ws.status !== "active") {
|
|
16436
16452
|
const $scope17_id = _scope_id();
|
|
@@ -16439,7 +16455,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16439
16455
|
return 0;
|
|
16440
16456
|
}
|
|
16441
16457
|
}, $scope13_id, "d", 1, 1, 1, 0, 1);
|
|
16442
|
-
_html(`<span${_attr_class("
|
|
16458
|
+
_html(`<span${_attr_class("_fz")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_text_resume($scope13_id, "g", ws.display_path || ws.path)}</span></span>${_el_resume($scope13_id, "a")}`);
|
|
16443
16459
|
_subscribe($ws_status__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, writeScope($scope13_id, {
|
|
16444
16460
|
_: _scope_with_id($scope0_id),
|
|
16445
16461
|
Ccf: 1
|
|
@@ -16524,10 +16540,10 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16524
16540
|
return 0;
|
|
16525
16541
|
}
|
|
16526
16542
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
16527
|
-
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "
|
|
16543
|
+
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Repos</h2><span${_attr_class(sectionCount)}>${_text_resume($scope0_id, "k", ws.repos.length)}</span><div${_attr_class("_z")}></div><button${_attr_class([iconBtnRow, "_fP"])} title="Add repo" aria-label="Add repo"${_attr("hidden", addingRepo)}>`);
|
|
16528
16544
|
icon_plus_default({ size: 16 });
|
|
16529
16545
|
_html(`</button>${_el_resume($scope0_id, "m")}`);
|
|
16530
|
-
_set_serialize_reason(
|
|
16546
|
+
_set_serialize_reason(26);
|
|
16531
16547
|
const $childScope2 = _peek_scope_id();
|
|
16532
16548
|
let refreshCatalog = repo_picker_default({
|
|
16533
16549
|
compact: true,
|
|
@@ -16640,14 +16656,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16640
16656
|
_for_of(allSkills, ({ s, linked }) => {
|
|
16641
16657
|
const $scope3_id = _scope_id();
|
|
16642
16658
|
const isBusy = skillBusy.has(s.id);
|
|
16643
|
-
_html(`<li${_attr_class([skillRow, { ["
|
|
16659
|
+
_html(`<li${_attr_class([skillRow, { ["_fH"]: !linked }])}><span${_attr_class("_fJ")}><span${_attr_class(["_y", skillName])}>${_text_resume($scope3_id, "d", s.name)}</span>`);
|
|
16644
16660
|
_if(() => {
|
|
16645
16661
|
if (s.worktree && !s.broken) {
|
|
16646
16662
|
const $scope26_id = _scope_id();
|
|
16647
16663
|
_html(`<span${_attr_class([
|
|
16648
16664
|
"_N",
|
|
16649
16665
|
"_y",
|
|
16650
|
-
"
|
|
16666
|
+
"_fK"
|
|
16651
16667
|
])}${linked ? _attr("title", `Linked from ${s.worktree}/ in this workspace`) : _attr("title", `Ships in ${s.worktree}/ — not linked into this workspace yet`)}>${_text_resume($scope26_id, "b", s.worktree)}/</span>${_el_resume($scope26_id, "a")}`);
|
|
16652
16668
|
writeScope($scope26_id, {});
|
|
16653
16669
|
return 0;
|
|
@@ -16702,7 +16718,7 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16702
16718
|
"_b4",
|
|
16703
16719
|
"_8",
|
|
16704
16720
|
"_9",
|
|
16705
|
-
"
|
|
16721
|
+
"_fN",
|
|
16706
16722
|
{ ["_s"]: confirmingSkill === s.id }
|
|
16707
16723
|
])} type=button${_attr("disabled", isBusy)}${isBusy ? " aria-busy=true" : ""}${confirmingSkill === s.id ? _attr("title", `Remove ${s.name} from this workspace?`) : s.linked ? _attr("title", `Stop using ${s.name} here`) : _attr("title", `Remove ${s.name}`)}>`);
|
|
16708
16724
|
_if(() => {
|
|
@@ -16755,17 +16771,17 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16755
16771
|
_html(`<section${_attr_class("_bU")}><div${_attr_class("_bV")}><h2${_attr_class("_b8")}>Running</h2><span${_attr_class(sectionCount)}>${_text_resume($scope15_id, "e", running.length)}</span></div><ul${_attr_class(list$2)}>`);
|
|
16756
16772
|
_for_of(running, (p) => {
|
|
16757
16773
|
const $scope16_id = _scope_id();
|
|
16758
|
-
_html(`<li${_attr_class("
|
|
16774
|
+
_html(`<li${_attr_class("_fB")}${_attr("title", `${p.cmd} ${p.args}`.trim())}><span${_attr_class(["_y", "_fC"])}>${_text_resume($scope16_id, "c", p.cmd)}</span><span${_attr_class(["_y", "_fD"])}>${_text_resume($scope16_id, "e", p.args)}</span><span${_attr_class("_fE")}>`);
|
|
16759
16775
|
_for_of(p.ports, (port) => {
|
|
16760
16776
|
const $scope34_id = _scope_id();
|
|
16761
16777
|
_html(`<button${_attr_class(["_u", "_K"])}${_attr("title", `Open port ${port}`)}>:${_text_resume($scope34_id, "b", port, 2)}</button>${_el_resume($scope34_id, "a")}`);
|
|
16762
16778
|
_script($scope34_id, "r27");
|
|
16763
16779
|
writeScope($scope34_id, { d: port });
|
|
16764
16780
|
}, (x) => String(x), $scope16_id, "g", 1, 1, 1, 0, 1);
|
|
16765
|
-
_html(`<span${_attr_class(["_y", "
|
|
16781
|
+
_html(`<span${_attr_class(["_y", "_fF"])}>${_text_resume($scope16_id, "i", p.pid)}</span><button${_attr_class([
|
|
16766
16782
|
"_b4",
|
|
16767
16783
|
"_8",
|
|
16768
|
-
"
|
|
16784
|
+
"_fO"
|
|
16769
16785
|
])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
16770
16786
|
icon_xmark_default({ size: 14 });
|
|
16771
16787
|
_html(`</button>${_el_resume($scope16_id, "j")}</span></li>${_el_resume($scope16_id, "a")}`);
|
|
@@ -16846,14 +16862,14 @@ var manage_workspace_default = _template("r", (input) => {
|
|
|
16846
16862
|
});
|
|
16847
16863
|
_resume_branch($scope0_id);
|
|
16848
16864
|
});
|
|
16849
|
-
var curRepos = "
|
|
16850
|
-
var curRow = "
|
|
16851
|
-
var curEmpty = "
|
|
16852
|
-
var curBase = "
|
|
16853
|
-
var archived = "
|
|
16854
|
-
var archivedHint = "
|
|
16855
|
-
var archivedList = "
|
|
16856
|
-
var archivedRow = "
|
|
16865
|
+
var curRepos = "_cQ _bZ _cD _cO";
|
|
16866
|
+
var curRow = "_eY _cR _cP";
|
|
16867
|
+
var curEmpty = "_e0 _b5";
|
|
16868
|
+
var curBase = "_e3 _Y _X";
|
|
16869
|
+
var archived = "_e8 _bU";
|
|
16870
|
+
var archivedHint = "_e9 _X";
|
|
16871
|
+
var archivedList = "_cQ _bZ _cD _cO";
|
|
16872
|
+
var archivedRow = "_e_ _cR _cP";
|
|
16857
16873
|
//#endregion
|
|
16858
16874
|
//#region src/tags/icons/icon-group.marko
|
|
16859
16875
|
var icon_group_default = _template("fb", (input) => {
|
|
@@ -16873,8 +16889,8 @@ var icon_group_default = _template("fb", (input) => {
|
|
|
16873
16889
|
});
|
|
16874
16890
|
//#endregion
|
|
16875
16891
|
//#region src/tags/join-dialog.css.ts
|
|
16876
|
-
var dlg = "
|
|
16877
|
-
var hint = "
|
|
16892
|
+
var dlg = "_hv _g9";
|
|
16893
|
+
var hint = "_hw _X";
|
|
16878
16894
|
//#endregion
|
|
16879
16895
|
//#region src/tags/join-dialog.marko
|
|
16880
16896
|
var api$3;
|
|
@@ -17003,26 +17019,26 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17003
17019
|
content: _content("o12", () => {
|
|
17004
17020
|
_scope_reason();
|
|
17005
17021
|
const $scope1_id = _scope_id();
|
|
17006
|
-
_html(`<h2${_attr_class("
|
|
17022
|
+
_html(`<h2${_attr_class("_g_")}${_attr("id", titleId)}>Join a workspace</h2><p${_attr_class(hint)}>Paste an invite: the same repos, on your own lane of their branch.</p><textarea${_attr_class([
|
|
17007
17023
|
"_Z",
|
|
17008
17024
|
"_y",
|
|
17009
|
-
"
|
|
17025
|
+
"_hy"
|
|
17010
17026
|
])} placeholder="{ "name": …, "branch": …, "repos": ["owner/name", …] }" aria-label="Workspace invite" rows=6 autocomplete=off spellcheck=false${_attr("disabled", busy)} autofocus>${_attr_textarea_value($scope1_id, "c", invite, setInvite)}</textarea>${_el_resume($scope1_id, "c")}`);
|
|
17011
17027
|
_if(() => {
|
|
17012
17028
|
if (parsed.error) {
|
|
17013
17029
|
const $scope8_id = _scope_id();
|
|
17014
|
-
_html(`<p${_attr_class([hint, "
|
|
17030
|
+
_html(`<p${_attr_class([hint, "_hx"])}>${_text_resume($scope8_id, "b", parsed.error)}</p>`);
|
|
17015
17031
|
_subscribe($parsed_error__closures, writeScope($scope8_id, { Cag: 1 }));
|
|
17016
17032
|
return 0;
|
|
17017
17033
|
} else if (parsed.ok) {
|
|
17018
17034
|
const $scope3_id = _scope_id();
|
|
17019
|
-
_html(`<ul${_attr_class("
|
|
17035
|
+
_html(`<ul${_attr_class("_hz")}>`);
|
|
17020
17036
|
_for_of(parsed.ok.repos, (fullName) => {
|
|
17021
17037
|
const $scope9_id = _scope_id();
|
|
17022
|
-
_html(`<li${_attr_class("
|
|
17038
|
+
_html(`<li${_attr_class("_hA")}><span${_attr_class("_hB")}>${_text_resume($scope9_id, "c", repoLabel(fullName))}</span></li>`);
|
|
17023
17039
|
writeScope($scope9_id, {});
|
|
17024
17040
|
}, (r) => r, $scope3_id, "a", 1, 1, 1, "</ul>", 1);
|
|
17025
|
-
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("
|
|
17041
|
+
_html(`<p${_attr_class(hint)}>Your own lane of <span${_attr_class("_y")}>${_text_resume($scope3_id, "d", parsed.ok.branch)}</span> in each; PRs target theirs.</p><label${_attr_class("_hC")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope3_id, "g", name, _resume((_new_name) => {
|
|
17026
17042
|
name = _new_name;
|
|
17027
17043
|
}, "o1", $scope3_id))}${_attr_class("_Z")}${_attr("placeholder", parsed.ok.name)}${_attr("disabled", busy)}>${_el_resume($scope3_id, "g")}</label>`);
|
|
17028
17044
|
_script($scope3_id, "o8");
|
|
@@ -17059,10 +17075,10 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17059
17075
|
_if(() => {
|
|
17060
17076
|
if (busy && steps$2.length) {
|
|
17061
17077
|
const $scope6_id = _scope_id();
|
|
17062
|
-
_html(`<ul${_attr_class("
|
|
17078
|
+
_html(`<ul${_attr_class("_hD")}>`);
|
|
17063
17079
|
_for_of(steps$2, (step$2, i) => {
|
|
17064
17080
|
const $scope7_id = _scope_id();
|
|
17065
|
-
_html(`<li${_attr_class(["
|
|
17081
|
+
_html(`<li${_attr_class(["_hF", { ["_hE"]: i === steps$2.length - 1 }])}>`);
|
|
17066
17082
|
_if(() => {
|
|
17067
17083
|
if (i === steps$2.length - 1) {
|
|
17068
17084
|
const $scope10_id = _scope_id();
|
|
@@ -17071,7 +17087,7 @@ var join_dialog_default = _template("o", (input) => {
|
|
|
17071
17087
|
return 0;
|
|
17072
17088
|
} else {
|
|
17073
17089
|
const $scope11_id = _scope_id();
|
|
17074
|
-
_html(`<span${_attr_class("
|
|
17090
|
+
_html(`<span${_attr_class("_hG")}>`);
|
|
17075
17091
|
icon_check_default({ size: 14 });
|
|
17076
17092
|
_html("</span>");
|
|
17077
17093
|
writeScope($scope11_id, {});
|
|
@@ -17137,6 +17153,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17137
17153
|
const $scope0_id = _scope_id();
|
|
17138
17154
|
const $busy__closures = /* @__PURE__ */ new Set();
|
|
17139
17155
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
17156
|
+
const $catalogRefreshing__closures = /* @__PURE__ */ new Set();
|
|
17140
17157
|
const $steps_length__closures = /* @__PURE__ */ new Set();
|
|
17141
17158
|
const $restoring__closures = /* @__PURE__ */ new Set();
|
|
17142
17159
|
let name = "";
|
|
@@ -17228,7 +17245,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17228
17245
|
}
|
|
17229
17246
|
}, "t6", $scope0_id);
|
|
17230
17247
|
const titleId = _id();
|
|
17231
|
-
_html(`<div${_attr_class("
|
|
17248
|
+
_html(`<div${_attr_class("_cv")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_cw")}><div${_attr_class("_cx")}>`);
|
|
17232
17249
|
_set_serialize_reason({
|
|
17233
17250
|
0: _serialize_guard($scope0_reason, 2),
|
|
17234
17251
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -17277,23 +17294,16 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17277
17294
|
return 0;
|
|
17278
17295
|
}
|
|
17279
17296
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
17280
|
-
_html(`<label${_attr_class("
|
|
17297
|
+
_html(`<label${_attr_class("_eU")}><span${_attr_class("_b8")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
17281
17298
|
name = _new_name;
|
|
17282
|
-
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bU")}><div${_attr_class("
|
|
17283
|
-
_set_serialize_reason(1);
|
|
17284
|
-
const $childScope2 = _peek_scope_id();
|
|
17285
|
-
icon_refresh_default({
|
|
17286
|
-
size: 14,
|
|
17287
|
-
class: catalogRefreshing && "_F"
|
|
17288
|
-
});
|
|
17289
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class(curRepos)}>`);
|
|
17299
|
+
}, "t0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class("_bU")}><div${_attr_class("_eW")}><h2${_attr_class("_b8")}>Repos</h2></div><ul${_attr_class(curRepos)}>`);
|
|
17290
17300
|
_for_of(selected, (repo) => {
|
|
17291
17301
|
const $scope4_id = _scope_id();
|
|
17292
|
-
_html(`<li${_attr_class("
|
|
17302
|
+
_html(`<li${_attr_class("_eX")}><div${_attr_class(curRow)}><span${_attr_class("_e1")}>${_text_resume($scope4_id, "d", repoLabel(repo.fullName))}</span>`);
|
|
17293
17303
|
_if(() => {
|
|
17294
17304
|
if (repo.fork !== void 0) {
|
|
17295
17305
|
const $scope5_id = _scope_id();
|
|
17296
|
-
_html(`<button${_attr_class(["
|
|
17306
|
+
_html(`<button${_attr_class(["_e4", { ["_e2"]: repo.fork }])}${repo.fork ? _attr("title", `${repo.fullName} will be forked to your account; click to clone as-is instead`) : _attr("title", `Fork ${repo.fullName} to your account and clone the fork`)} aria-pressed=${repo.fork ? "true" : "false"}${_attr("disabled", busy)}>`);
|
|
17297
17307
|
_if(() => {
|
|
17298
17308
|
if (repo.fork) {
|
|
17299
17309
|
const $scope14_id = _scope_id();
|
|
@@ -17309,14 +17319,14 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17309
17319
|
}
|
|
17310
17320
|
}, $scope5_id, "a", 1, 1, 1, "</button>");
|
|
17311
17321
|
_script($scope5_id, "t18");
|
|
17312
|
-
_subscribe($busy__closures, writeScope($scope5_id, {
|
|
17322
|
+
_subscribe($busy__closures, writeScope($scope5_id, { Cay: 1 }));
|
|
17313
17323
|
return 0;
|
|
17314
17324
|
}
|
|
17315
17325
|
}, $scope4_id, "e", 1, 1, 1, 0, 1);
|
|
17316
17326
|
_html(`<button${_attr_class([
|
|
17317
17327
|
curBase,
|
|
17318
17328
|
"_y",
|
|
17319
|
-
{ ["
|
|
17329
|
+
{ ["_e2"]: branchesFor === repo.fullName }
|
|
17320
17330
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
17321
17331
|
icon_branch_default({ size: 12 });
|
|
17322
17332
|
_html(`${_text_resume($scope4_id, "h", repo.baseBranch ? `${_to_text(" ")}${_to_text(repo.baseBranch)}` : "")}</button>${_el_resume($scope4_id, "f")}<button${_attr_class([iconBtnXs, "_8"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
@@ -17325,8 +17335,8 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17325
17335
|
_if(() => {
|
|
17326
17336
|
if (branchesFor === repo.fullName) {
|
|
17327
17337
|
const $scope10_id = _scope_id();
|
|
17328
|
-
_html(`<div${_attr_class("
|
|
17329
|
-
const $
|
|
17338
|
+
_html(`<div${_attr_class("_eZ")}>`);
|
|
17339
|
+
const $childScope2 = _peek_scope_id();
|
|
17330
17340
|
branch_pick_default({
|
|
17331
17341
|
repo: repo.fullName,
|
|
17332
17342
|
current: repo.baseBranch,
|
|
@@ -17339,7 +17349,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17339
17349
|
}, "t10", $scope10_id)
|
|
17340
17350
|
});
|
|
17341
17351
|
_html("</div>");
|
|
17342
|
-
writeScope($scope10_id, { b: _existing_scope($
|
|
17352
|
+
writeScope($scope10_id, { b: _existing_scope($childScope2) });
|
|
17343
17353
|
return 0;
|
|
17344
17354
|
}
|
|
17345
17355
|
}, $scope4_id, "k", 1, 1, 1, 0, 1);
|
|
@@ -17350,7 +17360,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17350
17360
|
p: repo?.fork,
|
|
17351
17361
|
q: repo?.baseBranch
|
|
17352
17362
|
});
|
|
17353
|
-
}, "fullName", $scope0_id, "
|
|
17363
|
+
}, "fullName", $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
17354
17364
|
_if(() => {
|
|
17355
17365
|
if (!selected.length) {
|
|
17356
17366
|
const $scope16_id = _scope_id();
|
|
@@ -17358,7 +17368,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17358
17368
|
writeScope($scope16_id, {});
|
|
17359
17369
|
return 0;
|
|
17360
17370
|
}
|
|
17361
|
-
}, $scope0_id, "
|
|
17371
|
+
}, $scope0_id, "n", 1, 1, 1, 0, 1);
|
|
17362
17372
|
_html("</ul>");
|
|
17363
17373
|
const $childScope4 = _peek_scope_id();
|
|
17364
17374
|
let refreshCatalog = repo_picker_default({
|
|
@@ -17372,17 +17382,35 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17372
17382
|
}, "t12", $scope0_id),
|
|
17373
17383
|
refreshingChange: function(v) {
|
|
17374
17384
|
catalogRefreshing = v;
|
|
17375
|
-
}
|
|
17385
|
+
},
|
|
17386
|
+
action: attrTag({ content: _content("t21", () => {
|
|
17387
|
+
_scope_reason();
|
|
17388
|
+
const $scope2_id = _scope_id();
|
|
17389
|
+
_html(`<button${_attr_class([iconBtnRow, "_eV"])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
17390
|
+
_set_serialize_reason(1);
|
|
17391
|
+
const $childScope3 = _peek_scope_id();
|
|
17392
|
+
icon_refresh_default({
|
|
17393
|
+
size: 14,
|
|
17394
|
+
class: catalogRefreshing && "_F"
|
|
17395
|
+
});
|
|
17396
|
+
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
17397
|
+
_script($scope2_id, "t20");
|
|
17398
|
+
_subscribe($catalogRefreshing__closures, writeScope($scope2_id, {
|
|
17399
|
+
_: _scope_with_id($scope0_id),
|
|
17400
|
+
b: _existing_scope($childScope3)
|
|
17401
|
+
}));
|
|
17402
|
+
_resume_branch($scope2_id);
|
|
17403
|
+
}, $scope0_id) })
|
|
17376
17404
|
});
|
|
17377
|
-
_var($scope0_id, "
|
|
17405
|
+
_var($scope0_id, "p", $childScope4, "t22");
|
|
17378
17406
|
_html("</section>");
|
|
17379
17407
|
_if(() => {
|
|
17380
17408
|
if (busy && steps.length) {
|
|
17381
17409
|
const $scope11_id = _scope_id();
|
|
17382
|
-
_html(`<ul${_attr_class("
|
|
17410
|
+
_html(`<ul${_attr_class("_e5")}>`);
|
|
17383
17411
|
_for_of(steps, (step, i) => {
|
|
17384
17412
|
const $scope12_id = _scope_id();
|
|
17385
|
-
_html(`<li${_attr_class(["
|
|
17413
|
+
_html(`<li${_attr_class(["_fa", { ["_e6"]: i === steps.length - 1 }])}>`);
|
|
17386
17414
|
_if(() => {
|
|
17387
17415
|
if (i === steps.length - 1) {
|
|
17388
17416
|
const $scope17_id = _scope_id();
|
|
@@ -17391,7 +17419,7 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17391
17419
|
return 0;
|
|
17392
17420
|
} else {
|
|
17393
17421
|
const $scope18_id = _scope_id();
|
|
17394
|
-
_html(`<span${_attr_class("
|
|
17422
|
+
_html(`<span${_attr_class("_e7")}>`);
|
|
17395
17423
|
icon_check_default({ size: 14 });
|
|
17396
17424
|
_html("</span>");
|
|
17397
17425
|
writeScope($scope18_id, {});
|
|
@@ -17404,26 +17432,16 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17404
17432
|
writeScope($scope11_id, {});
|
|
17405
17433
|
return 0;
|
|
17406
17434
|
}
|
|
17407
|
-
}, $scope0_id, "
|
|
17408
|
-
_html(`<div${_attr_class("
|
|
17409
|
-
_if(() => {
|
|
17410
|
-
if (input.onExit || busy) {
|
|
17411
|
-
const $scope1_id = _scope_id();
|
|
17412
|
-
_html(`<button type=button${_attr_class(btnLg)}${_attr("disabled", !!restoring)}>Cancel</button>${_el_resume($scope1_id, "a")}`);
|
|
17413
|
-
_script($scope1_id, "t21");
|
|
17414
|
-
writeScope($scope1_id, {});
|
|
17415
|
-
return 0;
|
|
17416
|
-
}
|
|
17417
|
-
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
17418
|
-
_html(`<button type=button${_attr_class([
|
|
17435
|
+
}, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
17436
|
+
_html(`<div${_attr_class("_eS")}><button type=button${_attr_class([
|
|
17419
17437
|
btnLg,
|
|
17420
17438
|
"_r",
|
|
17421
|
-
"
|
|
17422
|
-
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "
|
|
17439
|
+
"_eT"
|
|
17440
|
+
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${_text_resume($scope0_id, "t", busy ? "Creating…" : "Create workspace")}</button>${_el_resume($scope0_id, "s")}</div>`);
|
|
17423
17441
|
_if(() => {
|
|
17424
17442
|
if (archived$1.length) {
|
|
17425
17443
|
const $scope6_id = _scope_id();
|
|
17426
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
17444
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_eW")}><h2${_attr_class("_b8")}>Archived</h2><span${_attr_class(sectionCount)}>${_text_resume($scope6_id, "e", archived$1.length, $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class(archivedList)}>`);
|
|
17427
17445
|
_for_of(archived$1, (ws) => {
|
|
17428
17446
|
const $scope7_id = _scope_id();
|
|
17429
17447
|
_html(`<li${_attr_class(archivedRow)}><div${_attr_class("_b0")}><span${_attr_class("_b1")}>${_text_resume($scope7_id, "d", ws.name, $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_y"])}${_attr("title", ws.display_path || ws.path)}>${_text_resume($scope7_id, "f", ws.display_path || ws.path, $sg__input_workspaces)}</span>${_el_resume($scope7_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnSm)}${_attr("disabled", busy || !!restoring)}>`);
|
|
@@ -17441,68 +17459,68 @@ var new_workspace_default = _template("t", (input) => {
|
|
|
17441
17459
|
}
|
|
17442
17460
|
}, $scope7_id, "g", 1, 1, 1, "</button>");
|
|
17443
17461
|
_html("</li>");
|
|
17444
|
-
_script($scope7_id, "
|
|
17462
|
+
_script($scope7_id, "t23");
|
|
17445
17463
|
_subscribe($restoring__closures, _subscribe($busy__closures, writeScope($scope7_id, {
|
|
17446
17464
|
j: ws,
|
|
17447
17465
|
o: ws?.id,
|
|
17448
17466
|
_: _scope_with_id($scope6_id),
|
|
17449
|
-
|
|
17467
|
+
Cay: 2
|
|
17450
17468
|
})));
|
|
17451
17469
|
}, "id", $scope6_id, "g", $sg__input_workspaces, $sg__input_workspaces, $sg__input_workspaces, "</ul>", 1);
|
|
17452
17470
|
_html("</section>");
|
|
17453
17471
|
writeScope($scope6_id, { _: _scope_with_id($scope0_id) });
|
|
17454
17472
|
return 0;
|
|
17455
17473
|
}
|
|
17456
|
-
}, $scope0_id, "
|
|
17474
|
+
}, $scope0_id, "u", $sg__input_workspaces, $sg__input_workspaces, 1, 0, 1);
|
|
17457
17475
|
_html("</div></div>");
|
|
17458
17476
|
_if(() => {
|
|
17459
17477
|
if (joinOpen) {
|
|
17460
|
-
const $
|
|
17478
|
+
const $scope1_id = _scope_id();
|
|
17461
17479
|
_set_serialize_reason(2);
|
|
17462
17480
|
const $childScope5 = _peek_scope_id();
|
|
17463
17481
|
join_dialog_default({
|
|
17464
17482
|
open: joinOpen,
|
|
17465
17483
|
openChange: _resume((_new_joinOpen) => {
|
|
17466
17484
|
joinOpen = _new_joinOpen;
|
|
17467
|
-
}, "t13", $
|
|
17485
|
+
}, "t13", $scope1_id),
|
|
17468
17486
|
onJoin: input.onCreate
|
|
17469
17487
|
});
|
|
17470
|
-
writeScope($
|
|
17488
|
+
writeScope($scope1_id, { a: _existing_scope($childScope5) });
|
|
17471
17489
|
return 0;
|
|
17472
17490
|
}
|
|
17473
|
-
}, $scope0_id, "
|
|
17491
|
+
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
17474
17492
|
_html("</div>");
|
|
17475
|
-
_script($scope0_id, "
|
|
17493
|
+
_script($scope0_id, "t24");
|
|
17476
17494
|
writeScope($scope0_id, {
|
|
17477
|
-
|
|
17478
|
-
|
|
17479
|
-
|
|
17480
|
-
|
|
17481
|
-
|
|
17482
|
-
|
|
17483
|
-
|
|
17484
|
-
|
|
17485
|
-
|
|
17486
|
-
|
|
17487
|
-
|
|
17488
|
-
|
|
17489
|
-
|
|
17490
|
-
|
|
17491
|
-
|
|
17492
|
-
|
|
17493
|
-
|
|
17494
|
-
|
|
17495
|
-
|
|
17496
|
-
|
|
17497
|
-
|
|
17498
|
-
|
|
17499
|
-
|
|
17495
|
+
z: input.onRestore,
|
|
17496
|
+
a0: input.onCreate,
|
|
17497
|
+
a2: input.onExit,
|
|
17498
|
+
a3: name,
|
|
17499
|
+
a5: joinOpen,
|
|
17500
|
+
a6: selected,
|
|
17501
|
+
a8: busy,
|
|
17502
|
+
a9: restoring,
|
|
17503
|
+
ac: error,
|
|
17504
|
+
ad: steps,
|
|
17505
|
+
ae: steps?.length,
|
|
17506
|
+
ag: $si__input_workspaces && archived$1,
|
|
17507
|
+
ah: $si__input_workspaces && archived$1?.length,
|
|
17508
|
+
ai: addRepo,
|
|
17509
|
+
aj: branchesFor,
|
|
17510
|
+
al: removeRepo,
|
|
17511
|
+
am: toggleFork,
|
|
17512
|
+
an: setBranch,
|
|
17513
|
+
ao: restore,
|
|
17514
|
+
aq: createGen.n,
|
|
17515
|
+
as: create,
|
|
17516
|
+
au: refreshCatalog,
|
|
17517
|
+
ay: $busy__closures,
|
|
17500
17518
|
d: _serialize_if($scope0_reason, 0) && _existing_scope($childScope),
|
|
17501
|
-
|
|
17502
|
-
|
|
17503
|
-
|
|
17504
|
-
|
|
17505
|
-
|
|
17519
|
+
b0: $error__closures,
|
|
17520
|
+
aw: $catalogRefreshing__closures,
|
|
17521
|
+
o: _existing_scope($childScope4),
|
|
17522
|
+
b2: $steps_length__closures,
|
|
17523
|
+
az: $restoring__closures
|
|
17506
17524
|
});
|
|
17507
17525
|
_resume_branch($scope0_id);
|
|
17508
17526
|
});
|
|
@@ -17542,19 +17560,19 @@ var term_find_default = _template("E", (input) => {
|
|
|
17542
17560
|
const canStep = hasQuery && open;
|
|
17543
17561
|
const keybar = input.placement === "keybar";
|
|
17544
17562
|
_html(`<div${_attr_class([
|
|
17545
|
-
"
|
|
17546
|
-
keybar ? "
|
|
17547
|
-
!open && "
|
|
17548
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
17563
|
+
"_eA",
|
|
17564
|
+
keybar ? "_eC" : "_eB",
|
|
17565
|
+
!open && "_eE"
|
|
17566
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_ev", keybar ? "_eD" : "_ex"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
17549
17567
|
if (!open) return;
|
|
17550
17568
|
query = v;
|
|
17551
17569
|
live.query = v;
|
|
17552
17570
|
run(0);
|
|
17553
|
-
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
17571
|
+
}, "E1", $scope0_id))}${_attr_class([findInput, keybar && "_eF"])} 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 && "_eG"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17554
17572
|
icon_arrow_up_default({ size: 14 });
|
|
17555
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17573
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_eG"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
17556
17574
|
icon_arrow_down_default({ size: 14 });
|
|
17557
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
17575
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_eG"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
17558
17576
|
icon_xmark_default({ size: 14 });
|
|
17559
17577
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
17560
17578
|
const $return = focusInput;
|
|
@@ -17705,7 +17723,7 @@ var term_default = _template("F", (input) => {
|
|
|
17705
17723
|
}
|
|
17706
17724
|
}, "F9", $scope0_id);
|
|
17707
17725
|
input.keys;
|
|
17708
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
17726
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_eH")}><div${_attr_class("_eI")}></div>${_el_resume($scope0_id, "b")}`);
|
|
17709
17727
|
_if(() => {
|
|
17710
17728
|
if (findOpen) {
|
|
17711
17729
|
const $scope4_id = _scope_id();
|
|
@@ -17732,7 +17750,7 @@ var term_default = _template("F", (input) => {
|
|
|
17732
17750
|
_if(() => {
|
|
17733
17751
|
if (uploading) {
|
|
17734
17752
|
const $scope5_id = _scope_id();
|
|
17735
|
-
_html(`<div${_attr_class("
|
|
17753
|
+
_html(`<div${_attr_class("_eO")}>uploading…</div>`);
|
|
17736
17754
|
writeScope($scope5_id, {});
|
|
17737
17755
|
return 0;
|
|
17738
17756
|
}
|
|
@@ -17740,7 +17758,7 @@ var term_default = _template("F", (input) => {
|
|
|
17740
17758
|
_if(() => {
|
|
17741
17759
|
if (copiedFlash) {
|
|
17742
17760
|
const $scope6_id = _scope_id();
|
|
17743
|
-
_html(`<div${_attr_class("
|
|
17761
|
+
_html(`<div${_attr_class("_eN")}>Copied</div>`);
|
|
17744
17762
|
writeScope($scope6_id, {});
|
|
17745
17763
|
return 0;
|
|
17746
17764
|
}
|
|
@@ -17749,7 +17767,7 @@ var term_default = _template("F", (input) => {
|
|
|
17749
17767
|
_if(() => {
|
|
17750
17768
|
if (trapOpen) {
|
|
17751
17769
|
const $scope3_id = _scope_id();
|
|
17752
|
-
_html(`<div${_attr_class("
|
|
17770
|
+
_html(`<div${_attr_class("_eP")}><div${_attr_class("_eQ")}><p${_attr_class("_eR")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope3_id, "d")}<button${_attr_class("_q")}>Cancel</button>${_el_resume($scope3_id, "e")}</div>${_el_resume($scope3_id, "b")}</div>${_el_resume($scope3_id, "a")}`);
|
|
17753
17771
|
_script($scope3_id, "F16");
|
|
17754
17772
|
_script($scope3_id, "F17");
|
|
17755
17773
|
writeScope($scope3_id, {});
|
|
@@ -18348,8 +18366,8 @@ _template("tb", (input) => {
|
|
|
18348
18366
|
});
|
|
18349
18367
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
18350
18368
|
});
|
|
18351
|
-
var sessOpen = "
|
|
18352
|
-
var sessRename = "
|
|
18369
|
+
var sessOpen = "_ek _I";
|
|
18370
|
+
var sessRename = "_eo _J";
|
|
18353
18371
|
//#endregion
|
|
18354
18372
|
//#region src/tags/key-bar-sessions.marko
|
|
18355
18373
|
var usageFor;
|
|
@@ -18380,7 +18398,7 @@ _template("p", (input) => {
|
|
|
18380
18398
|
popEl.style.top = `${Math.max(8, btn.top - popEl.offsetHeight - 8)}px`;
|
|
18381
18399
|
popEl.style.left = `${Math.max(8, Math.min(btn.left + btn.width / 2 - popEl.offsetWidth / 2, window.innerWidth - popEl.offsetWidth - 8))}px`;
|
|
18382
18400
|
}, "p2", $scope0_id);
|
|
18383
|
-
_html(`<button${_attr_class([kbtn, "
|
|
18401
|
+
_html(`<button${_attr_class([kbtn, "_eg"])} title=${input.onTermPage ? "Sessions" : "\"Back to session\""}${input.onTermPage ? _attr("popovertarget", popId) : ""}>`);
|
|
18384
18402
|
_set_serialize_reason({
|
|
18385
18403
|
1: $sg__input_sessions__OR__input_sessionId,
|
|
18386
18404
|
2: $sg__input_sessions__OR__input_sessionId
|
|
@@ -18394,12 +18412,12 @@ _template("p", (input) => {
|
|
|
18394
18412
|
"_A",
|
|
18395
18413
|
"_bc",
|
|
18396
18414
|
phase[sessionPhase(current$2?.state)]
|
|
18397
|
-
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "
|
|
18415
|
+
])}></span>${_el_resume($scope0_id, "c", $sg__input_sessions__OR__input_sessionId)}</button>${_el_resume($scope0_id, "a")}<div${_attr("id", popId)} popover=auto${_attr_class(["__", "_eh"])}>`);
|
|
18398
18416
|
_for_of(input.sessions, (s) => {
|
|
18399
18417
|
const $scope1_id = _scope_id();
|
|
18400
18418
|
const $for_content__s_agent__closures = /* @__PURE__ */ new Set();
|
|
18401
18419
|
const $for_content__s_id__closures = /* @__PURE__ */ new Set();
|
|
18402
|
-
_html(`<div${_attr_class(["
|
|
18420
|
+
_html(`<div${_attr_class(["_ej", { ["_ei"]: s.id === input.sessionId }])}>`);
|
|
18403
18421
|
_if(() => {
|
|
18404
18422
|
if (renamingId === s.id) {
|
|
18405
18423
|
const $scope5_id = _scope_id();
|
|
@@ -18431,7 +18449,7 @@ _template("p", (input) => {
|
|
|
18431
18449
|
agent: activeAgent(s),
|
|
18432
18450
|
size: 14
|
|
18433
18451
|
});
|
|
18434
|
-
_html(`<span${_attr_class("
|
|
18452
|
+
_html(`<span${_attr_class("_el")}><span${_attr_class("_en")}>${_text_resume($scope2_id, "f", s.title || activeAgent(s), $sg__input_sessions)}</span>`);
|
|
18435
18453
|
_if(() => {
|
|
18436
18454
|
if (s.id === input.sessionId) {
|
|
18437
18455
|
const $scope7_id = _scope_id();
|
|
@@ -18443,7 +18461,7 @@ _template("p", (input) => {
|
|
|
18443
18461
|
const $childScope4 = _peek_scope_id();
|
|
18444
18462
|
usage_pcts_default({
|
|
18445
18463
|
agent: plan,
|
|
18446
|
-
class: "
|
|
18464
|
+
class: "_em"
|
|
18447
18465
|
});
|
|
18448
18466
|
writeScope($scope8_id, { a: _existing_scope($childScope4) });
|
|
18449
18467
|
return 0;
|
|
@@ -18460,7 +18478,7 @@ _template("p", (input) => {
|
|
|
18460
18478
|
_if(() => {
|
|
18461
18479
|
if (input.onRenameSession) {
|
|
18462
18480
|
const $scope6_id = _scope_id();
|
|
18463
|
-
_html(`<button${_attr_class(["
|
|
18481
|
+
_html(`<button${_attr_class(["_ep", "_eq"])} title="Rename session">`);
|
|
18464
18482
|
icon_edit_default({ size: 12 });
|
|
18465
18483
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
18466
18484
|
_script($scope6_id, "p4");
|
|
@@ -18472,7 +18490,7 @@ _template("p", (input) => {
|
|
|
18472
18490
|
if (input.onCloseSession) {
|
|
18473
18491
|
const $scope3_id = _scope_id();
|
|
18474
18492
|
_html(`<button${_attr_class([
|
|
18475
|
-
"
|
|
18493
|
+
"_ep",
|
|
18476
18494
|
"_8",
|
|
18477
18495
|
{ ["_s"]: armedClose === s.id }
|
|
18478
18496
|
])} title=${armedClose === s.id ? "Close?" : "\"Close session\""}>`);
|
|
@@ -18499,7 +18517,7 @@ _template("p", (input) => {
|
|
|
18499
18517
|
k: $si__input_sessions && $for_content__s_id__closures
|
|
18500
18518
|
});
|
|
18501
18519
|
}, "id", $scope0_id, "e", 1, $sg__input_sessions, $sg__input_sessions__OR__input_agents, 0, 1);
|
|
18502
|
-
_html(`<div${_attr_class("
|
|
18520
|
+
_html(`<div${_attr_class("_er")}><span${_attr_class("_es")}>New session</span><div${_attr_class("_et")}>`);
|
|
18503
18521
|
_for_of(["shell", ...input.agents], (agent) => {
|
|
18504
18522
|
const $scope4_id = _scope_id();
|
|
18505
18523
|
_html(`<button${_attr_class(iconBtnRow)}${_attr("title", `New ${agent} session`)}>`);
|
|
@@ -21313,7 +21331,17 @@ var GET$5 = Run.GET(() => {
|
|
|
21313
21331
|
//#region __marko-run__api.workspaces.js
|
|
21314
21332
|
var postHandler$7 = normalizeHandler(Run.POST({ json: CreateWorkspace }, async (ctx) => {
|
|
21315
21333
|
const body = await readBody(ctx);
|
|
21316
|
-
|
|
21334
|
+
const t0 = Date.now();
|
|
21335
|
+
const repos = body.repos.map((r) => r.fullName).join(", ");
|
|
21336
|
+
console.log(`[work] create "${body.name}" (${repos})`);
|
|
21337
|
+
try {
|
|
21338
|
+
const ws = await withProgressOp(body.opId ?? "", () => createWorkspace(body.name, body.repos, { join: body.join }));
|
|
21339
|
+
console.log(`[work] created "${body.name}" as ${ws.id} in ${Date.now() - t0}ms`);
|
|
21340
|
+
return Response.json(ws);
|
|
21341
|
+
} catch (err) {
|
|
21342
|
+
console.warn(`[work] create "${body.name}" failed after ${Date.now() - t0}ms:`, err instanceof Error ? err.message : err);
|
|
21343
|
+
throw err;
|
|
21344
|
+
}
|
|
21317
21345
|
}), "POST");
|
|
21318
21346
|
var getHandler$5 = normalizeHandler(GET$5, "GET");
|
|
21319
21347
|
var get36_options = normalizeOptions("GET", mware11, getHandler$5);
|
|
@@ -27499,4 +27527,4 @@ server.listen(port, () => {
|
|
|
27499
27527
|
//#endregion
|
|
27500
27528
|
export {};
|
|
27501
27529
|
|
|
27502
|
-
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-
|
|
27530
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/icon-arrow-down-CK1qiyoU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-CK1qiyoU.css\"",">",2,"stylesheet#/assets/app-page-C_8cFCmf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C_8cFCmf.css\"",">"],"defer":[2,"/assets/new-DvLxb34o.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DvLxb34o.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/_Uo3NXPui.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Uo3NXPui.js\"",">",2,"modulepreload#/assets/_C91MT5yy.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C91MT5yy.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/icon-arrow-down-CK1qiyoU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-CK1qiyoU.css\"",">",2,"stylesheet#/assets/app-page-C_8cFCmf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C_8cFCmf.css\"",">"],"defer":[2,"/assets/settings-DvLxb34o.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DvLxb34o.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/_Uo3NXPui.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Uo3NXPui.js\"",">",2,"modulepreload#/assets/_C91MT5yy.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C91MT5yy.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/icon-arrow-down-CK1qiyoU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-CK1qiyoU.css\"",">",2,"stylesheet#/assets/app-page-C_8cFCmf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C_8cFCmf.css\"",">"],"defer":[2,"/assets/w-DvLxb34o.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DvLxb34o.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/_Uo3NXPui.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Uo3NXPui.js\"",">",2,"modulepreload#/assets/_C91MT5yy.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C91MT5yy.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/icon-arrow-down-CK1qiyoU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-CK1qiyoU.css\"",">",2,"stylesheet#/assets/app-page-C_8cFCmf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C_8cFCmf.css\"",">"],"defer":[2,"/assets/w._-DvLxb34o.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DvLxb34o.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/_Uo3NXPui.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Uo3NXPui.js\"",">",2,"modulepreload#/assets/_C91MT5yy.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C91MT5yy.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/icon-arrow-down-CK1qiyoU.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/icon-arrow-down-CK1qiyoU.css\"",">",2,"stylesheet#/assets/app-page-C_8cFCmf.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-C_8cFCmf.css\"",">"],"defer":[2,"/assets/w._-I2MUgpxd.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-I2MUgpxd.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/_Uo3NXPui.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_Uo3NXPui.js\"",">",2,"modulepreload#/assets/_C91MT5yy.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_C91MT5yy.js\"",">"]},"_m":{"block":[2,"stylesheet#/assets/diff-view-Bb2JIhMi.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/diff-view-Bb2JIhMi.css\"",">",2,"stylesheet#/assets/icon-arrow-down-CK1qiyoU.css",6,"<link",0," rel=\"stylesheet\" href=\"",1,"assets/icon-arrow-down-CK1qiyoU.css\"",">"],"defer":[2,"/assets/diff-view-D8GrPRg5.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/diff-view-D8GrPRg5.js\"","></script>",2,"modulepreload#/assets/_BOllftHQ.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_BOllftHQ.js\"",">"]}};
|