@dylanpiercey/work 0.0.95 → 0.0.96
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/{_-9SN7lhj.js → _C_EF8rh-.js} +58 -24
- package/dist/{_D13gIzTc.js → _Cel25igI.js} +226 -122
- package/dist/index.mjs +368 -196
- package/dist/public/assets/{_DFoZ_gHS.js → _3d2N4uW7.js} +1 -1
- package/dist/public/assets/_3d2N4uW7.js.br +0 -0
- package/dist/public/assets/{_DxP9fuIM2.js → _63r8H6KD2.js} +1 -1
- package/dist/public/assets/_63r8H6KD2.js.br +0 -0
- package/dist/public/assets/{_o-goWiqn.js → _6Tvpa4Xu.js} +1 -1
- package/dist/public/assets/_6Tvpa4Xu.js.br +0 -0
- package/dist/public/assets/_Ame3I5fr.js +85 -0
- package/dist/public/assets/_Ame3I5fr.js.br +0 -0
- package/dist/public/assets/{_DcqgsKkp.js → _B2uZZeNN.js} +1 -1
- package/dist/public/assets/_B2uZZeNN.js.br +0 -0
- package/dist/public/assets/{_B1tDI_nQ.js → _B3G8MYzv.js} +1 -1
- package/dist/public/assets/_B3G8MYzv.js.br +0 -0
- package/dist/public/assets/{_DKFPQ1582.js → _B4JWlIQw2.js} +1 -1
- package/dist/public/assets/_B4JWlIQw2.js.br +0 -0
- package/dist/public/assets/{_vGqkGb_u.js → _BAJq8l9L.js} +1 -1
- package/dist/public/assets/_BAJq8l9L.js.br +0 -0
- package/dist/public/assets/{_loA_xJ2W.js → _BBpJiyYC.js} +1 -1
- package/dist/public/assets/_BBpJiyYC.js.br +0 -0
- package/dist/public/assets/{_BCw4FOz1.js → _BEejQ7lO.js} +1 -1
- package/dist/public/assets/_BEejQ7lO.js.br +0 -0
- package/dist/public/assets/{_6wZbjEqF.js → _BGuxBUC6.js} +1 -1
- package/dist/public/assets/_BGuxBUC6.js.br +0 -0
- package/dist/public/assets/{_YHDsSm6D.js → _BGz6c5fQ.js} +1 -1
- package/dist/public/assets/_BGz6c5fQ.js.br +0 -0
- package/dist/public/assets/{_C8Iu43Ry.js → _BKaiZ1NX.js} +1 -1
- package/dist/public/assets/_BKaiZ1NX.js.br +0 -0
- package/dist/public/assets/{_CPP_bPjn.js → _BQiqdgb9.js} +1 -1
- package/dist/public/assets/_BQiqdgb9.js.br +0 -0
- package/dist/public/assets/{_C12MnCJE2.js → _BdRvtpe42.js} +1 -1
- package/dist/public/assets/_BdRvtpe42.js.br +0 -0
- package/dist/public/assets/{_7HSHWkd02.js → _BgA0nPVc2.js} +1 -1
- package/dist/public/assets/_BgA0nPVc2.js.br +0 -0
- package/dist/public/assets/{_lX7nytmW.js → _BggRFG6b.js} +1 -1
- package/dist/public/assets/{_Txji4y3b.js → _BnDvpSPb.js} +1 -1
- package/dist/public/assets/_BnDvpSPb.js.br +0 -0
- package/dist/public/assets/{_QZPTxSDf2.js → _Bpnk-HWG2.js} +1 -1
- package/dist/public/assets/_Bpnk-HWG2.js.br +0 -0
- package/dist/public/assets/{_BAC_-o69.js → _Bx5JF3nx.js} +1 -1
- package/dist/public/assets/_Bx5JF3nx.js.br +0 -0
- package/dist/public/assets/{_DXC_JO9C2.js → _Bxjd-YPA2.js} +1 -1
- package/dist/public/assets/_Bxjd-YPA2.js.br +0 -0
- package/dist/public/assets/{_x7q187z1.js → _Bzv-EzCt.js} +1 -1
- package/dist/public/assets/_Bzv-EzCt.js.br +0 -0
- package/dist/public/assets/{_DJWz5IwD.js → _C1AEjtWB.js} +1 -1
- package/dist/public/assets/_C1AEjtWB.js.br +0 -0
- package/dist/public/assets/{_MMZVDI0Q2.js → _C2Qcx14K2.js} +1 -1
- package/dist/public/assets/_C2Qcx14K2.js.br +0 -0
- package/dist/public/assets/{_D3DCFNQ9.js → _C3JlLCxf.js} +1 -1
- package/dist/public/assets/_C3JlLCxf.js.br +0 -0
- package/dist/public/assets/{_BC2fmz4Y2.js → _CAhTTF9I2.js} +1 -1
- package/dist/public/assets/_CAhTTF9I2.js.br +0 -0
- package/dist/public/assets/{_amMU20AI.js → _CBkUW_R-.js} +1 -1
- package/dist/public/assets/_CBkUW_R-.js.br +0 -0
- package/dist/public/assets/{_YyV-EVam.js → _CHSMtXGV.js} +1 -1
- package/dist/public/assets/_CHSMtXGV.js.br +0 -0
- package/dist/public/assets/{_DFmhG3rm2.js → _CHu5Km3j2.js} +1 -1
- package/dist/public/assets/_CHu5Km3j2.js.br +0 -0
- package/dist/public/assets/{_i50DwB9Z2.js → _CKqbHwCF2.js} +1 -1
- package/dist/public/assets/_CKqbHwCF2.js.br +0 -0
- package/dist/public/assets/{_Bt5xnL2D2.js → _CNW9dpu42.js} +1 -1
- package/dist/public/assets/_CNW9dpu42.js.br +0 -0
- package/dist/public/assets/{_bRvxXZbS.js → _CRtlCbY-.js} +1 -1
- package/dist/public/assets/_CRtlCbY-.js.br +0 -0
- package/dist/public/assets/{_BS7qhSY6.js → _CaZfk2zB.js} +1 -1
- package/dist/public/assets/_CaZfk2zB.js.br +0 -0
- package/dist/public/assets/{_B_0nqTdg2.js → _CbFus18_2.js} +1 -1
- package/dist/public/assets/_CbFus18_2.js.br +0 -0
- package/dist/public/assets/{_zIcbcxRV2.js → _Cerr01H42.js} +1 -1
- package/dist/public/assets/_Cerr01H42.js.br +0 -0
- package/dist/public/assets/{_D8yYAlmO.js → _Ch3aclh9.js} +1 -1
- package/dist/public/assets/_Ch3aclh9.js.br +0 -0
- package/dist/public/assets/{_D4Uyoa0g2.js → _CnF5wkxz2.js} +1 -1
- package/dist/public/assets/_CnF5wkxz2.js.br +0 -0
- package/dist/public/assets/{_DGKIFykf.js → _CqgdIwou.js} +1 -1
- package/dist/public/assets/_CqgdIwou.js.br +0 -0
- package/dist/public/assets/{_BZ5oh9fs.js → _CvciVzJE.js} +1 -1
- package/dist/public/assets/_CvciVzJE.js.br +0 -0
- package/dist/public/assets/{_D2inRKMJ.js → _Cwn2Dzif.js} +1 -1
- package/dist/public/assets/_Cwn2Dzif.js.br +0 -0
- package/dist/public/assets/{_DIhnt-RM.js → _CzGmg6J6.js} +1 -1
- package/dist/public/assets/_CzGmg6J6.js.br +0 -0
- package/dist/public/assets/{_VXhkFKrd2.js → _CzuNzNf52.js} +1 -1
- package/dist/public/assets/_CzuNzNf52.js.br +0 -0
- package/dist/public/assets/{_DMqW9uIi2.js → _D0XB9M1F2.js} +1 -1
- package/dist/public/assets/_D0XB9M1F2.js.br +0 -0
- package/dist/public/assets/{_B1jHOqZH.js → _D3o4Rxbh.js} +1 -1
- package/dist/public/assets/_D3o4Rxbh.js.br +0 -0
- package/dist/public/assets/{__T5qbsZi.js → _D8QuoF51.js} +1 -1
- package/dist/public/assets/_D8QuoF51.js.br +0 -0
- package/dist/public/assets/{_B0hS9ikc.js → _D8ZjEIBC.js} +1 -1
- package/dist/public/assets/_D8ZjEIBC.js.br +0 -0
- package/dist/public/assets/{_CAx_6lfv.js → _D8kpusiR.js} +1 -1
- package/dist/public/assets/_D8kpusiR.js.br +0 -0
- package/dist/public/assets/{_dfU2imZ4.js → _D9Iriq-Y.js} +1 -1
- package/dist/public/assets/_D9Iriq-Y.js.br +0 -0
- package/dist/public/assets/{_BlMjgG5a.js → _DCUcB2sk.js} +1 -1
- package/dist/public/assets/_DCUcB2sk.js.br +0 -0
- package/dist/public/assets/{_wbLaii1_.js → _DI8J66CZ.js} +1 -1
- package/dist/public/assets/_DI8J66CZ.js.br +0 -0
- package/dist/public/assets/{_DHIGTTg6.js → _DPjHjfD8.js} +1 -1
- package/dist/public/assets/_DPjHjfD8.js.br +0 -0
- package/dist/public/assets/{_fxHb-KbN2.js → _DYN4MZjM2.js} +1 -1
- package/dist/public/assets/_DYN4MZjM2.js.br +0 -0
- package/dist/public/assets/{_C6R_qpkO.js → _D_7Jyml2.js} +1 -1
- package/dist/public/assets/_D_7Jyml2.js.br +0 -0
- package/dist/public/assets/{_19yjqtuP.js → _D_Ut2Ol9.js} +1 -1
- package/dist/public/assets/_D_Ut2Ol9.js.br +0 -0
- package/dist/public/assets/{_9Cb6PnoF2.js → _DdeqfoDq2.js} +1 -1
- package/dist/public/assets/_DdeqfoDq2.js.br +0 -0
- package/dist/public/assets/{_CP5BtWSQ.js → _Dfr7TISb.js} +1 -1
- package/dist/public/assets/_Dfr7TISb.js.br +0 -0
- package/dist/public/assets/{_BCKtabuZ2.js → _DkuBJFLN2.js} +1 -1
- package/dist/public/assets/_DkuBJFLN2.js.br +0 -0
- package/dist/public/assets/{_DK0lys0m.js → _DmknNPV-.js} +1 -1
- package/dist/public/assets/_DmknNPV-.js.br +0 -0
- package/dist/public/assets/{_DgfTg0IW2.js → _DyVuhWqf2.js} +1 -1
- package/dist/public/assets/_DyVuhWqf2.js.br +0 -0
- package/dist/public/assets/{_BfXdOIFL.js → _DzyBRpRU.js} +1 -1
- package/dist/public/assets/_DzyBRpRU.js.br +0 -0
- package/dist/public/assets/{_CQsoywcI.js → _E4WOoQhA.js} +1 -1
- package/dist/public/assets/_E4WOoQhA.js.br +0 -0
- package/dist/public/assets/{_B8wWQ620.js → _Em_sWtVW.js} +46 -46
- package/dist/public/assets/_Em_sWtVW.js.br +0 -0
- package/dist/public/assets/{_BGtYhUy5.js → _FsklS6Cf.js} +1 -1
- package/dist/public/assets/_FsklS6Cf.js.br +0 -0
- package/dist/public/assets/{_BavnyJ90.js → _Qqf8g1TK.js} +1 -1
- package/dist/public/assets/_Qqf8g1TK.js.br +0 -0
- package/dist/public/assets/{_hyQI5FsG.js → _TPFL8bDN.js} +1 -1
- package/dist/public/assets/_TPFL8bDN.js.br +0 -0
- package/dist/public/assets/{_BFDKvdah.js → _a17toZcs.js} +1 -1
- package/dist/public/assets/_a17toZcs.js.br +0 -0
- package/dist/public/assets/{_DcNus2Vf2.js → _jEfYpM3E2.js} +1 -1
- package/dist/public/assets/_jEfYpM3E2.js.br +0 -0
- package/dist/public/assets/{_Drn3lXQP2.js → _koIBjoCI2.js} +1 -1
- package/dist/public/assets/{_CeELTPQl.js → _mf72EOR_.js} +1 -1
- package/dist/public/assets/_mf72EOR_.js.br +0 -0
- package/dist/public/assets/{_CBZeUUWn2.js → _tMvc_5W_2.js} +1 -1
- package/dist/public/assets/{_Cl1qk0QM.js → _uVBAFIy8.js} +1 -1
- package/dist/public/assets/_uVBAFIy8.js.br +0 -0
- package/dist/public/assets/{_D6aLEWL7.js → _vBAanm_x.js} +1 -1
- package/dist/public/assets/_vBAanm_x.js.br +0 -0
- package/dist/public/assets/{_CN7YZ9Jt.js → _vE0bTBGo.js} +1 -1
- package/dist/public/assets/_vE0bTBGo.js.br +0 -0
- package/dist/public/assets/{_xMSqf4Dz.js → _xACnj4IY.js} +1 -1
- package/dist/public/assets/_xACnj4IY.js.br +0 -0
- package/dist/public/assets/{_vC8X4_FF.js → _xIRNtE1V.js} +1 -1
- package/dist/public/assets/_xIRNtE1V.js.br +0 -0
- package/dist/public/assets/{_CsPn7vMJ2.js → _y6bl1mtk2.js} +1 -1
- package/dist/public/assets/_y6bl1mtk2.js.br +0 -0
- package/dist/public/assets/app-page-B1_16TZW.css +1 -0
- package/dist/public/assets/app-page-B1_16TZW.css.br +0 -0
- package/dist/public/assets/diff-view-CKc458jK.css +1 -0
- package/dist/public/assets/diff-view-CKc458jK.css.br +0 -0
- package/dist/public/assets/new-BpwV-DKC.js +1 -0
- package/dist/public/assets/settings-BpwV-DKC.js +1 -0
- package/dist/public/assets/w-BpwV-DKC.js +1 -0
- package/dist/public/assets/w._-BpwV-DKC.js +1 -0
- package/dist/public/assets/w._-C0I_DcpJ.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_19yjqtuP.js.br +0 -0
- package/dist/public/assets/_6wZbjEqF.js.br +0 -0
- package/dist/public/assets/_7HSHWkd02.js.br +0 -0
- package/dist/public/assets/_9Cb6PnoF2.js.br +0 -0
- package/dist/public/assets/_B0hS9ikc.js.br +0 -0
- package/dist/public/assets/_B1jHOqZH.js.br +0 -0
- package/dist/public/assets/_B1tDI_nQ.js.br +0 -0
- package/dist/public/assets/_B8wWQ620.js.br +0 -0
- package/dist/public/assets/_BAC_-o69.js.br +0 -0
- package/dist/public/assets/_BC2fmz4Y2.js.br +0 -0
- package/dist/public/assets/_BCKtabuZ2.js.br +0 -0
- package/dist/public/assets/_BCw4FOz1.js.br +0 -0
- package/dist/public/assets/_BFDKvdah.js.br +0 -0
- package/dist/public/assets/_BGtYhUy5.js.br +0 -0
- package/dist/public/assets/_BS7qhSY6.js.br +0 -0
- package/dist/public/assets/_BZ5oh9fs.js.br +0 -0
- package/dist/public/assets/_B_0nqTdg2.js.br +0 -0
- package/dist/public/assets/_BavnyJ90.js.br +0 -0
- package/dist/public/assets/_BfXdOIFL.js.br +0 -0
- package/dist/public/assets/_BlMjgG5a.js.br +0 -0
- package/dist/public/assets/_BpdeumzG.js +0 -85
- package/dist/public/assets/_BpdeumzG.js.br +0 -0
- package/dist/public/assets/_Bt5xnL2D2.js.br +0 -0
- package/dist/public/assets/_C12MnCJE2.js.br +0 -0
- package/dist/public/assets/_C6R_qpkO.js.br +0 -0
- package/dist/public/assets/_C8Iu43Ry.js.br +0 -0
- package/dist/public/assets/_CAx_6lfv.js.br +0 -0
- package/dist/public/assets/_CN7YZ9Jt.js.br +0 -0
- package/dist/public/assets/_CP5BtWSQ.js.br +0 -0
- package/dist/public/assets/_CPP_bPjn.js.br +0 -0
- package/dist/public/assets/_CQsoywcI.js.br +0 -0
- package/dist/public/assets/_CeELTPQl.js.br +0 -0
- package/dist/public/assets/_Cl1qk0QM.js.br +0 -0
- package/dist/public/assets/_CsPn7vMJ2.js.br +0 -0
- package/dist/public/assets/_D2inRKMJ.js.br +0 -0
- package/dist/public/assets/_D3DCFNQ9.js.br +0 -0
- package/dist/public/assets/_D4Uyoa0g2.js.br +0 -0
- package/dist/public/assets/_D6aLEWL7.js.br +0 -0
- package/dist/public/assets/_D8yYAlmO.js.br +0 -0
- package/dist/public/assets/_DFmhG3rm2.js.br +0 -0
- package/dist/public/assets/_DFoZ_gHS.js.br +0 -0
- package/dist/public/assets/_DGKIFykf.js.br +0 -0
- package/dist/public/assets/_DHIGTTg6.js.br +0 -0
- package/dist/public/assets/_DIhnt-RM.js.br +0 -0
- package/dist/public/assets/_DJWz5IwD.js.br +0 -0
- package/dist/public/assets/_DK0lys0m.js.br +0 -0
- package/dist/public/assets/_DKFPQ1582.js.br +0 -0
- package/dist/public/assets/_DMqW9uIi2.js.br +0 -0
- package/dist/public/assets/_DXC_JO9C2.js.br +0 -0
- package/dist/public/assets/_DcNus2Vf2.js.br +0 -0
- package/dist/public/assets/_DcqgsKkp.js.br +0 -0
- package/dist/public/assets/_DgfTg0IW2.js.br +0 -0
- package/dist/public/assets/_DxP9fuIM2.js.br +0 -0
- package/dist/public/assets/_MMZVDI0Q2.js.br +0 -0
- package/dist/public/assets/_QZPTxSDf2.js.br +0 -0
- package/dist/public/assets/_Txji4y3b.js.br +0 -0
- package/dist/public/assets/_VXhkFKrd2.js.br +0 -0
- package/dist/public/assets/_YHDsSm6D.js.br +0 -0
- package/dist/public/assets/_YyV-EVam.js.br +0 -0
- package/dist/public/assets/__T5qbsZi.js.br +0 -0
- package/dist/public/assets/_amMU20AI.js.br +0 -0
- package/dist/public/assets/_bRvxXZbS.js.br +0 -0
- package/dist/public/assets/_dfU2imZ4.js.br +0 -0
- package/dist/public/assets/_fxHb-KbN2.js.br +0 -0
- package/dist/public/assets/_hyQI5FsG.js.br +0 -0
- package/dist/public/assets/_i50DwB9Z2.js.br +0 -0
- package/dist/public/assets/_loA_xJ2W.js.br +0 -0
- package/dist/public/assets/_o-goWiqn.js.br +0 -0
- package/dist/public/assets/_vC8X4_FF.js.br +0 -0
- package/dist/public/assets/_vGqkGb_u.js.br +0 -0
- package/dist/public/assets/_wbLaii1_.js.br +0 -0
- package/dist/public/assets/_x7q187z1.js.br +0 -0
- package/dist/public/assets/_xMSqf4Dz.js.br +0 -0
- package/dist/public/assets/_zIcbcxRV2.js.br +0 -0
- package/dist/public/assets/app-page-BB6oW8H9.css +0 -1
- package/dist/public/assets/app-page-BB6oW8H9.css.br +0 -0
- package/dist/public/assets/diff-view-DU-XDz7X.css +0 -1
- package/dist/public/assets/diff-view-DU-XDz7X.css.br +0 -0
- package/dist/public/assets/new-BmwwujAD.js +0 -1
- package/dist/public/assets/settings-BmwwujAD.js +0 -1
- package/dist/public/assets/w-BmwwujAD.js +0 -1
- package/dist/public/assets/w._-BmwwujAD.js +0 -1
- package/dist/public/assets/w._-DQmoJHNi.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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 "./_C_EF8rh-.js";
|
|
2
2
|
//#region src/client/router.ts
|
|
3
3
|
function urlFor(r) {
|
|
4
4
|
if (r.view === "settings") return "/settings";
|
|
@@ -242,7 +242,7 @@ function treeDirs(files) {
|
|
|
242
242
|
};
|
|
243
243
|
return build(root, "", "", -1);
|
|
244
244
|
}
|
|
245
|
-
var treeToggle = "
|
|
245
|
+
var treeToggle = "_dI _0 _j";
|
|
246
246
|
//#endregion
|
|
247
247
|
//#region src/tags/diff-send.marko
|
|
248
248
|
var diff_send_default = _template("i", (input) => {
|
|
@@ -252,7 +252,7 @@ var diff_send_default = _template("i", (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("_fl")}><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("i", (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("_fm")}><button type=button${_attr_class(["_p", "_fn"])}${_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
|
}, "i0", $scope2_id), () => {
|
|
269
|
-
_html(`<select${_attr_class("
|
|
269
|
+
_html(`<select${_attr_class("_fo")} 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,41 +1832,45 @@ var diff_find_default = _template("h", (input) => {
|
|
|
1832
1832
|
el.select();
|
|
1833
1833
|
}, 0);
|
|
1834
1834
|
}, "h5", $scope0_id);
|
|
1835
|
-
_html(`<div${_attr_class(["
|
|
1835
|
+
_html(`<div${_attr_class(["_fO", !open && "_fN"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1836
1836
|
type(v);
|
|
1837
|
-
}, "h0", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
1837
|
+
}, "h0", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_fR")}>${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
|
+
icon_arrow_up_default({ size: 14 });
|
|
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
|
+
icon_arrow_down_default({ size: 14 });
|
|
1841
|
+
_html(`</button>${_el_resume($scope0_id, "g")}<button type=button${_attr_class(findIconBtn)} title="Close find" tabindex=${open ? "0" : "-1"}>`);
|
|
1838
1842
|
icon_xmark_default({ size: 14 });
|
|
1839
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
1843
|
+
_html(`</button>${_el_resume($scope0_id, "i")}</div>${_el_resume($scope0_id, "a")}`);
|
|
1840
1844
|
_script($scope0_id, "h6");
|
|
1841
1845
|
_script($scope0_id, "h7");
|
|
1842
1846
|
_script($scope0_id, "h8");
|
|
1843
1847
|
writeScope($scope0_id, {
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1848
|
+
m: _serialize_if($scope0_reason, 1) && input.open,
|
|
1849
|
+
n: _serialize_if($scope0_reason, 0) && input.openChange,
|
|
1850
|
+
p: _serialize_if($scope0_reason, 3) && input.query,
|
|
1851
|
+
q: _serialize_if($scope0_reason, 2) && input.queryChange,
|
|
1852
|
+
s: _serialize_if($scope0_reason, 5) && input.state,
|
|
1853
|
+
t: _serialize_if($scope0_reason, 4) && input.stateChange,
|
|
1854
|
+
v: input.files,
|
|
1855
|
+
w: input.focusRef,
|
|
1856
|
+
x: input.tick,
|
|
1857
|
+
y: open,
|
|
1858
|
+
a0: query,
|
|
1859
|
+
a5: hi,
|
|
1860
|
+
a7: hits?.length,
|
|
1861
|
+
aa: at,
|
|
1862
|
+
ad: live.open,
|
|
1863
|
+
ag: box.timer,
|
|
1864
|
+
ai: box.tick,
|
|
1865
|
+
aj: box.wasOpen,
|
|
1866
|
+
ak: emit,
|
|
1867
|
+
an: type,
|
|
1868
|
+
ap: next,
|
|
1869
|
+
aq: close,
|
|
1870
|
+
ar: focusInput,
|
|
1871
|
+
z: input.openChange || void 0,
|
|
1872
|
+
a1: input.queryChange || void 0,
|
|
1873
|
+
a4: input.stateChange || void 0
|
|
1870
1874
|
});
|
|
1871
1875
|
_resume_branch($scope0_id);
|
|
1872
1876
|
});
|
|
@@ -1931,14 +1935,65 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
1931
1935
|
}
|
|
1932
1936
|
return shortHeadFallback(head);
|
|
1933
1937
|
}
|
|
1934
|
-
var repoWorktree = "
|
|
1935
|
-
var repoTitle = "
|
|
1938
|
+
var repoWorktree = "_gV _x";
|
|
1939
|
+
var repoTitle = "_g1 _w";
|
|
1940
|
+
//#endregion
|
|
1941
|
+
//#region src/tags/icons/icon-chevron-right.marko
|
|
1942
|
+
var icon_chevron_right_default = _template("Q", (input) => {
|
|
1943
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1944
|
+
const $scope0_id = _scope_id();
|
|
1945
|
+
_set_serialize_reason({
|
|
1946
|
+
0: $sg__input_size__OR__input_class,
|
|
1947
|
+
1: $sg__input_size__OR__input_class
|
|
1948
|
+
});
|
|
1949
|
+
const $childScope = _peek_scope_id();
|
|
1950
|
+
icon_base_default({
|
|
1951
|
+
d: "M9 6L15 12L9 18",
|
|
1952
|
+
size: input.size,
|
|
1953
|
+
class: input.class
|
|
1954
|
+
});
|
|
1955
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
1956
|
+
});
|
|
1957
|
+
//#endregion
|
|
1958
|
+
//#region src/tags/icons/icon-chevron-down.marko
|
|
1959
|
+
var icon_chevron_down_default = _template("P", (input) => {
|
|
1960
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1961
|
+
const $scope0_id = _scope_id();
|
|
1962
|
+
_set_serialize_reason({
|
|
1963
|
+
0: $sg__input_size__OR__input_class,
|
|
1964
|
+
1: $sg__input_size__OR__input_class
|
|
1965
|
+
});
|
|
1966
|
+
const $childScope = _peek_scope_id();
|
|
1967
|
+
icon_base_default({
|
|
1968
|
+
d: "M6 9L12 15L18 9",
|
|
1969
|
+
size: input.size,
|
|
1970
|
+
class: input.class
|
|
1971
|
+
});
|
|
1972
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
1973
|
+
});
|
|
1974
|
+
//#endregion
|
|
1975
|
+
//#region src/tags/icons/icon-comment.marko
|
|
1976
|
+
var icon_comment_default = _template("S", (input) => {
|
|
1977
|
+
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
1978
|
+
const $scope0_id = _scope_id();
|
|
1979
|
+
_set_serialize_reason({
|
|
1980
|
+
0: $sg__input_size__OR__input_class,
|
|
1981
|
+
1: $sg__input_size__OR__input_class
|
|
1982
|
+
});
|
|
1983
|
+
const $childScope = _peek_scope_id();
|
|
1984
|
+
icon_base_default({
|
|
1985
|
+
d: "M12 22C17.5228 22 22 17.5228 22 12C22 6.47715 17.5228 2 12 2C6.47715 2 2 6.47715 2 12C2 13.8214 2.48697 15.5291 3.33782 17L2.5 21.5L7 20.6622C8.47087 21.513 10.1786 22 12 22Z",
|
|
1986
|
+
size: input.size,
|
|
1987
|
+
class: input.class
|
|
1988
|
+
});
|
|
1989
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
1990
|
+
});
|
|
1936
1991
|
tone.warn;
|
|
1937
1992
|
var diff_file_default = _template("g", (input) => {
|
|
1938
1993
|
_scope_reason();
|
|
1939
1994
|
const $scope0_id = _scope_id();
|
|
1940
1995
|
_el($scope0_id, "g0");
|
|
1941
|
-
_html(`<div${_attr_class(["
|
|
1996
|
+
_html(`<div${_attr_class(["_hj", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
1942
1997
|
_script($scope0_id, "g1");
|
|
1943
1998
|
writeScope($scope0_id, {
|
|
1944
1999
|
e: input.file,
|
|
@@ -1959,7 +2014,7 @@ var diff_file_default = _template("g", (input) => {
|
|
|
1959
2014
|
//#endregion
|
|
1960
2015
|
//#region src/tags/review-section.marko
|
|
1961
2016
|
var review_section_default = _template("t", (input) => {
|
|
1962
|
-
const $scope0_reason = _scope_reason(), $sg__input_repo = _serialize_guard($scope0_reason, 34), $si__input_repo = _serialize_if($scope0_reason, 34), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened = _serialize_guard($scope0_reason, 31), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_guard($scope0_reason, 13), $sg__input_repo__OR__input_files_length = _serialize_guard($scope0_reason, 0), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_if($scope0_reason, 13), $sg__input_files__OR__input_shownKeys = _serialize_guard($scope0_reason, 3), $sg__input_files__OR__input_onlyNew = _serialize_guard($scope0_reason, 4), $sg__input_files = _serialize_guard($scope0_reason, 35), $sg__input_files__OR__input_commentsByFile = _serialize_guard($scope0_reason, 5), $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles = _serialize_guard($scope0_reason, 18), $si__input_files__OR__input_collapsedFiles = _serialize_if($scope0_reason, 6), $si__input_files = _serialize_if($scope0_reason, 35), $si__input_files__OR__input_commentsByFile = _serialize_if($scope0_reason, 5), $si__input_findHit_key = _serialize_if($scope0_reason, 43), $sg__input_files__OR__input_collapsedFiles = _serialize_guard($scope0_reason, 6), $si__input_onFileToggle = _serialize_if($scope0_reason, 44), $si__input_repo__OR__input_files__OR__input_shownKeys = _serialize_if($scope0_reason, 11), $si__input_collapsible__OR__input_collapsed = _serialize_if($scope0_reason, 9), $si__input_files__OR__input_collapsible__OR__input_collapsed__OR__input_opened = _serialize_if($scope0_reason, 24), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers = _serialize_if($scope0_reason, 23), $si__input_files__OR__input_shownKeys = _serialize_if($scope0_reason, 3), $si__input_files__OR__input_onlyNew = _serialize_if($scope0_reason, 4), $si__input = _serialize_if($scope0_reason, 33), $si__input_draft = _serialize_if($scope0_reason, 46), $si__input_sessions = _serialize_if($scope0_reason, 47), $si__input_onSelect = _serialize_if($scope0_reason, 48), $si__input_onSaveComment = _serialize_if($scope0_reason, 49), $si__input_onSendDraft = _serialize_if($scope0_reason, 50), $si__input_onCancelDraft = _serialize_if($scope0_reason, 51), $si__input_onDeleteComment = _serialize_if($scope0_reason, 52), $si__input_onEditComment = _serialize_if($scope0_reason, 53), $si__input_onSendComment = _serialize_if($scope0_reason, 54), $si__input_onError = _serialize_if($scope0_reason, 55), $si__input_shownKeys = _serialize_if($scope0_reason, 36), $si__input_commentsByFile = _serialize_if($scope0_reason, 41), $si__input_collapsedFiles = _serialize_if($scope0_reason, 42), $si__input_findHit_line = _serialize_if($scope0_reason, 45);
|
|
2017
|
+
const $scope0_reason = _scope_reason(), $si__input_collapsed = _serialize_if($scope0_reason, 39), $sg__input_collapsed = _serialize_guard($scope0_reason, 39), $sg__input_repo = _serialize_guard($scope0_reason, 34), $si__input_repo = _serialize_if($scope0_reason, 34), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened = _serialize_guard($scope0_reason, 31), $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_guard($scope0_reason, 13), $sg__input_repo__OR__input_files_length = _serialize_guard($scope0_reason, 0), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName = _serialize_if($scope0_reason, 13), $sg__input_files__OR__input_shownKeys = _serialize_guard($scope0_reason, 3), $sg__input_files__OR__input_onlyNew = _serialize_guard($scope0_reason, 4), $sg__input_files = _serialize_guard($scope0_reason, 35), $sg__input_files__OR__input_commentsByFile = _serialize_guard($scope0_reason, 5), $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles = _serialize_guard($scope0_reason, 18), $si__input_files__OR__input_collapsedFiles = _serialize_if($scope0_reason, 6), $si__input_files = _serialize_if($scope0_reason, 35), $si__input_files__OR__input_commentsByFile = _serialize_if($scope0_reason, 5), $si__input_findHit_key = _serialize_if($scope0_reason, 43), $sg__input_files__OR__input_collapsedFiles = _serialize_guard($scope0_reason, 6), $si__input_onFileToggle = _serialize_if($scope0_reason, 44), $si__input_repo__OR__input_files__OR__input_shownKeys = _serialize_if($scope0_reason, 11), $si__input_collapsible__OR__input_collapsed = _serialize_if($scope0_reason, 9), $si__input_files__OR__input_collapsible__OR__input_collapsed__OR__input_opened = _serialize_if($scope0_reason, 24), $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers = _serialize_if($scope0_reason, 23), $si__input_files__OR__input_shownKeys = _serialize_if($scope0_reason, 3), $si__input_files__OR__input_onlyNew = _serialize_if($scope0_reason, 4), $si__input = _serialize_if($scope0_reason, 33), $si__input_draft = _serialize_if($scope0_reason, 46), $si__input_sessions = _serialize_if($scope0_reason, 47), $si__input_onSelect = _serialize_if($scope0_reason, 48), $si__input_onSaveComment = _serialize_if($scope0_reason, 49), $si__input_onSendDraft = _serialize_if($scope0_reason, 50), $si__input_onCancelDraft = _serialize_if($scope0_reason, 51), $si__input_onDeleteComment = _serialize_if($scope0_reason, 52), $si__input_onEditComment = _serialize_if($scope0_reason, 53), $si__input_onSendComment = _serialize_if($scope0_reason, 54), $si__input_onError = _serialize_if($scope0_reason, 55), $si__input_shownKeys = _serialize_if($scope0_reason, 36), $si__input_commentsByFile = _serialize_if($scope0_reason, 41), $si__input_collapsedFiles = _serialize_if($scope0_reason, 42), $si__input_findHit_line = _serialize_if($scope0_reason, 45);
|
|
1963
2018
|
const $scope0_id = _scope_id();
|
|
1964
2019
|
const $input__closures = /* @__PURE__ */ new Set();
|
|
1965
2020
|
const $input_draft__closures = /* @__PURE__ */ new Set();
|
|
@@ -1997,15 +2052,29 @@ var review_section_default = _template("t", (input) => {
|
|
|
1997
2052
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
1998
2053
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
1999
2054
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
2000
|
-
_html(`<section${_attr_class("
|
|
2055
|
+
_html(`<section${_attr_class("_gR")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownCount && !repo.pr && input.findHit?.repo !== repo.id)}><div${_attr_class(["_gS", { ["_gT"]: input.collapsible && input.collapsed }])}>`);
|
|
2001
2056
|
_if(() => {
|
|
2002
2057
|
if (input.collapsible) {
|
|
2003
2058
|
const $scope1_id = _scope_id();
|
|
2004
|
-
_html(`<button type=button${_attr_class("
|
|
2005
|
-
"
|
|
2006
|
-
!input.collapsed && "
|
|
2007
|
-
input.expanding && "
|
|
2008
|
-
])} aria-hidden=true
|
|
2059
|
+
_html(`<button type=button${_attr_class("_gU")} 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([
|
|
2060
|
+
"_hd",
|
|
2061
|
+
!input.collapsed && "_he",
|
|
2062
|
+
input.expanding && "_hf"
|
|
2063
|
+
])} aria-hidden=true>`);
|
|
2064
|
+
_if(() => {
|
|
2065
|
+
if (input.collapsed) {
|
|
2066
|
+
const $scope16_id = _scope_id();
|
|
2067
|
+
icon_chevron_right_default({ size: 14 });
|
|
2068
|
+
$si__input_collapsed && writeScope($scope16_id, {});
|
|
2069
|
+
return 0;
|
|
2070
|
+
} else {
|
|
2071
|
+
const $scope17_id = _scope_id();
|
|
2072
|
+
icon_chevron_down_default({ size: 14 });
|
|
2073
|
+
$si__input_collapsed && writeScope($scope17_id, {});
|
|
2074
|
+
return 1;
|
|
2075
|
+
}
|
|
2076
|
+
}, $scope1_id, "b", $sg__input_collapsed, _serialize_guard($scope0_reason, 10), $sg__input_collapsed, "</span>", 1);
|
|
2077
|
+
_html(`<span${_attr_class(repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope1_id, "d", $sg__input_repo)}</span></button>${_el_resume($scope1_id, "a")}`);
|
|
2009
2078
|
_script($scope1_id, "t9");
|
|
2010
2079
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
2011
2080
|
return 0;
|
|
@@ -2029,14 +2098,14 @@ var review_section_default = _template("t", (input) => {
|
|
|
2029
2098
|
return 1;
|
|
2030
2099
|
}
|
|
2031
2100
|
}, $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);
|
|
2032
|
-
_html(`<span${_attr_class("
|
|
2101
|
+
_html(`<span${_attr_class("_g2")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_I", "_g3"])}>${_escape(compare$1.base)}${_el_resume($scope0_id, "g", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span><span${_attr_class(["_K", "_g5"])} aria-hidden=true>vs</span><span${_attr_class(["_I", "_g4"])}>${_escape(compare$1.head)}${_el_resume($scope0_id, "j", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2033
2102
|
_if(() => {
|
|
2034
2103
|
if (compare$1.topic) {
|
|
2035
2104
|
const $scope15_id = _scope_id();
|
|
2036
2105
|
_html(`<span${_attr_class([
|
|
2037
2106
|
"_I",
|
|
2038
2107
|
tone.accent,
|
|
2039
|
-
"
|
|
2108
|
+
"_g6"
|
|
2040
2109
|
])}>${_escape(compare$1.topic)}${_el_resume($scope15_id, "b", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2041
2110
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
2042
2111
|
return 0;
|
|
@@ -2049,7 +2118,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2049
2118
|
_html(`<button type=button${_attr_class([
|
|
2050
2119
|
"_I",
|
|
2051
2120
|
tone.warn,
|
|
2052
|
-
"
|
|
2121
|
+
"_g7"
|
|
2053
2122
|
])}${_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")}`);
|
|
2054
2123
|
_script($scope2_id, "t10");
|
|
2055
2124
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2059,7 +2128,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2059
2128
|
_if(() => {
|
|
2060
2129
|
if (repo.contained && input.files.length) {
|
|
2061
2130
|
const $scope13_id = _scope_id();
|
|
2062
|
-
_html(`<span${_attr_class(["_I", "
|
|
2131
|
+
_html(`<span${_attr_class(["_I", "_g7"])}${_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)}`);
|
|
2063
2132
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
2064
2133
|
return 0;
|
|
2065
2134
|
}
|
|
@@ -2067,16 +2136,16 @@ var review_section_default = _template("t", (input) => {
|
|
|
2067
2136
|
_if(() => {
|
|
2068
2137
|
if (input.localDiffers) {
|
|
2069
2138
|
const $scope3_id = _scope_id();
|
|
2070
|
-
_html(`<span${_attr_class(["_I", "
|
|
2139
|
+
_html(`<span${_attr_class(["_I", "_g7"])}${_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)}`);
|
|
2071
2140
|
$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) });
|
|
2072
2141
|
return 0;
|
|
2073
2142
|
}
|
|
2074
2143
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 40), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
2075
|
-
_html(`<span${_attr_class("
|
|
2144
|
+
_html(`<span${_attr_class("_gW")}><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>`);
|
|
2076
2145
|
_if(() => {
|
|
2077
2146
|
if (stats.additions || stats.deletions) {
|
|
2078
2147
|
const $scope14_id = _scope_id();
|
|
2079
|
-
_html(`<span${_attr_class("
|
|
2148
|
+
_html(`<span${_attr_class("_gX")}>+${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.additions)}${_el_resume($scope14_id, "b", $sg__input_files__OR__input_shownKeys)}</span><span${_attr_class("_gY")}>−${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.deletions)}${_el_resume($scope14_id, "d", $sg__input_files__OR__input_shownKeys)}</span>`);
|
|
2080
2149
|
$si__input_files__OR__input_shownKeys && writeScope($scope14_id, { _: _scope_with_id($scope0_id) });
|
|
2081
2150
|
return 0;
|
|
2082
2151
|
}
|
|
@@ -2084,7 +2153,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2084
2153
|
_if(() => {
|
|
2085
2154
|
if (newCount || input.onlyNew) {
|
|
2086
2155
|
const $scope4_id = _scope_id();
|
|
2087
|
-
_html(`<button type=button${_attr_class(["
|
|
2156
|
+
_html(`<button type=button${_attr_class(["_g0", { ["_gZ"]: 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")}`);
|
|
2088
2157
|
_script($scope4_id, "t11");
|
|
2089
2158
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
2090
2159
|
return 0;
|
|
@@ -2094,7 +2163,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2094
2163
|
_if(() => {
|
|
2095
2164
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
2096
2165
|
const $scope5_id = _scope_id();
|
|
2097
|
-
_html(`<div${_attr_class("
|
|
2166
|
+
_html(`<div${_attr_class("_g9")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
2098
2167
|
_for_of(input.files, (file$1) => {
|
|
2099
2168
|
const $scope6_id = _scope_id();
|
|
2100
2169
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -2104,39 +2173,41 @@ var review_section_default = _template("t", (input) => {
|
|
|
2104
2173
|
const expanded = !input.collapsedFiles.has(file$1.key);
|
|
2105
2174
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
2106
2175
|
input.onFileToggle(file$1.key, open);
|
|
2107
|
-
}, "t0", $scope6_id))}${_attr_class(["
|
|
2176
|
+
}, "t0", $scope6_id))}${_attr_class(["_g_", input.findHit?.key === file$1.key && "_gP"])}${_attr("data-key", file$1.key)}${_attr("hidden", !input.shownKeys.has(file$1.key))}><summary${_attr_class("_hb")}><span${_attr_class("_hg")}${_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(["_hh", input.findHit?.key === file$1.key && input.findHit.line < 1 && "_gQ"])}${_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))}`);
|
|
2108
2177
|
_if(() => {
|
|
2109
2178
|
if (file$1.changedSince) {
|
|
2110
|
-
const $
|
|
2111
|
-
_html(`<span${_attr_class(["_z", "
|
|
2112
|
-
$si__input_files && writeScope($
|
|
2179
|
+
const $scope19_id = _scope_id();
|
|
2180
|
+
_html(`<span${_attr_class(["_z", "_g8"])} title="Changed since your last visit"></span>`);
|
|
2181
|
+
$si__input_files && writeScope($scope19_id, {});
|
|
2113
2182
|
return 0;
|
|
2114
2183
|
}
|
|
2115
2184
|
}, $scope6_id, "g", $sg__input_files, $sg__input_files, $sg__input_files__OR__input_commentsByFile__OR__input_collapsedFiles, 0, 1);
|
|
2116
2185
|
_if(() => {
|
|
2117
2186
|
if (fileComments.length) {
|
|
2118
|
-
const $
|
|
2119
|
-
_html(`<span${_attr_class("_s")}
|
|
2120
|
-
|
|
2187
|
+
const $scope18_id = _scope_id();
|
|
2188
|
+
_html(`<span${_attr_class("_s")}>`);
|
|
2189
|
+
icon_comment_default({ size: 12 });
|
|
2190
|
+
_html(` ${_sep($sg__input_files__OR__input_commentsByFile)}${_escape(fileComments.length)}${_el_resume($scope18_id, "c", $sg__input_files__OR__input_commentsByFile)}</span>`);
|
|
2191
|
+
$si__input_files__OR__input_commentsByFile && writeScope($scope18_id, { _: _scope_with_id($scope6_id) });
|
|
2121
2192
|
return 0;
|
|
2122
2193
|
}
|
|
2123
2194
|
}, $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);
|
|
2124
2195
|
_html("</summary>");
|
|
2125
2196
|
_if(() => {
|
|
2126
2197
|
if (file$1.binary) {
|
|
2127
|
-
const $
|
|
2128
|
-
_html(`<p${_attr_class(["
|
|
2129
|
-
$si__input_files__OR__input_collapsedFiles && writeScope($
|
|
2198
|
+
const $scope20_id = _scope_id();
|
|
2199
|
+
_html(`<p${_attr_class(["_hi", "_ha"])}>binary file</p>`);
|
|
2200
|
+
$si__input_files__OR__input_collapsedFiles && writeScope($scope20_id, {});
|
|
2130
2201
|
return 0;
|
|
2131
2202
|
} else if (file$1.tooLarge) {
|
|
2132
|
-
const $
|
|
2133
|
-
_html(`<p${_attr_class(["
|
|
2134
|
-
$si__input_files__OR__input_collapsedFiles && writeScope($
|
|
2203
|
+
const $scope21_id = _scope_id();
|
|
2204
|
+
_html(`<p${_attr_class(["_hi", "_ha"])}>file too large to display</p>`);
|
|
2205
|
+
$si__input_files__OR__input_collapsedFiles && writeScope($scope21_id, {});
|
|
2135
2206
|
return 1;
|
|
2136
2207
|
} else if (file$1.old == null && file$1.new == null) {
|
|
2137
|
-
const $
|
|
2138
|
-
_html(`<p${_attr_class(["
|
|
2139
|
-
$si__input_files__OR__input_collapsedFiles && writeScope($
|
|
2208
|
+
const $scope22_id = _scope_id();
|
|
2209
|
+
_html(`<p${_attr_class(["_hi", "_ha"])}>file could not be read</p>`);
|
|
2210
|
+
$si__input_files__OR__input_collapsedFiles && writeScope($scope22_id, {});
|
|
2140
2211
|
return 2;
|
|
2141
2212
|
} else if (expanded) {
|
|
2142
2213
|
const $scope7_id = _scope_id();
|
|
@@ -2145,7 +2216,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2145
2216
|
_if(() => {
|
|
2146
2217
|
if (!forceNear) {
|
|
2147
2218
|
const $scope8_id = _scope_id();
|
|
2148
|
-
_html(`<div${_attr_class(["
|
|
2219
|
+
_html(`<div${_attr_class(["_hc", "_ha"])}></div>${_el_resume($scope8_id, "a")}`);
|
|
2149
2220
|
_script($scope8_id, "t12");
|
|
2150
2221
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
2151
2222
|
return 0;
|
|
@@ -2153,7 +2224,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2153
2224
|
const $scope9_id = _scope_id();
|
|
2154
2225
|
const $childScope = _peek_scope_id();
|
|
2155
2226
|
diff_file_default({
|
|
2156
|
-
class: "
|
|
2227
|
+
class: "_ha",
|
|
2157
2228
|
file: file$1,
|
|
2158
2229
|
comments: fileComments,
|
|
2159
2230
|
draft: input.draft && input.draft.key === file$1.key ? input.draft : null,
|
|
@@ -2293,7 +2364,7 @@ var review_section_default = _template("t", (input) => {
|
|
|
2293
2364
|
cd: $si__input_findHit_line && $input_findHit_line__closures
|
|
2294
2365
|
});
|
|
2295
2366
|
});
|
|
2296
|
-
var fileFilter = "
|
|
2367
|
+
var fileFilter = "_hl _l";
|
|
2297
2368
|
//#endregion
|
|
2298
2369
|
//#region src/tags/file-filter.marko
|
|
2299
2370
|
var file_filter_default = _template("m", (input) => {
|
|
@@ -2323,7 +2394,7 @@ var file_filter_default = _template("m", (input) => {
|
|
|
2323
2394
|
pending = v;
|
|
2324
2395
|
box.timer = setTimeout(flush, 150);
|
|
2325
2396
|
}, "m2", $scope0_id);
|
|
2326
|
-
_html(`<div${_attr_class("
|
|
2397
|
+
_html(`<div${_attr_class("_hk")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
2327
2398
|
type(v);
|
|
2328
2399
|
}, "m0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
2329
2400
|
_script($scope0_id, "m3");
|
|
@@ -2343,7 +2414,7 @@ var file_filter_default = _template("m", (input) => {
|
|
|
2343
2414
|
//#endregion
|
|
2344
2415
|
//#region src/tags/diff-tree-dir.marko
|
|
2345
2416
|
var $content = (input) => {
|
|
2346
|
-
const $scope0_reason = _scope_reason(), $
|
|
2417
|
+
const $scope0_reason = _scope_reason(), $si__input = _serialize_if($scope0_reason, 4), $sg__input = _serialize_guard($scope0_reason, 4), $sg__input_dir__OR__input_collapsed__OR__input_onToggleDir__OR__input_collapsedKey__OR__input_hrefFor__OR__input_collapsedFiles__OR__input_commentKeys__OR__input_newKeys = _serialize_guard($scope0_reason, 3), $sg__input_dir = _serialize_guard($scope0_reason, 5), $sg__input_dir__OR__input_newKeys = _serialize_guard($scope0_reason, 1), $sg__input_dir__OR__input_commentKeys__OR__input_newKeys = _serialize_guard($scope0_reason, 2), $sg__input_dir__OR__input_commentKeys = _serialize_guard($scope0_reason, 0), $si__input_collapsedFiles = _serialize_if($scope0_reason, 10), $si__input_dir = _serialize_if($scope0_reason, 5), $si__input_collapsed = _serialize_if($scope0_reason, 6), $si__input_onToggleDir = _serialize_if($scope0_reason, 7), $si__input_collapsedKey = _serialize_if($scope0_reason, 8), $si__input_hrefFor = _serialize_if($scope0_reason, 9), $si__input_commentKeys = _serialize_if($scope0_reason, 11), $si__input_newKeys = _serialize_if($scope0_reason, 12);
|
|
2347
2418
|
const $scope0_id = _scope_id();
|
|
2348
2419
|
const $input_collapsed__closures = /* @__PURE__ */ new Set();
|
|
2349
2420
|
const $input_onToggleDir__closures = /* @__PURE__ */ new Set();
|
|
@@ -2356,7 +2427,21 @@ var $content = (input) => {
|
|
|
2356
2427
|
_for_of(dir.dirs, (child) => {
|
|
2357
2428
|
const $scope1_id = _scope_id();
|
|
2358
2429
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
2359
|
-
_html(`<div${_attr_class("
|
|
2430
|
+
_html(`<div${_attr_class("_fx")}><button type=button${_attr_class(["_fy", { ["_fp"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_fF")}>`);
|
|
2431
|
+
_if(() => {
|
|
2432
|
+
if (shut) {
|
|
2433
|
+
const $scope4_id = _scope_id();
|
|
2434
|
+
icon_chevron_right_default({ size: 12 });
|
|
2435
|
+
$si__input && writeScope($scope4_id, {});
|
|
2436
|
+
return 0;
|
|
2437
|
+
} else {
|
|
2438
|
+
const $scope5_id = _scope_id();
|
|
2439
|
+
icon_chevron_down_default({ size: 12 });
|
|
2440
|
+
$si__input && writeScope($scope5_id, {});
|
|
2441
|
+
return 1;
|
|
2442
|
+
}
|
|
2443
|
+
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
2444
|
+
_html(`<span${_attr_class("_fz")}>${_escape(child.label)}${_el_resume($scope1_id, "e", $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2360
2445
|
_if(() => {
|
|
2361
2446
|
if (!shut) {
|
|
2362
2447
|
const $scope2_id = _scope_id();
|
|
@@ -2392,31 +2477,33 @@ var $content = (input) => {
|
|
|
2392
2477
|
}))))))));
|
|
2393
2478
|
return 0;
|
|
2394
2479
|
}
|
|
2395
|
-
}, $scope1_id, "
|
|
2480
|
+
}, $scope1_id, "f", $sg__input, $sg__input, $sg__input);
|
|
2396
2481
|
_html("</div>");
|
|
2397
2482
|
_script($scope1_id, "j0");
|
|
2398
2483
|
writeScope($scope1_id, {
|
|
2399
|
-
|
|
2400
|
-
|
|
2484
|
+
h: child,
|
|
2485
|
+
i: $si__input && child?.path,
|
|
2401
2486
|
_: _scope_with_id($scope0_id)
|
|
2402
2487
|
});
|
|
2403
2488
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
2404
2489
|
_for_of(dir.files, ({ file, name }) => {
|
|
2405
2490
|
const $scope3_id = _scope_id();
|
|
2406
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
2491
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_fB", { ["_fA"]: 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("_fG")}${_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("_fC")}>${_escape(name)}${_el_resume($scope3_id, "e", $sg__input_dir)}</span>`);
|
|
2407
2492
|
_if(() => {
|
|
2408
2493
|
if (input.newKeys.has(file.key)) {
|
|
2409
|
-
const $
|
|
2410
|
-
_html(`<span${_attr_class(["_z", "
|
|
2411
|
-
_serialize_if($scope0_reason, 1) && writeScope($
|
|
2494
|
+
const $scope6_id = _scope_id();
|
|
2495
|
+
_html(`<span${_attr_class(["_z", "_fD"])} title="Changed since your last visit"></span>`);
|
|
2496
|
+
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2412
2497
|
return 0;
|
|
2413
2498
|
}
|
|
2414
2499
|
}, $scope3_id, "f", $sg__input_dir__OR__input_newKeys, $sg__input_dir__OR__input_newKeys, $sg__input_dir__OR__input_commentKeys__OR__input_newKeys, 0, 1);
|
|
2415
2500
|
_if(() => {
|
|
2416
2501
|
if (input.commentKeys.has(file.key)) {
|
|
2417
|
-
const $
|
|
2418
|
-
_html(`<span${_attr_class("
|
|
2419
|
-
|
|
2502
|
+
const $scope7_id = _scope_id();
|
|
2503
|
+
_html(`<span${_attr_class("_fE")}>`);
|
|
2504
|
+
icon_comment_default({ size: 12 });
|
|
2505
|
+
_html("</span>");
|
|
2506
|
+
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
2420
2507
|
return 0;
|
|
2421
2508
|
}
|
|
2422
2509
|
}, $scope3_id, "g", $sg__input_dir__OR__input_commentKeys, $sg__input_dir__OR__input_commentKeys, $sg__input_dir__OR__input_commentKeys__OR__input_newKeys, 0, 1);
|
|
@@ -2471,7 +2558,7 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2471
2558
|
scope: input.scope ?? null,
|
|
2472
2559
|
file: key
|
|
2473
2560
|
}), "k0", $scope0_id);
|
|
2474
|
-
_html(`<aside${_attr_class(["
|
|
2561
|
+
_html(`<aside${_attr_class(["_fq", { ["_fp"]: input.open === false }])}><div${_attr_class("_fr")}>`);
|
|
2475
2562
|
_set_serialize_reason(2);
|
|
2476
2563
|
const $childScope = _peek_scope_id();
|
|
2477
2564
|
file_filter_default({
|
|
@@ -2480,23 +2567,37 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2480
2567
|
filter = _new_filter;
|
|
2481
2568
|
}, "k1", $scope0_id)
|
|
2482
2569
|
});
|
|
2483
|
-
_html(`</div><div${_attr_class("
|
|
2570
|
+
_html(`</div><div${_attr_class("_fs")}>`);
|
|
2484
2571
|
_if(() => {
|
|
2485
2572
|
if (!input.sections.length && filter) {
|
|
2486
2573
|
const $scope3_id = _scope_id();
|
|
2487
|
-
_html(`<p${_attr_class("
|
|
2574
|
+
_html(`<p${_attr_class("_ft")}>No files match.</p>`);
|
|
2488
2575
|
writeScope($scope3_id, {});
|
|
2489
2576
|
return 0;
|
|
2490
2577
|
}
|
|
2491
2578
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
2492
2579
|
_for_of(input.sections, (section) => {
|
|
2493
2580
|
const $scope1_id = _scope_id();
|
|
2494
|
-
_html(`<div${_attr_class("
|
|
2581
|
+
_html(`<div${_attr_class("_fu")}><button type=button${_attr_class(["_fv", { ["_fp"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_fF")}>`);
|
|
2582
|
+
_if(() => {
|
|
2583
|
+
if (collapsedRepos.has(section.id)) {
|
|
2584
|
+
const $scope4_id = _scope_id();
|
|
2585
|
+
icon_chevron_right_default({ size: 12 });
|
|
2586
|
+
writeScope($scope4_id, {});
|
|
2587
|
+
return 0;
|
|
2588
|
+
} else {
|
|
2589
|
+
const $scope5_id = _scope_id();
|
|
2590
|
+
icon_chevron_down_default({ size: 12 });
|
|
2591
|
+
writeScope($scope5_id, {});
|
|
2592
|
+
return 1;
|
|
2593
|
+
}
|
|
2594
|
+
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
2595
|
+
_html(`<span${_attr_class("_fz")}>${_escape(section.label)}${_el_resume($scope1_id, "e", $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2495
2596
|
_if(() => {
|
|
2496
2597
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
2497
2598
|
const $scope2_id = _scope_id();
|
|
2498
2599
|
const root = treeDirs(section.files);
|
|
2499
|
-
_html(`<div${_attr_class("
|
|
2600
|
+
_html(`<div${_attr_class("_fw")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
2500
2601
|
_set_serialize_reason(1);
|
|
2501
2602
|
const $childScope2 = _peek_scope_id();
|
|
2502
2603
|
diff_tree_dir_default({
|
|
@@ -2523,12 +2624,12 @@ var diff_tree_default = _template("k", (input) => {
|
|
|
2523
2624
|
}))))))));
|
|
2524
2625
|
return 0;
|
|
2525
2626
|
}
|
|
2526
|
-
}, $scope1_id, "
|
|
2627
|
+
}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
2527
2628
|
_html("</div>");
|
|
2528
2629
|
_script($scope1_id, "k4");
|
|
2529
2630
|
writeScope($scope1_id, {
|
|
2530
|
-
|
|
2531
|
-
|
|
2631
|
+
i: section?.id,
|
|
2632
|
+
m: section?.files,
|
|
2532
2633
|
_: _scope_with_id($scope0_id)
|
|
2533
2634
|
});
|
|
2534
2635
|
}, "id", $scope0_id, "f", 1, $sg__input_sections, $sg__input_sections, 0, 1);
|
|
@@ -2621,9 +2722,9 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2621
2722
|
_if(() => {
|
|
2622
2723
|
if (open) {
|
|
2623
2724
|
const $scope1_id = _scope_id();
|
|
2624
|
-
_html(`<div${_attr_class("
|
|
2725
|
+
_html(`<div${_attr_class("_f5")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_f6")} role=dialog aria-label="Jump to file"><div${_attr_class("_f7")}><strong${_attr_class("_f4")}>Files</strong><span${_attr_class("_f8")}>${_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, "_f3"])} title=Close aria-label=Close>`);
|
|
2625
2726
|
icon_xmark_default({ size: 16 });
|
|
2626
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
2727
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_gf")}>`);
|
|
2627
2728
|
_set_serialize_reason(2);
|
|
2628
2729
|
const $childScope = _peek_scope_id();
|
|
2629
2730
|
file_filter_default({
|
|
@@ -2632,28 +2733,28 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2632
2733
|
filter = _new_filter;
|
|
2633
2734
|
}, "f1", $scope1_id)
|
|
2634
2735
|
});
|
|
2635
|
-
_html(`</div><div${_attr_class("
|
|
2736
|
+
_html(`</div><div${_attr_class("_f9")}>`);
|
|
2636
2737
|
_for_of(groups, (group) => {
|
|
2637
2738
|
const $scope2_id = _scope_id();
|
|
2638
|
-
_html(`<div${_attr_class("
|
|
2739
|
+
_html(`<div${_attr_class("_f_")}><div${_attr_class("_ga")}>${_escape(group.repo)}${_el_resume($scope2_id, "c", $sg__input_files)}</div>`);
|
|
2639
2740
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
2640
2741
|
const $scope3_id = _scope_id();
|
|
2641
|
-
_html(`<div${_attr_class("
|
|
2742
|
+
_html(`<div${_attr_class("_gb")}>`);
|
|
2642
2743
|
_if(() => {
|
|
2643
2744
|
if (dir) {
|
|
2644
2745
|
const $scope5_id = _scope_id();
|
|
2645
|
-
_html(`<div${_attr_class("
|
|
2746
|
+
_html(`<div${_attr_class("_gd")}${_attr("title", dir)}><bdi>${_escape(dir)}${_el_resume($scope5_id, "b", $sg__input_files)}/</bdi></div>${_el_resume($scope5_id, "a", $sg__input_files)}`);
|
|
2646
2747
|
$si__input_files && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
2647
2748
|
return 0;
|
|
2648
2749
|
}
|
|
2649
2750
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
2650
2751
|
_for_of(files, ({ file, name }) => {
|
|
2651
2752
|
const $scope4_id = _scope_id();
|
|
2652
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
2753
|
+
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["_gc", "_x"])}><span${_attr_class("_gj")}${_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("_ge")}><bdi>${_escape(name)}${_el_resume($scope4_id, "e", $sg__input_files)}</bdi></span>`);
|
|
2653
2754
|
_if(() => {
|
|
2654
2755
|
if (newKeys.has(file.key)) {
|
|
2655
2756
|
const $scope6_id = _scope_id();
|
|
2656
|
-
_html(`<span${_attr_class(["_z", "
|
|
2757
|
+
_html(`<span${_attr_class(["_z", "_gh"])} title="Changed since your last visit"></span>`);
|
|
2657
2758
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2658
2759
|
return 0;
|
|
2659
2760
|
}
|
|
@@ -2661,7 +2762,10 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2661
2762
|
_if(() => {
|
|
2662
2763
|
if (commentKeys.has(file.key)) {
|
|
2663
2764
|
const $scope7_id = _scope_id();
|
|
2664
|
-
|
|
2765
|
+
icon_comment_default({
|
|
2766
|
+
size: 12,
|
|
2767
|
+
class: "_gi"
|
|
2768
|
+
});
|
|
2665
2769
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
2666
2770
|
return 0;
|
|
2667
2771
|
}
|
|
@@ -2685,7 +2789,7 @@ var diff_file_sheet_default = _template("f", (input) => {
|
|
|
2685
2789
|
_if(() => {
|
|
2686
2790
|
if (!input.files.length) {
|
|
2687
2791
|
const $scope8_id = _scope_id();
|
|
2688
|
-
_html(`<p${_attr_class("
|
|
2792
|
+
_html(`<p${_attr_class("_gg")}>No files match.</p>`);
|
|
2689
2793
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
2690
2794
|
return 0;
|
|
2691
2795
|
}
|
|
@@ -3224,22 +3328,22 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3224
3328
|
collapsedRepos = /* @__PURE__ */ new Set([...collapsedRepos, id]);
|
|
3225
3329
|
}
|
|
3226
3330
|
}, "l35", $scope0_id);
|
|
3227
|
-
_html(`<div${_attr_class("
|
|
3331
|
+
_html(`<div${_attr_class("_dF")}><div${_attr_class("_dK")}><div${_attr_class("_dL")}><div${_attr_class(["_dV", { ["_dU"]: !comments.length }])}>`);
|
|
3228
3332
|
_if(() => {
|
|
3229
3333
|
if (input.onExit) {
|
|
3230
3334
|
const $scope1_id = _scope_id();
|
|
3231
|
-
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "
|
|
3335
|
+
_html(`<a${_attr("href", `/w/${input.workspaceId}`)}${_attr_class([iconBtnRow, "_dM"])} title="Back to terminal (Esc)">`);
|
|
3232
3336
|
icon_back_default({ size: 14 });
|
|
3233
3337
|
_html(`</a>${_el_resume($scope1_id, "a", _serialize_guard($scope0_reason, 1))}`);
|
|
3234
3338
|
_serialize_if($scope0_reason, 0) && writeScope($scope1_id, { _: _serialize_if($scope0_reason, 1) && _scope_with_id($scope0_id) });
|
|
3235
3339
|
return 0;
|
|
3236
3340
|
}
|
|
3237
3341
|
}, $scope0_id, "e", _serialize_guard($scope0_reason, 0), _serialize_guard($scope0_reason, 4), 1, 0, 1);
|
|
3238
|
-
_html(`<h1${_attr_class("
|
|
3342
|
+
_html(`<h1${_attr_class("_dP")}>Review</h1>`);
|
|
3239
3343
|
_if(() => {
|
|
3240
3344
|
if (comments.length) {
|
|
3241
3345
|
const $scope5_id = _scope_id();
|
|
3242
|
-
_html(`<span${_attr_class("
|
|
3346
|
+
_html(`<span${_attr_class("_dO")}>${_escape(comments.length)}${_el_resume($scope5_id, "b")} comment<!>${comments.length === 1 ? "" : "s"}${_el_resume($scope5_id, "c")}</span>`);
|
|
3243
3347
|
writeScope($scope5_id, {});
|
|
3244
3348
|
return 0;
|
|
3245
3349
|
}
|
|
@@ -3247,7 +3351,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3247
3351
|
_if(() => {
|
|
3248
3352
|
if (comments.length) {
|
|
3249
3353
|
const $scope2_id = _scope_id();
|
|
3250
|
-
_html(`<span${_attr_class("
|
|
3354
|
+
_html(`<span${_attr_class("_dN")}>`);
|
|
3251
3355
|
_set_serialize_reason(_serialize_guard($scope0_reason, 5));
|
|
3252
3356
|
const $childScope = _peek_scope_id();
|
|
3253
3357
|
diff_send_default({
|
|
@@ -3260,14 +3364,14 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3260
3364
|
return 0;
|
|
3261
3365
|
}
|
|
3262
3366
|
}, $scope0_id, "h", 1, 1, 1, 0, 1);
|
|
3263
|
-
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("
|
|
3367
|
+
_html(`</div>${_el_resume($scope0_id, "d")}<div${_attr_class("_dJ")}>`);
|
|
3264
3368
|
_if(() => {
|
|
3265
3369
|
if (hasFiles) {
|
|
3266
3370
|
const $scope12_id = _scope_id();
|
|
3267
3371
|
_html(`<button${_attr_class([
|
|
3268
3372
|
treeToggle,
|
|
3269
|
-
"
|
|
3270
|
-
{ ["
|
|
3373
|
+
"_dH",
|
|
3374
|
+
{ ["_dG"]: treeOpen }
|
|
3271
3375
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
3272
3376
|
icon_sidebar_default({ size: 14 });
|
|
3273
3377
|
_html(`</button>${_el_resume($scope12_id, "a")}`);
|
|
@@ -3276,7 +3380,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3276
3380
|
return 0;
|
|
3277
3381
|
}
|
|
3278
3382
|
}, $scope0_id, "j", 1, 1, 1, 0, 1);
|
|
3279
|
-
_html(`<button${_attr_class([iconBtnRow, "
|
|
3383
|
+
_html(`<button${_attr_class([iconBtnRow, "_dH"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
3280
3384
|
_set_serialize_reason(1);
|
|
3281
3385
|
const $childScope2 = _peek_scope_id();
|
|
3282
3386
|
icon_refresh_default({
|
|
@@ -3287,19 +3391,19 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3287
3391
|
_if(() => {
|
|
3288
3392
|
if (hasFiles) {
|
|
3289
3393
|
const $scope13_id = _scope_id();
|
|
3290
|
-
_html(`<button${_attr_class(["_o", "
|
|
3394
|
+
_html(`<button${_attr_class(["_o", "_d7"])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope13_id, "b")})</button>${_el_resume($scope13_id, "a")}`);
|
|
3291
3395
|
_script($scope13_id, "l55");
|
|
3292
3396
|
writeScope($scope13_id, {});
|
|
3293
3397
|
return 0;
|
|
3294
3398
|
}
|
|
3295
3399
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
3296
|
-
_html(`<div${_attr_class("
|
|
3400
|
+
_html(`<div${_attr_class("_dW")} role=group aria-label="Review scope"><button type=button${_attr_class(["_dY", { ["_dX"]: 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(["_dY", { ["_dX"]: 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(["_dY", { ["_dX"]: 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", "_dZ"])}>`);
|
|
3297
3401
|
_attr_select_value($scope0_id, "s", scope$1, _resume(function(v) {
|
|
3298
3402
|
setScope(v);
|
|
3299
3403
|
}, "l0", $scope0_id), () => {
|
|
3300
|
-
_html(`<select${_attr_class(["_n", "
|
|
3404
|
+
_html(`<select${_attr_class(["_n", "_d0"])} 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>`);
|
|
3301
3405
|
});
|
|
3302
|
-
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["
|
|
3406
|
+
_html(`${_el_resume($scope0_id, "s")}</span><div${_attr_class(["_dS", { ["_dR"]: !findOpen }])}>`);
|
|
3303
3407
|
_set_serialize_reason(2);
|
|
3304
3408
|
const $childScope3 = _peek_scope_id();
|
|
3305
3409
|
diff_find_default({
|
|
@@ -3320,8 +3424,8 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3320
3424
|
const $scope14_id = _scope_id();
|
|
3321
3425
|
_html(`<button${_attr_class([
|
|
3322
3426
|
iconBtnRow,
|
|
3323
|
-
"
|
|
3324
|
-
"
|
|
3427
|
+
"_dQ",
|
|
3428
|
+
"_dH"
|
|
3325
3429
|
])} title="Find in review (⌘/Ctrl+F)" aria-label="Find in review"${_attr("hidden", findOpen)}>`);
|
|
3326
3430
|
icon_search_default({ size: 14 });
|
|
3327
3431
|
_html(`</button>${_el_resume($scope14_id, "a")}`);
|
|
@@ -3330,7 +3434,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3330
3434
|
return 0;
|
|
3331
3435
|
}
|
|
3332
3436
|
}, $scope0_id, "v", 1, 1, 1, 0, 1);
|
|
3333
|
-
_html(`</div></div><div${_attr_class("
|
|
3437
|
+
_html(`</div></div><div${_attr_class("_dT")} data-diff-main>`);
|
|
3334
3438
|
_if(() => {
|
|
3335
3439
|
if (error) {
|
|
3336
3440
|
const $scope6_id = _scope_id();
|
|
@@ -3353,7 +3457,7 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3353
3457
|
_if(() => {
|
|
3354
3458
|
if (!repos && loading) {
|
|
3355
3459
|
const $scope15_id = _scope_id();
|
|
3356
|
-
_html(`<div${_attr_class("
|
|
3460
|
+
_html(`<div${_attr_class("_d2")} aria-hidden=true><div${_attr_class(["_d3", "_d4"])}></div><div${_attr_class(["_d3", "_d5"])}></div><div${_attr_class(["_d3", "_d6"])}></div><div${_attr_class(["_d3", "_d5"])}></div><div${_attr_class(["_d3", "_d6"])}></div></div>`);
|
|
3357
3461
|
writeScope($scope15_id, {});
|
|
3358
3462
|
return 0;
|
|
3359
3463
|
}
|
|
@@ -3384,12 +3488,12 @@ var diff_view_default = _template("l", (input) => {
|
|
|
3384
3488
|
_if(() => {
|
|
3385
3489
|
if (repos && !allFiles.length) {
|
|
3386
3490
|
const $scope11_id = _scope_id();
|
|
3387
|
-
_html(`<p${_attr_class("
|
|
3491
|
+
_html(`<p${_attr_class("_bE")}>${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>`);
|
|
3388
3492
|
writeScope($scope11_id, {});
|
|
3389
3493
|
return 0;
|
|
3390
3494
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
3391
3495
|
const $scope8_id = _scope_id();
|
|
3392
|
-
_html(`<p${_attr_class("
|
|
3496
|
+
_html(`<p${_attr_class("_bE")}>${findState.query.trim() ? "No matches in review." : onlyNew && !fileFilter ? "Nothing changed since your last visit." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope8_id, "b")}</p>`);
|
|
3393
3497
|
writeScope($scope8_id, {});
|
|
3394
3498
|
return 1;
|
|
3395
3499
|
}
|