@dylanpiercey/work 0.0.55 → 0.0.56
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/{_DqS1ynQN.js → _DIz1o5GR.js} +78 -90
- package/dist/{_DEyQrZwJ.js → _NR7OKpDq.js} +67 -31
- package/dist/index.mjs +1190 -984
- package/dist/public/assets/{_DtSOe2hG.js → _-lSLGa1X.js} +1 -1
- package/dist/public/assets/_-lSLGa1X.js.br +0 -0
- package/dist/public/assets/{_itykIiaw.js → _0sKce3DV.js} +1 -1
- package/dist/public/assets/_0sKce3DV.js.br +0 -0
- package/dist/public/assets/_7b2d3rgi.js +1531 -0
- package/dist/public/assets/_7b2d3rgi.js.br +0 -0
- package/dist/public/assets/{_BN6Pobuf2.js → _AbzQXEHp2.js} +1 -1
- package/dist/public/assets/_AbzQXEHp2.js.br +0 -0
- package/dist/public/assets/{_DcMEpabj.js → _B0Gim1bv.js} +1 -1
- package/dist/public/assets/_B0Gim1bv.js.br +0 -0
- package/dist/public/assets/{_v-whlyoS.js → _B17TTTZR.js} +1 -1
- package/dist/public/assets/_B17TTTZR.js.br +0 -0
- package/dist/public/assets/{_DD4Vp1Mf2.js → _B8d3tGnJ2.js} +1 -1
- package/dist/public/assets/_B8d3tGnJ2.js.br +0 -0
- package/dist/public/assets/{_BMjHaHZ0.js → _BBKegQCI.js} +1 -1
- package/dist/public/assets/_BBKegQCI.js.br +0 -0
- package/dist/public/assets/{_BsTMn0Bi.js → _BNl09okr.js} +1 -1
- package/dist/public/assets/_BNl09okr.js.br +0 -0
- package/dist/public/assets/{_BlU5wvvf.js → _BO5qyyi2.js} +1 -1
- package/dist/public/assets/_BO5qyyi2.js.br +0 -0
- package/dist/public/assets/{_DMhWlh7L.js → _BOGVYYJ7.js} +1 -1
- package/dist/public/assets/_BOGVYYJ7.js.br +0 -0
- package/dist/public/assets/{_DDnzt87R2.js → _BaIIgHFy2.js} +1 -1
- package/dist/public/assets/_BaIIgHFy2.js.br +0 -0
- package/dist/public/assets/{_Bsb7b0_o2.js → _BaXDiy612.js} +1 -1
- package/dist/public/assets/_BaXDiy612.js.br +0 -0
- package/dist/public/assets/{_BcGbsup-.js → _BcEDvwN5.js} +1 -1
- package/dist/public/assets/_BcEDvwN5.js.br +0 -0
- package/dist/public/assets/{_Dd4UI6m9.js → _BiGLT1t7.js} +1 -1
- package/dist/public/assets/_BiGLT1t7.js.br +0 -0
- package/dist/public/assets/{_jid9u3Bf2.js → _Biu-1XkM2.js} +1 -1
- package/dist/public/assets/_Biu-1XkM2.js.br +0 -0
- package/dist/public/assets/{_chIgh5T12.js → _BlFvBX6J2.js} +1 -1
- package/dist/public/assets/_BlFvBX6J2.js.br +0 -0
- package/dist/public/assets/{_CejWSKTc.js → _C2Gfwg0M.js} +1 -1
- package/dist/public/assets/_C2Gfwg0M.js.br +0 -0
- package/dist/public/assets/{_D_yA6Eq7.js → _C7Jrixyu.js} +1 -1
- package/dist/public/assets/_C7Jrixyu.js.br +0 -0
- package/dist/public/assets/{_Cbz6i_Ir.js → _C9XDAb0z.js} +1 -1
- package/dist/public/assets/_C9XDAb0z.js.br +0 -0
- package/dist/public/assets/{_BW39OCyN.js → _CE-iT2kz.js} +1 -1
- package/dist/public/assets/{_BkSHd_ab.js → _CF6jXhzt.js} +1 -1
- package/dist/public/assets/_CF6jXhzt.js.br +0 -0
- package/dist/public/assets/{_CAkQILrc.js → _CJhLmJWq.js} +1 -1
- package/dist/public/assets/_CJhLmJWq.js.br +0 -0
- package/dist/public/assets/{_-_1HfJf9.js → _CKY9r5tW.js} +1 -1
- package/dist/public/assets/_CKY9r5tW.js.br +0 -0
- package/dist/public/assets/{_Dm3_XJhp.js → _CN5zho60.js} +1 -1
- package/dist/public/assets/_CN5zho60.js.br +0 -0
- package/dist/public/assets/{_Dbz6yAhK.js → _CQryXtHV.js} +1 -1
- package/dist/public/assets/_CQryXtHV.js.br +0 -0
- package/dist/public/assets/{_DMNunCvV.js → _CTZc-Lfc.js} +1 -1
- package/dist/public/assets/_CTZc-Lfc.js.br +0 -0
- package/dist/public/assets/{_B78s3bFY.js → _CXjvK8or.js} +1 -1
- package/dist/public/assets/_CXjvK8or.js.br +0 -0
- package/dist/public/assets/{_TJEWRjd5.js → _CZWTVsYT.js} +1 -1
- package/dist/public/assets/_CZWTVsYT.js.br +0 -0
- package/dist/public/assets/{_BPnS2wvB.js → _CZqQrh0N.js} +1 -1
- package/dist/public/assets/_CZqQrh0N.js.br +0 -0
- package/dist/public/assets/{_DSd-10LO.js → _CaIg6xVS.js} +1 -1
- package/dist/public/assets/_CaIg6xVS.js.br +0 -0
- package/dist/public/assets/{_B9ZV4ThY.js → _Ce5_uM-0.js} +1 -1
- package/dist/public/assets/_Ce5_uM-0.js.br +0 -0
- package/dist/public/assets/{_Bs_rBpsW.js → _CgEyfAXY.js} +1 -1
- package/dist/public/assets/_CgEyfAXY.js.br +0 -0
- package/dist/public/assets/{_DTX6XFTY.js → _CmgnZObA.js} +1 -1
- package/dist/public/assets/_CmgnZObA.js.br +0 -0
- package/dist/public/assets/{_CnWkhnTU.js → _Cu2JPWTZ.js} +1 -1
- package/dist/public/assets/_Cu2JPWTZ.js.br +0 -0
- package/dist/public/assets/{_oCTE7tfG2.js → _CubUwl0d2.js} +1 -1
- package/dist/public/assets/_CubUwl0d2.js.br +0 -0
- package/dist/public/assets/{_BdVHm2ph.js → _CwKBm8kp.js} +1 -1
- package/dist/public/assets/_CwKBm8kp.js.br +0 -0
- package/dist/public/assets/{_DZipbShr2.js → _Cxs8hu_52.js} +1 -1
- package/dist/public/assets/_Cxs8hu_52.js.br +0 -0
- package/dist/public/assets/{__nDBXvyf.js → _D0yMt5Tt.js} +1 -1
- package/dist/public/assets/_D0yMt5Tt.js.br +0 -0
- package/dist/public/assets/{_C0Jd785o2.js → _D3W0XyUU2.js} +1 -1
- package/dist/public/assets/_D3W0XyUU2.js.br +0 -0
- package/dist/public/assets/{_B_dUaQRU2.js → _D7qGgJvf2.js} +1 -1
- package/dist/public/assets/_D7qGgJvf2.js.br +0 -0
- package/dist/public/assets/{_DlgvawWO.js → _D8kyhtPi.js} +1 -1
- package/dist/public/assets/_D8kyhtPi.js.br +0 -0
- package/dist/public/assets/{_DcdqGN3z2.js → _DF8KYJxU2.js} +1 -1
- package/dist/public/assets/_DF8KYJxU2.js.br +0 -0
- package/dist/public/assets/{_BgV2TULh.js → _DQ1mq82l.js} +1 -1
- package/dist/public/assets/_DQ1mq82l.js.br +0 -0
- package/dist/public/assets/{_3d_5Ooi5.js → _DTCgKMCu.js} +1 -1
- package/dist/public/assets/_DTCgKMCu.js.br +0 -0
- package/dist/public/assets/{_NHqJTRXU.js → _DUYb6nZs.js} +1 -1
- package/dist/public/assets/_DUYb6nZs.js.br +0 -0
- package/dist/public/assets/{_da-D4VPw.js → _DW7rXYKI.js} +1 -1
- package/dist/public/assets/_DW7rXYKI.js.br +0 -0
- package/dist/public/assets/{_D3htbFuc2.js → _DY71Ifmc2.js} +1 -1
- package/dist/public/assets/_DY71Ifmc2.js.br +0 -0
- package/dist/public/assets/{_CkBCJdr-2.js → _DY9msspQ2.js} +1 -1
- package/dist/public/assets/_DY9msspQ2.js.br +0 -0
- package/dist/public/assets/{_C0KuyU8B2.js → _D_8_vYUR2.js} +1 -1
- package/dist/public/assets/_D_8_vYUR2.js.br +0 -0
- package/dist/public/assets/{_DoYTmicm.js → _DdZ4PATN.js} +1 -1
- package/dist/public/assets/_DdZ4PATN.js.br +0 -0
- package/dist/public/assets/{_Dp2tIHGY.js → _Dful9JXZ.js} +1 -1
- package/dist/public/assets/_Dful9JXZ.js.br +0 -0
- package/dist/public/assets/{_BC3BfNXZ.js → _DgUBZtR3.js} +1 -1
- package/dist/public/assets/_DgUBZtR3.js.br +0 -0
- package/dist/public/assets/{_LYSyk8ub.js → _DgZSpof0.js} +1 -1
- package/dist/public/assets/_DgZSpof0.js.br +0 -0
- package/dist/public/assets/{_LNwJ-4DM2.js → _Dj6Mbuuc2.js} +1 -1
- package/dist/public/assets/_Dj6Mbuuc2.js.br +0 -0
- package/dist/public/assets/{_oamUDqK52.js → _Dqxtkq0w2.js} +1 -1
- package/dist/public/assets/_Dqxtkq0w2.js.br +0 -0
- package/dist/public/assets/{_BFA3i9452.js → _Dshlpqjt2.js} +1 -1
- package/dist/public/assets/_Dshlpqjt2.js.br +0 -0
- package/dist/public/assets/{_CUPlBvNC.js → _DtBpXNIh.js} +1 -1
- package/dist/public/assets/_DtBpXNIh.js.br +0 -0
- package/dist/public/assets/{_DuJiHnT9.js → _Dwf8rf44.js} +1 -1
- package/dist/public/assets/_Dwf8rf44.js.br +0 -0
- package/dist/public/assets/{_BsMYRdqe.js → _JvWZam0k.js} +1 -1
- package/dist/public/assets/_JvWZam0k.js.br +0 -0
- package/dist/public/assets/{_C2JTviuS2.js → _SpxsOOpo2.js} +1 -1
- package/dist/public/assets/_SpxsOOpo2.js.br +0 -0
- package/dist/public/assets/{_B3vk87Um.js → _SyQQGpVD.js} +1 -1
- package/dist/public/assets/_SyQQGpVD.js.br +0 -0
- package/dist/public/assets/{_CiQdYEHQ.js → _TfOHMltj.js} +1 -1
- package/dist/public/assets/_TfOHMltj.js.br +0 -0
- package/dist/public/assets/{_V8-82yNW2.js → _WttPWnIr2.js} +1 -1
- package/dist/public/assets/{_D_metatX2.js → _chCpX0h02.js} +1 -1
- package/dist/public/assets/_chCpX0h02.js.br +0 -0
- package/dist/public/assets/{_eSdLWSrw.js → _fHPGL1Uw.js} +1 -1
- package/dist/public/assets/_fHPGL1Uw.js.br +0 -0
- package/dist/public/assets/{_DLWtlgKH.js → _fQHFmOad.js} +1 -1
- package/dist/public/assets/_fQHFmOad.js.br +0 -0
- package/dist/public/assets/{_DTc0OxUJ2.js → _fYprPTRa2.js} +1 -1
- package/dist/public/assets/_fYprPTRa2.js.br +0 -0
- package/dist/public/assets/{_B6I9X5iE2.js → _iu_009nj2.js} +1 -1
- package/dist/public/assets/{_DOKc26YL2.js → _k1dlhrqh2.js} +1 -1
- package/dist/public/assets/_k1dlhrqh2.js.br +0 -0
- package/dist/public/assets/{_TrUY5-Oo.js → _kBcVAsq0.js} +1 -1
- package/dist/public/assets/_kBcVAsq0.js.br +0 -0
- package/dist/public/assets/{_BhUjWRsM.js → _mUaACIff.js} +1 -1
- package/dist/public/assets/_mUaACIff.js.br +0 -0
- package/dist/public/assets/{_CXSbyTaW.js → _mZNHePjN.js} +1 -1
- package/dist/public/assets/_mZNHePjN.js.br +0 -0
- package/dist/public/assets/{_DebjdWD82.js → _qzqTdGii2.js} +1 -1
- package/dist/public/assets/_qzqTdGii2.js.br +0 -0
- package/dist/public/assets/{_CW9ejsrh.js → _uQRM3h6j.js} +1 -1
- package/dist/public/assets/_uQRM3h6j.js.br +0 -0
- package/dist/public/assets/diff-view-DO46OB-W.css +1 -0
- package/dist/public/assets/diff-view-DO46OB-W.css.br +0 -0
- package/dist/public/assets/index-CbawCDfW.js +85 -0
- package/dist/public/assets/index-CbawCDfW.js.br +0 -0
- package/dist/public/assets/index-DlWmrprG.css +1 -0
- package/dist/public/assets/index-DlWmrprG.css.br +0 -0
- package/package.json +1 -1
- package/dist/public/assets/_-_1HfJf9.js.br +0 -0
- package/dist/public/assets/_3d_5Ooi5.js.br +0 -0
- package/dist/public/assets/_B3vk87Um.js.br +0 -0
- package/dist/public/assets/_B78s3bFY.js.br +0 -0
- package/dist/public/assets/_B9ZV4ThY.js.br +0 -0
- package/dist/public/assets/_BC3BfNXZ.js.br +0 -0
- package/dist/public/assets/_BFA3i9452.js.br +0 -0
- package/dist/public/assets/_BMjHaHZ0.js.br +0 -0
- package/dist/public/assets/_BN6Pobuf2.js.br +0 -0
- package/dist/public/assets/_BPnS2wvB.js.br +0 -0
- package/dist/public/assets/_B_dUaQRU2.js.br +0 -0
- package/dist/public/assets/_BcGbsup-.js.br +0 -0
- package/dist/public/assets/_BdVHm2ph.js.br +0 -0
- package/dist/public/assets/_BgV2TULh.js.br +0 -0
- package/dist/public/assets/_BhUjWRsM.js.br +0 -0
- package/dist/public/assets/_BkSHd_ab.js.br +0 -0
- package/dist/public/assets/_BlU5wvvf.js.br +0 -0
- package/dist/public/assets/_BsMYRdqe.js.br +0 -0
- package/dist/public/assets/_BsTMn0Bi.js.br +0 -0
- package/dist/public/assets/_Bs_rBpsW.js.br +0 -0
- package/dist/public/assets/_Bsb7b0_o2.js.br +0 -0
- package/dist/public/assets/_C0Jd785o2.js.br +0 -0
- package/dist/public/assets/_C0KuyU8B2.js.br +0 -0
- package/dist/public/assets/_C2JTviuS2.js.br +0 -0
- package/dist/public/assets/_CAkQILrc.js.br +0 -0
- package/dist/public/assets/_CUPlBvNC.js.br +0 -0
- package/dist/public/assets/_CW9ejsrh.js.br +0 -0
- package/dist/public/assets/_CXSbyTaW.js.br +0 -0
- package/dist/public/assets/_Cbz6i_Ir.js.br +0 -0
- package/dist/public/assets/_CejWSKTc.js.br +0 -0
- package/dist/public/assets/_CiQdYEHQ.js.br +0 -0
- package/dist/public/assets/_CkBCJdr-2.js.br +0 -0
- package/dist/public/assets/_CnWkhnTU.js.br +0 -0
- package/dist/public/assets/_D3htbFuc2.js.br +0 -0
- package/dist/public/assets/_DD4Vp1Mf2.js.br +0 -0
- package/dist/public/assets/_DDnzt87R2.js.br +0 -0
- package/dist/public/assets/_DLWtlgKH.js.br +0 -0
- package/dist/public/assets/_DMNunCvV.js.br +0 -0
- package/dist/public/assets/_DMhWlh7L.js.br +0 -0
- package/dist/public/assets/_DOKc26YL2.js.br +0 -0
- package/dist/public/assets/_DSd-10LO.js.br +0 -0
- package/dist/public/assets/_DTX6XFTY.js.br +0 -0
- package/dist/public/assets/_DTc0OxUJ2.js.br +0 -0
- package/dist/public/assets/_DZipbShr2.js.br +0 -0
- package/dist/public/assets/_D_metatX2.js.br +0 -0
- package/dist/public/assets/_D_yA6Eq7.js.br +0 -0
- package/dist/public/assets/_Dbz6yAhK.js.br +0 -0
- package/dist/public/assets/_DcMEpabj.js.br +0 -0
- package/dist/public/assets/_DcdqGN3z2.js.br +0 -0
- package/dist/public/assets/_Dd4UI6m9.js.br +0 -0
- package/dist/public/assets/_DebjdWD82.js.br +0 -0
- package/dist/public/assets/_DlgvawWO.js.br +0 -0
- package/dist/public/assets/_Dm3_XJhp.js.br +0 -0
- package/dist/public/assets/_DoYTmicm.js.br +0 -0
- package/dist/public/assets/_Dp2tIHGY.js.br +0 -0
- package/dist/public/assets/_DtSOe2hG.js.br +0 -0
- package/dist/public/assets/_DuJiHnT9.js.br +0 -0
- package/dist/public/assets/_LNwJ-4DM2.js.br +0 -0
- package/dist/public/assets/_LYSyk8ub.js.br +0 -0
- package/dist/public/assets/_NHqJTRXU.js.br +0 -0
- package/dist/public/assets/_RZjPJJI9.js +0 -1531
- package/dist/public/assets/_RZjPJJI9.js.br +0 -0
- package/dist/public/assets/_TJEWRjd5.js.br +0 -0
- package/dist/public/assets/_TrUY5-Oo.js.br +0 -0
- package/dist/public/assets/__nDBXvyf.js.br +0 -0
- package/dist/public/assets/_chIgh5T12.js.br +0 -0
- package/dist/public/assets/_da-D4VPw.js.br +0 -0
- package/dist/public/assets/_eSdLWSrw.js.br +0 -0
- package/dist/public/assets/_itykIiaw.js.br +0 -0
- package/dist/public/assets/_jid9u3Bf2.js.br +0 -0
- package/dist/public/assets/_oCTE7tfG2.js.br +0 -0
- package/dist/public/assets/_oamUDqK52.js.br +0 -0
- package/dist/public/assets/_v-whlyoS.js.br +0 -0
- package/dist/public/assets/diff-view-2uvkksbH.css +0 -1
- package/dist/public/assets/diff-view-2uvkksbH.css.br +0 -0
- package/dist/public/assets/index-CY8tmRJ8.js +0 -85
- package/dist/public/assets/index-CY8tmRJ8.js.br +0 -0
- package/dist/public/assets/index-mnzNQz7z.css +0 -1
- package/dist/public/assets/index-mnzNQz7z.css.br +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as _attr_class, D as tone, F as _attr_select_value, G as _el_resume, I as _attr_style, K as _escape, M as _attr_input_value, N as _attr_option_value, Q as _html, S as iconBtnRow, St as writeScope, U as _el, V as _content_resume, W as _el_read_error, Y as _for_of, a as diffTreeOpen, at as _scope_reason, bt as attrTag, ct as _sep, dt as _set_serialize_reason, et as _if, f as icon_back_default, ft as _show_end, ht as _template, i as icon_sidebar_default, it as _scope_id, j as _attr_details_or_dialog_open, k as _attr, lt as _serialize_guard, mt as _subscribe, n as findIconBtn, nt as _resume, o as diffUncommitted, ot as _scope_with_id, p as icon_refresh_default, pt as _show_start, q as _existing_scope, r as findInput, rt as _resume_branch, st as _script, t as icon_search_default, tt as _peek_scope_id, u as fuzzy, ut as _serialize_if, v as toast_default, x as iconBtnLg } from "./_NR7OKpDq.js";
|
|
2
2
|
//#region src/client/clipboard.ts
|
|
3
3
|
/** Copy text to the clipboard. `navigator.clipboard` needs a secure
|
|
4
4
|
* context — absent over plain-http LAN origins — so fall back to a hidden
|
|
@@ -260,30 +260,10 @@ function treeRows(files) {
|
|
|
260
260
|
walk(root, 0, "");
|
|
261
261
|
return rows;
|
|
262
262
|
}
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
var
|
|
266
|
-
var
|
|
267
|
-
var repoWorktree = "_eI _q";
|
|
268
|
-
var repoTitle = "_eK _p";
|
|
269
|
-
//#endregion
|
|
270
|
-
//#region src/tags/icons/icon-back.marko
|
|
271
|
-
var icon_back_default = _template("A", (input) => {
|
|
272
|
-
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
273
|
-
const $scope0_id = _scope_id();
|
|
274
|
-
_set_serialize_reason({
|
|
275
|
-
0: $sg__input_size__OR__input_class,
|
|
276
|
-
1: $sg__input_size__OR__input_class
|
|
277
|
-
});
|
|
278
|
-
const $childScope = _peek_scope_id();
|
|
279
|
-
icon_base_default({
|
|
280
|
-
d: "M15 6L9 12L15 18",
|
|
281
|
-
size: input.size,
|
|
282
|
-
class: input.class
|
|
283
|
-
});
|
|
284
|
-
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
285
|
-
});
|
|
286
|
-
var fileFilter = "_e6 _e";
|
|
263
|
+
var treeToggle = "_d6 _R _d";
|
|
264
|
+
var repoWorktree = "_ey _r";
|
|
265
|
+
var repoTitle = "_eA _q";
|
|
266
|
+
var fileFilter = "_e0 _f";
|
|
287
267
|
//#endregion
|
|
288
268
|
//#region src/tags/file-filter.marko
|
|
289
269
|
var file_filter_default = _template("j", (input) => {
|
|
@@ -313,7 +293,7 @@ var file_filter_default = _template("j", (input) => {
|
|
|
313
293
|
pending = v;
|
|
314
294
|
box.timer = setTimeout(flush, 150);
|
|
315
295
|
}, "j2", $scope0_id);
|
|
316
|
-
_html(`<div${_attr_class("
|
|
296
|
+
_html(`<div${_attr_class("_eZ")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
317
297
|
type(v);
|
|
318
298
|
}, "j0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
319
299
|
_script($scope0_id, "j3");
|
|
@@ -339,21 +319,21 @@ var diff_send_default = _template("g", (input) => {
|
|
|
339
319
|
let sendTarget = null;
|
|
340
320
|
const sessions = input.sessions || [];
|
|
341
321
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
342
|
-
_html(`<span${_attr_class("
|
|
322
|
+
_html(`<span${_attr_class("_fd")}><button type=button${_attr_class("_i")} title="Copy comments as markdown">Copy${_el_resume($scope0_id, "c")}</button>${_el_resume($scope0_id, "b")}`);
|
|
343
323
|
_if(() => {
|
|
344
324
|
if (sessions.length === 1) {
|
|
345
325
|
const $scope1_id = _scope_id();
|
|
346
|
-
_html(`<button type=button${_attr_class(["
|
|
326
|
+
_html(`<button type=button${_attr_class(["_i", "_j"])}${_attr("disabled", sending)}>${`Send to ${_escape(`${sessions[0].title || sessions[0].agent}`)}`}${_el_resume($scope1_id, "b")}</button>${_el_resume($scope1_id, "a")}`);
|
|
347
327
|
_script($scope1_id, "g1");
|
|
348
328
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
349
329
|
return 0;
|
|
350
330
|
} else if (sessions.length) {
|
|
351
331
|
const $scope2_id = _scope_id();
|
|
352
|
-
_html(`<span${_attr_class("
|
|
332
|
+
_html(`<span${_attr_class("_fe")}><button type=button${_attr_class(["_j", "_ff"])}${_attr("disabled", sending)}>Send to${_el_resume($scope2_id, "c")}</button>${_el_resume($scope2_id, "b")}`);
|
|
353
333
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
354
334
|
sendTarget = _new_sendTarget;
|
|
355
335
|
}, "g0", $scope2_id), () => {
|
|
356
|
-
_html(`<select${_attr_class("
|
|
336
|
+
_html(`<select${_attr_class("_fg")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
357
337
|
_for_of(sessions, (s) => {
|
|
358
338
|
const $scope3_id = _scope_id();
|
|
359
339
|
_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)}`);
|
|
@@ -1889,9 +1869,9 @@ var diff_find_default = _template("f", (input) => {
|
|
|
1889
1869
|
el.select();
|
|
1890
1870
|
}, 0);
|
|
1891
1871
|
}, "f5", $scope0_id);
|
|
1892
|
-
_html(`<div${_attr_class(["
|
|
1872
|
+
_html(`<div${_attr_class(["_e2", !open && "_e1"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1893
1873
|
type(v);
|
|
1894
|
-
}, "f0", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in diffs" aria-label="Find in diffs">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
1874
|
+
}, "f0", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in diffs" aria-label="Find in diffs">${_el_resume($scope0_id, "b")}<span${_attr_class("_e5")}>${open && (query || "").trim() ? hits.length ? `${_escape(`${at + 1}`)}/${_escape(`${hits.length}`)}` : "0/0" : ""}${_el_resume($scope0_id, "d")}</span><button type=button${_attr_class(findIconBtn)} title="Previous match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>↑</button>${_el_resume($scope0_id, "e")}<button type=button${_attr_class(findIconBtn)} title="Next match"${_attr("disabled", !hits.length || !open)} tabindex=${open ? "0" : "-1"}>↓</button>${_el_resume($scope0_id, "f")}<button type=button${_attr_class(findIconBtn)} title="Close find" tabindex=${open ? "0" : "-1"}>×</button>${_el_resume($scope0_id, "g")}</div>${_el_resume($scope0_id, "a")}`);
|
|
1895
1875
|
_script($scope0_id, "f6");
|
|
1896
1876
|
_script($scope0_id, "f7");
|
|
1897
1877
|
_script($scope0_id, "f8");
|
|
@@ -1930,7 +1910,7 @@ var diff_file_default = _template("e", (input) => {
|
|
|
1930
1910
|
_scope_reason();
|
|
1931
1911
|
const $scope0_id = _scope_id();
|
|
1932
1912
|
_el($scope0_id, "e0");
|
|
1933
|
-
_html(`<div${_attr_class(["
|
|
1913
|
+
_html(`<div${_attr_class(["_eY", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
1934
1914
|
_script($scope0_id, "e1");
|
|
1935
1915
|
writeScope($scope0_id, {
|
|
1936
1916
|
e: input.file,
|
|
@@ -1959,10 +1939,10 @@ var diff_tree_default = _template("h", (input) => {
|
|
|
1959
1939
|
let openedRepos = input.openedRepos;
|
|
1960
1940
|
let collapsedDirs = /* @__PURE__ */ new Set();
|
|
1961
1941
|
const commentKeys = input.commentKeys || /* @__PURE__ */ new Set();
|
|
1962
|
-
_html(`<aside${_attr_class(["
|
|
1942
|
+
_html(`<aside${_attr_class(["_fs", { ["_fr"]: input.open === false }])}>`);
|
|
1963
1943
|
_for_of(input.sections, (section) => {
|
|
1964
1944
|
const $scope1_id = _scope_id();
|
|
1965
|
-
_html(`<div${_attr_class("
|
|
1945
|
+
_html(`<div${_attr_class("_ft")}><button type=button${_attr_class(["_fu", { ["_fr"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_fz")}>${collapsedRepos.has(section.id) ? "▸" : "▾"}${_el_resume($scope1_id, "d")}</span>${_sep($sg__input_sections)}${_escape(section.label)}${_el_resume($scope1_id, "e", $sg__input_sections)}</button>${_el_resume($scope1_id, "b")}`);
|
|
1966
1946
|
_if(() => {
|
|
1967
1947
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
1968
1948
|
const $scope2_id = _scope_id();
|
|
@@ -1989,17 +1969,17 @@ var diff_tree_default = _template("h", (input) => {
|
|
|
1989
1969
|
_if(() => {
|
|
1990
1970
|
if (!hiddenByCollapse(row) && row.kind === "dir") {
|
|
1991
1971
|
const $scope5_id = _scope_id();
|
|
1992
|
-
_html(`<button type=button${_attr_class(["
|
|
1972
|
+
_html(`<button type=button${_attr_class(["_fv", { ["_fr"]: collapsedDirs.has(dirKey(row.path)) }])}${_attr("title", row.path)}${_attr_style(`padding-left:${.35 + row.depth * .75}rem`)}><span${_attr_class("_fz")}>${collapsedDirs.has(dirKey(row.path)) ? "▸" : "▾"}${_el_resume($scope5_id, "c")}</span>${_escape(row.label)}${_el_resume($scope5_id, "d", $sg__input_sections)}/</button>${_el_resume($scope5_id, "a")}`);
|
|
1993
1973
|
_script($scope5_id, "h3");
|
|
1994
1974
|
_subscribe($si__input_sections && $if_content__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($scope5_id, { Cv: 1 })));
|
|
1995
1975
|
return 0;
|
|
1996
1976
|
} else if (!hiddenByCollapse(row) && row.kind !== "dir") {
|
|
1997
1977
|
const $scope4_id = _scope_id();
|
|
1998
|
-
_html(`<button type=button${_attr_class("
|
|
1978
|
+
_html(`<button type=button${_attr_class("_fw")}${_attr("title", row.file.path)}${_attr_style(`padding-left:${.5 + row.depth * .75}rem`)}><span${_attr_class("_fA")}${_attr("data-status", row.file.status)}>${_escape(row.file.status)}${_el_resume($scope4_id, "c", $sg__input_sections)}</span>${_el_resume($scope4_id, "b", $sg__input_sections)}<span${_attr_class("_fx")}>${_escape(row.name)}${_el_resume($scope4_id, "e", $sg__input_sections)}</span>`);
|
|
1999
1979
|
_if(() => {
|
|
2000
1980
|
if (commentKeys.has(row.file.key)) {
|
|
2001
1981
|
const $scope6_id = _scope_id();
|
|
2002
|
-
_html(`<span${_attr_class("
|
|
1982
|
+
_html(`<span${_attr_class("_fy")}>💬</span>`);
|
|
2003
1983
|
_serialize_if($scope0_reason, 0) && writeScope($scope6_id, {});
|
|
2004
1984
|
return 0;
|
|
2005
1985
|
}
|
|
@@ -2059,9 +2039,6 @@ var diff_tree_default = _template("h", (input) => {
|
|
|
2059
2039
|
_resume_branch($scope0_id);
|
|
2060
2040
|
});
|
|
2061
2041
|
//#endregion
|
|
2062
|
-
//#region src/tags/diff-file-sheet.css.ts
|
|
2063
|
-
var iconBtn = "_fs _D";
|
|
2064
|
-
//#endregion
|
|
2065
2042
|
//#region src/tags/diff-file-sheet.marko
|
|
2066
2043
|
var diff_file_sheet_default = _template("d", (input) => {
|
|
2067
2044
|
const $scope0_reason = _scope_reason(), $sg__input_total__OR__input_files_length = _serialize_guard($scope0_reason, 1), $sg__input_files = _serialize_guard($scope0_reason, 5), $sg__input_commentKeys__OR__input_files = _serialize_guard($scope0_reason, 0), $si__input_commentKeys = _serialize_if($scope0_reason, 4);
|
|
@@ -2073,10 +2050,10 @@ var diff_file_sheet_default = _template("d", (input) => {
|
|
|
2073
2050
|
_if(() => {
|
|
2074
2051
|
if (open) {
|
|
2075
2052
|
const $scope1_id = _scope_id();
|
|
2076
|
-
_html(`<div${_attr_class("
|
|
2053
|
+
_html(`<div${_attr_class("_fj")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_fk")} role=dialog aria-label="Jump to file"><div${_attr_class("_fl")}><strong${_attr_class("_fi")}>Files</strong><span${_attr_class("_fm")}>${_escape(input.files.length)}${_el_resume($scope1_id, "f", _serialize_guard($scope0_reason, 6))}${_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, "_fh"])} title=Close aria-label=Close>×</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_fn")}>`);
|
|
2077
2054
|
_for_of(input.files, (file) => {
|
|
2078
2055
|
const $scope2_id = _scope_id();
|
|
2079
|
-
_html(`<button type=button${_attr_class(["
|
|
2056
|
+
_html(`<button type=button${_attr_class(["_fo", "_r"])}><span${_attr_class("_fq")}${_attr("data-status", file.status)}>${_escape(file.status)}${_el_resume($scope2_id, "c", $sg__input_files)}</span>${_el_resume($scope2_id, "b", $sg__input_files)}<span${_attr_class("_fp")}${_attr("title", file.key)}><bdi>${_escape(file.key)}${_el_resume($scope2_id, "e", $sg__input_files)}</bdi></span>${_el_resume($scope2_id, "d", $sg__input_files)}`);
|
|
2080
2057
|
_if(() => {
|
|
2081
2058
|
if (commentKeys.has(file.key)) {
|
|
2082
2059
|
const $scope3_id = _scope_id();
|
|
@@ -2470,11 +2447,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2470
2447
|
revealSearchHit();
|
|
2471
2448
|
}, 0);
|
|
2472
2449
|
}, "i20", $scope0_id);
|
|
2473
|
-
_html(`<div${_attr_class("
|
|
2450
|
+
_html(`<div${_attr_class("_d3")}><div${_attr_class("_d8")}><div${_attr_class(["_d9", { ["_ea"]: comments.length > 0 }])}><div${_attr_class("_ek")}>`);
|
|
2474
2451
|
_if(() => {
|
|
2475
2452
|
if (input.onExit) {
|
|
2476
2453
|
const $scope1_id = _scope_id();
|
|
2477
|
-
_html(`<button${_attr_class([
|
|
2454
|
+
_html(`<button${_attr_class([iconBtnRow, "_d_"])} title="Back to terminal (Esc)">`);
|
|
2478
2455
|
icon_back_default({ size: 14 });
|
|
2479
2456
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
2480
2457
|
_script($scope1_id, "i36");
|
|
@@ -2482,7 +2459,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2482
2459
|
return 0;
|
|
2483
2460
|
}
|
|
2484
2461
|
}, $scope0_id, "e", $sg__input_onExit, $sg__input_onExit, 1, 0, 1);
|
|
2485
|
-
_html(`<div${_attr_class("
|
|
2462
|
+
_html(`<h1${_attr_class("_ec")}>Review</h1><div${_attr_class("_el")}>`);
|
|
2486
2463
|
_set_serialize_reason(2);
|
|
2487
2464
|
const $childScope = _peek_scope_id();
|
|
2488
2465
|
file_filter_default({
|
|
@@ -2491,16 +2468,16 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2491
2468
|
fileFilter = _new_fileFilter;
|
|
2492
2469
|
}, "i21", $scope0_id)
|
|
2493
2470
|
});
|
|
2494
|
-
_html(`</div><div${_attr_class("
|
|
2471
|
+
_html(`</div><div${_attr_class("_eb")}><span${_attr_class("_em")}>`);
|
|
2495
2472
|
_if(() => {
|
|
2496
2473
|
if (lineStats.additions || lineStats.deletions) {
|
|
2497
2474
|
const $scope27_id = _scope_id();
|
|
2498
|
-
_html(`<span${_attr_class("
|
|
2475
|
+
_html(`<span${_attr_class("_en")}>+<!>${_escape(lineStats.additions)}${_el_resume($scope27_id, "b")}</span><span${_attr_class("_eo")}>−<!>${_escape(lineStats.deletions)}${_el_resume($scope27_id, "d")}</span>`);
|
|
2499
2476
|
writeScope($scope27_id, {});
|
|
2500
2477
|
return 0;
|
|
2501
2478
|
} else {
|
|
2502
2479
|
const $scope29_id = _scope_id();
|
|
2503
|
-
_html(`<span${_attr_class("
|
|
2480
|
+
_html(`<span${_attr_class("_ep")}>0</span>`);
|
|
2504
2481
|
writeScope($scope29_id, {});
|
|
2505
2482
|
return 1;
|
|
2506
2483
|
}
|
|
@@ -2508,7 +2485,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2508
2485
|
_if(() => {
|
|
2509
2486
|
if (comments.length) {
|
|
2510
2487
|
const $scope13_id = _scope_id();
|
|
2511
|
-
_html(`<span${_attr_class("
|
|
2488
|
+
_html(`<span${_attr_class("_eq")}>·</span>${_escape(comments.length)}${_el_resume($scope13_id, "b")} comment<!>${comments.length === 1 ? "" : "s"}${_el_resume($scope13_id, "c")}`);
|
|
2512
2489
|
writeScope($scope13_id, {});
|
|
2513
2490
|
return 0;
|
|
2514
2491
|
}
|
|
@@ -2528,20 +2505,23 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2528
2505
|
return 0;
|
|
2529
2506
|
}
|
|
2530
2507
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
2531
|
-
_html(`</div><div${_attr_class("
|
|
2508
|
+
_html(`</div><div${_attr_class("_d7")}><button${_attr_class([
|
|
2532
2509
|
treeToggle,
|
|
2533
|
-
"
|
|
2534
|
-
{ ["
|
|
2510
|
+
"_d5",
|
|
2511
|
+
{ ["_d4"]: treeOpen }
|
|
2535
2512
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
2536
2513
|
icon_sidebar_default({ size: 14 });
|
|
2537
|
-
_html(`</button>${_el_resume($scope0_id, "o")}<button${_attr_class([
|
|
2514
|
+
_html(`</button>${_el_resume($scope0_id, "o")}<button${_attr_class([iconBtnRow, "_d5"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
2538
2515
|
_set_serialize_reason(1);
|
|
2539
2516
|
const $childScope3 = _peek_scope_id();
|
|
2540
2517
|
icon_refresh_default({
|
|
2541
2518
|
size: 14,
|
|
2542
|
-
class: loading && "
|
|
2519
|
+
class: loading && "_y"
|
|
2543
2520
|
});
|
|
2544
|
-
_html(`</button>${_el_resume($scope0_id, "q")}<button${_attr_class("
|
|
2521
|
+
_html(`</button>${_el_resume($scope0_id, "q")}<button${_attr_class(["_i", "_eR"])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "t")})</button>${_el_resume($scope0_id, "s")}<div${_attr_class("_er")} role=group aria-label="Review scope"><button type=button${_attr_class(["_et", { ["_es"]: !uncommitted }])} aria-pressed=${!uncommitted ? "true" : "false"} title="Committed changes only — base…tip, no working-tree edits"${_attr("disabled", loading)}>Committed</button>${_el_resume($scope0_id, "v")}<button type=button${_attr_class(["_et", { ["_es"]: uncommitted }])} aria-pressed=${uncommitted ? "true" : "false"} title="Include uncommitted and untracked files in the working tree"${_attr("disabled", loading)}>Working tree</button>${_el_resume($scope0_id, "w")}</div><button type=button${_attr_class(["_eu", {
|
|
2522
|
+
["_es"]: uncommitted,
|
|
2523
|
+
["_V"]: uncommitted
|
|
2524
|
+
}])} aria-pressed=${uncommitted ? "true" : "false"} title=${uncommitted ? "\"Working tree (incl. uncommitted) — tap for committed only\"" : "\"Committed only — tap to include the working tree\""}${_attr("disabled", loading)}>${uncommitted ? "Working tree" : "Committed"}${_el_resume($scope0_id, "y")}</button>${_el_resume($scope0_id, "x")}<div${_attr_class(["_ef", { ["_ee"]: !findOpen }])}>`);
|
|
2545
2525
|
_set_serialize_reason(2);
|
|
2546
2526
|
const $childScope4 = _peek_scope_id();
|
|
2547
2527
|
diff_find_default({
|
|
@@ -2557,12 +2537,12 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2557
2537
|
}, "i23", $scope0_id)
|
|
2558
2538
|
});
|
|
2559
2539
|
_html(`</div>${_el_resume($scope0_id, "z")}<button${_attr_class([
|
|
2560
|
-
|
|
2561
|
-
"
|
|
2562
|
-
"
|
|
2540
|
+
iconBtnRow,
|
|
2541
|
+
"_ed",
|
|
2542
|
+
"_d5"
|
|
2563
2543
|
])} title="Find in the review (⌘/Ctrl+F)" aria-label="Find in the review"${_attr("hidden", findOpen)}>`);
|
|
2564
2544
|
icon_search_default({ size: 14 });
|
|
2565
|
-
_html(`</button>${_el_resume($scope0_id, "a1")}</div></div>${_el_resume($scope0_id, "c")}<div${_attr_class("
|
|
2545
|
+
_html(`</button>${_el_resume($scope0_id, "a1")}</div></div>${_el_resume($scope0_id, "c")}<div${_attr_class("_ei")} data-diff-main>`);
|
|
2566
2546
|
_if(() => {
|
|
2567
2547
|
if (error) {
|
|
2568
2548
|
const $scope14_id = _scope_id();
|
|
@@ -2585,7 +2565,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2585
2565
|
_if(() => {
|
|
2586
2566
|
if (!repos && loading) {
|
|
2587
2567
|
const $scope30_id = _scope_id();
|
|
2588
|
-
_html(`<p${_attr_class("
|
|
2568
|
+
_html(`<p${_attr_class("_bx")}>Loading diff…</p>`);
|
|
2589
2569
|
writeScope($scope30_id, {});
|
|
2590
2570
|
return 0;
|
|
2591
2571
|
}
|
|
@@ -2654,7 +2634,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2654
2634
|
action: attrTag({ content: _content_resume("i41", () => {
|
|
2655
2635
|
_scope_reason();
|
|
2656
2636
|
const $scope17_id = _scope_id();
|
|
2657
|
-
_html(`<button${_attr_class("
|
|
2637
|
+
_html(`<button${_attr_class("_i")}${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope17_id, "b")}</button>${_el_resume($scope17_id, "a")}`);
|
|
2658
2638
|
_script($scope17_id, "i40");
|
|
2659
2639
|
_subscribe($loading__closures, writeScope($scope17_id, { _: _scope_with_id($scope16_id) }));
|
|
2660
2640
|
_resume_branch($scope17_id);
|
|
@@ -2662,13 +2642,13 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2662
2642
|
content: _content_resume("i42", () => {
|
|
2663
2643
|
_scope_reason();
|
|
2664
2644
|
const $scope28_id = _scope_id();
|
|
2665
|
-
_html(`<span${_attr_class("
|
|
2645
|
+
_html(`<span${_attr_class("_q")}>`);
|
|
2666
2646
|
_for_of(driftRepos, (repo, i) => {
|
|
2667
2647
|
const $scope31_id = _scope_id();
|
|
2668
2648
|
_html(`${i > 0 ? " · " : ""}${_el_resume($scope31_id, "a")}<!>${_escape(repo.worktree)}${_el_resume($scope31_id, "b")} #<!>${_escape(repo.pr.number)}${_el_resume($scope31_id, "c")}`);
|
|
2669
2649
|
writeScope($scope31_id, {});
|
|
2670
2650
|
}, "id", $scope28_id, "b");
|
|
2671
|
-
_html(` — this view has a newer tip than the PR page.</span><span${_attr_class(["
|
|
2651
|
+
_html(` — this view has a newer tip than the PR page.</span><span${_attr_class(["_r", "_ej"])}>`);
|
|
2672
2652
|
_for_of(driftRepos, (repo, i) => {
|
|
2673
2653
|
const $scope32_id = _scope_id();
|
|
2674
2654
|
_html(`<span${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}`)}>${i > 0 ? " · " : ""}${_el_resume($scope32_id, "b")}<!>${_escape(shortSha(repo.head))}${_el_resume($scope32_id, "c")} → <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope32_id, "d")}</span>${_el_resume($scope32_id, "a")}`);
|
|
@@ -2720,12 +2700,12 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2720
2700
|
_if(() => {
|
|
2721
2701
|
if (repos && !allFiles.length) {
|
|
2722
2702
|
const $scope26_id = _scope_id();
|
|
2723
|
-
_html(`<p${_attr_class("
|
|
2703
|
+
_html(`<p${_attr_class("_bx")}>${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope26_id, "b")}</p>`);
|
|
2724
2704
|
writeScope($scope26_id, {});
|
|
2725
2705
|
return 0;
|
|
2726
2706
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
2727
2707
|
const $scope18_id = _scope_id();
|
|
2728
|
-
_html(`<p${_attr_class("
|
|
2708
|
+
_html(`<p${_attr_class("_bx")}>${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope18_id, "b")}</p>`);
|
|
2729
2709
|
writeScope($scope18_id, {});
|
|
2730
2710
|
return 1;
|
|
2731
2711
|
}
|
|
@@ -2754,21 +2734,21 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2754
2734
|
_if(() => {
|
|
2755
2735
|
if (repoFiles.length || repo.pr) {
|
|
2756
2736
|
const $scope4_id = _scope_id();
|
|
2757
|
-
_html(`<section${_attr_class("
|
|
2737
|
+
_html(`<section${_attr_class("_ev")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownInRepo.length && !repo.pr && findState.hit?.repo !== repo.id)}>`);
|
|
2758
2738
|
_if(() => {
|
|
2759
2739
|
if (repoList.length > 1) {
|
|
2760
2740
|
const $scope5_id = _scope_id();
|
|
2761
2741
|
const repoCollapsed = collapsedRepos.has(repo.id);
|
|
2762
2742
|
const repoExpanding = expandingRepos.has(repo.id);
|
|
2763
|
-
_html(`<button type=button${_attr_class(["
|
|
2764
|
-
"
|
|
2765
|
-
!repoCollapsed && "
|
|
2766
|
-
repoExpanding && "
|
|
2743
|
+
_html(`<button type=button${_attr_class(["_ew", repoCollapsed && "_ex"])} aria-expanded=${!repoCollapsed ? "true" : "false"} aria-busy=${repoExpanding ? "true" : "false"}${repoCollapsed ? _attr("title", `Show ${shownInRepo.length || repoFiles.length} files`) : " title=\"Hide files\""}><span${_attr_class([
|
|
2744
|
+
"_eM",
|
|
2745
|
+
!repoCollapsed && "_eN",
|
|
2746
|
+
repoExpanding && "_eO"
|
|
2767
2747
|
])} aria-hidden=true>${repoCollapsed ? "▸" : "▾"}${_el_resume($scope5_id, "c")}</span>${_el_resume($scope5_id, "b")}<span${_attr_class(repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope5_id, "e")}</span>`);
|
|
2768
2748
|
_if(() => {
|
|
2769
2749
|
if (repo.pr) {
|
|
2770
2750
|
const $scope33_id = _scope_id();
|
|
2771
|
-
_html(`<a${_attr_class(["
|
|
2751
|
+
_html(`<a${_attr_class(["_m", "_o"])}${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title} — ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#<!>${_escape(repo.pr.number)}${_el_resume($scope33_id, "b")}</a>${_el_resume($scope33_id, "a")}<span${_attr_class(repoTitle)}>${_escape(repo.pr.title)}${_el_resume($scope33_id, "d")}</span>`);
|
|
2772
2752
|
_script($scope33_id, "i44");
|
|
2773
2753
|
_subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr_headRefName__closures, _subscribe($for_content__repo_pr_title__closures, _subscribe($for_content__repo_pr_url__closures, _subscribe($for_content__repo_pr_number__closures, writeScope($scope33_id, {
|
|
2774
2754
|
Ca4: 2,
|
|
@@ -2785,11 +2765,15 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2785
2765
|
}
|
|
2786
2766
|
}, $scope5_id, "f");
|
|
2787
2767
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch || "", input.workspaceName || "");
|
|
2788
|
-
_html(`<span${_attr_class("
|
|
2768
|
+
_html(`<span${_attr_class("_eC")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_C", "_eD"])}>${_escape(compare$1.base)}${_el_resume($scope5_id, "i")}</span><span${_attr_class(["_E", "_eF"])} aria-hidden=true>vs</span><span${_attr_class(["_C", "_eE"])}>${_escape(compare$1.head)}${_el_resume($scope5_id, "l")}</span>`);
|
|
2789
2769
|
_if(() => {
|
|
2790
2770
|
if (compare$1.topic) {
|
|
2791
2771
|
const $scope36_id = _scope_id();
|
|
2792
|
-
_html(`<span${_attr_class(
|
|
2772
|
+
_html(`<span${_attr_class([
|
|
2773
|
+
"_C",
|
|
2774
|
+
tone.accent,
|
|
2775
|
+
"_eG"
|
|
2776
|
+
])}>${_escape(compare$1.topic)}${_el_resume($scope36_id, "b")}</span>`);
|
|
2793
2777
|
writeScope($scope36_id, {});
|
|
2794
2778
|
return 0;
|
|
2795
2779
|
}
|
|
@@ -2798,7 +2782,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2798
2782
|
_if(() => {
|
|
2799
2783
|
if (localDifferIds.has(repo.id)) {
|
|
2800
2784
|
const $scope6_id = _scope_id();
|
|
2801
|
-
_html(`<span${_attr_class("
|
|
2785
|
+
_html(`<span${_attr_class("_m")}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(shortBranch(repo.branch, input.workspaceBranch || "", input.workspaceName || ""))}${_el_resume($scope6_id, "b")}</span>${_el_resume($scope6_id, "a")}`);
|
|
2802
2786
|
_subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, _subscribe($si__input_workspaceName && $input_workspaceName__closures, _subscribe($si__input_workspaceBranch && $input_workspaceBranch__closures, writeScope($scope6_id, {
|
|
2803
2787
|
Cdo: $si__input_workspaceBranch && 1,
|
|
2804
2788
|
Cdp: $si__input_workspaceName && 1,
|
|
@@ -2807,7 +2791,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2807
2791
|
return 0;
|
|
2808
2792
|
}
|
|
2809
2793
|
}, $scope5_id, "n", 1, 1, 1, 0, 1);
|
|
2810
|
-
_html(`<span${_attr_class("
|
|
2794
|
+
_html(`<span${_attr_class("_ez")}>${_escape(shownInRepo.length || repoFiles.length)}${_el_resume($scope5_id, "p")} file<!>${(shownInRepo.length || repoFiles.length) === 1 ? "" : "s"}${_el_resume($scope5_id, "q")}</span></button>${_el_resume($scope5_id, "a")}`);
|
|
2811
2795
|
_script($scope5_id, "i45");
|
|
2812
2796
|
_subscribe($for_content__shownInRepo_length__closures, _subscribe($for_content__repoFiles_length__closures, _subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_pr_baseRefName__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr_headRefName__closures, _subscribe($for_content__repo_worktree__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, _subscribe($expandingRepos__closures, _subscribe($collapsedRepos__closures, _subscribe($si__input_workspaceName && $input_workspaceName__closures, _subscribe($si__input_workspaceBranch && $input_workspaceBranch__closures, writeScope($scope5_id, {
|
|
2813
2797
|
r: repoCollapsed,
|
|
@@ -2818,11 +2802,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2818
2802
|
return 0;
|
|
2819
2803
|
} else {
|
|
2820
2804
|
const $scope7_id = _scope_id();
|
|
2821
|
-
_html(`<p${_attr_class("
|
|
2805
|
+
_html(`<p${_attr_class("_eB")}>`);
|
|
2822
2806
|
_if(() => {
|
|
2823
2807
|
if (repo.pr) {
|
|
2824
2808
|
const $scope35_id = _scope_id();
|
|
2825
|
-
_html(`<a${_attr_class(["
|
|
2809
|
+
_html(`<a${_attr_class(["_m", "_o"])}${_attr("href", `${repo.pr.url}/files`)} target=_blank rel=noopener${_attr("title", `${repo.pr.title} — ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}`)}>#<!>${_escape(repo.pr.number)}${_el_resume($scope35_id, "b")}</a>${_el_resume($scope35_id, "a")}<span${_attr_class("_q")}>${_escape(repo.pr.title)}${_el_resume($scope35_id, "d")}</span>`);
|
|
2826
2810
|
_subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr_headRefName__closures, _subscribe($for_content__repo_pr_title__closures, _subscribe($for_content__repo_pr_url__closures, _subscribe($for_content__repo_pr_number__closures, writeScope($scope35_id, {
|
|
2827
2811
|
Ca1: 1,
|
|
2828
2812
|
Ca2: 1,
|
|
@@ -2836,11 +2820,15 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2836
2820
|
}
|
|
2837
2821
|
}, $scope7_id, "b");
|
|
2838
2822
|
const compare$2 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch || "", input.workspaceName || "");
|
|
2839
|
-
_html(`<span${_attr_class("
|
|
2823
|
+
_html(`<span${_attr_class("_eC")}${_attr("title", `${compare$2.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class(["_C", "_eD"])}>${_escape(compare$2.base)}${_el_resume($scope7_id, "e")}</span><span${_attr_class(["_E", "_eF"])} aria-hidden=true>vs</span><span${_attr_class(["_C", "_eE"])}>${_escape(compare$2.head)}${_el_resume($scope7_id, "h")}</span>`);
|
|
2840
2824
|
_if(() => {
|
|
2841
2825
|
if (compare$2.topic) {
|
|
2842
2826
|
const $scope37_id = _scope_id();
|
|
2843
|
-
_html(`<span${_attr_class(
|
|
2827
|
+
_html(`<span${_attr_class([
|
|
2828
|
+
"_C",
|
|
2829
|
+
tone.accent,
|
|
2830
|
+
"_eG"
|
|
2831
|
+
])}>${_escape(compare$2.topic)}${_el_resume($scope37_id, "b")}</span>`);
|
|
2844
2832
|
writeScope($scope37_id, {});
|
|
2845
2833
|
return 0;
|
|
2846
2834
|
}
|
|
@@ -2849,7 +2837,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2849
2837
|
_if(() => {
|
|
2850
2838
|
if (localDifferIds.has(repo.id)) {
|
|
2851
2839
|
const $scope8_id = _scope_id();
|
|
2852
|
-
_html(`<span${_attr_class("
|
|
2840
|
+
_html(`<span${_attr_class("_m")}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(shortBranch(repo.branch, input.workspaceBranch || "", input.workspaceName || ""))}${_el_resume($scope8_id, "b")}</span>${_el_resume($scope8_id, "a")}`);
|
|
2853
2841
|
_subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, _subscribe($si__input_workspaceName && $input_workspaceName__closures, _subscribe($si__input_workspaceBranch && $input_workspaceBranch__closures, writeScope($scope8_id, {
|
|
2854
2842
|
Cdo: $si__input_workspaceBranch && 3,
|
|
2855
2843
|
Cdp: $si__input_workspaceName && 3,
|
|
@@ -2882,7 +2870,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2882
2870
|
const $scope9_id = _scope_id();
|
|
2883
2871
|
const $show = repoList.length === 1 || !collapsedRepos.has(repo.id);
|
|
2884
2872
|
_show_start($show);
|
|
2885
|
-
_html(`<div${_attr_class("
|
|
2873
|
+
_html(`<div${_attr_class("_eH")}>`);
|
|
2886
2874
|
_for_of(repoFiles, (file$1) => {
|
|
2887
2875
|
const $scope10_id = _scope_id();
|
|
2888
2876
|
const $for_content2__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -2890,11 +2878,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2890
2878
|
const $for_content2__fileComments__closures = /* @__PURE__ */ new Set();
|
|
2891
2879
|
const fileComments = commentsByFile.get(file$1.key) || [];
|
|
2892
2880
|
let expanded = true;
|
|
2893
|
-
_html(`<details${_attr_details_or_dialog_open($scope10_id, "a", expanded)}${_attr_class(["
|
|
2881
|
+
_html(`<details${_attr_details_or_dialog_open($scope10_id, "a", expanded)}${_attr_class(["_eI", findState.hit?.key === file$1.key && "_eg"])}${_attr("data-key", file$1.key)}${_attr("hidden", !shownKeySet.has(file$1.key))}><summary${_attr_class("_eK")}><span${_attr_class("_eP")}${_attr("data-status", file$1.status)}>${_escape(file$1.status)}${_el_resume($scope10_id, "d")}</span>${_el_resume($scope10_id, "c")}<span${_attr_class(["_eQ", findState.hit?.key === file$1.key && findState.hit.line < 1 && "_eh"])}${_attr("title", file$1.path)}><bdi>${_escape(file$1.path)}${_el_resume($scope10_id, "f")}</bdi></span>${_el_resume($scope10_id, "e")}`);
|
|
2894
2882
|
_if(() => {
|
|
2895
2883
|
if (fileComments.length) {
|
|
2896
2884
|
const $scope38_id = _scope_id();
|
|
2897
|
-
_html(`<span${_attr_class("
|
|
2885
|
+
_html(`<span${_attr_class("_m")}>💬 <!>${_escape(fileComments.length)}${_el_resume($scope38_id, "b")}</span>`);
|
|
2898
2886
|
writeScope($scope38_id, {});
|
|
2899
2887
|
return 0;
|
|
2900
2888
|
}
|
|
@@ -2903,17 +2891,17 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2903
2891
|
_if(() => {
|
|
2904
2892
|
if (file$1.binary) {
|
|
2905
2893
|
const $scope39_id = _scope_id();
|
|
2906
|
-
_html(`<p${_attr_class(["
|
|
2894
|
+
_html(`<p${_attr_class(["_eS", "_eJ"])}>binary file</p>`);
|
|
2907
2895
|
writeScope($scope39_id, {});
|
|
2908
2896
|
return 0;
|
|
2909
2897
|
} else if (file$1.tooLarge) {
|
|
2910
2898
|
const $scope40_id = _scope_id();
|
|
2911
|
-
_html(`<p${_attr_class(["
|
|
2899
|
+
_html(`<p${_attr_class(["_eS", "_eJ"])}>file too large to display</p>`);
|
|
2912
2900
|
writeScope($scope40_id, {});
|
|
2913
2901
|
return 1;
|
|
2914
2902
|
} else if (file$1.old == null && file$1.new == null) {
|
|
2915
2903
|
const $scope41_id = _scope_id();
|
|
2916
|
-
_html(`<p${_attr_class(["
|
|
2904
|
+
_html(`<p${_attr_class(["_eS", "_eJ"])}>file could not be read</p>`);
|
|
2917
2905
|
writeScope($scope41_id, {});
|
|
2918
2906
|
return 2;
|
|
2919
2907
|
} else {
|
|
@@ -2923,7 +2911,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2923
2911
|
_if(() => {
|
|
2924
2912
|
if (!forceNear) {
|
|
2925
2913
|
const $scope25_id = _scope_id();
|
|
2926
|
-
_html(`<div${_attr_class(["
|
|
2914
|
+
_html(`<div${_attr_class(["_eL", "_eJ"])}></div>${_el_resume($scope25_id, "a")}`);
|
|
2927
2915
|
_script($scope25_id, "i46");
|
|
2928
2916
|
writeScope($scope25_id, {});
|
|
2929
2917
|
return 0;
|
|
@@ -2931,7 +2919,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2931
2919
|
const $scope12_id = _scope_id();
|
|
2932
2920
|
const $childScope9 = _peek_scope_id();
|
|
2933
2921
|
diff_file_default({
|
|
2934
|
-
class: "
|
|
2922
|
+
class: "_eJ",
|
|
2935
2923
|
file: file$1,
|
|
2936
2924
|
comments: fileComments,
|
|
2937
2925
|
draft: draft && draft.key === file$1.key ? draft : null,
|
|
@@ -3151,7 +3139,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
3151
3139
|
dk: openFind,
|
|
3152
3140
|
dm: onFindState,
|
|
3153
3141
|
b6: input.findOpenChange || void 0,
|
|
3154
|
-
|
|
3142
|
+
h: _existing_scope($childScope),
|
|
3155
3143
|
r: _existing_scope($childScope3),
|
|
3156
3144
|
a0: _existing_scope($childScope4),
|
|
3157
3145
|
ds: $error__closures,
|