@dylanpiercey/work 0.0.97 → 0.0.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{_DPT3XRV0.js → _C2iOUYk0.js} +198 -128
- package/dist/{_CRHCebx8.js → _Ck0vW-6X.js} +19 -19
- package/dist/index.mjs +125 -125
- package/dist/public/assets/{_Cn1q8R2G.js → _72qdieSN.js} +1 -1
- package/dist/public/assets/_72qdieSN.js.br +0 -0
- package/dist/public/assets/{_DSX5dMw5.js → _7c4xnqrf.js} +1 -1
- package/dist/public/assets/_7c4xnqrf.js.br +0 -0
- package/dist/public/assets/{_B9D12lOA.js → _9VNXPZR8.js} +1 -1
- package/dist/public/assets/_9VNXPZR8.js.br +0 -0
- package/dist/public/assets/{_CRbRTfeP2.js → _AICGBS272.js} +1 -1
- package/dist/public/assets/_AICGBS272.js.br +0 -0
- package/dist/public/assets/{_B8-V5BF5.js → _B4THbtZA.js} +1 -1
- package/dist/public/assets/_B4THbtZA.js.br +0 -0
- package/dist/public/assets/{_BZsn-7u1.js → _BBzdtwrq.js} +1 -1
- package/dist/public/assets/_BBzdtwrq.js.br +0 -0
- package/dist/public/assets/{_BIOtkDha2.js → _BD5QyzzE2.js} +1 -1
- package/dist/public/assets/_BD5QyzzE2.js.br +0 -0
- package/dist/public/assets/{_Dx_iq98R.js → _BEl0-pfc.js} +1 -1
- package/dist/public/assets/_BEl0-pfc.js.br +0 -0
- package/dist/public/assets/{_BiDyvSOO2.js → _BEsiqPLz2.js} +1 -1
- package/dist/public/assets/_BEsiqPLz2.js.br +0 -0
- package/dist/public/assets/{_Cyl9FKNU2.js → _BQ4JTx9g2.js} +1 -1
- package/dist/public/assets/_BQ4JTx9g2.js.br +0 -0
- package/dist/public/assets/{_t5tGr2D1.js → _BSv_16KS.js} +1 -1
- package/dist/public/assets/_BSv_16KS.js.br +0 -0
- package/dist/public/assets/{_BE3R8mFE.js → _BT3I-bNi.js} +1 -1
- package/dist/public/assets/_BT3I-bNi.js.br +0 -0
- package/dist/public/assets/{_tzwJRvKK.js → _BTz9kp-M.js} +4 -4
- package/dist/public/assets/_BTz9kp-M.js.br +0 -0
- package/dist/public/assets/{_COSXS0J8.js → _BV2AXBoU.js} +1 -1
- package/dist/public/assets/_BV2AXBoU.js.br +0 -0
- package/dist/public/assets/{_BkjyxJ0i.js → _Beb6iWYU.js} +1 -1
- package/dist/public/assets/{_DFpIp88l2.js → _BgP9mBTY2.js} +1 -1
- package/dist/public/assets/_BgP9mBTY2.js.br +0 -0
- package/dist/public/assets/{_YOqlhSHw2.js → _BlqgIIbo2.js} +1 -1
- package/dist/public/assets/_BlqgIIbo2.js.br +0 -0
- package/dist/public/assets/{_mU_JkZbV.js → _C1eXxfl-.js} +1 -1
- package/dist/public/assets/_C1eXxfl-.js.br +0 -0
- package/dist/public/assets/{_D4cKCypW.js → _C1jVWOLU.js} +1 -1
- package/dist/public/assets/_C1jVWOLU.js.br +0 -0
- package/dist/public/assets/{_XQjM1w_8.js → _C2rqjqLr.js} +1 -1
- package/dist/public/assets/_C2rqjqLr.js.br +0 -0
- package/dist/public/assets/{_Bw9jvu1-.js → _C7JPa3qQ.js} +1 -1
- package/dist/public/assets/_C7JPa3qQ.js.br +0 -0
- package/dist/public/assets/{_Is38l22C.js → _C8awcjLC.js} +1 -1
- package/dist/public/assets/_C8awcjLC.js.br +0 -0
- package/dist/public/assets/{_BPfQaxTd.js → _CC4vv3Or.js} +1 -1
- package/dist/public/assets/_CC4vv3Or.js.br +0 -0
- package/dist/public/assets/{_C-KXAuRh2.js → _CE9KmZy72.js} +1 -1
- package/dist/public/assets/_CE9KmZy72.js.br +0 -0
- package/dist/public/assets/{_DA_USHEu.js → _CQFHRV0k.js} +1 -1
- package/dist/public/assets/_CQFHRV0k.js.br +0 -0
- package/dist/public/assets/{_I8D7wiZO.js → _CT-iMa8q.js} +1 -1
- package/dist/public/assets/_CT-iMa8q.js.br +0 -0
- package/dist/public/assets/{_DyjSeFv1.js → _CUIBz5C7.js} +1 -1
- package/dist/public/assets/_CUIBz5C7.js.br +0 -0
- package/dist/public/assets/{_B80qXOTR.js → _CUz8cH0p.js} +1 -1
- package/dist/public/assets/_CUz8cH0p.js.br +0 -0
- package/dist/public/assets/{_CMYGsqdf.js → _CY9oQryA.js} +1 -1
- package/dist/public/assets/_CY9oQryA.js.br +0 -0
- package/dist/public/assets/{_CPeBESzl.js → _C_wtxWX4.js} +1 -1
- package/dist/public/assets/_C_wtxWX4.js.br +0 -0
- package/dist/public/assets/{_BLcb3Cg42.js → _CbloqIUh2.js} +1 -1
- package/dist/public/assets/_CbloqIUh2.js.br +0 -0
- package/dist/public/assets/{_DaH2ZbUV.js → _CfFrEMyI.js} +1 -1
- package/dist/public/assets/_CfFrEMyI.js.br +0 -0
- package/dist/public/assets/{_D5o1QAvJ.js → _CgtpO8Eu.js} +1 -1
- package/dist/public/assets/_CgtpO8Eu.js.br +0 -0
- package/dist/public/assets/{_BaY0h2ec2.js → _CiN0Se872.js} +1 -1
- package/dist/public/assets/_CiN0Se872.js.br +0 -0
- package/dist/public/assets/{_-b51A6U7.js → _CpcvZYm-.js} +1 -1
- package/dist/public/assets/_CpcvZYm-.js.br +0 -0
- package/dist/public/assets/{_Ct6qquOF.js → _CssbeZm4.js} +1 -1
- package/dist/public/assets/_CssbeZm4.js.br +0 -0
- package/dist/public/assets/{_BGvyA4oE2.js → _D0C3PlmH2.js} +1 -1
- package/dist/public/assets/_D0C3PlmH2.js.br +0 -0
- package/dist/public/assets/{_Bl512FoL.js → _D0cUlfAx.js} +1 -1
- package/dist/public/assets/_D0cUlfAx.js.br +0 -0
- package/dist/public/assets/{_jK_yh8X8.js → _D2yeOMee.js} +1 -1
- package/dist/public/assets/_D2yeOMee.js.br +0 -0
- package/dist/public/assets/{_0KWxGbZw.js → _DADiiMfC.js} +1 -1
- package/dist/public/assets/_DADiiMfC.js.br +0 -0
- package/dist/public/assets/{_BCovSJRb.js → _DAegSW0q.js} +1 -1
- package/dist/public/assets/_DAegSW0q.js.br +0 -0
- package/dist/public/assets/{_DJ6cJzuI.js → _DCCJnq6r.js} +1 -1
- package/dist/public/assets/_DCCJnq6r.js.br +0 -0
- package/dist/public/assets/{_zWXmuT9S.js → _DEYYBtCh.js} +1 -1
- package/dist/public/assets/_DEYYBtCh.js.br +0 -0
- package/dist/public/assets/{_B2AC3SUA.js → _DFWD3zQ3.js} +1 -1
- package/dist/public/assets/_DFWD3zQ3.js.br +0 -0
- package/dist/public/assets/{_C5xrDvQI2.js → _DGb-SMB82.js} +1 -1
- package/dist/public/assets/_DGb-SMB82.js.br +0 -0
- package/dist/public/assets/{_ERnhNh-Y.js → _DGsLMkwe.js} +1 -1
- package/dist/public/assets/_DGsLMkwe.js.br +0 -0
- package/dist/public/assets/{_BBS5zv8C2.js → _DJ8Ccdfm2.js} +1 -1
- package/dist/public/assets/_DJ8Ccdfm2.js.br +0 -0
- package/dist/public/assets/{_Skj5Z76l2.js → _DOQZzw3X2.js} +1 -1
- package/dist/public/assets/_DOQZzw3X2.js.br +0 -0
- package/dist/public/assets/{_BzfCLxV82.js → _DOYrIe5k2.js} +1 -1
- package/dist/public/assets/_DOYrIe5k2.js.br +0 -0
- package/dist/public/assets/{_zZovbli0.js → _DOgsyPkY.js} +1 -1
- package/dist/public/assets/_DOgsyPkY.js.br +0 -0
- package/dist/public/assets/{_BTsrDfH-.js → _DT6uUp3k.js} +1 -1
- package/dist/public/assets/_DT6uUp3k.js.br +0 -0
- package/dist/public/assets/{_gu9YaOjx.js → _DXvBe1Ih.js} +1 -1
- package/dist/public/assets/_DXvBe1Ih.js.br +0 -0
- package/dist/public/assets/{_C2SDF9Yg2.js → _DYZLgwCQ2.js} +1 -1
- package/dist/public/assets/{_CyQMVS2T.js → _DZvSYpy0.js} +1 -1
- package/dist/public/assets/_DZvSYpy0.js.br +0 -0
- package/dist/public/assets/{_Bzp9X35S2.js → _D_Vjtav72.js} +1 -1
- package/dist/public/assets/_D_Vjtav72.js.br +0 -0
- package/dist/public/assets/{_J13dOJAl.js → _DfvjLYn6.js} +46 -46
- package/dist/public/assets/_DfvjLYn6.js.br +0 -0
- package/dist/public/assets/{_BP_u4OL-.js → _DhPNxCbg.js} +1 -1
- package/dist/public/assets/_DhPNxCbg.js.br +0 -0
- package/dist/public/assets/{_8GNWgmjH.js → _DnnLlcSH.js} +1 -1
- package/dist/public/assets/_DnnLlcSH.js.br +0 -0
- package/dist/public/assets/{_DYCJZ-Iu.js → _Ds07SXNe.js} +1 -1
- package/dist/public/assets/_Ds07SXNe.js.br +0 -0
- package/dist/public/assets/{_pImBOEXD2.js → _Dx5y4JTi2.js} +1 -1
- package/dist/public/assets/_Dx5y4JTi2.js.br +0 -0
- package/dist/public/assets/{_e3oDddUx2.js → _DyhDzC5d2.js} +1 -1
- package/dist/public/assets/_DyhDzC5d2.js.br +0 -0
- package/dist/public/assets/{_BzGLDIBO2.js → _DzQwTxlq2.js} +1 -1
- package/dist/public/assets/_DzQwTxlq2.js.br +0 -0
- package/dist/public/assets/{_DJ0uAfUp2.js → _HzWCGFZY2.js} +1 -1
- package/dist/public/assets/_HzWCGFZY2.js.br +0 -0
- package/dist/public/assets/{_Bc4j5n7x.js → _JLuR9Wwt.js} +1 -1
- package/dist/public/assets/_JLuR9Wwt.js.br +0 -0
- package/dist/public/assets/{_cd0Dn5oM2.js → _TnRhASuT2.js} +1 -1
- package/dist/public/assets/_TnRhASuT2.js.br +0 -0
- package/dist/public/assets/{_a_oWV3XM.js → _UNHBRX20.js} +1 -1
- package/dist/public/assets/_UNHBRX20.js.br +0 -0
- package/dist/public/assets/{_Cyhh59cC.js → _W7TSZDDJ.js} +1 -1
- package/dist/public/assets/_W7TSZDDJ.js.br +0 -0
- package/dist/public/assets/{_BwFRjBOz.js → _Y8yuDvYx.js} +1 -1
- package/dist/public/assets/_Y8yuDvYx.js.br +0 -0
- package/dist/public/assets/{_8tiEU3RO.js → _Y_L06Fhv.js} +1 -1
- package/dist/public/assets/_Y_L06Fhv.js.br +0 -0
- package/dist/public/assets/{_DcTJxua3.js → _bL4tfbxP.js} +1 -1
- package/dist/public/assets/_bL4tfbxP.js.br +0 -0
- package/dist/public/assets/{_VJa0VTCn.js → _cS1sOHfj.js} +1 -1
- package/dist/public/assets/_cS1sOHfj.js.br +0 -0
- package/dist/public/assets/{_DwVknvPD2.js → _e2Ukn7GM2.js} +1 -1
- package/dist/public/assets/_e2Ukn7GM2.js.br +0 -0
- package/dist/public/assets/{_BgPTyoAr2.js → _hvBTRKBO2.js} +1 -1
- package/dist/public/assets/_hvBTRKBO2.js.br +0 -0
- package/dist/public/assets/{_Ka1PvLiD.js → _kcUD0ILE.js} +1 -1
- package/dist/public/assets/_kcUD0ILE.js.br +0 -0
- package/dist/public/assets/{_C4nOqeMD.js → _qtSBoNP8.js} +1 -1
- package/dist/public/assets/_qtSBoNP8.js.br +0 -0
- package/dist/public/assets/{_DLSsOTkW2.js → _wfjNzo0T2.js} +1 -1
- package/dist/public/assets/app-page-ld3_dMCb.css +1 -0
- package/dist/public/assets/app-page-ld3_dMCb.css.br +0 -0
- package/dist/public/assets/diff-view-C1XMnv65.css +1 -0
- package/dist/public/assets/diff-view-C1XMnv65.css.br +0 -0
- package/dist/public/assets/new-j0ofF6W9.js +1 -0
- package/dist/public/assets/settings-j0ofF6W9.js +1 -0
- package/dist/public/assets/w-j0ofF6W9.js +1 -0
- package/dist/public/assets/w._-CmgE6DT1.js +1 -0
- package/dist/public/assets/w._-j0ofF6W9.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_-b51A6U7.js.br +0 -0
- package/dist/public/assets/_0KWxGbZw.js.br +0 -0
- package/dist/public/assets/_8GNWgmjH.js.br +0 -0
- package/dist/public/assets/_8tiEU3RO.js.br +0 -0
- package/dist/public/assets/_B2AC3SUA.js.br +0 -0
- package/dist/public/assets/_B8-V5BF5.js.br +0 -0
- package/dist/public/assets/_B80qXOTR.js.br +0 -0
- package/dist/public/assets/_B9D12lOA.js.br +0 -0
- package/dist/public/assets/_BBS5zv8C2.js.br +0 -0
- package/dist/public/assets/_BCovSJRb.js.br +0 -0
- package/dist/public/assets/_BE3R8mFE.js.br +0 -0
- package/dist/public/assets/_BGvyA4oE2.js.br +0 -0
- package/dist/public/assets/_BIOtkDha2.js.br +0 -0
- package/dist/public/assets/_BLcb3Cg42.js.br +0 -0
- package/dist/public/assets/_BP_u4OL-.js.br +0 -0
- package/dist/public/assets/_BPfQaxTd.js.br +0 -0
- package/dist/public/assets/_BTsrDfH-.js.br +0 -0
- package/dist/public/assets/_BZsn-7u1.js.br +0 -0
- package/dist/public/assets/_BaY0h2ec2.js.br +0 -0
- package/dist/public/assets/_Bc4j5n7x.js.br +0 -0
- package/dist/public/assets/_BgPTyoAr2.js.br +0 -0
- package/dist/public/assets/_BiDyvSOO2.js.br +0 -0
- package/dist/public/assets/_Bl512FoL.js.br +0 -0
- package/dist/public/assets/_Bw9jvu1-.js.br +0 -0
- package/dist/public/assets/_BwFRjBOz.js.br +0 -0
- package/dist/public/assets/_BzGLDIBO2.js.br +0 -0
- package/dist/public/assets/_BzfCLxV82.js.br +0 -0
- package/dist/public/assets/_Bzp9X35S2.js.br +0 -0
- package/dist/public/assets/_C-KXAuRh2.js.br +0 -0
- package/dist/public/assets/_C4nOqeMD.js.br +0 -0
- package/dist/public/assets/_C5xrDvQI2.js.br +0 -0
- package/dist/public/assets/_CMYGsqdf.js.br +0 -0
- package/dist/public/assets/_COSXS0J8.js.br +0 -0
- package/dist/public/assets/_CPeBESzl.js.br +0 -0
- package/dist/public/assets/_CRbRTfeP2.js.br +0 -0
- package/dist/public/assets/_Cn1q8R2G.js.br +0 -0
- package/dist/public/assets/_Ct6qquOF.js.br +0 -0
- package/dist/public/assets/_CyQMVS2T.js.br +0 -0
- package/dist/public/assets/_Cyhh59cC.js.br +0 -0
- package/dist/public/assets/_Cyl9FKNU2.js.br +0 -0
- package/dist/public/assets/_D4cKCypW.js.br +0 -0
- package/dist/public/assets/_D5o1QAvJ.js.br +0 -0
- package/dist/public/assets/_DA_USHEu.js.br +0 -0
- package/dist/public/assets/_DFpIp88l2.js.br +0 -0
- package/dist/public/assets/_DJ0uAfUp2.js.br +0 -0
- package/dist/public/assets/_DJ6cJzuI.js.br +0 -0
- package/dist/public/assets/_DSX5dMw5.js.br +0 -0
- package/dist/public/assets/_DYCJZ-Iu.js.br +0 -0
- package/dist/public/assets/_DaH2ZbUV.js.br +0 -0
- package/dist/public/assets/_DcTJxua3.js.br +0 -0
- package/dist/public/assets/_DwVknvPD2.js.br +0 -0
- package/dist/public/assets/_Dx_iq98R.js.br +0 -0
- package/dist/public/assets/_DyjSeFv1.js.br +0 -0
- package/dist/public/assets/_ERnhNh-Y.js.br +0 -0
- package/dist/public/assets/_I8D7wiZO.js.br +0 -0
- package/dist/public/assets/_Is38l22C.js.br +0 -0
- package/dist/public/assets/_J13dOJAl.js.br +0 -0
- package/dist/public/assets/_Ka1PvLiD.js.br +0 -0
- package/dist/public/assets/_Skj5Z76l2.js.br +0 -0
- package/dist/public/assets/_VJa0VTCn.js.br +0 -0
- package/dist/public/assets/_XQjM1w_8.js.br +0 -0
- package/dist/public/assets/_YOqlhSHw2.js.br +0 -0
- package/dist/public/assets/_a_oWV3XM.js.br +0 -0
- package/dist/public/assets/_cd0Dn5oM2.js.br +0 -0
- package/dist/public/assets/_e3oDddUx2.js.br +0 -0
- package/dist/public/assets/_gu9YaOjx.js.br +0 -0
- package/dist/public/assets/_jK_yh8X8.js.br +0 -0
- package/dist/public/assets/_mU_JkZbV.js.br +0 -0
- package/dist/public/assets/_pImBOEXD2.js.br +0 -0
- package/dist/public/assets/_t5tGr2D1.js.br +0 -0
- package/dist/public/assets/_tzwJRvKK.js.br +0 -0
- package/dist/public/assets/_zWXmuT9S.js.br +0 -0
- package/dist/public/assets/_zZovbli0.js.br +0 -0
- package/dist/public/assets/app-page-D30JmXcA.css +0 -1
- package/dist/public/assets/app-page-D30JmXcA.css.br +0 -0
- package/dist/public/assets/diff-view-WfajAxvs.css +0 -1
- package/dist/public/assets/diff-view-WfajAxvs.css.br +0 -0
- package/dist/public/assets/new-BiAv3en2.js +0 -1
- package/dist/public/assets/settings-BiAv3en2.js +0 -1
- package/dist/public/assets/w-BiAv3en2.js +0 -1
- package/dist/public/assets/w._-BiAv3en2.js +0 -1
- package/dist/public/assets/w._-DoR9D5Ku.js +0 -1
|
@@ -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 "./_Ck0vW-6X.js";
|
|
2
2
|
//#region src/client/router.ts
|
|
3
3
|
function urlFor(r) {
|
|
4
4
|
if (r.view === "settings") return "/settings";
|
|
@@ -252,7 +252,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
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("_fJ")}><button type=button${_attr_class("_o")} title="Copy comments as markdown">Copy${_el_resume($scope0_id, "c")}</button>${_el_resume($scope0_id, "b")}`);
|
|
256
256
|
_if(() => {
|
|
257
257
|
if (sessions.length === 1) {
|
|
258
258
|
const $scope1_id = _scope_id();
|
|
@@ -262,11 +262,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
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("_fK")}><button type=button${_attr_class(["_p", "_fL"])}${_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
268
|
}, "j0", $scope2_id), () => {
|
|
269
|
-
_html(`<select${_attr_class("
|
|
269
|
+
_html(`<select${_attr_class("_fM")} 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)}`);
|
|
@@ -1832,9 +1832,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
1832
1832
|
el.select();
|
|
1833
1833
|
}, 0);
|
|
1834
1834
|
}, "i5", $scope0_id);
|
|
1835
|
-
_html(`<div${_attr_class(["
|
|
1835
|
+
_html(`<div${_attr_class(["_fx", !open && "_fw"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1836
1836
|
type(v);
|
|
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("
|
|
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("_fA")}>${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 });
|
|
@@ -1935,8 +1935,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
1935
1935
|
}
|
|
1936
1936
|
return shortHeadFallback(head);
|
|
1937
1937
|
}
|
|
1938
|
-
var repoWorktree = "
|
|
1939
|
-
var repoTitle = "
|
|
1938
|
+
var repoWorktree = "_gX _x";
|
|
1939
|
+
var repoTitle = "_g3 _w";
|
|
1940
1940
|
//#endregion
|
|
1941
1941
|
//#region src/tags/icons/icon-chevron-right.marko
|
|
1942
1942
|
var icon_chevron_right_default = _template("R", (input) => {
|
|
@@ -1988,34 +1988,70 @@ var icon_comment_default = _template("T", (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
2026
|
var diff_file_default = _template("h", (input) => {
|
|
1993
2027
|
_scope_reason();
|
|
1994
2028
|
const $scope0_id = _scope_id();
|
|
1995
2029
|
_el($scope0_id, "h0");
|
|
1996
|
-
_html(`<div${_attr_class(["
|
|
2030
|
+
_html(`<div${_attr_class(["_hp", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
1997
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
2051
|
var review_section_default = _template("u", (input) => {
|
|
2017
|
-
const $scope0_reason = _scope_reason(), $si__input_collapsed = _serialize_if($scope0_reason,
|
|
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("u", (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,25 +2089,25 @@ var review_section_default = _template("u", (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("_gT")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_gU", { ["_gV"]: 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("_gW")} 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
|
+
"_hf",
|
|
2098
|
+
!input.collapsed && "_hg",
|
|
2099
|
+
input.expanding && "_hh"
|
|
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);
|
|
@@ -2084,7 +2121,7 @@ var review_section_default = _template("u", (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();
|
|
@@ -2098,16 +2135,16 @@ var review_section_default = _template("u", (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("_g4")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_I", "_g5"])}>${_escape(compare$1.base)}${_el_resume($scope0_id, "g", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_K", "_g7"])} aria-hidden=true>vs</span><span${_attr_class(["_I", "_g6"])}>${_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
|
"_I",
|
|
2107
2144
|
tone.accent,
|
|
2108
|
-
"
|
|
2109
|
-
])}>${_escape(compare$1.topic)}${_el_resume($
|
|
2110
|
-
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($
|
|
2145
|
+
"_g8"
|
|
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);
|
|
@@ -2118,7 +2155,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2118
2155
|
_html(`<button type=button${_attr_class([
|
|
2119
2156
|
"_I",
|
|
2120
2157
|
tone.warn,
|
|
2121
|
-
"
|
|
2158
|
+
"_g9"
|
|
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
2160
|
_script($scope2_id, "u10");
|
|
2124
2161
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2128,7 +2165,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2128
2165
|
_if(() => {
|
|
2129
2166
|
if (repo.contained && input.files.length) {
|
|
2130
2167
|
const $scope13_id = _scope_id();
|
|
2131
|
-
_html(`<span${_attr_class(["_I", "
|
|
2168
|
+
_html(`<span${_attr_class(["_I", "_g9"])}${_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,24 +2173,24 @@ var review_section_default = _template("u", (input) => {
|
|
|
2136
2173
|
_if(() => {
|
|
2137
2174
|
if (input.localDiffers) {
|
|
2138
2175
|
const $scope3_id = _scope_id();
|
|
2139
|
-
_html(`<span${_attr_class(["_I", "
|
|
2176
|
+
_html(`<span${_attr_class(["_I", "_g9"])}${_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("_gY")}><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("_gZ")}>+${_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("_g0")}>−${_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(["
|
|
2193
|
+
_html(`<button type=button${_attr_class(["_g2", { ["_g1"]: 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")}`);
|
|
2157
2194
|
_script($scope4_id, "u11");
|
|
2158
2195
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
2159
2196
|
return 0;
|
|
@@ -2163,7 +2200,7 @@ var review_section_default = _template("u", (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("_ha")}${_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("u", (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
|
-
}, "u0", $scope6_id))}${_attr_class(["
|
|
2213
|
+
}, "u0", $scope6_id))}${_attr_class(["_hb", input.findHit?.key === file$1.key && "_gR"])}${_attr("data-key", file$1.key)}${_attr("hidden", !input.shownKeys.has(file$1.key))}><summary${_attr_class("_hd")}><span${_attr_class("_hi")}${_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(["_hj", input.findHit?.key === file$1.key && input.findHit.line < 1 && "_gS"])}${_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(["_z", "
|
|
2181
|
-
$si__input_files && writeScope($
|
|
2216
|
+
const $scope20_id = _scope_id();
|
|
2217
|
+
_html(`<span${_attr_class(["_z", "_g_"])} 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 $
|
|
2224
|
+
const $scope19_id = _scope_id();
|
|
2188
2225
|
_html(`<span${_attr_class("_s")}>`);
|
|
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 && file$1.old != null && file$1.new != null) {
|
|
2234
|
+
const $scope14_id = _scope_id();
|
|
2235
|
+
_html(`<button type=button${_attr_class([
|
|
2236
|
+
iconBtnXs,
|
|
2237
|
+
"_hl",
|
|
2238
|
+
{ ["_hm"]: 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(["_hk", "_hc"])}>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(["_hk", "_hc"])}>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(["_hk", "_hc"])}>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,19 +2282,20 @@ var review_section_default = _template("u", (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(["_he", "_hc"])}></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: "_hc",
|
|
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),
|
|
@@ -2254,7 +2321,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
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("u", (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
|
+
a4: $si__input_files && $for_content__file__closures,
|
|
2351
|
+
a5: $si__input_files && $for_content__file_key__closures,
|
|
2352
|
+
a6: $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,41 +2397,44 @@ var review_section_default = _template("u", (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 = "
|
|
2437
|
+
var fileFilter = "_ho _l";
|
|
2368
2438
|
//#endregion
|
|
2369
2439
|
//#region src/tags/file-filter.marko
|
|
2370
2440
|
var file_filter_default = _template("n", (input) => {
|
|
@@ -2394,7 +2464,7 @@ var file_filter_default = _template("n", (input) => {
|
|
|
2394
2464
|
pending = v;
|
|
2395
2465
|
box.timer = setTimeout(flush, 150);
|
|
2396
2466
|
}, "n2", $scope0_id);
|
|
2397
|
-
_html(`<div${_attr_class("
|
|
2467
|
+
_html(`<div${_attr_class("_hn")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
2398
2468
|
type(v);
|
|
2399
2469
|
}, "n0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
2400
2470
|
_script($scope0_id, "n3");
|
|
@@ -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("_gc")}><button type=button${_attr_class(["_gd", { ["_f5"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_gk")}>`);
|
|
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("_ge")}>${_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();
|
|
@@ -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(["_gg", { ["_gf"]: 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("_gl")}${_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("_gh")}>${_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(["_z", "
|
|
2565
|
+
_html(`<span${_attr_class(["_z", "_gi"])} 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("_gj")}>`);
|
|
2504
2574
|
icon_comment_default({ size: 12 });
|
|
2505
2575
|
_html("</span>");
|
|
2506
2576
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -2558,7 +2628,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2558
2628
|
scope: input.scope ?? null,
|
|
2559
2629
|
file: key
|
|
2560
2630
|
}), "l0", $scope0_id);
|
|
2561
|
-
_html(`<aside${_attr_class(["
|
|
2631
|
+
_html(`<aside${_attr_class(["_f6", { ["_f5"]: input.open === false }])}><div${_attr_class("_f7")}>`);
|
|
2562
2632
|
_set_serialize_reason(2);
|
|
2563
2633
|
const $childScope = _peek_scope_id();
|
|
2564
2634
|
file_filter_default({
|
|
@@ -2567,18 +2637,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2567
2637
|
filter = _new_filter;
|
|
2568
2638
|
}, "l1", $scope0_id)
|
|
2569
2639
|
});
|
|
2570
|
-
_html(`</div><div${_attr_class("
|
|
2640
|
+
_html(`</div><div${_attr_class("_f8")}>`);
|
|
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("_f9")}>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("_f_")}><button type=button${_attr_class(["_ga", { ["_f5"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_gk")}>`);
|
|
2582
2652
|
_if(() => {
|
|
2583
2653
|
if (collapsedRepos.has(section.id)) {
|
|
2584
2654
|
const $scope4_id = _scope_id();
|
|
@@ -2592,12 +2662,12 @@ var diff_tree_default = _template("l", (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("_ge")}>${_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("_gb")}${_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({
|
|
@@ -2722,9 +2792,9 @@ var diff_file_sheet_default = _template("g", (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("_f0")}>`);
|
|
2728
2798
|
_set_serialize_reason(2);
|
|
2729
2799
|
const $childScope = _peek_scope_id();
|
|
2730
2800
|
file_filter_default({
|
|
@@ -2733,28 +2803,28 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
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", "_x"])}><span${_attr_class("_f4")}${_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(["_z", "
|
|
2827
|
+
_html(`<span${_attr_class(["_z", "_f2"])} title="Changed since your last visit"></span>`);
|
|
2758
2828
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2759
2829
|
return 0;
|
|
2760
2830
|
}
|
|
@@ -2764,7 +2834,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2764
2834
|
const $scope7_id = _scope_id();
|
|
2765
2835
|
icon_comment_default({
|
|
2766
2836
|
size: 12,
|
|
2767
|
-
class: "
|
|
2837
|
+
class: "_f3"
|
|
2768
2838
|
});
|
|
2769
2839
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
2770
2840
|
return 0;
|
|
@@ -2789,7 +2859,7 @@ var diff_file_sheet_default = _template("g", (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("_f1")}>No files match.</p>`);
|
|
2793
2863
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
2794
2864
|
return 0;
|
|
2795
2865
|
}
|