@dylanpiercey/work 0.0.97 → 0.0.98
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/{_DPT3XRV0.js → _CQgZXJbG.js} +224 -154
- package/dist/{_CRHCebx8.js → _Dc6tTxJq.js} +27 -27
- package/dist/index.mjs +319 -319
- package/dist/public/assets/{_ERnhNh-Y.js → _-tuiGbc-.js} +1 -1
- package/dist/public/assets/_-tuiGbc-.js.br +0 -0
- package/dist/public/assets/{_8tiEU3RO.js → _2fq8NmQD.js} +1 -1
- package/dist/public/assets/_2fq8NmQD.js.br +0 -0
- package/dist/public/assets/{_BZsn-7u1.js → _A0gPg0dM.js} +1 -1
- package/dist/public/assets/_A0gPg0dM.js.br +0 -0
- package/dist/public/assets/{_DyjSeFv1.js → _B2t0Kzqt.js} +1 -1
- package/dist/public/assets/_B2t0Kzqt.js.br +0 -0
- package/dist/public/assets/{_CPeBESzl.js → _B5U6PSkP.js} +1 -1
- package/dist/public/assets/_B5U6PSkP.js.br +0 -0
- package/dist/public/assets/{_DwVknvPD2.js → _B5aGEX-X2.js} +1 -1
- package/dist/public/assets/_B5aGEX-X2.js.br +0 -0
- package/dist/public/assets/{_Skj5Z76l2.js → _B6afBkTT2.js} +1 -1
- package/dist/public/assets/_B6afBkTT2.js.br +0 -0
- package/dist/public/assets/{_Dx_iq98R.js → _B8LZzSK1.js} +1 -1
- package/dist/public/assets/_B8LZzSK1.js.br +0 -0
- package/dist/public/assets/{_BE3R8mFE.js → _B97yBb0l.js} +1 -1
- package/dist/public/assets/_B97yBb0l.js.br +0 -0
- package/dist/public/assets/{_B2AC3SUA.js → _BDnmfHp7.js} +1 -1
- package/dist/public/assets/_BDnmfHp7.js.br +0 -0
- package/dist/public/assets/{_Ka1PvLiD.js → _BPZG-nGh.js} +1 -1
- package/dist/public/assets/_BPZG-nGh.js.br +0 -0
- package/dist/public/assets/{_COSXS0J8.js → _BQHp2hkb.js} +1 -1
- package/dist/public/assets/_BQHp2hkb.js.br +0 -0
- package/dist/public/assets/{_C5xrDvQI2.js → _BT-fEnqx2.js} +1 -1
- package/dist/public/assets/_BT-fEnqx2.js.br +0 -0
- package/dist/public/assets/{_DSX5dMw5.js → _BUFMn4Gx.js} +1 -1
- package/dist/public/assets/_BUFMn4Gx.js.br +0 -0
- package/dist/public/assets/{_Bzp9X35S2.js → _BVCDd7aR2.js} +1 -1
- package/dist/public/assets/_BVCDd7aR2.js.br +0 -0
- package/dist/public/assets/{_DLSsOTkW2.js → _BVy5NPdq2.js} +1 -1
- package/dist/public/assets/{_C2SDF9Yg2.js → _BWC4hGHG2.js} +1 -1
- package/dist/public/assets/{_0KWxGbZw.js → _BXSKPpGJ.js} +1 -1
- package/dist/public/assets/_BXSKPpGJ.js.br +0 -0
- package/dist/public/assets/{_YOqlhSHw2.js → _Baz1XicV2.js} +1 -1
- package/dist/public/assets/_Baz1XicV2.js.br +0 -0
- package/dist/public/assets/{_Bl512FoL.js → _BbDLs84u.js} +1 -1
- package/dist/public/assets/_BbDLs84u.js.br +0 -0
- package/dist/public/assets/{_BP_u4OL-.js → _BcYwVgcu.js} +1 -1
- package/dist/public/assets/_BcYwVgcu.js.br +0 -0
- package/dist/public/assets/{_BIOtkDha2.js → _BervXOMT2.js} +1 -1
- package/dist/public/assets/_BervXOMT2.js.br +0 -0
- package/dist/public/assets/{_BzGLDIBO2.js → _BnJ8gNIR2.js} +1 -1
- package/dist/public/assets/_BnJ8gNIR2.js.br +0 -0
- package/dist/public/assets/{_DaH2ZbUV.js → _BsUV6fEA.js} +1 -1
- package/dist/public/assets/_BsUV6fEA.js.br +0 -0
- package/dist/public/assets/{_D4cKCypW.js → _BtKhlRGM.js} +1 -1
- package/dist/public/assets/_BtKhlRGM.js.br +0 -0
- package/dist/public/assets/{_Bw9jvu1-.js → _BwBdmWbG.js} +1 -1
- package/dist/public/assets/_BwBdmWbG.js.br +0 -0
- package/dist/public/assets/{_XQjM1w_8.js → _BxpxdFjO.js} +1 -1
- package/dist/public/assets/_BxpxdFjO.js.br +0 -0
- package/dist/public/assets/{_tzwJRvKK.js → _ByIhH2L0.js} +4 -4
- package/dist/public/assets/_ByIhH2L0.js.br +0 -0
- package/dist/public/assets/{_J13dOJAl.js → _BytBjgvR.js} +46 -46
- package/dist/public/assets/_BytBjgvR.js.br +0 -0
- package/dist/public/assets/{_CRbRTfeP2.js → _C-es4gJw2.js} +1 -1
- package/dist/public/assets/_C-es4gJw2.js.br +0 -0
- package/dist/public/assets/{_DFpIp88l2.js → _C-igEDzm2.js} +1 -1
- package/dist/public/assets/_C-igEDzm2.js.br +0 -0
- package/dist/public/assets/{_cd0Dn5oM2.js → _C1FnBrBU2.js} +1 -1
- package/dist/public/assets/_C1FnBrBU2.js.br +0 -0
- package/dist/public/assets/{_a_oWV3XM.js → _C1aQ2w3g.js} +1 -1
- package/dist/public/assets/_C1aQ2w3g.js.br +0 -0
- package/dist/public/assets/{_DYCJZ-Iu.js → _C9Gk79ni.js} +1 -1
- package/dist/public/assets/_C9Gk79ni.js.br +0 -0
- package/dist/public/assets/{_zZovbli0.js → _CGcONmxe.js} +1 -1
- package/dist/public/assets/_CGcONmxe.js.br +0 -0
- package/dist/public/assets/{_BBS5zv8C2.js → _CKccXLgP2.js} +1 -1
- package/dist/public/assets/_CKccXLgP2.js.br +0 -0
- package/dist/public/assets/{_D5o1QAvJ.js → _CPVYCZMv.js} +1 -1
- package/dist/public/assets/_CPVYCZMv.js.br +0 -0
- package/dist/public/assets/{_DJ6cJzuI.js → _CRzqqlR0.js} +1 -1
- package/dist/public/assets/_CRzqqlR0.js.br +0 -0
- package/dist/public/assets/{_CyQMVS2T.js → _CUeqLqzO.js} +1 -1
- package/dist/public/assets/_CUeqLqzO.js.br +0 -0
- package/dist/public/assets/{_mU_JkZbV.js → _CVcWNcIW.js} +1 -1
- package/dist/public/assets/_CVcWNcIW.js.br +0 -0
- package/dist/public/assets/{_BiDyvSOO2.js → _CYOQH5YC2.js} +1 -1
- package/dist/public/assets/_CYOQH5YC2.js.br +0 -0
- package/dist/public/assets/{_Cn1q8R2G.js → _Cej15Wz_.js} +1 -1
- package/dist/public/assets/_Cej15Wz_.js.br +0 -0
- package/dist/public/assets/{_Cyl9FKNU2.js → _CiSNeDML2.js} +1 -1
- package/dist/public/assets/_CiSNeDML2.js.br +0 -0
- package/dist/public/assets/{_C4nOqeMD.js → _Cmt1Ut6b.js} +1 -1
- package/dist/public/assets/_Cmt1Ut6b.js.br +0 -0
- package/dist/public/assets/{_BwFRjBOz.js → _Cvc68VXt.js} +1 -1
- package/dist/public/assets/_Cvc68VXt.js.br +0 -0
- package/dist/public/assets/{_BPfQaxTd.js → _Cxu0r4me.js} +1 -1
- package/dist/public/assets/_Cxu0r4me.js.br +0 -0
- package/dist/public/assets/{_VJa0VTCn.js → _D-ojdvNK.js} +1 -1
- package/dist/public/assets/_D-ojdvNK.js.br +0 -0
- package/dist/public/assets/{_DA_USHEu.js → _D3cgvMOc.js} +1 -1
- package/dist/public/assets/_D3cgvMOc.js.br +0 -0
- package/dist/public/assets/{_C-KXAuRh2.js → _D4g_4fW62.js} +1 -1
- package/dist/public/assets/_D4g_4fW62.js.br +0 -0
- package/dist/public/assets/{_-b51A6U7.js → _DBvCZ4eD.js} +1 -1
- package/dist/public/assets/_DBvCZ4eD.js.br +0 -0
- package/dist/public/assets/{_Ct6qquOF.js → _DCRuwmyv.js} +1 -1
- package/dist/public/assets/_DCRuwmyv.js.br +0 -0
- package/dist/public/assets/{_DcTJxua3.js → _DEvsPiuq.js} +1 -1
- package/dist/public/assets/_DEvsPiuq.js.br +0 -0
- package/dist/public/assets/{_pImBOEXD2.js → _DEzyKNH02.js} +1 -1
- package/dist/public/assets/_DEzyKNH02.js.br +0 -0
- package/dist/public/assets/{_e3oDddUx2.js → _DKmAvbSL2.js} +1 -1
- package/dist/public/assets/_DKmAvbSL2.js.br +0 -0
- package/dist/public/assets/{_BTsrDfH-.js → _DOfxrwd5.js} +1 -1
- package/dist/public/assets/_DOfxrwd5.js.br +0 -0
- package/dist/public/assets/{_B80qXOTR.js → _DS-rvgPq.js} +1 -1
- package/dist/public/assets/_DS-rvgPq.js.br +0 -0
- package/dist/public/assets/{_BLcb3Cg42.js → _DVqsGkcR2.js} +1 -1
- package/dist/public/assets/_DVqsGkcR2.js.br +0 -0
- package/dist/public/assets/{_zWXmuT9S.js → _DXUc5JLw.js} +1 -1
- package/dist/public/assets/_DXUc5JLw.js.br +0 -0
- package/dist/public/assets/{_Is38l22C.js → _D_VEyzQS.js} +1 -1
- package/dist/public/assets/_D_VEyzQS.js.br +0 -0
- package/dist/public/assets/{_BaY0h2ec2.js → _DrLr9gq22.js} +1 -1
- package/dist/public/assets/_DrLr9gq22.js.br +0 -0
- package/dist/public/assets/{_BkjyxJ0i.js → _DzUh69ip.js} +1 -1
- package/dist/public/assets/{_DJ0uAfUp2.js → _HE70SsNX2.js} +1 -1
- package/dist/public/assets/_HE70SsNX2.js.br +0 -0
- package/dist/public/assets/{_BzfCLxV82.js → _Nr_XTCP62.js} +1 -1
- package/dist/public/assets/_Nr_XTCP62.js.br +0 -0
- package/dist/public/assets/{_B9D12lOA.js → _OHfRW1ji.js} +1 -1
- package/dist/public/assets/_OHfRW1ji.js.br +0 -0
- package/dist/public/assets/{_CMYGsqdf.js → _Sz6yIHnm.js} +1 -1
- package/dist/public/assets/_Sz6yIHnm.js.br +0 -0
- package/dist/public/assets/{_BGvyA4oE2.js → _V0N1wym_2.js} +1 -1
- package/dist/public/assets/_V0N1wym_2.js.br +0 -0
- package/dist/public/assets/{_I8D7wiZO.js → _W41_M6ks.js} +1 -1
- package/dist/public/assets/_W41_M6ks.js.br +0 -0
- package/dist/public/assets/{_jK_yh8X8.js → _YCFUpy_e.js} +1 -1
- package/dist/public/assets/_YCFUpy_e.js.br +0 -0
- package/dist/public/assets/{_gu9YaOjx.js → _YXt0NV8C.js} +1 -1
- package/dist/public/assets/_YXt0NV8C.js.br +0 -0
- package/dist/public/assets/{_BgPTyoAr2.js → __6Ao2IpB2.js} +1 -1
- package/dist/public/assets/__6Ao2IpB2.js.br +0 -0
- package/dist/public/assets/{_Cyhh59cC.js → _ar-pHXPS.js} +1 -1
- package/dist/public/assets/_ar-pHXPS.js.br +0 -0
- package/dist/public/assets/{_Bc4j5n7x.js → _eCg9cVES.js} +1 -1
- package/dist/public/assets/_eCg9cVES.js.br +0 -0
- package/dist/public/assets/{_B8-V5BF5.js → _pPGMLP6w.js} +1 -1
- package/dist/public/assets/_pPGMLP6w.js.br +0 -0
- package/dist/public/assets/{_BCovSJRb.js → _pn5L5369.js} +1 -1
- package/dist/public/assets/_pn5L5369.js.br +0 -0
- package/dist/public/assets/{_8GNWgmjH.js → _qBx90PKO.js} +1 -1
- package/dist/public/assets/_qBx90PKO.js.br +0 -0
- package/dist/public/assets/{_t5tGr2D1.js → _uKykNxr_.js} +1 -1
- package/dist/public/assets/_uKykNxr_.js.br +0 -0
- package/dist/public/assets/{app-page-D30JmXcA.css → app-page-ChAo2NHp.css} +1 -1
- package/dist/public/assets/app-page-ChAo2NHp.css.br +0 -0
- package/dist/public/assets/diff-view-Cj1gonmn.css +1 -0
- package/dist/public/assets/diff-view-Cj1gonmn.css.br +0 -0
- package/dist/public/assets/new-DkhWTPMD.js +1 -0
- package/dist/public/assets/settings-DkhWTPMD.js +1 -0
- package/dist/public/assets/w-DkhWTPMD.js +1 -0
- package/dist/public/assets/w._-CSX6R2qy.js +1 -0
- package/dist/public/assets/w._-DkhWTPMD.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_-b51A6U7.js.br +0 -0
- package/dist/public/assets/_0KWxGbZw.js.br +0 -0
- package/dist/public/assets/_8GNWgmjH.js.br +0 -0
- package/dist/public/assets/_8tiEU3RO.js.br +0 -0
- package/dist/public/assets/_B2AC3SUA.js.br +0 -0
- package/dist/public/assets/_B8-V5BF5.js.br +0 -0
- package/dist/public/assets/_B80qXOTR.js.br +0 -0
- package/dist/public/assets/_B9D12lOA.js.br +0 -0
- package/dist/public/assets/_BBS5zv8C2.js.br +0 -0
- package/dist/public/assets/_BCovSJRb.js.br +0 -0
- package/dist/public/assets/_BE3R8mFE.js.br +0 -0
- package/dist/public/assets/_BGvyA4oE2.js.br +0 -0
- package/dist/public/assets/_BIOtkDha2.js.br +0 -0
- package/dist/public/assets/_BLcb3Cg42.js.br +0 -0
- package/dist/public/assets/_BP_u4OL-.js.br +0 -0
- package/dist/public/assets/_BPfQaxTd.js.br +0 -0
- package/dist/public/assets/_BTsrDfH-.js.br +0 -0
- package/dist/public/assets/_BZsn-7u1.js.br +0 -0
- package/dist/public/assets/_BaY0h2ec2.js.br +0 -0
- package/dist/public/assets/_Bc4j5n7x.js.br +0 -0
- package/dist/public/assets/_BgPTyoAr2.js.br +0 -0
- package/dist/public/assets/_BiDyvSOO2.js.br +0 -0
- package/dist/public/assets/_Bl512FoL.js.br +0 -0
- package/dist/public/assets/_Bw9jvu1-.js.br +0 -0
- package/dist/public/assets/_BwFRjBOz.js.br +0 -0
- package/dist/public/assets/_BzGLDIBO2.js.br +0 -0
- package/dist/public/assets/_BzfCLxV82.js.br +0 -0
- package/dist/public/assets/_Bzp9X35S2.js.br +0 -0
- package/dist/public/assets/_C-KXAuRh2.js.br +0 -0
- package/dist/public/assets/_C4nOqeMD.js.br +0 -0
- package/dist/public/assets/_C5xrDvQI2.js.br +0 -0
- package/dist/public/assets/_CMYGsqdf.js.br +0 -0
- package/dist/public/assets/_COSXS0J8.js.br +0 -0
- package/dist/public/assets/_CPeBESzl.js.br +0 -0
- package/dist/public/assets/_CRbRTfeP2.js.br +0 -0
- package/dist/public/assets/_Cn1q8R2G.js.br +0 -0
- package/dist/public/assets/_Ct6qquOF.js.br +0 -0
- package/dist/public/assets/_CyQMVS2T.js.br +0 -0
- package/dist/public/assets/_Cyhh59cC.js.br +0 -0
- package/dist/public/assets/_Cyl9FKNU2.js.br +0 -0
- package/dist/public/assets/_D4cKCypW.js.br +0 -0
- package/dist/public/assets/_D5o1QAvJ.js.br +0 -0
- package/dist/public/assets/_DA_USHEu.js.br +0 -0
- package/dist/public/assets/_DFpIp88l2.js.br +0 -0
- package/dist/public/assets/_DJ0uAfUp2.js.br +0 -0
- package/dist/public/assets/_DJ6cJzuI.js.br +0 -0
- package/dist/public/assets/_DSX5dMw5.js.br +0 -0
- package/dist/public/assets/_DYCJZ-Iu.js.br +0 -0
- package/dist/public/assets/_DaH2ZbUV.js.br +0 -0
- package/dist/public/assets/_DcTJxua3.js.br +0 -0
- package/dist/public/assets/_DwVknvPD2.js.br +0 -0
- package/dist/public/assets/_Dx_iq98R.js.br +0 -0
- package/dist/public/assets/_DyjSeFv1.js.br +0 -0
- package/dist/public/assets/_ERnhNh-Y.js.br +0 -0
- package/dist/public/assets/_I8D7wiZO.js.br +0 -0
- package/dist/public/assets/_Is38l22C.js.br +0 -0
- package/dist/public/assets/_J13dOJAl.js.br +0 -0
- package/dist/public/assets/_Ka1PvLiD.js.br +0 -0
- package/dist/public/assets/_Skj5Z76l2.js.br +0 -0
- package/dist/public/assets/_VJa0VTCn.js.br +0 -0
- package/dist/public/assets/_XQjM1w_8.js.br +0 -0
- package/dist/public/assets/_YOqlhSHw2.js.br +0 -0
- package/dist/public/assets/_a_oWV3XM.js.br +0 -0
- package/dist/public/assets/_cd0Dn5oM2.js.br +0 -0
- package/dist/public/assets/_e3oDddUx2.js.br +0 -0
- package/dist/public/assets/_gu9YaOjx.js.br +0 -0
- package/dist/public/assets/_jK_yh8X8.js.br +0 -0
- package/dist/public/assets/_mU_JkZbV.js.br +0 -0
- package/dist/public/assets/_pImBOEXD2.js.br +0 -0
- package/dist/public/assets/_t5tGr2D1.js.br +0 -0
- package/dist/public/assets/_tzwJRvKK.js.br +0 -0
- package/dist/public/assets/_zWXmuT9S.js.br +0 -0
- package/dist/public/assets/_zZovbli0.js.br +0 -0
- package/dist/public/assets/app-page-D30JmXcA.css.br +0 -0
- package/dist/public/assets/diff-view-WfajAxvs.css +0 -1
- package/dist/public/assets/diff-view-WfajAxvs.css.br +0 -0
- package/dist/public/assets/new-BiAv3en2.js +0 -1
- package/dist/public/assets/settings-BiAv3en2.js +0 -1
- package/dist/public/assets/w-BiAv3en2.js +0 -1
- package/dist/public/assets/w._-BiAv3en2.js +0 -1
- package/dist/public/assets/w._-DoR9D5Ku.js +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
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
2
|
import { $ as setSetting, A as setScrapedPhase, B as saveSubscription, C as agentBadge, D as agentMeta, E as agentLabel, F as manifest, G as agentChoices, H as subscribe, I as normalizeAccent, J as enabledAgents, K as allPrefs, L as setInstance, M as ACCENT_RE, N as getInstance, O as clearAgentPhase, P as iconSvg, Q as setPref, R as deleteSubscription, S as blankRow, T as agentFromCommand, U as subscriberCount, V as publish, W as subscriberJoins, X as preferredAgent, Y as getSetting, Z as setDisabledAgents, _ as tmuxName, _t as tmux, a as ensureTmuxServer, at as DEFAULT_GITHUB_HOST, b as readHookPayload, c as killWorkspaceSessions, ct as toolById, d as newSessionArgs, dt as get, et as doctor, ft as workspacePath, g as sessionStates, gt as run, h as sendToSession, ht as git, i as disposeSessions, it as which, j as setSessionViewers, k as setAgentPhase, l as listSessions, lt as all, m as renameSession, mt as gh, n as clearTmuxStarted, nt as miseVersions, o as getSession, ot as TOOLS, p as panePids, pt as TMUX_SOCKET, q as disabledAgents, r as createSession, rt as setupPath, s as killSession, st as agentById, t as cleanEnv, tt as ghKnownHosts, u as markTmuxStarted, ut as db, v as tmuxWasStarted, vt as config, w as agentFamily, x as reportsWorking, y as AGENTS, z as pushPublicKey } from "./_BYk3MBDh.js";
|
|
3
|
-
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as withPageAssets, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as writeScope, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./
|
|
3
|
+
import { $ as _await, A as repoLabel, At as _try, B as phase, C as sideNavOpen, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, H as $global, I as iconBtnRow, J as _attr_or, K as _attr_input_value, L as iconBtnXs, M as setPrimaryHost, Mt as attrTag, N as btnLg, Nt as withPageAssets, O as icon_base_default, Ot as _to_text, P as btnSm, Pt as writeScope, Q as _attrs_partial, R as inputLg, S as setWorkspaceTab, St as _sep, T as workspaceTab, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, Z as _attrs, _t as _resume_branch, at as _el_resume, bt as _scope_with_id, c as icon_arrow_up_default, ct as _flush_head, d as iconBtn$2, dt as _hoist_read_error, et as _content, f as row, ft as _html, gt as _resume, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, j as repoWebUrl$1, jt as _var, k as parseRepoUrl, kt as _trailers, l as icon_back_default, lt as _for_of, mt as _if, n as findIconBtn, nt as _dynamic_tag, o as rankRepos, ot as _escape, p as sectionCount$1, pt as _id, q as _attr_option_value, r as findInput, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, ut as _hoist, v as ignoredSsoOrgs, vt as _scope_id, w as theme, wt as _serialize_if, x as setTheme, xt as _script, yt as _scope_reason, z as metaTrunc } from "./_Dc6tTxJq.js";
|
|
4
4
|
import fs from "node:fs";
|
|
5
5
|
import { createServer } from "node:http";
|
|
6
6
|
import path from "node:path";
|
|
@@ -3704,26 +3704,26 @@ function applyInstance(inst) {
|
|
|
3704
3704
|
}
|
|
3705
3705
|
//#endregion
|
|
3706
3706
|
//#region src/tags/settings-page.css.ts
|
|
3707
|
-
var content$2 = "_cc
|
|
3708
|
-
var agentGrid = "_cg
|
|
3709
|
-
var toolGrid = "_cq
|
|
3707
|
+
var content$2 = "_cc _bO _bP";
|
|
3708
|
+
var agentGrid = "_cg _bz";
|
|
3709
|
+
var toolGrid = "_cq _bz";
|
|
3710
3710
|
//#endregion
|
|
3711
3711
|
//#region src/tags/page-head.marko
|
|
3712
3712
|
var page_head_default = _template("r", (input) => {
|
|
3713
3713
|
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);
|
|
3714
3714
|
const $scope0_id = _scope_id();
|
|
3715
|
-
_html(`<header${_attr_class("
|
|
3715
|
+
_html(`<header${_attr_class("_bQ")}>`);
|
|
3716
3716
|
_if(() => {
|
|
3717
3717
|
if (input.backHref) {
|
|
3718
3718
|
const $scope1_id = _scope_id();
|
|
3719
|
-
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "
|
|
3719
|
+
_html(`<a${_attr("href", input.backHref)}${_attr_class([iconBtnRow, "_eM"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3720
3720
|
icon_back_default({ size: 16 });
|
|
3721
3721
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
3722
3722
|
_serialize_if($scope0_reason, 2) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 0) && _scope_with_id($scope0_id) });
|
|
3723
3723
|
return 0;
|
|
3724
3724
|
} else if (input.onBack) {
|
|
3725
3725
|
const $scope2_id = _scope_id();
|
|
3726
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3726
|
+
_html(`<button${_attr_class([iconBtnRow, "_eM"])}${_attr_or("title", input.backTitle, " title=\"Back (Esc)\"")}${_attr_or("aria-label", input.backTitle, " aria-label=Back")}>`);
|
|
3727
3727
|
icon_back_default({ size: 16 });
|
|
3728
3728
|
_html(`</button>${_el_resume($scope2_id, "a")}`);
|
|
3729
3729
|
_script($scope2_id, "r0");
|
|
@@ -3731,11 +3731,11 @@ var page_head_default = _template("r", (input) => {
|
|
|
3731
3731
|
return 1;
|
|
3732
3732
|
}
|
|
3733
3733
|
}, $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);
|
|
3734
|
-
_html(`<div${_attr_class("
|
|
3734
|
+
_html(`<div${_attr_class("_bS")}><h1${_attr("id", input.titleId)}${_attr_class("_bR")}>${_escape(input.title)}${_el_resume($scope0_id, "e", _serialize_guard($scope0_reason, 5))}</h1>${_el_resume($scope0_id, "d", _serialize_guard($scope0_reason, 4))}`);
|
|
3735
3735
|
_if(() => {
|
|
3736
3736
|
if (input.meta) {
|
|
3737
3737
|
const $scope3_id = _scope_id();
|
|
3738
|
-
_html(`<p${_attr_class("
|
|
3738
|
+
_html(`<p${_attr_class("_bT")}>`);
|
|
3739
3739
|
_dynamic_tag($scope3_id, "b", input.meta, {}, 0, 0, $sg__input_meta);
|
|
3740
3740
|
_html("</p>");
|
|
3741
3741
|
$si__input_meta && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3746,7 +3746,7 @@ var page_head_default = _template("r", (input) => {
|
|
|
3746
3746
|
_if(() => {
|
|
3747
3747
|
if (input.actions) {
|
|
3748
3748
|
const $scope4_id = _scope_id();
|
|
3749
|
-
_html(`<div${_attr_class("
|
|
3749
|
+
_html(`<div${_attr_class("_bU")}>`);
|
|
3750
3750
|
_dynamic_tag($scope4_id, "b", input.actions, {}, 0, 0, $sg__input_actions);
|
|
3751
3751
|
_html("</div>");
|
|
3752
3752
|
$si__input_actions && writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -3774,7 +3774,7 @@ var icon_agent_default = _template("G", (input) => {
|
|
|
3774
3774
|
_if(() => {
|
|
3775
3775
|
if (d) {
|
|
3776
3776
|
const $scope1_id = _scope_id();
|
|
3777
|
-
_html(`<svg${_attr_class(["
|
|
3777
|
+
_html(`<svg${_attr_class(["_e", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}`);
|
|
3778
3778
|
_if(() => {
|
|
3779
3779
|
if (badge) {
|
|
3780
3780
|
const $scope3_id = _scope_id();
|
|
@@ -3814,10 +3814,10 @@ var icon_agent_default = _template("G", (input) => {
|
|
|
3814
3814
|
n: $badge__closures
|
|
3815
3815
|
});
|
|
3816
3816
|
});
|
|
3817
|
-
var usageNote = "
|
|
3817
|
+
var usageNote = "_eT _M";
|
|
3818
3818
|
//#endregion
|
|
3819
3819
|
//#region src/tags/icons/icon-warning.marko
|
|
3820
|
-
var icon_warning_default = _template("
|
|
3820
|
+
var icon_warning_default = _template("kb", (input) => {
|
|
3821
3821
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
3822
3822
|
const $scope0_id = _scope_id();
|
|
3823
3823
|
_set_serialize_reason({
|
|
@@ -3855,11 +3855,11 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3855
3855
|
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);
|
|
3856
3856
|
const $scope0_id = _scope_id();
|
|
3857
3857
|
const agent = input.agent;
|
|
3858
|
-
_html(`<div${_attr_class(["
|
|
3858
|
+
_html(`<div${_attr_class(["_eN", { ["_eO"]: input.hideName }])}><div${_attr_class("_eP")}>`);
|
|
3859
3859
|
_if(() => {
|
|
3860
3860
|
if (!input.hideName) {
|
|
3861
3861
|
const $scope1_id = _scope_id();
|
|
3862
|
-
_html(`<strong${_attr_class("
|
|
3862
|
+
_html(`<strong${_attr_class("_e8")}>${_escape(agent.agent)}${_el_resume($scope1_id, "b", $sg__input_agent)}</strong>`);
|
|
3863
3863
|
$si__input_agent__OR__input_hideName && writeScope($scope1_id, { _: $si__input_agent && _scope_with_id($scope0_id) });
|
|
3864
3864
|
return 0;
|
|
3865
3865
|
}
|
|
@@ -3867,7 +3867,7 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3867
3867
|
_if(() => {
|
|
3868
3868
|
if (agent.plan && agent.plan.toLowerCase() !== agent.agent.toLowerCase()) {
|
|
3869
3869
|
const $scope2_id = _scope_id();
|
|
3870
|
-
_html(`<span${_attr_class("
|
|
3870
|
+
_html(`<span${_attr_class("_eQ")}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope2_id, "b", $sg__input_agent)}</span>`);
|
|
3871
3871
|
$si__input_agent && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
3872
3872
|
return 0;
|
|
3873
3873
|
}
|
|
@@ -3875,21 +3875,21 @@ var usage_meters_default = _template("D", (input) => {
|
|
|
3875
3875
|
_if(() => {
|
|
3876
3876
|
if (agent.stale_seconds != null) {
|
|
3877
3877
|
const $scope3_id = _scope_id();
|
|
3878
|
-
_html(`<span${_attr_class("
|
|
3878
|
+
_html(`<span${_attr_class("_eR")}${_attr("title", `${agent.note || "provider unreachable"}. Last cached numbers, ${duration(agent.stale_seconds * 1e3)} old`)}>`);
|
|
3879
3879
|
icon_warning_default({ size: 12 });
|
|
3880
3880
|
_html(` ${_sep($sg__input_agent)}${_escape(duration(agent.stale_seconds * 1e3))}${_el_resume($scope3_id, "c", $sg__input_agent)} old</span>${_el_resume($scope3_id, "a", $sg__input_agent)}`);
|
|
3881
3881
|
$si__input_agent && writeScope($scope3_id, { _: _scope_with_id($scope0_id) });
|
|
3882
3882
|
return 0;
|
|
3883
3883
|
}
|
|
3884
3884
|
}, $scope0_id, "e", $sg__input_agent, $sg__input_agent, $sg__input_agent__OR__input_hideName, 0, 1);
|
|
3885
|
-
_html(`</div><div${_attr_class(["
|
|
3885
|
+
_html(`</div><div${_attr_class(["_eS", { ["_e9"]: agent.stale_seconds != null }])}>`);
|
|
3886
3886
|
_for_of(agent.windows || [], (win) => {
|
|
3887
3887
|
const $scope4_id = _scope_id();
|
|
3888
3888
|
const pct = pctText$1(win.used_percent);
|
|
3889
3889
|
const label = resetLabel(win.resets_at, agent.stale_seconds != null);
|
|
3890
|
-
const fillClass = win.used_percent >= 90 ? "
|
|
3891
|
-
const pctClass = win.used_percent >= 90 ? "
|
|
3892
|
-
_html(`<div${_attr_class("
|
|
3890
|
+
const fillClass = win.used_percent >= 90 ? "_e1" : win.used_percent >= 70 ? "_e0" : win.used_percent >= 40 ? "_eZ" : "_eY";
|
|
3891
|
+
const pctClass = win.used_percent >= 90 ? "_e6" : win.used_percent >= 70 ? "_e5" : win.used_percent >= 40 ? "_e4" : "_e3";
|
|
3892
|
+
_html(`<div${_attr_class("_eU")}${_attr("title", `${win.window}: ${pct} used${win.resets_at ? `, resets ${new Date(win.resets_at).toLocaleString()}` : ""}`)}><span${_attr_class("_eV")}>${_escape(win.window)}${_el_resume($scope4_id, "c", $sg__input_agent)}</span><span${_attr_class("_eW")}><span${_attr_class(["_eX", 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(["_e2", pctClass])}>${_escape(pct)}${_el_resume($scope4_id, "g", $sg__input_agent)}</span>${_el_resume($scope4_id, "f", $sg__input_agent)}<span${_attr_class("_e7")}>`);
|
|
3893
3893
|
_if(() => {
|
|
3894
3894
|
if (label) {
|
|
3895
3895
|
const $scope6_id = _scope_id();
|
|
@@ -3968,14 +3968,14 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
3968
3968
|
localCode = null;
|
|
3969
3969
|
}
|
|
3970
3970
|
}, "z0", $scope0_id);
|
|
3971
|
-
_html(`<div${_attr_class("
|
|
3971
|
+
_html(`<div${_attr_class("_fb")}>`);
|
|
3972
3972
|
_if(() => {
|
|
3973
3973
|
if (input.items.length) {
|
|
3974
3974
|
const $scope1_id = _scope_id();
|
|
3975
|
-
_html(`<p${_attr_class("
|
|
3975
|
+
_html(`<p${_attr_class("_fm")}>GitHub CLI needs org SSO for ${_sep($sg__input_items)}${_escape(input.items.map((s) => s.org).join(", "))}${_el_resume($scope1_id, "b", $sg__input_items)}.</p><ul${_attr_class("_fc")}>`);
|
|
3976
3976
|
_for_of(input.items, (s) => {
|
|
3977
3977
|
const $scope2_id = _scope_id();
|
|
3978
|
-
_html(`<li${_attr_class("
|
|
3978
|
+
_html(`<li${_attr_class("_fd")}>${_escape(s.org)}${_el_resume($scope2_id, "b", $sg__input_items)}<button type=button${_attr_class("_fe")}${_attr("title", `Skip ${s.org}`)}${_attr("aria-label", `Skip ${s.org}`)}${_attr("disabled", busy)}>`);
|
|
3979
3979
|
icon_xmark_default({ size: 11 });
|
|
3980
3980
|
_html(`</button>${_el_resume($scope2_id, "c")}</li>`);
|
|
3981
3981
|
_script($scope2_id, "z1");
|
|
@@ -3984,17 +3984,17 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
3984
3984
|
_: _scope_with_id($scope1_id)
|
|
3985
3985
|
}));
|
|
3986
3986
|
}, "org", $scope1_id, "c", $sg__input_items, $sg__input_items, $sg__input_items, "</ul>", 1);
|
|
3987
|
-
_html(`<div${_attr_class("
|
|
3987
|
+
_html(`<div${_attr_class("_ff")}>`);
|
|
3988
3988
|
_if(() => {
|
|
3989
3989
|
if (busy && authCode$2) {
|
|
3990
3990
|
const $scope5_id = _scope_id();
|
|
3991
|
-
_html(`<span${_attr_class("
|
|
3991
|
+
_html(`<span${_attr_class("_fg")}><span${_attr_class("_z")}></span> Enter code <strong${_attr_class("_fh")}>${_escape(authCode$2)}${_el_resume($scope5_id, "d")}</strong> at <a${_attr("href", `https://${host}/login/device`)}${_attr_class("_fi")}>${_escape(host)}${_el_resume($scope5_id, "f", _serialize_guard($scope0_reason, 3))}/login/device</a>${_el_resume($scope5_id, "e")}</span>`);
|
|
3992
3992
|
_script($scope5_id, "z2");
|
|
3993
3993
|
_subscribe($authCode__closures, _subscribe($si__input_items_0_host && $host__closures, writeScope($scope5_id, {})));
|
|
3994
3994
|
return 0;
|
|
3995
3995
|
} else if (busy) {
|
|
3996
3996
|
const $scope8_id = _scope_id();
|
|
3997
|
-
_html(`<span${_attr_class("
|
|
3997
|
+
_html(`<span${_attr_class("_fg")}><span${_attr_class("_z")}></span>Starting GitHub re-authorization…</span>`);
|
|
3998
3998
|
writeScope($scope8_id, {});
|
|
3999
3999
|
return 1;
|
|
4000
4000
|
} else {
|
|
@@ -4008,7 +4008,7 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4008
4008
|
_if(() => {
|
|
4009
4009
|
if (localError) {
|
|
4010
4010
|
const $scope6_id = _scope_id();
|
|
4011
|
-
_html(`<p${_attr_class("
|
|
4011
|
+
_html(`<p${_attr_class("_fm")}>${_escape(localError)}${_el_resume($scope6_id, "b")}</p>`);
|
|
4012
4012
|
_subscribe($localError__closures, writeScope($scope6_id, {}));
|
|
4013
4013
|
return 0;
|
|
4014
4014
|
}
|
|
@@ -4020,10 +4020,10 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4020
4020
|
_if(() => {
|
|
4021
4021
|
if (skipped$1.length) {
|
|
4022
4022
|
const $scope3_id = _scope_id();
|
|
4023
|
-
_html(`<p${_attr_class("
|
|
4023
|
+
_html(`<p${_attr_class("_fj")}>Skipped SSO for `);
|
|
4024
4024
|
_for_of(skipped$1, (s) => {
|
|
4025
4025
|
const $scope4_id = _scope_id();
|
|
4026
|
-
_html(`<span${_attr_class("
|
|
4026
|
+
_html(`<span${_attr_class("_fk")}>${_escape(s.org)}${_el_resume($scope4_id, "b", $sg__input_skipped)}<button type=button${_attr_class("_fl")}${_attr("title", `Show ${s.org} again`)}>(undo)</button>${_el_resume($scope4_id, "c")}</span>`);
|
|
4027
4027
|
_script($scope4_id, "z4");
|
|
4028
4028
|
writeScope($scope4_id, {
|
|
4029
4029
|
f: s?.org,
|
|
@@ -4060,7 +4060,7 @@ var sso_auth_default = _template("z", (input) => {
|
|
|
4060
4060
|
});
|
|
4061
4061
|
//#endregion
|
|
4062
4062
|
//#region src/tags/icons/icon-plus.marko
|
|
4063
|
-
var icon_plus_default = _template("
|
|
4063
|
+
var icon_plus_default = _template("db", (input) => {
|
|
4064
4064
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
4065
4065
|
const $scope0_id = _scope_id();
|
|
4066
4066
|
_set_serialize_reason({
|
|
@@ -4098,7 +4098,7 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4098
4098
|
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;
|
|
4099
4099
|
const dismissable = input.dismissable !== false;
|
|
4100
4100
|
let open = input.open;
|
|
4101
|
-
_html(`<dialog${_attr_class(["
|
|
4101
|
+
_html(`<dialog${_attr_class(["_hm", inputClass])}${_attr("aria-labelledby", inputLabelledBy)}${inputLabelledBy ? _attr("aria-label", inputAriaLabel) : _attr("aria-label", inputAriaLabel || label)} closedby=${dismissable ? "any" : "none"}${_attrs_partial({
|
|
4102
4102
|
...htmlInput,
|
|
4103
4103
|
open: null
|
|
4104
4104
|
}, {
|
|
@@ -4108,22 +4108,22 @@ var modal_view_default = _template("p", (input) => {
|
|
|
4108
4108
|
closedby: 1,
|
|
4109
4109
|
"on-cancel": 1,
|
|
4110
4110
|
"on-close": 1
|
|
4111
|
-
}, "a", $scope0_id, "dialog")}><div${_attr_class("
|
|
4111
|
+
}, "a", $scope0_id, "dialog")}><div${_attr_class("_hn")}>`);
|
|
4112
4112
|
_dynamic_tag($scope0_id, "c", content, {}, 0, 0, _serialize_guard($scope0_reason, 6));
|
|
4113
4113
|
_html("</div>");
|
|
4114
4114
|
_if(() => {
|
|
4115
4115
|
if (footer) {
|
|
4116
4116
|
const $scope1_id = _scope_id();
|
|
4117
|
-
_html(`<form method=dialog${_attr_class("
|
|
4117
|
+
_html(`<form method=dialog${_attr_class("_ho")}>`);
|
|
4118
4118
|
_dynamic_tag($scope1_id, "b", footer.content, {}, 0, 0, _serialize_guard($scope0_reason, 7));
|
|
4119
4119
|
_html("</form>");
|
|
4120
4120
|
$si__input_openChange__OR__input_footer && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope0_id) });
|
|
4121
4121
|
return 0;
|
|
4122
4122
|
} else if (input.openChange) {
|
|
4123
4123
|
const $scope2_id = _scope_id();
|
|
4124
|
-
_html(`<form method=dialog${_attr_class("
|
|
4124
|
+
_html(`<form method=dialog${_attr_class("_ho")}>`);
|
|
4125
4125
|
dialog_close_default({
|
|
4126
|
-
class: ["
|
|
4126
|
+
class: ["_i", "_j"],
|
|
4127
4127
|
content: _content("p0", () => {
|
|
4128
4128
|
_scope_reason();
|
|
4129
4129
|
_scope_id();
|
|
@@ -4180,16 +4180,16 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4180
4180
|
const $childScope = _peek_scope_id();
|
|
4181
4181
|
modal_view_default({
|
|
4182
4182
|
label: input.label,
|
|
4183
|
-
class: "
|
|
4183
|
+
class: "_e_",
|
|
4184
4184
|
open: input.open,
|
|
4185
4185
|
openChange: input.openChange,
|
|
4186
4186
|
"aria-labelledby": titleId,
|
|
4187
4187
|
footer: attrTag({ content: _content_resume("s5", () => {
|
|
4188
4188
|
_scope_reason();
|
|
4189
4189
|
const $scope1_id = _scope_id();
|
|
4190
|
-
_html(`<button type=button${_attr_class(["
|
|
4190
|
+
_html(`<button type=button${_attr_class(["_i", "_j"])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class("_s")}></div>`);
|
|
4191
4191
|
dialog_close_default({
|
|
4192
|
-
class: "
|
|
4192
|
+
class: "_i",
|
|
4193
4193
|
content: _content("s2", () => {
|
|
4194
4194
|
_scope_reason();
|
|
4195
4195
|
_scope_id();
|
|
@@ -4203,7 +4203,7 @@ var prompt_dialog_default = _template("s", (input) => {
|
|
|
4203
4203
|
content: _content("s6", () => {
|
|
4204
4204
|
_scope_reason();
|
|
4205
4205
|
const $scope2_id = _scope_id();
|
|
4206
|
-
_html(`<h2${_attr_class("
|
|
4206
|
+
_html(`<h2${_attr_class("_fa")}${_attr("id", titleId)}>${_escape(input.label)}${_el_resume($scope2_id, "b", $sg__input_label)}</h2><input${_attr_input_value($scope2_id, "c", value, _resume((_new_value) => {
|
|
4207
4207
|
value = _new_value;
|
|
4208
4208
|
}, "s0", $scope2_id))}${_attr("placeholder", input.placeholder)}>${_el_resume($scope2_id, "c")}`);
|
|
4209
4209
|
_script($scope2_id, "s4");
|
|
@@ -4513,7 +4513,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4513
4513
|
const appearanceId = _id();
|
|
4514
4514
|
const githubId = _id();
|
|
4515
4515
|
const machineId = _id();
|
|
4516
|
-
_html(`<div${_attr_class("
|
|
4516
|
+
_html(`<div${_attr_class("_bM")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bN")}><div${_attr_class(content$2)}>`);
|
|
4517
4517
|
_set_serialize_reason({
|
|
4518
4518
|
0: _serialize_guard($scope0_reason, 4),
|
|
4519
4519
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -4558,7 +4558,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4558
4558
|
const $childScope = _peek_scope_id();
|
|
4559
4559
|
icon_refresh_default({
|
|
4560
4560
|
size: 14,
|
|
4561
|
-
class: refreshing && "
|
|
4561
|
+
class: refreshing && "_y"
|
|
4562
4562
|
});
|
|
4563
4563
|
_html(`</button>${_el_resume($scope10_id, "a")}`);
|
|
4564
4564
|
_script($scope10_id, "v31");
|
|
@@ -4596,7 +4596,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4596
4596
|
_if(() => {
|
|
4597
4597
|
if (selfUpdating) {
|
|
4598
4598
|
const $scope53_id = _scope_id();
|
|
4599
|
-
_html(`<span${_attr_class("_cL")}><span${_attr_class("
|
|
4599
|
+
_html(`<span${_attr_class("_cL")}><span${_attr_class("_z")}></span> Updating work…</span><span${_attr_class("_cM")}>The app restarts and reloads when it is done.</span>`);
|
|
4600
4600
|
writeScope($scope53_id, {});
|
|
4601
4601
|
return 0;
|
|
4602
4602
|
} else {
|
|
@@ -4609,7 +4609,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4609
4609
|
_if(() => {
|
|
4610
4610
|
if (!selfUpdating) {
|
|
4611
4611
|
const $scope39_id = _scope_id();
|
|
4612
|
-
_html(`<button${_attr_class(["
|
|
4612
|
+
_html(`<button${_attr_class(["_i", "_j"])}${_attr("title", `Update work to v${self.latest} and restart`)}>Update and restart</button>${_el_resume($scope39_id, "a")}`);
|
|
4613
4613
|
_script($scope39_id, "v35");
|
|
4614
4614
|
_subscribe($self_latest__closures, writeScope($scope39_id, { Ce9: 1 }));
|
|
4615
4615
|
return 0;
|
|
@@ -4620,11 +4620,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4620
4620
|
return 0;
|
|
4621
4621
|
}
|
|
4622
4622
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
4623
|
-
_html(`<section${_attr_class("
|
|
4623
|
+
_html(`<section${_attr_class("_bw")}${_attr("aria-labelledby", agentsId)}><div${_attr_class("_bx")}><h2${_attr("id", agentsId)}${_attr_class("_bL")}>Agents</h2><div${_attr_class("_s")}></div><label${_attr_class("_ci")}><span${_attr_class("_M")}>Default</span><span${_attr_class("_g")}>`);
|
|
4624
4624
|
_attr_select_value($scope0_id, "n", input.preferred, _resume(function(v) {
|
|
4625
4625
|
setPreferred(v);
|
|
4626
4626
|
}, "v1", $scope0_id), () => {
|
|
4627
|
-
_html(`<select${_attr_class(["
|
|
4627
|
+
_html(`<select${_attr_class(["_h", "_cj"])} aria-label="Default agent (starts when a workspace has no session yet)" title="Starts when a workspace has no session yet">`);
|
|
4628
4628
|
_for_of(input.agents.filter((a) => a !== "shell"), (id) => {
|
|
4629
4629
|
const $scope54_id = _scope_id();
|
|
4630
4630
|
_html(`<option${_attr_option_value(id)}>${_escape(agentLabel(id))}${_el_resume($scope54_id, "b", $sg__input_agents)}</option>${_el_resume($scope54_id, "a", $sg__input_agents)}`);
|
|
@@ -4636,7 +4636,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4636
4636
|
const $childScope3 = _peek_scope_id();
|
|
4637
4637
|
icon_refresh_default({
|
|
4638
4638
|
size: 14,
|
|
4639
|
-
class: usageRefreshing && "
|
|
4639
|
+
class: usageRefreshing && "_y"
|
|
4640
4640
|
});
|
|
4641
4641
|
_html(`</button>${_el_resume($scope0_id, "o")}</div><ul${_attr_class(agentGrid)}>`);
|
|
4642
4642
|
_for_of(families, (a) => {
|
|
@@ -4645,18 +4645,18 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4645
4645
|
const rows = lone ? [] : a.instances;
|
|
4646
4646
|
const loneAccounts = lone && lone.enabled ? accountsFor(lone.id) : [];
|
|
4647
4647
|
const extraAccounts = a.installed ? strayAccountsFor(a) : [];
|
|
4648
|
-
_html(`<li${_attr_class(["
|
|
4648
|
+
_html(`<li${_attr_class(["_bB", "_ch"])}><div${_attr_class(["_ck", { ["_cn"]: lone && !lone.enabled }])}>`);
|
|
4649
4649
|
_set_serialize_reason(12);
|
|
4650
4650
|
const $childScope4 = _peek_scope_id();
|
|
4651
4651
|
icon_agent_default({
|
|
4652
4652
|
agent: a.id,
|
|
4653
4653
|
size: 18
|
|
4654
4654
|
});
|
|
4655
|
-
_html(`<div${_attr_class("
|
|
4655
|
+
_html(`<div${_attr_class("_bC")}><span${_attr_class("_bE")}><span${_attr_class("_bD")}>${_escape(a.label)}${_el_resume($scope1_id, "g")}</span>`);
|
|
4656
4656
|
_if(() => {
|
|
4657
4657
|
if (lone && input.preferred === lone.id) {
|
|
4658
4658
|
const $scope55_id = _scope_id();
|
|
4659
|
-
_html(`<span${_attr_class(["
|
|
4659
|
+
_html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
|
|
4660
4660
|
writeScope($scope55_id, {});
|
|
4661
4661
|
return 0;
|
|
4662
4662
|
}
|
|
@@ -4665,12 +4665,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4665
4665
|
_if(() => {
|
|
4666
4666
|
if (active.has(a.id)) {
|
|
4667
4667
|
const $scope11_id = _scope_id();
|
|
4668
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
4668
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_z")}></span><!>${_escape(active.get(a.id) || "Starting…")}${_el_resume($scope11_id, "c")}</span>`);
|
|
4669
4669
|
_subscribe($active__closures, writeScope($scope11_id, {}));
|
|
4670
4670
|
return 0;
|
|
4671
4671
|
} else if (!a.installed) {
|
|
4672
4672
|
const $scope56_id = _scope_id();
|
|
4673
|
-
_html(`<span${_attr_class("
|
|
4673
|
+
_html(`<span${_attr_class("_bF")}>Not installed</span>`);
|
|
4674
4674
|
writeScope($scope56_id, {});
|
|
4675
4675
|
return 1;
|
|
4676
4676
|
}
|
|
@@ -4689,8 +4689,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4689
4689
|
if (lone) {
|
|
4690
4690
|
const $scope48_id = _scope_id();
|
|
4691
4691
|
_html(`<button${_attr_class([
|
|
4692
|
-
"
|
|
4693
|
-
"
|
|
4692
|
+
"_C",
|
|
4693
|
+
"_E",
|
|
4694
4694
|
{ [tone.ok]: lone.enabled }
|
|
4695
4695
|
])} role=switch aria-checked=${lone.enabled ? "true" : "false"} title=${lone.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${lone.enabled ? "on" : "off"}${_el_resume($scope48_id, "b")}</button>${_el_resume($scope48_id, "a")}`);
|
|
4696
4696
|
_script($scope48_id, "v37");
|
|
@@ -4713,18 +4713,18 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4713
4713
|
agent: inst.id,
|
|
4714
4714
|
size: 15
|
|
4715
4715
|
});
|
|
4716
|
-
_html(`<span${_attr_class(["_co", "
|
|
4716
|
+
_html(`<span${_attr_class(["_co", "_r"])}>${_escape(inst.command)}${_el_resume($scope3_id, "e")}</span>`);
|
|
4717
4717
|
_if(() => {
|
|
4718
4718
|
if (input.preferred === inst.id) {
|
|
4719
4719
|
const $scope57_id = _scope_id();
|
|
4720
|
-
_html(`<span${_attr_class(["
|
|
4720
|
+
_html(`<span${_attr_class(["_C", tone.accent])}>default</span>`);
|
|
4721
4721
|
writeScope($scope57_id, {});
|
|
4722
4722
|
return 0;
|
|
4723
4723
|
}
|
|
4724
4724
|
}, $scope3_id, "f", 1, 1, 1, 0, 1);
|
|
4725
|
-
_html(`<span${_attr_class("
|
|
4726
|
-
"
|
|
4727
|
-
"
|
|
4725
|
+
_html(`<span${_attr_class("_s")}></span><button${_attr_class([
|
|
4726
|
+
"_C",
|
|
4727
|
+
"_E",
|
|
4728
4728
|
{ [tone.ok]: inst.enabled }
|
|
4729
4729
|
])} role=switch aria-checked=${inst.enabled ? "true" : "false"} title=${inst.enabled ? "\"Shown in session pickers. Hide it\"" : "\"Hidden from session pickers. Show it\""}>${inst.enabled ? "on" : "off"}${_el_resume($scope3_id, "i")}</button>${_el_resume($scope3_id, "h")}</div>${_el_resume($scope3_id, "b")}`);
|
|
4730
4730
|
_for_of(accounts, (u) => {
|
|
@@ -4788,7 +4788,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4788
4788
|
}, "id", $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
4789
4789
|
_for_of(otherUsage, (u) => {
|
|
4790
4790
|
const $scope61_id = _scope_id();
|
|
4791
|
-
_html(`<li${_attr_class(["
|
|
4791
|
+
_html(`<li${_attr_class(["_bB", "_ch"])}>`);
|
|
4792
4792
|
_set_serialize_reason(6);
|
|
4793
4793
|
const $childScope9 = _peek_scope_id();
|
|
4794
4794
|
usage_meters_default({ agent: u });
|
|
@@ -4799,17 +4799,17 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4799
4799
|
_if(() => {
|
|
4800
4800
|
if (!usage && families.length) {
|
|
4801
4801
|
const $scope62_id = _scope_id();
|
|
4802
|
-
_html(`<p${_attr_class("
|
|
4802
|
+
_html(`<p${_attr_class("_bH")}><span${_attr_class("_z")}></span> Loading usage…</p>`);
|
|
4803
4803
|
writeScope($scope62_id, {});
|
|
4804
4804
|
return 0;
|
|
4805
4805
|
} else if (usage?.error) {
|
|
4806
4806
|
const $scope7_id = _scope_id();
|
|
4807
|
-
_html(`<p${_attr_class("
|
|
4807
|
+
_html(`<p${_attr_class("_bH")}>${_escape(usage.error)}${_el_resume($scope7_id, "b")}</p>`);
|
|
4808
4808
|
writeScope($scope7_id, {});
|
|
4809
4809
|
return 1;
|
|
4810
4810
|
}
|
|
4811
4811
|
}, $scope0_id, "t", 1, 1, 1, 0, 1);
|
|
4812
|
-
_html(`</section><section${_attr_class("
|
|
4812
|
+
_html(`</section><section${_attr_class("_bw")}${_attr("aria-labelledby", githubId)}><div${_attr_class("_bx")}><h2${_attr("id", githubId)}${_attr_class("_bL")}>GitHub</h2></div><ul${_attr_class("_bz")}>`);
|
|
4813
4813
|
_for_of(setup?.github || [], (h) => {
|
|
4814
4814
|
const $scope12_id = _scope_id();
|
|
4815
4815
|
const $for_content4__h_host__closures = /* @__PURE__ */ new Set();
|
|
@@ -4823,11 +4823,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4823
4823
|
const skippedSso = (() => {
|
|
4824
4824
|
return (h.sso || []).filter((s) => ignoredSso.has(s.org));
|
|
4825
4825
|
})();
|
|
4826
|
-
_html(`<li${_attr_class(["
|
|
4826
|
+
_html(`<li${_attr_class(["_bB", "_cz"])}><div${_attr_class("_cA")}><div${_attr_class("_bC")}><span${_attr_class("_bE")}><span${_attr_class(["_bD", "_r"])}>${_escape(h.host)}${_el_resume($scope12_id, "f")}</span>`);
|
|
4827
4827
|
_if(() => {
|
|
4828
4828
|
if (h.isEnterprise) {
|
|
4829
4829
|
const $scope65_id = _scope_id();
|
|
4830
|
-
_html(`<span${_attr_class("
|
|
4830
|
+
_html(`<span${_attr_class("_C")}>Enterprise</span>`);
|
|
4831
4831
|
writeScope($scope65_id, {});
|
|
4832
4832
|
return 0;
|
|
4833
4833
|
}
|
|
@@ -4836,22 +4836,22 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4836
4836
|
_if(() => {
|
|
4837
4837
|
if (active.has(h.host) && authCodes.has(h.host)) {
|
|
4838
4838
|
const $scope24_id = _scope_id();
|
|
4839
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
4839
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_z")}></span> Enter code <strong${_attr_class("_cx")}>${_escape(authCodes.get(h.host))}${_el_resume($scope24_id, "d")}</strong> at <a${_attr("href", `https://${h.host}/login/device`)} target=_blank rel=noopener${_attr_class("_cy")}>${_escape(h.host)}${_el_resume($scope24_id, "f")}/login/device</a>${_el_resume($scope24_id, "e")}</span>`);
|
|
4840
4840
|
_subscribe($authCodes__closures, writeScope($scope24_id, { Cdz: 1 }));
|
|
4841
4841
|
return 0;
|
|
4842
4842
|
} else if (active.has(h.host)) {
|
|
4843
4843
|
const $scope13_id = _scope_id();
|
|
4844
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
4844
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.host) || "Starting…")}${_el_resume($scope13_id, "c")}</span>`);
|
|
4845
4845
|
_subscribe($active__closures, writeScope($scope13_id, { Cdx: 1 }));
|
|
4846
4846
|
return 1;
|
|
4847
4847
|
} else if (h.authed) {
|
|
4848
4848
|
const $scope63_id = _scope_id();
|
|
4849
|
-
_html(`<span${_attr_class("
|
|
4849
|
+
_html(`<span${_attr_class("_bF")}>Signed in<!>${h.user ? ` as ${_escape(`${_to_text(h.user)}`)}` : ""}${_el_resume($scope63_id, "b")}</span>`);
|
|
4850
4850
|
writeScope($scope63_id, {});
|
|
4851
4851
|
return 2;
|
|
4852
4852
|
} else {
|
|
4853
4853
|
const $scope64_id = _scope_id();
|
|
4854
|
-
_html(`<span${_attr_class("
|
|
4854
|
+
_html(`<span${_attr_class("_bF")}>${_escape(h.error || "Not signed in")}${_el_resume($scope64_id, "b")}</span>`);
|
|
4855
4855
|
writeScope($scope64_id, {});
|
|
4856
4856
|
return 3;
|
|
4857
4857
|
}
|
|
@@ -4870,8 +4870,8 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4870
4870
|
} else {
|
|
4871
4871
|
const $scope26_id = _scope_id();
|
|
4872
4872
|
_html(`<button${_attr_class([btnSm, {
|
|
4873
|
-
["
|
|
4874
|
-
["
|
|
4873
|
+
["_l"]: confirmingRemove === `out:${h.host}`,
|
|
4874
|
+
["_k"]: confirmingRemove === `out:${h.host}`
|
|
4875
4875
|
}])}${confirmingRemove === `out:${h.host}` ? _attr("title", `Sign out of ${h.host}?`) : _attr("title", `Sign out of ${h.host}`)}>${confirmingRemove === `out:${h.host}` ? "Sign out?" : "Sign out"}${_el_resume($scope26_id, "b")}</button>${_el_resume($scope26_id, "a")}`);
|
|
4876
4876
|
_script($scope26_id, "v40");
|
|
4877
4877
|
_subscribe($for_content4__h_host__closures, _subscribe($confirmingRemove__closures, writeScope($scope26_id, {})));
|
|
@@ -4882,10 +4882,10 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4882
4882
|
if (h.isEnterprise) {
|
|
4883
4883
|
const $scope27_id = _scope_id();
|
|
4884
4884
|
_html(`<button${_attr_class([
|
|
4885
|
-
"
|
|
4886
|
-
"
|
|
4887
|
-
"
|
|
4888
|
-
{ ["
|
|
4885
|
+
"_bG",
|
|
4886
|
+
"_W",
|
|
4887
|
+
"_X",
|
|
4888
|
+
{ ["_k"]: confirmingRemove === h.host }
|
|
4889
4889
|
])}${confirmingRemove === h.host ? _attr("title", `Forget ${h.host}? (gh stays signed in)`) : _attr("title", `Forget ${h.host}`)}>`);
|
|
4890
4890
|
_if(() => {
|
|
4891
4891
|
if (confirmingRemove === h.host) {
|
|
@@ -4958,7 +4958,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4958
4958
|
_if(() => {
|
|
4959
4959
|
if (setup && !setup.github.length) {
|
|
4960
4960
|
const $scope68_id = _scope_id();
|
|
4961
|
-
_html(`<p${_attr_class("
|
|
4961
|
+
_html(`<p${_attr_class("_bH")}>Install the GitHub CLI below to sign in.</p>`);
|
|
4962
4962
|
writeScope($scope68_id, {});
|
|
4963
4963
|
return 0;
|
|
4964
4964
|
}
|
|
@@ -4966,20 +4966,20 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4966
4966
|
_if(() => {
|
|
4967
4967
|
if (setup) {
|
|
4968
4968
|
const $scope35_id = _scope_id();
|
|
4969
|
-
_html(`<form${_attr_class("_cw")}><label${_attr_class("
|
|
4969
|
+
_html(`<form${_attr_class("_cw")}><label${_attr_class("_Q")}>`);
|
|
4970
4970
|
icon_plus_default({
|
|
4971
4971
|
size: 14,
|
|
4972
|
-
class: "
|
|
4972
|
+
class: "_R"
|
|
4973
4973
|
});
|
|
4974
4974
|
_html(`<input${_attr_input_value($scope35_id, "d", hostInput, _resume((_new_hostInput) => {
|
|
4975
4975
|
hostInput = _new_hostInput;
|
|
4976
|
-
}, "v2", $scope35_id))}${_attr_class([inputLg, "
|
|
4976
|
+
}, "v2", $scope35_id))}${_attr_class([inputLg, "_S"])} type=text placeholder="Add a GitHub Enterprise host, e.g. github.example.com" aria-label="GitHub Enterprise host" autocomplete=off spellcheck=false>${_el_resume($scope35_id, "d")}</label><button${_attr_class(btnSm)} type=submit${_attr("disabled", !hostInput.trim() || hostBusy)}>${hostBusy ? "Adding…" : "Add host"}${_el_resume($scope35_id, "f")}</button>${_el_resume($scope35_id, "e")}</form>${_el_resume($scope35_id, "a")}`);
|
|
4977
4977
|
_script($scope35_id, "v42");
|
|
4978
4978
|
writeScope($scope35_id, {});
|
|
4979
4979
|
return 0;
|
|
4980
4980
|
}
|
|
4981
4981
|
}, $scope0_id, "z", 1, 1, 1, 0, 1);
|
|
4982
|
-
_html(`</section><section${_attr_class("
|
|
4982
|
+
_html(`</section><section${_attr_class("_bw")}${_attr("aria-labelledby", machineId)}><div${_attr_class("_bx")}><h2${_attr("id", machineId)}${_attr_class("_bL")}>Machine</h2>`);
|
|
4983
4983
|
_if(() => {
|
|
4984
4984
|
if (missingCount) {
|
|
4985
4985
|
const $scope49_id = _scope_id();
|
|
@@ -4996,7 +4996,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
4996
4996
|
return 0;
|
|
4997
4997
|
}
|
|
4998
4998
|
}, $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
4999
|
-
_html(`<div${_attr_class("
|
|
4999
|
+
_html(`<div${_attr_class("_s")}></div>`);
|
|
5000
5000
|
_if(() => {
|
|
5001
5001
|
if (outdatedIds.length > 1) {
|
|
5002
5002
|
const $scope15_id = _scope_id();
|
|
@@ -5019,7 +5019,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5019
5019
|
_if(() => {
|
|
5020
5020
|
if (setup && !setup.mise.installed) {
|
|
5021
5021
|
const $scope17_id = _scope_id();
|
|
5022
|
-
_html(`<p${_attr_class("
|
|
5022
|
+
_html(`<p${_attr_class("_bH")}>mise is not installed. It provides every tool below. <button${_attr_class(btnSm)}${_attr("disabled", active.has("mise"))}>${active.has("mise") ? "Installing…" : "Install mise"}${_el_resume($scope17_id, "c")}</button>${_el_resume($scope17_id, "b")}</p>`);
|
|
5023
5023
|
_script($scope17_id, "v45");
|
|
5024
5024
|
writeScope($scope17_id, {});
|
|
5025
5025
|
return 0;
|
|
@@ -5029,16 +5029,16 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5029
5029
|
_if(() => {
|
|
5030
5030
|
if (self) {
|
|
5031
5031
|
const $scope40_id = _scope_id();
|
|
5032
|
-
_html(`<li${_attr_class(row)}><span${_attr_class(["_cs", "
|
|
5032
|
+
_html(`<li${_attr_class(row)}><span${_attr_class(["_cs", "_r"])}>work</span>`);
|
|
5033
5033
|
_if(() => {
|
|
5034
5034
|
if (selfUpdating) {
|
|
5035
5035
|
const $scope69_id = _scope_id();
|
|
5036
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
5036
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_z")}></span>Updating — the app restarts and reloads when it is done…</span>`);
|
|
5037
5037
|
writeScope($scope69_id, {});
|
|
5038
5038
|
return 0;
|
|
5039
5039
|
} else {
|
|
5040
5040
|
const $scope41_id = _scope_id();
|
|
5041
|
-
_html(`<span${_attr_class(["
|
|
5041
|
+
_html(`<span${_attr_class(["_r", metaTrunc])} title="Running version">v<!>${_escape(self.version)}${_el_resume($scope41_id, "b")}</span>`);
|
|
5042
5042
|
_if(() => {
|
|
5043
5043
|
if (self.install === "source") {
|
|
5044
5044
|
const $scope70_id = _scope_id();
|
|
@@ -5067,11 +5067,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5067
5067
|
return 1;
|
|
5068
5068
|
}
|
|
5069
5069
|
}, $scope40_id, "c");
|
|
5070
|
-
_html(`<span${_attr_class("
|
|
5070
|
+
_html(`<span${_attr_class("_s")}></span>`);
|
|
5071
5071
|
_if(() => {
|
|
5072
5072
|
if (!selfUpdating) {
|
|
5073
5073
|
const $scope72_id = _scope_id();
|
|
5074
|
-
_html(`<span${_attr_class("
|
|
5074
|
+
_html(`<span${_attr_class("_C")}>app</span>`);
|
|
5075
5075
|
writeScope($scope72_id, {});
|
|
5076
5076
|
return 0;
|
|
5077
5077
|
}
|
|
@@ -5088,11 +5088,11 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5088
5088
|
const $for_content5__t_path__closures = /* @__PURE__ */ new Set();
|
|
5089
5089
|
const $for_content5__t_latest__closures = /* @__PURE__ */ new Set();
|
|
5090
5090
|
const $for_content5__t_id__closures = /* @__PURE__ */ new Set();
|
|
5091
|
-
_html(`<li${_attr_class([row, { ["_cr"]: !t.installed }])}><span${_attr_class(["_cs", "
|
|
5091
|
+
_html(`<li${_attr_class([row, { ["_cr"]: !t.installed }])}><span${_attr_class(["_cs", "_r"])}>${_escape(t.label)}${_el_resume($scope18_id, "c")}</span>`);
|
|
5092
5092
|
_if(() => {
|
|
5093
5093
|
if (active.has(t.id)) {
|
|
5094
5094
|
const $scope19_id = _scope_id();
|
|
5095
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
5095
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_z")}></span><!>${_escape(active.get(t.id) || "Starting…")}${_el_resume($scope19_id, "c")}</span>`);
|
|
5096
5096
|
_subscribe($active__closures, writeScope($scope19_id, { Cdx: 3 }));
|
|
5097
5097
|
return 0;
|
|
5098
5098
|
} else if (t.installed) {
|
|
@@ -5100,13 +5100,13 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5100
5100
|
_if(() => {
|
|
5101
5101
|
if (t.version) {
|
|
5102
5102
|
const $scope32_id = _scope_id();
|
|
5103
|
-
_html(`<button${_attr_class(["_ct", "
|
|
5103
|
+
_html(`<button${_attr_class(["_ct", "_r"])}${_attr("title", `${t.path || t.label}. Pin a version`)}>v<!>${_escape(t.version)}${_el_resume($scope32_id, "b")}</button>${_el_resume($scope32_id, "a")}`);
|
|
5104
5104
|
_script($scope32_id, "v47");
|
|
5105
5105
|
_subscribe($for_content5__t_path__closures, _subscribe($for_content5__t_version__closures, _subscribe($for_content5__t_label__closures, writeScope($scope32_id, { Cu: 1 }))));
|
|
5106
5106
|
return 0;
|
|
5107
5107
|
} else {
|
|
5108
5108
|
const $scope73_id = _scope_id();
|
|
5109
|
-
_html(`<span${_attr_class([metaTrunc, "
|
|
5109
|
+
_html(`<span${_attr_class([metaTrunc, "_r"])}${_attr("title", t.path)}>${_escape(t.path)}${_el_resume($scope73_id, "b")}</span>${_el_resume($scope73_id, "a")}`);
|
|
5110
5110
|
_subscribe($for_content5__t_path__closures, writeScope($scope73_id, { Cx: 1 }));
|
|
5111
5111
|
return 1;
|
|
5112
5112
|
}
|
|
@@ -5136,14 +5136,14 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5136
5136
|
return 3;
|
|
5137
5137
|
}
|
|
5138
5138
|
}, $scope18_id, "d");
|
|
5139
|
-
_html(`<span${_attr_class("
|
|
5139
|
+
_html(`<span${_attr_class("_s")}></span>`);
|
|
5140
5140
|
_if(() => {
|
|
5141
5141
|
if (!active.has(t.id)) {
|
|
5142
5142
|
const $scope28_id = _scope_id();
|
|
5143
5143
|
_if(() => {
|
|
5144
5144
|
if (t.required) {
|
|
5145
5145
|
const $scope76_id = _scope_id();
|
|
5146
|
-
_html(`<span${_attr_class("
|
|
5146
|
+
_html(`<span${_attr_class("_C")}>required</span>`);
|
|
5147
5147
|
writeScope($scope76_id, {});
|
|
5148
5148
|
return 0;
|
|
5149
5149
|
}
|
|
@@ -5159,9 +5159,9 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5159
5159
|
const $scope29_id = _scope_id();
|
|
5160
5160
|
_html(`<button${_attr_class([
|
|
5161
5161
|
iconBtnXs,
|
|
5162
|
-
"
|
|
5163
|
-
"
|
|
5164
|
-
{ ["
|
|
5162
|
+
"_W",
|
|
5163
|
+
"_X",
|
|
5164
|
+
{ ["_k"]: confirmingRemove === t.id }
|
|
5165
5165
|
])}${confirmingRemove === t.id ? _attr("title", `Remove ${t.label}?`) : _attr("title", `Remove ${t.label}`)}>`);
|
|
5166
5166
|
_if(() => {
|
|
5167
5167
|
if (confirmingRemove === t.id) {
|
|
@@ -5207,28 +5207,28 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5207
5207
|
_if(() => {
|
|
5208
5208
|
if (setup && setup.mise.installed) {
|
|
5209
5209
|
const $scope20_id = _scope_id();
|
|
5210
|
-
_html(`<div><label${_attr_class("
|
|
5210
|
+
_html(`<div><label${_attr_class("_Q")}>`);
|
|
5211
5211
|
icon_search_default({
|
|
5212
5212
|
size: 14,
|
|
5213
|
-
class: "
|
|
5213
|
+
class: "_R"
|
|
5214
5214
|
});
|
|
5215
|
-
_html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "
|
|
5215
|
+
_html(`<input${_attr_input_value($scope20_id, "c", query, search)}${_attr_class([inputLg, "_S"])} type=text placeholder="Add a tool from the mise registry…" aria-label="Search the mise registry" autocomplete=off>${_el_resume($scope20_id, "c")}</label>`);
|
|
5216
5216
|
_if(() => {
|
|
5217
5217
|
if (hits && hits.length) {
|
|
5218
5218
|
const $scope21_id = _scope_id();
|
|
5219
5219
|
_html(`<ul${_attr_class([toolGrid, "_cv"])}>`);
|
|
5220
5220
|
_for_of(hits, (h) => {
|
|
5221
5221
|
const $scope22_id = _scope_id();
|
|
5222
|
-
_html(`<li${_attr_class(row)}><div${_attr_class("
|
|
5222
|
+
_html(`<li${_attr_class(row)}><div${_attr_class("_bC")}><span${_attr_class(["_cs", "_r"])}>${_escape(h.name)}${_el_resume($scope22_id, "d")}</span>`);
|
|
5223
5223
|
_if(() => {
|
|
5224
5224
|
if (active.has(h.name)) {
|
|
5225
5225
|
const $scope23_id = _scope_id();
|
|
5226
|
-
_html(`<span${_attr_class("_cd")}><span${_attr_class("
|
|
5226
|
+
_html(`<span${_attr_class("_cd")}><span${_attr_class("_z")}></span><!>${_escape(active.get(h.name) || "Starting…")}${_el_resume($scope23_id, "c")}</span>`);
|
|
5227
5227
|
_subscribe($active__closures, writeScope($scope23_id, { Cdx: 5 }));
|
|
5228
5228
|
return 0;
|
|
5229
5229
|
} else if (h.description) {
|
|
5230
5230
|
const $scope79_id = _scope_id();
|
|
5231
|
-
_html(`<span${_attr_class("
|
|
5231
|
+
_html(`<span${_attr_class("_bF")}${_attr("title", h.description)}>${_escape(h.description)}${_el_resume($scope79_id, "b")}</span>${_el_resume($scope79_id, "a")}`);
|
|
5232
5232
|
writeScope($scope79_id, {});
|
|
5233
5233
|
return 1;
|
|
5234
5234
|
}
|
|
@@ -5240,7 +5240,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5240
5240
|
_if(() => {
|
|
5241
5241
|
if (h.installed) {
|
|
5242
5242
|
const $scope80_id = _scope_id();
|
|
5243
|
-
_html(`<span${_attr_class("
|
|
5243
|
+
_html(`<span${_attr_class("_C")}>installed</span>`);
|
|
5244
5244
|
writeScope($scope80_id, {});
|
|
5245
5245
|
return 0;
|
|
5246
5246
|
} else {
|
|
@@ -5267,7 +5267,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5267
5267
|
return 0;
|
|
5268
5268
|
} else if (hits && !searching) {
|
|
5269
5269
|
const $scope36_id = _scope_id();
|
|
5270
|
-
_html(`<p${_attr_class("
|
|
5270
|
+
_html(`<p${_attr_class("_bH")}>No tools match "<!>${_escape(query)}${_el_resume($scope36_id, "b")}".</p>`);
|
|
5271
5271
|
_subscribe($query__closures, writeScope($scope36_id, {}));
|
|
5272
5272
|
return 1;
|
|
5273
5273
|
}
|
|
@@ -5278,9 +5278,9 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5278
5278
|
return 0;
|
|
5279
5279
|
}
|
|
5280
5280
|
}, $scope0_id, "ac", 1, 1, 1, 0, 1);
|
|
5281
|
-
_html(`</section><section${_attr_class("
|
|
5281
|
+
_html(`</section><section${_attr_class("_bw")}${_attr("aria-labelledby", appearanceId)}><div${_attr_class("_bx")}><h2${_attr("id", appearanceId)}${_attr_class("_bL")}>Appearance</h2></div><div${_attr_class(["_bB", "_cB"])}><label${_attr_class("_cC")}><span${_attr_class("_cD")}>Name</span><input${_attr_input_value($scope0_id, "aj", input.instance.name, _resume(function(v) {
|
|
5282
5282
|
setInstance({ name: v });
|
|
5283
|
-
}, "v3", $scope0_id))}${_attr_class(["
|
|
5283
|
+
}, "v3", $scope0_id))}${_attr_class(["_O", "_cE"])} type=text placeholder=work maxlength=32 autocomplete=off spellcheck=false aria-describedby=look-name-hint>${_el_resume($scope0_id, "aj")}<span id=look-name-hint${_attr_class(["_M", "_cF"])}>Tab title, home-screen icon, and notifications.</span></label><div${_attr_class("_cC")} role=radiogroup aria-label="Color theme"><span${_attr_class("_cD")}>Theme</span><span${_attr_class("_cG")}>`);
|
|
5284
5284
|
_for_of([
|
|
5285
5285
|
{
|
|
5286
5286
|
id: "system",
|
|
@@ -5303,7 +5303,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5303
5303
|
_: _scope_with_id($scope0_id)
|
|
5304
5304
|
});
|
|
5305
5305
|
}, "id", $scope0_id, "an", 1, 0, 1, 0, 1);
|
|
5306
|
-
_html(`</span><span${_attr_class(["
|
|
5306
|
+
_html(`</span><span${_attr_class(["_M", "_cF"])}>Follow the OS, or force light or dark.</span></div><div${_attr_class("_cC")} role=radiogroup aria-label="Accent colour"><span${_attr_class("_cD")}>Accent</span><span${_attr_class("_cN")}><button type=button${_attr_class([
|
|
5307
5307
|
"_cO",
|
|
5308
5308
|
"_cQ",
|
|
5309
5309
|
{ ["_cP"]: !input.instance.accent }
|
|
@@ -5324,7 +5324,7 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5324
5324
|
{ ["_cP"]: customOn }
|
|
5325
5325
|
])}${customOn ? _attr_style(`--swatch:${input.instance.accent}`) : ""} title="Custom colour"><input${_attr_input_value($scope0_id, "av", input.instance.accent || "#3556d8", _resume(function(v) {
|
|
5326
5326
|
setInstance({ accent: v });
|
|
5327
|
-
}, "v4", $scope0_id))}${_attr_class("_cS")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "av")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}</span><span${_attr_class(["
|
|
5327
|
+
}, "v4", $scope0_id))}${_attr_class("_cS")} type=color aria-label="Custom accent colour">${_el_resume($scope0_id, "av")}<span aria-hidden=true>+</span></label>${_el_resume($scope0_id, "au", $sg__input_instance_accent)}</span><span${_attr_class(["_M", "_cF"])}>Selected rows, buttons, and the icon.</span></div></div></section></div></div></div>`);
|
|
5328
5328
|
_if(() => {
|
|
5329
5329
|
if (versionPick) {
|
|
5330
5330
|
const $scope30_id = _scope_id();
|
|
@@ -5438,12 +5438,12 @@ var settings_page_default = _template("v", (input) => {
|
|
|
5438
5438
|
});
|
|
5439
5439
|
//#endregion
|
|
5440
5440
|
//#region src/tags/new-workspace.css.ts
|
|
5441
|
-
var content$1 = "
|
|
5442
|
-
var section$1 = "
|
|
5443
|
-
var curBase = "
|
|
5444
|
-
var archived = "
|
|
5445
|
-
var archivedHint = "
|
|
5446
|
-
var archivedCard = "
|
|
5441
|
+
var content$1 = "_bV _bO";
|
|
5442
|
+
var section$1 = "_bZ _bw";
|
|
5443
|
+
var curBase = "_b4 _N _M";
|
|
5444
|
+
var archived = "_b9 _bw";
|
|
5445
|
+
var archivedHint = "_b_ _M";
|
|
5446
|
+
var archivedCard = "_ca _bB";
|
|
5447
5447
|
//#endregion
|
|
5448
5448
|
//#region src/tags/icons/icon-check.marko
|
|
5449
5449
|
var icon_check_default = _template("P", (input) => {
|
|
@@ -5478,7 +5478,7 @@ var icon_branch_default = _template("O", (input) => {
|
|
|
5478
5478
|
});
|
|
5479
5479
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
5480
5480
|
});
|
|
5481
|
-
var resultBranch = "
|
|
5481
|
+
var resultBranch = "_eD _T _d";
|
|
5482
5482
|
//#endregion
|
|
5483
5483
|
//#region src/tags/branch-pick.marko
|
|
5484
5484
|
var branch_pick_default = _template("d", (input) => {
|
|
@@ -5489,11 +5489,11 @@ var branch_pick_default = _template("d", (input) => {
|
|
|
5489
5489
|
let branches = null;
|
|
5490
5490
|
let defaultBranch = null;
|
|
5491
5491
|
let branchFilter = "";
|
|
5492
|
-
_html(`<div${_attr_class("
|
|
5492
|
+
_html(`<div${_attr_class("_eF")}>`);
|
|
5493
5493
|
_if(() => {
|
|
5494
5494
|
{
|
|
5495
5495
|
const $scope4_id = _scope_id();
|
|
5496
|
-
_html(`<p${_attr_class("
|
|
5496
|
+
_html(`<p${_attr_class("_bH")}><span${_attr_class("_z")}></span> Loading branches…</p>`);
|
|
5497
5497
|
writeScope($scope4_id, {});
|
|
5498
5498
|
return 0;
|
|
5499
5499
|
}
|
|
@@ -5569,11 +5569,11 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5569
5569
|
const ignored = new Set(prefs$1?.ignoredSsoOrgs?.() ?? []);
|
|
5570
5570
|
return (catalog?.sso || []).filter((s) => !ignored.has(s.org));
|
|
5571
5571
|
})();
|
|
5572
|
-
_html(`<div${_attr_class("
|
|
5572
|
+
_html(`<div${_attr_class("_ew")}>`);
|
|
5573
5573
|
_if(() => {
|
|
5574
5574
|
if (ssoPending.length) {
|
|
5575
5575
|
const $scope7_id = _scope_id();
|
|
5576
|
-
_html(`<div${_attr_class("
|
|
5576
|
+
_html(`<div${_attr_class("_ex")}>`);
|
|
5577
5577
|
_set_serialize_reason(154);
|
|
5578
5578
|
const $childScope = _peek_scope_id();
|
|
5579
5579
|
sso_auth_default({
|
|
@@ -5590,29 +5590,29 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5590
5590
|
return 0;
|
|
5591
5591
|
}
|
|
5592
5592
|
}, $scope0_id, "b", 1, 1, 1, 0, 1);
|
|
5593
|
-
_html(`<label${_attr_class("
|
|
5593
|
+
_html(`<label${_attr_class("_Q")}>`);
|
|
5594
5594
|
icon_search_default({
|
|
5595
5595
|
size: 14,
|
|
5596
|
-
class: "
|
|
5596
|
+
class: "_R"
|
|
5597
5597
|
});
|
|
5598
5598
|
_html(`<input${_attr_input_value($scope0_id, "e", filter, _resume(function(v) {
|
|
5599
5599
|
filter = v;
|
|
5600
5600
|
highlight = 0;
|
|
5601
5601
|
pasteWillFork = false;
|
|
5602
|
-
}, "t0", $scope0_id))}${_attr_class([inputLg, "
|
|
5602
|
+
}, "t0", $scope0_id))}${_attr_class([inputLg, "_S"])} placeholder="Add a repo…" aria-label="Add a repo"${_attr("disabled", input.disabled)}>${_el_resume($scope0_id, "e")}</label>`);
|
|
5603
5603
|
_if(() => {
|
|
5604
5604
|
if (pasted) {
|
|
5605
5605
|
const $scope1_id = _scope_id();
|
|
5606
|
-
_html(`<ul${_attr_class("
|
|
5606
|
+
_html(`<ul${_attr_class("_ey")}><li><div${_attr_class(["_eA", "_ez"])}><button${_attr_class("_eB")}${pasteWillFork ? _attr("title", `Fork ${pasted} to your account and add the fork`) : _attr("title", `Add ${pasted} as-is (pushes go to that repo)`)}>`);
|
|
5607
5607
|
icon_plus_default({
|
|
5608
5608
|
size: 12,
|
|
5609
|
-
class: "
|
|
5609
|
+
class: "_eH"
|
|
5610
5610
|
});
|
|
5611
|
-
_html(`<span${_attr_class("
|
|
5611
|
+
_html(`<span${_attr_class("_eI")}>${_escape(repoLabel(pasted))}${_el_resume($scope1_id, "f")}</span></button>${_el_resume($scope1_id, "c")}`);
|
|
5612
5612
|
_if(() => {
|
|
5613
5613
|
if (pastedForkable) {
|
|
5614
5614
|
const $scope8_id = _scope_id();
|
|
5615
|
-
_html(`<button${_attr_class(["
|
|
5615
|
+
_html(`<button${_attr_class(["_eE", { ["_eC"]: 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"}>`);
|
|
5616
5616
|
_if(() => {
|
|
5617
5617
|
if (pasteWillFork) {
|
|
5618
5618
|
const $scope10_id = _scope_id();
|
|
@@ -5632,7 +5632,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5632
5632
|
return 0;
|
|
5633
5633
|
}
|
|
5634
5634
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
5635
|
-
_html(`<button${_attr_class([resultBranch, { ["
|
|
5635
|
+
_html(`<button${_attr_class([resultBranch, { ["_eC"]: branchesFor === pasted }])}${_attr("title", `Pick a base branch for ${pasted}`)}${_attr("aria-label", `Pick a base branch for ${pasted}`)}>`);
|
|
5636
5636
|
icon_branch_default({ size: 12 });
|
|
5637
5637
|
_html(`</button>${_el_resume($scope1_id, "h")}</div>`);
|
|
5638
5638
|
_if(() => {
|
|
@@ -5659,7 +5659,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5659
5659
|
return 0;
|
|
5660
5660
|
} else if (filter && !catalog) {
|
|
5661
5661
|
const $scope9_id = _scope_id();
|
|
5662
|
-
_html(`<p${_attr_class("
|
|
5662
|
+
_html(`<p${_attr_class("_bH")}>Loading repos…</p>`);
|
|
5663
5663
|
writeScope($scope9_id, {});
|
|
5664
5664
|
return 1;
|
|
5665
5665
|
}
|
|
@@ -5667,15 +5667,15 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5667
5667
|
_if(() => {
|
|
5668
5668
|
if (results.length) {
|
|
5669
5669
|
const $scope3_id = _scope_id();
|
|
5670
|
-
_html(`<ul${_attr_class("
|
|
5670
|
+
_html(`<ul${_attr_class("_ey")}>`);
|
|
5671
5671
|
_for_of(results, (repo, i) => {
|
|
5672
5672
|
const $scope4_id = _scope_id();
|
|
5673
|
-
_html(`<li><div${_attr_class(["
|
|
5673
|
+
_html(`<li><div${_attr_class(["_eA", { ["_ez"]: i === highlight }])}><button${_attr_class("_eB")}>`);
|
|
5674
5674
|
icon_plus_default({
|
|
5675
5675
|
size: 12,
|
|
5676
|
-
class: "
|
|
5676
|
+
class: "_eH"
|
|
5677
5677
|
});
|
|
5678
|
-
_html(`<span${_attr_class("
|
|
5678
|
+
_html(`<span${_attr_class("_eI")}>${_escape(repoLabel(repo.nameWithOwner))}${_el_resume($scope4_id, "e")}</span></button>${_el_resume($scope4_id, "b")}<button${_attr_class([resultBranch, { ["_eC"]: branchesFor === repo.nameWithOwner }])}${_attr("title", `Pick a base branch for ${repo.nameWithOwner}`)}${_attr("aria-label", `Pick a base branch for ${repo.nameWithOwner}`)}>`);
|
|
5679
5679
|
icon_branch_default({ size: 12 });
|
|
5680
5680
|
_html(`</button>${_el_resume($scope4_id, "f")}</div>${_el_resume($scope4_id, "a")}`);
|
|
5681
5681
|
_if(() => {
|
|
@@ -5710,7 +5710,7 @@ var repo_picker_default = _template("t", (input) => {
|
|
|
5710
5710
|
return 0;
|
|
5711
5711
|
} else if (filter && catalog && !pasted) {
|
|
5712
5712
|
const $scope6_id = _scope_id();
|
|
5713
|
-
_html(`<p${_attr_class("
|
|
5713
|
+
_html(`<p${_attr_class("_bH")}>No repos match "<!>${_escape(filter)}${_el_resume($scope6_id, "b")}". Paste a clone URL to add any repo.</p>`);
|
|
5714
5714
|
writeScope($scope6_id, {});
|
|
5715
5715
|
return 1;
|
|
5716
5716
|
}
|
|
@@ -5851,7 +5851,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
5851
5851
|
}
|
|
5852
5852
|
}, "q6", $scope0_id);
|
|
5853
5853
|
const titleId = _id();
|
|
5854
|
-
_html(`<div${_attr_class("
|
|
5854
|
+
_html(`<div${_attr_class("_bM")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bN")}><div${_attr_class(content$1)}>`);
|
|
5855
5855
|
_set_serialize_reason({
|
|
5856
5856
|
0: _serialize_guard($scope0_reason, 2),
|
|
5857
5857
|
1: $sg__input_backHref__OR__input_onExit,
|
|
@@ -5890,23 +5890,23 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
5890
5890
|
return 0;
|
|
5891
5891
|
}
|
|
5892
5892
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
5893
|
-
_html(`<label${_attr_class("
|
|
5893
|
+
_html(`<label${_attr_class("_bY")}><span${_attr_class("_bL")}>Name</span><input${_attr_input_value($scope0_id, "h", name, _resume((_new_name) => {
|
|
5894
5894
|
name = _new_name;
|
|
5895
|
-
}, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("
|
|
5895
|
+
}, "q0", $scope0_id))}${_attr_class(inputLg)} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope0_id, "h")}</label><section${_attr_class(section$1)}><div${_attr_class("_b0")}><h2${_attr_class("_bL")}>Repos</h2><button${_attr_class(iconBtnRow)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
5896
5896
|
_set_serialize_reason(1);
|
|
5897
5897
|
const $childScope2 = _peek_scope_id();
|
|
5898
5898
|
icon_refresh_default({
|
|
5899
5899
|
size: 14,
|
|
5900
|
-
class: catalogRefreshing && "
|
|
5900
|
+
class: catalogRefreshing && "_y"
|
|
5901
5901
|
});
|
|
5902
|
-
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("
|
|
5902
|
+
_html(`</button>${_el_resume($scope0_id, "l")}</div><ul${_attr_class("_b1")}>`);
|
|
5903
5903
|
_for_of(selected, (repo) => {
|
|
5904
5904
|
const $scope2_id = _scope_id();
|
|
5905
|
-
_html(`<li><div${_attr_class(row)}><span${_attr_class("
|
|
5905
|
+
_html(`<li><div${_attr_class(row)}><span${_attr_class("_b2")}>${_escape(repoLabel(repo.fullName))}${_el_resume($scope2_id, "c")}</span>`);
|
|
5906
5906
|
_if(() => {
|
|
5907
5907
|
if (repo.fork !== void 0) {
|
|
5908
5908
|
const $scope3_id = _scope_id();
|
|
5909
|
-
_html(`<button${_attr_class(["
|
|
5909
|
+
_html(`<button${_attr_class(["_b5", { ["_b3"]: 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)}>`);
|
|
5910
5910
|
_if(() => {
|
|
5911
5911
|
if (repo.fork) {
|
|
5912
5912
|
const $scope12_id = _scope_id();
|
|
@@ -5928,11 +5928,11 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
5928
5928
|
}, $scope2_id, "d", 1, 1, 1, 0, 1);
|
|
5929
5929
|
_html(`<button${_attr_class([
|
|
5930
5930
|
curBase,
|
|
5931
|
-
"
|
|
5932
|
-
{ ["
|
|
5931
|
+
"_r",
|
|
5932
|
+
{ ["_b3"]: branchesFor === repo.fullName }
|
|
5933
5933
|
])}${_attr("title", `Change base branch for ${repo.fullName}`)}${_attr("aria-label", `Change base branch for ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5934
5934
|
icon_branch_default({ size: 12 });
|
|
5935
|
-
_html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "
|
|
5935
|
+
_html(`<!>${repo.baseBranch ? ` ${_escape(`${_to_text(repo.baseBranch)}`)}` : ""}${_el_resume($scope2_id, "g")}</button>${_el_resume($scope2_id, "e")}<button${_attr_class([iconBtnXs, "_W"])}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>`);
|
|
5936
5936
|
icon_xmark_default({ size: 12 });
|
|
5937
5937
|
_html(`</button>${_el_resume($scope2_id, "h")}</div>`);
|
|
5938
5938
|
_if(() => {
|
|
@@ -5965,7 +5965,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
5965
5965
|
_if(() => {
|
|
5966
5966
|
if (!selected.length) {
|
|
5967
5967
|
const $scope14_id = _scope_id();
|
|
5968
|
-
_html(`<li${_attr_class("
|
|
5968
|
+
_html(`<li${_attr_class("_bH")}>No repos yet. Search below to add one, or create it empty.</li>`);
|
|
5969
5969
|
writeScope($scope14_id, {});
|
|
5970
5970
|
return 0;
|
|
5971
5971
|
}
|
|
@@ -5990,19 +5990,19 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
5990
5990
|
_if(() => {
|
|
5991
5991
|
if (busy && steps$1.length) {
|
|
5992
5992
|
const $scope9_id = _scope_id();
|
|
5993
|
-
_html(`<ul${_attr_class("
|
|
5993
|
+
_html(`<ul${_attr_class("_b6")}>`);
|
|
5994
5994
|
_for_of(steps$1, (step$1, i) => {
|
|
5995
5995
|
const $scope10_id = _scope_id();
|
|
5996
|
-
_html(`<li${_attr_class(["
|
|
5996
|
+
_html(`<li${_attr_class(["_cb", { ["_b7"]: i === steps$1.length - 1 }])}>`);
|
|
5997
5997
|
_if(() => {
|
|
5998
5998
|
if (i === steps$1.length - 1) {
|
|
5999
5999
|
const $scope15_id = _scope_id();
|
|
6000
|
-
_html(`<span${_attr_class("
|
|
6000
|
+
_html(`<span${_attr_class("_z")}></span>`);
|
|
6001
6001
|
writeScope($scope15_id, {});
|
|
6002
6002
|
return 0;
|
|
6003
6003
|
} else {
|
|
6004
6004
|
const $scope16_id = _scope_id();
|
|
6005
|
-
_html(`<span${_attr_class("
|
|
6005
|
+
_html(`<span${_attr_class("_b8")}>`);
|
|
6006
6006
|
icon_check_default({ size: 14 });
|
|
6007
6007
|
_html("</span>");
|
|
6008
6008
|
writeScope($scope16_id, {});
|
|
@@ -6016,7 +6016,7 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6016
6016
|
return 0;
|
|
6017
6017
|
}
|
|
6018
6018
|
}, $scope0_id, "s", 1, 1, 1, 0, 1);
|
|
6019
|
-
_html(`<div${_attr_class("
|
|
6019
|
+
_html(`<div${_attr_class("_bW")}>`);
|
|
6020
6020
|
_if(() => {
|
|
6021
6021
|
if (input.onExit || busy) {
|
|
6022
6022
|
const $scope1_id = _scope_id();
|
|
@@ -6028,20 +6028,20 @@ var new_workspace_default = _template("q", (input) => {
|
|
|
6028
6028
|
}, $scope0_id, "u", 1, 1, 1, 0, 1);
|
|
6029
6029
|
_html(`<button type=button${_attr_class([
|
|
6030
6030
|
btnLg,
|
|
6031
|
-
"
|
|
6032
|
-
"
|
|
6031
|
+
"_j",
|
|
6032
|
+
"_bX"
|
|
6033
6033
|
])}${_attr("disabled", busy || !!restoring || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope0_id, "w")}</button>${_el_resume($scope0_id, "v")}</div>`);
|
|
6034
6034
|
_if(() => {
|
|
6035
6035
|
if (archived$1.length) {
|
|
6036
6036
|
const $scope4_id = _scope_id();
|
|
6037
|
-
_html(`<section${_attr_class(archived)}><div${_attr_class("
|
|
6037
|
+
_html(`<section${_attr_class(archived)}><div${_attr_class("_b0")}><h2${_attr_class("_bL")}>Archived</h2><span${_attr_class(sectionCount$1)}>${_escape(archived$1.length)}${_el_resume($scope4_id, "e", $sg__input_workspaces)}</span></div><p${_attr_class(archivedHint)}>Restore an archived workspace instead of creating a new one.</p><ul${_attr_class("_bz")}>`);
|
|
6038
6038
|
_for_of(archived$1, (ws) => {
|
|
6039
6039
|
const $scope5_id = _scope_id();
|
|
6040
|
-
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("
|
|
6040
|
+
_html(`<li${_attr_class(archivedCard)}><div${_attr_class("_bC")}><span${_attr_class("_bD")}>${_escape(ws.name)}${_el_resume($scope5_id, "d", $sg__input_workspaces)}</span><span${_attr_class([metaTrunc, "_r"])}${_attr("title", ws.display_path || ws.path)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope5_id, "f", $sg__input_workspaces)}</span>${_el_resume($scope5_id, "e", $sg__input_workspaces)}</div><button type=button${_attr_class(btnLg)}${_attr("disabled", busy || !!restoring)}>`);
|
|
6041
6041
|
_if(() => {
|
|
6042
6042
|
if (restoring === ws.id) {
|
|
6043
6043
|
const $scope17_id = _scope_id();
|
|
6044
|
-
_html(`<span${_attr_class("
|
|
6044
|
+
_html(`<span${_attr_class("_z")}></span> Restoring…`);
|
|
6045
6045
|
writeScope($scope17_id, {});
|
|
6046
6046
|
return 0;
|
|
6047
6047
|
} else {
|
|
@@ -6194,8 +6194,8 @@ function activeAgent(session) {
|
|
|
6194
6194
|
const command = session.state?.command?.trim();
|
|
6195
6195
|
return command && agentFromCommand(command) || session.agent;
|
|
6196
6196
|
}
|
|
6197
|
-
var iconBtn$1 = "
|
|
6198
|
-
var navToggle = "
|
|
6197
|
+
var iconBtn$1 = "_c5 _d";
|
|
6198
|
+
var navToggle = "_c_ _d";
|
|
6199
6199
|
_template("N", (input) => {
|
|
6200
6200
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6201
6201
|
const $scope0_id = _scope_id();
|
|
@@ -6213,7 +6213,7 @@ _template("N", (input) => {
|
|
|
6213
6213
|
});
|
|
6214
6214
|
//#endregion
|
|
6215
6215
|
//#region src/tags/icons/icon-settings.marko
|
|
6216
|
-
var icon_settings_default = _template("
|
|
6216
|
+
var icon_settings_default = _template("gb", (input) => {
|
|
6217
6217
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6218
6218
|
const $scope0_id = _scope_id();
|
|
6219
6219
|
_set_serialize_reason({
|
|
@@ -6238,12 +6238,12 @@ var ARM_MS = 3500;
|
|
|
6238
6238
|
function disarmLater(fn) {
|
|
6239
6239
|
return setTimeout(fn, ARM_MS);
|
|
6240
6240
|
}
|
|
6241
|
-
var railBtn = "
|
|
6242
|
-
var rowIcon = "
|
|
6243
|
-
var close = "
|
|
6241
|
+
var railBtn = "_gs _d";
|
|
6242
|
+
var rowIcon = "_gB _T _d";
|
|
6243
|
+
var close = "_gC _T _d _W";
|
|
6244
6244
|
//#endregion
|
|
6245
6245
|
//#region src/styles/session-pop.css.ts
|
|
6246
|
-
var sessionPop = "
|
|
6246
|
+
var sessionPop = "_fS _Y";
|
|
6247
6247
|
//#endregion
|
|
6248
6248
|
//#region src/client/usage.ts
|
|
6249
6249
|
/** The plan row an agent instance draws on: its own account (`claude2`)
|
|
@@ -6257,7 +6257,7 @@ function usageFor(agentId, usage) {
|
|
|
6257
6257
|
}
|
|
6258
6258
|
//#endregion
|
|
6259
6259
|
//#region src/tags/icons/icon-diff.marko
|
|
6260
|
-
var icon_diff_default = _template("
|
|
6260
|
+
var icon_diff_default = _template("V", (input) => {
|
|
6261
6261
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6262
6262
|
const $scope0_id = _scope_id();
|
|
6263
6263
|
_set_serialize_reason({
|
|
@@ -6274,7 +6274,7 @@ var icon_diff_default = _template("U", (input) => {
|
|
|
6274
6274
|
});
|
|
6275
6275
|
//#endregion
|
|
6276
6276
|
//#region src/tags/icons/icon-manage.marko
|
|
6277
|
-
var icon_manage_default = _template("
|
|
6277
|
+
var icon_manage_default = _template("cb", (input) => {
|
|
6278
6278
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6279
6279
|
const $scope0_id = _scope_id();
|
|
6280
6280
|
_set_serialize_reason({
|
|
@@ -6304,22 +6304,22 @@ var usage_pcts_default = _template("E", (input) => {
|
|
|
6304
6304
|
if (windows.length) {
|
|
6305
6305
|
const $scope1_id = _scope_id();
|
|
6306
6306
|
_html(`<span${_attr_class([
|
|
6307
|
-
"
|
|
6307
|
+
"_gT",
|
|
6308
6308
|
input.class,
|
|
6309
|
-
{ ["
|
|
6309
|
+
{ ["_gU"]: agent.stale_seconds != null }
|
|
6310
6310
|
])}${agent.stale_seconds != null ? _attr("title", `${agent.note || "provider unreachable"}; last cached numbers`) : " title=\"Plan usage\""}>`);
|
|
6311
6311
|
_for_of(windows, (win$1, i) => {
|
|
6312
6312
|
const $scope2_id = _scope_id();
|
|
6313
|
-
_html(`<span${_attr_class("
|
|
6313
|
+
_html(`<span${_attr_class("_gV")}>`);
|
|
6314
6314
|
_if(() => {
|
|
6315
6315
|
if (i) {
|
|
6316
6316
|
const $scope3_id = _scope_id();
|
|
6317
|
-
_html(`<span${_attr_class("
|
|
6317
|
+
_html(`<span${_attr_class("_gY")} aria-hidden=true>·</span>`);
|
|
6318
6318
|
$si__input_agent && writeScope($scope3_id, {});
|
|
6319
6319
|
return 0;
|
|
6320
6320
|
}
|
|
6321
6321
|
}, $scope2_id, "b", $sg__input_agent, $sg__input_agent, $sg__input_agent, 0, 1);
|
|
6322
|
-
_html(`<span${_attr_class("
|
|
6322
|
+
_html(`<span${_attr_class("_gW")}>${_escape(win$1.window)}${_el_resume($scope2_id, "d", $sg__input_agent)}</span><span${_attr_class(["_gX", win$1.used_percent >= 90 ? "_e6" : win$1.used_percent >= 70 ? "_e5" : win$1.used_percent >= 40 ? "_e4" : "_e3"])}>${_escape(pctText(win$1.used_percent))}${_el_resume($scope2_id, "f", $sg__input_agent)}</span>${_el_resume($scope2_id, "e", $sg__input_agent)}</span>`);
|
|
6323
6323
|
$si__input_agent && writeScope($scope2_id, {});
|
|
6324
6324
|
}, "window", $scope1_id, "a", $sg__input_agent, $sg__input_agent__OR__input_class, $sg__input_agent, "</span>", 1);
|
|
6325
6325
|
$si__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -6335,7 +6335,7 @@ var usage_pcts_default = _template("E", (input) => {
|
|
|
6335
6335
|
});
|
|
6336
6336
|
//#endregion
|
|
6337
6337
|
//#region src/tags/icons/icon-edit.marko
|
|
6338
|
-
var icon_edit_default = _template("
|
|
6338
|
+
var icon_edit_default = _template("X", (input) => {
|
|
6339
6339
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6340
6340
|
const $scope0_id = _scope_id();
|
|
6341
6341
|
_set_serialize_reason({
|
|
@@ -6350,12 +6350,12 @@ var icon_edit_default = _template("W", (input) => {
|
|
|
6350
6350
|
});
|
|
6351
6351
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
6352
6352
|
});
|
|
6353
|
-
var prChip = "
|
|
6354
|
-
var portChip = "
|
|
6353
|
+
var prChip = "_hs _m _hr";
|
|
6354
|
+
var portChip = "_ht _m _hr";
|
|
6355
6355
|
var prState = {
|
|
6356
|
-
open: "
|
|
6357
|
-
merged: "
|
|
6358
|
-
closed: "
|
|
6356
|
+
open: "_hx",
|
|
6357
|
+
merged: "_hy",
|
|
6358
|
+
closed: "_hz"
|
|
6359
6359
|
};
|
|
6360
6360
|
//#endregion
|
|
6361
6361
|
//#region src/tags/side-nav-chips.marko
|
|
@@ -6403,7 +6403,7 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6403
6403
|
const name = repo.full_name.split("/").at(-1);
|
|
6404
6404
|
return repos.some((r) => r.full_name !== repo.full_name && r.full_name.split("/").at(-1) === name) ? repoLabel(repo.full_name) : name;
|
|
6405
6405
|
}, "w2", $scope1_id);
|
|
6406
|
-
_html(`<div${_attr_class("
|
|
6406
|
+
_html(`<div${_attr_class("_hq")}>`);
|
|
6407
6407
|
_for_of(repos, (repo) => {
|
|
6408
6408
|
const $scope2_id = _scope_id();
|
|
6409
6409
|
const $for_content__repo_worktree__closures = /* @__PURE__ */ new Set();
|
|
@@ -6411,19 +6411,19 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6411
6411
|
const $scope3_id = _scope_id();
|
|
6412
6412
|
const open = isOpen(pr);
|
|
6413
6413
|
_html(`<span${_attr_class([
|
|
6414
|
-
"
|
|
6414
|
+
"_m",
|
|
6415
6415
|
prChip,
|
|
6416
6416
|
{
|
|
6417
|
-
["
|
|
6418
|
-
["
|
|
6417
|
+
["_o"]: open && !pr.isDraft,
|
|
6418
|
+
["_p"]: open && pr.isDraft,
|
|
6419
6419
|
[prState.merged]: pr.state === "MERGED",
|
|
6420
6420
|
[prState.closed]: pr.state === "CLOSED"
|
|
6421
6421
|
}
|
|
6422
|
-
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["
|
|
6422
|
+
])}${_attr("title", prTitle(repo, pr))}><a${_attr_class(["_hu", { ["_hB"]: !open }])}${_attr("href", pr.url)} target=_blank rel=noopener>${_escape(repoLabel$1(repo))}${_el_resume($scope3_id, "c", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</a>${_el_resume($scope3_id, "b", $sg__input_status_repos)}`);
|
|
6423
6423
|
_if(() => {
|
|
6424
6424
|
if (open) {
|
|
6425
6425
|
const $scope4_id = _scope_id();
|
|
6426
|
-
_html(`<a${_attr_class(["
|
|
6426
|
+
_html(`<a${_attr_class(["_hu", "_hv"])}${_attr("href", `/w/${input.workspaceId}/review?pr=${encodeURIComponent(`${repo.worktree}/${pr.number}`)}`)}${_attr("title", `Review #${pr.number} changes`)}>`);
|
|
6427
6427
|
icon_diff_default({ size: 12 });
|
|
6428
6428
|
_html(`</a>${_el_resume($scope4_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
6429
6429
|
_serialize_if($scope0_reason, 2) && _subscribe($si__input_status_repos && $for_content__repo_worktree__closures, _subscribe($si__input_workspaceId && $input_workspaceId__closures, writeScope($scope4_id, { _: _scope_with_id($scope3_id) })));
|
|
@@ -6431,9 +6431,9 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6431
6431
|
} else {
|
|
6432
6432
|
const $scope6_id = _scope_id();
|
|
6433
6433
|
_html(`<button type=button${_attr_class([
|
|
6434
|
-
"
|
|
6435
|
-
"
|
|
6436
|
-
"
|
|
6434
|
+
"_hu",
|
|
6435
|
+
"_hv",
|
|
6436
|
+
"_hw"
|
|
6437
6437
|
])}${_attr("title", `Dismiss #${pr.number}`)}>`);
|
|
6438
6438
|
icon_xmark_default({ size: 12 });
|
|
6439
6439
|
_html(`</button>${_el_resume($scope6_id, "a")}`);
|
|
@@ -6458,11 +6458,11 @@ var side_nav_chips_default = _template("w", (input) => {
|
|
|
6458
6458
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
6459
6459
|
_for_of(ports, (p) => {
|
|
6460
6460
|
const $scope5_id = _scope_id();
|
|
6461
|
-
_html(`<span${_attr_class(["
|
|
6462
|
-
"_hs",
|
|
6463
|
-
"_ht",
|
|
6461
|
+
_html(`<span${_attr_class(["_m", portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(["_hu", "_hA"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope5_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope5_id, "b")}<button type=button${_attr_class([
|
|
6464
6462
|
"_hu",
|
|
6465
|
-
|
|
6463
|
+
"_hv",
|
|
6464
|
+
"_hw",
|
|
6465
|
+
{ ["_k"]: armedPid === p.pid }
|
|
6466
6466
|
])}${armedPid === p.pid ? " title=Kill?" : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>`);
|
|
6467
6467
|
icon_xmark_default({ size: 12 });
|
|
6468
6468
|
_html(`</button>${_el_resume($scope5_id, "d")}</span>${_el_resume($scope5_id, "a", $sg__input_status_ports)}`);
|
|
@@ -6553,10 +6553,10 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6553
6553
|
_if(() => {
|
|
6554
6554
|
if (input.rail) {
|
|
6555
6555
|
const $scope2_id = _scope_id();
|
|
6556
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["
|
|
6557
|
-
"
|
|
6556
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}`)}${_attr_class([railBtn, { ["_gq"]: input.current }])}${_attr("title", ws$1.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 27))}<span${_attr_class([
|
|
6557
|
+
"_t",
|
|
6558
6558
|
phase[dot],
|
|
6559
|
-
"
|
|
6559
|
+
"_gt"
|
|
6560
6560
|
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</a>${_el_resume($scope2_id, "a", _serialize_guard($scope0_reason, 3))}`);
|
|
6561
6561
|
_serialize_if($scope0_reason, 18) && _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })))));
|
|
6562
6562
|
return 0;
|
|
@@ -6564,15 +6564,15 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6564
6564
|
const $scope3_id = _scope_id();
|
|
6565
6565
|
const sessions$1 = input.sessions || [];
|
|
6566
6566
|
const phaseLabel = dot === "working" ? "Working" : dot === "waiting" ? "Needs input" : dot === "idle" ? "Idle" : "Not running";
|
|
6567
|
-
_html(`<section${_attr_class(["
|
|
6568
|
-
["
|
|
6569
|
-
["
|
|
6570
|
-
["
|
|
6571
|
-
["
|
|
6572
|
-
}])}><div${_attr_class("
|
|
6573
|
-
"
|
|
6567
|
+
_html(`<section${_attr_class(["_gv", {
|
|
6568
|
+
["_gq"]: input.current,
|
|
6569
|
+
["_Z"]: input.current,
|
|
6570
|
+
["_gw"]: input.railPop,
|
|
6571
|
+
["_gu"]: input.page
|
|
6572
|
+
}])}><div${_attr_class("_gx")}><a${_attr("href", `/w/${ws$1.id}`)}${_attr_class("_gy")}><span${_attr_class([
|
|
6573
|
+
"_t",
|
|
6574
6574
|
phase[dot],
|
|
6575
|
-
"
|
|
6575
|
+
"_gL"
|
|
6576
6576
|
])}${_attr("title", phaseLabel)}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}`);
|
|
6577
6577
|
_if(() => {
|
|
6578
6578
|
if (sessions$1.length === 1) {
|
|
@@ -6585,7 +6585,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6585
6585
|
icon_agent_default({
|
|
6586
6586
|
agent: activeAgent(sessions$1[0]),
|
|
6587
6587
|
size: 12,
|
|
6588
|
-
class: "
|
|
6588
|
+
class: "_gD"
|
|
6589
6589
|
});
|
|
6590
6590
|
$si__input_sessions && writeScope($scope14_id, {
|
|
6591
6591
|
_: _scope_with_id($scope3_id),
|
|
@@ -6595,16 +6595,16 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6595
6595
|
}
|
|
6596
6596
|
}, $scope3_id, "e", $sg__input_sessions, $sg__input_sessions);
|
|
6597
6597
|
const metaText = sessions$1.length === 0 ? phaseLabel : sessions$1.length === 1 ? sessions$1[0].title || "" : `${sessions$1.length} sessions`;
|
|
6598
|
-
_html(`<span${_attr_class("
|
|
6598
|
+
_html(`<span${_attr_class("_gE")}><span${_attr_class("_gF")}>${_escape(ws$1.name)}${_el_resume($scope3_id, "h", $sg__input_workspaces__OR__input_workspaceId)}</span>`);
|
|
6599
6599
|
_if(() => {
|
|
6600
6600
|
if (input.page && metaText) {
|
|
6601
6601
|
const $scope16_id = _scope_id();
|
|
6602
|
-
_html(`<span${_attr_class("
|
|
6602
|
+
_html(`<span${_attr_class("_gJ")}>${_escape(metaText)}${_el_resume($scope16_id, "b", _serialize_guard($scope0_reason, 7))}</span>`);
|
|
6603
6603
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope16_id, { _: _serialize_if($scope0_reason, 7) && _scope_with_id($scope3_id) });
|
|
6604
6604
|
return 0;
|
|
6605
6605
|
} else if (sessions$1.length === 1 && sessions$1[0].title) {
|
|
6606
6606
|
const $scope15_id = _scope_id();
|
|
6607
|
-
_html(`<span${_attr_class("
|
|
6607
|
+
_html(`<span${_attr_class("_gG")}>${_escape(sessions$1[0].title)}${_el_resume($scope15_id, "b", $sg__input_sessions)}</span>`);
|
|
6608
6608
|
$si__input_page__OR__input_sessions__OR__input_workspaceId__OR__input_status && writeScope($scope15_id, { _: $si__input_sessions && _scope_with_id($scope3_id) });
|
|
6609
6609
|
return 1;
|
|
6610
6610
|
}
|
|
@@ -6614,10 +6614,10 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6614
6614
|
if (input.page) {
|
|
6615
6615
|
const $scope4_id = _scope_id();
|
|
6616
6616
|
_html(`<span${_attr_class([
|
|
6617
|
-
"
|
|
6618
|
-
"
|
|
6619
|
-
"
|
|
6620
|
-
"
|
|
6617
|
+
"_C",
|
|
6618
|
+
"_L",
|
|
6619
|
+
"_E",
|
|
6620
|
+
"_gK"
|
|
6621
6621
|
])}>${input.current ? "Open" : ""}${_el_resume($scope4_id, "b", _serialize_guard($scope0_reason, 21))}</span>`);
|
|
6622
6622
|
$si__input_current__OR__input_page__OR__input_rail__OR__input_workspaces__OR__input_workspaceId && _subscribe($si__input_current && $input_current__closures, writeScope($scope4_id, {
|
|
6623
6623
|
_: _scope_with_id($scope3_id),
|
|
@@ -6630,7 +6630,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6630
6630
|
_if(() => {
|
|
6631
6631
|
if (!input.page) {
|
|
6632
6632
|
const $scope5_id = _scope_id();
|
|
6633
|
-
_html(`<div${_attr_class("
|
|
6633
|
+
_html(`<div${_attr_class("_gz")}>`);
|
|
6634
6634
|
_if(() => {
|
|
6635
6635
|
if (input.onNewSession) {
|
|
6636
6636
|
const $scope6_id = _scope_id();
|
|
@@ -6644,7 +6644,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6644
6644
|
_html(`</button>${_el_resume($scope6_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(sessionPop)}>`);
|
|
6645
6645
|
_for_of([], (agent) => {
|
|
6646
6646
|
const $scope7_id = _scope_id();
|
|
6647
|
-
_html(`<button${_attr_class("
|
|
6647
|
+
_html(`<button${_attr_class("_fT")}>`);
|
|
6648
6648
|
_set_serialize_reason(12);
|
|
6649
6649
|
const $childScope2 = _peek_scope_id();
|
|
6650
6650
|
icon_agent_default({
|
|
@@ -6679,7 +6679,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6679
6679
|
return 0;
|
|
6680
6680
|
}
|
|
6681
6681
|
}, $scope5_id, "c", $sg__input_onReview, $sg__input_onReview, $sg__input_onNewSession__OR__input_onReview, 0, 1);
|
|
6682
|
-
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["
|
|
6682
|
+
_html(`<a${input.managing ? _attr("href", `/w/${ws$1.id}`) : _attr("href", `/w/${ws$1.id}/manage`)}${_attr_class([rowIcon, { ["_gr"]: input.managing }])} title=${input.managing ? "\"Back to terminal\"" : "\"Manage workspace\""}${input.managing ? " aria-current=page" : ""}>`);
|
|
6683
6683
|
icon_manage_default({ size: 12 });
|
|
6684
6684
|
_html(`</a>${_el_resume($scope5_id, "d", _serialize_guard($scope0_reason, 8))}</div>`);
|
|
6685
6685
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_id__closures, _subscribe($si__input_managing && $input_managing__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, writeScope($scope5_id, {
|
|
@@ -6689,7 +6689,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6689
6689
|
return 0;
|
|
6690
6690
|
}
|
|
6691
6691
|
}, $scope3_id, "k", $sg__input_page, $sg__input_page, 1, 0, 1);
|
|
6692
|
-
_html(`</div><div${_attr_class("
|
|
6692
|
+
_html(`</div><div${_attr_class("_gQ")}>`);
|
|
6693
6693
|
_if(() => {
|
|
6694
6694
|
if (sessions$1.length === 1 && openPlan) {
|
|
6695
6695
|
const $scope11_id = _scope_id();
|
|
@@ -6697,7 +6697,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6697
6697
|
const $childScope3 = _peek_scope_id();
|
|
6698
6698
|
usage_pcts_default({
|
|
6699
6699
|
agent: openPlan,
|
|
6700
|
-
class: "
|
|
6700
|
+
class: "_gH"
|
|
6701
6701
|
});
|
|
6702
6702
|
_subscribe($openPlan__closures, writeScope($scope11_id, {
|
|
6703
6703
|
a: _existing_scope($childScope3),
|
|
@@ -6708,14 +6708,14 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6708
6708
|
}, $scope3_id, "m");
|
|
6709
6709
|
_for_of(sessions$1.length > 1 ? sessions$1 : [], (s) => {
|
|
6710
6710
|
const $scope8_id = _scope_id();
|
|
6711
|
-
_html(`<div${_attr_class(["
|
|
6711
|
+
_html(`<div${_attr_class(["_gA", { ["_gq"]: s.id === input.currentTab }])}>`);
|
|
6712
6712
|
_if(() => {
|
|
6713
6713
|
if (renamingId === s.id) {
|
|
6714
6714
|
const $scope10_id = _scope_id();
|
|
6715
6715
|
_html(`<span${_attr_class([
|
|
6716
|
-
"
|
|
6716
|
+
"_t",
|
|
6717
6717
|
phase[sessionPhase(s.state)],
|
|
6718
|
-
"
|
|
6718
|
+
"_gO"
|
|
6719
6719
|
])}></span>${_el_resume($scope10_id, "a", $sg__input_sessions)}`);
|
|
6720
6720
|
_set_serialize_reason({
|
|
6721
6721
|
1: $sg__input_sessions,
|
|
@@ -6725,17 +6725,17 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6725
6725
|
icon_agent_default({
|
|
6726
6726
|
agent: activeAgent(s),
|
|
6727
6727
|
size: 13,
|
|
6728
|
-
class: "
|
|
6728
|
+
class: "_gS"
|
|
6729
6729
|
});
|
|
6730
6730
|
_html(`<input${_attr_input_value($scope10_id, "c", renameValue, _resume((_new_renameValue) => {
|
|
6731
6731
|
renameValue = _new_renameValue;
|
|
6732
|
-
}, "x0", $scope10_id))}${_attr_class(["
|
|
6732
|
+
}, "x0", $scope10_id))}${_attr_class(["_O", "_gP"])} aria-label="Session name">${_el_resume($scope10_id, "c")}`);
|
|
6733
6733
|
_script($scope10_id, "x5");
|
|
6734
6734
|
_subscribe($renameValue__closures, writeScope($scope10_id, { b: $si__input_sessions && _existing_scope($childScope4) }));
|
|
6735
6735
|
return 0;
|
|
6736
6736
|
} else {
|
|
6737
6737
|
const $scope9_id = _scope_id();
|
|
6738
|
-
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("
|
|
6738
|
+
_html(`<a${_attr("href", `/w/${ws$1.id}?s=${s.id}`)}${_attr_class("_gR")}><span${_attr_class(["_t", phase[sessionPhase(s.state)]])}></span>${_el_resume($scope9_id, "b", $sg__input_sessions)}`);
|
|
6739
6739
|
_set_serialize_reason({
|
|
6740
6740
|
1: $sg__input_sessions,
|
|
6741
6741
|
2: $sg__input_sessions
|
|
@@ -6744,11 +6744,11 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6744
6744
|
icon_agent_default({
|
|
6745
6745
|
agent: activeAgent(s),
|
|
6746
6746
|
size: 13,
|
|
6747
|
-
class: "
|
|
6747
|
+
class: "_gS"
|
|
6748
6748
|
});
|
|
6749
|
-
_html(`<span${_attr_class("
|
|
6749
|
+
_html(`<span${_attr_class("_gM")}>${_escape(s.title || activeAgent(s))}${_el_resume($scope9_id, "e", $sg__input_sessions)}</span></a>${_el_resume($scope9_id, "a", _serialize_guard($scope0_reason, 6))}<div${_attr_class("_gN")}><button${_attr_class(rowIcon)} title="Rename session">`);
|
|
6750
6750
|
icon_edit_default({ size: 12 });
|
|
6751
|
-
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["
|
|
6751
|
+
_html(`</button>${_el_resume($scope9_id, "g")}<button${_attr_class([close, { ["_k"]: armedKill === s.id }])} title=${armedKill === s.id ? "Close?" : "\"Close session\""}>`);
|
|
6752
6752
|
icon_xmark_default({ size: 12 });
|
|
6753
6753
|
_html(`</button>${_el_resume($scope9_id, "i")}</div>`);
|
|
6754
6754
|
_if(() => {
|
|
@@ -6758,7 +6758,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6758
6758
|
const $childScope6 = _peek_scope_id();
|
|
6759
6759
|
usage_pcts_default({
|
|
6760
6760
|
agent: openPlan,
|
|
6761
|
-
class: "
|
|
6761
|
+
class: "_gI"
|
|
6762
6762
|
});
|
|
6763
6763
|
_subscribe($openPlan__closures, writeScope($scope12_id, {
|
|
6764
6764
|
a: _existing_scope($childScope6),
|
|
@@ -6877,7 +6877,7 @@ var side_nav_item_default = _template("x", (input) => {
|
|
|
6877
6877
|
});
|
|
6878
6878
|
//#endregion
|
|
6879
6879
|
//#region src/tags/icons/icon-folder-plus.marko
|
|
6880
|
-
var icon_folder_plus_default = _template("
|
|
6880
|
+
var icon_folder_plus_default = _template("$", (input) => {
|
|
6881
6881
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6882
6882
|
const $scope0_id = _scope_id();
|
|
6883
6883
|
_set_serialize_reason({
|
|
@@ -6894,7 +6894,7 @@ var icon_folder_plus_default = _template("Y", (input) => {
|
|
|
6894
6894
|
});
|
|
6895
6895
|
//#endregion
|
|
6896
6896
|
//#region src/tags/icons/icon-sidebar-collapse.marko
|
|
6897
|
-
var icon_sidebar_collapse_default = _template("
|
|
6897
|
+
var icon_sidebar_collapse_default = _template("hb", (input) => {
|
|
6898
6898
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
6899
6899
|
const $scope0_id = _scope_id();
|
|
6900
6900
|
_set_serialize_reason({
|
|
@@ -6961,34 +6961,34 @@ var side_nav_default = _template("y", (input) => {
|
|
|
6961
6961
|
const iconSrc = `/api/instance/icon${input.instanceAccent ? `?v=${input.instanceAccent.slice(1)}` : ""}`;
|
|
6962
6962
|
const otherIds = itemIds.filter((id) => id !== ws.id);
|
|
6963
6963
|
const listIds = isPage ? [ws.id, ...otherIds] : itemIds;
|
|
6964
|
-
_html(`<aside${_attr_class(["
|
|
6965
|
-
["
|
|
6966
|
-
["
|
|
6964
|
+
_html(`<aside${_attr_class(["_c9", {
|
|
6965
|
+
["_c7"]: !navOpen,
|
|
6966
|
+
["_c8"]: isPage
|
|
6967
6967
|
}])}${_attr("hidden", view === "diff")}>`);
|
|
6968
6968
|
_if(() => {
|
|
6969
6969
|
if (isPage) {
|
|
6970
6970
|
const $scope1_id = _scope_id();
|
|
6971
|
-
_html(`<header${_attr_class("
|
|
6971
|
+
_html(`<header${_attr_class("_db")}><div${_attr_class("_dk")}>`);
|
|
6972
6972
|
_if(() => {
|
|
6973
6973
|
if (input.instanceName) {
|
|
6974
6974
|
const $scope2_id = _scope_id();
|
|
6975
|
-
_html(`<div${_attr_class("
|
|
6975
|
+
_html(`<div${_attr_class("_dh")} title="This work server (Settings → Appearance)"><img${_attr_class("_di")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope2_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dj")}>${_escape(input.instanceName)}${_el_resume($scope2_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
6976
6976
|
_subscribe($si__input_instanceAccent && $iconSrc__closures, _subscribe($si__input_instanceName && $input_instanceName__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) })));
|
|
6977
6977
|
return 0;
|
|
6978
6978
|
}
|
|
6979
6979
|
}, $scope1_id, "c", $sg__input_instanceName, $sg__input_instanceName, 1, 0, 1);
|
|
6980
|
-
_html(`<h1${_attr_class("
|
|
6980
|
+
_html(`<h1${_attr_class("_dc")}>Workspaces</h1></div><div${_attr_class("_dd")}>`);
|
|
6981
6981
|
_if(() => {}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
6982
6982
|
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([
|
|
6983
6983
|
iconBtn$1,
|
|
6984
|
-
"
|
|
6985
|
-
{ ["
|
|
6984
|
+
"_de",
|
|
6985
|
+
{ ["_c4"]: view === "settings" }
|
|
6986
6986
|
])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
6987
6987
|
icon_settings_default({ size: 16 });
|
|
6988
6988
|
_if(() => {
|
|
6989
6989
|
if (input.setupReady === false) {
|
|
6990
6990
|
const $scope12_id = _scope_id();
|
|
6991
|
-
_html(`<span${_attr_class(["
|
|
6991
|
+
_html(`<span${_attr_class(["_t", "_c6"])} title="Machine setup incomplete"></span>`);
|
|
6992
6992
|
$si__input_setupReady && writeScope($scope12_id, {});
|
|
6993
6993
|
return 0;
|
|
6994
6994
|
}
|
|
@@ -7001,18 +7001,18 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7001
7001
|
_if(() => {
|
|
7002
7002
|
if (!isPage && input.instanceName) {
|
|
7003
7003
|
const $scope3_id = _scope_id();
|
|
7004
|
-
_html(`<div${_attr_class("
|
|
7004
|
+
_html(`<div${_attr_class("_dh")} title="This work server (Settings → Appearance)"><img${_attr_class("_di")}${_attr("src", iconSrc)} alt aria-hidden=true>${_el_resume($scope3_id, "b", $sg__input_instanceAccent)}<span${_attr_class("_dj")}>${_escape(input.instanceName)}${_el_resume($scope3_id, "d", $sg__input_instanceName)}</span></div>`);
|
|
7005
7005
|
writeScope($scope3_id, {});
|
|
7006
7006
|
return 0;
|
|
7007
7007
|
}
|
|
7008
7008
|
}, $scope0_id, "c", 1, 1, 1, 0, 1);
|
|
7009
|
-
_html(`<div${_attr_class("
|
|
7009
|
+
_html(`<div${_attr_class("_dl")}>`);
|
|
7010
7010
|
_for_of(listIds, (wsId) => {
|
|
7011
7011
|
const $scope4_id = _scope_id();
|
|
7012
7012
|
_if(() => {
|
|
7013
7013
|
if (isPage && wsId === ws.id) {
|
|
7014
7014
|
const $scope13_id = _scope_id();
|
|
7015
|
-
_html(`<h2${_attr_class(["
|
|
7015
|
+
_html(`<h2${_attr_class(["_bL", "_df"])}>Current</h2>`);
|
|
7016
7016
|
writeScope($scope13_id, {});
|
|
7017
7017
|
return 0;
|
|
7018
7018
|
}
|
|
@@ -7020,7 +7020,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7020
7020
|
_if(() => {
|
|
7021
7021
|
if (isPage && wsId !== ws.id && wsId === otherIds[0]) {
|
|
7022
7022
|
const $scope14_id = _scope_id();
|
|
7023
|
-
_html(`<h2${_attr_class(["
|
|
7023
|
+
_html(`<h2${_attr_class(["_bL", "_df"])}>Other workspaces</h2>`);
|
|
7024
7024
|
writeScope($scope14_id, {});
|
|
7025
7025
|
return 0;
|
|
7026
7026
|
}
|
|
@@ -7107,7 +7107,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7107
7107
|
railHover = null;
|
|
7108
7108
|
}, 150);
|
|
7109
7109
|
}, "y6", $scope5_id);
|
|
7110
|
-
_html(`<div${_attr_class("
|
|
7110
|
+
_html(`<div${_attr_class("_dm")}>`);
|
|
7111
7111
|
_for_of(itemIds, (wsId, i) => {
|
|
7112
7112
|
const $scope6_id = _scope_id();
|
|
7113
7113
|
_html("<span>");
|
|
@@ -7161,7 +7161,7 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7161
7161
|
if (railHover) {
|
|
7162
7162
|
const $scope7_id = _scope_id();
|
|
7163
7163
|
const hoverId = railHover.id;
|
|
7164
|
-
_html(`<div${_attr_class(["
|
|
7164
|
+
_html(`<div${_attr_class(["_Y", "_dp"])}${_attr_style(`top:${railHover.top}px;left:${railHover.left}px`)}>`);
|
|
7165
7165
|
_set_serialize_reason({
|
|
7166
7166
|
0: 1,
|
|
7167
7167
|
1: 1,
|
|
@@ -7249,15 +7249,15 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7249
7249
|
return 0;
|
|
7250
7250
|
}
|
|
7251
7251
|
}, $scope0_id, "e");
|
|
7252
|
-
_html(`<div${_attr_class("
|
|
7252
|
+
_html(`<div${_attr_class("_dn")}>`);
|
|
7253
7253
|
_if(() => {
|
|
7254
7254
|
if (isPage) {
|
|
7255
7255
|
const $scope9_id = _scope_id();
|
|
7256
7256
|
_html(`<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([
|
|
7257
|
-
"
|
|
7258
|
-
"
|
|
7257
|
+
"_i",
|
|
7258
|
+
"_j",
|
|
7259
7259
|
btnLg,
|
|
7260
|
-
"
|
|
7260
|
+
"_dg"
|
|
7261
7261
|
])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7262
7262
|
icon_folder_plus_default({ size: 16 });
|
|
7263
7263
|
_html(` New workspace</a>${_el_resume($scope9_id, "a")}`);
|
|
@@ -7279,19 +7279,19 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7279
7279
|
return 1;
|
|
7280
7280
|
}
|
|
7281
7281
|
}, $scope8_id, "a", 1, 1, 1, "</button>", 1);
|
|
7282
|
-
_html(`<div${_attr_class(["
|
|
7282
|
+
_html(`<div${_attr_class(["_s", "_do"])}></div>`);
|
|
7283
7283
|
_if(() => {}, $scope8_id, "c", 1, 1, 1, 0, 1);
|
|
7284
|
-
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["
|
|
7284
|
+
_html(`<a${view === "settings" ? _attr("href", backHref) : " href=/settings"}${_attr_class([iconBtn$1, { ["_c4"]: view === "settings" }])} title=${view === "settings" ? "\"Back to workspace\"" : "Settings"}${view === "settings" ? " aria-current=page" : ""}>`);
|
|
7285
7285
|
icon_settings_default({ size: 15 });
|
|
7286
7286
|
_if(() => {
|
|
7287
7287
|
if (input.setupReady === false) {
|
|
7288
7288
|
const $scope17_id = _scope_id();
|
|
7289
|
-
_html(`<span${_attr_class(["
|
|
7289
|
+
_html(`<span${_attr_class(["_t", "_c6"])} title="Machine setup incomplete"></span>`);
|
|
7290
7290
|
$si__input_setupReady && writeScope($scope17_id, {});
|
|
7291
7291
|
return 0;
|
|
7292
7292
|
}
|
|
7293
7293
|
}, $scope8_id, "f", $sg__input_setupReady, $sg__input_setupReady, 1, 0, 1);
|
|
7294
|
-
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["
|
|
7294
|
+
_html(`</a>${_el_resume($scope8_id, "d")}<a${view === "new" ? _attr("href", backHref) : " href=/new"}${_attr_class([iconBtn$1, { ["_c4"]: view === "new" }])} title=${view === "new" ? "\"Back to workspace\"" : "\"New workspace\""}${view === "new" ? " aria-current=page" : ""}>`);
|
|
7295
7295
|
icon_folder_plus_default({ size: 16 });
|
|
7296
7296
|
_html(`</a>${_el_resume($scope8_id, "g")}`);
|
|
7297
7297
|
_script($scope8_id, "y15");
|
|
@@ -7355,12 +7355,12 @@ var side_nav_default = _template("y", (input) => {
|
|
|
7355
7355
|
});
|
|
7356
7356
|
_resume_branch($scope0_id);
|
|
7357
7357
|
});
|
|
7358
|
-
var iconBtn = "
|
|
7359
|
-
var sectionCount = "
|
|
7360
|
-
var content = "
|
|
7361
|
-
var pageMeta = "
|
|
7362
|
-
var pathMeta = "
|
|
7363
|
-
var dangerHint = "
|
|
7358
|
+
var iconBtn = "_U _d";
|
|
7359
|
+
var sectionCount = "_by _C _D";
|
|
7360
|
+
var content = "_cT _bO";
|
|
7361
|
+
var pageMeta = "_cU _bT";
|
|
7362
|
+
var pathMeta = "_cX _r";
|
|
7363
|
+
var dangerHint = "_c3 _M";
|
|
7364
7364
|
//#endregion
|
|
7365
7365
|
//#region src/tags/manage-workspace.marko
|
|
7366
7366
|
var api$2;
|
|
@@ -7459,7 +7459,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7459
7459
|
setTimeout(() => loadProcs(void 0), 500);
|
|
7460
7460
|
}, "o5", $scope0_id);
|
|
7461
7461
|
const titleId = _id();
|
|
7462
|
-
_html(`<div${_attr_class("
|
|
7462
|
+
_html(`<div${_attr_class("_bM")} role=region${_attr("aria-labelledby", titleId)}><div${_attr_class("_bN")}><div${_attr_class(content)}>`);
|
|
7463
7463
|
_set_serialize_reason(30);
|
|
7464
7464
|
const $childScope = _peek_scope_id();
|
|
7465
7465
|
page_head_default({
|
|
@@ -7472,16 +7472,16 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7472
7472
|
meta: attrTag({ content: _content_resume("o11", () => {
|
|
7473
7473
|
_scope_reason();
|
|
7474
7474
|
const $scope8_id = _scope_id();
|
|
7475
|
-
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("
|
|
7475
|
+
_html(`<span${_attr_class(pageMeta)}${_attr("title", ws.display_path || ws.path)}><span${_attr_class("_cV")}>${_escape(ws.name)}${_el_resume($scope8_id, "c")}</span>`);
|
|
7476
7476
|
_if(() => {
|
|
7477
7477
|
if (ws.status !== "active") {
|
|
7478
7478
|
const $scope11_id = _scope_id();
|
|
7479
|
-
_html(`<span${_attr_class(["
|
|
7479
|
+
_html(`<span${_attr_class(["_C", "_E"])}>Archived</span>`);
|
|
7480
7480
|
writeScope($scope11_id, {});
|
|
7481
7481
|
return 0;
|
|
7482
7482
|
}
|
|
7483
7483
|
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
7484
|
-
_html(`<span${_attr_class("
|
|
7484
|
+
_html(`<span${_attr_class("_cW")} aria-hidden=true>·</span><span${_attr_class(pathMeta)}>${_escape(ws.display_path || ws.path)}${_el_resume($scope8_id, "g")}</span></span>${_el_resume($scope8_id, "a")}`);
|
|
7485
7485
|
_subscribe($ws_status__closures, _subscribe($ws_name__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, writeScope($scope8_id, { _: _scope_with_id($scope0_id) })))));
|
|
7486
7486
|
_resume_branch($scope8_id);
|
|
7487
7487
|
}, $scope0_id) })
|
|
@@ -7509,26 +7509,26 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7509
7509
|
_if(() => {
|
|
7510
7510
|
if (pendingAction && actionStep) {
|
|
7511
7511
|
const $scope7_id = _scope_id();
|
|
7512
|
-
_html(`<p${_attr_class("
|
|
7512
|
+
_html(`<p${_attr_class("_bv")}><span${_attr_class("_z")}></span><!>${_escape(actionStep)}${_el_resume($scope7_id, "c")}</p>`);
|
|
7513
7513
|
writeScope($scope7_id, {});
|
|
7514
7514
|
return 0;
|
|
7515
7515
|
}
|
|
7516
7516
|
}, $scope0_id, "f", 1, 1, 1, 0, 1);
|
|
7517
|
-
_html(`<section${_attr_class("
|
|
7517
|
+
_html(`<section${_attr_class("_bw")}><div${_attr_class("_bx")}><h2${_attr_class("_bL")}>Repos</h2><span${_attr_class(sectionCount)}>${_escape(ws.repos.length)}${_el_resume($scope0_id, "k")}</span><div${_attr_class("_s")}></div><button${_attr_class(iconBtn)} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
7518
7518
|
_set_serialize_reason(1);
|
|
7519
7519
|
const $childScope2 = _peek_scope_id();
|
|
7520
7520
|
icon_refresh_default({
|
|
7521
7521
|
size: 14,
|
|
7522
|
-
class: catalogRefreshing && "
|
|
7522
|
+
class: catalogRefreshing && "_y"
|
|
7523
7523
|
});
|
|
7524
|
-
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("
|
|
7524
|
+
_html(`</button>${_el_resume($scope0_id, "m")}</div><ul${_attr_class("_bz")}>`);
|
|
7525
7525
|
_for_of(ws.repos, (row) => {
|
|
7526
7526
|
const $scope1_id = _scope_id();
|
|
7527
|
-
_html(`<li${_attr_class("
|
|
7527
|
+
_html(`<li${_attr_class("_bB")}><div${_attr_class("_bC")}><span${_attr_class(["_bD", "_r"])}>${_escape(row.worktree)}${_el_resume($scope1_id, "d")}/</span><span${_attr_class("_bE")}><a${_attr_class(["_bF", "_cZ"])}${_attr("href", repoWebUrl$1(row.full_name))} target=_blank rel=noopener${_attr("title", `Open ${row.full_name} on GitHub`)}>${_escape(repoLabel(row.full_name))}${_el_resume($scope1_id, "g")}</a>${_el_resume($scope1_id, "f")}`);
|
|
7528
7528
|
_if(() => {
|
|
7529
7529
|
if (row.base_branch !== row.default_branch) {
|
|
7530
7530
|
const $scope12_id = _scope_id();
|
|
7531
|
-
_html(`<span${_attr_class(["
|
|
7531
|
+
_html(`<span${_attr_class(["_C", "_r"])} title="Base branch">`);
|
|
7532
7532
|
icon_branch_default({ size: 12 });
|
|
7533
7533
|
_html(` <!>${_escape(row.base_branch)}${_el_resume($scope12_id, "c")}</span>`);
|
|
7534
7534
|
writeScope($scope12_id, {});
|
|
@@ -7539,16 +7539,16 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7539
7539
|
_if(() => {
|
|
7540
7540
|
if (busy.has(row.full_name)) {
|
|
7541
7541
|
const $scope13_id = _scope_id();
|
|
7542
|
-
_html(`<span${_attr_class("
|
|
7542
|
+
_html(`<span${_attr_class("_z")}></span>`);
|
|
7543
7543
|
writeScope($scope13_id, {});
|
|
7544
7544
|
return 0;
|
|
7545
7545
|
} else {
|
|
7546
7546
|
const $scope6_id = _scope_id();
|
|
7547
7547
|
_html(`<button${_attr_class([
|
|
7548
|
-
"
|
|
7549
|
-
"
|
|
7550
|
-
"
|
|
7551
|
-
{ ["
|
|
7548
|
+
"_bG",
|
|
7549
|
+
"_W",
|
|
7550
|
+
"_X",
|
|
7551
|
+
{ ["_k"]: confirmingRemove === row.full_name }
|
|
7552
7552
|
])}${confirmingRemove === row.full_name ? _attr("title", `Remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>`);
|
|
7553
7553
|
_if(() => {
|
|
7554
7554
|
if (confirmingRemove === row.full_name) {
|
|
@@ -7578,19 +7578,19 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7578
7578
|
}, "full_name", $scope0_id, "p", 1, 1, 1, 0, 1);
|
|
7579
7579
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
7580
7580
|
const $scope16_id = _scope_id();
|
|
7581
|
-
_html(`<li${_attr_class(["
|
|
7581
|
+
_html(`<li${_attr_class(["_bB", "_bA"])}><span${_attr_class("_z")}></span><div${_attr_class("_bC")}><span${_attr_class("_bF")}>Adding <!>${_escape(name)}${_el_resume($scope16_id, "e")}…</span></div></li>`);
|
|
7582
7582
|
writeScope($scope16_id, {});
|
|
7583
7583
|
}, (n) => n, $scope0_id, "q", 1, 1, 1, 0, 1);
|
|
7584
7584
|
_html("</ul>");
|
|
7585
7585
|
_if(() => {
|
|
7586
7586
|
if (!ws.repos.length && !busy.size) {
|
|
7587
7587
|
const $scope17_id = _scope_id();
|
|
7588
|
-
_html(`<p${_attr_class("
|
|
7588
|
+
_html(`<p${_attr_class("_bH")}>No repos yet. Search below to add one.</p>`);
|
|
7589
7589
|
writeScope($scope17_id, {});
|
|
7590
7590
|
return 0;
|
|
7591
7591
|
}
|
|
7592
7592
|
}, $scope0_id, "r", 1, 1, 1, 0, 1);
|
|
7593
|
-
_html(`<div${_attr_class("
|
|
7593
|
+
_html(`<div${_attr_class("_cY")}>`);
|
|
7594
7594
|
const $childScope3 = _peek_scope_id();
|
|
7595
7595
|
let refreshCatalog = repo_picker_default({
|
|
7596
7596
|
exclude: inWorkspace,
|
|
@@ -7610,17 +7610,17 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7610
7610
|
_if(() => {
|
|
7611
7611
|
if (running.length) {
|
|
7612
7612
|
const $scope9_id = _scope_id();
|
|
7613
|
-
_html(`<section${_attr_class("
|
|
7613
|
+
_html(`<section${_attr_class("_bw")}><div${_attr_class("_bx")}><h2${_attr_class("_bL")}>Running</h2><span${_attr_class(sectionCount)}>${_escape(running.length)}${_el_resume($scope9_id, "e")}</span></div><ul${_attr_class("_bz")}>`);
|
|
7614
7614
|
_for_of(running, (p) => {
|
|
7615
7615
|
const $scope10_id = _scope_id();
|
|
7616
|
-
_html(`<li${_attr_class("
|
|
7616
|
+
_html(`<li${_attr_class("_bB")}><div${_attr_class("_bC")}${_attr("title", p.args)}><span${_attr_class(["_bD", "_r"])}>${_escape(p.cmd)}${_el_resume($scope10_id, "d")}</span>`);
|
|
7617
7617
|
_if(() => {
|
|
7618
7618
|
if (p.ports.length) {
|
|
7619
7619
|
const $scope18_id = _scope_id();
|
|
7620
|
-
_html(`<span${_attr_class("
|
|
7620
|
+
_html(`<span${_attr_class("_bE")}>`);
|
|
7621
7621
|
_for_of(p.ports, (port) => {
|
|
7622
7622
|
const $scope19_id = _scope_id();
|
|
7623
|
-
_html(`<button${_attr_class(["
|
|
7623
|
+
_html(`<button${_attr_class(["_m", "_c0"])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope19_id, "b")}</button>${_el_resume($scope19_id, "a")}`);
|
|
7624
7624
|
_script($scope19_id, "o15");
|
|
7625
7625
|
writeScope($scope19_id, { d: port });
|
|
7626
7626
|
}, (x) => String(x), $scope18_id, "a", 1, 1, 1, "</span>", 1);
|
|
@@ -7628,7 +7628,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7628
7628
|
return 0;
|
|
7629
7629
|
}
|
|
7630
7630
|
}, $scope10_id, "e", 1, 1, 1, 0, 1);
|
|
7631
|
-
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["
|
|
7631
|
+
_html(`</div>${_el_resume($scope10_id, "b")}<button${_attr_class(["_bG", "_W"])} type=button${_attr("title", `Kill process ${p.pid}`)}${_attr("aria-label", `Kill process ${p.pid}`)}>`);
|
|
7632
7632
|
icon_xmark_default({ size: 14 });
|
|
7633
7633
|
_html(`</button>${_el_resume($scope10_id, "f")}</li>`);
|
|
7634
7634
|
_script($scope10_id, "o16");
|
|
@@ -7642,7 +7642,7 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7642
7642
|
return 0;
|
|
7643
7643
|
}
|
|
7644
7644
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
7645
|
-
_html(`<section${_attr_class(["
|
|
7645
|
+
_html(`<section${_attr_class(["_bw", "_c1"])}><div${_attr_class("_bx")}><h2${_attr_class("_bL")}>Workspace</h2></div><div${_attr_class("_c2")}>`);
|
|
7646
7646
|
_if(() => {
|
|
7647
7647
|
if (ws.status === "active") {
|
|
7648
7648
|
const $scope4_id = _scope_id();
|
|
@@ -7660,8 +7660,8 @@ var manage_workspace_default = _template("o", (input) => {
|
|
|
7660
7660
|
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
7661
7661
|
_html(`<button type=button${_attr_class([
|
|
7662
7662
|
btnLg,
|
|
7663
|
-
"
|
|
7664
|
-
{ ["
|
|
7663
|
+
"_l",
|
|
7664
|
+
{ ["_k"]: confirmingDelete }
|
|
7665
7665
|
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope0_id, "a2")}</button>${_el_resume($scope0_id, "a1")}</div><p${_attr_class(dangerHint)}>Archive hides the workspace from the list. Delete removes it and its worktrees.</p></section></div></div></div>`);
|
|
7666
7666
|
_script($scope0_id, "o19");
|
|
7667
7667
|
_script($scope0_id, "o20");
|
|
@@ -7743,19 +7743,19 @@ var term_find_default = _template("A", (input) => {
|
|
|
7743
7743
|
const canStep = hasQuery && open;
|
|
7744
7744
|
const keybar = input.placement === "keybar";
|
|
7745
7745
|
_html(`<div${_attr_class([
|
|
7746
|
-
"
|
|
7747
|
-
keybar ? "
|
|
7748
|
-
!open && "
|
|
7749
|
-
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["
|
|
7746
|
+
"_fL",
|
|
7747
|
+
keybar ? "_fN" : "_fM",
|
|
7748
|
+
!open && "_fP"
|
|
7749
|
+
])} aria-hidden=${open ? "false" : "true"}><div${_attr_class(["_fG", keybar ? "_fO" : "_fI"])}><input${_attr_input_value($scope0_id, "c", query, _resume(function(v) {
|
|
7750
7750
|
if (!open) return;
|
|
7751
7751
|
query = v;
|
|
7752
7752
|
live.query = v;
|
|
7753
7753
|
run(0);
|
|
7754
|
-
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "
|
|
7754
|
+
}, "A0", $scope0_id))}${_attr_class([findInput, keybar && "_fQ"])} 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 && "_fR"])} title="Previous match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7755
7755
|
icon_arrow_up_default({ size: 14 });
|
|
7756
|
-
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7756
|
+
_html(`</button>${_el_resume($scope0_id, "d")}<button type=button${_attr_class([findIconBtn, keybar && "_fR"])} title="Next match"${_attr("disabled", !canStep)} tabindex=${open ? "0" : "-1"}>`);
|
|
7757
7757
|
icon_arrow_down_default({ size: 14 });
|
|
7758
|
-
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "
|
|
7758
|
+
_html(`</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class([findIconBtn, keybar && "_fR"])} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
7759
7759
|
icon_xmark_default({ size: 14 });
|
|
7760
7760
|
_html(`</button>${_el_resume($scope0_id, "h")}</div>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</div>${_el_resume($scope0_id, "a")}`);
|
|
7761
7761
|
_script($scope0_id, "A4");
|
|
@@ -7783,7 +7783,7 @@ var term_find_default = _template("A", (input) => {
|
|
|
7783
7783
|
});
|
|
7784
7784
|
_resume_branch($scope0_id);
|
|
7785
7785
|
});
|
|
7786
|
-
_template("
|
|
7786
|
+
_template("lb", (input) => {
|
|
7787
7787
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7788
7788
|
const $scope0_id = _scope_id();
|
|
7789
7789
|
_set_serialize_reason({
|
|
@@ -7798,7 +7798,7 @@ _template("jb", (input) => {
|
|
|
7798
7798
|
});
|
|
7799
7799
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7800
7800
|
});
|
|
7801
|
-
_template("
|
|
7801
|
+
_template("W", (input) => {
|
|
7802
7802
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7803
7803
|
const $scope0_id = _scope_id();
|
|
7804
7804
|
_set_serialize_reason({
|
|
@@ -7813,7 +7813,7 @@ _template("V", (input) => {
|
|
|
7813
7813
|
});
|
|
7814
7814
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7815
7815
|
});
|
|
7816
|
-
_template("
|
|
7816
|
+
_template("bb", (input) => {
|
|
7817
7817
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7818
7818
|
const $scope0_id = _scope_id();
|
|
7819
7819
|
_set_serialize_reason({
|
|
@@ -7873,7 +7873,7 @@ _template("J", (input) => {
|
|
|
7873
7873
|
});
|
|
7874
7874
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7875
7875
|
});
|
|
7876
|
-
_template("
|
|
7876
|
+
_template("Y", (input) => {
|
|
7877
7877
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7878
7878
|
const $scope0_id = _scope_id();
|
|
7879
7879
|
_set_serialize_reason({
|
|
@@ -7888,7 +7888,7 @@ _template("X", (input) => {
|
|
|
7888
7888
|
});
|
|
7889
7889
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
7890
7890
|
});
|
|
7891
|
-
_template("
|
|
7891
|
+
_template("jb", (input) => {
|
|
7892
7892
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
7893
7893
|
const $scope0_id = _scope_id();
|
|
7894
7894
|
_set_serialize_reason({
|
|
@@ -8089,7 +8089,7 @@ var term_default = _template("B", (input) => {
|
|
|
8089
8089
|
trapOpen = true;
|
|
8090
8090
|
}
|
|
8091
8091
|
}, "B14", $scope0_id);
|
|
8092
|
-
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("
|
|
8092
|
+
_html(`<div${_attr("hidden", !onTermPage)}${_attr_class("_dT")}><div${_attr_class("_dU")}></div>${_el_resume($scope0_id, "b")}`);
|
|
8093
8093
|
_if(() => {
|
|
8094
8094
|
if (findOpen) {
|
|
8095
8095
|
const $scope12_id = _scope_id();
|
|
@@ -8116,7 +8116,7 @@ var term_default = _template("B", (input) => {
|
|
|
8116
8116
|
_if(() => {
|
|
8117
8117
|
if (uploading) {
|
|
8118
8118
|
const $scope19_id = _scope_id();
|
|
8119
|
-
_html(`<div${_attr_class("
|
|
8119
|
+
_html(`<div${_attr_class("_d0")}>uploading…</div>`);
|
|
8120
8120
|
writeScope($scope19_id, {});
|
|
8121
8121
|
return 0;
|
|
8122
8122
|
}
|
|
@@ -8124,7 +8124,7 @@ var term_default = _template("B", (input) => {
|
|
|
8124
8124
|
_if(() => {
|
|
8125
8125
|
if (copiedFlash) {
|
|
8126
8126
|
const $scope20_id = _scope_id();
|
|
8127
|
-
_html(`<div${_attr_class("
|
|
8127
|
+
_html(`<div${_attr_class("_dZ")}>Copied</div>`);
|
|
8128
8128
|
writeScope($scope20_id, {});
|
|
8129
8129
|
return 0;
|
|
8130
8130
|
}
|
|
@@ -8133,7 +8133,7 @@ var term_default = _template("B", (input) => {
|
|
|
8133
8133
|
_if(() => {
|
|
8134
8134
|
if (trapOpen) {
|
|
8135
8135
|
const $scope11_id = _scope_id();
|
|
8136
|
-
_html(`<div${_attr_class("
|
|
8136
|
+
_html(`<div${_attr_class("_d1")}><div${_attr_class("_d2")}><p${_attr_class("_ev")}>Long-press the field below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope11_id, "d")}<button${_attr_class("_i")}>Cancel</button>${_el_resume($scope11_id, "e")}</div>${_el_resume($scope11_id, "b")}</div>${_el_resume($scope11_id, "a")}`);
|
|
8137
8137
|
_script($scope11_id, "B25");
|
|
8138
8138
|
_script($scope11_id, "B26");
|
|
8139
8139
|
writeScope($scope11_id, {});
|
|
@@ -8236,7 +8236,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8236
8236
|
let DiffView = null;
|
|
8237
8237
|
const loadDiffView = _resume(() => {
|
|
8238
8238
|
if (DiffView) return;
|
|
8239
|
-
import("./
|
|
8239
|
+
import("./_CQgZXJbG.js").then((m) => {
|
|
8240
8240
|
DiffView = m.default;
|
|
8241
8241
|
});
|
|
8242
8242
|
}, "F6", $scope0_id);
|
|
@@ -8422,10 +8422,10 @@ var work_view_default = _template("F", (input) => {
|
|
|
8422
8422
|
toggleDiff();
|
|
8423
8423
|
}
|
|
8424
8424
|
}, "F21", $scope0_id);
|
|
8425
|
-
_html(`<div${_attr_class(["
|
|
8426
|
-
["
|
|
8427
|
-
["
|
|
8428
|
-
}])}><div${_attr_class("
|
|
8425
|
+
_html(`<div${_attr_class(["_bm", {
|
|
8426
|
+
["_bk"]: view === "nav",
|
|
8427
|
+
["_bl"]: !input.active
|
|
8428
|
+
}])}><div${_attr_class("_bn")}>`);
|
|
8429
8429
|
_set_serialize_reason({
|
|
8430
8430
|
0: _serialize_guard($scope0_reason, 0),
|
|
8431
8431
|
1: 1,
|
|
@@ -8487,7 +8487,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8487
8487
|
openDiff(pr);
|
|
8488
8488
|
}, "F29", $scope0_id)
|
|
8489
8489
|
});
|
|
8490
|
-
_html(`</div><div${_attr_class("
|
|
8490
|
+
_html(`</div><div${_attr_class("_bo")}>`);
|
|
8491
8491
|
_if(() => {
|
|
8492
8492
|
if (error) {
|
|
8493
8493
|
const $scope8_id = _scope_id();
|
|
@@ -8510,7 +8510,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8510
8510
|
_if(() => {
|
|
8511
8511
|
if (diffMounted && DiffView) {
|
|
8512
8512
|
const $scope1_id = _scope_id();
|
|
8513
|
-
_html(`<div${_attr_class(["
|
|
8513
|
+
_html(`<div${_attr_class(["_bp", { ["_bq"]: view === "diff" }])}>`);
|
|
8514
8514
|
_dynamic_tag($scope1_id, "b", DiffView, {
|
|
8515
8515
|
workspaceId: ws.id,
|
|
8516
8516
|
workspaceBranch: ws.branch,
|
|
@@ -8550,7 +8550,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8550
8550
|
_if(() => {
|
|
8551
8551
|
if (manageMounted) {
|
|
8552
8552
|
const $scope2_id = _scope_id();
|
|
8553
|
-
_html(`<div${_attr_class(["
|
|
8553
|
+
_html(`<div${_attr_class(["_bp", { ["_bq"]: view === "manage" }])}>`);
|
|
8554
8554
|
_set_serialize_reason(_serialize_guard($scope0_reason, 16));
|
|
8555
8555
|
const $childScope2 = _peek_scope_id();
|
|
8556
8556
|
manage_workspace_default({
|
|
@@ -8573,7 +8573,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8573
8573
|
_if(() => {
|
|
8574
8574
|
if (settingsMounted) {
|
|
8575
8575
|
const $scope3_id = _scope_id();
|
|
8576
|
-
_html(`<div${_attr_class(["
|
|
8576
|
+
_html(`<div${_attr_class(["_bp", { ["_bq"]: view === "settings" }])}>`);
|
|
8577
8577
|
_set_serialize_reason({
|
|
8578
8578
|
0: _serialize_guard($scope0_reason, 1),
|
|
8579
8579
|
1: $sg__input_workspace,
|
|
@@ -8614,7 +8614,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8614
8614
|
_if(() => {
|
|
8615
8615
|
if (newMounted) {
|
|
8616
8616
|
const $scope4_id = _scope_id();
|
|
8617
|
-
_html(`<div${_attr_class(["
|
|
8617
|
+
_html(`<div${_attr_class(["_bp", { ["_bq"]: view === "new" }])}>`);
|
|
8618
8618
|
_set_serialize_reason({
|
|
8619
8619
|
0: 1,
|
|
8620
8620
|
1: $sg__input_allWorkspaces,
|
|
@@ -8641,13 +8641,13 @@ var work_view_default = _template("F", (input) => {
|
|
|
8641
8641
|
return 0;
|
|
8642
8642
|
}
|
|
8643
8643
|
}, $scope0_id, "i", 1, 1, 1, 0, 1);
|
|
8644
|
-
_html(`<div${_attr_class(["
|
|
8644
|
+
_html(`<div${_attr_class(["_bs", { ["_br"]: view !== "term" }])}>`);
|
|
8645
8645
|
_if(() => {
|
|
8646
8646
|
if (shownSessions) {
|
|
8647
8647
|
const $scope5_id = _scope_id();
|
|
8648
8648
|
_for_of(shownSessions, (s) => {
|
|
8649
8649
|
const $scope6_id = _scope_id();
|
|
8650
|
-
_html(`<div${_attr_class(["
|
|
8650
|
+
_html(`<div${_attr_class(["_bt", { ["_bu"]: s.id === curTab }])}>`);
|
|
8651
8651
|
_set_serialize_reason({
|
|
8652
8652
|
0: 1,
|
|
8653
8653
|
1: 1,
|
|
@@ -8706,7 +8706,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8706
8706
|
_if(() => {
|
|
8707
8707
|
if (!shownSessions.length && view === "term") {
|
|
8708
8708
|
const $scope7_id = _scope_id();
|
|
8709
|
-
_html(`<div${_attr_class("
|
|
8709
|
+
_html(`<div${_attr_class("_bI")}><span>No sessions in this workspace.</span><button${_attr_class(["_i", "_j"])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "shell"}`)}`}${_el_resume($scope7_id, "c")}</button>${_el_resume($scope7_id, "b")}</div>`);
|
|
8710
8710
|
_script($scope7_id, "F49");
|
|
8711
8711
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope7_id, {})));
|
|
8712
8712
|
return 0;
|
|
@@ -8716,7 +8716,7 @@ var work_view_default = _template("F", (input) => {
|
|
|
8716
8716
|
return 0;
|
|
8717
8717
|
} else {
|
|
8718
8718
|
const $scope10_id = _scope_id();
|
|
8719
|
-
_html(`<p${_attr_class("
|
|
8719
|
+
_html(`<p${_attr_class("_bI")}>Loading sessions…</p>`);
|
|
8720
8720
|
writeScope($scope10_id, {});
|
|
8721
8721
|
return 1;
|
|
8722
8722
|
}
|
|
@@ -8939,7 +8939,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8939
8939
|
if (!openIds.includes(id)) openIds = openIds.concat(id);
|
|
8940
8940
|
prefs.setLastWorkspace(id);
|
|
8941
8941
|
}, "c4", $scope0_id);
|
|
8942
|
-
_html(`<div${_attr_class("
|
|
8942
|
+
_html(`<div${_attr_class("_0")}>`);
|
|
8943
8943
|
_if(() => {
|
|
8944
8944
|
if (error) {
|
|
8945
8945
|
const $scope5_id = _scope_id();
|
|
@@ -8963,7 +8963,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8963
8963
|
_if(() => {
|
|
8964
8964
|
if (!selectedId && showSetup) {
|
|
8965
8965
|
const $scope4_id = _scope_id();
|
|
8966
|
-
_html(`<div${_attr_class("
|
|
8966
|
+
_html(`<div${_attr_class("_4")}>`);
|
|
8967
8967
|
_set_serialize_reason(210);
|
|
8968
8968
|
const $childScope = _peek_scope_id();
|
|
8969
8969
|
settings_page_default({
|
|
@@ -8997,7 +8997,7 @@ var app_shell_default = _template("c", (input) => {
|
|
|
8997
8997
|
};
|
|
8998
8998
|
}, "c9", $scope4_id)
|
|
8999
8999
|
});
|
|
9000
|
-
_html(`<div${_attr_class("
|
|
9000
|
+
_html(`<div${_attr_class("_5")}><button type=button${_attr_class("_i")}>Later, go to workspaces</button>${_el_resume($scope4_id, "d")}</div></div>`);
|
|
9001
9001
|
_script($scope4_id, "c24");
|
|
9002
9002
|
writeScope($scope4_id, { b: _existing_scope($childScope) });
|
|
9003
9003
|
return 0;
|
|
@@ -9022,14 +9022,14 @@ var app_shell_default = _template("c", (input) => {
|
|
|
9022
9022
|
return 1;
|
|
9023
9023
|
}
|
|
9024
9024
|
}, $scope0_id, "d", 1, 1, 1, 0, 1);
|
|
9025
|
-
_html(`<div${_attr_class(["
|
|
9025
|
+
_html(`<div${_attr_class(["_1", { ["_2"]: !selectedId }])}>`);
|
|
9026
9026
|
_for_of(openIds, (id) => {
|
|
9027
9027
|
const $scope1_id = _scope_id();
|
|
9028
9028
|
const ws = workspaces.find((w) => w.id === id);
|
|
9029
9029
|
_if(() => {
|
|
9030
9030
|
if (ws) {
|
|
9031
9031
|
const $scope2_id = _scope_id();
|
|
9032
|
-
_html(`<div${_attr_class("
|
|
9032
|
+
_html(`<div${_attr_class("_3")}>`);
|
|
9033
9033
|
_set_serialize_reason(262142);
|
|
9034
9034
|
const $childScope3 = _peek_scope_id();
|
|
9035
9035
|
work_view_default({
|
|
@@ -9262,7 +9262,7 @@ var app_page_default = _template("b", (input) => {
|
|
|
9262
9262
|
});
|
|
9263
9263
|
//#endregion
|
|
9264
9264
|
//#region src/routes/_app/new/+page.marko
|
|
9265
|
-
var _page_default$4 = _template("
|
|
9265
|
+
var _page_default$4 = _template("nb", (input) => {
|
|
9266
9266
|
_scope_reason();
|
|
9267
9267
|
_scope_id();
|
|
9268
9268
|
app_page_default({ initial: {
|
|
@@ -9304,7 +9304,7 @@ var GET$21 = Run.GET(async (_ctx, next) => {
|
|
|
9304
9304
|
});
|
|
9305
9305
|
//#endregion
|
|
9306
9306
|
//#region src/routes/_app/settings/+page.marko
|
|
9307
|
-
var _page_default$3 = _template("
|
|
9307
|
+
var _page_default$3 = _template("ob", (input) => {
|
|
9308
9308
|
_scope_reason();
|
|
9309
9309
|
_scope_id();
|
|
9310
9310
|
app_page_default({ initial: {
|
|
@@ -9341,7 +9341,7 @@ function head3(context) {
|
|
|
9341
9341
|
}
|
|
9342
9342
|
//#endregion
|
|
9343
9343
|
//#region src/routes/_app/w/$id/+page.marko
|
|
9344
|
-
var _page_default$2 = _template("
|
|
9344
|
+
var _page_default$2 = _template("pb", (input) => {
|
|
9345
9345
|
_scope_reason();
|
|
9346
9346
|
_scope_id();
|
|
9347
9347
|
app_page_default({ initial: {
|
|
@@ -9378,7 +9378,7 @@ function head4(context) {
|
|
|
9378
9378
|
}
|
|
9379
9379
|
//#endregion
|
|
9380
9380
|
//#region src/routes/_app/w/$id/manage/+page.marko
|
|
9381
|
-
var _page_default$1 = _template("
|
|
9381
|
+
var _page_default$1 = _template("qb", (input) => {
|
|
9382
9382
|
_scope_reason();
|
|
9383
9383
|
_scope_id();
|
|
9384
9384
|
app_page_default({ initial: {
|
|
@@ -9414,7 +9414,7 @@ function head5(context) {
|
|
|
9414
9414
|
}
|
|
9415
9415
|
//#endregion
|
|
9416
9416
|
//#region src/routes/_app/w/$id/review/+page.marko
|
|
9417
|
-
var _page_default = _template("
|
|
9417
|
+
var _page_default = _template("rb", (input) => {
|
|
9418
9418
|
_scope_reason();
|
|
9419
9419
|
_scope_id();
|
|
9420
9420
|
const q = $global().url.searchParams;
|
|
@@ -16720,4 +16720,4 @@ server.listen(port, () => {
|
|
|
16720
16720
|
//#endregion
|
|
16721
16721
|
export {};
|
|
16722
16722
|
|
|
16723
|
-
;var __MARKO_MANIFEST__={"
|
|
16723
|
+
;var __MARKO_MANIFEST__={"ZLT8joi":{"block":[2,"stylesheet#/assets/app-page-ChAo2NHp.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-ChAo2NHp.css\"",">"],"defer":[2,"/assets/new-DkhWTPMD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/new-DkhWTPMD.js\"","></script>",2,"modulepreload#/assets/_ByIhH2L0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByIhH2L0.js\"",">"]},"AA0T2xt":{"block":[2,"stylesheet#/assets/app-page-ChAo2NHp.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-ChAo2NHp.css\"",">"],"defer":[2,"/assets/settings-DkhWTPMD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/settings-DkhWTPMD.js\"","></script>",2,"modulepreload#/assets/_ByIhH2L0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByIhH2L0.js\"",">"]},"LH2lXAg":{"block":[2,"stylesheet#/assets/app-page-ChAo2NHp.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-ChAo2NHp.css\"",">"],"defer":[2,"/assets/w-DkhWTPMD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w-DkhWTPMD.js\"","></script>",2,"modulepreload#/assets/_ByIhH2L0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByIhH2L0.js\"",">"]},"ibphXY4":{"block":[2,"stylesheet#/assets/app-page-ChAo2NHp.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-ChAo2NHp.css\"",">"],"defer":[2,"/assets/w._-DkhWTPMD.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-DkhWTPMD.js\"","></script>",2,"modulepreload#/assets/_ByIhH2L0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByIhH2L0.js\"",">"]},"T$MNY0k":{"block":[2,"stylesheet#/assets/app-page-ChAo2NHp.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/app-page-ChAo2NHp.css\"",">"],"defer":[2,"/assets/w._-CSX6R2qy.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/w._-CSX6R2qy.js\"","></script>",2,"modulepreload#/assets/_ByIhH2L0.js",6,"<link",0," rel=\"modulepreload\" crossorigin href=\"",1,"assets/_ByIhH2L0.js\"",">"]}};
|