@dylanpiercey/work 0.0.107 → 0.0.108
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/{_CnOgSoC0.js → _4U00WI47.js} +70 -52
- package/dist/{_l7X4G2ig.js → _D60UKgk7.js} +3 -21
- package/dist/index.mjs +149 -163
- package/dist/public/assets/{_B8RoNlNc2.js → _3ZSompN02.js} +1 -1
- package/dist/public/assets/_3ZSompN02.js.br +0 -0
- package/dist/public/assets/{_CfjKqVdQ.js → _AS_QNAut.js} +1 -1
- package/dist/public/assets/_AS_QNAut.js.br +0 -0
- package/dist/public/assets/{_BDCf2Wo62.js → _A_OowyKJ2.js} +1 -1
- package/dist/public/assets/_A_OowyKJ2.js.br +0 -0
- package/dist/public/assets/{_kaGT3pkC2.js → _AjvVVtb-2.js} +1 -1
- package/dist/public/assets/_AjvVVtb-2.js.br +0 -0
- package/dist/public/assets/{_CMQ31fBp2.js → _B-fILq9z2.js} +1 -1
- package/dist/public/assets/_B-fILq9z2.js.br +0 -0
- package/dist/public/assets/{_ClZTX_pU2.js → _B5o4lJM-2.js} +1 -1
- package/dist/public/assets/_B5o4lJM-2.js.br +0 -0
- package/dist/public/assets/{_CIxhLVuf.js → _BJxldHyB.js} +1 -1
- package/dist/public/assets/_BJxldHyB.js.br +0 -0
- package/dist/public/assets/{_CO26sqYi2.js → _BKnscBu22.js} +1 -1
- package/dist/public/assets/_BKnscBu22.js.br +0 -0
- package/dist/public/assets/{_D7s5hIII.js → _BLMDpuBW.js} +1 -1
- package/dist/public/assets/_BLMDpuBW.js.br +0 -0
- package/dist/public/assets/{_C_ftH2vB.js → _BOXInE4V.js} +1 -1
- package/dist/public/assets/_BOXInE4V.js.br +0 -0
- package/dist/public/assets/{_BEs8vK7W.js → _BUvhBhYI.js} +1 -1
- package/dist/public/assets/_BUvhBhYI.js.br +0 -0
- package/dist/public/assets/{_fjObnvv3.js → _BZR8clV2.js} +1 -1
- package/dist/public/assets/_BZR8clV2.js.br +0 -0
- package/dist/public/assets/{_Csa_vKlI.js → _B_02a7gR.js} +1 -1
- package/dist/public/assets/_B_02a7gR.js.br +0 -0
- package/dist/public/assets/{_DkGPKQRN2.js → _B_DF81_a2.js} +1 -1
- package/dist/public/assets/_B_DF81_a2.js.br +0 -0
- package/dist/public/assets/{_Clslf-eq2.js → _Ba9xe9U02.js} +1 -1
- package/dist/public/assets/_Ba9xe9U02.js.br +0 -0
- package/dist/public/assets/{_CGPXzGv32.js → _BcZJAvN-2.js} +1 -1
- package/dist/public/assets/_BcZJAvN-2.js.br +0 -0
- package/dist/public/assets/{_BpigGSKG.js → _Bd1pgCVU.js} +1 -1
- package/dist/public/assets/_Bd1pgCVU.js.br +0 -0
- package/dist/public/assets/{_DUZHLnR2.js → _BdWb51WI.js} +1 -1
- package/dist/public/assets/_BdWb51WI.js.br +0 -0
- package/dist/public/assets/{_knyXa4w7.js → _Bj_cWMOB.js} +1 -1
- package/dist/public/assets/_Bj_cWMOB.js.br +0 -0
- package/dist/public/assets/{_jXEAHizC.js → _Bo7bxECF.js} +1 -1
- package/dist/public/assets/_Bo7bxECF.js.br +0 -0
- package/dist/public/assets/{_CRqhBwXk.js → _BsPMrz7F.js} +1 -1
- package/dist/public/assets/_BsPMrz7F.js.br +0 -0
- package/dist/public/assets/{_Du9lQw1k2.js → _C040XCr_2.js} +1 -1
- package/dist/public/assets/_C040XCr_2.js.br +0 -0
- package/dist/public/assets/{_DF8NCuaM.js → _C0jyA9P3.js} +1 -1
- package/dist/public/assets/_C0jyA9P3.js.br +0 -0
- package/dist/public/assets/{_hlukLVx_.js → _C1EPmd7c.js} +1 -1
- package/dist/public/assets/_C1EPmd7c.js.br +0 -0
- package/dist/public/assets/{_CJPlfpq5.js → _CBqQa764.js} +1 -1
- package/dist/public/assets/_CBqQa764.js.br +0 -0
- package/dist/public/assets/{_CSNvoh2o.js → _CGe2Wzv9.js} +1 -1
- package/dist/public/assets/_CGe2Wzv9.js.br +0 -0
- package/dist/public/assets/{_B5ftCdb7.js → _CIqrNCTI.js} +1 -1
- package/dist/public/assets/_CIqrNCTI.js.br +0 -0
- package/dist/public/assets/{_BRsTg2lb.js → _CSHJATpy.js} +1 -1
- package/dist/public/assets/_CSHJATpy.js.br +0 -0
- package/dist/public/assets/{_CKALSAjw2.js → _CTagvw5f2.js} +1 -1
- package/dist/public/assets/_CTagvw5f2.js.br +0 -0
- package/dist/public/assets/{_zms7eG9j.js → _CUQj5ppf.js} +1 -1
- package/dist/public/assets/_CUQj5ppf.js.br +0 -0
- package/dist/public/assets/{_CSz72k9B.js → _CVWmEDK_.js} +1 -1
- package/dist/public/assets/_CVWmEDK_.js.br +0 -0
- package/dist/public/assets/{_CzVVrbgT.js → _CYBd6Oge.js} +1 -1
- package/dist/public/assets/{_5g4D95_1.js → _Cc9FkJJU.js} +1 -1
- package/dist/public/assets/_Cc9FkJJU.js.br +0 -0
- package/dist/public/assets/{_MyuAmMNV.js → _Cg9E-hC9.js} +1 -1
- package/dist/public/assets/_Cg9E-hC9.js.br +0 -0
- package/dist/public/assets/{_Bm84P30z.js → _CgStCf6c.js} +1 -1
- package/dist/public/assets/_CgStCf6c.js.br +0 -0
- package/dist/public/assets/{_C7rkj5zB2.js → _CtQKrFEA2.js} +1 -1
- package/dist/public/assets/_CtQKrFEA2.js.br +0 -0
- package/dist/public/assets/{_DF2WxgmL.js → _CvxThUGr.js} +1 -1
- package/dist/public/assets/_CvxThUGr.js.br +0 -0
- package/dist/public/assets/{_DNiiz65R2.js → _Cwr7DlYk2.js} +1 -1
- package/dist/public/assets/_Cwr7DlYk2.js.br +0 -0
- package/dist/public/assets/{_B7uNGxEP.js → _D0MMHjUQ.js} +1 -1
- package/dist/public/assets/_D0MMHjUQ.js.br +0 -0
- package/dist/public/assets/{_BWMDedgS.js → _D1kUHoph.js} +1 -1
- package/dist/public/assets/_D1kUHoph.js.br +0 -0
- package/dist/public/assets/{_DF6pUbkG2.js → _D4WhUwUL2.js} +1 -1
- package/dist/public/assets/_D4WhUwUL2.js.br +0 -0
- package/dist/public/assets/{_TwTe_HJA.js → _D5QfUmLo.js} +1 -1
- package/dist/public/assets/_D5QfUmLo.js.br +0 -0
- package/dist/public/assets/{_Bft63M8y2.js → _D8kKtbZL2.js} +1 -1
- package/dist/public/assets/_D8kKtbZL2.js.br +0 -0
- package/dist/public/assets/{_ChXRkH4T2.js → _DCZujH2N2.js} +1 -1
- package/dist/public/assets/_DCZujH2N2.js.br +0 -0
- package/dist/public/assets/{_B6LXhcRm.js → _DGLSFxYV.js} +1 -1
- package/dist/public/assets/_DGLSFxYV.js.br +0 -0
- package/dist/public/assets/{_BF0KHsSl2.js → _DGktplbo2.js} +1 -1
- package/dist/public/assets/_DGktplbo2.js.br +0 -0
- package/dist/public/assets/{_Bln_SavQ.js → _DIlBIf-A.js} +1 -1
- package/dist/public/assets/_DIlBIf-A.js.br +0 -0
- package/dist/public/assets/{_C0zMWaUs2.js → _DK2UAgBJ2.js} +1 -1
- package/dist/public/assets/_DK2UAgBJ2.js.br +0 -0
- package/dist/public/assets/{_y24ul_MP.js → _DPmzsr0b.js} +1 -1
- package/dist/public/assets/_DPmzsr0b.js.br +0 -0
- package/dist/public/assets/{_B0NOYINr.js → _DSWiQozG.js} +1 -1
- package/dist/public/assets/_DSWiQozG.js.br +0 -0
- package/dist/public/assets/{_SRkzSl4t2.js → _DTTkFy3z2.js} +1 -1
- package/dist/public/assets/_DTTkFy3z2.js.br +0 -0
- package/dist/public/assets/{_BQgeJmc0.js → _Dblgtz99.js} +1 -1
- package/dist/public/assets/_Dblgtz99.js.br +0 -0
- package/dist/public/assets/{_BIsxNVwM.js → _Dc8rm3jI.js} +1 -1
- package/dist/public/assets/_Dc8rm3jI.js.br +0 -0
- package/dist/public/assets/{_BVYtUhDt.js → _Dh0VQfQJ.js} +1 -1
- package/dist/public/assets/_Dh0VQfQJ.js.br +0 -0
- package/dist/public/assets/{_hxnShDkd.js → _DiJIDgvc.js} +1 -1
- package/dist/public/assets/_DiJIDgvc.js.br +0 -0
- package/dist/public/assets/{_CKRa4_Xj2.js → _Djf-fwhe2.js} +1 -1
- package/dist/public/assets/{_B0Dkg7ZQ.js → _DjrRedRo.js} +1 -1
- package/dist/public/assets/_DjrRedRo.js.br +0 -0
- package/dist/public/assets/{_qQKdtgp2.js → _Dl07-GMx.js} +1 -1
- package/dist/public/assets/_Dl07-GMx.js.br +0 -0
- package/dist/public/assets/{_DjUU9hJU.js → _Dp2CEQ4Q.js} +1 -1
- package/dist/public/assets/_Dp2CEQ4Q.js.br +0 -0
- package/dist/public/assets/{_BoyvSM0r.js → _Dw-O85yr.js} +1 -1
- package/dist/public/assets/_Dw-O85yr.js.br +0 -0
- package/dist/public/assets/{_SdUhoIiq.js → _DwUcwzyn.js} +1 -1
- package/dist/public/assets/_DwUcwzyn.js.br +0 -0
- package/dist/public/assets/{_CyuaTGVy.js → _Dwxc6WXv.js} +1 -1
- package/dist/public/assets/_Dwxc6WXv.js.br +0 -0
- package/dist/public/assets/{_CVsz55gy.js → _Kwrx7rB4.js} +1 -1
- package/dist/public/assets/_Kwrx7rB4.js.br +0 -0
- package/dist/public/assets/{_BvrICDAH.js → _LpMRsHBj.js} +1 -1
- package/dist/public/assets/_LpMRsHBj.js.br +0 -0
- package/dist/public/assets/{_BX_YmVED.js → _Rh7Ur8FS.js} +1 -1
- package/dist/public/assets/_Rh7Ur8FS.js.br +0 -0
- package/dist/public/assets/{_B8vP0Z8T.js → _UDa7z5Hc.js} +1 -1
- package/dist/public/assets/_UDa7z5Hc.js.br +0 -0
- package/dist/public/assets/{_BwzirC4y.js → _WETndjfo.js} +1 -1
- package/dist/public/assets/_WETndjfo.js.br +0 -0
- package/dist/public/assets/{_DdSFMPCI2.js → _YQPM-WZr2.js} +1 -1
- package/dist/public/assets/_YQPM-WZr2.js.br +0 -0
- package/dist/public/assets/__4GwJAR8.js +86 -0
- package/dist/public/assets/__4GwJAR8.js.br +0 -0
- package/dist/public/assets/{_0rO6P6TP.js → _bm5qnTpZ.js} +1 -1
- package/dist/public/assets/_bm5qnTpZ.js.br +0 -0
- package/dist/public/assets/{_BqCHwj4j2.js → _hAGd6rfv2.js} +1 -1
- package/dist/public/assets/{_NKV7dW-P.js → _hAOdnTV6.js} +1 -1
- package/dist/public/assets/_hAOdnTV6.js.br +0 -0
- package/dist/public/assets/{_DWM3faGg.js → _hz5dauNZ.js} +1 -1
- package/dist/public/assets/_hz5dauNZ.js.br +0 -0
- package/dist/public/assets/{_D-JoND9E.js → _iTvtyEoL.js} +6 -6
- package/dist/public/assets/_iTvtyEoL.js.br +0 -0
- package/dist/public/assets/{_BcHeNsT02.js → _k-IEVEnY2.js} +1 -1
- package/dist/public/assets/_k-IEVEnY2.js.br +0 -0
- package/dist/public/assets/{_DNl8Gyc52.js → _oZRSosjr2.js} +1 -1
- package/dist/public/assets/_oZRSosjr2.js.br +0 -0
- package/dist/public/assets/{app-page-KY8tW9DO.css → app-page-B9bx61fb.css} +1 -1
- package/dist/public/assets/app-page-B9bx61fb.css.br +0 -0
- package/dist/public/assets/{diff-view-U1s7mXp0.css → diff-view-CB87Ra6B.css} +1 -1
- package/dist/public/assets/diff-view-CB87Ra6B.css.br +0 -0
- package/dist/public/assets/new-Cg2dy7JI.js +1 -0
- package/dist/public/assets/settings-Cg2dy7JI.js +1 -0
- package/dist/public/assets/w-Cg2dy7JI.js +1 -0
- package/dist/public/assets/w._-Cg-GdtFy.js +1 -0
- package/dist/public/assets/w._-Cg2dy7JI.js +1 -0
- package/package.json +1 -1
- package/dist/public/assets/_0rO6P6TP.js.br +0 -0
- package/dist/public/assets/_5g4D95_1.js.br +0 -0
- package/dist/public/assets/_B0Dkg7ZQ.js.br +0 -0
- package/dist/public/assets/_B0NOYINr.js.br +0 -3
- package/dist/public/assets/_B5ftCdb7.js.br +0 -0
- package/dist/public/assets/_B6LXhcRm.js.br +0 -0
- package/dist/public/assets/_B7uNGxEP.js.br +0 -8
- package/dist/public/assets/_B8RoNlNc2.js.br +0 -0
- package/dist/public/assets/_B8vP0Z8T.js.br +0 -0
- package/dist/public/assets/_BDCf2Wo62.js.br +0 -0
- package/dist/public/assets/_BEs8vK7W.js.br +0 -0
- package/dist/public/assets/_BF0KHsSl2.js.br +0 -0
- package/dist/public/assets/_BIsxNVwM.js.br +0 -0
- package/dist/public/assets/_BQgeJmc0.js.br +0 -0
- package/dist/public/assets/_BRsTg2lb.js.br +0 -0
- package/dist/public/assets/_BVYtUhDt.js.br +0 -0
- package/dist/public/assets/_BWMDedgS.js.br +0 -0
- package/dist/public/assets/_BX_YmVED.js.br +0 -0
- package/dist/public/assets/_BcHeNsT02.js.br +0 -0
- package/dist/public/assets/_Bft63M8y2.js.br +0 -0
- package/dist/public/assets/_Bln_SavQ.js.br +0 -0
- package/dist/public/assets/_Bm84P30z.js.br +0 -0
- package/dist/public/assets/_BoyvSM0r.js.br +0 -0
- package/dist/public/assets/_BpigGSKG.js.br +0 -0
- package/dist/public/assets/_BvrICDAH.js.br +0 -0
- package/dist/public/assets/_BwzirC4y.js.br +0 -0
- package/dist/public/assets/_C0zMWaUs2.js.br +0 -0
- package/dist/public/assets/_C7rkj5zB2.js.br +0 -0
- package/dist/public/assets/_CGPXzGv32.js.br +0 -0
- package/dist/public/assets/_CIxhLVuf.js.br +0 -0
- package/dist/public/assets/_CJPlfpq5.js.br +0 -0
- package/dist/public/assets/_CKALSAjw2.js.br +0 -0
- package/dist/public/assets/_CMQ31fBp2.js.br +0 -0
- package/dist/public/assets/_CO26sqYi2.js.br +0 -0
- package/dist/public/assets/_CRqhBwXk.js.br +0 -0
- package/dist/public/assets/_CSNvoh2o.js.br +0 -0
- package/dist/public/assets/_CSz72k9B.js.br +0 -0
- package/dist/public/assets/_CVsz55gy.js.br +0 -0
- package/dist/public/assets/_C_ftH2vB.js.br +0 -0
- package/dist/public/assets/_CfjKqVdQ.js.br +0 -0
- package/dist/public/assets/_ChXRkH4T2.js.br +0 -0
- package/dist/public/assets/_ClZTX_pU2.js.br +0 -0
- package/dist/public/assets/_Clslf-eq2.js.br +0 -0
- package/dist/public/assets/_Csa_vKlI.js.br +0 -0
- package/dist/public/assets/_CyuaTGVy.js.br +0 -0
- package/dist/public/assets/_D-JoND9E.js.br +0 -0
- package/dist/public/assets/_D7s5hIII.js.br +0 -0
- package/dist/public/assets/_DF2WxgmL.js.br +0 -0
- package/dist/public/assets/_DF6pUbkG2.js.br +0 -0
- package/dist/public/assets/_DF8NCuaM.js.br +0 -0
- package/dist/public/assets/_DNiiz65R2.js.br +0 -0
- package/dist/public/assets/_DNl8Gyc52.js.br +0 -0
- package/dist/public/assets/_DUZHLnR2.js.br +0 -0
- package/dist/public/assets/_DWM3faGg.js.br +0 -0
- package/dist/public/assets/_DdSFMPCI2.js.br +0 -0
- package/dist/public/assets/_DjUU9hJU.js.br +0 -0
- package/dist/public/assets/_DkGPKQRN2.js.br +0 -0
- package/dist/public/assets/_Du9lQw1k2.js.br +0 -0
- package/dist/public/assets/_MyuAmMNV.js.br +0 -0
- package/dist/public/assets/_NKV7dW-P.js.br +0 -0
- package/dist/public/assets/_SLCShLmn.js +0 -86
- package/dist/public/assets/_SLCShLmn.js.br +0 -0
- package/dist/public/assets/_SRkzSl4t2.js.br +0 -0
- package/dist/public/assets/_SdUhoIiq.js.br +0 -0
- package/dist/public/assets/_TwTe_HJA.js.br +0 -0
- package/dist/public/assets/_fjObnvv3.js.br +0 -0
- package/dist/public/assets/_hlukLVx_.js.br +0 -0
- package/dist/public/assets/_hxnShDkd.js.br +0 -0
- package/dist/public/assets/_jXEAHizC.js.br +0 -0
- package/dist/public/assets/_kaGT3pkC2.js.br +0 -0
- package/dist/public/assets/_knyXa4w7.js.br +0 -0
- package/dist/public/assets/_qQKdtgp2.js.br +0 -0
- package/dist/public/assets/_y24ul_MP.js.br +0 -0
- package/dist/public/assets/_zms7eG9j.js.br +0 -0
- package/dist/public/assets/app-page-KY8tW9DO.css.br +0 -0
- package/dist/public/assets/diff-view-U1s7mXp0.css.br +0 -0
- package/dist/public/assets/new-DTmmniHd.js +0 -1
- package/dist/public/assets/settings-DTmmniHd.js +0 -1
- package/dist/public/assets/w-DTmmniHd.js +0 -1
- package/dist/public/assets/w._-CJ_Gh3uK.js +0 -1
- package/dist/public/assets/w._-DTmmniHd.js +0 -1
|
@@ -1,4 +1,22 @@
|
|
|
1
|
-
import { A as repoLabel, Ct as
|
|
1
|
+
import { A as repoLabel, Ct as _serialize_guard, D as icon_xmark_default, Dt as _template, E as toast_default, Et as _subscribe, F as iconBtnLg, G as _attr_details_or_dialog_open, I as iconBtnRow, K as _attr_input_value, L as iconBtnXs, O as icon_base_default, Pt as writeScope, St as _sep, Tt as _set_serialize_reason, U as _attr, V as tone, W as _attr_class, X as _attr_style, Y as _attr_select_value, _ as diffTreeOpen, _t as _resume_branch, a as fuzzy, at as _el_resume, b as setDiffScope, bt as _scope_with_id, c as icon_arrow_up_default, ft as _html, g as diffScope, gt as _resume, h as diffPos, ht as _peek_scope_id, i as icon_sidebar_default, it as _el_read_error, l as icon_back_default, lt as _for_of, m as diffFilter, mt as _if, n as findIconBtn, ot as _escape, q as _attr_option_value, r as findInput, rt as _el, s as icon_search_default, st as _existing_scope, t as icon_arrow_down_default, tt as _content_resume, u as icon_refresh_default, vt as _scope_id, wt as _serialize_if, xt as _script, y as setDiffPos, yt as _scope_reason } from "./_D60UKgk7.js";
|
|
2
|
+
//#region src/client/router.ts
|
|
3
|
+
function urlFor(r) {
|
|
4
|
+
if (r.view === "settings") return "/settings";
|
|
5
|
+
if (r.view === "new") return "/new";
|
|
6
|
+
if (!r.workspaceId) return "/";
|
|
7
|
+
const base = `/w/${encodeURIComponent(r.workspaceId)}`;
|
|
8
|
+
if (r.view === "diff") {
|
|
9
|
+
const q = new URLSearchParams();
|
|
10
|
+
if (r.pr) q.set("pr", r.pr);
|
|
11
|
+
if (r.scope && r.scope !== "committed") q.set("scope", r.scope);
|
|
12
|
+
if (r.file) q.set("file", r.file);
|
|
13
|
+
const qs = q.toString();
|
|
14
|
+
return `${base}/review${qs ? `?${qs}` : ""}`;
|
|
15
|
+
}
|
|
16
|
+
if (r.view === "manage") return `${base}/manage`;
|
|
17
|
+
return `${base}${r.sessionId ? `?s=${encodeURIComponent(r.sessionId)}` : ""}`;
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
2
20
|
//#region src/client/clipboard.ts
|
|
3
21
|
/** Copy text to the clipboard. `navigator.clipboard` needs a secure
|
|
4
22
|
* context — absent over plain-http LAN origins — so fall back to a hidden
|
|
@@ -234,7 +252,7 @@ var diff_send_default = _template("j", (input) => {
|
|
|
234
252
|
let sendTarget = null;
|
|
235
253
|
const sessions = input.sessions || [];
|
|
236
254
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
237
|
-
_html(`<span${_attr_class("
|
|
255
|
+
_html(`<span${_attr_class("_fu")}><button type=button${_attr_class("_o")} title="Copy comments as markdown">Copy${_el_resume($scope0_id, "c")}</button>${_el_resume($scope0_id, "b")}`);
|
|
238
256
|
_if(() => {
|
|
239
257
|
if (sessions.length === 1) {
|
|
240
258
|
const $scope1_id = _scope_id();
|
|
@@ -244,11 +262,11 @@ var diff_send_default = _template("j", (input) => {
|
|
|
244
262
|
return 0;
|
|
245
263
|
} else if (sessions.length) {
|
|
246
264
|
const $scope2_id = _scope_id();
|
|
247
|
-
_html(`<span${_attr_class("
|
|
265
|
+
_html(`<span${_attr_class("_fv")}><button type=button${_attr_class(["_p", "_fw"])}${_attr("disabled", sending)}>Send to${_el_resume($scope2_id, "c")}</button>${_el_resume($scope2_id, "b")}`);
|
|
248
266
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
249
267
|
sendTarget = _new_sendTarget;
|
|
250
268
|
}, "j0", $scope2_id), () => {
|
|
251
|
-
_html(`<select${_attr_class("
|
|
269
|
+
_html(`<select${_attr_class("_fx")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
252
270
|
_for_of(sessions, (s) => {
|
|
253
271
|
const $scope3_id = _scope_id();
|
|
254
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)}`);
|
|
@@ -1814,9 +1832,9 @@ var diff_find_default = _template("i", (input) => {
|
|
|
1814
1832
|
el.select();
|
|
1815
1833
|
}, 0);
|
|
1816
1834
|
}, "i5", $scope0_id);
|
|
1817
|
-
_html(`<div${_attr_class(["
|
|
1835
|
+
_html(`<div${_attr_class(["_fz", !open && "_fy"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1818
1836
|
type(v);
|
|
1819
|
-
}, "i0", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("
|
|
1837
|
+
}, "i0", $scope0_id))}${_attr_class(findInput)} type=search enterkeyhint=search autocomplete=off tabindex=${open ? "0" : "-1"} placeholder="Find in review" aria-label="Find in review">${_el_resume($scope0_id, "b")}<span${_attr_class("_fC")}>${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"}>`);
|
|
1820
1838
|
icon_arrow_up_default({ size: 14 });
|
|
1821
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"}>`);
|
|
1822
1840
|
icon_arrow_down_default({ size: 14 });
|
|
@@ -1917,8 +1935,8 @@ function shortBranch(name, wsBranch = "", wsName = "") {
|
|
|
1917
1935
|
}
|
|
1918
1936
|
return shortHeadFallback(head);
|
|
1919
1937
|
}
|
|
1920
|
-
var repoWorktree = "
|
|
1921
|
-
var repoTitle = "
|
|
1938
|
+
var repoWorktree = "_gV _x";
|
|
1939
|
+
var repoTitle = "_g1 _w";
|
|
1922
1940
|
//#endregion
|
|
1923
1941
|
//#region src/tags/icons/icon-chevron-right.marko
|
|
1924
1942
|
var icon_chevron_right_default = _template("R", (input) => {
|
|
@@ -2071,14 +2089,14 @@ var review_section_default = _template("u", (input) => {
|
|
|
2071
2089
|
const newCount = input.files.filter((f) => f.changedSince).length;
|
|
2072
2090
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch, input.workspaceName);
|
|
2073
2091
|
const prTitle = repo.pr ? `${repo.pr.title}: ${repo.pr.headRefName} ${repo.head} vs ${repo.base} ${repo.baseSha}` : "";
|
|
2074
|
-
_html(`<section${_attr_class("
|
|
2092
|
+
_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 }])}>`);
|
|
2075
2093
|
_if(() => {
|
|
2076
2094
|
if (input.collapsible) {
|
|
2077
2095
|
const $scope1_id = _scope_id();
|
|
2078
|
-
_html(`<button type=button${_attr_class("
|
|
2079
|
-
"
|
|
2080
|
-
!input.collapsed && "
|
|
2081
|
-
input.expanding && "
|
|
2096
|
+
_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([
|
|
2097
|
+
"_hd",
|
|
2098
|
+
!input.collapsed && "_he",
|
|
2099
|
+
input.expanding && "_hf"
|
|
2082
2100
|
])} aria-hidden=true>`);
|
|
2083
2101
|
_if(() => {
|
|
2084
2102
|
if (input.collapsed) {
|
|
@@ -2117,14 +2135,14 @@ var review_section_default = _template("u", (input) => {
|
|
|
2117
2135
|
return 1;
|
|
2118
2136
|
}
|
|
2119
2137
|
}, $scope0_id, "d", $sg__input_repo, $sg__input_repo, $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened);
|
|
2120
|
-
_html(`<span${_attr_class("
|
|
2138
|
+
_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>`);
|
|
2121
2139
|
_if(() => {
|
|
2122
2140
|
if (compare$1.topic) {
|
|
2123
2141
|
const $scope16_id = _scope_id();
|
|
2124
2142
|
_html(`<span${_attr_class([
|
|
2125
2143
|
"_I",
|
|
2126
2144
|
tone.accent,
|
|
2127
|
-
"
|
|
2145
|
+
"_g6"
|
|
2128
2146
|
])}>${_escape(compare$1.topic)}${_el_resume($scope16_id, "b", $sg__input_repo__OR__input_workspaceBranch__OR__input_workspaceName)}</span>`);
|
|
2129
2147
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && writeScope($scope16_id, { _: _scope_with_id($scope0_id) });
|
|
2130
2148
|
return 0;
|
|
@@ -2137,7 +2155,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2137
2155
|
_html(`<button type=button${_attr_class([
|
|
2138
2156
|
"_I",
|
|
2139
2157
|
tone.warn,
|
|
2140
|
-
"
|
|
2158
|
+
"_g7"
|
|
2141
2159
|
])}${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}. Reload to re-ask GitHub`)}${_attr("disabled", input.loading)}>behind GitHub ${_sep($sg__input_repo)}${_escape(shortSha(repo.head, 7))}${_el_resume($scope2_id, "b", $sg__input_repo)} → ${_sep($sg__input_repo)}${_escape(shortSha(repo.pr.headRefOid, 7))}${_el_resume($scope2_id, "c", $sg__input_repo)}</button>${_el_resume($scope2_id, "a")}`);
|
|
2142
2160
|
_script($scope2_id, "u10");
|
|
2143
2161
|
writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2147,7 +2165,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2147
2165
|
_if(() => {
|
|
2148
2166
|
if (repo.contained && input.files.length) {
|
|
2149
2167
|
const $scope13_id = _scope_id();
|
|
2150
|
-
_html(`<span${_attr_class(["_I", "
|
|
2168
|
+
_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)}`);
|
|
2151
2169
|
_serialize_if($scope0_reason, 0) && writeScope($scope13_id, { _: $si__input_repo && _scope_with_id($scope0_id) });
|
|
2152
2170
|
return 0;
|
|
2153
2171
|
}
|
|
@@ -2155,16 +2173,16 @@ var review_section_default = _template("u", (input) => {
|
|
|
2155
2173
|
_if(() => {
|
|
2156
2174
|
if (input.localDiffers) {
|
|
2157
2175
|
const $scope3_id = _scope_id();
|
|
2158
|
-
_html(`<span${_attr_class(["_I", "
|
|
2176
|
+
_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)}`);
|
|
2159
2177
|
$si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_localDiffers && writeScope($scope3_id, { _: $si__input_repo__OR__input_workspaceBranch__OR__input_workspaceName && _scope_with_id($scope0_id) });
|
|
2160
2178
|
return 0;
|
|
2161
2179
|
}
|
|
2162
2180
|
}, $scope0_id, "n", _serialize_guard($scope0_reason, 23), _serialize_guard($scope0_reason, 39), $sg__input_repo__OR__input_files__OR__input_shownKeys__OR__input_workspaceBranch__OR__input_workspaceName__OR__input_collapsible__OR__input_collapsed__OR__input_localDiffers__OR__input_onlyNew__OR__input_opened, 0, 1);
|
|
2163
|
-
_html(`<span${_attr_class("
|
|
2181
|
+
_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>`);
|
|
2164
2182
|
_if(() => {
|
|
2165
2183
|
if (stats.additions || stats.deletions) {
|
|
2166
2184
|
const $scope15_id = _scope_id();
|
|
2167
|
-
_html(`<span${_attr_class("
|
|
2185
|
+
_html(`<span${_attr_class("_gX")}>+${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.additions)}${_el_resume($scope15_id, "b", $sg__input_files__OR__input_shownKeys)}</span><span${_attr_class("_gY")}>−${_sep($sg__input_files__OR__input_shownKeys)}${_escape(stats.deletions)}${_el_resume($scope15_id, "d", $sg__input_files__OR__input_shownKeys)}</span>`);
|
|
2168
2186
|
$si__input_files__OR__input_shownKeys && writeScope($scope15_id, { _: _scope_with_id($scope0_id) });
|
|
2169
2187
|
return 0;
|
|
2170
2188
|
}
|
|
@@ -2172,7 +2190,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2172
2190
|
_if(() => {
|
|
2173
2191
|
if (newCount || input.onlyNew) {
|
|
2174
2192
|
const $scope4_id = _scope_id();
|
|
2175
|
-
_html(`<button type=button${_attr_class(["
|
|
2193
|
+
_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")}`);
|
|
2176
2194
|
_script($scope4_id, "u11");
|
|
2177
2195
|
writeScope($scope4_id, { _: _scope_with_id($scope0_id) });
|
|
2178
2196
|
return 0;
|
|
@@ -2182,7 +2200,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2182
2200
|
_if(() => {
|
|
2183
2201
|
if (!input.collapsible || !input.collapsed || input.opened) {
|
|
2184
2202
|
const $scope5_id = _scope_id();
|
|
2185
|
-
_html(`<div${_attr_class("
|
|
2203
|
+
_html(`<div${_attr_class("_g9")}${_attr("hidden", input.collapsible && input.collapsed)}>`);
|
|
2186
2204
|
_for_of(input.files, (file$1) => {
|
|
2187
2205
|
const $scope6_id = _scope_id();
|
|
2188
2206
|
const $for_content__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -2192,11 +2210,11 @@ var review_section_default = _template("u", (input) => {
|
|
|
2192
2210
|
const expanded = !input.collapsedFiles.has(file$1.key);
|
|
2193
2211
|
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded, _resume(function(open) {
|
|
2194
2212
|
input.onFileToggle(file$1.key, open);
|
|
2195
|
-
}, "u0", $scope6_id))}${_attr_class(["
|
|
2213
|
+
}, "u0", $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))}`);
|
|
2196
2214
|
_if(() => {
|
|
2197
2215
|
if (file$1.changedSince) {
|
|
2198
2216
|
const $scope20_id = _scope_id();
|
|
2199
|
-
_html(`<span${_attr_class(["_z", "
|
|
2217
|
+
_html(`<span${_attr_class(["_z", "_g8"])} title="Changed since your last visit"></span>`);
|
|
2200
2218
|
$si__input_files && writeScope($scope20_id, {});
|
|
2201
2219
|
return 0;
|
|
2202
2220
|
}
|
|
@@ -2216,8 +2234,8 @@ var review_section_default = _template("u", (input) => {
|
|
|
2216
2234
|
const $scope14_id = _scope_id();
|
|
2217
2235
|
_html(`<button type=button${_attr_class([
|
|
2218
2236
|
iconBtnXs,
|
|
2219
|
-
"
|
|
2220
|
-
{ ["
|
|
2237
|
+
"_hj",
|
|
2238
|
+
{ ["_hk"]: wholeFiles.has(file$1.key) }
|
|
2221
2239
|
])} title=${wholeFiles.has(file$1.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-label=${wholeFiles.has(file$1.key) ? "\"Show changes only\"" : "\"Show whole file\""} aria-pressed=${wholeFiles.has(file$1.key) ? "true" : "false"}>`);
|
|
2222
2240
|
_if(() => {
|
|
2223
2241
|
if (wholeFiles.has(file$1.key)) {
|
|
@@ -2244,17 +2262,17 @@ var review_section_default = _template("u", (input) => {
|
|
|
2244
2262
|
_if(() => {
|
|
2245
2263
|
if (file$1.binary) {
|
|
2246
2264
|
const $scope23_id = _scope_id();
|
|
2247
|
-
_html(`<p${_attr_class(["
|
|
2265
|
+
_html(`<p${_attr_class(["_hi", "_ha"])}>binary file</p>`);
|
|
2248
2266
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope23_id, {});
|
|
2249
2267
|
return 0;
|
|
2250
2268
|
} else if (file$1.tooLarge) {
|
|
2251
2269
|
const $scope24_id = _scope_id();
|
|
2252
|
-
_html(`<p${_attr_class(["
|
|
2270
|
+
_html(`<p${_attr_class(["_hi", "_ha"])}>file too large to display</p>`);
|
|
2253
2271
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope24_id, {});
|
|
2254
2272
|
return 1;
|
|
2255
2273
|
} else if (file$1.old == null && file$1.new == null) {
|
|
2256
2274
|
const $scope25_id = _scope_id();
|
|
2257
|
-
_html(`<p${_attr_class(["
|
|
2275
|
+
_html(`<p${_attr_class(["_hi", "_ha"])}>file could not be read</p>`);
|
|
2258
2276
|
$si__input_files__OR__input_collapsedFiles && writeScope($scope25_id, {});
|
|
2259
2277
|
return 2;
|
|
2260
2278
|
} else if (expanded) {
|
|
@@ -2264,7 +2282,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2264
2282
|
_if(() => {
|
|
2265
2283
|
if (!forceNear) {
|
|
2266
2284
|
const $scope8_id = _scope_id();
|
|
2267
|
-
_html(`<div${_attr_class(["
|
|
2285
|
+
_html(`<div${_attr_class(["_hc", "_ha"])}></div>${_el_resume($scope8_id, "a")}`);
|
|
2268
2286
|
_script($scope8_id, "u13");
|
|
2269
2287
|
_subscribe($si__input && $input__closures, writeScope($scope8_id, {}));
|
|
2270
2288
|
return 0;
|
|
@@ -2272,7 +2290,7 @@ var review_section_default = _template("u", (input) => {
|
|
|
2272
2290
|
const $scope9_id = _scope_id();
|
|
2273
2291
|
const $childScope = _peek_scope_id();
|
|
2274
2292
|
diff_file_default({
|
|
2275
|
-
class: "
|
|
2293
|
+
class: "_ha",
|
|
2276
2294
|
file: file$1,
|
|
2277
2295
|
comments: fileComments,
|
|
2278
2296
|
draft: input.draft && input.draft.key === file$1.key ? input.draft : null,
|
|
@@ -2479,7 +2497,7 @@ var $content = (input) => {
|
|
|
2479
2497
|
_for_of(dir.dirs, (child) => {
|
|
2480
2498
|
const $scope1_id = _scope_id();
|
|
2481
2499
|
const shut = input.collapsed.has(input.collapsedKey(child.path));
|
|
2482
|
-
_html(`<div${_attr_class("
|
|
2500
|
+
_html(`<div${_attr_class("_fT")}><button type=button${_attr_class(["_fU", { ["_fL"]: shut }])}${_attr("title", child.path)}${_attr_style(`--depth:${child.depth}`)}><span${_attr_class("_f1")}>`);
|
|
2483
2501
|
_if(() => {
|
|
2484
2502
|
if (shut) {
|
|
2485
2503
|
const $scope4_id = _scope_id();
|
|
@@ -2493,7 +2511,7 @@ var $content = (input) => {
|
|
|
2493
2511
|
return 1;
|
|
2494
2512
|
}
|
|
2495
2513
|
}, $scope1_id, "c", $sg__input, $sg__input, $sg__input, "</span>", 1);
|
|
2496
|
-
_html(`<span${_attr_class("
|
|
2514
|
+
_html(`<span${_attr_class("_fV")}>${_escape(child.label)}${_el_resume($scope1_id, "e", $sg__input_dir)}/</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2497
2515
|
_if(() => {
|
|
2498
2516
|
if (!shut) {
|
|
2499
2517
|
const $scope2_id = _scope_id();
|
|
@@ -2540,11 +2558,11 @@ var $content = (input) => {
|
|
|
2540
2558
|
}, "path", $scope0_id, "a", $sg__input, $sg__input_dir, $sg__input_dir, 0, 1);
|
|
2541
2559
|
_for_of(dir.files, ({ file, name }) => {
|
|
2542
2560
|
const $scope3_id = _scope_id();
|
|
2543
|
-
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["
|
|
2561
|
+
_html(`<a${_attr("href", input.hrefFor(file.key))}${_attr_class(["_fX", { ["_fW"]: 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("_f2")}${_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("_fY")}>${_escape(name)}${_el_resume($scope3_id, "e", $sg__input_dir)}</span>`);
|
|
2544
2562
|
_if(() => {
|
|
2545
2563
|
if (input.newKeys.has(file.key)) {
|
|
2546
2564
|
const $scope6_id = _scope_id();
|
|
2547
|
-
_html(`<span${_attr_class(["_z", "
|
|
2565
|
+
_html(`<span${_attr_class(["_z", "_fZ"])} title="Changed since your last visit"></span>`);
|
|
2548
2566
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2549
2567
|
return 0;
|
|
2550
2568
|
}
|
|
@@ -2552,7 +2570,7 @@ var $content = (input) => {
|
|
|
2552
2570
|
_if(() => {
|
|
2553
2571
|
if (input.commentKeys.has(file.key)) {
|
|
2554
2572
|
const $scope7_id = _scope_id();
|
|
2555
|
-
_html(`<span${_attr_class("
|
|
2573
|
+
_html(`<span${_attr_class("_f0")}>`);
|
|
2556
2574
|
icon_comment_default({ size: 12 });
|
|
2557
2575
|
_html("</span>");
|
|
2558
2576
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
@@ -2610,7 +2628,7 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2610
2628
|
scope: input.scope ?? null,
|
|
2611
2629
|
file: key
|
|
2612
2630
|
}), "l0", $scope0_id);
|
|
2613
|
-
_html(`<aside${_attr_class(["
|
|
2631
|
+
_html(`<aside${_attr_class(["_fM", { ["_fL"]: input.open === false }])}><div${_attr_class("_fN")}>`);
|
|
2614
2632
|
_set_serialize_reason(2);
|
|
2615
2633
|
const $childScope = _peek_scope_id();
|
|
2616
2634
|
file_filter_default({
|
|
@@ -2619,18 +2637,18 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2619
2637
|
filter = _new_filter;
|
|
2620
2638
|
}, "l1", $scope0_id)
|
|
2621
2639
|
});
|
|
2622
|
-
_html(`</div><div${_attr_class("
|
|
2640
|
+
_html(`</div><div${_attr_class("_fO")}>`);
|
|
2623
2641
|
_if(() => {
|
|
2624
2642
|
if (!input.sections.length && filter) {
|
|
2625
2643
|
const $scope3_id = _scope_id();
|
|
2626
|
-
_html(`<p${_attr_class("
|
|
2644
|
+
_html(`<p${_attr_class("_fP")}>No files match.</p>`);
|
|
2627
2645
|
writeScope($scope3_id, {});
|
|
2628
2646
|
return 0;
|
|
2629
2647
|
}
|
|
2630
2648
|
}, $scope0_id, "e", 1, 1, 1, 0, 1);
|
|
2631
2649
|
_for_of(input.sections, (section) => {
|
|
2632
2650
|
const $scope1_id = _scope_id();
|
|
2633
|
-
_html(`<div${_attr_class("
|
|
2651
|
+
_html(`<div${_attr_class("_fQ")}><button type=button${_attr_class(["_fR", { ["_fL"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_f1")}>`);
|
|
2634
2652
|
_if(() => {
|
|
2635
2653
|
if (collapsedRepos.has(section.id)) {
|
|
2636
2654
|
const $scope4_id = _scope_id();
|
|
@@ -2644,12 +2662,12 @@ var diff_tree_default = _template("l", (input) => {
|
|
|
2644
2662
|
return 1;
|
|
2645
2663
|
}
|
|
2646
2664
|
}, $scope1_id, "c", 1, 1, 1, "</span>", 1);
|
|
2647
|
-
_html(`<span${_attr_class("
|
|
2665
|
+
_html(`<span${_attr_class("_fV")}>${_escape(section.label)}${_el_resume($scope1_id, "e", $sg__input_sections)}</span></button>${_el_resume($scope1_id, "b")}`);
|
|
2648
2666
|
_if(() => {
|
|
2649
2667
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
2650
2668
|
const $scope2_id = _scope_id();
|
|
2651
2669
|
const root = treeDirs(section.files);
|
|
2652
|
-
_html(`<div${_attr_class("
|
|
2670
|
+
_html(`<div${_attr_class("_fS")}${_attr("hidden", collapsedRepos.has(section.id))}>`);
|
|
2653
2671
|
_set_serialize_reason(1);
|
|
2654
2672
|
const $childScope2 = _peek_scope_id();
|
|
2655
2673
|
diff_tree_dir_default({
|
|
@@ -2774,9 +2792,9 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2774
2792
|
_if(() => {
|
|
2775
2793
|
if (open) {
|
|
2776
2794
|
const $scope1_id = _scope_id();
|
|
2777
|
-
_html(`<div${_attr_class("
|
|
2795
|
+
_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>`);
|
|
2778
2796
|
icon_xmark_default({ size: 16 });
|
|
2779
|
-
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("
|
|
2797
|
+
_html(`</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_gf")}>`);
|
|
2780
2798
|
_set_serialize_reason(2);
|
|
2781
2799
|
const $childScope = _peek_scope_id();
|
|
2782
2800
|
file_filter_default({
|
|
@@ -2785,28 +2803,28 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2785
2803
|
filter = _new_filter;
|
|
2786
2804
|
}, "g1", $scope1_id)
|
|
2787
2805
|
});
|
|
2788
|
-
_html(`</div><div${_attr_class("
|
|
2806
|
+
_html(`</div><div${_attr_class("_f9")}>`);
|
|
2789
2807
|
_for_of(groups, (group) => {
|
|
2790
2808
|
const $scope2_id = _scope_id();
|
|
2791
|
-
_html(`<div${_attr_class("
|
|
2809
|
+
_html(`<div${_attr_class("_f_")}><div${_attr_class("_ga")}>${_escape(group.repo)}${_el_resume($scope2_id, "c", $sg__input_files)}</div>`);
|
|
2792
2810
|
_for_of(group.dirs, ({ dir, files }) => {
|
|
2793
2811
|
const $scope3_id = _scope_id();
|
|
2794
|
-
_html(`<div${_attr_class("
|
|
2812
|
+
_html(`<div${_attr_class("_gb")}>`);
|
|
2795
2813
|
_if(() => {
|
|
2796
2814
|
if (dir) {
|
|
2797
2815
|
const $scope5_id = _scope_id();
|
|
2798
|
-
_html(`<div${_attr_class("
|
|
2816
|
+
_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)}`);
|
|
2799
2817
|
$si__input_files && writeScope($scope5_id, { _: _scope_with_id($scope3_id) });
|
|
2800
2818
|
return 0;
|
|
2801
2819
|
}
|
|
2802
2820
|
}, $scope3_id, "b", $sg__input_files, $sg__input_files, $sg__input_files, 0, 1);
|
|
2803
2821
|
_for_of(files, ({ file, name }) => {
|
|
2804
2822
|
const $scope4_id = _scope_id();
|
|
2805
|
-
_html(`<a${_attr("href", hrefFor(file.key))}${_attr_class(["
|
|
2823
|
+
_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>`);
|
|
2806
2824
|
_if(() => {
|
|
2807
2825
|
if (newKeys.has(file.key)) {
|
|
2808
2826
|
const $scope6_id = _scope_id();
|
|
2809
|
-
_html(`<span${_attr_class(["_z", "
|
|
2827
|
+
_html(`<span${_attr_class(["_z", "_gh"])} title="Changed since your last visit"></span>`);
|
|
2810
2828
|
_serialize_if($scope0_reason, 1) && writeScope($scope6_id, {});
|
|
2811
2829
|
return 0;
|
|
2812
2830
|
}
|
|
@@ -2816,7 +2834,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2816
2834
|
const $scope7_id = _scope_id();
|
|
2817
2835
|
icon_comment_default({
|
|
2818
2836
|
size: 12,
|
|
2819
|
-
class: "
|
|
2837
|
+
class: "_gi"
|
|
2820
2838
|
});
|
|
2821
2839
|
_serialize_if($scope0_reason, 0) && writeScope($scope7_id, {});
|
|
2822
2840
|
return 0;
|
|
@@ -2841,7 +2859,7 @@ var diff_file_sheet_default = _template("g", (input) => {
|
|
|
2841
2859
|
_if(() => {
|
|
2842
2860
|
if (!input.files.length) {
|
|
2843
2861
|
const $scope8_id = _scope_id();
|
|
2844
|
-
_html(`<p${_attr_class("
|
|
2862
|
+
_html(`<p${_attr_class("_gg")}>No files match.</p>`);
|
|
2845
2863
|
$si__input_files_length && writeScope($scope8_id, {});
|
|
2846
2864
|
return 0;
|
|
2847
2865
|
}
|
|
@@ -1982,24 +1982,6 @@ function toObjectExpression(options) {
|
|
|
1982
1982
|
for (let key in options) Object.hasOwn(options, key) && (result += sep + toObjectKey(key) + ":" + JSON.stringify(options[key]), sep = ",");
|
|
1983
1983
|
return result + "}";
|
|
1984
1984
|
}
|
|
1985
|
-
//#endregion
|
|
1986
|
-
//#region src/client/router.ts
|
|
1987
|
-
function urlFor(r) {
|
|
1988
|
-
if (r.view === "settings") return "/settings";
|
|
1989
|
-
if (r.view === "new") return "/new";
|
|
1990
|
-
if (!r.workspaceId) return "/";
|
|
1991
|
-
const base = `/w/${encodeURIComponent(r.workspaceId)}`;
|
|
1992
|
-
if (r.view === "diff") {
|
|
1993
|
-
const q = new URLSearchParams();
|
|
1994
|
-
if (r.pr) q.set("pr", r.pr);
|
|
1995
|
-
if (r.scope && r.scope !== "committed") q.set("scope", r.scope);
|
|
1996
|
-
if (r.file) q.set("file", r.file);
|
|
1997
|
-
const qs = q.toString();
|
|
1998
|
-
return `${base}/review${qs ? `?${qs}` : ""}`;
|
|
1999
|
-
}
|
|
2000
|
-
if (r.view === "manage") return `${base}/manage`;
|
|
2001
|
-
return `${base}${r.sessionId ? `?s=${encodeURIComponent(r.sessionId)}` : ""}`;
|
|
2002
|
-
}
|
|
2003
1985
|
var phase = {
|
|
2004
1986
|
working: "_A",
|
|
2005
1987
|
waiting: "_B",
|
|
@@ -2396,8 +2378,8 @@ var icon_sidebar_default = _template("ib", (input) => {
|
|
|
2396
2378
|
});
|
|
2397
2379
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2398
2380
|
});
|
|
2399
|
-
var findInput = "
|
|
2400
|
-
var findIconBtn = "
|
|
2381
|
+
var findInput = "_fA _l";
|
|
2382
|
+
var findIconBtn = "_fD _j";
|
|
2401
2383
|
//#endregion
|
|
2402
2384
|
//#region src/tags/icons/icon-arrow-down.marko
|
|
2403
2385
|
var icon_arrow_down_default = _template("H", (input) => {
|
|
@@ -2416,4 +2398,4 @@ var icon_arrow_down_default = _template("H", (input) => {
|
|
|
2416
2398
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2417
2399
|
});
|
|
2418
2400
|
//#endregion
|
|
2419
|
-
export {
|
|
2401
|
+
export { _await as $, repoLabel as A, _try as At, phase as B, sideNavOpen as C, _serialize_guard as Ct, icon_xmark_default as D, _template as Dt, toast_default as E, _subscribe as Et, iconBtnLg as F, _attr_details_or_dialog_open as G, $global as H, iconBtnRow as I, _attr_or as J, _attr_input_value as K, iconBtnXs as L, setPrimaryHost as M, attrTag as Mt, btnLg as N, withPageAssets as Nt, icon_base_default as O, _to_text as Ot, btnSm as P, writeScope as Pt, _attrs_partial as Q, inputLg as R, setWorkspaceTab as S, _sep as St, workspaceTab as T, _set_serialize_reason as Tt, _attr as U, tone as V, _attr_class as W, _attr_style as X, _attr_select_value as Y, _attrs as Z, diffTreeOpen as _, _resume_branch as _t, fuzzy as a, _el_resume as at, setDiffScope as b, _scope_with_id as bt, icon_arrow_up_default as c, _flush_head as ct, iconBtn as d, _hoist_read_error as dt, _content as et, row as f, _html as ft, diffScope as g, _resume as gt, diffPos as h, _peek_scope_id as ht, icon_sidebar_default as i, _el_read_error as it, repoWebUrl as j, _var as jt, parseRepoUrl as k, _trailers as kt, icon_back_default as l, _for_of as lt, diffFilter as m, _if as mt, findIconBtn as n, _dynamic_tag as nt, rankRepos as o, _escape as ot, sectionCount as p, _id as pt, _attr_option_value as q, findInput as r, _el as rt, icon_search_default as s, _existing_scope as st, icon_arrow_down_default as t, _content_resume as tt, icon_refresh_default as u, _hoist as ut, ignoredSsoOrgs as v, _scope_id as vt, theme as w, _serialize_if as wt, setTheme as x, _script as xt, setDiffPos as y, _scope_reason as yt, metaTrunc as z };
|