@dylanpiercey/work 0.0.81 → 0.0.82
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/{_DYjQjuVZ.js → _CExzMbX7.js} +52 -14
- package/dist/{_CnoncJm9.js → _CbGuzk5A.js} +14 -14
- package/dist/_DkOK1JPO.js +2 -0
- package/dist/{_C-IJTsSL.js → _hKCo6x-v.js} +178 -178
- package/dist/index.mjs +783 -695
- package/dist/public/assets/{_CFZKcirD.js → _B3oBmIsx.js} +1 -1
- package/dist/public/assets/_B3oBmIsx.js.br +0 -0
- package/dist/public/assets/{_C9q_jsUx.js → _B41OOAWE.js} +1 -1
- package/dist/public/assets/_B41OOAWE.js.br +0 -0
- package/dist/public/assets/{_DwA5Ke8K.js → _BECV_Fyx.js} +1 -1
- package/dist/public/assets/{_C9AM8IPU.js → _BIgywKPY.js} +1 -1
- package/dist/public/assets/_BIgywKPY.js.br +0 -0
- package/dist/public/assets/{_7YSKrnqP.js → _BLw2dqrD.js} +1 -1
- package/dist/public/assets/_BLw2dqrD.js.br +0 -0
- package/dist/public/assets/{_ZqbDxYVf2.js → _BQOF_Y8b2.js} +1 -1
- package/dist/public/assets/_BQOF_Y8b2.js.br +0 -0
- package/dist/public/assets/{_Do3JKWR_.js → _BR-05adR.js} +1 -1
- package/dist/public/assets/_BR-05adR.js.br +0 -0
- package/dist/public/assets/{_rYZOlpFQ.js → _BUZroJmM.js} +1 -1
- package/dist/public/assets/_BUZroJmM.js.br +0 -0
- package/dist/public/assets/{_zBHCIvDr.js → _B_wtJBDf.js} +1 -1
- package/dist/public/assets/_B_wtJBDf.js.br +0 -0
- package/dist/public/assets/{_38k-DUKf2.js → _BbzwTGW82.js} +1 -1
- package/dist/public/assets/_BbzwTGW82.js.br +0 -0
- package/dist/public/assets/{_DzBcg-pn.js → _BeFwce1T.js} +1 -1
- package/dist/public/assets/_BeFwce1T.js.br +0 -0
- package/dist/public/assets/{_BHWCRVlP2.js → _Bh9yRaD72.js} +1 -1
- package/dist/public/assets/_Bh9yRaD72.js.br +0 -0
- package/dist/public/assets/{_DIAm5nVY.js → _BhCMFVhP.js} +1 -1
- package/dist/public/assets/_BhCMFVhP.js.br +0 -0
- package/dist/public/assets/{_Cw9bcUhh2.js → _BiD1U5_T2.js} +1 -1
- package/dist/public/assets/_BiD1U5_T2.js.br +0 -0
- package/dist/public/assets/{_B59BODZo.js → _Bje7gfya.js} +1 -1
- package/dist/public/assets/_Bje7gfya.js.br +0 -0
- package/dist/public/assets/{_DdK5hMw2.js → _Bk_G8M5C.js} +1 -1
- package/dist/public/assets/_Bk_G8M5C.js.br +0 -0
- package/dist/public/assets/{_CFUXJ_EV.js → _BmC3EX2D.js} +1 -1
- package/dist/public/assets/_BmC3EX2D.js.br +0 -0
- package/dist/public/assets/{_BC5x_iTW.js → _BnbIEqHf.js} +1 -1
- package/dist/public/assets/_BnbIEqHf.js.br +0 -0
- package/dist/public/assets/{_BC0tZwbo.js → _Br4zw_mV.js} +1 -1
- package/dist/public/assets/_Br4zw_mV.js.br +0 -0
- package/dist/public/assets/{_Dgek0-uf.js → _BtwlJ5_o.js} +20 -20
- package/dist/public/assets/_BtwlJ5_o.js.br +0 -0
- package/dist/public/assets/{_Crj20mO1.js → _Bxewhqaw.js} +1 -1
- package/dist/public/assets/_Bxewhqaw.js.br +0 -0
- package/dist/public/assets/{_C159-D0m2.js → _C8yn_Acw2.js} +1 -1
- package/dist/public/assets/_C8yn_Acw2.js.br +0 -0
- package/dist/public/assets/{_DyY6_FZE2.js → _CAPotJs-2.js} +1 -1
- package/dist/public/assets/_CAPotJs-2.js.br +0 -0
- package/dist/public/assets/{_CugIhU8U.js → _CEnYcVq1.js} +1 -1
- package/dist/public/assets/_CEnYcVq1.js.br +0 -0
- package/dist/public/assets/{_xTsO9dyr.js → _CFFvNT1q.js} +1 -1
- package/dist/public/assets/_CFFvNT1q.js.br +0 -0
- package/dist/public/assets/{_oGJRJJ6q2.js → _CGMSNnL-2.js} +1 -1
- package/dist/public/assets/_CGMSNnL-2.js.br +0 -0
- package/dist/public/assets/{_D5pA1_Bu.js → _CHkkF2px.js} +1 -1
- package/dist/public/assets/_CHkkF2px.js.br +0 -0
- package/dist/public/assets/{_CHdLxrpY.js → _CIa8PHfy.js} +1 -1
- package/dist/public/assets/_CIa8PHfy.js.br +0 -0
- package/dist/public/assets/{_H_RhWskE.js → _CJEPOhMj.js} +1 -1
- package/dist/public/assets/_CJEPOhMj.js.br +0 -0
- package/dist/public/assets/{_B1jIC0mN.js → _CJnIf-SF.js} +1 -1
- package/dist/public/assets/_CJnIf-SF.js.br +0 -0
- package/dist/public/assets/{_Tjz9EBxY.js → _CSixW3RB.js} +1 -1
- package/dist/public/assets/_CSixW3RB.js.br +0 -0
- package/dist/public/assets/{_DhjTrs6h.js → _CWA7J2mn.js} +1 -1
- package/dist/public/assets/_CWA7J2mn.js.br +0 -0
- package/dist/public/assets/{_Hux__Mi3.js → _CZe9PNFm.js} +1 -1
- package/dist/public/assets/_CZe9PNFm.js.br +0 -0
- package/dist/public/assets/{_CHJpciL7.js → _C_P5f4EK.js} +1 -1
- package/dist/public/assets/_C_P5f4EK.js.br +0 -0
- package/dist/public/assets/{_CkAFPBk32.js → _CaAVXtkO2.js} +1 -1
- package/dist/public/assets/_CaAVXtkO2.js.br +0 -0
- package/dist/public/assets/{_CfPkIUbn2.js → _CbNXWLgc2.js} +1 -1
- package/dist/public/assets/_CbNXWLgc2.js.br +0 -0
- package/dist/public/assets/{_cyCiLNCO2.js → _Cc65kW932.js} +1 -1
- package/dist/public/assets/{_D-GUbNXT2.js → _CdH2klbl2.js} +1 -1
- package/dist/public/assets/_CdH2klbl2.js.br +0 -0
- package/dist/public/assets/{_DmCXj862.js → _CkXiLyKj.js} +1 -1
- package/dist/public/assets/_CkXiLyKj.js.br +0 -0
- package/dist/public/assets/{_BxDDNHJ5.js → _CkepOsOW.js} +1 -1
- package/dist/public/assets/_CkepOsOW.js.br +0 -0
- package/dist/public/assets/{_BXPu_k6S2.js → _CrDF0eeY2.js} +1 -1
- package/dist/public/assets/_CrDF0eeY2.js.br +0 -0
- package/dist/public/assets/{_C5f4BQIY.js → _Cx9GIPHc.js} +1 -1
- package/dist/public/assets/_Cx9GIPHc.js.br +0 -0
- package/dist/public/assets/{_xg3o9zgg.js → _Cy8XPyIc.js} +1 -1
- package/dist/public/assets/_Cy8XPyIc.js.br +0 -0
- package/dist/public/assets/{_Dkgc1lkg2.js → _D1sMicdw2.js} +1 -1
- package/dist/public/assets/_D1sMicdw2.js.br +0 -0
- package/dist/public/assets/{_DxXqBzi-2.js → _DFO3qhdR2.js} +1 -1
- package/dist/public/assets/_DFO3qhdR2.js.br +0 -0
- package/dist/public/assets/{_DpbFj6NR.js → _DI682Elr.js} +1 -1
- package/dist/public/assets/_DI682Elr.js.br +0 -0
- package/dist/public/assets/{_BmGbWdBH.js → _DJ8uQzwM.js} +1 -1
- package/dist/public/assets/_DJ8uQzwM.js.br +0 -0
- package/dist/public/assets/{_BBDLIlVo.js → _DOKljOTH.js} +1 -1
- package/dist/public/assets/_DOKljOTH.js.br +0 -0
- package/dist/public/assets/{_D8Rch_qk2.js → _DOetJUUJ2.js} +1 -1
- package/dist/public/assets/_DOetJUUJ2.js.br +0 -0
- package/dist/public/assets/{_BtA6ftQw.js → _DPu8iLt3.js} +6 -6
- package/dist/public/assets/_DPu8iLt3.js.br +0 -0
- package/dist/public/assets/{_DvlJL4ic2.js → _DS4oOWLT2.js} +1 -1
- package/dist/public/assets/_DS4oOWLT2.js.br +0 -0
- package/dist/public/assets/{_CWzD5LyS.js → _DVPmBDiv.js} +1 -1
- package/dist/public/assets/_DVPmBDiv.js.br +0 -0
- package/dist/public/assets/{_Bs_Nyyxy.js → _DVsvhhCG.js} +1 -1
- package/dist/public/assets/_DVsvhhCG.js.br +0 -0
- package/dist/public/assets/{_BuIiixzK.js → _DorHpq9j.js} +1 -1
- package/dist/public/assets/_DorHpq9j.js.br +0 -0
- package/dist/public/assets/{_CKzcpszv.js → _Dql2UFNc.js} +1 -1
- package/dist/public/assets/_Dql2UFNc.js.br +0 -0
- package/dist/public/assets/{_CeUd4dPX2.js → _Ds0rpfZI2.js} +1 -1
- package/dist/public/assets/_Ds0rpfZI2.js.br +0 -0
- package/dist/public/assets/{_D5lK9Gwf2.js → _DtgGBSSq2.js} +1 -1
- package/dist/public/assets/{_Ze6GZrZW.js → _DwGU_M9s.js} +1 -1
- package/dist/public/assets/_DwGU_M9s.js.br +0 -0
- package/dist/public/assets/{_Jn2CGV4M.js → _DwT8V2US.js} +1 -1
- package/dist/public/assets/_DwT8V2US.js.br +0 -0
- package/dist/public/assets/{_CWltQqCx.js → _Dz665X0g.js} +1 -1
- package/dist/public/assets/_Dz665X0g.js.br +0 -0
- package/dist/public/assets/{_DfpKlxWe2.js → _FPrhjJGN2.js} +1 -1
- package/dist/public/assets/_FPrhjJGN2.js.br +0 -0
- package/dist/public/assets/{_B3PCaRpt2.js → _FYqVfoUp2.js} +1 -1
- package/dist/public/assets/_FYqVfoUp2.js.br +0 -0
- package/dist/public/assets/{_CS2Z8-652.js → _GQj_poV52.js} +1 -1
- package/dist/public/assets/_GQj_poV52.js.br +0 -0
- package/dist/public/assets/{_BHJncayq.js → _Lj3aaNpd.js} +1 -1
- package/dist/public/assets/_Lj3aaNpd.js.br +0 -0
- package/dist/public/assets/{_B0uVeTlg.js → _Un9uXTqQ.js} +1 -1
- package/dist/public/assets/_Un9uXTqQ.js.br +0 -0
- package/dist/public/assets/{_Drn51w342.js → __YcMOMHo2.js} +1 -1
- package/dist/public/assets/__YcMOMHo2.js.br +0 -0
- package/dist/public/assets/{_COlIeABW.js → _a9F3-2zU.js} +1 -1
- package/dist/public/assets/_a9F3-2zU.js.br +0 -0
- package/dist/public/assets/{_DyS4BOQr.js → _ilBoZ9l9.js} +1 -1
- package/dist/public/assets/_ilBoZ9l9.js.br +0 -0
- package/dist/public/assets/{_zNWE-pQK.js → _j9oyPgbB.js} +1 -1
- package/dist/public/assets/_j9oyPgbB.js.br +0 -0
- package/dist/public/assets/{_D1t8bSwi.js → _la5VE3W4.js} +1 -1
- package/dist/public/assets/_la5VE3W4.js.br +0 -0
- package/dist/public/assets/{_DMuoSYnd.js → _nR-jfrht.js} +1 -1
- package/dist/public/assets/_nR-jfrht.js.br +0 -0
- package/dist/public/assets/{_D4JXuCIt2.js → _odilh0Si2.js} +1 -1
- package/dist/public/assets/_odilh0Si2.js.br +0 -0
- package/dist/public/assets/{_D-3GiMqk.js → _osI_OYpe.js} +1 -1
- package/dist/public/assets/_osI_OYpe.js.br +0 -0
- package/dist/public/assets/{_NAnVv-uy.js → _uHbq-iwP.js} +1 -1
- package/dist/public/assets/_uHbq-iwP.js.br +0 -0
- package/dist/public/assets/{_DRUs2U2L2.js → _yDuqFLgJ2.js} +1 -1
- package/dist/public/assets/_yDuqFLgJ2.js.br +0 -0
- package/dist/public/assets/{_a39GXCT8.js → _z9QRJCjN.js} +1 -1
- package/dist/public/assets/_z9QRJCjN.js.br +0 -0
- package/dist/public/assets/app-page-D8sTRvm0.css +1 -0
- package/dist/public/assets/app-page-D8sTRvm0.css.br +0 -0
- package/dist/public/assets/diff-view-wmRIejo2.css +1 -0
- package/dist/public/assets/diff-view-wmRIejo2.css.br +0 -0
- package/dist/public/assets/new-oVr2dYr3.js +1 -0
- package/dist/public/assets/settings-oVr2dYr3.js +1 -0
- package/dist/public/assets/w-oVr2dYr3.js +1 -0
- package/dist/public/assets/w._-BXx4vFQJ.js +1 -0
- package/dist/public/assets/w._-oVr2dYr3.js +1 -0
- package/lib/setup/agents.json +13 -0
- package/package.json +1 -1
- package/dist/_DjE4lBg7.js +0 -2
- package/dist/public/assets/_38k-DUKf2.js.br +0 -0
- package/dist/public/assets/_7YSKrnqP.js.br +0 -0
- package/dist/public/assets/_B0uVeTlg.js.br +0 -0
- package/dist/public/assets/_B1jIC0mN.js.br +0 -0
- package/dist/public/assets/_B3PCaRpt2.js.br +0 -0
- package/dist/public/assets/_B59BODZo.js.br +0 -0
- package/dist/public/assets/_BBDLIlVo.js.br +0 -0
- package/dist/public/assets/_BC0tZwbo.js.br +0 -3
- package/dist/public/assets/_BC5x_iTW.js.br +0 -0
- package/dist/public/assets/_BHJncayq.js.br +0 -0
- package/dist/public/assets/_BHWCRVlP2.js.br +0 -0
- package/dist/public/assets/_BXPu_k6S2.js.br +0 -0
- package/dist/public/assets/_BmGbWdBH.js.br +0 -0
- package/dist/public/assets/_Bs_Nyyxy.js.br +0 -0
- package/dist/public/assets/_BtA6ftQw.js.br +0 -0
- package/dist/public/assets/_BuIiixzK.js.br +0 -0
- package/dist/public/assets/_BxDDNHJ5.js.br +0 -0
- package/dist/public/assets/_C159-D0m2.js.br +0 -0
- package/dist/public/assets/_C5f4BQIY.js.br +0 -0
- package/dist/public/assets/_C9AM8IPU.js.br +0 -0
- package/dist/public/assets/_C9q_jsUx.js.br +0 -0
- package/dist/public/assets/_CFUXJ_EV.js.br +0 -0
- package/dist/public/assets/_CFZKcirD.js.br +0 -0
- package/dist/public/assets/_CHJpciL7.js.br +0 -0
- package/dist/public/assets/_CHdLxrpY.js.br +0 -0
- package/dist/public/assets/_CKzcpszv.js.br +0 -0
- package/dist/public/assets/_COlIeABW.js.br +0 -0
- package/dist/public/assets/_CS2Z8-652.js.br +0 -0
- package/dist/public/assets/_CWltQqCx.js.br +0 -0
- package/dist/public/assets/_CWzD5LyS.js.br +0 -0
- package/dist/public/assets/_CeUd4dPX2.js.br +0 -0
- package/dist/public/assets/_CfPkIUbn2.js.br +0 -0
- package/dist/public/assets/_CkAFPBk32.js.br +0 -0
- package/dist/public/assets/_Crj20mO1.js.br +0 -0
- package/dist/public/assets/_CugIhU8U.js.br +0 -0
- package/dist/public/assets/_Cw9bcUhh2.js.br +0 -0
- package/dist/public/assets/_D-3GiMqk.js.br +0 -0
- package/dist/public/assets/_D-GUbNXT2.js.br +0 -0
- package/dist/public/assets/_D1t8bSwi.js.br +0 -0
- package/dist/public/assets/_D4JXuCIt2.js.br +0 -0
- package/dist/public/assets/_D5pA1_Bu.js.br +0 -0
- package/dist/public/assets/_D8Rch_qk2.js.br +0 -0
- package/dist/public/assets/_DIAm5nVY.js.br +0 -0
- package/dist/public/assets/_DMuoSYnd.js.br +0 -0
- package/dist/public/assets/_DRUs2U2L2.js.br +0 -0
- package/dist/public/assets/_DdK5hMw2.js.br +0 -0
- package/dist/public/assets/_DfpKlxWe2.js.br +0 -0
- package/dist/public/assets/_Dgek0-uf.js.br +0 -0
- package/dist/public/assets/_DhjTrs6h.js.br +0 -0
- package/dist/public/assets/_Dkgc1lkg2.js.br +0 -0
- package/dist/public/assets/_DmCXj862.js.br +0 -0
- package/dist/public/assets/_Do3JKWR_.js.br +0 -0
- package/dist/public/assets/_DpbFj6NR.js.br +0 -0
- package/dist/public/assets/_Drn51w342.js.br +0 -0
- package/dist/public/assets/_DvlJL4ic2.js.br +0 -0
- package/dist/public/assets/_DxXqBzi-2.js.br +0 -0
- package/dist/public/assets/_DyS4BOQr.js.br +0 -0
- package/dist/public/assets/_DyY6_FZE2.js.br +0 -0
- package/dist/public/assets/_DzBcg-pn.js.br +0 -0
- package/dist/public/assets/_H_RhWskE.js.br +0 -0
- package/dist/public/assets/_Hux__Mi3.js.br +0 -0
- package/dist/public/assets/_Jn2CGV4M.js.br +0 -0
- package/dist/public/assets/_NAnVv-uy.js.br +0 -0
- package/dist/public/assets/_Tjz9EBxY.js.br +0 -0
- package/dist/public/assets/_Ze6GZrZW.js.br +0 -0
- package/dist/public/assets/_ZqbDxYVf2.js.br +0 -0
- package/dist/public/assets/_a39GXCT8.js.br +0 -0
- package/dist/public/assets/_oGJRJJ6q2.js.br +0 -0
- package/dist/public/assets/_rYZOlpFQ.js.br +0 -0
- package/dist/public/assets/_xTsO9dyr.js.br +0 -0
- package/dist/public/assets/_xg3o9zgg.js.br +0 -0
- package/dist/public/assets/_zBHCIvDr.js.br +0 -0
- package/dist/public/assets/_zNWE-pQK.js.br +0 -0
- package/dist/public/assets/app-page-BQvp9SF4.css +0 -1
- package/dist/public/assets/app-page-BQvp9SF4.css.br +0 -0
- package/dist/public/assets/diff-view-7UYLREHv.css +0 -1
- package/dist/public/assets/diff-view-7UYLREHv.css.br +0 -0
- package/dist/public/assets/new-bAuaAH8k.js +0 -1
- package/dist/public/assets/settings-bAuaAH8k.js +0 -1
- package/dist/public/assets/w-bAuaAH8k.js +0 -1
- package/dist/public/assets/w._-D4469Kq9.js +0 -1
- package/dist/public/assets/w._-bAuaAH8k.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as _el_resume, A as iconBtnRow, B as _attr_input_value, F as tone, L as _attr, Ot as writeScope, Q as _el_read_error, R as _attr_class, S as icon_xmark_default, U as _attr_select_value, V as _attr_option_value, W as _attr_style, Y as _content_resume, Z as _el, _ as icon_refresh_default, _t as _serialize_guard, a as diffPos, bt as _subscribe, c as setDiffPos, ct as _if, dt as _resume_branch, et as _escape, ft as _scope_id, g as icon_back_default, gt as _sep, h as icon_search_default, ht as _script, i as diffFilter, k as iconBtnLg, l as setDiffScope, lt as _peek_scope_id, mt as _scope_with_id, n as findInput, o as diffScope, ot as _html, p as fuzzy, pt as _scope_reason, r as icon_sidebar_default, rt as _for_of, s as diffTreeOpen, t as findIconBtn, tt as _existing_scope, ut as _resume, vt as _serialize_if, w as repoLabel, x as toast_default, xt as _template, yt as _set_serialize_reason, z as _attr_details_or_dialog_open } from "./
|
|
1
|
+
import { $ as _el_resume, A as iconBtnRow, B as _attr_input_value, F as tone, L as _attr, Ot as writeScope, Q as _el_read_error, R as _attr_class, S as icon_xmark_default, U as _attr_select_value, V as _attr_option_value, W as _attr_style, Y as _content_resume, Z as _el, _ as icon_refresh_default, _t as _serialize_guard, a as diffPos, bt as _subscribe, c as setDiffPos, ct as _if, dt as _resume_branch, et as _escape, ft as _scope_id, g as icon_back_default, gt as _sep, h as icon_search_default, ht as _script, i as diffFilter, k as iconBtnLg, l as setDiffScope, lt as _peek_scope_id, mt as _scope_with_id, n as findInput, o as diffScope, ot as _html, p as fuzzy, pt as _scope_reason, r as icon_sidebar_default, rt as _for_of, s as diffTreeOpen, t as findIconBtn, tt as _existing_scope, ut as _resume, vt as _serialize_if, w as repoLabel, x as toast_default, xt as _template, yt as _set_serialize_reason, z as _attr_details_or_dialog_open } from "./_CbGuzk5A.js";
|
|
2
2
|
//#region src/client/router.ts
|
|
3
3
|
function urlFor(r) {
|
|
4
4
|
if (r.view === "settings") return "/settings";
|
|
@@ -242,31 +242,31 @@ function treeDirs(files) {
|
|
|
242
242
|
};
|
|
243
243
|
return build(root, "", "", -1);
|
|
244
244
|
}
|
|
245
|
-
var treeToggle = "
|
|
245
|
+
var treeToggle = "_ez _0 _j";
|
|
246
246
|
//#endregion
|
|
247
247
|
//#region src/tags/diff-send.marko
|
|
248
|
-
var diff_send_default = _template("
|
|
248
|
+
var diff_send_default = _template("i", (input) => {
|
|
249
249
|
const $scope0_reason = _scope_reason(), $sg__input_sessions = _serialize_guard($scope0_reason, 0), $si__input_sessions = _serialize_if($scope0_reason, 0);
|
|
250
250
|
const $scope0_id = _scope_id();
|
|
251
251
|
let sending = false;
|
|
252
252
|
let sendTarget = null;
|
|
253
253
|
const sessions = input.sessions || [];
|
|
254
254
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
255
|
-
_html(`<span${_attr_class("
|
|
255
|
+
_html(`<span${_attr_class("_fk")}><button type=button${_attr_class("_o")} title="Copy comments as markdown">Copy${_el_resume($scope0_id, "c")}</button>${_el_resume($scope0_id, "b")}`);
|
|
256
256
|
_if(() => {
|
|
257
257
|
if (sessions.length === 1) {
|
|
258
258
|
const $scope1_id = _scope_id();
|
|
259
259
|
_html(`<button type=button${_attr_class(["_o", "_p"])}${_attr("disabled", sending)}>${`Send to ${_escape(`${sessions[0].title || sessions[0].agent}`)}`}${_el_resume($scope1_id, "b")}</button>${_el_resume($scope1_id, "a")}`);
|
|
260
|
-
_script($scope1_id, "
|
|
260
|
+
_script($scope1_id, "i1");
|
|
261
261
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
262
262
|
return 0;
|
|
263
263
|
} else if (sessions.length) {
|
|
264
264
|
const $scope2_id = _scope_id();
|
|
265
|
-
_html(`<span${_attr_class("
|
|
265
|
+
_html(`<span${_attr_class("_fl")}><button type=button${_attr_class(["_p", "_fm"])}${_attr("disabled", sending)}>Send to${_el_resume($scope2_id, "c")}</button>${_el_resume($scope2_id, "b")}`);
|
|
266
266
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
267
267
|
sendTarget = _new_sendTarget;
|
|
268
|
-
}, "
|
|
269
|
-
_html(`<select${_attr_class("
|
|
268
|
+
}, "i0", $scope2_id), () => {
|
|
269
|
+
_html(`<select${_attr_class("_fn")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
270
270
|
_for_of(sessions, (s) => {
|
|
271
271
|
const $scope3_id = _scope_id();
|
|
272
272
|
_html(`<option${_attr_option_value(s.id)}>${_escape(s.title || s.agent)}${_el_resume($scope3_id, "b", $sg__input_sessions)}</option>${_el_resume($scope3_id, "a", $sg__input_sessions)}`);
|
|
@@ -274,13 +274,13 @@ var diff_send_default = _template("h", (input) => {
|
|
|
274
274
|
}, "id", $scope2_id, "d", $sg__input_sessions, 1, $sg__input_sessions, "</select>", 1);
|
|
275
275
|
});
|
|
276
276
|
_html("</span>");
|
|
277
|
-
_script($scope2_id, "
|
|
277
|
+
_script($scope2_id, "i2");
|
|
278
278
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
279
279
|
return 1;
|
|
280
280
|
}
|
|
281
281
|
}, $scope0_id, "d", 1, $sg__input_sessions, $sg__input_sessions, 0, 1);
|
|
282
282
|
_html("</span>");
|
|
283
|
-
_script($scope0_id, "
|
|
283
|
+
_script($scope0_id, "i3");
|
|
284
284
|
writeScope($scope0_id, {
|
|
285
285
|
h: input.onCopy,
|
|
286
286
|
i: input.onSend,
|
|
@@ -1736,7 +1736,7 @@ function clip(line, at, len) {
|
|
|
1736
1736
|
//#endregion
|
|
1737
1737
|
//#region src/tags/diff-find.marko
|
|
1738
1738
|
var setSearchPaint$1;
|
|
1739
|
-
var diff_find_default = _template("
|
|
1739
|
+
var diff_find_default = _template("h", (input) => {
|
|
1740
1740
|
const $scope0_reason = _scope_reason();
|
|
1741
1741
|
const $scope0_id = _scope_id();
|
|
1742
1742
|
let open = input.open;
|
|
@@ -1763,7 +1763,7 @@ var diff_find_default = _template("g", (input) => {
|
|
|
1763
1763
|
hi = (i % list.length + list.length) % list.length;
|
|
1764
1764
|
const hit = list[hi];
|
|
1765
1765
|
setSearchPaint$1(q, hit);
|
|
1766
|
-
}, "
|
|
1766
|
+
}, "h1", $scope0_id);
|
|
1767
1767
|
const type = _resume((v) => {
|
|
1768
1768
|
if (!live.open) return;
|
|
1769
1769
|
query = v;
|
|
@@ -1774,7 +1774,7 @@ var diff_find_default = _template("g", (input) => {
|
|
|
1774
1774
|
box.timer = 0;
|
|
1775
1775
|
emit(v, 0);
|
|
1776
1776
|
}, 80);
|
|
1777
|
-
}, "
|
|
1777
|
+
}, "h2", $scope0_id);
|
|
1778
1778
|
const next = _resume((dir) => {
|
|
1779
1779
|
if (!live.open) return;
|
|
1780
1780
|
if (box.timer) {
|
|
@@ -1782,7 +1782,7 @@ var diff_find_default = _template("g", (input) => {
|
|
|
1782
1782
|
box.timer = 0;
|
|
1783
1783
|
}
|
|
1784
1784
|
emit(query || "", (at < 0 ? 0 : at) + dir);
|
|
1785
|
-
}, "
|
|
1785
|
+
}, "h3", $scope0_id);
|
|
1786
1786
|
const close = _resume(() => {
|
|
1787
1787
|
open = false;
|
|
1788
1788
|
live.open = false;
|
|
@@ -1791,7 +1791,7 @@ var diff_find_default = _template("g", (input) => {
|
|
|
1791
1791
|
box.timer = 0;
|
|
1792
1792
|
}
|
|
1793
1793
|
setSearchPaint$1("", null);
|
|
1794
|
-
}, "
|
|
1794
|
+
}, "h4", $scope0_id);
|
|
1795
1795
|
const focusInput = _resume(() => {
|
|
1796
1796
|
const el = ((findEl) => findEl())(_el_read_error);
|
|
1797
1797
|
if (!el) return;
|
|
@@ -1801,15 +1801,15 @@ var diff_find_default = _template("g", (input) => {
|
|
|
1801
1801
|
el.focus();
|
|
1802
1802
|
el.select();
|
|
1803
1803
|
}, 0);
|
|
1804
|
-
}, "
|
|
1805
|
-
_html(`<div${_attr_class(["
|
|
1804
|
+
}, "h5", $scope0_id);
|
|
1805
|
+
_html(`<div${_attr_class(["_e9", !open && "_e8"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1806
1806
|
type(v);
|
|
1807
|
-
}, "
|
|
1807
|
+
}, "h0", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_fb")}>${open && (query || "").trim() ? hits.length ? `${_escape(`${at + 1}`)}/${_escape(`${hits.length}`)}` : "0/0" : ""}${_el_resume($scope0_id, "d")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class(findIconBtn)} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
1808
1808
|
icon_xmark_default({ size: 14 });
|
|
1809
1809
|
_html(`</button>${_el_resume($scope0_id, "g")}</div>${_el_resume($scope0_id, "a")}`);
|
|
1810
|
-
_script($scope0_id, "
|
|
1811
|
-
_script($scope0_id, "
|
|
1812
|
-
_script($scope0_id, "
|
|
1810
|
+
_script($scope0_id, "h6");
|
|
1811
|
+
_script($scope0_id, "h7");
|
|
1812
|
+
_script($scope0_id, "h8");
|
|
1813
1813
|
writeScope($scope0_id, {
|
|
1814
1814
|
k: _serialize_if($scope0_reason, 1) && input.open,
|
|
1815
1815
|
l: _serialize_if($scope0_reason, 0) && input.openChange,
|
|
@@ -1901,15 +1901,15 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
1901
1901
|
}
|
|
1902
1902
|
return shortHeadFallback(head);
|
|
1903
1903
|
}
|
|
1904
|
-
var repoWorktree = "
|
|
1905
|
-
var repoTitle = "
|
|
1904
|
+
var repoWorktree = "_f3 _x";
|
|
1905
|
+
var repoTitle = "_f9 _w";
|
|
1906
1906
|
tone.warn;
|
|
1907
|
-
var diff_file_default = _template("
|
|
1907
|
+
var diff_file_default = _template("g", (input) => {
|
|
1908
1908
|
_scope_reason();
|
|
1909
1909
|
const $scope0_id = _scope_id();
|
|
1910
|
-
_el($scope0_id, "
|
|
1910
|
+
_el($scope0_id, "g0");
|
|
1911
1911
|
_html(`<div${_attr_class(["_gW", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
1912
|
-
_script($scope0_id, "
|
|
1912
|
+
_script($scope0_id, "g1");
|
|
1913
1913
|
writeScope($scope0_id, {
|
|
1914
1914
|
e: input.file,
|
|
1915
1915
|
f: input.comments,
|
|
@@ -1927,7 +1927,7 @@ var diff_file_default = _template("f", (input) => {
|
|
|
1927
1927
|
});
|
|
1928
1928
|
//#endregion
|
|
1929
1929
|
//#region src/tags/review-section.marko
|
|
1930
|
-
var review_section_default = _template("
|
|
1930
|
+
var review_section_default = _template("t", (input) => {
|
|
1931
1931
|
const $scope0_reason = _scope_reason(), $sg__input_repo = _serialize_guard($scope0_reason, 34), $si__input_repo = _serialize_if($scope0_reason, 34), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened = _serialize_guard($scope0_reason, 31), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_guard($scope0_reason, 13), $sg__input_repo__OR__input_files_length = _serialize_guard($scope0_reason, 0), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_if($scope0_reason, 13), $sg__input_files__OR__input_shownKeys = _serialize_guard($scope0_reason, 3), $sg__input_files__OR__input_onlyNew = _serialize_guard($scope0_reason, 4), $sg__input_files = _serialize_guard($scope0_reason, 35), $sg__input_files__OR__input_commentsByFile = _serialize_guard($scope0_reason, 5), $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles = _serialize_guard($scope0_reason, 18), $si__input_files__OR__input_collapsedFiles = _serialize_if($scope0_reason, 6), $si__input_files = _serialize_if($scope0_reason, 35), $si__input_files__OR__input_commentsByFile = _serialize_if($scope0_reason, 5), $si__input_findHit_key = _serialize_if($scope0_reason, 43), $sg__input_files__OR__input_collapsedFiles = _serialize_guard($scope0_reason, 6), $si__input_onFileToggle = _serialize_if($scope0_reason, 44), $si__input_repo__OR__input_files__OR__input_shownKeys = _serialize_if($scope0_reason, 11), $si__input_collapsible__OR__input_collapsed = _serialize_if($scope0_reason, 9), $si__input_files__OR__input_collapsible__OR__input_collapsed__OR__input_opened = _serialize_if($scope0_reason, 24), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers = _serialize_if($scope0_reason, 23), $si__input_files__OR__input_shownKeys = _serialize_if($scope0_reason, 3), $si__input_files__OR__input_onlyNew = _serialize_if($scope0_reason, 4), $si__input = _serialize_if($scope0_reason, 33), $si__input_draft = _serialize_if($scope0_reason, 46), $si__input_sessions = _serialize_if($scope0_reason, 47), $si__input_onSelect = _serialize_if($scope0_reason, 48), $si__input_onSaveComment = _serialize_if($scope0_reason, 49), $si__input_onSendDraft = _serialize_if($scope0_reason, 50), $si__input_onCancelDraft = _serialize_if($scope0_reason, 51), $si__input_onDeleteComment = _serialize_if($scope0_reason, 52), $si__input_onSendComment = _serialize_if($scope0_reason, 53), $si__input_onError = _serialize_if($scope0_reason, 54), $si__input_shownKeys = _serialize_if($scope0_reason, 36), $si__input_commentsByFile = _serialize_if($scope0_reason, 41), $si__input_collapsedFiles = _serialize_if($scope0_reason, 42), $si__input_findHit_line = _serialize_if($scope0_reason, 45);
|
|
1932
1932
|
const $scope0_id = _scope_id();
|
|
1933
1933
|
const $input__closures = /* @__PURE__ */ new Set();
|
|
@@ -1965,16 +1965,16 @@ var review_section_default = _template("s", (input) => {
|
|
|
1965
1965
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
1966
1966
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
1967
1967
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
1968
|
-
_html(`<section${_attr_class("
|
|
1968
|
+
_html(`<section${_attr_class("_fZ")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_f0", { ["_f1"]: input.collapsible && input.collapsed }])}>`);
|
|
1969
1969
|
_if(() => {
|
|
1970
1970
|
if (input.collapsible) {
|
|
1971
1971
|
const $scope1_id = _scope_id();
|
|
1972
|
-
_html(`<button type=button${_attr_class("
|
|
1973
|
-
"
|
|
1974
|
-
!input.collapsed && "
|
|
1975
|
-
input.expanding && "
|
|
1972
|
+
_html(`<button type=button${_attr_class("_f2")} aria-expanded=${!input.collapsed ? "true" : "false"} aria-busy=${input.expanding ? "true" : "false"}${input.collapsed ? _attr("title", `Show ${countLabel} files`) : " title=\"Hide files\""}><span${_attr_class([
|
|
1973
|
+
"_gl",
|
|
1974
|
+
!input.collapsed && "_gm",
|
|
1975
|
+
input.expanding && "_gn"
|
|
1976
1976
|
])} aria-hidden=true>${input.collapsed ? "▸" : "▾"}${_el_resume($scope1_id, "c", _serialize_guard($scope0_reason, 39))}</span>${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 10))}<span${_attr_class(repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope1_id, "e", $sg__input_repo)}</span></button>${_el_resume($scope1_id, "a")}`);
|
|
1977
|
-
_script($scope1_id, "
|
|
1977
|
+
_script($scope1_id, "t8");
|
|
1978
1978
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
1979
1979
|
return 0;
|
|
1980
1980
|
} else {
|
|
@@ -1997,14 +1997,14 @@ var review_section_default = _template("s", (input) => {
|
|
|
1997
1997
|
return 1;
|
|
1998
1998
|
}
|
|
1999
1999
|
}, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened);
|
|
2000
|
-
_html(`<span${_attr_class("
|
|
2000
|
+
_html(`<span${_attr_class("_f_")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_I", "_ga"])}>${_escape(compare$1.base)}${_el_resume($scope0_id, "g", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_K", "_gc"])} aria-hidden=true>vs</span><span${_attr_class(["_I", "_gb"])}>${_escape(compare$1.head)}${_el_resume($scope0_id, "j", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2001
2001
|
_if(() => {
|
|
2002
2002
|
if (compare$1.topic) {
|
|
2003
2003
|
const $scope15_id = _scope_id();
|
|
2004
2004
|
_html(`<span${_attr_class([
|
|
2005
2005
|
"_I",
|
|
2006
2006
|
tone.accent,
|
|
2007
|
-
"
|
|
2007
|
+
"_gd"
|
|
2008
2008
|
])}>${_escape(compare$1.topic)}${_el_resume($scope15_id, "b", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2009
2009
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
2010
2010
|
return 0;
|
|
@@ -2017,9 +2017,9 @@ var review_section_default = _template("s", (input) => {
|
|
|
2017
2017
|
_html(`<button type=button${_attr_class([
|
|
2018
2018
|
"_I",
|
|
2019
2019
|
tone.warn,
|
|
2020
|
-
"
|
|
2020
|
+
"_ge"
|
|
2021
2021
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_sep($sg__input_repo)}${_escape(shortSha(repo.head, 7))}${_el_resume($scope2_id, "b", $sg__input_repo)} → ${_sep($sg__input_repo)}${_escape(shortSha(repo.pr.headRefOid, 7))}${_el_resume($scope2_id, "c", $sg__input_repo)}</button>${_el_resume($scope2_id, "a")}`);
|
|
2022
|
-
_script($scope2_id, "
|
|
2022
|
+
_script($scope2_id, "t9");
|
|
2023
2023
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
2024
2024
|
return 0;
|
|
2025
2025
|
}
|
|
@@ -2027,7 +2027,7 @@ var review_section_default = _template("s", (input) => {
|
|
|
2027
2027
|
_if(() => {
|
|
2028
2028
|
if (repo.contained && input.files.length) {
|
|
2029
2029
|
const $scope13_id = _scope_id();
|
|
2030
|
-
_html(`<span${_attr_class(["_I", "
|
|
2030
|
+
_html(`<span${_attr_class(["_I", "_ge"])}${_attr("title", `${repo.pr ? `#${repo.pr.number}` : repo.branch} is already in ${repo.base}; showing the working tree only`)}>already in ${_sep($sg__input_repo)}${_escape(repo.base)}${_el_resume($scope13_id, "b", $sg__input_repo)}</span>${_el_resume($scope13_id, "a", $sg__input_repo)}`);
|
|
2031
2031
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
2032
2032
|
return 0;
|
|
2033
2033
|
}
|
|
@@ -2035,16 +2035,16 @@ var review_section_default = _template("s", (input) => {
|
|
|
2035
2035
|
_if(() => {
|
|
2036
2036
|
if (input.localDiffers) {
|
|
2037
2037
|
const $scope3_id = _scope_id();
|
|
2038
|
-
_html(`<span${_attr_class(["_I", "
|
|
2038
|
+
_html(`<span${_attr_class(["_I", "_ge"])}${_attr("title", `This view is ${shortSha(repo.head)} (${repo.pr.headRefName}); checked out is ${shortSha(repo.localHead)} (${repo.branch})`)}>local ${_sep($sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}${_escape(shortBranch(repo.branch, input.workspaceBranch, input.workspaceName))}${_el_resume($scope3_id, "b", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)} ${_sep($sg__input_repo)}${_escape(shortSha(repo.localHead, 7))}${_el_resume($scope3_id, "c", $sg__input_repo)}</span>${_el_resume($scope3_id, "a", $sg__input_repo)}`);
|
|
2039
2039
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope3_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
2040
2040
|
return 0;
|
|
2041
2041
|
}
|
|
2042
2042
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 40), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
2043
|
-
_html(`<span${_attr_class("
|
|
2043
|
+
_html(`<span${_attr_class("_f4")}><span>${_escape(countLabel)}${_el_resume($scope0_id, "p", $sg__input_files__OR__input_shownKeys)} file${_sep($sg__input_files__OR__input_shownKeys)}${countLabel === 1 ? "" : "s"}${_el_resume($scope0_id, "q", $sg__input_files__OR__input_shownKeys)}</span>`);
|
|
2044
2044
|
_if(() => {
|
|
2045
2045
|
if (stats.additions || stats.deletions) {
|
|
2046
2046
|
const $scope14_id = _scope_id();
|
|
2047
|
-
_html(`<span${_attr_class("
|
|
2047
|
+
_html(`<span${_attr_class("_f5")}>+${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.additions)}${_el_resume($scope14_id, "b", $sg__input_files__OR__input_shownKeys)}</span><span${_attr_class("_f6")}>−${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.deletions)}${_el_resume($scope14_id, "d", $sg__input_files__OR__input_shownKeys)}</span>`);
|
|
2048
2048
|
$si__input_files__OR__input_shownKeys && writeScope($scope14_id, { _: _scope_with_id($scope0_id) });
|
|
2049
2049
|
return 0;
|
|
2050
2050
|
}
|
|
@@ -2052,8 +2052,8 @@ var review_section_default = _template("s", (input) => {
|
|
|
2052
2052
|
_if(() => {
|
|
2053
2053
|
if (newCount || input.onlyNew) {
|
|
2054
2054
|
const $scope4_id = _scope_id();
|
|
2055
|
-
_html(`<button type=button${_attr_class(["
|
|
2056
|
-
_script($scope4_id, "
|
|
2055
|
+
_html(`<button type=button${_attr_class(["_f8", { ["_f7"]: input.onlyNew }])} aria-pressed=${input.onlyNew ? "true" : "false"} title=${input.onlyNew ? "\"Show every file\"" : "\"Show only files changed since your last visit\""}>${_escape(newCount)}${_el_resume($scope4_id, "b", $sg__input_files)} new</button>${_el_resume($scope4_id, "a")}`);
|
|
2056
|
+
_script($scope4_id, "t10");
|
|
2057
2057
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
2058
2058
|
return 0;
|
|
2059
2059
|
}
|
|
@@ -2062,7 +2062,7 @@ var review_section_default = _template("s", (input) => {
|
|
|
2062
2062
|
_if(() => {
|
|
2063
2063
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
2064
2064
|
const $scope5_id = _scope_id();
|
|
2065
|
-
_html(`<div${_attr_class("
|
|
2065
|
+
_html(`<div${_attr_class("_gg")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
2066
2066
|
_for_of(input.files, (file$1) => {
|
|
2067
2067
|
const $scope6_id = _scope_id();
|
|
2068
2068
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -2072,11 +2072,11 @@ var review_section_default = _template("s", (input) => {
|
|
|
2072
2072
|
const expanded = !input.collapsedFiles.has(file$1.key);
|
|
2073
2073
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
2074
2074
|
input.onFileToggle(file$1.key, open);
|
|
2075
|
-
}, "
|
|
2075
|
+
}, "t0", $scope6_id))}${_attr_class(["_gh", input.findHit?.key === file$1.key && "_fX"])}${_attr("data-key", file$1.key)}${_attr("hidden", !input.shownKeys.has(file$1.key))}><summary${_attr_class("_gj")}><span${_attr_class("_go")}${_attr("data-status", file$1.status)}>${_escape(file$1.status)}${_el_resume($scope6_id, "d", $sg__input_files)}</span>${_el_resume($scope6_id, "c", $sg__input_files)}<span${_attr_class(["_gp", input.findHit?.key === file$1.key && input.findHit.line < 1 && "_fY"])}${_attr("title", file$1.path)}><bdi>${_escape(file$1.path)}${_el_resume($scope6_id, "f", $sg__input_files)}</bdi></span>${_el_resume($scope6_id, "e", _serialize_guard($scope0_reason, 19))}`);
|
|
2076
2076
|
_if(() => {
|
|
2077
2077
|
if (file$1.changedSince) {
|
|
2078
2078
|
const $scope17_id = _scope_id();
|
|
2079
|
-
_html(`<span${_attr_class(["_z", "
|
|
2079
|
+
_html(`<span${_attr_class(["_z", "_gf"])} title="Changed since your last visit"></span>`);
|
|
2080
2080
|
$si__input_files && writeScope($scope17_id, {});
|
|
2081
2081
|
return 0;
|
|
2082
2082
|
}
|
|
@@ -2093,17 +2093,17 @@ var review_section_default = _template("s", (input) => {
|
|
|
2093
2093
|
_if(() => {
|
|
2094
2094
|
if (file$1.binary) {
|
|
2095
2095
|
const $scope18_id = _scope_id();
|
|
2096
|
-
_html(`<p${_attr_class(["
|
|
2096
|
+
_html(`<p${_attr_class(["_gq", "_gi"])}>binary file</p>`);
|
|
2097
2097
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope18_id, {});
|
|
2098
2098
|
return 0;
|
|
2099
2099
|
} else if (file$1.tooLarge) {
|
|
2100
2100
|
const $scope19_id = _scope_id();
|
|
2101
|
-
_html(`<p${_attr_class(["
|
|
2101
|
+
_html(`<p${_attr_class(["_gq", "_gi"])}>file too large to display</p>`);
|
|
2102
2102
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope19_id, {});
|
|
2103
2103
|
return 1;
|
|
2104
2104
|
} else if (file$1.old == null && file$1.new == null) {
|
|
2105
2105
|
const $scope20_id = _scope_id();
|
|
2106
|
-
_html(`<p${_attr_class(["
|
|
2106
|
+
_html(`<p${_attr_class(["_gq", "_gi"])}>file could not be read</p>`);
|
|
2107
2107
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope20_id, {});
|
|
2108
2108
|
return 2;
|
|
2109
2109
|
} else if (expanded) {
|
|
@@ -2113,40 +2113,40 @@ var review_section_default = _template("s", (input) => {
|
|
|
2113
2113
|
_if(() => {
|
|
2114
2114
|
if (!forceNear) {
|
|
2115
2115
|
const $scope8_id = _scope_id();
|
|
2116
|
-
_html(`<div${_attr_class(["
|
|
2117
|
-
_script($scope8_id, "
|
|
2116
|
+
_html(`<div${_attr_class(["_gk", "_gi"])}></div>${_el_resume($scope8_id, "a")}`);
|
|
2117
|
+
_script($scope8_id, "t11");
|
|
2118
2118
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
2119
2119
|
return 0;
|
|
2120
2120
|
} else {
|
|
2121
2121
|
const $scope9_id = _scope_id();
|
|
2122
2122
|
const $childScope = _peek_scope_id();
|
|
2123
2123
|
diff_file_default({
|
|
2124
|
-
class: "
|
|
2124
|
+
class: "_gi",
|
|
2125
2125
|
file: file$1,
|
|
2126
2126
|
comments: fileComments,
|
|
2127
2127
|
draft: input.draft && input.draft.key === file$1.key ? input.draft : null,
|
|
2128
2128
|
sessions: input.sessions,
|
|
2129
2129
|
onSelect: _resume(function(range) {
|
|
2130
2130
|
input.onSelect(file$1, range);
|
|
2131
|
-
}, "
|
|
2131
|
+
}, "t1", $scope9_id),
|
|
2132
2132
|
onSaveComment: _resume(function(text) {
|
|
2133
2133
|
input.onSaveComment(file$1, text);
|
|
2134
|
-
}, "
|
|
2134
|
+
}, "t2", $scope9_id),
|
|
2135
2135
|
onSendDraft: _resume(function(text, sessionId) {
|
|
2136
2136
|
input.onSendDraft(file$1, text, sessionId);
|
|
2137
|
-
}, "
|
|
2137
|
+
}, "t3", $scope9_id),
|
|
2138
2138
|
onCancelDraft: _resume(function() {
|
|
2139
2139
|
input.onCancelDraft();
|
|
2140
|
-
}, "
|
|
2140
|
+
}, "t4", $scope9_id),
|
|
2141
2141
|
onDeleteComment: _resume(function(id) {
|
|
2142
2142
|
input.onDeleteComment(id);
|
|
2143
|
-
}, "
|
|
2143
|
+
}, "t5", $scope9_id),
|
|
2144
2144
|
onSendComment: _resume(function(id, sessionId) {
|
|
2145
2145
|
input.onSendComment(id, sessionId);
|
|
2146
|
-
}, "
|
|
2146
|
+
}, "t6", $scope9_id),
|
|
2147
2147
|
onError: _resume(function(message) {
|
|
2148
2148
|
input.onError(message);
|
|
2149
|
-
}, "
|
|
2149
|
+
}, "t7", $scope9_id)
|
|
2150
2150
|
});
|
|
2151
2151
|
_subscribe($si__input_files__OR__input_commentsByFile && $for_content__fileComments__closures, _subscribe($si__input_files && $for_content__file_key__closures, _subscribe($si__input_files && $for_content__file__closures, _subscribe($si__input_onError && $input_onError__closures, _subscribe($si__input_onSendComment && $input_onSendComment__closures, _subscribe($si__input_onDeleteComment && $input_onDeleteComment__closures, _subscribe($si__input_onCancelDraft && $input_onCancelDraft__closures, _subscribe($si__input_onSendDraft && $input_onSendDraft__closures, _subscribe($si__input_onSaveComment && $input_onSaveComment__closures, _subscribe($si__input_onSelect && $input_onSelect__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_draft && $input_draft__closures, writeScope($scope9_id, { a: _serialize_if($scope0_reason, 32) && _existing_scope($childScope) })))))))))))));
|
|
2152
2152
|
return 1;
|
|
@@ -2162,7 +2162,7 @@ var review_section_default = _template("s", (input) => {
|
|
|
2162
2162
|
}
|
|
2163
2163
|
}, $scope6_id, "i", $sg__input_files__OR__input_collapsedFiles, $sg__input_files__OR__input_collapsedFiles, $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles);
|
|
2164
2164
|
_html(`</details>${_el_resume($scope6_id, "a")}`);
|
|
2165
|
-
_script($scope6_id, "
|
|
2165
|
+
_script($scope6_id, "t12");
|
|
2166
2166
|
_subscribe($si__input_findHit_line && $input_findHit_line__closures, _subscribe($si__input_onFileToggle && $input_onFileToggle__closures, _subscribe($si__input_findHit_key && $input_findHit_key__closures, _subscribe($si__input_collapsedFiles && $input_collapsedFiles__closures, _subscribe($si__input_commentsByFile && $input_commentsByFile__closures, _subscribe($si__input_shownKeys && $input_shownKeys__closures, writeScope($scope6_id, {
|
|
2167
2167
|
k: file$1,
|
|
2168
2168
|
l: file$1?.key,
|
|
@@ -2256,10 +2256,10 @@ var review_section_default = _template("s", (input) => {
|
|
|
2256
2256
|
cc: $si__input_findHit_line && $input_findHit_line__closures
|
|
2257
2257
|
});
|
|
2258
2258
|
});
|
|
2259
|
-
var fileFilter = "
|
|
2259
|
+
var fileFilter = "_gY _l";
|
|
2260
2260
|
//#endregion
|
|
2261
2261
|
//#region src/tags/file-filter.marko
|
|
2262
|
-
var file_filter_default = _template("
|
|
2262
|
+
var file_filter_default = _template("m", (input) => {
|
|
2263
2263
|
const $scope0_reason = _scope_reason();
|
|
2264
2264
|
const $scope0_id = _scope_id();
|
|
2265
2265
|
let value = input.value;
|
|
@@ -2274,7 +2274,7 @@ var file_filter_default = _template("l", (input) => {
|
|
|
2274
2274
|
const next = pending !== null ? pending : value || "";
|
|
2275
2275
|
pending = null;
|
|
2276
2276
|
value = next;
|
|
2277
|
-
}, "
|
|
2277
|
+
}, "m1", $scope0_id);
|
|
2278
2278
|
const type = _resume((v) => {
|
|
2279
2279
|
if (box.timer) clearTimeout(box.timer);
|
|
2280
2280
|
if (!v) {
|
|
@@ -2285,11 +2285,11 @@ var file_filter_default = _template("l", (input) => {
|
|
|
2285
2285
|
}
|
|
2286
2286
|
pending = v;
|
|
2287
2287
|
box.timer = setTimeout(flush, 150);
|
|
2288
|
-
}, "
|
|
2289
|
-
_html(`<div${_attr_class("
|
|
2288
|
+
}, "m2", $scope0_id);
|
|
2289
|
+
_html(`<div${_attr_class("_gX")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
2290
2290
|
type(v);
|
|
2291
|
-
}, "
|
|
2292
|
-
_script($scope0_id, "
|
|
2291
|
+
}, "m0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
2292
|
+
_script($scope0_id, "m3");
|
|
2293
2293
|
writeScope($scope0_id, {
|
|
2294
2294
|
e: _serialize_if($scope0_reason, 1) && input.value,
|
|
2295
2295
|
f: _serialize_if($scope0_reason, 0) && input.valueChange,
|
|
@@ -2319,7 +2319,7 @@ var $content = (input) => {
|
|
|
2319
2319
|
_for_of(dir.dirs, (child) => {
|
|
2320
2320
|
const $scope1_id = _scope_id();
|
|
2321
2321
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
2322
|
-
_html(`<div${_attr_class("
|
|
2322
|
+
_html(`<div${_attr_class("_fw")}><button type=button${_attr_class(["_fx", { ["_fo"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_fE")}>${shut ? "▸" : "▾"}${_el_resume($scope1_id, "d", $sg__input)}</span><span${_attr_class("_fy")}>${_escape(child.label)}${_el_resume($scope1_id, "f", $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2323
2323
|
_if(() => {
|
|
2324
2324
|
if (!shut) {
|
|
2325
2325
|
const $scope2_id = _scope_id();
|
|
@@ -2357,7 +2357,7 @@ var $content = (input) => {
|
|
|
2357
2357
|
}
|
|
2358
2358
|
}, $scope1_id, "g", $sg__input, $sg__input, $sg__input);
|
|
2359
2359
|
_html("</div>");
|
|
2360
|
-
_script($scope1_id, "
|
|
2360
|
+
_script($scope1_id, "j0");
|
|
2361
2361
|
writeScope($scope1_id, {
|
|
2362
2362
|
i: child,
|
|
2363
2363
|
j: $si__input && child?.path,
|
|
@@ -2366,11 +2366,11 @@ var $content = (input) => {
|
|
|
2366
2366
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
2367
2367
|
_for_of(dir.files, ({ file, name }) => {
|
|
2368
2368
|
const $scope3_id = _scope_id();
|
|
2369
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
2369
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_fA", { ["_fz"]: input.collapsedFiles?.has(file.key) }])}${input.collapsedFiles?.has(file.key) ? _attr("title", `${file.path} (folded — click to open)`) : _attr("title", file.path)}${_attr_style(`--depth:${dir.depth + 1}`)}><span${_attr_class("_fF")}${_attr("data-status", file.status)}>${_escape(file.status)}${_el_resume($scope3_id, "c", $sg__input_dir)}</span>${_el_resume($scope3_id, "b", $sg__input_dir)}<span${_attr_class("_fB")}>${_escape(name)}${_el_resume($scope3_id, "e", $sg__input_dir)}</span>`);
|
|
2370
2370
|
_if(() => {
|
|
2371
2371
|
if (input.newKeys.has(file.key)) {
|
|
2372
2372
|
const $scope4_id = _scope_id();
|
|
2373
|
-
_html(`<span${_attr_class(["_z", "
|
|
2373
|
+
_html(`<span${_attr_class(["_z", "_fC"])} title="Changed since your last visit"></span>`);
|
|
2374
2374
|
_serialize_if($scope0_reason, 1) && writeScope($scope4_id, {});
|
|
2375
2375
|
return 0;
|
|
2376
2376
|
}
|
|
@@ -2378,7 +2378,7 @@ var $content = (input) => {
|
|
|
2378
2378
|
_if(() => {
|
|
2379
2379
|
if (input.commentKeys.has(file.key)) {
|
|
2380
2380
|
const $scope5_id = _scope_id();
|
|
2381
|
-
_html(`<span${_attr_class("
|
|
2381
|
+
_html(`<span${_attr_class("_fD")}>💬</span>`);
|
|
2382
2382
|
_serialize_if($scope0_reason, 0) && writeScope($scope5_id, {});
|
|
2383
2383
|
return 0;
|
|
2384
2384
|
}
|
|
@@ -2409,10 +2409,10 @@ var $content = (input) => {
|
|
|
2409
2409
|
x: $si__input_newKeys && $input_newKeys__closures
|
|
2410
2410
|
});
|
|
2411
2411
|
};
|
|
2412
|
-
var diff_tree_dir_default = _template("
|
|
2412
|
+
var diff_tree_dir_default = _template("j", $content);
|
|
2413
2413
|
//#endregion
|
|
2414
2414
|
//#region src/tags/diff-tree.marko
|
|
2415
|
-
var diff_tree_default = _template("
|
|
2415
|
+
var diff_tree_default = _template("k", (input) => {
|
|
2416
2416
|
const $scope0_reason = _scope_reason(), $sg__input_sections = _serialize_guard($scope0_reason, 10), $si__input_onDirToggle = _serialize_if($scope0_reason, 12), $si__input_collapsedFiles = _serialize_if($scope0_reason, 13), $si__input_commentKeys = _serialize_if($scope0_reason, 7), $si__input_newKeys = _serialize_if($scope0_reason, 8), $si__input_workspaceId__OR__input_scope = _serialize_if($scope0_reason, 0);
|
|
2417
2417
|
const $scope0_id = _scope_id();
|
|
2418
2418
|
const $input_onDirToggle__closures = /* @__PURE__ */ new Set();
|
|
@@ -2433,39 +2433,39 @@ var diff_tree_default = _template("j", (input) => {
|
|
|
2433
2433
|
view: "diff",
|
|
2434
2434
|
scope: input.scope ?? null,
|
|
2435
2435
|
file: key
|
|
2436
|
-
}), "
|
|
2437
|
-
_html(`<aside${_attr_class(["
|
|
2436
|
+
}), "k0", $scope0_id);
|
|
2437
|
+
_html(`<aside${_attr_class(["_fp", { ["_fo"]: input.open === false }])}><div${_attr_class("_fq")}>`);
|
|
2438
2438
|
_set_serialize_reason(2);
|
|
2439
2439
|
const $childScope = _peek_scope_id();
|
|
2440
2440
|
file_filter_default({
|
|
2441
2441
|
value: filter,
|
|
2442
2442
|
valueChange: _resume((_new_filter) => {
|
|
2443
2443
|
filter = _new_filter;
|
|
2444
|
-
}, "
|
|
2444
|
+
}, "k1", $scope0_id)
|
|
2445
2445
|
});
|
|
2446
|
-
_html(`</div><div${_attr_class("
|
|
2446
|
+
_html(`</div><div${_attr_class("_fr")}>`);
|
|
2447
2447
|
_if(() => {
|
|
2448
2448
|
if (!input.sections.length && filter) {
|
|
2449
2449
|
const $scope3_id = _scope_id();
|
|
2450
|
-
_html(`<p${_attr_class("
|
|
2450
|
+
_html(`<p${_attr_class("_fs")}>No files match.</p>`);
|
|
2451
2451
|
writeScope($scope3_id, {});
|
|
2452
2452
|
return 0;
|
|
2453
2453
|
}
|
|
2454
2454
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
2455
2455
|
_for_of(input.sections, (section) => {
|
|
2456
2456
|
const $scope1_id = _scope_id();
|
|
2457
|
-
_html(`<div${_attr_class("
|
|
2457
|
+
_html(`<div${_attr_class("_ft")}><button type=button${_attr_class(["_fu", { ["_fo"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_fE")}>${collapsedRepos.has(section.id) ? "▸" : "▾"}${_el_resume($scope1_id, "d")}</span><span${_attr_class("_fy")}>${_escape(section.label)}${_el_resume($scope1_id, "f", $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2458
2458
|
_if(() => {
|
|
2459
2459
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
2460
2460
|
const $scope2_id = _scope_id();
|
|
2461
2461
|
const root = treeDirs(section.files);
|
|
2462
|
-
_html(`<div${_attr_class("
|
|
2462
|
+
_html(`<div${_attr_class("_fv")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
2463
2463
|
_set_serialize_reason(1);
|
|
2464
2464
|
const $childScope2 = _peek_scope_id();
|
|
2465
2465
|
diff_tree_dir_default({
|
|
2466
2466
|
dir: root,
|
|
2467
2467
|
collapsed: collapsedDirs,
|
|
2468
|
-
collapsedKey: _resume((path) => `${section.id}/${path}`, "
|
|
2468
|
+
collapsedKey: _resume((path) => `${section.id}/${path}`, "k2", $scope2_id),
|
|
2469
2469
|
onToggleDir: _resume(function(dir) {
|
|
2470
2470
|
const key = `${section.id}/${dir.path}`;
|
|
2471
2471
|
const next = new Set(collapsedDirs);
|
|
@@ -2473,7 +2473,7 @@ var diff_tree_default = _template("j", (input) => {
|
|
|
2473
2473
|
if (collapsed) next.add(key);
|
|
2474
2474
|
collapsedDirs = next;
|
|
2475
2475
|
input.onDirToggle?.(section.files.filter((f) => f.path.startsWith(`${dir.path}/`)).map((f) => f.key), collapsed);
|
|
2476
|
-
}, "
|
|
2476
|
+
}, "k3", $scope2_id),
|
|
2477
2477
|
hrefFor,
|
|
2478
2478
|
collapsedFiles: input.collapsedFiles,
|
|
2479
2479
|
commentKeys,
|
|
@@ -2488,7 +2488,7 @@ var diff_tree_default = _template("j", (input) => {
|
|
|
2488
2488
|
}
|
|
2489
2489
|
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
2490
2490
|
_html("</div>");
|
|
2491
|
-
_script($scope1_id, "
|
|
2491
|
+
_script($scope1_id, "k4");
|
|
2492
2492
|
writeScope($scope1_id, {
|
|
2493
2493
|
j: section?.id,
|
|
2494
2494
|
n: section?.files,
|
|
@@ -2531,7 +2531,7 @@ var diff_tree_default = _template("j", (input) => {
|
|
|
2531
2531
|
});
|
|
2532
2532
|
//#endregion
|
|
2533
2533
|
//#region src/tags/diff-file-sheet.marko
|
|
2534
|
-
var diff_file_sheet_default = _template("
|
|
2534
|
+
var diff_file_sheet_default = _template("f", (input) => {
|
|
2535
2535
|
const $scope0_reason = _scope_reason(), $sg__input_total__OR__input_files_length = _serialize_guard($scope0_reason, 2), $sg__input_files = _serialize_guard($scope0_reason, 12), $sg__input_newKeys__OR__input_files = _serialize_guard($scope0_reason, 1), $sg__input_commentKeys__OR__input_newKeys__OR__input_files = _serialize_guard($scope0_reason, 4), $sg__input_commentKeys__OR__input_files = _serialize_guard($scope0_reason, 0), $si__input_files = _serialize_if($scope0_reason, 12), $sg__input_files_length = _serialize_guard($scope0_reason, 13), $si__input_files_length = _serialize_if($scope0_reason, 13), $si__input_commentKeys = _serialize_if($scope0_reason, 10), $si__input_newKeys = _serialize_if($scope0_reason, 11), $si__input_workspaceId__OR__input_scope = _serialize_if($scope0_reason, 3);
|
|
2536
2536
|
const $scope0_id = _scope_id();
|
|
2537
2537
|
const $commentKeys__closures = /* @__PURE__ */ new Set();
|
|
@@ -2547,7 +2547,7 @@ var diff_file_sheet_default = _template("e", (input) => {
|
|
|
2547
2547
|
view: "diff",
|
|
2548
2548
|
scope: input.scope ?? null,
|
|
2549
2549
|
file: key
|
|
2550
|
-
}), "
|
|
2550
|
+
}), "f0", $scope0_id);
|
|
2551
2551
|
const groups = (() => {
|
|
2552
2552
|
const out = [];
|
|
2553
2553
|
const byRepo = /* @__PURE__ */ new Map();
|
|
@@ -2584,39 +2584,39 @@ var diff_file_sheet_default = _template("e", (input) => {
|
|
|
2584
2584
|
_if(() => {
|
|
2585
2585
|
if (open) {
|
|
2586
2586
|
const $scope1_id = _scope_id();
|
|
2587
|
-
_html(`<div${_attr_class("
|
|
2587
|
+
_html(`<div${_attr_class("_fI")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_fJ")} role=dialog aria-label="Jump to file"><div${_attr_class("_fK")}><strong${_attr_class("_fH")}>Files</strong><span${_attr_class("_fL")}>${_escape(input.files.length)}${_el_resume($scope1_id, "f", $sg__input_files_length)}${_sep($sg__input_total__OR__input_files_length)}${input.files.length !== total ? ` / ${_escape(`${total}`)}` : ""}${_el_resume($scope1_id, "g", $sg__input_total__OR__input_files_length)}</span><button type=button${_attr_class([iconBtnLg, "_fG"])} title=Close aria-label=Close>`);
|
|
2588
2588
|
icon_xmark_default({ size: 16 });
|
|
2589
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
2589
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_fT")}>`);
|
|
2590
2590
|
_set_serialize_reason(2);
|
|
2591
2591
|
const $childScope = _peek_scope_id();
|
|
2592
2592
|
file_filter_default({
|
|
2593
2593
|
value: filter,
|
|
2594
2594
|
valueChange: _resume((_new_filter) => {
|
|
2595
2595
|
filter = _new_filter;
|
|
2596
|
-
}, "
|
|
2596
|
+
}, "f1", $scope1_id)
|
|
2597
2597
|
});
|
|
2598
|
-
_html(`</div><div${_attr_class("
|
|
2598
|
+
_html(`</div><div${_attr_class("_fM")}>`);
|
|
2599
2599
|
_for_of(groups, (group) => {
|
|
2600
2600
|
const $scope2_id = _scope_id();
|
|
2601
|
-
_html(`<div${_attr_class("
|
|
2601
|
+
_html(`<div${_attr_class("_fN")}><div${_attr_class("_fO")}>${_escape(group.repo)}${_el_resume($scope2_id, "c", $sg__input_files)}</div>`);
|
|
2602
2602
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
2603
2603
|
const $scope3_id = _scope_id();
|
|
2604
|
-
_html(`<div${_attr_class("
|
|
2604
|
+
_html(`<div${_attr_class("_fP")}>`);
|
|
2605
2605
|
_if(() => {
|
|
2606
2606
|
if (dir) {
|
|
2607
2607
|
const $scope5_id = _scope_id();
|
|
2608
|
-
_html(`<div${_attr_class("
|
|
2608
|
+
_html(`<div${_attr_class("_fR")}${_attr("title", dir)}><bdi>${_escape(dir)}${_el_resume($scope5_id, "b", $sg__input_files)}/</bdi></div>${_el_resume($scope5_id, "a", $sg__input_files)}`);
|
|
2609
2609
|
$si__input_files && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
2610
2610
|
return 0;
|
|
2611
2611
|
}
|
|
2612
2612
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
2613
2613
|
_for_of(files, ({ file, name }) => {
|
|
2614
2614
|
const $scope4_id = _scope_id();
|
|
2615
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
2615
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_fQ", "_x"])}><span${_attr_class("_fW")}${_attr("data-status", file.status)}>${_escape(file.status)}${_el_resume($scope4_id, "c", $sg__input_files)}</span>${_el_resume($scope4_id, "b", $sg__input_files)}<span${_attr_class("_fS")}><bdi>${_escape(name)}${_el_resume($scope4_id, "e", $sg__input_files)}</bdi></span>`);
|
|
2616
2616
|
_if(() => {
|
|
2617
2617
|
if (newKeys.has(file.key)) {
|
|
2618
2618
|
const $scope6_id = _scope_id();
|
|
2619
|
-
_html(`<span${_attr_class(["_z", "
|
|
2619
|
+
_html(`<span${_attr_class(["_z", "_fV"])} title="Changed since your last visit"></span>`);
|
|
2620
2620
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2621
2621
|
return 0;
|
|
2622
2622
|
}
|
|
@@ -2630,7 +2630,7 @@ var diff_file_sheet_default = _template("e", (input) => {
|
|
|
2630
2630
|
}
|
|
2631
2631
|
}, $scope4_id, "g", $sg__input_commentKeys__OR__input_files, $sg__input_commentKeys__OR__input_files, $sg__input_commentKeys__OR__input_newKeys__OR__input_files, 0, 1);
|
|
2632
2632
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
2633
|
-
_script($scope4_id, "
|
|
2633
|
+
_script($scope4_id, "f2");
|
|
2634
2634
|
_subscribe($si__input_workspaceId__OR__input_scope && $hrefFor2__closures, _subscribe($si__input_newKeys && $newKeys__closures, _subscribe($si__input_commentKeys && $commentKeys__closures, writeScope($scope4_id, {
|
|
2635
2635
|
k: _serialize_if($scope0_reason, 5) && file?.key,
|
|
2636
2636
|
_: _scope_with_id($scope3_id)
|
|
@@ -2648,13 +2648,13 @@ var diff_file_sheet_default = _template("e", (input) => {
|
|
|
2648
2648
|
_if(() => {
|
|
2649
2649
|
if (!input.files.length) {
|
|
2650
2650
|
const $scope8_id = _scope_id();
|
|
2651
|
-
_html(`<p${_attr_class("
|
|
2651
|
+
_html(`<p${_attr_class("_fU")}>No files match.</p>`);
|
|
2652
2652
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
2653
2653
|
return 0;
|
|
2654
2654
|
}
|
|
2655
2655
|
}, $scope1_id, "n", $sg__input_files_length, $sg__input_files_length, $sg__input_files_length, 0, 1);
|
|
2656
2656
|
_html("</div></div>");
|
|
2657
|
-
_script($scope1_id, "
|
|
2657
|
+
_script($scope1_id, "f3");
|
|
2658
2658
|
writeScope($scope1_id, { k: _existing_scope($childScope) });
|
|
2659
2659
|
return 0;
|
|
2660
2660
|
}
|
|
@@ -2688,7 +2688,7 @@ var api;
|
|
|
2688
2688
|
var getTermDims;
|
|
2689
2689
|
var revealSearchHit;
|
|
2690
2690
|
var setSearchPaint;
|
|
2691
|
-
var diff_view_default = _template("
|
|
2691
|
+
var diff_view_default = _template("l", (input) => {
|
|
2692
2692
|
const $scope0_reason = _scope_reason(), $si__input_sessions = _serialize_if($scope0_reason, 5), $si__input_workspaceBranch = _serialize_if($scope0_reason, 6), $si__input_workspaceName = _serialize_if($scope0_reason, 7);
|
|
2693
2693
|
const $scope0_id = _scope_id();
|
|
2694
2694
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
@@ -2723,14 +2723,14 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2723
2723
|
let fileFilter = diffFilter(input.workspaceId);
|
|
2724
2724
|
const $filterChange = _resume((_new_fileFilter) => {
|
|
2725
2725
|
fileFilter = _new_fileFilter;
|
|
2726
|
-
}, "
|
|
2726
|
+
}, "l1", $scope0_id);
|
|
2727
2727
|
let onlyNew = false;
|
|
2728
2728
|
let scope$1 = input.scope ?? diffScope();
|
|
2729
2729
|
let treeOpen = diffTreeOpen();
|
|
2730
2730
|
let fileSheet = false;
|
|
2731
2731
|
let findOpen = input.findOpen;
|
|
2732
2732
|
let findTick = input.findTick || 0;
|
|
2733
|
-
const findFocusRef = input.findFocusRef || { focus: _resume(function() {}, "
|
|
2733
|
+
const findFocusRef = input.findFocusRef || { focus: _resume(function() {}, "l2") };
|
|
2734
2734
|
let findState = {
|
|
2735
2735
|
query: "",
|
|
2736
2736
|
hit: null,
|
|
@@ -2743,7 +2743,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2743
2743
|
for (const key of keys) if (collapsed) next.add(key);
|
|
2744
2744
|
else next.delete(key);
|
|
2745
2745
|
if (next.size !== collapsedFiles.size || [...next].some((k) => !collapsedFiles.has(k))) collapsedFiles = next;
|
|
2746
|
-
}, "
|
|
2746
|
+
}, "l3", $scope0_id);
|
|
2747
2747
|
let openedRepos = /* @__PURE__ */ new Set();
|
|
2748
2748
|
let expandingRepos = /* @__PURE__ */ new Set();
|
|
2749
2749
|
const nearBox = {
|
|
@@ -2784,7 +2784,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2784
2784
|
cb();
|
|
2785
2785
|
}
|
|
2786
2786
|
});
|
|
2787
|
-
}, "
|
|
2787
|
+
}, "l4", $scope0_id);
|
|
2788
2788
|
const pinToTop = _resume((el) => {
|
|
2789
2789
|
const root = ((scrollEl) => scrollEl())(_el_read_error);
|
|
2790
2790
|
if (!root) {
|
|
@@ -2793,7 +2793,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2793
2793
|
}
|
|
2794
2794
|
const top = el.getBoundingClientRect().top - root.getBoundingClientRect().top + root.scrollTop;
|
|
2795
2795
|
root.scrollTo({ top: Math.max(0, top - 8) });
|
|
2796
|
-
}, "
|
|
2796
|
+
}, "l5", $scope0_id);
|
|
2797
2797
|
const focusPrSection = _resume((pr) => {
|
|
2798
2798
|
if (!pr) return;
|
|
2799
2799
|
const list = repos || [];
|
|
@@ -2817,13 +2817,13 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2817
2817
|
pinToTop(el);
|
|
2818
2818
|
};
|
|
2819
2819
|
requestAnimationFrame(tryScroll);
|
|
2820
|
-
}, "
|
|
2821
|
-
const findFile = _resume((key) => ((scrollEl) => scrollEl())(_el_read_error)?.querySelector(`details[data-key="${CSS.escape(key)}"]`) ?? null, "
|
|
2820
|
+
}, "l6", $scope0_id);
|
|
2821
|
+
const findFile = _resume((key) => ((scrollEl) => scrollEl())(_el_read_error)?.querySelector(`details[data-key="${CSS.escape(key)}"]`) ?? null, "l7", $scope0_id);
|
|
2822
2822
|
const openFile = _resume((key) => {
|
|
2823
2823
|
const el = findFile(key);
|
|
2824
2824
|
if (el) el.open = true;
|
|
2825
2825
|
return el;
|
|
2826
|
-
}, "
|
|
2826
|
+
}, "l8", $scope0_id);
|
|
2827
2827
|
const jumpTo = _resume((key) => {
|
|
2828
2828
|
input.onFileChange?.(key);
|
|
2829
2829
|
const started = Date.now();
|
|
@@ -2836,7 +2836,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2836
2836
|
if (Date.now() - started < 2500) requestAnimationFrame(tryJump);
|
|
2837
2837
|
};
|
|
2838
2838
|
tryJump();
|
|
2839
|
-
}, "
|
|
2839
|
+
}, "l9", $scope0_id);
|
|
2840
2840
|
const posBox = {
|
|
2841
2841
|
anchor: null,
|
|
2842
2842
|
raf: 0,
|
|
@@ -2858,17 +2858,17 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2858
2858
|
};
|
|
2859
2859
|
}
|
|
2860
2860
|
return best;
|
|
2861
|
-
}, "
|
|
2861
|
+
}, "l10", $scope0_id);
|
|
2862
2862
|
const noteScroll = _resume(() => {
|
|
2863
2863
|
if (posBox.raf) return;
|
|
2864
2864
|
posBox.raf = requestAnimationFrame(() => {
|
|
2865
2865
|
posBox.raf = 0;
|
|
2866
2866
|
if (((scrollEl) => scrollEl())(_el_read_error)?.isConnected) posBox.anchor = anchorAt();
|
|
2867
2867
|
});
|
|
2868
|
-
}, "
|
|
2868
|
+
}, "l11", $scope0_id);
|
|
2869
2869
|
const savePos = _resume(() => {
|
|
2870
2870
|
if (repos) setDiffPos(input.workspaceId, posBox.anchor);
|
|
2871
|
-
}, "
|
|
2871
|
+
}, "l12", $scope0_id);
|
|
2872
2872
|
const restorePos = _resume((pos) => {
|
|
2873
2873
|
const run = ++posBox.run;
|
|
2874
2874
|
const started = Date.now();
|
|
@@ -2898,7 +2898,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2898
2898
|
} else if (!pinnedAt && Date.now() - started < 2500) requestAnimationFrame(tick);
|
|
2899
2899
|
};
|
|
2900
2900
|
requestAnimationFrame(tick);
|
|
2901
|
-
}, "
|
|
2901
|
+
}, "l13", $scope0_id);
|
|
2902
2902
|
const headBox = {
|
|
2903
2903
|
sig: "",
|
|
2904
2904
|
timer: 0
|
|
@@ -2930,14 +2930,14 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2930
2930
|
} finally {
|
|
2931
2931
|
if (seq === loadBox.seq) loading = false;
|
|
2932
2932
|
}
|
|
2933
|
-
}, "
|
|
2933
|
+
}, "l14", $scope0_id);
|
|
2934
2934
|
const setScope = _resume((next, persist = true) => {
|
|
2935
2935
|
if (next === scope$1) return;
|
|
2936
2936
|
scope$1 = next;
|
|
2937
2937
|
if (persist) setDiffScope(next);
|
|
2938
2938
|
input.onScopeChange?.(next);
|
|
2939
2939
|
load(next);
|
|
2940
|
-
}, "
|
|
2940
|
+
}, "l15", $scope0_id);
|
|
2941
2941
|
const sendGate = { busy: 0 };
|
|
2942
2942
|
const loadReview = _resume(async () => {
|
|
2943
2943
|
if (sendGate.busy) return;
|
|
@@ -2946,15 +2946,15 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2946
2946
|
if (sendGate.busy) return;
|
|
2947
2947
|
comments = reviewData.comments || [];
|
|
2948
2948
|
} catch {}
|
|
2949
|
-
}, "
|
|
2950
|
-
const reload = _resume(() => load(scope$1, true), "
|
|
2949
|
+
}, "l16", $scope0_id);
|
|
2950
|
+
const reload = _resume(() => load(scope$1, true), "l17", $scope0_id);
|
|
2951
2951
|
const reloadSoon = _resume(() => {
|
|
2952
2952
|
if (headBox.timer) clearTimeout(headBox.timer);
|
|
2953
2953
|
headBox.timer = setTimeout(() => {
|
|
2954
2954
|
headBox.timer = 0;
|
|
2955
2955
|
reload();
|
|
2956
2956
|
}, 250);
|
|
2957
|
-
}, "
|
|
2957
|
+
}, "l18", $scope0_id);
|
|
2958
2958
|
const markSeen = _resume(() => {
|
|
2959
2959
|
if (!repos) return;
|
|
2960
2960
|
const heads = {};
|
|
@@ -2973,7 +2973,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
2973
2973
|
}),
|
|
2974
2974
|
keepalive: true
|
|
2975
2975
|
}).catch(() => {});
|
|
2976
|
-
}, "
|
|
2976
|
+
}, "l19", $scope0_id);
|
|
2977
2977
|
const repoList = repos || [];
|
|
2978
2978
|
const allFiles = repoList.flatMap((r) => r.files.map((f) => ({
|
|
2979
2979
|
...f,
|
|
@@ -3007,7 +3007,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3007
3007
|
}));
|
|
3008
3008
|
const localDifferIds = new Set(repoList.filter((repo) => !!repo.pr && !!repo.localHead && (repo.localHead !== repo.head || repo.branch !== repo.pr.headRefName)).map((r) => r.id));
|
|
3009
3009
|
const hasFiles = !repos || allFiles.length > 0;
|
|
3010
|
-
const fileWorktree = _resume((repo) => repo.includes("#") ? repo.split("#")[0] : repo, "
|
|
3010
|
+
const fileWorktree = _resume((repo) => repo.includes("#") ? repo.split("#")[0] : repo, "l20");
|
|
3011
3011
|
const anchorFor = _resume((file, range) => {
|
|
3012
3012
|
const section = repoList.find((r) => r.id === file.repo);
|
|
3013
3013
|
const source = range.side === "deletions" ? file.old : file.new;
|
|
@@ -3015,7 +3015,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3015
3015
|
head: section?.head,
|
|
3016
3016
|
snippet: source == null ? void 0 : quoteRange(source, range.start, range.end, range.side === "deletions" ? "deletions" : "additions")
|
|
3017
3017
|
};
|
|
3018
|
-
}, "
|
|
3018
|
+
}, "l21", $scope0_id);
|
|
3019
3019
|
const saveComment = _resume(async (file, text) => {
|
|
3020
3020
|
const range = draft;
|
|
3021
3021
|
draft = null;
|
|
@@ -3039,16 +3039,16 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3039
3039
|
} catch (err) {
|
|
3040
3040
|
error = String(err.message || err);
|
|
3041
3041
|
}
|
|
3042
|
-
}, "
|
|
3042
|
+
}, "l22", $scope0_id);
|
|
3043
3043
|
const deleteRemote = _resume((ids) => ids === "all" ? fetch(`/api/workspaces/${input.workspaceId}/review`, {
|
|
3044
3044
|
method: "POST",
|
|
3045
3045
|
headers: { "content-type": "application/json" },
|
|
3046
3046
|
body: JSON.stringify({ action: "clear" })
|
|
3047
|
-
}) : Promise.all(ids.map((id) => fetch(`/api/workspaces/${input.workspaceId}/review/${id}`, { method: "DELETE" }))), "
|
|
3047
|
+
}) : Promise.all(ids.map((id) => fetch(`/api/workspaces/${input.workspaceId}/review/${id}`, { method: "DELETE" }))), "l23", $scope0_id);
|
|
3048
3048
|
const removeComment = _resume(async (id) => {
|
|
3049
3049
|
comments = comments.filter((c) => c.id !== id);
|
|
3050
3050
|
await deleteRemote([id]).catch(() => {});
|
|
3051
|
-
}, "
|
|
3051
|
+
}, "l24", $scope0_id);
|
|
3052
3052
|
const dispatch = _resume(async (list, to, consume) => {
|
|
3053
3053
|
if (!list.length) return true;
|
|
3054
3054
|
sendGate.busy++;
|
|
@@ -3084,13 +3084,13 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3084
3084
|
} finally {
|
|
3085
3085
|
sendGate.busy--;
|
|
3086
3086
|
}
|
|
3087
|
-
}, "
|
|
3088
|
-
const copyMarkdown = _resume(() => dispatch(comments, { clipboard: true }, "all"), "
|
|
3089
|
-
const sendTo = _resume((sessionId) => dispatch(comments, { session: sessionId }, "all"), "
|
|
3087
|
+
}, "l25", $scope0_id);
|
|
3088
|
+
const copyMarkdown = _resume(() => dispatch(comments, { clipboard: true }, "all"), "l26", $scope0_id);
|
|
3089
|
+
const sendTo = _resume((sessionId) => dispatch(comments, { session: sessionId }, "all"), "l27", $scope0_id);
|
|
3090
3090
|
const sendOneComment = _resume((id, sessionId) => {
|
|
3091
3091
|
const comment = comments.find((c) => c.id === id);
|
|
3092
3092
|
return comment ? dispatch([comment], { session: sessionId }, [id]) : Promise.resolve(false);
|
|
3093
|
-
}, "
|
|
3093
|
+
}, "l28", $scope0_id);
|
|
3094
3094
|
const sendDraftComment = _resume((file, text, sessionId) => {
|
|
3095
3095
|
const range = draft;
|
|
3096
3096
|
const trimmed = text.trim();
|
|
@@ -3108,12 +3108,12 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3108
3108
|
...anchorFor(file, range)
|
|
3109
3109
|
};
|
|
3110
3110
|
return dispatch([one], { session: sessionId }, []);
|
|
3111
|
-
}, "
|
|
3111
|
+
}, "l29", $scope0_id);
|
|
3112
3112
|
const openFind = _resume(() => {
|
|
3113
3113
|
findOpen = true;
|
|
3114
3114
|
findTick++;
|
|
3115
3115
|
findFocusRef.focus();
|
|
3116
|
-
}, "
|
|
3116
|
+
}, "l30", $scope0_id);
|
|
3117
3117
|
const onFindState = _resume((next) => {
|
|
3118
3118
|
findState = next;
|
|
3119
3119
|
if (!next.hit) return;
|
|
@@ -3128,7 +3128,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3128
3128
|
setSearchPaint(next.query, hit);
|
|
3129
3129
|
revealSearchHit();
|
|
3130
3130
|
}, 0);
|
|
3131
|
-
}, "
|
|
3131
|
+
}, "l31", $scope0_id);
|
|
3132
3132
|
const toggleSection = _resume((id) => {
|
|
3133
3133
|
if (expandingRepos.has(id)) {
|
|
3134
3134
|
const busy = new Set(expandingRepos);
|
|
@@ -3160,23 +3160,23 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3160
3160
|
openedRepos = /* @__PURE__ */ new Set([...openedRepos, id]);
|
|
3161
3161
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
3162
3162
|
}
|
|
3163
|
-
}, "
|
|
3164
|
-
_html(`<div${_attr_class("
|
|
3163
|
+
}, "l32", $scope0_id);
|
|
3164
|
+
_html(`<div${_attr_class("_ew")}><div${_attr_class("_eB")}><div${_attr_class("_eC")}><div${_attr_class(["_eM", { ["_eL"]: !comments.length }])}>`);
|
|
3165
3165
|
_if(() => {
|
|
3166
3166
|
if (input.onExit) {
|
|
3167
3167
|
const $scope1_id = _scope_id();
|
|
3168
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
3168
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_eD"])} title="Back to terminal (Esc)">`);
|
|
3169
3169
|
icon_back_default({ size: 14 });
|
|
3170
3170
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
3171
3171
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
3172
3172
|
return 0;
|
|
3173
3173
|
}
|
|
3174
3174
|
}, $scope0_id, "e", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 4), 1, 0, 1);
|
|
3175
|
-
_html(`<h1${_attr_class("
|
|
3175
|
+
_html(`<h1${_attr_class("_eG")}>Review</h1>`);
|
|
3176
3176
|
_if(() => {
|
|
3177
3177
|
if (comments.length) {
|
|
3178
3178
|
const $scope5_id = _scope_id();
|
|
3179
|
-
_html(`<span${_attr_class("
|
|
3179
|
+
_html(`<span${_attr_class("_eF")}>${_escape(comments.length)}${_el_resume($scope5_id, "b")} comment<!>${comments.length === 1 ? "" : "s"}${_el_resume($scope5_id, "c")}</span>`);
|
|
3180
3180
|
writeScope($scope5_id, {});
|
|
3181
3181
|
return 0;
|
|
3182
3182
|
}
|
|
@@ -3184,7 +3184,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3184
3184
|
_if(() => {
|
|
3185
3185
|
if (comments.length) {
|
|
3186
3186
|
const $scope2_id = _scope_id();
|
|
3187
|
-
_html(`<span${_attr_class("
|
|
3187
|
+
_html(`<span${_attr_class("_eE")}>`);
|
|
3188
3188
|
_set_serialize_reason(_serialize_guard($scope0_reason, 5));
|
|
3189
3189
|
const $childScope = _peek_scope_id();
|
|
3190
3190
|
diff_send_default({
|
|
@@ -3197,23 +3197,23 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3197
3197
|
return 0;
|
|
3198
3198
|
}
|
|
3199
3199
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
3200
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
3200
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_eA")}>`);
|
|
3201
3201
|
_if(() => {
|
|
3202
3202
|
if (hasFiles) {
|
|
3203
3203
|
const $scope12_id = _scope_id();
|
|
3204
3204
|
_html(`<button${_attr_class([
|
|
3205
3205
|
treeToggle,
|
|
3206
|
-
"
|
|
3207
|
-
{ ["
|
|
3206
|
+
"_ey",
|
|
3207
|
+
{ ["_ex"]: treeOpen }
|
|
3208
3208
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
3209
3209
|
icon_sidebar_default({ size: 14 });
|
|
3210
3210
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
3211
|
-
_script($scope12_id, "
|
|
3211
|
+
_script($scope12_id, "l50");
|
|
3212
3212
|
writeScope($scope12_id, {});
|
|
3213
3213
|
return 0;
|
|
3214
3214
|
}
|
|
3215
3215
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
3216
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3216
|
+
_html(`<button${_attr_class([iconBtnRow, "_ey"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
3217
3217
|
_set_serialize_reason(1);
|
|
3218
3218
|
const $childScope2 = _peek_scope_id();
|
|
3219
3219
|
icon_refresh_default({
|
|
@@ -3224,19 +3224,19 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3224
3224
|
_if(() => {
|
|
3225
3225
|
if (hasFiles) {
|
|
3226
3226
|
const $scope13_id = _scope_id();
|
|
3227
|
-
_html(`<button${_attr_class(["_o", "
|
|
3228
|
-
_script($scope13_id, "
|
|
3227
|
+
_html(`<button${_attr_class(["_o", "_eY"])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope13_id, "b")})</button>${_el_resume($scope13_id, "a")}`);
|
|
3228
|
+
_script($scope13_id, "l51");
|
|
3229
3229
|
writeScope($scope13_id, {});
|
|
3230
3230
|
return 0;
|
|
3231
3231
|
}
|
|
3232
3232
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
3233
|
-
_html(`<div${_attr_class("
|
|
3233
|
+
_html(`<div${_attr_class("_eN")} role=group aria-label="Review scope"><button type=button${_attr_class(["_eP", { ["_eO"]: scope$1 === "committed" }])} aria-pressed=${scope$1 === "committed" ? "true" : "false"} title="Committed changes only (base…tip, no working-tree edits)"${_attr("disabled", loading)}>Committed</button>${_el_resume($scope0_id, "o")}<button type=button${_attr_class(["_eP", { ["_eO"]: scope$1 === "working" }])} aria-pressed=${scope$1 === "working" ? "true" : "false"} title="Committed changes plus uncommitted and untracked files"${_attr("disabled", loading)}>Working tree</button>${_el_resume($scope0_id, "p")}<button type=button${_attr_class(["_eP", { ["_eO"]: scope$1 === "dirty" }])} aria-pressed=${scope$1 === "dirty" ? "true" : "false"} title="Only uncommitted and untracked files, against HEAD"${_attr("disabled", loading)}>Uncommitted</button>${_el_resume($scope0_id, "q")}</div><span${_attr_class(["_m", "_eQ"])}>`);
|
|
3234
3234
|
_attr_select_value($scope0_id, "s", scope$1, _resume(function(v) {
|
|
3235
3235
|
setScope(v);
|
|
3236
|
-
}, "
|
|
3237
|
-
_html(`<select${_attr_class(["_n", "
|
|
3236
|
+
}, "l0", $scope0_id), () => {
|
|
3237
|
+
_html(`<select${_attr_class(["_n", "_eR"])} aria-label="Review scope"${_attr("disabled", loading)}><option${_attr_option_value("committed")}>Committed</option><option${_attr_option_value("working")}>Working tree</option><option${_attr_option_value("dirty")}>Uncommitted</option></select>`);
|
|
3238
3238
|
});
|
|
3239
|
-
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["
|
|
3239
|
+
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["_eJ", { ["_eI"]: !findOpen }])}>`);
|
|
3240
3240
|
_set_serialize_reason(2);
|
|
3241
3241
|
const $childScope3 = _peek_scope_id();
|
|
3242
3242
|
diff_find_default({
|
|
@@ -3245,11 +3245,11 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3245
3245
|
open: findOpen,
|
|
3246
3246
|
openChange: _resume((_new_findOpen) => {
|
|
3247
3247
|
findOpen = _new_findOpen;
|
|
3248
|
-
}, "
|
|
3248
|
+
}, "l33", $scope0_id),
|
|
3249
3249
|
focusRef: findFocusRef,
|
|
3250
3250
|
stateChange: _resume(function(s) {
|
|
3251
3251
|
onFindState(s);
|
|
3252
|
-
}, "
|
|
3252
|
+
}, "l34", $scope0_id)
|
|
3253
3253
|
});
|
|
3254
3254
|
_html(`</div>${_el_resume($scope0_id, "t")}`);
|
|
3255
3255
|
_if(() => {
|
|
@@ -3257,25 +3257,25 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3257
3257
|
const $scope14_id = _scope_id();
|
|
3258
3258
|
_html(`<button${_attr_class([
|
|
3259
3259
|
iconBtnRow,
|
|
3260
|
-
"
|
|
3261
|
-
"
|
|
3260
|
+
"_eH",
|
|
3261
|
+
"_ey"
|
|
3262
3262
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
3263
3263
|
icon_search_default({ size: 14 });
|
|
3264
3264
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
3265
|
-
_script($scope14_id, "
|
|
3265
|
+
_script($scope14_id, "l52");
|
|
3266
3266
|
writeScope($scope14_id, {});
|
|
3267
3267
|
return 0;
|
|
3268
3268
|
}
|
|
3269
3269
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
3270
|
-
_html(`</div></div><div${_attr_class("
|
|
3270
|
+
_html(`</div></div><div${_attr_class("_eK")} data-diff-main>`);
|
|
3271
3271
|
_if(() => {
|
|
3272
3272
|
if (error) {
|
|
3273
3273
|
const $scope6_id = _scope_id();
|
|
3274
3274
|
toast_default({
|
|
3275
3275
|
onDismiss: _resume(function() {
|
|
3276
3276
|
error = null;
|
|
3277
|
-
}, "
|
|
3278
|
-
content: _content_resume("
|
|
3277
|
+
}, "l35", $scope6_id),
|
|
3278
|
+
content: _content_resume("l53", () => {
|
|
3279
3279
|
_scope_reason();
|
|
3280
3280
|
const $scope7_id = _scope_id();
|
|
3281
3281
|
_html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
|
|
@@ -3290,7 +3290,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3290
3290
|
_if(() => {
|
|
3291
3291
|
if (!repos && loading) {
|
|
3292
3292
|
const $scope15_id = _scope_id();
|
|
3293
|
-
_html(`<div${_attr_class("
|
|
3293
|
+
_html(`<div${_attr_class("_eT")} aria-hidden=true><div${_attr_class(["_eU", "_eV"])}></div><div${_attr_class(["_eU", "_eW"])}></div><div${_attr_class(["_eU", "_eX"])}></div><div${_attr_class(["_eU", "_eW"])}></div><div${_attr_class(["_eU", "_eX"])}></div></div>`);
|
|
3294
3294
|
writeScope($scope15_id, {});
|
|
3295
3295
|
return 0;
|
|
3296
3296
|
}
|
|
@@ -3304,7 +3304,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3304
3304
|
kind: "warn",
|
|
3305
3305
|
placement: "inline",
|
|
3306
3306
|
title: `${repo.worktree}: base not found`,
|
|
3307
|
-
content: _content_resume("
|
|
3307
|
+
content: _content_resume("l54", () => {
|
|
3308
3308
|
_scope_reason();
|
|
3309
3309
|
const $scope10_id = _scope_id();
|
|
3310
3310
|
_html(`${_escape(repo.base)}${_el_resume($scope10_id, "a")}<!>${scope$1 !== "committed" ? ", showing uncommitted changes only" : ""}${_el_resume($scope10_id, "b")}.`);
|
|
@@ -3321,12 +3321,12 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3321
3321
|
_if(() => {
|
|
3322
3322
|
if (repos && !allFiles.length) {
|
|
3323
3323
|
const $scope11_id = _scope_id();
|
|
3324
|
-
_html(`<p${_attr_class("
|
|
3324
|
+
_html(`<p${_attr_class("_bE")}>${scope$1 === "dirty" ? "Nothing uncommitted." : repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope11_id, "b")}</p>`);
|
|
3325
3325
|
writeScope($scope11_id, {});
|
|
3326
3326
|
return 0;
|
|
3327
3327
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
3328
3328
|
const $scope8_id = _scope_id();
|
|
3329
|
-
_html(`<p${_attr_class("
|
|
3329
|
+
_html(`<p${_attr_class("_bE")}>${findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope8_id, "b")}</p>`);
|
|
3330
3330
|
writeScope($scope8_id, {});
|
|
3331
3331
|
return 1;
|
|
3332
3332
|
}
|
|
@@ -3349,14 +3349,14 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3349
3349
|
opened: openedRepos.has(repo.id),
|
|
3350
3350
|
onToggle: _resume(function() {
|
|
3351
3351
|
toggleSection(repo.id);
|
|
3352
|
-
}, "
|
|
3352
|
+
}, "l36", $scope4_id),
|
|
3353
3353
|
workspaceBranch: input.workspaceBranch || "",
|
|
3354
3354
|
workspaceName: input.workspaceName || "",
|
|
3355
3355
|
localDiffers: localDifferIds.has(repo.id),
|
|
3356
3356
|
onlyNew,
|
|
3357
3357
|
onToggleNew: _resume(function() {
|
|
3358
3358
|
onlyNew = !onlyNew;
|
|
3359
|
-
}, "
|
|
3359
|
+
}, "l37", $scope4_id),
|
|
3360
3360
|
onReload: reload,
|
|
3361
3361
|
loading,
|
|
3362
3362
|
findHit: findState.hit,
|
|
@@ -3367,7 +3367,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3367
3367
|
collapsedFiles,
|
|
3368
3368
|
onFileToggle: _resume(function(key, open) {
|
|
3369
3369
|
setFilesCollapsed([key], !open);
|
|
3370
|
-
}, "
|
|
3370
|
+
}, "l38", $scope4_id),
|
|
3371
3371
|
onSelect: _resume(function(file, range) {
|
|
3372
3372
|
draft = {
|
|
3373
3373
|
key: file.key,
|
|
@@ -3375,25 +3375,25 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3375
3375
|
start: Math.min(range.start, range.end),
|
|
3376
3376
|
end: Math.max(range.start, range.end)
|
|
3377
3377
|
};
|
|
3378
|
-
}, "
|
|
3378
|
+
}, "l39", $scope4_id),
|
|
3379
3379
|
onSaveComment: _resume(function(file, text) {
|
|
3380
3380
|
saveComment(file, text);
|
|
3381
|
-
}, "
|
|
3381
|
+
}, "l40", $scope4_id),
|
|
3382
3382
|
onSendDraft: _resume(function(file, text, sessionId) {
|
|
3383
3383
|
sendDraftComment(file, text, sessionId);
|
|
3384
|
-
}, "
|
|
3384
|
+
}, "l41", $scope4_id),
|
|
3385
3385
|
onCancelDraft: _resume(function() {
|
|
3386
3386
|
draft = null;
|
|
3387
|
-
}, "
|
|
3387
|
+
}, "l42", $scope4_id),
|
|
3388
3388
|
onDeleteComment: _resume(function(id) {
|
|
3389
3389
|
removeComment(id);
|
|
3390
|
-
}, "
|
|
3390
|
+
}, "l43", $scope4_id),
|
|
3391
3391
|
onSendComment: _resume(function(id, sessionId) {
|
|
3392
3392
|
sendOneComment(id, sessionId);
|
|
3393
|
-
}, "
|
|
3393
|
+
}, "l44", $scope4_id),
|
|
3394
3394
|
onError: _resume(function(message) {
|
|
3395
3395
|
error = message;
|
|
3396
|
-
}, "
|
|
3396
|
+
}, "l45", $scope4_id)
|
|
3397
3397
|
});
|
|
3398
3398
|
_subscribe($toggleSection2__closures, _subscribe($sendDraftComment2__closures, _subscribe($sendOneComment2__closures, _subscribe($removeComment2__closures, _subscribe($saveComment2__closures, _subscribe($localDifferIds__closures, _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, _subscribe($repoList_length__closures, _subscribe($reload2__closures, _subscribe($expandingRepos__closures, _subscribe($openedRepos__closures, _subscribe($setFilesCollapsed2__closures, _subscribe($collapsedFiles__closures, _subscribe($collapsedRepos__closures, _subscribe($findState_hit__closures, _subscribe($onlyNew__closures, _subscribe($loading__closures, _subscribe($draft__closures, _subscribe($si__input_workspaceName && $input_workspaceName__closures, _subscribe($si__input_workspaceBranch && $input_workspaceBranch__closures, _subscribe($si__input_sessions && $input_sessions__closures, writeScope($scope4_id, { a: _existing_scope($childScope5) })))))))))))))))))))))));
|
|
3399
3399
|
return 0;
|
|
@@ -3415,17 +3415,17 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3415
3415
|
collapsedRepos,
|
|
3416
3416
|
collapsedReposChange: _resume((_new_collapsedRepos) => {
|
|
3417
3417
|
collapsedRepos = _new_collapsedRepos;
|
|
3418
|
-
}, "
|
|
3418
|
+
}, "l46", $scope0_id),
|
|
3419
3419
|
openedRepos,
|
|
3420
3420
|
openedReposChange: _resume((_new_openedRepos) => {
|
|
3421
3421
|
openedRepos = _new_openedRepos;
|
|
3422
|
-
}, "
|
|
3422
|
+
}, "l47", $scope0_id),
|
|
3423
3423
|
commentKeys,
|
|
3424
3424
|
newKeys,
|
|
3425
3425
|
collapsedFiles,
|
|
3426
3426
|
onDirToggle: _resume(function(keys, collapsed) {
|
|
3427
3427
|
setFilesCollapsed(keys, collapsed);
|
|
3428
|
-
}, "
|
|
3428
|
+
}, "l48", $scope0_id),
|
|
3429
3429
|
workspaceId: input.workspaceId,
|
|
3430
3430
|
scope: scope$1
|
|
3431
3431
|
});
|
|
@@ -3435,7 +3435,7 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3435
3435
|
open: fileSheet,
|
|
3436
3436
|
openChange: _resume((_new_fileSheet) => {
|
|
3437
3437
|
fileSheet = _new_fileSheet;
|
|
3438
|
-
}, "
|
|
3438
|
+
}, "l49", $scope0_id),
|
|
3439
3439
|
files: shownFiles,
|
|
3440
3440
|
filter: fileFilter,
|
|
3441
3441
|
filterChange: $filterChange,
|
|
@@ -3446,11 +3446,11 @@ var diff_view_default = _template("k", (input) => {
|
|
|
3446
3446
|
scope: scope$1
|
|
3447
3447
|
});
|
|
3448
3448
|
_html("</div>");
|
|
3449
|
-
_script($scope0_id, "
|
|
3450
|
-
_script($scope0_id, "
|
|
3451
|
-
_script($scope0_id, "
|
|
3452
|
-
_script($scope0_id, "
|
|
3453
|
-
_script($scope0_id, "
|
|
3449
|
+
_script($scope0_id, "l55");
|
|
3450
|
+
_script($scope0_id, "l56");
|
|
3451
|
+
_script($scope0_id, "l57");
|
|
3452
|
+
_script($scope0_id, "l58");
|
|
3453
|
+
_script($scope0_id, "l59");
|
|
3454
3454
|
writeScope($scope0_id, {
|
|
3455
3455
|
a6: input.workspaceId,
|
|
3456
3456
|
a7: input.scope,
|