@dylanpiercey/work 0.0.120 → 0.0.121
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/README.md +35 -8
- package/bin/work.mjs +380 -41
- package/dist/_B1lVb01g.js +2 -0
- package/dist/_Bjh5JEm7.js +2 -0
- package/dist/_CfwTkTbL.js +352 -0
- package/dist/{_DEBFGwto.js → _CivNK9fo.js} +22 -20
- package/dist/{_DE2RUdbF.js → _Cr71Xd0d.js} +8 -3
- package/dist/_DJyHc1w-.js +1739 -0
- package/dist/{_BZhGz-eY.js → _DnaZVHJ7.js} +97 -96
- package/dist/_Dpa8WFuv.js +2 -0
- package/dist/index.mjs +4183 -4191
- package/dist/public/assets/{_BrTLGsp82.js → _-zdUyUYM2.js} +1 -1
- package/dist/public/assets/_-zdUyUYM2.js.br +0 -0
- package/dist/public/assets/{_Cvly93xo2.js → _0L2K8sFq2.js} +1 -1
- package/dist/public/assets/_0L2K8sFq2.js.br +0 -0
- package/dist/public/assets/{_CQ-tqbUq.js → _42jdam49.js} +1 -1
- package/dist/public/assets/_42jdam49.js.br +0 -0
- package/dist/public/assets/{_BEOZghNJ2.js → _9dJ8BnyZ2.js} +1 -1
- package/dist/public/assets/_9dJ8BnyZ2.js.br +0 -0
- package/dist/public/assets/{_zJkCtRhb.js → _B03G1Nvs.js} +1 -1
- package/dist/public/assets/_B03G1Nvs.js.br +0 -0
- package/dist/public/assets/{_BLgtdDQm.js → _B0dZ7_qK.js} +1 -1
- package/dist/public/assets/_B0dZ7_qK.js.br +0 -0
- package/dist/public/assets/{_DdnCyOPs.js → _B1VuWiKK.js} +1 -1
- package/dist/public/assets/_B1VuWiKK.js.br +0 -0
- package/dist/public/assets/{_CwtAB8Ju2.js → _B5nrQZIq2.js} +1 -1
- package/dist/public/assets/_B5nrQZIq2.js.br +0 -0
- package/dist/public/assets/{_B_MP9UES.js → _B8ZQ8inF.js} +1 -1
- package/dist/public/assets/_B8ZQ8inF.js.br +0 -0
- package/dist/public/assets/{_DhLWIgCs.js → _B9e51G1K.js} +1 -1
- package/dist/public/assets/_B9e51G1K.js.br +0 -0
- package/dist/public/assets/{_h6HS-Zb_2.js → _BH015W2i2.js} +1 -1
- package/dist/public/assets/_BH015W2i2.js.br +0 -0
- package/dist/public/assets/{_Brws7C1N.js → _BHjcfVXB.js} +6 -6
- package/dist/public/assets/_BHjcfVXB.js.br +0 -0
- package/dist/public/assets/{_BfZMmKaW.js → _BNIilCsC.js} +1 -1
- package/dist/public/assets/_BNIilCsC.js.br +0 -0
- package/dist/public/assets/{_CihMY3_B2.js → _BPgL37mi2.js} +1 -1
- package/dist/public/assets/_BPgL37mi2.js.br +0 -0
- package/dist/public/assets/{_BDRc66NB2.js → _BR3D4nzj2.js} +1 -1
- package/dist/public/assets/_BR3D4nzj2.js.br +0 -0
- package/dist/public/assets/{_BoXfCUcF.js → _BRSJwfZ3.js} +1 -1
- package/dist/public/assets/{_BbE6iGBd.js → _BSFENb4l.js} +1 -1
- package/dist/public/assets/_BSFENb4l.js.br +0 -0
- package/dist/public/assets/{_DBXfsrRd.js → _BSWpz0dK.js} +1 -1
- package/dist/public/assets/_BSWpz0dK.js.br +0 -0
- package/dist/public/assets/{_DZgx_rAt.js → _BUOWar32.js} +1 -1
- package/dist/public/assets/_BUOWar32.js.br +0 -0
- package/dist/public/assets/{_Ces5jihM.js → _BZWlvMSJ.js} +1 -1
- package/dist/public/assets/_BZWlvMSJ.js.br +0 -0
- package/dist/public/assets/{_F8phZWNM2.js → _B_dMglA92.js} +1 -1
- package/dist/public/assets/_B_dMglA92.js.br +0 -0
- package/dist/public/assets/{_N0Ea8Q_R.js → _Beb6Lb1w.js} +1 -1
- package/dist/public/assets/_Beb6Lb1w.js.br +0 -0
- package/dist/public/assets/{_BUmLRB7c2.js → _BjIMoOV-2.js} +1 -1
- package/dist/public/assets/_BjIMoOV-2.js.br +0 -0
- package/dist/public/assets/{_Cv-4N4xQ.js → _BlLuOKRT.js} +1 -1
- package/dist/public/assets/_BlLuOKRT.js.br +0 -0
- package/dist/public/assets/{_BilqQTfw.js → _BlXwius8.js} +1 -1
- package/dist/public/assets/_BlXwius8.js.br +0 -0
- package/dist/public/assets/{_DdYfAoJz.js → _Bmt76eWT.js} +1 -1
- package/dist/public/assets/_Bmt76eWT.js.br +0 -0
- package/dist/public/assets/{_BaiP7ogH.js → _BoS5LU5l.js} +1 -1
- package/dist/public/assets/_BoS5LU5l.js.br +0 -0
- package/dist/public/assets/{_uJTU0UZd2.js → _BsNKabYu2.js} +1 -1
- package/dist/public/assets/_BsNKabYu2.js.br +0 -0
- package/dist/public/assets/{_D2be5yUI.js → _C0OXw3Vy.js} +1 -1
- package/dist/public/assets/_C0OXw3Vy.js.br +0 -0
- package/dist/public/assets/{_CrPK-ZOH2.js → _CBUJNdeq2.js} +1 -1
- package/dist/public/assets/_CBUJNdeq2.js.br +0 -0
- package/dist/public/assets/{_DfpMH3So2.js → _CCNhM32c2.js} +1 -1
- package/dist/public/assets/_CCNhM32c2.js.br +0 -0
- package/dist/public/assets/{_D11ZFURg.js → _CFBaZNUT.js} +1 -1
- package/dist/public/assets/_CFBaZNUT.js.br +0 -0
- package/dist/public/assets/{_BGHYY00K2.js → _CJHqzl--2.js} +1 -1
- package/dist/public/assets/_CJHqzl--2.js.br +0 -0
- package/dist/public/assets/{_BHgE7f-_2.js → _CMGgQ-4H2.js} +1 -1
- package/dist/public/assets/_CMGgQ-4H2.js.br +0 -0
- package/dist/public/assets/{_BzULaZGs.js → _CPX0D-my.js} +1 -1
- package/dist/public/assets/_CPX0D-my.js.br +0 -0
- package/dist/public/assets/{_CeECfdVo2.js → _CRuHDn_O2.js} +1 -1
- package/dist/public/assets/_CRuHDn_O2.js.br +0 -0
- package/dist/public/assets/{_p1VLQxPw.js → _CUOao_Hj.js} +1 -1
- package/dist/public/assets/_CUOao_Hj.js.br +0 -0
- package/dist/public/assets/{_CIio55Q2.js → _CUVw5V4z.js} +1 -1
- package/dist/public/assets/_CUVw5V4z.js.br +0 -0
- package/dist/public/assets/{_CYLlpjQc.js → _CYMGOhCb.js} +1 -1
- package/dist/public/assets/_CYMGOhCb.js.br +0 -0
- package/dist/public/assets/{_BtmFYBHk.js → _CZfap_Dj.js} +1 -1
- package/dist/public/assets/_CZfap_Dj.js.br +0 -0
- package/dist/public/assets/{_DRKLaQtq.js → _CbNmSe5k.js} +1 -1
- package/dist/public/assets/_CbNmSe5k.js.br +0 -0
- package/dist/public/assets/{_8hF31A2G.js → _CdtuhZSc.js} +1 -1
- package/dist/public/assets/_CdtuhZSc.js.br +0 -0
- package/dist/public/assets/{_BPcKgx9L.js → _ClhApln3.js} +1 -1
- package/dist/public/assets/_ClhApln3.js.br +0 -0
- package/dist/public/assets/{_QuFTKxMO2.js → _CvA5IOAW2.js} +1 -1
- package/dist/public/assets/_CvA5IOAW2.js.br +0 -0
- package/dist/public/assets/{_z3QzE4ht2.js → _CwZYmUdt2.js} +1 -1
- package/dist/public/assets/{_CG2uZvAG.js → _CxrcWZPE.js} +1 -1
- package/dist/public/assets/_CxrcWZPE.js.br +0 -0
- package/dist/public/assets/{_Du-i6H8r.js → _D-KjGTSW.js} +24 -21
- package/dist/public/assets/_D-KjGTSW.js.br +0 -0
- package/dist/public/assets/{_Ca811EeR.js → _D4u4SpiK.js} +1 -1
- package/dist/public/assets/_D4u4SpiK.js.br +0 -0
- package/dist/public/assets/{_DiaYv9e1.js → _D6CjH3JN.js} +1 -1
- package/dist/public/assets/_D6CjH3JN.js.br +0 -0
- package/dist/public/assets/{_BCKhXQct2.js → _D7cQLLGK2.js} +1 -1
- package/dist/public/assets/_D7cQLLGK2.js.br +0 -0
- package/dist/public/assets/{_DDag_nXJ.js → _DBoABI85.js} +1 -1
- package/dist/public/assets/_DBoABI85.js.br +0 -0
- package/dist/public/assets/{_CzMjLSTK.js → _DNcd1xtp.js} +1 -1
- package/dist/public/assets/_DNcd1xtp.js.br +0 -0
- package/dist/public/assets/{_BEPt7EWk.js → _DQGTProt.js} +1 -1
- package/dist/public/assets/_DQGTProt.js.br +0 -0
- package/dist/public/assets/{_D8lg2J6H.js → _DSIH6_Li.js} +1 -1
- package/dist/public/assets/_DSIH6_Li.js.br +0 -0
- package/dist/public/assets/{_cS3NYZ_K2.js → _DXHf4WHs2.js} +1 -1
- package/dist/public/assets/_DXHf4WHs2.js.br +0 -0
- package/dist/public/assets/{_0_ngOEbL.js → _D_qDhyn2.js} +1 -1
- package/dist/public/assets/_D_qDhyn2.js.br +0 -0
- package/dist/public/assets/{_BFgJoTOo.js → _DcMfCkmd.js} +1 -1
- package/dist/public/assets/_DcMfCkmd.js.br +0 -0
- package/dist/public/assets/{_CkBv_F0f.js → _DgDEdxEu.js} +1 -1
- package/dist/public/assets/_DgDEdxEu.js.br +0 -0
- package/dist/public/assets/{_dBVoJwVC.js → _DlhDim1D.js} +1 -1
- package/dist/public/assets/_DlhDim1D.js.br +0 -0
- package/dist/public/assets/{_-3OmHyNU.js → _DqLib98x.js} +1 -1
- package/dist/public/assets/_DqLib98x.js.br +0 -0
- package/dist/public/assets/{_fR2ilomn.js → _Ds0Qa0YX.js} +1 -1
- package/dist/public/assets/_Ds0Qa0YX.js.br +0 -0
- package/dist/public/assets/{_CwZCc-fE2.js → _DyUvL09k2.js} +1 -1
- package/dist/public/assets/_DyUvL09k2.js.br +0 -0
- package/dist/public/assets/{_D2xWjoK-2.js → _J6xlcydH2.js} +1 -1
- package/dist/public/assets/_J6xlcydH2.js.br +0 -0
- package/dist/public/assets/{_DkYHMy0q2.js → _MInulccf2.js} +1 -1
- package/dist/public/assets/{_GdcmEEuJ.js → _QMVFINxi.js} +1 -1
- package/dist/public/assets/_QMVFINxi.js.br +0 -0
- package/dist/public/assets/{_BqNoqWIY.js → _S9QQtt68.js} +1 -1
- package/dist/public/assets/_S9QQtt68.js.br +0 -0
- package/dist/public/assets/{_BuF6uiIm.js → _XCJLLGxV.js} +1 -1
- package/dist/public/assets/_XCJLLGxV.js.br +0 -0
- package/dist/public/assets/{_DWctbEWg.js → _Y-bTh0dW.js} +1 -1
- package/dist/public/assets/_Y-bTh0dW.js.br +0 -0
- package/dist/public/assets/{_CJ_9Hl5d.js → _Y8TOk1pR.js} +1 -1
- package/dist/public/assets/_Y8TOk1pR.js.br +0 -0
- package/dist/public/assets/{_cdbANa0O.js → _YetFhXkM.js} +1 -1
- package/dist/public/assets/_YetFhXkM.js.br +0 -0
- package/dist/public/assets/{_CeVHIZWy2.js → _YmJopjX92.js} +1 -1
- package/dist/public/assets/_YmJopjX92.js.br +0 -0
- package/dist/public/assets/{_wc-pkVQS.js → _mbzaOqik.js} +1 -1
- package/dist/public/assets/_mbzaOqik.js.br +0 -0
- package/dist/public/assets/{_FEbRnVo7.js → _rMcfapaa.js} +1 -1
- package/dist/public/assets/_rMcfapaa.js.br +0 -0
- package/dist/public/assets/{_BIsQjQ872.js → _rRtbbfKJ2.js} +1 -1
- package/dist/public/assets/_rRtbbfKJ2.js.br +0 -0
- package/dist/public/assets/{_D4V7vTBe.js → _sSWgnHeU.js} +1 -1
- package/dist/public/assets/_sSWgnHeU.js.br +0 -0
- package/dist/public/assets/{_B6bSumz1.js → _xOeYy_3v.js} +1 -1
- package/dist/public/assets/_xOeYy_3v.js.br +0 -0
- package/dist/public/assets/app-page-BWf0w6W9.css +1 -0
- package/dist/public/assets/app-page-BWf0w6W9.css.br +0 -0
- package/dist/public/assets/diff-view-BZaYYEDK.css +1 -0
- package/dist/public/assets/diff-view-BZaYYEDK.css.br +0 -0
- package/dist/public/assets/new-K-7z0qE8.js +1 -0
- package/dist/public/assets/settings-K-7z0qE8.js +1 -0
- package/dist/public/assets/w-K-7z0qE8.js +1 -0
- package/dist/public/assets/w._-D5d4klUv.js +1 -0
- package/dist/public/assets/w._-K-7z0qE8.js +1 -0
- package/lib/review/markdown.mjs +6 -2
- package/lib/setup/catalog.d.mts +3 -1
- package/lib/setup/catalog.mjs +11 -2
- package/lib/setup/doctor.mjs +96 -20
- package/lib/setup/install.d.mts +9 -3
- package/lib/setup/install.mjs +68 -39
- package/lib/share/manifest.d.mts +27 -0
- package/lib/share/manifest.mjs +144 -0
- package/package.json +6 -2
- package/scripts/migrate.mjs +101 -30
- package/dist/_BIDn_RW1.js +0 -2
- package/dist/public/assets/_-3OmHyNU.js.br +0 -0
- package/dist/public/assets/_0_ngOEbL.js.br +0 -0
- package/dist/public/assets/_8hF31A2G.js.br +0 -0
- package/dist/public/assets/_B6bSumz1.js.br +0 -0
- package/dist/public/assets/_BCKhXQct2.js.br +0 -0
- package/dist/public/assets/_BDRc66NB2.js.br +0 -0
- package/dist/public/assets/_BEOZghNJ2.js.br +0 -0
- package/dist/public/assets/_BEPt7EWk.js.br +0 -0
- package/dist/public/assets/_BFgJoTOo.js.br +0 -0
- package/dist/public/assets/_BGHYY00K2.js.br +0 -0
- package/dist/public/assets/_BHgE7f-_2.js.br +0 -0
- package/dist/public/assets/_BIsQjQ872.js.br +0 -0
- package/dist/public/assets/_BLgtdDQm.js.br +0 -0
- package/dist/public/assets/_BPcKgx9L.js.br +0 -0
- package/dist/public/assets/_BUmLRB7c2.js.br +0 -0
- package/dist/public/assets/_B_MP9UES.js.br +0 -0
- package/dist/public/assets/_BaiP7ogH.js.br +0 -0
- package/dist/public/assets/_BbE6iGBd.js.br +0 -0
- package/dist/public/assets/_BfZMmKaW.js.br +0 -0
- package/dist/public/assets/_BilqQTfw.js.br +0 -0
- package/dist/public/assets/_BqNoqWIY.js.br +0 -0
- package/dist/public/assets/_BrTLGsp82.js.br +0 -0
- package/dist/public/assets/_Brws7C1N.js.br +0 -0
- package/dist/public/assets/_BtmFYBHk.js.br +0 -0
- package/dist/public/assets/_BuF6uiIm.js.br +0 -0
- package/dist/public/assets/_BzULaZGs.js.br +0 -0
- package/dist/public/assets/_CG2uZvAG.js.br +0 -0
- package/dist/public/assets/_CIio55Q2.js.br +0 -0
- package/dist/public/assets/_CJ_9Hl5d.js.br +0 -0
- package/dist/public/assets/_CQ-tqbUq.js.br +0 -0
- package/dist/public/assets/_CYLlpjQc.js.br +0 -0
- package/dist/public/assets/_Ca811EeR.js.br +0 -0
- package/dist/public/assets/_CeECfdVo2.js.br +0 -0
- package/dist/public/assets/_CeVHIZWy2.js.br +0 -0
- package/dist/public/assets/_Ces5jihM.js.br +0 -7
- package/dist/public/assets/_CihMY3_B2.js.br +0 -0
- package/dist/public/assets/_CkBv_F0f.js.br +0 -0
- package/dist/public/assets/_CrPK-ZOH2.js.br +0 -0
- package/dist/public/assets/_Cv-4N4xQ.js.br +0 -0
- package/dist/public/assets/_Cvly93xo2.js.br +0 -0
- package/dist/public/assets/_CwZCc-fE2.js.br +0 -0
- package/dist/public/assets/_CwtAB8Ju2.js.br +0 -0
- package/dist/public/assets/_CzMjLSTK.js.br +0 -0
- package/dist/public/assets/_D11ZFURg.js.br +0 -0
- package/dist/public/assets/_D2be5yUI.js.br +0 -0
- package/dist/public/assets/_D2xWjoK-2.js.br +0 -0
- package/dist/public/assets/_D4V7vTBe.js.br +0 -0
- package/dist/public/assets/_D8lg2J6H.js.br +0 -0
- package/dist/public/assets/_DBXfsrRd.js.br +0 -0
- package/dist/public/assets/_DDag_nXJ.js.br +0 -0
- package/dist/public/assets/_DRKLaQtq.js.br +0 -0
- package/dist/public/assets/_DWctbEWg.js.br +0 -3
- package/dist/public/assets/_DZgx_rAt.js.br +0 -0
- package/dist/public/assets/_DdYfAoJz.js.br +0 -0
- package/dist/public/assets/_DdnCyOPs.js.br +0 -0
- package/dist/public/assets/_DfpMH3So2.js.br +0 -0
- package/dist/public/assets/_DhLWIgCs.js.br +0 -0
- package/dist/public/assets/_DiaYv9e1.js.br +0 -0
- package/dist/public/assets/_Du-i6H8r.js.br +0 -0
- package/dist/public/assets/_F8phZWNM2.js.br +0 -0
- package/dist/public/assets/_FEbRnVo7.js.br +0 -0
- package/dist/public/assets/_GdcmEEuJ.js.br +0 -0
- package/dist/public/assets/_N0Ea8Q_R.js.br +0 -0
- package/dist/public/assets/_QuFTKxMO2.js.br +0 -0
- package/dist/public/assets/_cS3NYZ_K2.js.br +0 -0
- package/dist/public/assets/_cdbANa0O.js.br +0 -0
- package/dist/public/assets/_dBVoJwVC.js.br +0 -0
- package/dist/public/assets/_fR2ilomn.js.br +0 -0
- package/dist/public/assets/_h6HS-Zb_2.js.br +0 -0
- package/dist/public/assets/_p1VLQxPw.js.br +0 -0
- package/dist/public/assets/_uJTU0UZd2.js.br +0 -0
- package/dist/public/assets/_wc-pkVQS.js.br +0 -0
- package/dist/public/assets/_zJkCtRhb.js.br +0 -0
- package/dist/public/assets/app-page-DgsAA8Om.css +0 -1
- package/dist/public/assets/app-page-DgsAA8Om.css.br +0 -0
- package/dist/public/assets/diff-view-BqwTpf5k.css +0 -1
- package/dist/public/assets/diff-view-BqwTpf5k.css.br +0 -0
- package/dist/public/assets/new-cBa61wMi.js +0 -1
- package/dist/public/assets/settings-cBa61wMi.js +0 -1
- package/dist/public/assets/w-cBa61wMi.js +0 -1
- package/dist/public/assets/w._-B9llVTHr.js +0 -1
- package/dist/public/assets/w._-cBa61wMi.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ct as
|
|
1
|
+
import { $ as _attr_style, At as _subscribe, Ct as _scope_reason, D as toast_default, Dt as _serialize_guard, Et as _sep, G as _attr_class, H as tone, I as iconBtnLg, J as _attr_input_value, K as _attr_details_or_dialog_open, L as iconBtnRow, O as icon_xmark_default, Ot as _serialize_if, Q as _attr_select_value, R as iconBtnXs, Rt as writeScope, St as _scope_id, Tt as _script, W as _attr, X as _attr_option_value, _ as diffScope, a as fuzzy, b as setDiffPos, bt as _resume, c as icon_arrow_up_default, ct as _el_resume, d as icon_refresh_default, dt as _existing_scope, g as diffPos, gt as _html, h as diffFilter, i as icon_sidebar_default, it as _content_resume, j as repoLabel, jt as _template, k as icon_base_default, kt as _set_serialize_reason, l as icon_chevron_right_default, lt as _escape, n as findIconBtn, ot as _el, pt as _for_of, r as findInput, s as icon_search_default, st as _el_read_error, t as icon_arrow_down_default, u as icon_back_default, v as diffTreeOpen, vt as _if, wt as _scope_with_id, x as setDiffScope, xt as _resume_branch, yt as _peek_scope_id } from "./_CivNK9fo.js";
|
|
2
2
|
//#region src/client/router.ts
|
|
3
3
|
function urlFor(r) {
|
|
4
4
|
if (r.view === "settings") return "/settings";
|
|
@@ -242,8 +242,8 @@ function treeDirs(files) {
|
|
|
242
242
|
};
|
|
243
243
|
return build(root, "", "", -1);
|
|
244
244
|
}
|
|
245
|
-
var treeToggle = "
|
|
246
|
-
var scope = "
|
|
245
|
+
var treeToggle = "_e0 _Z _j";
|
|
246
|
+
var scope = "_fd _6";
|
|
247
247
|
//#endregion
|
|
248
248
|
//#region src/tags/diff-send.marko
|
|
249
249
|
var diff_send_default = _template("j", (input) => {
|
|
@@ -253,7 +253,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
253
253
|
let sendTarget = null;
|
|
254
254
|
const sessions = input.sessions || [];
|
|
255
255
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
256
|
-
_html(`<span${_attr_class("
|
|
256
|
+
_html(`<span${_attr_class("_gR")}><button type=button${_attr_class("_o")} title="Copy comments as markdown">Copy${_el_resume($scope0_id, "c")}</button>${_el_resume($scope0_id, "b")}`);
|
|
257
257
|
_if(() => {
|
|
258
258
|
if (sessions.length === 1) {
|
|
259
259
|
const $scope1_id = _scope_id();
|
|
@@ -263,11 +263,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
263
263
|
return 0;
|
|
264
264
|
} else if (sessions.length) {
|
|
265
265
|
const $scope2_id = _scope_id();
|
|
266
|
-
_html(`<span${_attr_class("
|
|
266
|
+
_html(`<span${_attr_class("_gS")}><button type=button${_attr_class(["_p", "_gT"])}${_attr("disabled", sending)}>Send to${_el_resume($scope2_id, "c")}</button>${_el_resume($scope2_id, "b")}`);
|
|
267
267
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
268
268
|
sendTarget = _new_sendTarget;
|
|
269
269
|
}, "j0", $scope2_id), () => {
|
|
270
|
-
_html(`<select${_attr_class("
|
|
270
|
+
_html(`<select${_attr_class("_gU")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
271
271
|
_for_of(sessions, (s) => {
|
|
272
272
|
const $scope3_id = _scope_id();
|
|
273
273
|
_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)}`);
|
|
@@ -1849,9 +1849,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
1849
1849
|
el.select();
|
|
1850
1850
|
}, 0);
|
|
1851
1851
|
}, "i5", $scope0_id);
|
|
1852
|
-
_html(`<div${_attr_class(["
|
|
1852
|
+
_html(`<div${_attr_class(["_f8", !open && "_f7"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1853
1853
|
type(v);
|
|
1854
|
-
}, "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("
|
|
1854
|
+
}, "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("_ga")}>${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"}>`);
|
|
1855
1855
|
icon_arrow_up_default({ size: 14 });
|
|
1856
1856
|
_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"}>`);
|
|
1857
1857
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -1952,11 +1952,11 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
1952
1952
|
}
|
|
1953
1953
|
return shortHeadFallback(head);
|
|
1954
1954
|
}
|
|
1955
|
-
var repoWorktree = "
|
|
1956
|
-
var repoTitle = "
|
|
1955
|
+
var repoWorktree = "_hA _w";
|
|
1956
|
+
var repoTitle = "_hG _v";
|
|
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("R", (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("Q", (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("U", (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({
|
|
@@ -1990,7 +1990,7 @@ var icon_comment_default = _template("T", (input) => {
|
|
|
1990
1990
|
});
|
|
1991
1991
|
//#endregion
|
|
1992
1992
|
//#region src/tags/icons/icon-compress-lines.marko
|
|
1993
|
-
var icon_compress_lines_default = _template("
|
|
1993
|
+
var icon_compress_lines_default = _template("V", (input) => {
|
|
1994
1994
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1995
1995
|
const $scope0_id = _scope_id();
|
|
1996
1996
|
_set_serialize_reason({
|
|
@@ -2007,7 +2007,7 @@ var icon_compress_lines_default = _template("U", (input) => {
|
|
|
2007
2007
|
});
|
|
2008
2008
|
//#endregion
|
|
2009
2009
|
//#region src/tags/icons/icon-expand-lines.marko
|
|
2010
|
-
var icon_expand_lines_default = _template("
|
|
2010
|
+
var icon_expand_lines_default = _template("$", (input) => {
|
|
2011
2011
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
2012
2012
|
const $scope0_id = _scope_id();
|
|
2013
2013
|
_set_serialize_reason({
|
|
@@ -2027,7 +2027,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
2027
2027
|
_scope_reason();
|
|
2028
2028
|
const $scope0_id = _scope_id();
|
|
2029
2029
|
_el($scope0_id, "h0");
|
|
2030
|
-
_html(`<div${_attr_class(["
|
|
2030
|
+
_html(`<div${_attr_class(["_h3", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
2031
2031
|
_script($scope0_id, "h1");
|
|
2032
2032
|
writeScope($scope0_id, {
|
|
2033
2033
|
e: input.file,
|
|
@@ -2048,7 +2048,7 @@ var diff_file_default = _template("h", (input) => {
|
|
|
2048
2048
|
});
|
|
2049
2049
|
//#endregion
|
|
2050
2050
|
//#region src/tags/review-section.marko
|
|
2051
|
-
var review_section_default = _template("
|
|
2051
|
+
var review_section_default = _template("v", (input) => {
|
|
2052
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);
|
|
2053
2053
|
const $scope0_id = _scope_id();
|
|
2054
2054
|
const $wholeFiles__closures = /* @__PURE__ */ new Set();
|
|
@@ -2089,14 +2089,14 @@ var review_section_default = _template("u", (input) => {
|
|
|
2089
2089
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
2090
2090
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
2091
2091
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
2092
|
-
_html(`<section${_attr_class("
|
|
2092
|
+
_html(`<section${_attr_class("_hw")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_hx", { ["_hy"]: input.collapsible && input.collapsed }])}>`);
|
|
2093
2093
|
_if(() => {
|
|
2094
2094
|
if (input.collapsible) {
|
|
2095
2095
|
const $scope1_id = _scope_id();
|
|
2096
|
-
_html(`<button type=button${_attr_class("
|
|
2097
|
-
"
|
|
2098
|
-
!input.collapsed && "
|
|
2099
|
-
input.expanding && "
|
|
2096
|
+
_html(`<button type=button${_attr_class("_hz")} 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
|
+
"_hT",
|
|
2098
|
+
!input.collapsed && "_hU",
|
|
2099
|
+
input.expanding && "_hV"
|
|
2100
2100
|
])} aria-hidden=true>`);
|
|
2101
2101
|
_if(() => {
|
|
2102
2102
|
if (input.collapsed) {
|
|
@@ -2112,7 +2112,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2112
2112
|
}
|
|
2113
2113
|
}, $scope1_id, "b", $sg__input_collapsed, _serialize_guard($scope0_reason, 10), $sg__input_collapsed, "</span>", 1);
|
|
2114
2114
|
_html(`<span${_attr_class(repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope1_id, "d", $sg__input_repo)}</span></button>${_el_resume($scope1_id, "a")}`);
|
|
2115
|
-
_script($scope1_id, "
|
|
2115
|
+
_script($scope1_id, "v9");
|
|
2116
2116
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
2117
2117
|
return 0;
|
|
2118
2118
|
} else {
|
|
@@ -2135,14 +2135,14 @@ var review_section_default = _template("u", (input) => {
|
|
|
2135
2135
|
return 1;
|
|
2136
2136
|
}
|
|
2137
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);
|
|
2138
|
-
_html(`<span${_attr_class("
|
|
2138
|
+
_html(`<span${_attr_class("_hH")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_H", "_hI"])}>${_escape(compare$1.base)}${_el_resume($scope0_id, "g", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_J", "_hK"])} aria-hidden=true>vs</span><span${_attr_class(["_H", "_hJ"])}>${_escape(compare$1.head)}${_el_resume($scope0_id, "j", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2139
2139
|
_if(() => {
|
|
2140
2140
|
if (compare$1.topic) {
|
|
2141
2141
|
const $scope16_id = _scope_id();
|
|
2142
2142
|
_html(`<span${_attr_class([
|
|
2143
2143
|
"_H",
|
|
2144
2144
|
tone.accent,
|
|
2145
|
-
"
|
|
2145
|
+
"_hL"
|
|
2146
2146
|
])}>${_escape(compare$1.topic)}${_el_resume($scope16_id, "b", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2147
2147
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
2148
2148
|
return 0;
|
|
@@ -2155,9 +2155,9 @@ var review_section_default = _template("u", (input) => {
|
|
|
2155
2155
|
_html(`<button type=button${_attr_class([
|
|
2156
2156
|
"_H",
|
|
2157
2157
|
tone.warn,
|
|
2158
|
-
"
|
|
2158
|
+
"_hM"
|
|
2159
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")}`);
|
|
2160
|
-
_script($scope2_id, "
|
|
2160
|
+
_script($scope2_id, "v10");
|
|
2161
2161
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
2162
2162
|
return 0;
|
|
2163
2163
|
}
|
|
@@ -2165,7 +2165,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2165
2165
|
_if(() => {
|
|
2166
2166
|
if (repo.contained && input.files.length) {
|
|
2167
2167
|
const $scope13_id = _scope_id();
|
|
2168
|
-
_html(`<span${_attr_class(["_H", "
|
|
2168
|
+
_html(`<span${_attr_class(["_H", "_hM"])}${_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)}`);
|
|
2169
2169
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
2170
2170
|
return 0;
|
|
2171
2171
|
}
|
|
@@ -2173,16 +2173,16 @@ var review_section_default = _template("u", (input) => {
|
|
|
2173
2173
|
_if(() => {
|
|
2174
2174
|
if (input.localDiffers) {
|
|
2175
2175
|
const $scope3_id = _scope_id();
|
|
2176
|
-
_html(`<span${_attr_class(["_H", "
|
|
2176
|
+
_html(`<span${_attr_class(["_H", "_hM"])}${_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)}`);
|
|
2177
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) });
|
|
2178
2178
|
return 0;
|
|
2179
2179
|
}
|
|
2180
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("
|
|
2181
|
+
_html(`<span${_attr_class("_hB")}><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>`);
|
|
2182
2182
|
_if(() => {
|
|
2183
2183
|
if (stats.additions || stats.deletions) {
|
|
2184
2184
|
const $scope15_id = _scope_id();
|
|
2185
|
-
_html(`<span${_attr_class("
|
|
2185
|
+
_html(`<span${_attr_class("_hC")}>+${_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("_hD")}>−${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.deletions)}${_el_resume($scope15_id, "d", $sg__input_files__OR__input_shownKeys)}</span>`);
|
|
2186
2186
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
2187
2187
|
return 0;
|
|
2188
2188
|
}
|
|
@@ -2190,8 +2190,8 @@ var review_section_default = _template("u", (input) => {
|
|
|
2190
2190
|
_if(() => {
|
|
2191
2191
|
if (newCount || input.onlyNew) {
|
|
2192
2192
|
const $scope4_id = _scope_id();
|
|
2193
|
-
_html(`<button type=button${_attr_class(["
|
|
2194
|
-
_script($scope4_id, "
|
|
2193
|
+
_html(`<button type=button${_attr_class(["_hF", { ["_hE"]: 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, "v11");
|
|
2195
2195
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
2196
2196
|
return 0;
|
|
2197
2197
|
}
|
|
@@ -2200,7 +2200,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2200
2200
|
_if(() => {
|
|
2201
2201
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
2202
2202
|
const $scope5_id = _scope_id();
|
|
2203
|
-
_html(`<div${_attr_class("
|
|
2203
|
+
_html(`<div${_attr_class("_hO")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
2204
2204
|
_for_of(input.files, (file$1) => {
|
|
2205
2205
|
const $scope6_id = _scope_id();
|
|
2206
2206
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -2210,11 +2210,11 @@ var review_section_default = _template("u", (input) => {
|
|
|
2210
2210
|
const expanded = !input.collapsedFiles.has(file$1.key);
|
|
2211
2211
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
2212
2212
|
input.onFileToggle(file$1.key, open);
|
|
2213
|
-
}, "
|
|
2213
|
+
}, "v0", $scope6_id))}${_attr_class(["_hP", input.findHit?.key === file$1.key && "_hu"])}${_attr("data-key", file$1.key)}${_attr("hidden", !input.shownKeys.has(file$1.key))}><summary${_attr_class("_hR")}><span${_attr_class("_hW")}${_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(["_hX", input.findHit?.key === file$1.key && input.findHit.line < 1 && "_hv"])}${_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))}`);
|
|
2214
2214
|
_if(() => {
|
|
2215
2215
|
if (file$1.changedSince) {
|
|
2216
2216
|
const $scope20_id = _scope_id();
|
|
2217
|
-
_html(`<span${_attr_class(["_y", "
|
|
2217
|
+
_html(`<span${_attr_class(["_y", "_hN"])} title="Changed since your last visit"></span>`);
|
|
2218
2218
|
$si__input_files && writeScope($scope20_id, {});
|
|
2219
2219
|
return 0;
|
|
2220
2220
|
}
|
|
@@ -2234,8 +2234,8 @@ var review_section_default = _template("u", (input) => {
|
|
|
2234
2234
|
const $scope14_id = _scope_id();
|
|
2235
2235
|
_html(`<button type=button${_attr_class([
|
|
2236
2236
|
iconBtnXs,
|
|
2237
|
-
"
|
|
2238
|
-
{ ["
|
|
2237
|
+
"_hZ",
|
|
2238
|
+
{ ["_h0"]: wholeFiles.has(file$1.key) }
|
|
2239
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
2240
|
_if(() => {
|
|
2241
2241
|
if (wholeFiles.has(file$1.key)) {
|
|
@@ -2250,7 +2250,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2250
2250
|
return 1;
|
|
2251
2251
|
}
|
|
2252
2252
|
}, $scope14_id, "a", 1, 1, 1, "</button>", 1);
|
|
2253
|
-
_script($scope14_id, "
|
|
2253
|
+
_script($scope14_id, "v12");
|
|
2254
2254
|
_subscribe($wholeFiles__closures, writeScope($scope14_id, {
|
|
2255
2255
|
_: _scope_with_id($scope6_id),
|
|
2256
2256
|
Cd1: 1
|
|
@@ -2262,17 +2262,17 @@ var review_section_default = _template("u", (input) => {
|
|
|
2262
2262
|
_if(() => {
|
|
2263
2263
|
if (file$1.binary) {
|
|
2264
2264
|
const $scope23_id = _scope_id();
|
|
2265
|
-
_html(`<p${_attr_class(["
|
|
2265
|
+
_html(`<p${_attr_class(["_hY", "_hQ"])}>binary file</p>`);
|
|
2266
2266
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
2267
2267
|
return 0;
|
|
2268
2268
|
} else if (file$1.tooLarge) {
|
|
2269
2269
|
const $scope24_id = _scope_id();
|
|
2270
|
-
_html(`<p${_attr_class(["
|
|
2270
|
+
_html(`<p${_attr_class(["_hY", "_hQ"])}>file too large to display</p>`);
|
|
2271
2271
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
2272
2272
|
return 1;
|
|
2273
2273
|
} else if (file$1.old == null && file$1.new == null) {
|
|
2274
2274
|
const $scope25_id = _scope_id();
|
|
2275
|
-
_html(`<p${_attr_class(["
|
|
2275
|
+
_html(`<p${_attr_class(["_hY", "_hQ"])}>file could not be read</p>`);
|
|
2276
2276
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
2277
2277
|
return 2;
|
|
2278
2278
|
} else if (expanded) {
|
|
@@ -2282,15 +2282,15 @@ var review_section_default = _template("u", (input) => {
|
|
|
2282
2282
|
_if(() => {
|
|
2283
2283
|
if (!forceNear) {
|
|
2284
2284
|
const $scope8_id = _scope_id();
|
|
2285
|
-
_html(`<div${_attr_class(["
|
|
2286
|
-
_script($scope8_id, "
|
|
2285
|
+
_html(`<div${_attr_class(["_hS", "_hQ"])}></div>${_el_resume($scope8_id, "a")}`);
|
|
2286
|
+
_script($scope8_id, "v13");
|
|
2287
2287
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
2288
2288
|
return 0;
|
|
2289
2289
|
} else {
|
|
2290
2290
|
const $scope9_id = _scope_id();
|
|
2291
2291
|
const $childScope = _peek_scope_id();
|
|
2292
2292
|
diff_file_default({
|
|
2293
|
-
class: "
|
|
2293
|
+
class: "_hQ",
|
|
2294
2294
|
file: file$1,
|
|
2295
2295
|
comments: fileComments,
|
|
2296
2296
|
draft: input.draft && input.draft.key === file$1.key ? input.draft : null,
|
|
@@ -2298,28 +2298,28 @@ var review_section_default = _template("u", (input) => {
|
|
|
2298
2298
|
wholeFile: wholeFiles.has(file$1.key),
|
|
2299
2299
|
onSelect: _resume(function(range) {
|
|
2300
2300
|
input.onSelect(file$1, range);
|
|
2301
|
-
}, "
|
|
2301
|
+
}, "v1", $scope9_id),
|
|
2302
2302
|
onSaveComment: _resume(function(text) {
|
|
2303
2303
|
input.onSaveComment(file$1, text);
|
|
2304
|
-
}, "
|
|
2304
|
+
}, "v2", $scope9_id),
|
|
2305
2305
|
onSendDraft: _resume(function(text, sessionId) {
|
|
2306
2306
|
input.onSendDraft(file$1, text, sessionId);
|
|
2307
|
-
}, "
|
|
2307
|
+
}, "v3", $scope9_id),
|
|
2308
2308
|
onCancelDraft: _resume(function() {
|
|
2309
2309
|
input.onCancelDraft();
|
|
2310
|
-
}, "
|
|
2310
|
+
}, "v4", $scope9_id),
|
|
2311
2311
|
onDeleteComment: _resume(function(id) {
|
|
2312
2312
|
input.onDeleteComment(id);
|
|
2313
|
-
}, "
|
|
2313
|
+
}, "v5", $scope9_id),
|
|
2314
2314
|
onEditComment: _resume(function(id, text) {
|
|
2315
2315
|
input.onEditComment(id, text);
|
|
2316
|
-
}, "
|
|
2316
|
+
}, "v6", $scope9_id),
|
|
2317
2317
|
onSendComment: _resume(function(id, sessionId) {
|
|
2318
2318
|
input.onSendComment(id, sessionId);
|
|
2319
|
-
}, "
|
|
2319
|
+
}, "v7", $scope9_id),
|
|
2320
2320
|
onError: _resume(function(message) {
|
|
2321
2321
|
input.onError(message);
|
|
2322
|
-
}, "
|
|
2322
|
+
}, "v8", $scope9_id)
|
|
2323
2323
|
});
|
|
2324
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) })))))))))))))));
|
|
2325
2325
|
return 1;
|
|
@@ -2335,7 +2335,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2335
2335
|
}
|
|
2336
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);
|
|
2337
2337
|
_html(`</details>${_el_resume($scope6_id, "a")}`);
|
|
2338
|
-
_script($scope6_id, "
|
|
2338
|
+
_script($scope6_id, "v14");
|
|
2339
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, {
|
|
2340
2340
|
l: file$1,
|
|
2341
2341
|
m: file$1?.key,
|
|
@@ -2434,7 +2434,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2434
2434
|
});
|
|
2435
2435
|
_resume_branch($scope0_id);
|
|
2436
2436
|
});
|
|
2437
|
-
var fileFilter = "
|
|
2437
|
+
var fileFilter = "_h2 _l";
|
|
2438
2438
|
//#endregion
|
|
2439
2439
|
//#region src/tags/file-filter.marko
|
|
2440
2440
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -2464,7 +2464,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
2464
2464
|
pending = v;
|
|
2465
2465
|
box.timer = setTimeout(flush, 150);
|
|
2466
2466
|
}, "n2", $scope0_id);
|
|
2467
|
-
_html(`<div${_attr_class("
|
|
2467
|
+
_html(`<div${_attr_class("_h1")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
2468
2468
|
type(v);
|
|
2469
2469
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
2470
2470
|
_script($scope0_id, "n3");
|
|
@@ -2497,7 +2497,7 @@ var $content = (input) => {
|
|
|
2497
2497
|
_for_of(dir.dirs, (child) => {
|
|
2498
2498
|
const $scope1_id = _scope_id();
|
|
2499
2499
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
2500
|
-
_html(`<div${_attr_class("
|
|
2500
|
+
_html(`<div${_attr_class("_g3")}><button type=button${_attr_class(["_g4", { ["_gV"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_ha")}>`);
|
|
2501
2501
|
_if(() => {
|
|
2502
2502
|
if (shut) {
|
|
2503
2503
|
const $scope4_id = _scope_id();
|
|
@@ -2511,7 +2511,7 @@ var $content = (input) => {
|
|
|
2511
2511
|
return 1;
|
|
2512
2512
|
}
|
|
2513
2513
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
2514
|
-
_html(`<span${_attr_class("
|
|
2514
|
+
_html(`<span${_attr_class("_g5")}>${_escape(child.label)}${_el_resume($scope1_id, "e", $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2515
2515
|
_if(() => {
|
|
2516
2516
|
if (!shut) {
|
|
2517
2517
|
const $scope2_id = _scope_id();
|
|
@@ -2558,11 +2558,11 @@ var $content = (input) => {
|
|
|
2558
2558
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
2559
2559
|
_for_of(dir.files, ({ file, name }) => {
|
|
2560
2560
|
const $scope3_id = _scope_id();
|
|
2561
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
2561
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_g7", { ["_g6"]: 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("_hb")}${_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("_g8")}>${_escape(name)}${_el_resume($scope3_id, "e", $sg__input_dir)}</span>`);
|
|
2562
2562
|
_if(() => {
|
|
2563
2563
|
if (input.newKeys.has(file.key)) {
|
|
2564
2564
|
const $scope6_id = _scope_id();
|
|
2565
|
-
_html(`<span${_attr_class(["_y", "
|
|
2565
|
+
_html(`<span${_attr_class(["_y", "_g9"])} title="Changed since your last visit"></span>`);
|
|
2566
2566
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2567
2567
|
return 0;
|
|
2568
2568
|
}
|
|
@@ -2570,7 +2570,7 @@ var $content = (input) => {
|
|
|
2570
2570
|
_if(() => {
|
|
2571
2571
|
if (input.commentKeys.has(file.key)) {
|
|
2572
2572
|
const $scope7_id = _scope_id();
|
|
2573
|
-
_html(`<span${_attr_class("
|
|
2573
|
+
_html(`<span${_attr_class("_g_")}>`);
|
|
2574
2574
|
icon_comment_default({ size: 12 });
|
|
2575
2575
|
_html("</span>");
|
|
2576
2576
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -2628,7 +2628,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2628
2628
|
scope: input.scope ?? null,
|
|
2629
2629
|
file: key
|
|
2630
2630
|
}), "l0", $scope0_id);
|
|
2631
|
-
_html(`<aside${_attr_class(["
|
|
2631
|
+
_html(`<aside${_attr_class(["_gW", { ["_gV"]: input.open === false }])}><div${_attr_class("_gX")}>`);
|
|
2632
2632
|
_set_serialize_reason(2);
|
|
2633
2633
|
const $childScope = _peek_scope_id();
|
|
2634
2634
|
file_filter_default({
|
|
@@ -2637,18 +2637,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2637
2637
|
filter = _new_filter;
|
|
2638
2638
|
}, "l1", $scope0_id)
|
|
2639
2639
|
});
|
|
2640
|
-
_html(`</div><div${_attr_class("
|
|
2640
|
+
_html(`</div><div${_attr_class("_gY")}>`);
|
|
2641
2641
|
_if(() => {
|
|
2642
2642
|
if (!input.sections.length && filter) {
|
|
2643
2643
|
const $scope3_id = _scope_id();
|
|
2644
|
-
_html(`<p${_attr_class("
|
|
2644
|
+
_html(`<p${_attr_class("_gZ")}>No files match.</p>`);
|
|
2645
2645
|
writeScope($scope3_id, {});
|
|
2646
2646
|
return 0;
|
|
2647
2647
|
}
|
|
2648
2648
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
2649
2649
|
_for_of(input.sections, (section) => {
|
|
2650
2650
|
const $scope1_id = _scope_id();
|
|
2651
|
-
_html(`<div${_attr_class("
|
|
2651
|
+
_html(`<div${_attr_class("_g0")}><button type=button${_attr_class(["_g1", { ["_gV"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_ha")}>`);
|
|
2652
2652
|
_if(() => {
|
|
2653
2653
|
if (collapsedRepos.has(section.id)) {
|
|
2654
2654
|
const $scope4_id = _scope_id();
|
|
@@ -2662,12 +2662,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2662
2662
|
return 1;
|
|
2663
2663
|
}
|
|
2664
2664
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
2665
|
-
_html(`<span${_attr_class("
|
|
2665
|
+
_html(`<span${_attr_class("_g5")}>${_escape(section.label)}${_el_resume($scope1_id, "e", $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2666
2666
|
_if(() => {
|
|
2667
2667
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
2668
2668
|
const $scope2_id = _scope_id();
|
|
2669
2669
|
const root = treeDirs(section.files);
|
|
2670
|
-
_html(`<div${_attr_class("
|
|
2670
|
+
_html(`<div${_attr_class("_g2")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
2671
2671
|
_set_serialize_reason(1);
|
|
2672
2672
|
const $childScope2 = _peek_scope_id();
|
|
2673
2673
|
diff_tree_dir_default({
|
|
@@ -2792,9 +2792,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2792
2792
|
_if(() => {
|
|
2793
2793
|
if (open) {
|
|
2794
2794
|
const $scope1_id = _scope_id();
|
|
2795
|
-
_html(`<div${_attr_class("
|
|
2795
|
+
_html(`<div${_attr_class("_he")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_hf")} role=dialog aria-label="Jump to file"><div${_attr_class("_hg")}><strong${_attr_class("_hd")}>Files</strong><span${_attr_class("_hh")}>${_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, "_hc"])} title=Close aria-label=Close>`);
|
|
2796
2796
|
icon_xmark_default({ size: 16 });
|
|
2797
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
2797
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_hp")}>`);
|
|
2798
2798
|
_set_serialize_reason(2);
|
|
2799
2799
|
const $childScope = _peek_scope_id();
|
|
2800
2800
|
file_filter_default({
|
|
@@ -2803,28 +2803,28 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2803
2803
|
filter = _new_filter;
|
|
2804
2804
|
}, "g1", $scope1_id)
|
|
2805
2805
|
});
|
|
2806
|
-
_html(`</div><div${_attr_class("
|
|
2806
|
+
_html(`</div><div${_attr_class("_hi")}>`);
|
|
2807
2807
|
_for_of(groups, (group) => {
|
|
2808
2808
|
const $scope2_id = _scope_id();
|
|
2809
|
-
_html(`<div${_attr_class("
|
|
2809
|
+
_html(`<div${_attr_class("_hj")}><div${_attr_class("_hk")}>${_escape(group.repo)}${_el_resume($scope2_id, "c", $sg__input_files)}</div>`);
|
|
2810
2810
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
2811
2811
|
const $scope3_id = _scope_id();
|
|
2812
|
-
_html(`<div${_attr_class("
|
|
2812
|
+
_html(`<div${_attr_class("_hl")}>`);
|
|
2813
2813
|
_if(() => {
|
|
2814
2814
|
if (dir) {
|
|
2815
2815
|
const $scope5_id = _scope_id();
|
|
2816
|
-
_html(`<div${_attr_class("
|
|
2816
|
+
_html(`<div${_attr_class("_hn")}${_attr("title", dir)}><bdi>${_escape(dir)}${_el_resume($scope5_id, "b", $sg__input_files)}/</bdi></div>${_el_resume($scope5_id, "a", $sg__input_files)}`);
|
|
2817
2817
|
$si__input_files && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
2818
2818
|
return 0;
|
|
2819
2819
|
}
|
|
2820
2820
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
2821
2821
|
_for_of(files, ({ file, name }) => {
|
|
2822
2822
|
const $scope4_id = _scope_id();
|
|
2823
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
2823
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_hm", "_w"])}><span${_attr_class("_ht")}${_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("_ho")}><bdi>${_escape(name)}${_el_resume($scope4_id, "e", $sg__input_files)}</bdi></span>`);
|
|
2824
2824
|
_if(() => {
|
|
2825
2825
|
if (newKeys.has(file.key)) {
|
|
2826
2826
|
const $scope6_id = _scope_id();
|
|
2827
|
-
_html(`<span${_attr_class(["_y", "
|
|
2827
|
+
_html(`<span${_attr_class(["_y", "_hr"])} title="Changed since your last visit"></span>`);
|
|
2828
2828
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2829
2829
|
return 0;
|
|
2830
2830
|
}
|
|
@@ -2834,7 +2834,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2834
2834
|
const $scope7_id = _scope_id();
|
|
2835
2835
|
icon_comment_default({
|
|
2836
2836
|
size: 12,
|
|
2837
|
-
class: "
|
|
2837
|
+
class: "_hs"
|
|
2838
2838
|
});
|
|
2839
2839
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
2840
2840
|
return 0;
|
|
@@ -2859,7 +2859,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2859
2859
|
_if(() => {
|
|
2860
2860
|
if (!input.files.length) {
|
|
2861
2861
|
const $scope8_id = _scope_id();
|
|
2862
|
-
_html(`<p${_attr_class("
|
|
2862
|
+
_html(`<p${_attr_class("_hq")}>No files match.</p>`);
|
|
2863
2863
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
2864
2864
|
return 0;
|
|
2865
2865
|
}
|
|
@@ -3124,6 +3124,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3124
3124
|
const [diffData, reviewData] = await Promise.all([api(`/api/workspaces/${input.workspaceId}/diff${qs}`), api(`/api/workspaces/${input.workspaceId}/review`)]);
|
|
3125
3125
|
if (seq !== loadBox.seq) return;
|
|
3126
3126
|
repos = diffData;
|
|
3127
|
+
if (onlyNew && !diffData.some((r) => r.files.some((f) => f.changedSince))) onlyNew = false;
|
|
3127
3128
|
comments = reviewData.comments || [];
|
|
3128
3129
|
headBox.sig = prHeadSigFromDiff(diffData);
|
|
3129
3130
|
if (input.focusPr) focusPrSection(input.focusPr);
|
|
@@ -3168,7 +3169,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3168
3169
|
const heads = {};
|
|
3169
3170
|
const dirty = {};
|
|
3170
3171
|
for (const r of repos) {
|
|
3171
|
-
|
|
3172
|
+
heads[r.id] = r.head;
|
|
3172
3173
|
for (const f of r.files) if (f.hash) dirty[`${r.worktree}/${f.path}`] = f.hash;
|
|
3173
3174
|
}
|
|
3174
3175
|
fetch(`/api/workspaces/${input.workspaceId}/review`, {
|
|
@@ -3398,22 +3399,22 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3398
3399
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
3399
3400
|
}
|
|
3400
3401
|
}, "m35", $scope0_id);
|
|
3401
|
-
_html(`<div${_attr_class("
|
|
3402
|
+
_html(`<div${_attr_class("_eX")}><div${_attr_class("_e2")}><div${_attr_class("_e3")}><div${_attr_class(["_fc", { ["_fb"]: !comments.length }])}>`);
|
|
3402
3403
|
_if(() => {
|
|
3403
3404
|
if (input.onExit) {
|
|
3404
3405
|
const $scope1_id = _scope_id();
|
|
3405
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
3406
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_e4"])} title="Back to terminal (Esc)">`);
|
|
3406
3407
|
icon_back_default({ size: 14 });
|
|
3407
3408
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
3408
3409
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
3409
3410
|
return 0;
|
|
3410
3411
|
}
|
|
3411
3412
|
}, $scope0_id, "e", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 4), 1, 0, 1);
|
|
3412
|
-
_html(`<h1${_attr_class("
|
|
3413
|
+
_html(`<h1${_attr_class("_e7")}>Review</h1>`);
|
|
3413
3414
|
_if(() => {
|
|
3414
3415
|
if (comments.length) {
|
|
3415
3416
|
const $scope5_id = _scope_id();
|
|
3416
|
-
_html(`<span${_attr_class("
|
|
3417
|
+
_html(`<span${_attr_class("_e6")}>${_escape(comments.length)}${_el_resume($scope5_id, "b")} comment<!>${comments.length === 1 ? "" : "s"}${_el_resume($scope5_id, "c")}</span>`);
|
|
3417
3418
|
writeScope($scope5_id, {});
|
|
3418
3419
|
return 0;
|
|
3419
3420
|
}
|
|
@@ -3421,7 +3422,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3421
3422
|
_if(() => {
|
|
3422
3423
|
if (comments.length) {
|
|
3423
3424
|
const $scope2_id = _scope_id();
|
|
3424
|
-
_html(`<span${_attr_class("
|
|
3425
|
+
_html(`<span${_attr_class("_e5")}>`);
|
|
3425
3426
|
_set_serialize_reason(_serialize_guard($scope0_reason, 5));
|
|
3426
3427
|
const $childScope = _peek_scope_id();
|
|
3427
3428
|
diff_send_default({
|
|
@@ -3434,14 +3435,14 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3434
3435
|
return 0;
|
|
3435
3436
|
}
|
|
3436
3437
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
3437
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
3438
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_e1")}>`);
|
|
3438
3439
|
_if(() => {
|
|
3439
3440
|
if (hasFiles) {
|
|
3440
3441
|
const $scope12_id = _scope_id();
|
|
3441
3442
|
_html(`<button${_attr_class([
|
|
3442
3443
|
treeToggle,
|
|
3443
|
-
"
|
|
3444
|
-
{ ["
|
|
3444
|
+
"_eZ",
|
|
3445
|
+
{ ["_eY"]: treeOpen }
|
|
3445
3446
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
3446
3447
|
icon_sidebar_default({ size: 14 });
|
|
3447
3448
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -3450,7 +3451,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3450
3451
|
return 0;
|
|
3451
3452
|
}
|
|
3452
3453
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
3453
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3454
|
+
_html(`<button${_attr_class([iconBtnRow, "_eZ"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
3454
3455
|
_set_serialize_reason(1);
|
|
3455
3456
|
const $childScope2 = _peek_scope_id();
|
|
3456
3457
|
icon_refresh_default({
|
|
@@ -3461,19 +3462,19 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3461
3462
|
_if(() => {
|
|
3462
3463
|
if (hasFiles) {
|
|
3463
3464
|
const $scope13_id = _scope_id();
|
|
3464
|
-
_html(`<button${_attr_class(["_o", "
|
|
3465
|
+
_html(`<button${_attr_class(["_o", "_fm"])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope13_id, "b")})</button>${_el_resume($scope13_id, "a")}`);
|
|
3465
3466
|
_script($scope13_id, "m55");
|
|
3466
3467
|
writeScope($scope13_id, {});
|
|
3467
3468
|
return 0;
|
|
3468
3469
|
}
|
|
3469
3470
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
3470
|
-
_html(`<div${_attr_class(scope)} role=group aria-label="Review scope"><button type=button${_attr_class(["_8", { ["_7"]: 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(["_8", { ["_7"]: 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(["_8", { ["_7"]: scope$1 === "dirty" }])} aria-pressed=${scope$1 === "dirty" ? "true" : "false"} title="Only uncommitted and untracked files, against HEAD"${_attr("disabled", loading)}>Uncommitted</button>${_el_resume($scope0_id, "q")}</div><span${_attr_class(["_m", "
|
|
3471
|
+
_html(`<div${_attr_class(scope)} role=group aria-label="Review scope"><button type=button${_attr_class(["_8", { ["_7"]: 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(["_8", { ["_7"]: 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(["_8", { ["_7"]: scope$1 === "dirty" }])} aria-pressed=${scope$1 === "dirty" ? "true" : "false"} title="Only uncommitted and untracked files, against HEAD"${_attr("disabled", loading)}>Uncommitted</button>${_el_resume($scope0_id, "q")}</div><span${_attr_class(["_m", "_fe"])}>`);
|
|
3471
3472
|
_attr_select_value($scope0_id, "s", scope$1, _resume(function(v) {
|
|
3472
3473
|
setScope(v);
|
|
3473
3474
|
}, "m0", $scope0_id), () => {
|
|
3474
|
-
_html(`<select${_attr_class(["_n", "
|
|
3475
|
+
_html(`<select${_attr_class(["_n", "_ff"])} 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>`);
|
|
3475
3476
|
});
|
|
3476
|
-
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["
|
|
3477
|
+
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["_e_", { ["_e9"]: !findOpen }])}>`);
|
|
3477
3478
|
_set_serialize_reason(2);
|
|
3478
3479
|
const $childScope3 = _peek_scope_id();
|
|
3479
3480
|
diff_find_default({
|
|
@@ -3494,8 +3495,8 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3494
3495
|
const $scope14_id = _scope_id();
|
|
3495
3496
|
_html(`<button${_attr_class([
|
|
3496
3497
|
iconBtnRow,
|
|
3497
|
-
"
|
|
3498
|
-
"
|
|
3498
|
+
"_e8",
|
|
3499
|
+
"_eZ"
|
|
3499
3500
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
3500
3501
|
icon_search_default({ size: 14 });
|
|
3501
3502
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -3504,7 +3505,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3504
3505
|
return 0;
|
|
3505
3506
|
}
|
|
3506
3507
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
3507
|
-
_html(`</div></div><div${_attr_class("
|
|
3508
|
+
_html(`</div></div><div${_attr_class("_fa")} data-diff-main>`);
|
|
3508
3509
|
_if(() => {
|
|
3509
3510
|
if (error) {
|
|
3510
3511
|
const $scope6_id = _scope_id();
|
|
@@ -3527,7 +3528,7 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3527
3528
|
_if(() => {
|
|
3528
3529
|
if (!repos && loading) {
|
|
3529
3530
|
const $scope15_id = _scope_id();
|
|
3530
|
-
_html(`<div${_attr_class("
|
|
3531
|
+
_html(`<div${_attr_class("_fh")} aria-hidden=true><div${_attr_class(["_fi", "_fj"])}></div><div${_attr_class(["_fi", "_fk"])}></div><div${_attr_class(["_fi", "_fl"])}></div><div${_attr_class(["_fi", "_fk"])}></div><div${_attr_class(["_fi", "_fl"])}></div></div>`);
|
|
3531
3532
|
writeScope($scope15_id, {});
|
|
3532
3533
|
return 0;
|
|
3533
3534
|
}
|
|
@@ -3558,12 +3559,12 @@ var diff_view_default = _template("m", (input) => {
|
|
|
3558
3559
|
_if(() => {
|
|
3559
3560
|
if (repos && !allFiles.length) {
|
|
3560
3561
|
const $scope11_id = _scope_id();
|
|
3561
|
-
_html(`<p${_attr_class("
|
|
3562
|
+
_html(`<p${_attr_class("_bA")}>${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>`);
|
|
3562
3563
|
writeScope($scope11_id, {});
|
|
3563
3564
|
return 0;
|
|
3564
3565
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
3565
3566
|
const $scope8_id = _scope_id();
|
|
3566
|
-
_html(`<p${_attr_class("
|
|
3567
|
+
_html(`<p${_attr_class("_bA")}>${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>`);
|
|
3567
3568
|
writeScope($scope8_id, {});
|
|
3568
3569
|
return 1;
|
|
3569
3570
|
}
|