@dylanpiercey/work 0.0.96 → 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/{_Cel25igI.js → _CQgZXJbG.js} +338 -268
- package/dist/{_C_EF8rh-.js → _Dc6tTxJq.js} +48 -48
- package/dist/index.mjs +668 -654
- package/dist/public/assets/{_xIRNtE1V.js → _-tuiGbc-.js} +1 -1
- package/dist/public/assets/_-tuiGbc-.js.br +0 -0
- package/dist/public/assets/{_FsklS6Cf.js → _2fq8NmQD.js} +1 -1
- package/dist/public/assets/_2fq8NmQD.js.br +0 -0
- package/dist/public/assets/{_D9Iriq-Y.js → _A0gPg0dM.js} +1 -1
- package/dist/public/assets/_A0gPg0dM.js.br +0 -0
- package/dist/public/assets/{_BEejQ7lO.js → _B2t0Kzqt.js} +1 -1
- package/dist/public/assets/_B2t0Kzqt.js.br +0 -0
- package/dist/public/assets/{_Qqf8g1TK.js → _B5U6PSkP.js} +1 -1
- package/dist/public/assets/_B5U6PSkP.js.br +0 -0
- package/dist/public/assets/{_CHu5Km3j2.js → _B5aGEX-X2.js} +1 -1
- package/dist/public/assets/_B5aGEX-X2.js.br +0 -0
- package/dist/public/assets/{_CKqbHwCF2.js → _B6afBkTT2.js} +1 -1
- package/dist/public/assets/_B6afBkTT2.js.br +0 -0
- package/dist/public/assets/{_D8ZjEIBC.js → _B8LZzSK1.js} +1 -1
- package/dist/public/assets/_B8LZzSK1.js.br +0 -0
- package/dist/public/assets/{_Ch3aclh9.js → _B97yBb0l.js} +1 -1
- package/dist/public/assets/_B97yBb0l.js.br +0 -0
- package/dist/public/assets/{_C1AEjtWB.js → _BDnmfHp7.js} +1 -1
- package/dist/public/assets/_BDnmfHp7.js.br +0 -0
- package/dist/public/assets/{_3d2N4uW7.js → _BPZG-nGh.js} +1 -1
- package/dist/public/assets/_BPZG-nGh.js.br +0 -0
- package/dist/public/assets/{_BBpJiyYC.js → _BQHp2hkb.js} +1 -1
- package/dist/public/assets/_BQHp2hkb.js.br +0 -0
- package/dist/public/assets/{_63r8H6KD2.js → _BT-fEnqx2.js} +1 -1
- package/dist/public/assets/_BT-fEnqx2.js.br +0 -0
- package/dist/public/assets/{_TPFL8bDN.js → _BUFMn4Gx.js} +1 -1
- package/dist/public/assets/_BUFMn4Gx.js.br +0 -0
- package/dist/public/assets/{_BgA0nPVc2.js → _BVCDd7aR2.js} +1 -1
- package/dist/public/assets/_BVCDd7aR2.js.br +0 -0
- package/dist/public/assets/{_tMvc_5W_2.js → _BVy5NPdq2.js} +1 -1
- package/dist/public/assets/{_koIBjoCI2.js → _BWC4hGHG2.js} +1 -1
- package/dist/public/assets/{_CzGmg6J6.js → _BXSKPpGJ.js} +1 -1
- package/dist/public/assets/_BXSKPpGJ.js.br +0 -0
- package/dist/public/assets/{_D0XB9M1F2.js → _Baz1XicV2.js} +1 -1
- package/dist/public/assets/_Baz1XicV2.js.br +0 -0
- package/dist/public/assets/{_CvciVzJE.js → _BbDLs84u.js} +1 -1
- package/dist/public/assets/_BbDLs84u.js.br +0 -0
- package/dist/public/assets/{_CaZfk2zB.js → _BcYwVgcu.js} +1 -1
- package/dist/public/assets/_BcYwVgcu.js.br +0 -0
- package/dist/public/assets/{_CbFus18_2.js → _BervXOMT2.js} +1 -1
- package/dist/public/assets/_BervXOMT2.js.br +0 -0
- package/dist/public/assets/{_C2Qcx14K2.js → _BnJ8gNIR2.js} +1 -1
- package/dist/public/assets/_BnJ8gNIR2.js.br +0 -0
- package/dist/public/assets/{_CqgdIwou.js → _BsUV6fEA.js} +1 -1
- package/dist/public/assets/_BsUV6fEA.js.br +0 -0
- package/dist/public/assets/{_DPjHjfD8.js → _BtKhlRGM.js} +1 -1
- package/dist/public/assets/_BtKhlRGM.js.br +0 -0
- package/dist/public/assets/{_Dfr7TISb.js → _BwBdmWbG.js} +1 -1
- package/dist/public/assets/_BwBdmWbG.js.br +0 -0
- package/dist/public/assets/{_Bzv-EzCt.js → _BxpxdFjO.js} +1 -1
- package/dist/public/assets/_BxpxdFjO.js.br +0 -0
- package/dist/public/assets/{_Ame3I5fr.js → _ByIhH2L0.js} +20 -20
- package/dist/public/assets/_ByIhH2L0.js.br +0 -0
- package/dist/public/assets/{_Em_sWtVW.js → _BytBjgvR.js} +46 -46
- package/dist/public/assets/_BytBjgvR.js.br +0 -0
- package/dist/public/assets/{_CnF5wkxz2.js → _C-es4gJw2.js} +1 -1
- package/dist/public/assets/_C-es4gJw2.js.br +0 -0
- package/dist/public/assets/{_BdRvtpe42.js → _C-igEDzm2.js} +1 -1
- package/dist/public/assets/_C-igEDzm2.js.br +0 -0
- package/dist/public/assets/{_y6bl1mtk2.js → _C1FnBrBU2.js} +1 -1
- package/dist/public/assets/_C1FnBrBU2.js.br +0 -0
- package/dist/public/assets/{_B2uZZeNN.js → _C1aQ2w3g.js} +1 -1
- package/dist/public/assets/_C1aQ2w3g.js.br +0 -0
- package/dist/public/assets/{_vE0bTBGo.js → _C9Gk79ni.js} +1 -1
- package/dist/public/assets/_C9Gk79ni.js.br +0 -0
- package/dist/public/assets/{_Bx5JF3nx.js → _CGcONmxe.js} +1 -1
- package/dist/public/assets/_CGcONmxe.js.br +0 -0
- package/dist/public/assets/{_DdeqfoDq2.js → _CKccXLgP2.js} +1 -1
- package/dist/public/assets/_CKccXLgP2.js.br +0 -0
- package/dist/public/assets/{_Cwn2Dzif.js → _CPVYCZMv.js} +1 -1
- package/dist/public/assets/_CPVYCZMv.js.br +0 -0
- package/dist/public/assets/{_DI8J66CZ.js → _CRzqqlR0.js} +1 -1
- package/dist/public/assets/_CRzqqlR0.js.br +0 -0
- package/dist/public/assets/{_mf72EOR_.js → _CUeqLqzO.js} +1 -1
- package/dist/public/assets/_CUeqLqzO.js.br +0 -0
- package/dist/public/assets/{_D8QuoF51.js → _CVcWNcIW.js} +1 -1
- package/dist/public/assets/_CVcWNcIW.js.br +0 -0
- package/dist/public/assets/{_Cerr01H42.js → _CYOQH5YC2.js} +1 -1
- package/dist/public/assets/_CYOQH5YC2.js.br +0 -0
- package/dist/public/assets/{_D_Ut2Ol9.js → _Cej15Wz_.js} +1 -1
- package/dist/public/assets/_Cej15Wz_.js.br +0 -0
- package/dist/public/assets/{_Bxjd-YPA2.js → _CiSNeDML2.js} +1 -1
- package/dist/public/assets/_CiSNeDML2.js.br +0 -0
- package/dist/public/assets/{_CHSMtXGV.js → _Cmt1Ut6b.js} +1 -1
- package/dist/public/assets/_Cmt1Ut6b.js.br +0 -0
- package/dist/public/assets/{_D3o4Rxbh.js → _Cvc68VXt.js} +1 -1
- package/dist/public/assets/_Cvc68VXt.js.br +0 -0
- package/dist/public/assets/{_BGuxBUC6.js → _Cxu0r4me.js} +1 -1
- package/dist/public/assets/_Cxu0r4me.js.br +0 -0
- package/dist/public/assets/{_B3G8MYzv.js → _D-ojdvNK.js} +1 -1
- package/dist/public/assets/_D-ojdvNK.js.br +0 -0
- package/dist/public/assets/{_BKaiZ1NX.js → _D3cgvMOc.js} +1 -1
- package/dist/public/assets/_D3cgvMOc.js.br +0 -0
- package/dist/public/assets/{_Bpnk-HWG2.js → _D4g_4fW62.js} +1 -1
- package/dist/public/assets/_D4g_4fW62.js.br +0 -0
- package/dist/public/assets/{_BGz6c5fQ.js → _DBvCZ4eD.js} +1 -1
- package/dist/public/assets/_DBvCZ4eD.js.br +0 -0
- package/dist/public/assets/{_DzyBRpRU.js → _DCRuwmyv.js} +1 -1
- package/dist/public/assets/_DCRuwmyv.js.br +0 -0
- package/dist/public/assets/{_uVBAFIy8.js → _DEvsPiuq.js} +1 -1
- package/dist/public/assets/_DEvsPiuq.js.br +0 -0
- package/dist/public/assets/{_DyVuhWqf2.js → _DEzyKNH02.js} +1 -1
- package/dist/public/assets/_DEzyKNH02.js.br +0 -0
- package/dist/public/assets/{_B4JWlIQw2.js → _DKmAvbSL2.js} +1 -1
- package/dist/public/assets/_DKmAvbSL2.js.br +0 -0
- package/dist/public/assets/{_D_7Jyml2.js → _DOfxrwd5.js} +1 -1
- package/dist/public/assets/_DOfxrwd5.js.br +0 -0
- package/dist/public/assets/{_CRtlCbY-.js → _DS-rvgPq.js} +1 -1
- package/dist/public/assets/_DS-rvgPq.js.br +0 -0
- package/dist/public/assets/{_CAhTTF9I2.js → _DVqsGkcR2.js} +1 -1
- package/dist/public/assets/_DVqsGkcR2.js.br +0 -0
- package/dist/public/assets/{_xACnj4IY.js → _DXUc5JLw.js} +1 -1
- package/dist/public/assets/_DXUc5JLw.js.br +0 -0
- package/dist/public/assets/{_D8kpusiR.js → _D_VEyzQS.js} +1 -1
- package/dist/public/assets/_D_VEyzQS.js.br +0 -0
- package/dist/public/assets/{_DkuBJFLN2.js → _DrLr9gq22.js} +1 -1
- package/dist/public/assets/_DrLr9gq22.js.br +0 -0
- package/dist/public/assets/{_BggRFG6b.js → _DzUh69ip.js} +1 -1
- package/dist/public/assets/{_CzuNzNf52.js → _HE70SsNX2.js} +1 -1
- package/dist/public/assets/_HE70SsNX2.js.br +0 -0
- package/dist/public/assets/{_DYN4MZjM2.js → _Nr_XTCP62.js} +1 -1
- package/dist/public/assets/_Nr_XTCP62.js.br +0 -0
- package/dist/public/assets/{_BnDvpSPb.js → _OHfRW1ji.js} +1 -1
- package/dist/public/assets/_OHfRW1ji.js.br +0 -0
- package/dist/public/assets/{_BAJq8l9L.js → _Sz6yIHnm.js} +1 -1
- package/dist/public/assets/_Sz6yIHnm.js.br +0 -0
- package/dist/public/assets/{_jEfYpM3E2.js → _V0N1wym_2.js} +1 -1
- package/dist/public/assets/_V0N1wym_2.js.br +0 -0
- package/dist/public/assets/{_a17toZcs.js → _W41_M6ks.js} +1 -1
- package/dist/public/assets/_W41_M6ks.js.br +0 -0
- package/dist/public/assets/{_DCUcB2sk.js → _YCFUpy_e.js} +1 -1
- package/dist/public/assets/_YCFUpy_e.js.br +0 -0
- package/dist/public/assets/{_vBAanm_x.js → _YXt0NV8C.js} +1 -1
- package/dist/public/assets/_YXt0NV8C.js.br +0 -0
- package/dist/public/assets/{_CNW9dpu42.js → __6Ao2IpB2.js} +1 -1
- package/dist/public/assets/__6Ao2IpB2.js.br +0 -0
- package/dist/public/assets/{_BQiqdgb9.js → _ar-pHXPS.js} +1 -1
- package/dist/public/assets/_ar-pHXPS.js.br +0 -0
- package/dist/public/assets/{_E4WOoQhA.js → _eCg9cVES.js} +1 -1
- package/dist/public/assets/_eCg9cVES.js.br +0 -0
- package/dist/public/assets/{_DmknNPV-.js → _pPGMLP6w.js} +1 -1
- package/dist/public/assets/_pPGMLP6w.js.br +0 -0
- package/dist/public/assets/{_CBkUW_R-.js → _pn5L5369.js} +1 -1
- package/dist/public/assets/_pn5L5369.js.br +0 -0
- package/dist/public/assets/{_6Tvpa4Xu.js → _qBx90PKO.js} +1 -1
- package/dist/public/assets/_qBx90PKO.js.br +0 -0
- package/dist/public/assets/{_C3JlLCxf.js → _uKykNxr_.js} +1 -1
- package/dist/public/assets/_uKykNxr_.js.br +0 -0
- package/dist/public/assets/app-page-ChAo2NHp.css +1 -0
- 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/_3d2N4uW7.js.br +0 -0
- package/dist/public/assets/_63r8H6KD2.js.br +0 -0
- package/dist/public/assets/_6Tvpa4Xu.js.br +0 -0
- package/dist/public/assets/_Ame3I5fr.js.br +0 -0
- package/dist/public/assets/_B2uZZeNN.js.br +0 -0
- package/dist/public/assets/_B3G8MYzv.js.br +0 -0
- package/dist/public/assets/_B4JWlIQw2.js.br +0 -0
- package/dist/public/assets/_BAJq8l9L.js.br +0 -0
- package/dist/public/assets/_BBpJiyYC.js.br +0 -0
- package/dist/public/assets/_BEejQ7lO.js.br +0 -0
- package/dist/public/assets/_BGuxBUC6.js.br +0 -0
- package/dist/public/assets/_BGz6c5fQ.js.br +0 -0
- package/dist/public/assets/_BKaiZ1NX.js.br +0 -0
- package/dist/public/assets/_BQiqdgb9.js.br +0 -0
- package/dist/public/assets/_BdRvtpe42.js.br +0 -0
- package/dist/public/assets/_BgA0nPVc2.js.br +0 -0
- package/dist/public/assets/_BnDvpSPb.js.br +0 -0
- package/dist/public/assets/_Bpnk-HWG2.js.br +0 -0
- package/dist/public/assets/_Bx5JF3nx.js.br +0 -0
- package/dist/public/assets/_Bxjd-YPA2.js.br +0 -0
- package/dist/public/assets/_Bzv-EzCt.js.br +0 -0
- package/dist/public/assets/_C1AEjtWB.js.br +0 -0
- package/dist/public/assets/_C2Qcx14K2.js.br +0 -0
- package/dist/public/assets/_C3JlLCxf.js.br +0 -0
- package/dist/public/assets/_CAhTTF9I2.js.br +0 -0
- package/dist/public/assets/_CBkUW_R-.js.br +0 -0
- package/dist/public/assets/_CHSMtXGV.js.br +0 -0
- package/dist/public/assets/_CHu5Km3j2.js.br +0 -0
- package/dist/public/assets/_CKqbHwCF2.js.br +0 -0
- package/dist/public/assets/_CNW9dpu42.js.br +0 -0
- package/dist/public/assets/_CRtlCbY-.js.br +0 -0
- package/dist/public/assets/_CaZfk2zB.js.br +0 -0
- package/dist/public/assets/_CbFus18_2.js.br +0 -0
- package/dist/public/assets/_Cerr01H42.js.br +0 -0
- package/dist/public/assets/_Ch3aclh9.js.br +0 -0
- package/dist/public/assets/_CnF5wkxz2.js.br +0 -0
- package/dist/public/assets/_CqgdIwou.js.br +0 -0
- package/dist/public/assets/_CvciVzJE.js.br +0 -0
- package/dist/public/assets/_Cwn2Dzif.js.br +0 -0
- package/dist/public/assets/_CzGmg6J6.js.br +0 -0
- package/dist/public/assets/_CzuNzNf52.js.br +0 -0
- package/dist/public/assets/_D0XB9M1F2.js.br +0 -0
- package/dist/public/assets/_D3o4Rxbh.js.br +0 -0
- package/dist/public/assets/_D8QuoF51.js.br +0 -0
- package/dist/public/assets/_D8ZjEIBC.js.br +0 -0
- package/dist/public/assets/_D8kpusiR.js.br +0 -0
- package/dist/public/assets/_D9Iriq-Y.js.br +0 -0
- package/dist/public/assets/_DCUcB2sk.js.br +0 -0
- package/dist/public/assets/_DI8J66CZ.js.br +0 -0
- package/dist/public/assets/_DPjHjfD8.js.br +0 -0
- package/dist/public/assets/_DYN4MZjM2.js.br +0 -0
- package/dist/public/assets/_D_7Jyml2.js.br +0 -0
- package/dist/public/assets/_D_Ut2Ol9.js.br +0 -0
- package/dist/public/assets/_DdeqfoDq2.js.br +0 -0
- package/dist/public/assets/_Dfr7TISb.js.br +0 -0
- package/dist/public/assets/_DkuBJFLN2.js.br +0 -0
- package/dist/public/assets/_DmknNPV-.js.br +0 -0
- package/dist/public/assets/_DyVuhWqf2.js.br +0 -0
- package/dist/public/assets/_DzyBRpRU.js.br +0 -0
- package/dist/public/assets/_E4WOoQhA.js.br +0 -0
- package/dist/public/assets/_Em_sWtVW.js.br +0 -0
- package/dist/public/assets/_FsklS6Cf.js.br +0 -0
- package/dist/public/assets/_Qqf8g1TK.js.br +0 -0
- package/dist/public/assets/_TPFL8bDN.js.br +0 -0
- package/dist/public/assets/_a17toZcs.js.br +0 -0
- package/dist/public/assets/_jEfYpM3E2.js.br +0 -0
- package/dist/public/assets/_mf72EOR_.js.br +0 -0
- package/dist/public/assets/_uVBAFIy8.js.br +0 -0
- package/dist/public/assets/_vBAanm_x.js.br +0 -0
- package/dist/public/assets/_vE0bTBGo.js.br +0 -0
- package/dist/public/assets/_xACnj4IY.js.br +0 -0
- package/dist/public/assets/_xIRNtE1V.js.br +0 -0
- package/dist/public/assets/_y6bl1mtk2.js.br +0 -0
- package/dist/public/assets/app-page-B1_16TZW.css +0 -1
- package/dist/public/assets/app-page-B1_16TZW.css.br +0 -0
- package/dist/public/assets/diff-view-CKc458jK.css +0 -1
- package/dist/public/assets/diff-view-CKc458jK.css.br +0 -0
- package/dist/public/assets/new-BpwV-DKC.js +0 -1
- package/dist/public/assets/settings-BpwV-DKC.js +0 -1
- package/dist/public/assets/w-BpwV-DKC.js +0 -1
- package/dist/public/assets/w._-BpwV-DKC.js +0 -1
- package/dist/public/assets/w._-C0I_DcpJ.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as repoLabel, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, F as iconBtnLg, G as _attr_details_or_dialog_open, I as iconBtnRow, K as _attr_input_value, O as icon_base_default, Pt as writeScope, St as _sep, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, _ as diffTreeOpen, _t as _resume_branch, a as fuzzy, at as _el_resume, b as setDiffScope, bt as _scope_with_id, c as icon_arrow_up_default, ft as _html, g as diffScope, gt as _resume, h as diffPos, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, l as icon_back_default, lt as _for_of, m as diffFilter, mt as _if, n as findIconBtn, ot as _escape, q as _attr_option_value, r as findInput, rt as _el, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, vt as _scope_id, wt as _serialize_if, xt as _script, y as setDiffPos, yt as _scope_reason } from "./
|
|
1
|
+
import { A as repoLabel, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, F as iconBtnLg, G as _attr_details_or_dialog_open, I as iconBtnRow, K as _attr_input_value, L as iconBtnXs, O as icon_base_default, Pt as writeScope, St as _sep, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, _ as diffTreeOpen, _t as _resume_branch, a as fuzzy, at as _el_resume, b as setDiffScope, bt as _scope_with_id, c as icon_arrow_up_default, ft as _html, g as diffScope, gt as _resume, h as diffPos, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, l as icon_back_default, lt as _for_of, m as diffFilter, mt as _if, n as findIconBtn, ot as _escape, q as _attr_option_value, r as findInput, rt as _el, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, vt as _scope_id, wt as _serialize_if, xt as _script, y as setDiffPos, yt as _scope_reason } from "./_Dc6tTxJq.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 = "_dt _U _d";
|
|
246
246
|
//#endregion
|
|
247
247
|
//#region src/tags/diff-send.marko
|
|
248
|
-
var diff_send_default = _template("
|
|
248
|
+
var diff_send_default = _template("j", (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("_gZ")}><button type=button${_attr_class("_i")} 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
|
-
_html(`<button type=button${_attr_class(["
|
|
260
|
-
_script($scope1_id, "
|
|
259
|
+
_html(`<button type=button${_attr_class(["_i", "_j"])}${_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, "j1");
|
|
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("_g0")}><button type=button${_attr_class(["_j", "_g1"])}${_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
|
+
}, "j0", $scope2_id), () => {
|
|
269
|
+
_html(`<select${_attr_class("_g2")} 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("i", (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, "j2");
|
|
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, "j3");
|
|
284
284
|
writeScope($scope0_id, {
|
|
285
285
|
h: input.onCopy,
|
|
286
286
|
i: input.onSend,
|
|
@@ -1765,7 +1765,7 @@ function clip(line, at, len) {
|
|
|
1765
1765
|
//#endregion
|
|
1766
1766
|
//#region src/tags/diff-find.marko
|
|
1767
1767
|
var setSearchPaint$1;
|
|
1768
|
-
var diff_find_default = _template("
|
|
1768
|
+
var diff_find_default = _template("i", (input) => {
|
|
1769
1769
|
const $scope0_reason = _scope_reason();
|
|
1770
1770
|
const $scope0_id = _scope_id();
|
|
1771
1771
|
let open = input.open;
|
|
@@ -1792,7 +1792,7 @@ var diff_find_default = _template("h", (input) => {
|
|
|
1792
1792
|
hi = (i % list.length + list.length) % list.length;
|
|
1793
1793
|
const hit = list[hi];
|
|
1794
1794
|
setSearchPaint$1(q, hit, hitKeys(list) ?? void 0);
|
|
1795
|
-
}, "
|
|
1795
|
+
}, "i1", $scope0_id);
|
|
1796
1796
|
const type = _resume((v) => {
|
|
1797
1797
|
if (!live.open) return;
|
|
1798
1798
|
query = v;
|
|
@@ -1804,7 +1804,7 @@ var diff_find_default = _template("h", (input) => {
|
|
|
1804
1804
|
box.timer = 0;
|
|
1805
1805
|
emit(v, 0);
|
|
1806
1806
|
}, 80);
|
|
1807
|
-
}, "
|
|
1807
|
+
}, "i2", $scope0_id);
|
|
1808
1808
|
const next = _resume((dir) => {
|
|
1809
1809
|
if (!live.open) return;
|
|
1810
1810
|
if (box.timer) {
|
|
@@ -1812,7 +1812,7 @@ var diff_find_default = _template("h", (input) => {
|
|
|
1812
1812
|
box.timer = 0;
|
|
1813
1813
|
}
|
|
1814
1814
|
emit(query || "", (at < 0 ? 0 : at) + dir);
|
|
1815
|
-
}, "
|
|
1815
|
+
}, "i3", $scope0_id);
|
|
1816
1816
|
const close = _resume(() => {
|
|
1817
1817
|
open = false;
|
|
1818
1818
|
live.open = false;
|
|
@@ -1821,7 +1821,7 @@ var diff_find_default = _template("h", (input) => {
|
|
|
1821
1821
|
box.timer = 0;
|
|
1822
1822
|
}
|
|
1823
1823
|
setSearchPaint$1("", null);
|
|
1824
|
-
}, "
|
|
1824
|
+
}, "i4", $scope0_id);
|
|
1825
1825
|
const focusInput = _resume(() => {
|
|
1826
1826
|
const el = ((findEl) => findEl())(_el_read_error);
|
|
1827
1827
|
if (!el) return;
|
|
@@ -1831,19 +1831,19 @@ var diff_find_default = _template("h", (input) => {
|
|
|
1831
1831
|
el.focus();
|
|
1832
1832
|
el.select();
|
|
1833
1833
|
}, 0);
|
|
1834
|
-
}, "
|
|
1835
|
-
_html(`<div${_attr_class(["
|
|
1834
|
+
}, "i5", $scope0_id);
|
|
1835
|
+
_html(`<div${_attr_class(["_fG", !open && "_fF"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1836
1836
|
type(v);
|
|
1837
|
-
}, "
|
|
1837
|
+
}, "i0", $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("_fJ")}>${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"}>`);
|
|
1838
1838
|
icon_arrow_up_default({ size: 14 });
|
|
1839
1839
|
_html(`</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>`);
|
|
1840
1840
|
icon_arrow_down_default({ size: 14 });
|
|
1841
1841
|
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class(findIconBtn)} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
1842
1842
|
icon_xmark_default({ size: 14 });
|
|
1843
1843
|
_html(`</button>${_el_resume($scope0_id, "i")}</div>${_el_resume($scope0_id, "a")}`);
|
|
1844
|
-
_script($scope0_id, "
|
|
1845
|
-
_script($scope0_id, "
|
|
1846
|
-
_script($scope0_id, "
|
|
1844
|
+
_script($scope0_id, "i6");
|
|
1845
|
+
_script($scope0_id, "i7");
|
|
1846
|
+
_script($scope0_id, "i8");
|
|
1847
1847
|
writeScope($scope0_id, {
|
|
1848
1848
|
m: _serialize_if($scope0_reason, 1) && input.open,
|
|
1849
1849
|
n: _serialize_if($scope0_reason, 0) && input.openChange,
|
|
@@ -1935,11 +1935,11 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
return shortHeadFallback(head);
|
|
1937
1937
|
}
|
|
1938
|
-
var repoWorktree = "
|
|
1939
|
-
var repoTitle = "
|
|
1938
|
+
var repoWorktree = "_f0 _r";
|
|
1939
|
+
var repoTitle = "_f6 _q";
|
|
1940
1940
|
//#endregion
|
|
1941
1941
|
//#region src/tags/icons/icon-chevron-right.marko
|
|
1942
|
-
var icon_chevron_right_default = _template("
|
|
1942
|
+
var icon_chevron_right_default = _template("R", (input) => {
|
|
1943
1943
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1944
1944
|
const $scope0_id = _scope_id();
|
|
1945
1945
|
_set_serialize_reason({
|
|
@@ -1956,7 +1956,7 @@ var icon_chevron_right_default = _template("Q", (input) => {
|
|
|
1956
1956
|
});
|
|
1957
1957
|
//#endregion
|
|
1958
1958
|
//#region src/tags/icons/icon-chevron-down.marko
|
|
1959
|
-
var icon_chevron_down_default = _template("
|
|
1959
|
+
var icon_chevron_down_default = _template("Q", (input) => {
|
|
1960
1960
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1961
1961
|
const $scope0_id = _scope_id();
|
|
1962
1962
|
_set_serialize_reason({
|
|
@@ -1973,7 +1973,7 @@ var icon_chevron_down_default = _template("P", (input) => {
|
|
|
1973
1973
|
});
|
|
1974
1974
|
//#endregion
|
|
1975
1975
|
//#region src/tags/icons/icon-comment.marko
|
|
1976
|
-
var icon_comment_default = _template("
|
|
1976
|
+
var icon_comment_default = _template("T", (input) => {
|
|
1977
1977
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1978
1978
|
const $scope0_id = _scope_id();
|
|
1979
1979
|
_set_serialize_reason({
|
|
@@ -1988,34 +1988,70 @@ var icon_comment_default = _template("S", (input) => {
|
|
|
1988
1988
|
});
|
|
1989
1989
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
1990
1990
|
});
|
|
1991
|
+
//#endregion
|
|
1992
|
+
//#region src/tags/icons/icon-compress-lines.marko
|
|
1993
|
+
var icon_compress_lines_default = _template("U", (input) => {
|
|
1994
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1995
|
+
const $scope0_id = _scope_id();
|
|
1996
|
+
_set_serialize_reason({
|
|
1997
|
+
0: $sg__input_size__OR__input_class,
|
|
1998
|
+
1: $sg__input_size__OR__input_class
|
|
1999
|
+
});
|
|
2000
|
+
const $childScope = _peek_scope_id();
|
|
2001
|
+
icon_base_default({
|
|
2002
|
+
d: "M18 2L6 2 M18 22L6 22 M12 5V10M12 10L15 7M12 10L9 7 M12 19V14M12 14L15 17M12 14L9 17",
|
|
2003
|
+
size: input.size,
|
|
2004
|
+
class: input.class
|
|
2005
|
+
});
|
|
2006
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2007
|
+
});
|
|
2008
|
+
//#endregion
|
|
2009
|
+
//#region src/tags/icons/icon-expand-lines.marko
|
|
2010
|
+
var icon_expand_lines_default = _template("Z", (input) => {
|
|
2011
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2012
|
+
const $scope0_id = _scope_id();
|
|
2013
|
+
_set_serialize_reason({
|
|
2014
|
+
0: $sg__input_size__OR__input_class,
|
|
2015
|
+
1: $sg__input_size__OR__input_class
|
|
2016
|
+
});
|
|
2017
|
+
const $childScope = _peek_scope_id();
|
|
2018
|
+
icon_base_default({
|
|
2019
|
+
d: "M18 2L6 2 M18 22L6 22 M12 14V19M12 19L15 16M12 19L9 16 M12 10V5M12 5L15 8M12 5L9 8",
|
|
2020
|
+
size: input.size,
|
|
2021
|
+
class: input.class
|
|
2022
|
+
});
|
|
2023
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2024
|
+
});
|
|
1991
2025
|
tone.warn;
|
|
1992
|
-
var diff_file_default = _template("
|
|
2026
|
+
var diff_file_default = _template("h", (input) => {
|
|
1993
2027
|
_scope_reason();
|
|
1994
2028
|
const $scope0_id = _scope_id();
|
|
1995
|
-
_el($scope0_id, "
|
|
1996
|
-
_html(`<div${_attr_class(["
|
|
1997
|
-
_script($scope0_id, "
|
|
2029
|
+
_el($scope0_id, "h0");
|
|
2030
|
+
_html(`<div${_attr_class(["_hp", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
2031
|
+
_script($scope0_id, "h1");
|
|
1998
2032
|
writeScope($scope0_id, {
|
|
1999
2033
|
e: input.file,
|
|
2000
2034
|
f: input.comments,
|
|
2001
2035
|
g: input.draft,
|
|
2002
2036
|
h: input.sessions,
|
|
2003
|
-
i: input.
|
|
2004
|
-
j: input.
|
|
2005
|
-
k: input.
|
|
2006
|
-
l: input.
|
|
2007
|
-
m: input.
|
|
2008
|
-
n: input.
|
|
2009
|
-
o: input.
|
|
2010
|
-
p: input.
|
|
2037
|
+
i: input.wholeFile,
|
|
2038
|
+
j: input.onDeleteComment,
|
|
2039
|
+
k: input.onEditComment,
|
|
2040
|
+
l: input.onSendComment,
|
|
2041
|
+
m: input.onSendDraft,
|
|
2042
|
+
n: input.onSaveComment,
|
|
2043
|
+
o: input.onCancelDraft,
|
|
2044
|
+
p: input.onSelect,
|
|
2045
|
+
q: input.onError
|
|
2011
2046
|
});
|
|
2012
2047
|
_resume_branch($scope0_id);
|
|
2013
2048
|
});
|
|
2014
2049
|
//#endregion
|
|
2015
2050
|
//#region src/tags/review-section.marko
|
|
2016
|
-
var review_section_default = _template("
|
|
2017
|
-
const $scope0_reason = _scope_reason(), $si__input_collapsed = _serialize_if($scope0_reason,
|
|
2051
|
+
var review_section_default = _template("u", (input) => {
|
|
2052
|
+
const $scope0_reason = _scope_reason(), $si__input_collapsed = _serialize_if($scope0_reason, 38), $sg__input_collapsed = _serialize_guard($scope0_reason, 38), $sg__input_repo = _serialize_guard($scope0_reason, 33), $si__input_repo = _serialize_if($scope0_reason, 33), $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, 34), $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), $sg__input_files__OR__input_collapsedFiles = _serialize_guard($scope0_reason, 6), $si__input_files__OR__input_collapsedFiles = _serialize_if($scope0_reason, 6), $si__input_files = _serialize_if($scope0_reason, 34), $si__input_files__OR__input_commentsByFile = _serialize_if($scope0_reason, 5), $si__input_findHit_key = _serialize_if($scope0_reason, 42), $si__input_onFileToggle = _serialize_if($scope0_reason, 43), $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, 32), $si__input_draft = _serialize_if($scope0_reason, 45), $si__input_sessions = _serialize_if($scope0_reason, 46), $si__input_onSelect = _serialize_if($scope0_reason, 47), $si__input_onSaveComment = _serialize_if($scope0_reason, 48), $si__input_onSendDraft = _serialize_if($scope0_reason, 49), $si__input_onCancelDraft = _serialize_if($scope0_reason, 50), $si__input_onDeleteComment = _serialize_if($scope0_reason, 51), $si__input_onEditComment = _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, 35), $si__input_commentsByFile = _serialize_if($scope0_reason, 40), $si__input_collapsedFiles = _serialize_if($scope0_reason, 41), $si__input_findHit_line = _serialize_if($scope0_reason, 44);
|
|
2018
2053
|
const $scope0_id = _scope_id();
|
|
2054
|
+
const $wholeFiles__closures = /* @__PURE__ */ new Set();
|
|
2019
2055
|
const $input__closures = /* @__PURE__ */ new Set();
|
|
2020
2056
|
const $input_draft__closures = /* @__PURE__ */ new Set();
|
|
2021
2057
|
const $input_sessions__closures = /* @__PURE__ */ new Set();
|
|
@@ -2034,6 +2070,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2034
2070
|
const $input_onFileToggle__closures = /* @__PURE__ */ new Set();
|
|
2035
2071
|
const $input_findHit_line__closures = /* @__PURE__ */ new Set();
|
|
2036
2072
|
const repo = input.repo;
|
|
2073
|
+
let wholeFiles = /* @__PURE__ */ new Set();
|
|
2037
2074
|
const shownFiles = input.files.filter((f) => input.shownKeys.has(f.key));
|
|
2038
2075
|
const shownCount = shownFiles.length;
|
|
2039
2076
|
const countLabel = shownCount || input.files.length;
|
|
@@ -2052,30 +2089,30 @@ var review_section_default = _template("t", (input) => {
|
|
|
2052
2089
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
2053
2090
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
2054
2091
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
2055
|
-
_html(`<section${_attr_class("
|
|
2092
|
+
_html(`<section${_attr_class("_fW")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_fX", { ["_fY"]: input.collapsible && input.collapsed }])}>`);
|
|
2056
2093
|
_if(() => {
|
|
2057
2094
|
if (input.collapsible) {
|
|
2058
2095
|
const $scope1_id = _scope_id();
|
|
2059
|
-
_html(`<button type=button${_attr_class("
|
|
2060
|
-
"
|
|
2061
|
-
!input.collapsed && "
|
|
2062
|
-
input.expanding && "
|
|
2096
|
+
_html(`<button type=button${_attr_class("_fZ")} 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([
|
|
2097
|
+
"_gi",
|
|
2098
|
+
!input.collapsed && "_gj",
|
|
2099
|
+
input.expanding && "_gk"
|
|
2063
2100
|
])} aria-hidden=true>`);
|
|
2064
2101
|
_if(() => {
|
|
2065
2102
|
if (input.collapsed) {
|
|
2066
|
-
const $
|
|
2103
|
+
const $scope17_id = _scope_id();
|
|
2067
2104
|
icon_chevron_right_default({ size: 14 });
|
|
2068
|
-
$si__input_collapsed && writeScope($
|
|
2105
|
+
$si__input_collapsed && writeScope($scope17_id, {});
|
|
2069
2106
|
return 0;
|
|
2070
2107
|
} else {
|
|
2071
|
-
const $
|
|
2108
|
+
const $scope18_id = _scope_id();
|
|
2072
2109
|
icon_chevron_down_default({ size: 14 });
|
|
2073
|
-
$si__input_collapsed && writeScope($
|
|
2110
|
+
$si__input_collapsed && writeScope($scope18_id, {});
|
|
2074
2111
|
return 1;
|
|
2075
2112
|
}
|
|
2076
2113
|
}, $scope1_id, "b", $sg__input_collapsed, _serialize_guard($scope0_reason, 10), $sg__input_collapsed, "</span>", 1);
|
|
2077
2114
|
_html(`<span${_attr_class(repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope1_id, "d", $sg__input_repo)}</span></button>${_el_resume($scope1_id, "a")}`);
|
|
2078
|
-
_script($scope1_id, "
|
|
2115
|
+
_script($scope1_id, "u9");
|
|
2079
2116
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
2080
2117
|
return 0;
|
|
2081
2118
|
} else {
|
|
@@ -2084,11 +2121,11 @@ var review_section_default = _template("t", (input) => {
|
|
|
2084
2121
|
_serialize_if($scope0_reason, 1) && writeScope($scope10_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
2085
2122
|
return 1;
|
|
2086
2123
|
}
|
|
2087
|
-
}, $scope0_id, "c", _serialize_guard($scope0_reason, 1) || _serialize_guard($scope0_reason, 28), _serialize_guard($scope0_reason,
|
|
2124
|
+
}, $scope0_id, "c", _serialize_guard($scope0_reason, 1) || _serialize_guard($scope0_reason, 28), _serialize_guard($scope0_reason, 37), $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);
|
|
2088
2125
|
_if(() => {
|
|
2089
2126
|
if (repo.pr) {
|
|
2090
2127
|
const $scope11_id = _scope_id();
|
|
2091
|
-
_html(`<a${_attr_class(["
|
|
2128
|
+
_html(`<a${_attr_class(["_m", "_o"])}${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", prTitle)}>#${_sep($sg__input_repo)}${_escape(repo.pr.number)}${_el_resume($scope11_id, "b", $sg__input_repo)}</a>${_el_resume($scope11_id, "a", $sg__input_repo)}<span${_attr_class(repoTitle)}>${_escape(repo.pr.title)}${_el_resume($scope11_id, "d", $sg__input_repo)}</span>`);
|
|
2092
2129
|
$si__input_repo && writeScope($scope11_id, { _: _scope_with_id($scope0_id) });
|
|
2093
2130
|
return 0;
|
|
2094
2131
|
} else {
|
|
@@ -2098,16 +2135,16 @@ var review_section_default = _template("t", (input) => {
|
|
|
2098
2135
|
return 1;
|
|
2099
2136
|
}
|
|
2100
2137
|
}, $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);
|
|
2101
|
-
_html(`<span${_attr_class("
|
|
2138
|
+
_html(`<span${_attr_class("_f7")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_C", "_f8"])}>${_escape(compare$1.base)}${_el_resume($scope0_id, "g", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_E", "_f_"])} aria-hidden=true>vs</span><span${_attr_class(["_C", "_f9"])}>${_escape(compare$1.head)}${_el_resume($scope0_id, "j", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2102
2139
|
_if(() => {
|
|
2103
2140
|
if (compare$1.topic) {
|
|
2104
|
-
const $
|
|
2141
|
+
const $scope16_id = _scope_id();
|
|
2105
2142
|
_html(`<span${_attr_class([
|
|
2106
|
-
"
|
|
2143
|
+
"_C",
|
|
2107
2144
|
tone.accent,
|
|
2108
|
-
"
|
|
2109
|
-
])}>${_escape(compare$1.topic)}${_el_resume($
|
|
2110
|
-
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($
|
|
2145
|
+
"_ga"
|
|
2146
|
+
])}>${_escape(compare$1.topic)}${_el_resume($scope16_id, "b", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2147
|
+
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
2111
2148
|
return 0;
|
|
2112
2149
|
}
|
|
2113
2150
|
}, $scope0_id, "k", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName, $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName, $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);
|
|
@@ -2116,11 +2153,11 @@ var review_section_default = _template("t", (input) => {
|
|
|
2116
2153
|
if (repo.githubDrift) {
|
|
2117
2154
|
const $scope2_id = _scope_id();
|
|
2118
2155
|
_html(`<button type=button${_attr_class([
|
|
2119
|
-
"
|
|
2156
|
+
"_C",
|
|
2120
2157
|
tone.warn,
|
|
2121
|
-
"
|
|
2158
|
+
"_gb"
|
|
2122
2159
|
])}${_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")}`);
|
|
2123
|
-
_script($scope2_id, "
|
|
2160
|
+
_script($scope2_id, "u10");
|
|
2124
2161
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
2125
2162
|
return 0;
|
|
2126
2163
|
}
|
|
@@ -2128,7 +2165,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2128
2165
|
_if(() => {
|
|
2129
2166
|
if (repo.contained && input.files.length) {
|
|
2130
2167
|
const $scope13_id = _scope_id();
|
|
2131
|
-
_html(`<span${_attr_class(["
|
|
2168
|
+
_html(`<span${_attr_class(["_C", "_gb"])}${_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)}`);
|
|
2132
2169
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
2133
2170
|
return 0;
|
|
2134
2171
|
}
|
|
@@ -2136,25 +2173,25 @@ var review_section_default = _template("t", (input) => {
|
|
|
2136
2173
|
_if(() => {
|
|
2137
2174
|
if (input.localDiffers) {
|
|
2138
2175
|
const $scope3_id = _scope_id();
|
|
2139
|
-
_html(`<span${_attr_class(["
|
|
2176
|
+
_html(`<span${_attr_class(["_C", "_gb"])}${_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)}`);
|
|
2140
2177
|
$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) });
|
|
2141
2178
|
return 0;
|
|
2142
2179
|
}
|
|
2143
|
-
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason,
|
|
2144
|
-
_html(`<span${_attr_class("
|
|
2180
|
+
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 39), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
2181
|
+
_html(`<span${_attr_class("_f1")}><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>`);
|
|
2145
2182
|
_if(() => {
|
|
2146
2183
|
if (stats.additions || stats.deletions) {
|
|
2147
|
-
const $
|
|
2148
|
-
_html(`<span${_attr_class("
|
|
2149
|
-
$si__input_files__OR__input_shownKeys && writeScope($
|
|
2184
|
+
const $scope15_id = _scope_id();
|
|
2185
|
+
_html(`<span${_attr_class("_f2")}>+${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.additions)}${_el_resume($scope15_id, "b", $sg__input_files__OR__input_shownKeys)}</span><span${_attr_class("_f3")}>−${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.deletions)}${_el_resume($scope15_id, "d", $sg__input_files__OR__input_shownKeys)}</span>`);
|
|
2186
|
+
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
2150
2187
|
return 0;
|
|
2151
2188
|
}
|
|
2152
2189
|
}, $scope0_id, "r", $sg__input_files__OR__input_shownKeys, $sg__input_files__OR__input_shownKeys, $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);
|
|
2153
2190
|
_if(() => {
|
|
2154
2191
|
if (newCount || input.onlyNew) {
|
|
2155
2192
|
const $scope4_id = _scope_id();
|
|
2156
|
-
_html(`<button type=button${_attr_class(["
|
|
2157
|
-
_script($scope4_id, "
|
|
2193
|
+
_html(`<button type=button${_attr_class(["_f5", { ["_f4"]: 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")}`);
|
|
2194
|
+
_script($scope4_id, "u11");
|
|
2158
2195
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
2159
2196
|
return 0;
|
|
2160
2197
|
}
|
|
@@ -2163,7 +2200,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2163
2200
|
_if(() => {
|
|
2164
2201
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
2165
2202
|
const $scope5_id = _scope_id();
|
|
2166
|
-
_html(`<div${_attr_class("
|
|
2203
|
+
_html(`<div${_attr_class("_gd")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
2167
2204
|
_for_of(input.files, (file$1) => {
|
|
2168
2205
|
const $scope6_id = _scope_id();
|
|
2169
2206
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -2173,41 +2210,70 @@ var review_section_default = _template("t", (input) => {
|
|
|
2173
2210
|
const expanded = !input.collapsedFiles.has(file$1.key);
|
|
2174
2211
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
2175
2212
|
input.onFileToggle(file$1.key, open);
|
|
2176
|
-
}, "
|
|
2213
|
+
}, "u0", $scope6_id))}${_attr_class(["_ge", input.findHit?.key === file$1.key && "_fU"])}${_attr("data-key", file$1.key)}${_attr("hidden", !input.shownKeys.has(file$1.key))}><summary${_attr_class("_gg")}><span${_attr_class("_gl")}${_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(["_gm", input.findHit?.key === file$1.key && input.findHit.line < 1 && "_fV"])}${_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))}`);
|
|
2177
2214
|
_if(() => {
|
|
2178
2215
|
if (file$1.changedSince) {
|
|
2179
|
-
const $
|
|
2180
|
-
_html(`<span${_attr_class(["
|
|
2181
|
-
$si__input_files && writeScope($
|
|
2216
|
+
const $scope20_id = _scope_id();
|
|
2217
|
+
_html(`<span${_attr_class(["_t", "_gc"])} title="Changed since your last visit"></span>`);
|
|
2218
|
+
$si__input_files && writeScope($scope20_id, {});
|
|
2182
2219
|
return 0;
|
|
2183
2220
|
}
|
|
2184
2221
|
}, $scope6_id, "g", $sg__input_files, $sg__input_files, $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles, 0, 1);
|
|
2185
2222
|
_if(() => {
|
|
2186
2223
|
if (fileComments.length) {
|
|
2187
|
-
const $
|
|
2188
|
-
_html(`<span${_attr_class("
|
|
2224
|
+
const $scope19_id = _scope_id();
|
|
2225
|
+
_html(`<span${_attr_class("_m")}>`);
|
|
2189
2226
|
icon_comment_default({ size: 12 });
|
|
2190
|
-
_html(` ${_sep($sg__input_files__OR__input_commentsByFile)}${_escape(fileComments.length)}${_el_resume($
|
|
2191
|
-
$si__input_files__OR__input_commentsByFile && writeScope($
|
|
2227
|
+
_html(` ${_sep($sg__input_files__OR__input_commentsByFile)}${_escape(fileComments.length)}${_el_resume($scope19_id, "c", $sg__input_files__OR__input_commentsByFile)}</span>`);
|
|
2228
|
+
$si__input_files__OR__input_commentsByFile && writeScope($scope19_id, { _: _scope_with_id($scope6_id) });
|
|
2192
2229
|
return 0;
|
|
2193
2230
|
}
|
|
2194
2231
|
}, $scope6_id, "h", $sg__input_files__OR__input_commentsByFile, $sg__input_files__OR__input_commentsByFile, $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles, 0, 1);
|
|
2232
|
+
_if(() => {
|
|
2233
|
+
if (expanded && !file$1.binary && !file$1.tooLarge) {
|
|
2234
|
+
const $scope14_id = _scope_id();
|
|
2235
|
+
_html(`<button type=button${_attr_class([
|
|
2236
|
+
iconBtnXs,
|
|
2237
|
+
"_go",
|
|
2238
|
+
{ ["_gp"]: wholeFiles.has(file$1.key) }
|
|
2239
|
+
])} title=${wholeFiles.has(file$1.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-label=${wholeFiles.has(file$1.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-pressed=${wholeFiles.has(file$1.key) ? "true" : "false"}>`);
|
|
2240
|
+
_if(() => {
|
|
2241
|
+
if (wholeFiles.has(file$1.key)) {
|
|
2242
|
+
const $scope21_id = _scope_id();
|
|
2243
|
+
icon_compress_lines_default({ size: 13 });
|
|
2244
|
+
writeScope($scope21_id, {});
|
|
2245
|
+
return 0;
|
|
2246
|
+
} else {
|
|
2247
|
+
const $scope22_id = _scope_id();
|
|
2248
|
+
icon_expand_lines_default({ size: 13 });
|
|
2249
|
+
writeScope($scope22_id, {});
|
|
2250
|
+
return 1;
|
|
2251
|
+
}
|
|
2252
|
+
}, $scope14_id, "a", 1, 1, 1, "</button>", 1);
|
|
2253
|
+
_script($scope14_id, "u12");
|
|
2254
|
+
_subscribe($wholeFiles__closures, writeScope($scope14_id, {
|
|
2255
|
+
_: _scope_with_id($scope6_id),
|
|
2256
|
+
Cd1: 1
|
|
2257
|
+
}));
|
|
2258
|
+
return 0;
|
|
2259
|
+
}
|
|
2260
|
+
}, $scope6_id, "i", $sg__input_files__OR__input_collapsedFiles, $sg__input_files__OR__input_collapsedFiles, $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles, 0, 1);
|
|
2195
2261
|
_html("</summary>");
|
|
2196
2262
|
_if(() => {
|
|
2197
2263
|
if (file$1.binary) {
|
|
2198
|
-
const $
|
|
2199
|
-
_html(`<p${_attr_class(["
|
|
2200
|
-
$si__input_files__OR__input_collapsedFiles && writeScope($
|
|
2264
|
+
const $scope23_id = _scope_id();
|
|
2265
|
+
_html(`<p${_attr_class(["_gn", "_gf"])}>binary file</p>`);
|
|
2266
|
+
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
2201
2267
|
return 0;
|
|
2202
2268
|
} else if (file$1.tooLarge) {
|
|
2203
|
-
const $
|
|
2204
|
-
_html(`<p${_attr_class(["
|
|
2205
|
-
$si__input_files__OR__input_collapsedFiles && writeScope($
|
|
2269
|
+
const $scope24_id = _scope_id();
|
|
2270
|
+
_html(`<p${_attr_class(["_gn", "_gf"])}>file too large to display</p>`);
|
|
2271
|
+
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
2206
2272
|
return 1;
|
|
2207
2273
|
} else if (file$1.old == null && file$1.new == null) {
|
|
2208
|
-
const $
|
|
2209
|
-
_html(`<p${_attr_class(["
|
|
2210
|
-
$si__input_files__OR__input_collapsedFiles && writeScope($
|
|
2274
|
+
const $scope25_id = _scope_id();
|
|
2275
|
+
_html(`<p${_attr_class(["_gn", "_gf"])}>file could not be read</p>`);
|
|
2276
|
+
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
2211
2277
|
return 2;
|
|
2212
2278
|
} else if (expanded) {
|
|
2213
2279
|
const $scope7_id = _scope_id();
|
|
@@ -2216,45 +2282,46 @@ var review_section_default = _template("t", (input) => {
|
|
|
2216
2282
|
_if(() => {
|
|
2217
2283
|
if (!forceNear) {
|
|
2218
2284
|
const $scope8_id = _scope_id();
|
|
2219
|
-
_html(`<div${_attr_class(["
|
|
2220
|
-
_script($scope8_id, "
|
|
2285
|
+
_html(`<div${_attr_class(["_gh", "_gf"])}></div>${_el_resume($scope8_id, "a")}`);
|
|
2286
|
+
_script($scope8_id, "u13");
|
|
2221
2287
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
2222
2288
|
return 0;
|
|
2223
2289
|
} else {
|
|
2224
2290
|
const $scope9_id = _scope_id();
|
|
2225
2291
|
const $childScope = _peek_scope_id();
|
|
2226
2292
|
diff_file_default({
|
|
2227
|
-
class: "
|
|
2293
|
+
class: "_gf",
|
|
2228
2294
|
file: file$1,
|
|
2229
2295
|
comments: fileComments,
|
|
2230
2296
|
draft: input.draft && input.draft.key === file$1.key ? input.draft : null,
|
|
2231
2297
|
sessions: input.sessions,
|
|
2298
|
+
wholeFile: wholeFiles.has(file$1.key),
|
|
2232
2299
|
onSelect: _resume(function(range) {
|
|
2233
2300
|
input.onSelect(file$1, range);
|
|
2234
|
-
}, "
|
|
2301
|
+
}, "u1", $scope9_id),
|
|
2235
2302
|
onSaveComment: _resume(function(text) {
|
|
2236
2303
|
input.onSaveComment(file$1, text);
|
|
2237
|
-
}, "
|
|
2304
|
+
}, "u2", $scope9_id),
|
|
2238
2305
|
onSendDraft: _resume(function(text, sessionId) {
|
|
2239
2306
|
input.onSendDraft(file$1, text, sessionId);
|
|
2240
|
-
}, "
|
|
2307
|
+
}, "u3", $scope9_id),
|
|
2241
2308
|
onCancelDraft: _resume(function() {
|
|
2242
2309
|
input.onCancelDraft();
|
|
2243
|
-
}, "
|
|
2310
|
+
}, "u4", $scope9_id),
|
|
2244
2311
|
onDeleteComment: _resume(function(id) {
|
|
2245
2312
|
input.onDeleteComment(id);
|
|
2246
|
-
}, "
|
|
2313
|
+
}, "u5", $scope9_id),
|
|
2247
2314
|
onEditComment: _resume(function(id, text) {
|
|
2248
2315
|
input.onEditComment(id, text);
|
|
2249
|
-
}, "
|
|
2316
|
+
}, "u6", $scope9_id),
|
|
2250
2317
|
onSendComment: _resume(function(id, sessionId) {
|
|
2251
2318
|
input.onSendComment(id, sessionId);
|
|
2252
|
-
}, "
|
|
2319
|
+
}, "u7", $scope9_id),
|
|
2253
2320
|
onError: _resume(function(message) {
|
|
2254
2321
|
input.onError(message);
|
|
2255
|
-
}, "
|
|
2322
|
+
}, "u8", $scope9_id)
|
|
2256
2323
|
});
|
|
2257
|
-
_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_onEditComment && $input_onEditComment__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:
|
|
2324
|
+
_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($wholeFiles__closures, _subscribe($si__input_onError && $input_onError__closures, _subscribe($si__input_onSendComment && $input_onSendComment__closures, _subscribe($si__input_onEditComment && $input_onEditComment__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: _existing_scope($childScope) })))))))))))))));
|
|
2258
2325
|
return 1;
|
|
2259
2326
|
}
|
|
2260
2327
|
}, $scope7_id, "a", 1, 1, 1, 0, 1);
|
|
@@ -2262,27 +2329,27 @@ var review_section_default = _template("t", (input) => {
|
|
|
2262
2329
|
c: _serialize_if($scope0_reason, 7) && near,
|
|
2263
2330
|
d: forceNear,
|
|
2264
2331
|
_: _scope_with_id($scope6_id),
|
|
2265
|
-
|
|
2332
|
+
Ccc: $si__input_findHit_key && 1
|
|
2266
2333
|
}));
|
|
2267
2334
|
return 3;
|
|
2268
2335
|
}
|
|
2269
|
-
}, $scope6_id, "
|
|
2336
|
+
}, $scope6_id, "j", $sg__input_files__OR__input_collapsedFiles, $sg__input_files__OR__input_collapsedFiles, $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles);
|
|
2270
2337
|
_html(`</details>${_el_resume($scope6_id, "a")}`);
|
|
2271
|
-
_script($scope6_id, "
|
|
2338
|
+
_script($scope6_id, "u14");
|
|
2272
2339
|
_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, {
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2340
|
+
l: file$1,
|
|
2341
|
+
m: file$1?.key,
|
|
2342
|
+
v: $si__input_files__OR__input_collapsedFiles && file$1?.binary,
|
|
2343
|
+
w: $si__input_files__OR__input_collapsedFiles && file$1?.tooLarge,
|
|
2344
|
+
x: $si__input_files__OR__input_collapsedFiles && file$1?.old,
|
|
2345
|
+
y: $si__input_files__OR__input_collapsedFiles && file$1?.new,
|
|
2346
|
+
z: fileComments,
|
|
2347
|
+
a0: $si__input_files__OR__input_commentsByFile && fileComments.length,
|
|
2348
|
+
a1: $si__input_onFileToggle && expanded,
|
|
2282
2349
|
_: _scope_with_id($scope5_id),
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2350
|
+
a5: $si__input_files && $for_content__file__closures,
|
|
2351
|
+
a6: $si__input_files && $for_content__file_key__closures,
|
|
2352
|
+
a7: $si__input_files__OR__input_commentsByFile && $for_content__fileComments__closures
|
|
2286
2353
|
})))))));
|
|
2287
2354
|
}, "key", $scope5_id, "a", $sg__input_files, _serialize_guard($scope0_reason, 17), $sg__input_files, "</div>", 1);
|
|
2288
2355
|
writeScope($scope5_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2330,44 +2397,47 @@ var review_section_default = _template("t", (input) => {
|
|
|
2330
2397
|
b3: $si__input_repo && repo?.pr?.title,
|
|
2331
2398
|
b4: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && repo?.head,
|
|
2332
2399
|
b5: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && repo?.baseSha,
|
|
2333
|
-
b6: _serialize_if($scope0_reason,
|
|
2400
|
+
b6: _serialize_if($scope0_reason, 37) && repo?.worktree,
|
|
2334
2401
|
b7: $si__input_repo && repo?.pr?.number,
|
|
2335
2402
|
b8: _serialize_if($scope0_reason, 16) && repo?.id,
|
|
2336
2403
|
b9: $si__input_repo && repo?.pr?.url,
|
|
2337
2404
|
ba: $si__input_repo && repo?.full_name,
|
|
2338
2405
|
bc: $si__input_repo && repo?.pr?.headRefOid,
|
|
2339
|
-
bd: _serialize_if($scope0_reason,
|
|
2340
|
-
bf: _serialize_if($scope0_reason,
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
bo: $si__input_files__OR__input_shownKeys && stats?.
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
by: $
|
|
2348
|
-
bz: $
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2406
|
+
bd: _serialize_if($scope0_reason, 36) && repo?.contained,
|
|
2407
|
+
bf: _serialize_if($scope0_reason, 39) && repo?.localHead,
|
|
2408
|
+
bg: wholeFiles,
|
|
2409
|
+
bj: _serialize_if($scope0_reason, 12) && shownCount,
|
|
2410
|
+
bm: $si__input_collapsible__OR__input_collapsed && countLabel,
|
|
2411
|
+
bo: $si__input_files__OR__input_shownKeys && stats?.additions,
|
|
2412
|
+
bp: $si__input_files__OR__input_shownKeys && stats?.deletions,
|
|
2413
|
+
br: $si__input_files__OR__input_onlyNew && newCount,
|
|
2414
|
+
by: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && compare$1?.topic,
|
|
2415
|
+
bz: $si__input_repo && prTitle,
|
|
2416
|
+
d1: $wholeFiles__closures,
|
|
2417
|
+
c0: $si__input && $input__closures,
|
|
2418
|
+
cf: $si__input_draft && $input_draft__closures,
|
|
2419
|
+
cg: $si__input_sessions && $input_sessions__closures,
|
|
2420
|
+
ch: $si__input_onSelect && $input_onSelect__closures,
|
|
2421
|
+
ci: $si__input_onSaveComment && $input_onSaveComment__closures,
|
|
2422
|
+
cj: $si__input_onSendDraft && $input_onSendDraft__closures,
|
|
2423
|
+
ck: $si__input_onCancelDraft && $input_onCancelDraft__closures,
|
|
2424
|
+
cl: $si__input_onDeleteComment && $input_onDeleteComment__closures,
|
|
2425
|
+
cm: $si__input_onEditComment && $input_onEditComment__closures,
|
|
2426
|
+
cn: $si__input_onSendComment && $input_onSendComment__closures,
|
|
2427
|
+
co: $si__input_onError && $input_onError__closures,
|
|
2428
|
+
cc: $si__input_findHit_key && $input_findHit_key__closures,
|
|
2429
|
+
c2: $si__input_shownKeys && $input_shownKeys__closures,
|
|
2430
|
+
ca: $si__input_commentsByFile && $input_commentsByFile__closures,
|
|
2431
|
+
cb: $si__input_collapsedFiles && $input_collapsedFiles__closures,
|
|
2432
|
+
cd: $si__input_onFileToggle && $input_onFileToggle__closures,
|
|
2433
|
+
ce: $si__input_findHit_line && $input_findHit_line__closures
|
|
2365
2434
|
});
|
|
2435
|
+
_resume_branch($scope0_id);
|
|
2366
2436
|
});
|
|
2367
|
-
var fileFilter = "_hl
|
|
2437
|
+
var fileFilter = "_hl _f";
|
|
2368
2438
|
//#endregion
|
|
2369
2439
|
//#region src/tags/file-filter.marko
|
|
2370
|
-
var file_filter_default = _template("
|
|
2440
|
+
var file_filter_default = _template("n", (input) => {
|
|
2371
2441
|
const $scope0_reason = _scope_reason();
|
|
2372
2442
|
const $scope0_id = _scope_id();
|
|
2373
2443
|
let value = input.value;
|
|
@@ -2382,7 +2452,7 @@ var file_filter_default = _template("m", (input) => {
|
|
|
2382
2452
|
const next = pending !== null ? pending : value || "";
|
|
2383
2453
|
pending = null;
|
|
2384
2454
|
value = next;
|
|
2385
|
-
}, "
|
|
2455
|
+
}, "n1", $scope0_id);
|
|
2386
2456
|
const type = _resume((v) => {
|
|
2387
2457
|
if (box.timer) clearTimeout(box.timer);
|
|
2388
2458
|
if (!v) {
|
|
@@ -2393,11 +2463,11 @@ var file_filter_default = _template("m", (input) => {
|
|
|
2393
2463
|
}
|
|
2394
2464
|
pending = v;
|
|
2395
2465
|
box.timer = setTimeout(flush, 150);
|
|
2396
|
-
}, "
|
|
2466
|
+
}, "n2", $scope0_id);
|
|
2397
2467
|
_html(`<div${_attr_class("_hk")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
2398
2468
|
type(v);
|
|
2399
|
-
}, "
|
|
2400
|
-
_script($scope0_id, "
|
|
2469
|
+
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
2470
|
+
_script($scope0_id, "n3");
|
|
2401
2471
|
writeScope($scope0_id, {
|
|
2402
2472
|
e: _serialize_if($scope0_reason, 1) && input.value,
|
|
2403
2473
|
f: _serialize_if($scope0_reason, 0) && input.valueChange,
|
|
@@ -2427,7 +2497,7 @@ var $content = (input) => {
|
|
|
2427
2497
|
_for_of(dir.dirs, (child) => {
|
|
2428
2498
|
const $scope1_id = _scope_id();
|
|
2429
2499
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
2430
|
-
_html(`<div${_attr_class("
|
|
2500
|
+
_html(`<div${_attr_class("_ha")}><button type=button${_attr_class(["_hb", { ["_g3"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_hi")}>`);
|
|
2431
2501
|
_if(() => {
|
|
2432
2502
|
if (shut) {
|
|
2433
2503
|
const $scope4_id = _scope_id();
|
|
@@ -2441,7 +2511,7 @@ var $content = (input) => {
|
|
|
2441
2511
|
return 1;
|
|
2442
2512
|
}
|
|
2443
2513
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
2444
|
-
_html(`<span${_attr_class("
|
|
2514
|
+
_html(`<span${_attr_class("_hc")}>${_escape(child.label)}${_el_resume($scope1_id, "e", $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2445
2515
|
_if(() => {
|
|
2446
2516
|
if (!shut) {
|
|
2447
2517
|
const $scope2_id = _scope_id();
|
|
@@ -2479,7 +2549,7 @@ var $content = (input) => {
|
|
|
2479
2549
|
}
|
|
2480
2550
|
}, $scope1_id, "f", $sg__input, $sg__input, $sg__input);
|
|
2481
2551
|
_html("</div>");
|
|
2482
|
-
_script($scope1_id, "
|
|
2552
|
+
_script($scope1_id, "k0");
|
|
2483
2553
|
writeScope($scope1_id, {
|
|
2484
2554
|
h: child,
|
|
2485
2555
|
i: $si__input && child?.path,
|
|
@@ -2488,11 +2558,11 @@ var $content = (input) => {
|
|
|
2488
2558
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
2489
2559
|
_for_of(dir.files, ({ file, name }) => {
|
|
2490
2560
|
const $scope3_id = _scope_id();
|
|
2491
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
2561
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_he", { ["_hd"]: 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("_hj")}${_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("_hf")}>${_escape(name)}${_el_resume($scope3_id, "e", $sg__input_dir)}</span>`);
|
|
2492
2562
|
_if(() => {
|
|
2493
2563
|
if (input.newKeys.has(file.key)) {
|
|
2494
2564
|
const $scope6_id = _scope_id();
|
|
2495
|
-
_html(`<span${_attr_class(["
|
|
2565
|
+
_html(`<span${_attr_class(["_t", "_hg"])} title="Changed since your last visit"></span>`);
|
|
2496
2566
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2497
2567
|
return 0;
|
|
2498
2568
|
}
|
|
@@ -2500,7 +2570,7 @@ var $content = (input) => {
|
|
|
2500
2570
|
_if(() => {
|
|
2501
2571
|
if (input.commentKeys.has(file.key)) {
|
|
2502
2572
|
const $scope7_id = _scope_id();
|
|
2503
|
-
_html(`<span${_attr_class("
|
|
2573
|
+
_html(`<span${_attr_class("_hh")}>`);
|
|
2504
2574
|
icon_comment_default({ size: 12 });
|
|
2505
2575
|
_html("</span>");
|
|
2506
2576
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -2533,10 +2603,10 @@ var $content = (input) => {
|
|
|
2533
2603
|
x: $si__input_newKeys && $input_newKeys__closures
|
|
2534
2604
|
});
|
|
2535
2605
|
};
|
|
2536
|
-
var diff_tree_dir_default = _template("
|
|
2606
|
+
var diff_tree_dir_default = _template("k", $content);
|
|
2537
2607
|
//#endregion
|
|
2538
2608
|
//#region src/tags/diff-tree.marko
|
|
2539
|
-
var diff_tree_default = _template("
|
|
2609
|
+
var diff_tree_default = _template("l", (input) => {
|
|
2540
2610
|
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);
|
|
2541
2611
|
const $scope0_id = _scope_id();
|
|
2542
2612
|
const $input_onDirToggle__closures = /* @__PURE__ */ new Set();
|
|
@@ -2557,28 +2627,28 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2557
2627
|
view: "diff",
|
|
2558
2628
|
scope: input.scope ?? null,
|
|
2559
2629
|
file: key
|
|
2560
|
-
}), "
|
|
2561
|
-
_html(`<aside${_attr_class(["
|
|
2630
|
+
}), "l0", $scope0_id);
|
|
2631
|
+
_html(`<aside${_attr_class(["_g4", { ["_g3"]: input.open === false }])}><div${_attr_class("_g5")}>`);
|
|
2562
2632
|
_set_serialize_reason(2);
|
|
2563
2633
|
const $childScope = _peek_scope_id();
|
|
2564
2634
|
file_filter_default({
|
|
2565
2635
|
value: filter,
|
|
2566
2636
|
valueChange: _resume((_new_filter) => {
|
|
2567
2637
|
filter = _new_filter;
|
|
2568
|
-
}, "
|
|
2638
|
+
}, "l1", $scope0_id)
|
|
2569
2639
|
});
|
|
2570
|
-
_html(`</div><div${_attr_class("
|
|
2640
|
+
_html(`</div><div${_attr_class("_g6")}>`);
|
|
2571
2641
|
_if(() => {
|
|
2572
2642
|
if (!input.sections.length && filter) {
|
|
2573
2643
|
const $scope3_id = _scope_id();
|
|
2574
|
-
_html(`<p${_attr_class("
|
|
2644
|
+
_html(`<p${_attr_class("_g7")}>No files match.</p>`);
|
|
2575
2645
|
writeScope($scope3_id, {});
|
|
2576
2646
|
return 0;
|
|
2577
2647
|
}
|
|
2578
2648
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
2579
2649
|
_for_of(input.sections, (section) => {
|
|
2580
2650
|
const $scope1_id = _scope_id();
|
|
2581
|
-
_html(`<div${_attr_class("
|
|
2651
|
+
_html(`<div${_attr_class("_g8")}><button type=button${_attr_class(["_g9", { ["_g3"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_hi")}>`);
|
|
2582
2652
|
_if(() => {
|
|
2583
2653
|
if (collapsedRepos.has(section.id)) {
|
|
2584
2654
|
const $scope4_id = _scope_id();
|
|
@@ -2592,18 +2662,18 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2592
2662
|
return 1;
|
|
2593
2663
|
}
|
|
2594
2664
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
2595
|
-
_html(`<span${_attr_class("
|
|
2665
|
+
_html(`<span${_attr_class("_hc")}>${_escape(section.label)}${_el_resume($scope1_id, "e", $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2596
2666
|
_if(() => {
|
|
2597
2667
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
2598
2668
|
const $scope2_id = _scope_id();
|
|
2599
2669
|
const root = treeDirs(section.files);
|
|
2600
|
-
_html(`<div${_attr_class("
|
|
2670
|
+
_html(`<div${_attr_class("_g_")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
2601
2671
|
_set_serialize_reason(1);
|
|
2602
2672
|
const $childScope2 = _peek_scope_id();
|
|
2603
2673
|
diff_tree_dir_default({
|
|
2604
2674
|
dir: root,
|
|
2605
2675
|
collapsed: collapsedDirs,
|
|
2606
|
-
collapsedKey: _resume((path) => `${section.id}/${path}`, "
|
|
2676
|
+
collapsedKey: _resume((path) => `${section.id}/${path}`, "l2", $scope2_id),
|
|
2607
2677
|
onToggleDir: _resume(function(dir) {
|
|
2608
2678
|
const key = `${section.id}/${dir.path}`;
|
|
2609
2679
|
const next = new Set(collapsedDirs);
|
|
@@ -2611,7 +2681,7 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2611
2681
|
if (collapsed) next.add(key);
|
|
2612
2682
|
collapsedDirs = next;
|
|
2613
2683
|
input.onDirToggle?.(section.files.filter((f) => f.path.startsWith(`${dir.path}/`)).map((f) => f.key), collapsed);
|
|
2614
|
-
}, "
|
|
2684
|
+
}, "l3", $scope2_id),
|
|
2615
2685
|
hrefFor,
|
|
2616
2686
|
collapsedFiles: input.collapsedFiles,
|
|
2617
2687
|
commentKeys,
|
|
@@ -2626,7 +2696,7 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2626
2696
|
}
|
|
2627
2697
|
}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
2628
2698
|
_html("</div>");
|
|
2629
|
-
_script($scope1_id, "
|
|
2699
|
+
_script($scope1_id, "l4");
|
|
2630
2700
|
writeScope($scope1_id, {
|
|
2631
2701
|
i: section?.id,
|
|
2632
2702
|
m: section?.files,
|
|
@@ -2669,7 +2739,7 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2669
2739
|
});
|
|
2670
2740
|
//#endregion
|
|
2671
2741
|
//#region src/tags/diff-file-sheet.marko
|
|
2672
|
-
var diff_file_sheet_default = _template("
|
|
2742
|
+
var diff_file_sheet_default = _template("g", (input) => {
|
|
2673
2743
|
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);
|
|
2674
2744
|
const $scope0_id = _scope_id();
|
|
2675
2745
|
const $commentKeys__closures = /* @__PURE__ */ new Set();
|
|
@@ -2685,7 +2755,7 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2685
2755
|
view: "diff",
|
|
2686
2756
|
scope: input.scope ?? null,
|
|
2687
2757
|
file: key
|
|
2688
|
-
}), "
|
|
2758
|
+
}), "g0", $scope0_id);
|
|
2689
2759
|
const groups = (() => {
|
|
2690
2760
|
const out = [];
|
|
2691
2761
|
const byRepo = /* @__PURE__ */ new Map();
|
|
@@ -2722,39 +2792,39 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2722
2792
|
_if(() => {
|
|
2723
2793
|
if (open) {
|
|
2724
2794
|
const $scope1_id = _scope_id();
|
|
2725
|
-
_html(`<div${_attr_class("
|
|
2795
|
+
_html(`<div${_attr_class("_fp")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_fq")} role=dialog aria-label="Jump to file"><div${_attr_class("_fr")}><strong${_attr_class("_fo")}>Files</strong><span${_attr_class("_fs")}>${_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, "_fn"])} title=Close aria-label=Close>`);
|
|
2726
2796
|
icon_xmark_default({ size: 16 });
|
|
2727
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
2797
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_fA")}>`);
|
|
2728
2798
|
_set_serialize_reason(2);
|
|
2729
2799
|
const $childScope = _peek_scope_id();
|
|
2730
2800
|
file_filter_default({
|
|
2731
2801
|
value: filter,
|
|
2732
2802
|
valueChange: _resume((_new_filter) => {
|
|
2733
2803
|
filter = _new_filter;
|
|
2734
|
-
}, "
|
|
2804
|
+
}, "g1", $scope1_id)
|
|
2735
2805
|
});
|
|
2736
|
-
_html(`</div><div${_attr_class("
|
|
2806
|
+
_html(`</div><div${_attr_class("_ft")}>`);
|
|
2737
2807
|
_for_of(groups, (group) => {
|
|
2738
2808
|
const $scope2_id = _scope_id();
|
|
2739
|
-
_html(`<div${_attr_class("
|
|
2809
|
+
_html(`<div${_attr_class("_fu")}><div${_attr_class("_fv")}>${_escape(group.repo)}${_el_resume($scope2_id, "c", $sg__input_files)}</div>`);
|
|
2740
2810
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
2741
2811
|
const $scope3_id = _scope_id();
|
|
2742
|
-
_html(`<div${_attr_class("
|
|
2812
|
+
_html(`<div${_attr_class("_fw")}>`);
|
|
2743
2813
|
_if(() => {
|
|
2744
2814
|
if (dir) {
|
|
2745
2815
|
const $scope5_id = _scope_id();
|
|
2746
|
-
_html(`<div${_attr_class("
|
|
2816
|
+
_html(`<div${_attr_class("_fy")}${_attr("title", dir)}><bdi>${_escape(dir)}${_el_resume($scope5_id, "b", $sg__input_files)}/</bdi></div>${_el_resume($scope5_id, "a", $sg__input_files)}`);
|
|
2747
2817
|
$si__input_files && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
2748
2818
|
return 0;
|
|
2749
2819
|
}
|
|
2750
2820
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
2751
2821
|
_for_of(files, ({ file, name }) => {
|
|
2752
2822
|
const $scope4_id = _scope_id();
|
|
2753
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
2823
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_fx", "_r"])}><span${_attr_class("_fE")}${_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("_fz")}><bdi>${_escape(name)}${_el_resume($scope4_id, "e", $sg__input_files)}</bdi></span>`);
|
|
2754
2824
|
_if(() => {
|
|
2755
2825
|
if (newKeys.has(file.key)) {
|
|
2756
2826
|
const $scope6_id = _scope_id();
|
|
2757
|
-
_html(`<span${_attr_class(["
|
|
2827
|
+
_html(`<span${_attr_class(["_t", "_fC"])} title="Changed since your last visit"></span>`);
|
|
2758
2828
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2759
2829
|
return 0;
|
|
2760
2830
|
}
|
|
@@ -2764,14 +2834,14 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2764
2834
|
const $scope7_id = _scope_id();
|
|
2765
2835
|
icon_comment_default({
|
|
2766
2836
|
size: 12,
|
|
2767
|
-
class: "
|
|
2837
|
+
class: "_fD"
|
|
2768
2838
|
});
|
|
2769
2839
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
2770
2840
|
return 0;
|
|
2771
2841
|
}
|
|
2772
2842
|
}, $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);
|
|
2773
2843
|
_html(`</a>${_el_resume($scope4_id, "a")}`);
|
|
2774
|
-
_script($scope4_id, "
|
|
2844
|
+
_script($scope4_id, "g2");
|
|
2775
2845
|
_subscribe($si__input_workspaceId__OR__input_scope && $hrefFor2__closures, _subscribe($si__input_newKeys && $newKeys__closures, _subscribe($si__input_commentKeys && $commentKeys__closures, writeScope($scope4_id, {
|
|
2776
2846
|
k: _serialize_if($scope0_reason, 5) && file?.key,
|
|
2777
2847
|
_: _scope_with_id($scope3_id)
|
|
@@ -2789,13 +2859,13 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2789
2859
|
_if(() => {
|
|
2790
2860
|
if (!input.files.length) {
|
|
2791
2861
|
const $scope8_id = _scope_id();
|
|
2792
|
-
_html(`<p${_attr_class("
|
|
2862
|
+
_html(`<p${_attr_class("_fB")}>No files match.</p>`);
|
|
2793
2863
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
2794
2864
|
return 0;
|
|
2795
2865
|
}
|
|
2796
2866
|
}, $scope1_id, "n", $sg__input_files_length, $sg__input_files_length, $sg__input_files_length, 0, 1);
|
|
2797
2867
|
_html("</div></div>");
|
|
2798
|
-
_script($scope1_id, "
|
|
2868
|
+
_script($scope1_id, "g3");
|
|
2799
2869
|
writeScope($scope1_id, { k: _existing_scope($childScope) });
|
|
2800
2870
|
return 0;
|
|
2801
2871
|
}
|
|
@@ -2829,7 +2899,7 @@ var api;
|
|
|
2829
2899
|
var getTermDims;
|
|
2830
2900
|
var revealSearchHit;
|
|
2831
2901
|
var setSearchPaint;
|
|
2832
|
-
var diff_view_default = _template("
|
|
2902
|
+
var diff_view_default = _template("m", (input) => {
|
|
2833
2903
|
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);
|
|
2834
2904
|
const $scope0_id = _scope_id();
|
|
2835
2905
|
const $error__closures = /* @__PURE__ */ new Set();
|
|
@@ -2865,14 +2935,14 @@ var diff_view_default = _template("l", (input) => {
|
|
|
2865
2935
|
let fileFilter = diffFilter(input.workspaceId);
|
|
2866
2936
|
const $filterChange = _resume((_new_fileFilter) => {
|
|
2867
2937
|
fileFilter = _new_fileFilter;
|
|
2868
|
-
}, "
|
|
2938
|
+
}, "m1", $scope0_id);
|
|
2869
2939
|
let onlyNew = false;
|
|
2870
2940
|
let scope$1 = input.scope ?? diffScope();
|
|
2871
2941
|
let treeOpen = diffTreeOpen();
|
|
2872
2942
|
let fileSheet = false;
|
|
2873
2943
|
let findOpen = input.findOpen;
|
|
2874
2944
|
let findTick = input.findTick || 0;
|
|
2875
|
-
const findFocusRef = input.findFocusRef || { focus: _resume(function() {}, "
|
|
2945
|
+
const findFocusRef = input.findFocusRef || { focus: _resume(function() {}, "m2") };
|
|
2876
2946
|
let findState = {
|
|
2877
2947
|
query: "",
|
|
2878
2948
|
hit: null,
|
|
@@ -2885,7 +2955,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
2885
2955
|
for (const key of keys) if (collapsed) next.add(key);
|
|
2886
2956
|
else next.delete(key);
|
|
2887
2957
|
if (next.size !== collapsedFiles.size || [...next].some((k) => !collapsedFiles.has(k))) collapsedFiles = next;
|
|
2888
|
-
}, "
|
|
2958
|
+
}, "m3", $scope0_id);
|
|
2889
2959
|
let openedRepos = /* @__PURE__ */ new Set();
|
|
2890
2960
|
let expandingRepos = /* @__PURE__ */ new Set();
|
|
2891
2961
|
const nearBox = {
|
|
@@ -2926,7 +2996,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
2926
2996
|
cb();
|
|
2927
2997
|
}
|
|
2928
2998
|
});
|
|
2929
|
-
}, "
|
|
2999
|
+
}, "m4", $scope0_id);
|
|
2930
3000
|
const pinToTop = _resume((el) => {
|
|
2931
3001
|
const root = ((scrollEl) => scrollEl())(_el_read_error);
|
|
2932
3002
|
if (!root) {
|
|
@@ -2935,14 +3005,14 @@ var diff_view_default = _template("l", (input) => {
|
|
|
2935
3005
|
}
|
|
2936
3006
|
const top = el.getBoundingClientRect().top - root.getBoundingClientRect().top + root.scrollTop;
|
|
2937
3007
|
root.scrollTo({ top: Math.max(0, top - 8) });
|
|
2938
|
-
}, "
|
|
3008
|
+
}, "m5", $scope0_id);
|
|
2939
3009
|
const retryFrames = _resume((attempt, ms = 2500) => {
|
|
2940
3010
|
const started = Date.now();
|
|
2941
3011
|
const tick = () => {
|
|
2942
3012
|
if (!attempt() && Date.now() - started < ms) requestAnimationFrame(tick);
|
|
2943
3013
|
};
|
|
2944
3014
|
tick();
|
|
2945
|
-
}, "
|
|
3015
|
+
}, "m6");
|
|
2946
3016
|
const focusPrSection = _resume((pr) => {
|
|
2947
3017
|
if (!pr) return;
|
|
2948
3018
|
const list = repos || [];
|
|
@@ -2960,13 +3030,13 @@ var diff_view_default = _template("l", (input) => {
|
|
|
2960
3030
|
if (el) pinToTop(el);
|
|
2961
3031
|
return !!el;
|
|
2962
3032
|
});
|
|
2963
|
-
}, "
|
|
2964
|
-
const findFile = _resume((key) => ((scrollEl) => scrollEl())(_el_read_error)?.querySelector(`details[data-key="${CSS.escape(key)}"]`) ?? null, "
|
|
3033
|
+
}, "m7", $scope0_id);
|
|
3034
|
+
const findFile = _resume((key) => ((scrollEl) => scrollEl())(_el_read_error)?.querySelector(`details[data-key="${CSS.escape(key)}"]`) ?? null, "m8", $scope0_id);
|
|
2965
3035
|
const openFile = _resume((key) => {
|
|
2966
3036
|
const el = findFile(key);
|
|
2967
3037
|
if (el) el.open = true;
|
|
2968
3038
|
return el;
|
|
2969
|
-
}, "
|
|
3039
|
+
}, "m9", $scope0_id);
|
|
2970
3040
|
const jumpTo = _resume((key) => {
|
|
2971
3041
|
input.onFileChange?.(key);
|
|
2972
3042
|
retryFrames(() => {
|
|
@@ -2974,7 +3044,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
2974
3044
|
if (el) pinToTop(el);
|
|
2975
3045
|
return !!el;
|
|
2976
3046
|
});
|
|
2977
|
-
}, "
|
|
3047
|
+
}, "m10", $scope0_id);
|
|
2978
3048
|
const posBox = {
|
|
2979
3049
|
anchor: null,
|
|
2980
3050
|
raf: 0,
|
|
@@ -2996,17 +3066,17 @@ var diff_view_default = _template("l", (input) => {
|
|
|
2996
3066
|
};
|
|
2997
3067
|
}
|
|
2998
3068
|
return best;
|
|
2999
|
-
}, "
|
|
3069
|
+
}, "m11", $scope0_id);
|
|
3000
3070
|
const noteScroll = _resume(() => {
|
|
3001
3071
|
if (posBox.raf) return;
|
|
3002
3072
|
posBox.raf = requestAnimationFrame(() => {
|
|
3003
3073
|
posBox.raf = 0;
|
|
3004
3074
|
if (((scrollEl) => scrollEl())(_el_read_error)?.isConnected) posBox.anchor = anchorAt();
|
|
3005
3075
|
});
|
|
3006
|
-
}, "
|
|
3076
|
+
}, "m12", $scope0_id);
|
|
3007
3077
|
const savePos = _resume(() => {
|
|
3008
3078
|
if (repos) setDiffPos(input.workspaceId, posBox.anchor);
|
|
3009
|
-
}, "
|
|
3079
|
+
}, "m13", $scope0_id);
|
|
3010
3080
|
const restorePos = _resume((pos) => {
|
|
3011
3081
|
const run = ++posBox.run;
|
|
3012
3082
|
const started = Date.now();
|
|
@@ -3036,7 +3106,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3036
3106
|
} else if (!pinnedAt && Date.now() - started < 2500) requestAnimationFrame(tick);
|
|
3037
3107
|
};
|
|
3038
3108
|
requestAnimationFrame(tick);
|
|
3039
|
-
}, "
|
|
3109
|
+
}, "m14", $scope0_id);
|
|
3040
3110
|
const headBox = {
|
|
3041
3111
|
sig: "",
|
|
3042
3112
|
timer: 0
|
|
@@ -3068,14 +3138,14 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3068
3138
|
} finally {
|
|
3069
3139
|
if (seq === loadBox.seq) loading = false;
|
|
3070
3140
|
}
|
|
3071
|
-
}, "
|
|
3141
|
+
}, "m15", $scope0_id);
|
|
3072
3142
|
const setScope = _resume((next, persist = true) => {
|
|
3073
3143
|
if (next === scope$1) return;
|
|
3074
3144
|
scope$1 = next;
|
|
3075
3145
|
if (persist) setDiffScope(next);
|
|
3076
3146
|
input.onScopeChange?.(next);
|
|
3077
3147
|
load(next);
|
|
3078
|
-
}, "
|
|
3148
|
+
}, "m16", $scope0_id);
|
|
3079
3149
|
const sendGate = { busy: 0 };
|
|
3080
3150
|
const loadReview = _resume(async () => {
|
|
3081
3151
|
if (sendGate.busy) return;
|
|
@@ -3084,15 +3154,15 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3084
3154
|
if (sendGate.busy) return;
|
|
3085
3155
|
comments = reviewData.comments || [];
|
|
3086
3156
|
} catch {}
|
|
3087
|
-
}, "
|
|
3088
|
-
const reload = _resume(() => load(scope$1, true), "
|
|
3157
|
+
}, "m17", $scope0_id);
|
|
3158
|
+
const reload = _resume(() => load(scope$1, true), "m18", $scope0_id);
|
|
3089
3159
|
const reloadSoon = _resume(() => {
|
|
3090
3160
|
if (headBox.timer) clearTimeout(headBox.timer);
|
|
3091
3161
|
headBox.timer = setTimeout(() => {
|
|
3092
3162
|
headBox.timer = 0;
|
|
3093
3163
|
reload();
|
|
3094
3164
|
}, 250);
|
|
3095
|
-
}, "
|
|
3165
|
+
}, "m19", $scope0_id);
|
|
3096
3166
|
const markSeen = _resume(() => {
|
|
3097
3167
|
if (!repos) return;
|
|
3098
3168
|
const heads = {};
|
|
@@ -3111,7 +3181,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3111
3181
|
}),
|
|
3112
3182
|
keepalive: true
|
|
3113
3183
|
}).catch(() => {});
|
|
3114
|
-
}, "
|
|
3184
|
+
}, "m20", $scope0_id);
|
|
3115
3185
|
const repoList = repos || [];
|
|
3116
3186
|
const allFiles = repoList.flatMap((r) => r.files.map((f) => ({
|
|
3117
3187
|
...f,
|
|
@@ -3134,7 +3204,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3134
3204
|
else map.set(f.repo, [f]);
|
|
3135
3205
|
}
|
|
3136
3206
|
return map;
|
|
3137
|
-
}, "
|
|
3207
|
+
}, "m21");
|
|
3138
3208
|
const filesByRepo = groupByRepo(allFiles);
|
|
3139
3209
|
const shownByRepo = groupByRepo(shownFiles);
|
|
3140
3210
|
const commentsByFile = (() => {
|
|
@@ -3153,7 +3223,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3153
3223
|
}));
|
|
3154
3224
|
const localDifferIds = new Set(repoList.filter((repo) => !!repo.pr && !!repo.localHead && (repo.localHead !== repo.head || repo.branch !== repo.pr.headRefName)).map((r) => r.id));
|
|
3155
3225
|
const hasFiles = !repos || allFiles.length > 0;
|
|
3156
|
-
const fileWorktree = _resume((repo) => repo.includes("#") ? repo.split("#")[0] : repo, "
|
|
3226
|
+
const fileWorktree = _resume((repo) => repo.includes("#") ? repo.split("#")[0] : repo, "m22");
|
|
3157
3227
|
const anchorFor = _resume((file, range) => {
|
|
3158
3228
|
const section = repoList.find((r) => r.id === file.repo);
|
|
3159
3229
|
const source = range.side === "deletions" ? file.old : file.new;
|
|
@@ -3161,7 +3231,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3161
3231
|
head: section?.head,
|
|
3162
3232
|
snippet: source == null ? void 0 : quoteRange(source, range.start, range.end, range.side === "deletions" ? "deletions" : "additions")
|
|
3163
3233
|
};
|
|
3164
|
-
}, "
|
|
3234
|
+
}, "m23", $scope0_id);
|
|
3165
3235
|
const saveComment = _resume(async (file, text) => {
|
|
3166
3236
|
const range = draft;
|
|
3167
3237
|
draft = null;
|
|
@@ -3185,16 +3255,16 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3185
3255
|
} catch (err) {
|
|
3186
3256
|
error = String(err.message || err);
|
|
3187
3257
|
}
|
|
3188
|
-
}, "
|
|
3258
|
+
}, "m24", $scope0_id);
|
|
3189
3259
|
const deleteRemote = _resume((ids) => ids === "all" ? fetch(`/api/workspaces/${input.workspaceId}/review`, {
|
|
3190
3260
|
method: "POST",
|
|
3191
3261
|
headers: { "content-type": "application/json" },
|
|
3192
3262
|
body: JSON.stringify({ action: "clear" })
|
|
3193
|
-
}) : Promise.all(ids.map((id) => fetch(`/api/workspaces/${input.workspaceId}/review/${id}`, { method: "DELETE" }))), "
|
|
3263
|
+
}) : Promise.all(ids.map((id) => fetch(`/api/workspaces/${input.workspaceId}/review/${id}`, { method: "DELETE" }))), "m25", $scope0_id);
|
|
3194
3264
|
const removeComment = _resume(async (id) => {
|
|
3195
3265
|
comments = comments.filter((c) => c.id !== id);
|
|
3196
3266
|
await deleteRemote([id]).catch(() => {});
|
|
3197
|
-
}, "
|
|
3267
|
+
}, "m26", $scope0_id);
|
|
3198
3268
|
const editComment = _resume(async (id, text) => {
|
|
3199
3269
|
const prev = comments.find((c) => c.id === id);
|
|
3200
3270
|
if (!prev) return;
|
|
@@ -3215,7 +3285,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3215
3285
|
error = String(err.message || err);
|
|
3216
3286
|
throw err;
|
|
3217
3287
|
}
|
|
3218
|
-
}, "
|
|
3288
|
+
}, "m27", $scope0_id);
|
|
3219
3289
|
const dispatch = _resume(async (list, to, consume) => {
|
|
3220
3290
|
if (!list.length) return true;
|
|
3221
3291
|
sendGate.busy++;
|
|
@@ -3251,13 +3321,13 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3251
3321
|
} finally {
|
|
3252
3322
|
sendGate.busy--;
|
|
3253
3323
|
}
|
|
3254
|
-
}, "
|
|
3255
|
-
const copyMarkdown = _resume(() => dispatch(comments, { clipboard: true }, "all"), "
|
|
3256
|
-
const sendTo = _resume((sessionId) => dispatch(comments, { session: sessionId }, "all"), "
|
|
3324
|
+
}, "m28", $scope0_id);
|
|
3325
|
+
const copyMarkdown = _resume(() => dispatch(comments, { clipboard: true }, "all"), "m29", $scope0_id);
|
|
3326
|
+
const sendTo = _resume((sessionId) => dispatch(comments, { session: sessionId }, "all"), "m30", $scope0_id);
|
|
3257
3327
|
const sendOneComment = _resume((id, sessionId) => {
|
|
3258
3328
|
const comment = comments.find((c) => c.id === id);
|
|
3259
3329
|
return comment ? dispatch([comment], { session: sessionId }, [id]) : Promise.resolve(false);
|
|
3260
|
-
}, "
|
|
3330
|
+
}, "m31", $scope0_id);
|
|
3261
3331
|
const sendDraftComment = _resume((file, text, sessionId) => {
|
|
3262
3332
|
const range = draft;
|
|
3263
3333
|
const trimmed = text.trim();
|
|
@@ -3275,12 +3345,12 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3275
3345
|
...anchorFor(file, range)
|
|
3276
3346
|
};
|
|
3277
3347
|
return dispatch([one], { session: sessionId }, []);
|
|
3278
|
-
}, "
|
|
3348
|
+
}, "m32", $scope0_id);
|
|
3279
3349
|
const openFind = _resume(() => {
|
|
3280
3350
|
findOpen = true;
|
|
3281
3351
|
findTick++;
|
|
3282
3352
|
findFocusRef.focus();
|
|
3283
|
-
}, "
|
|
3353
|
+
}, "m33", $scope0_id);
|
|
3284
3354
|
const onFindState = _resume((next) => {
|
|
3285
3355
|
findState = next;
|
|
3286
3356
|
if (!next.hit) return;
|
|
@@ -3295,7 +3365,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3295
3365
|
setSearchPaint(next.query, hit);
|
|
3296
3366
|
revealSearchHit();
|
|
3297
3367
|
}, 0);
|
|
3298
|
-
}, "
|
|
3368
|
+
}, "m34", $scope0_id);
|
|
3299
3369
|
const toggleSection = _resume((id) => {
|
|
3300
3370
|
if (expandingRepos.has(id)) {
|
|
3301
3371
|
const busy = new Set(expandingRepos);
|
|
@@ -3327,23 +3397,23 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3327
3397
|
openedRepos = /* @__PURE__ */ new Set([...openedRepos, id]);
|
|
3328
3398
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
3329
3399
|
}
|
|
3330
|
-
}, "
|
|
3331
|
-
_html(`<div${_attr_class("
|
|
3400
|
+
}, "m35", $scope0_id);
|
|
3401
|
+
_html(`<div${_attr_class("_dq")}><div${_attr_class("_dv")}><div${_attr_class("_dw")}><div${_attr_class(["_dG", { ["_dF"]: !comments.length }])}>`);
|
|
3332
3402
|
_if(() => {
|
|
3333
3403
|
if (input.onExit) {
|
|
3334
3404
|
const $scope1_id = _scope_id();
|
|
3335
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
3405
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_dx"])} title="Back to terminal (Esc)">`);
|
|
3336
3406
|
icon_back_default({ size: 14 });
|
|
3337
3407
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
3338
3408
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
3339
3409
|
return 0;
|
|
3340
3410
|
}
|
|
3341
3411
|
}, $scope0_id, "e", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 4), 1, 0, 1);
|
|
3342
|
-
_html(`<h1${_attr_class("
|
|
3412
|
+
_html(`<h1${_attr_class("_dA")}>Review</h1>`);
|
|
3343
3413
|
_if(() => {
|
|
3344
3414
|
if (comments.length) {
|
|
3345
3415
|
const $scope5_id = _scope_id();
|
|
3346
|
-
_html(`<span${_attr_class("
|
|
3416
|
+
_html(`<span${_attr_class("_dz")}>${_escape(comments.length)}${_el_resume($scope5_id, "b")} comment<!>${comments.length === 1 ? "" : "s"}${_el_resume($scope5_id, "c")}</span>`);
|
|
3347
3417
|
writeScope($scope5_id, {});
|
|
3348
3418
|
return 0;
|
|
3349
3419
|
}
|
|
@@ -3351,7 +3421,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3351
3421
|
_if(() => {
|
|
3352
3422
|
if (comments.length) {
|
|
3353
3423
|
const $scope2_id = _scope_id();
|
|
3354
|
-
_html(`<span${_attr_class("
|
|
3424
|
+
_html(`<span${_attr_class("_dy")}>`);
|
|
3355
3425
|
_set_serialize_reason(_serialize_guard($scope0_reason, 5));
|
|
3356
3426
|
const $childScope = _peek_scope_id();
|
|
3357
3427
|
diff_send_default({
|
|
@@ -3364,46 +3434,46 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3364
3434
|
return 0;
|
|
3365
3435
|
}
|
|
3366
3436
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
3367
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
3437
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_du")}>`);
|
|
3368
3438
|
_if(() => {
|
|
3369
3439
|
if (hasFiles) {
|
|
3370
3440
|
const $scope12_id = _scope_id();
|
|
3371
3441
|
_html(`<button${_attr_class([
|
|
3372
3442
|
treeToggle,
|
|
3373
|
-
"
|
|
3374
|
-
{ ["
|
|
3443
|
+
"_ds",
|
|
3444
|
+
{ ["_dr"]: treeOpen }
|
|
3375
3445
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
3376
3446
|
icon_sidebar_default({ size: 14 });
|
|
3377
3447
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
3378
|
-
_script($scope12_id, "
|
|
3448
|
+
_script($scope12_id, "m54");
|
|
3379
3449
|
writeScope($scope12_id, {});
|
|
3380
3450
|
return 0;
|
|
3381
3451
|
}
|
|
3382
3452
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
3383
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3453
|
+
_html(`<button${_attr_class([iconBtnRow, "_ds"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
3384
3454
|
_set_serialize_reason(1);
|
|
3385
3455
|
const $childScope2 = _peek_scope_id();
|
|
3386
3456
|
icon_refresh_default({
|
|
3387
3457
|
size: 14,
|
|
3388
|
-
class: loading && "
|
|
3458
|
+
class: loading && "_y"
|
|
3389
3459
|
});
|
|
3390
3460
|
_html(`</button>${_el_resume($scope0_id, "k")}`);
|
|
3391
3461
|
_if(() => {
|
|
3392
3462
|
if (hasFiles) {
|
|
3393
3463
|
const $scope13_id = _scope_id();
|
|
3394
|
-
_html(`<button${_attr_class(["
|
|
3395
|
-
_script($scope13_id, "
|
|
3464
|
+
_html(`<button${_attr_class(["_i", "_dS"])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope13_id, "b")})</button>${_el_resume($scope13_id, "a")}`);
|
|
3465
|
+
_script($scope13_id, "m55");
|
|
3396
3466
|
writeScope($scope13_id, {});
|
|
3397
3467
|
return 0;
|
|
3398
3468
|
}
|
|
3399
3469
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
3400
|
-
_html(`<div${_attr_class("
|
|
3470
|
+
_html(`<div${_attr_class("_dH")} role=group aria-label="Review scope"><button type=button${_attr_class(["_dJ", { ["_dI"]: 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(["_dJ", { ["_dI"]: 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(["_dJ", { ["_dI"]: 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(["_g", "_dK"])}>`);
|
|
3401
3471
|
_attr_select_value($scope0_id, "s", scope$1, _resume(function(v) {
|
|
3402
3472
|
setScope(v);
|
|
3403
|
-
}, "
|
|
3404
|
-
_html(`<select${_attr_class(["
|
|
3473
|
+
}, "m0", $scope0_id), () => {
|
|
3474
|
+
_html(`<select${_attr_class(["_h", "_dL"])} 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>`);
|
|
3405
3475
|
});
|
|
3406
|
-
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["
|
|
3476
|
+
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["_dD", { ["_dC"]: !findOpen }])}>`);
|
|
3407
3477
|
_set_serialize_reason(2);
|
|
3408
3478
|
const $childScope3 = _peek_scope_id();
|
|
3409
3479
|
diff_find_default({
|
|
@@ -3412,11 +3482,11 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3412
3482
|
open: findOpen,
|
|
3413
3483
|
openChange: _resume((_new_findOpen) => {
|
|
3414
3484
|
findOpen = _new_findOpen;
|
|
3415
|
-
}, "
|
|
3485
|
+
}, "m36", $scope0_id),
|
|
3416
3486
|
focusRef: findFocusRef,
|
|
3417
3487
|
stateChange: _resume(function(s) {
|
|
3418
3488
|
onFindState(s);
|
|
3419
|
-
}, "
|
|
3489
|
+
}, "m37", $scope0_id)
|
|
3420
3490
|
});
|
|
3421
3491
|
_html(`</div>${_el_resume($scope0_id, "t")}`);
|
|
3422
3492
|
_if(() => {
|
|
@@ -3424,25 +3494,25 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3424
3494
|
const $scope14_id = _scope_id();
|
|
3425
3495
|
_html(`<button${_attr_class([
|
|
3426
3496
|
iconBtnRow,
|
|
3427
|
-
"
|
|
3428
|
-
"
|
|
3497
|
+
"_dB",
|
|
3498
|
+
"_ds"
|
|
3429
3499
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
3430
3500
|
icon_search_default({ size: 14 });
|
|
3431
3501
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
3432
|
-
_script($scope14_id, "
|
|
3502
|
+
_script($scope14_id, "m56");
|
|
3433
3503
|
writeScope($scope14_id, {});
|
|
3434
3504
|
return 0;
|
|
3435
3505
|
}
|
|
3436
3506
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
3437
|
-
_html(`</div></div><div${_attr_class("
|
|
3507
|
+
_html(`</div></div><div${_attr_class("_dE")} data-diff-main>`);
|
|
3438
3508
|
_if(() => {
|
|
3439
3509
|
if (error) {
|
|
3440
3510
|
const $scope6_id = _scope_id();
|
|
3441
3511
|
toast_default({
|
|
3442
3512
|
onDismiss: _resume(function() {
|
|
3443
3513
|
error = null;
|
|
3444
|
-
}, "
|
|
3445
|
-
content: _content_resume("
|
|
3514
|
+
}, "m38", $scope6_id),
|
|
3515
|
+
content: _content_resume("m57", () => {
|
|
3446
3516
|
_scope_reason();
|
|
3447
3517
|
const $scope7_id = _scope_id();
|
|
3448
3518
|
_html(`${_escape(error)}${_el_resume($scope7_id, "a")}`);
|
|
@@ -3457,7 +3527,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3457
3527
|
_if(() => {
|
|
3458
3528
|
if (!repos && loading) {
|
|
3459
3529
|
const $scope15_id = _scope_id();
|
|
3460
|
-
_html(`<div${_attr_class("
|
|
3530
|
+
_html(`<div${_attr_class("_dN")} aria-hidden=true><div${_attr_class(["_dO", "_dP"])}></div><div${_attr_class(["_dO", "_dQ"])}></div><div${_attr_class(["_dO", "_dR"])}></div><div${_attr_class(["_dO", "_dQ"])}></div><div${_attr_class(["_dO", "_dR"])}></div></div>`);
|
|
3461
3531
|
writeScope($scope15_id, {});
|
|
3462
3532
|
return 0;
|
|
3463
3533
|
}
|
|
@@ -3471,7 +3541,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3471
3541
|
kind: "warn",
|
|
3472
3542
|
placement: "inline",
|
|
3473
3543
|
title: `${repo.worktree}: base not found`,
|
|
3474
|
-
content: _content_resume("
|
|
3544
|
+
content: _content_resume("m58", () => {
|
|
3475
3545
|
_scope_reason();
|
|
3476
3546
|
const $scope10_id = _scope_id();
|
|
3477
3547
|
_html(`${_escape(repo.base)}${_el_resume($scope10_id, "a")}<!>${scope$1 !== "committed" ? ", showing uncommitted changes only" : ""}${_el_resume($scope10_id, "b")}.`);
|
|
@@ -3488,12 +3558,12 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3488
3558
|
_if(() => {
|
|
3489
3559
|
if (repos && !allFiles.length) {
|
|
3490
3560
|
const $scope11_id = _scope_id();
|
|
3491
|
-
_html(`<p${_attr_class("
|
|
3561
|
+
_html(`<p${_attr_class("_bI")}>${repoList.some((r) => r.unborn) ? "No commits yet." : 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>`);
|
|
3492
3562
|
writeScope($scope11_id, {});
|
|
3493
3563
|
return 0;
|
|
3494
3564
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
3495
3565
|
const $scope8_id = _scope_id();
|
|
3496
|
-
_html(`<p${_attr_class("
|
|
3566
|
+
_html(`<p${_attr_class("_bI")}>${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>`);
|
|
3497
3567
|
writeScope($scope8_id, {});
|
|
3498
3568
|
return 1;
|
|
3499
3569
|
}
|
|
@@ -3516,14 +3586,14 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3516
3586
|
opened: openedRepos.has(repo.id),
|
|
3517
3587
|
onToggle: _resume(function() {
|
|
3518
3588
|
toggleSection(repo.id);
|
|
3519
|
-
}, "
|
|
3589
|
+
}, "m39", $scope4_id),
|
|
3520
3590
|
workspaceBranch: input.workspaceBranch || "",
|
|
3521
3591
|
workspaceName: input.workspaceName || "",
|
|
3522
3592
|
localDiffers: localDifferIds.has(repo.id),
|
|
3523
3593
|
onlyNew,
|
|
3524
3594
|
onToggleNew: _resume(function() {
|
|
3525
3595
|
onlyNew = !onlyNew;
|
|
3526
|
-
}, "
|
|
3596
|
+
}, "m40", $scope4_id),
|
|
3527
3597
|
onReload: reload,
|
|
3528
3598
|
loading,
|
|
3529
3599
|
findHit: findState.hit,
|
|
@@ -3534,7 +3604,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3534
3604
|
collapsedFiles,
|
|
3535
3605
|
onFileToggle: _resume(function(key, open) {
|
|
3536
3606
|
setFilesCollapsed([key], !open);
|
|
3537
|
-
}, "
|
|
3607
|
+
}, "m41", $scope4_id),
|
|
3538
3608
|
onSelect: _resume(function(file, range) {
|
|
3539
3609
|
draft = {
|
|
3540
3610
|
key: file.key,
|
|
@@ -3542,28 +3612,28 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3542
3612
|
start: Math.min(range.start, range.end),
|
|
3543
3613
|
end: Math.max(range.start, range.end)
|
|
3544
3614
|
};
|
|
3545
|
-
}, "
|
|
3615
|
+
}, "m42", $scope4_id),
|
|
3546
3616
|
onSaveComment: _resume(function(file, text) {
|
|
3547
3617
|
saveComment(file, text);
|
|
3548
|
-
}, "
|
|
3618
|
+
}, "m43", $scope4_id),
|
|
3549
3619
|
onSendDraft: _resume(function(file, text, sessionId) {
|
|
3550
3620
|
sendDraftComment(file, text, sessionId);
|
|
3551
|
-
}, "
|
|
3621
|
+
}, "m44", $scope4_id),
|
|
3552
3622
|
onCancelDraft: _resume(function() {
|
|
3553
3623
|
draft = null;
|
|
3554
|
-
}, "
|
|
3624
|
+
}, "m45", $scope4_id),
|
|
3555
3625
|
onDeleteComment: _resume(function(id) {
|
|
3556
3626
|
removeComment(id);
|
|
3557
|
-
}, "
|
|
3627
|
+
}, "m46", $scope4_id),
|
|
3558
3628
|
onEditComment: _resume(function(id, text) {
|
|
3559
3629
|
editComment(id, text);
|
|
3560
|
-
}, "
|
|
3630
|
+
}, "m47", $scope4_id),
|
|
3561
3631
|
onSendComment: _resume(function(id, sessionId) {
|
|
3562
3632
|
sendOneComment(id, sessionId);
|
|
3563
|
-
}, "
|
|
3633
|
+
}, "m48", $scope4_id),
|
|
3564
3634
|
onError: _resume(function(message) {
|
|
3565
3635
|
error = message;
|
|
3566
|
-
}, "
|
|
3636
|
+
}, "m49", $scope4_id)
|
|
3567
3637
|
});
|
|
3568
3638
|
_subscribe($toggleSection2__closures, _subscribe($sendDraftComment2__closures, _subscribe($sendOneComment2__closures, _subscribe($editComment2__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) }))))))))))))))))))))))));
|
|
3569
3639
|
return 0;
|
|
@@ -3585,17 +3655,17 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3585
3655
|
collapsedRepos,
|
|
3586
3656
|
collapsedReposChange: _resume((_new_collapsedRepos) => {
|
|
3587
3657
|
collapsedRepos = _new_collapsedRepos;
|
|
3588
|
-
}, "
|
|
3658
|
+
}, "m50", $scope0_id),
|
|
3589
3659
|
openedRepos,
|
|
3590
3660
|
openedReposChange: _resume((_new_openedRepos) => {
|
|
3591
3661
|
openedRepos = _new_openedRepos;
|
|
3592
|
-
}, "
|
|
3662
|
+
}, "m51", $scope0_id),
|
|
3593
3663
|
commentKeys,
|
|
3594
3664
|
newKeys,
|
|
3595
3665
|
collapsedFiles,
|
|
3596
3666
|
onDirToggle: _resume(function(keys, collapsed) {
|
|
3597
3667
|
setFilesCollapsed(keys, collapsed);
|
|
3598
|
-
}, "
|
|
3668
|
+
}, "m52", $scope0_id),
|
|
3599
3669
|
workspaceId: input.workspaceId,
|
|
3600
3670
|
scope: scope$1
|
|
3601
3671
|
});
|
|
@@ -3605,7 +3675,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3605
3675
|
open: fileSheet,
|
|
3606
3676
|
openChange: _resume((_new_fileSheet) => {
|
|
3607
3677
|
fileSheet = _new_fileSheet;
|
|
3608
|
-
}, "
|
|
3678
|
+
}, "m53", $scope0_id),
|
|
3609
3679
|
files: shownFiles,
|
|
3610
3680
|
filter: fileFilter,
|
|
3611
3681
|
filterChange: $filterChange,
|
|
@@ -3616,11 +3686,11 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3616
3686
|
scope: scope$1
|
|
3617
3687
|
});
|
|
3618
3688
|
_html("</div>");
|
|
3619
|
-
_script($scope0_id, "
|
|
3620
|
-
_script($scope0_id, "
|
|
3621
|
-
_script($scope0_id, "
|
|
3622
|
-
_script($scope0_id, "
|
|
3623
|
-
_script($scope0_id, "
|
|
3689
|
+
_script($scope0_id, "m59");
|
|
3690
|
+
_script($scope0_id, "m60");
|
|
3691
|
+
_script($scope0_id, "m61");
|
|
3692
|
+
_script($scope0_id, "m62");
|
|
3693
|
+
_script($scope0_id, "m63");
|
|
3624
3694
|
writeScope($scope0_id, {
|
|
3625
3695
|
a6: input.workspaceId,
|
|
3626
3696
|
a7: input.scope,
|