@dylanpiercey/work 0.0.50 → 0.0.51
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/bin/work.mjs +1 -1
- package/dist/{_CkFSxwl9.js → _ChsFL4HL.js} +67 -67
- package/dist/{_BMPRQiid.js → _hWr23FrN.js} +21 -21
- package/dist/index.mjs +199 -192
- package/dist/public/assets/{_14Rf7auw2.js → _-OkpjNFC2.js} +1 -1
- package/dist/public/assets/_-OkpjNFC2.js.br +0 -0
- package/dist/public/assets/{_3L9qJ2FI.js → _7zKhgk70.js} +1 -1
- package/dist/public/assets/_7zKhgk70.js.br +0 -0
- package/dist/public/assets/{_BO7NVUTp.js → _ANZIBcq8.js} +1 -1
- package/dist/public/assets/_ANZIBcq8.js.br +0 -0
- package/dist/public/assets/{_CxVYrK29.js → _B1kAPDJf.js} +1 -1
- package/dist/public/assets/_B1kAPDJf.js.br +0 -0
- package/dist/public/assets/{_DaFCn9AP.js → _B1q1XEz1.js} +1 -1
- package/dist/public/assets/_B1q1XEz1.js.br +0 -0
- package/dist/public/assets/{_D4Agz1BW.js → _BAe2Rkst.js} +1 -1
- package/dist/public/assets/_BAe2Rkst.js.br +0 -0
- package/dist/public/assets/{_B3OlqMGd.js → _BMRMEvO7.js} +1 -1
- package/dist/public/assets/_BMRMEvO7.js.br +0 -0
- package/dist/public/assets/{_CoZJRwLV.js → _BQWd9iua.js} +1 -1
- package/dist/public/assets/_BQWd9iua.js.br +0 -0
- package/dist/public/assets/{_BM1T1EOI.js → _BXzA1hkF.js} +1 -1
- package/dist/public/assets/_BXzA1hkF.js.br +0 -0
- package/dist/public/assets/{_CwesB1Zy2.js → _BY6UBzWo2.js} +1 -1
- package/dist/public/assets/{_BKrb_vR32.js → _BZMQNYA92.js} +1 -1
- package/dist/public/assets/_BZMQNYA92.js.br +0 -0
- package/dist/public/assets/{_BXOM5Rv62.js → _BZZMGQsS2.js} +1 -1
- package/dist/public/assets/{_R2u4F0-3.js → _BdKJVs01.js} +1 -1
- package/dist/public/assets/_BdKJVs01.js.br +0 -0
- package/dist/public/assets/{_DrzuvLS6.js → _Bdd-EVvo.js} +1 -1
- package/dist/public/assets/_Bdd-EVvo.js.br +0 -0
- package/dist/public/assets/{_ylRundRE.js → _BepwNj2c.js} +1 -1
- package/dist/public/assets/_BepwNj2c.js.br +0 -0
- package/dist/public/assets/{_CnAW-XtK.js → _BgR6JlxP.js} +1 -1
- package/dist/public/assets/_BgR6JlxP.js.br +0 -0
- package/dist/public/assets/{_CTCAIoky.js → _BglwyDVi.js} +1 -1
- package/dist/public/assets/_BglwyDVi.js.br +0 -0
- package/dist/public/assets/{_DmD3gC-H.js → _BiDu7TT-.js} +1 -1
- package/dist/public/assets/_BiDu7TT-.js.br +0 -0
- package/dist/public/assets/{_BKFltGNM2.js → _BosbXyNb2.js} +1 -1
- package/dist/public/assets/_BosbXyNb2.js.br +0 -0
- package/dist/public/assets/{_Cl5zwC6C.js → _BsogDiXx.js} +1 -1
- package/dist/public/assets/{_CAq8JoYd.js → _Bt7Eey0L.js} +1 -1
- package/dist/public/assets/_Bt7Eey0L.js.br +0 -0
- package/dist/public/assets/{_CJRnhPJ5.js → _BvXRPJdv.js} +1 -1
- package/dist/public/assets/_BvXRPJdv.js.br +0 -0
- package/dist/public/assets/{_C0yzBH1I.js → _BxtJHtVP.js} +1 -1
- package/dist/public/assets/_BxtJHtVP.js.br +0 -0
- package/dist/public/assets/{_oOOdPbmX2.js → _By0A-jZS2.js} +1 -1
- package/dist/public/assets/_By0A-jZS2.js.br +0 -0
- package/dist/public/assets/{_CYutj5Nn.js → _C0oWdnE5.js} +1 -1
- package/dist/public/assets/_C0oWdnE5.js.br +0 -0
- package/dist/public/assets/{_8OBdOEN_.js → _C2I7cHEj.js} +1 -1
- package/dist/public/assets/_C2I7cHEj.js.br +0 -0
- package/dist/public/assets/{_vdLXTjUv2.js → _CHrLzFRU2.js} +1 -1
- package/dist/public/assets/_CHrLzFRU2.js.br +0 -0
- package/dist/public/assets/{_Bqk-7ZnJ.js → _COh_iyNM.js} +1 -1
- package/dist/public/assets/_COh_iyNM.js.br +0 -0
- package/dist/public/assets/{_B0BWvFlM.js → _CTZYzJI9.js} +1 -1
- package/dist/public/assets/_CTZYzJI9.js.br +0 -0
- package/dist/public/assets/{_g5scf0ei.js → _CWmZT485.js} +1 -1
- package/dist/public/assets/_CWmZT485.js.br +0 -0
- package/dist/public/assets/{_BAmdta6F.js → _CZzND5iW.js} +1 -1
- package/dist/public/assets/_CZzND5iW.js.br +0 -0
- package/dist/public/assets/{_LbQesljk.js → _Cd9v1nzp.js} +1 -1
- package/dist/public/assets/_Cd9v1nzp.js.br +0 -0
- package/dist/public/assets/{_B7_X6QKl.js → _Cf3MmuUY.js} +1 -1
- package/dist/public/assets/_Cf3MmuUY.js.br +0 -0
- package/dist/public/assets/{_MWudDHh02.js → _Cjp1_INh2.js} +1 -1
- package/dist/public/assets/_Cjp1_INh2.js.br +0 -0
- package/dist/public/assets/{_ZMT8kCL52.js → _ClePGw1Q2.js} +1 -1
- package/dist/public/assets/_ClePGw1Q2.js.br +0 -0
- package/dist/public/assets/{_D7t5subj.js → _CnOIrHd4.js} +1 -1
- package/dist/public/assets/_CnOIrHd4.js.br +0 -0
- package/dist/public/assets/{_B3vaoKEN2.js → _Co5f57QZ2.js} +1 -1
- package/dist/public/assets/_Co5f57QZ2.js.br +0 -0
- package/dist/public/assets/{_B7zx6ruH.js → _CozR6WAm.js} +1 -1
- package/dist/public/assets/_CozR6WAm.js.br +0 -0
- package/dist/public/assets/{_END-bJOF2.js → _CpF0eDyO2.js} +1 -1
- package/dist/public/assets/_CpF0eDyO2.js.br +0 -0
- package/dist/public/assets/{_Dwi7467c.js → _Ct4X_xxt.js} +1 -1
- package/dist/public/assets/_Ct4X_xxt.js.br +0 -0
- package/dist/public/assets/{_BipcKLQ82.js → _CtUpTTh_2.js} +1 -1
- package/dist/public/assets/_CtUpTTh_2.js.br +0 -0
- package/dist/public/assets/{_yXYQK3xI2.js → _Cuf3C8O12.js} +1 -1
- package/dist/public/assets/_Cuf3C8O12.js.br +0 -0
- package/dist/public/assets/{_BVn7ySs5.js → _CzWr4WDS.js} +1 -1
- package/dist/public/assets/_CzWr4WDS.js.br +0 -0
- package/dist/public/assets/{_mooiyN7w2.js → _D6rlRNb42.js} +1 -1
- package/dist/public/assets/_D6rlRNb42.js.br +0 -0
- package/dist/public/assets/{_BqTMyizJ.js → _DDHqFyT6.js} +1 -1
- package/dist/public/assets/_DDHqFyT6.js.br +0 -0
- package/dist/public/assets/{_DaBnEzqR.js → _DDIsmVeS.js} +1 -1
- package/dist/public/assets/_DDIsmVeS.js.br +0 -0
- package/dist/public/assets/{_46jbMvnT.js → _DEMYRqVb.js} +1 -1
- package/dist/public/assets/_DEMYRqVb.js.br +0 -0
- package/dist/public/assets/{_6FgRPbD12.js → _DHn-Con42.js} +1 -1
- package/dist/public/assets/_DHn-Con42.js.br +0 -0
- package/dist/public/assets/{_eLSetQBz.js → _DJbEi800.js} +1 -1
- package/dist/public/assets/_DJbEi800.js.br +0 -0
- package/dist/public/assets/{_YpsD0CNd.js → _DPZvn_Ns.js} +1 -1
- package/dist/public/assets/_DPZvn_Ns.js.br +0 -0
- package/dist/public/assets/{_5B_C1ELg2.js → _DS46Nokf2.js} +1 -1
- package/dist/public/assets/_DS46Nokf2.js.br +0 -0
- package/dist/public/assets/{_D8LNkUUk.js → _DSSFuJur.js} +1 -1
- package/dist/public/assets/_DSSFuJur.js.br +0 -0
- package/dist/public/assets/{_CpuGya-f2.js → _DTl3WJKW2.js} +1 -1
- package/dist/public/assets/_DTl3WJKW2.js.br +0 -0
- package/dist/public/assets/{_DKExcf_t.js → _Daxa4EBi.js} +1 -1
- package/dist/public/assets/_Daxa4EBi.js.br +0 -0
- package/dist/public/assets/{_BDs5gBRu.js → _Dd2aGpDJ.js} +1 -1
- package/dist/public/assets/_Dd2aGpDJ.js.br +0 -0
- package/dist/public/assets/{_qDJ6gb3q.js → _De6QD9bA.js} +1 -1
- package/dist/public/assets/_De6QD9bA.js.br +0 -0
- package/dist/public/assets/{_CG33pVWf.js → _DhkDcW9a.js} +1 -1
- package/dist/public/assets/_DhkDcW9a.js.br +0 -0
- package/dist/public/assets/{_CmPpWb_a.js → _DieSr1Ar.js} +1 -1
- package/dist/public/assets/_DieSr1Ar.js.br +0 -0
- package/dist/public/assets/{_eXTAehNM2.js → _Dkkv3pWr2.js} +1 -1
- package/dist/public/assets/_Dkkv3pWr2.js.br +0 -0
- package/dist/public/assets/{_BHyVr2SL2.js → _DmR5fI7m2.js} +1 -1
- package/dist/public/assets/_DmR5fI7m2.js.br +0 -0
- package/dist/public/assets/{_aTh5ZUn4.js → _DmhFYJm3.js} +1 -1
- package/dist/public/assets/_DmhFYJm3.js.br +0 -0
- package/dist/public/assets/{_CLFzw6tJ2.js → _DqeMgS1a2.js} +1 -1
- package/dist/public/assets/_DqeMgS1a2.js.br +0 -0
- package/dist/public/assets/{_ChMN3jzE.js → _DsZJYF5S.js} +5 -5
- package/dist/public/assets/_DsZJYF5S.js.br +0 -0
- package/dist/public/assets/{_Bw4RcZCP2.js → _Dxgr5ZEE2.js} +1 -1
- package/dist/public/assets/_Dxgr5ZEE2.js.br +0 -0
- package/dist/public/assets/{_CUk8oM8X.js → _DypMRhyB.js} +1 -1
- package/dist/public/assets/_DypMRhyB.js.br +0 -0
- package/dist/public/assets/{_gVQOuQ8i.js → _LpvSvw1m.js} +1 -1
- package/dist/public/assets/_LpvSvw1m.js.br +0 -0
- package/dist/public/assets/{_ds7D8iP9.js → _OrWHmnP_.js} +1 -1
- package/dist/public/assets/_OrWHmnP_.js.br +0 -0
- package/dist/public/assets/{_BTA9H0Q3.js → _WWEgOS99.js} +1 -1
- package/dist/public/assets/_WWEgOS99.js.br +0 -0
- package/dist/public/assets/{_Dp1uWzpq2.js → __yh22OJv2.js} +1 -1
- package/dist/public/assets/__yh22OJv2.js.br +0 -0
- package/dist/public/assets/{_Ip505vk_.js → _c0RV9ZTi.js} +1 -1
- package/dist/public/assets/_c0RV9ZTi.js.br +0 -0
- package/dist/public/assets/{_Bfrb3Fvn2.js → _h4RVOlAc2.js} +1 -1
- package/dist/public/assets/_h4RVOlAc2.js.br +0 -0
- package/dist/public/assets/{_BPVwmM2e.js → _k8EORKKh.js} +1 -1
- package/dist/public/assets/_k8EORKKh.js.br +0 -0
- package/dist/public/assets/{_BrIeskzm.js → _ror9VoLz.js} +1 -1
- package/dist/public/assets/_ror9VoLz.js.br +0 -0
- package/dist/public/assets/{_CvF3Yy4B.js → _um1Uylai.js} +1 -1
- package/dist/public/assets/_um1Uylai.js.br +0 -0
- package/dist/public/assets/{_BteZRGy02.js → _z-TE6bLm2.js} +1 -1
- package/dist/public/assets/_z-TE6bLm2.js.br +0 -0
- package/dist/public/assets/diff-view-Cb9k_CUr.css +1 -0
- package/dist/public/assets/diff-view-Cb9k_CUr.css.br +0 -0
- package/dist/public/assets/index-BTS1WPEB.css +1 -0
- package/dist/public/assets/index-BTS1WPEB.css.br +0 -0
- package/dist/public/assets/{index-CLK3dq8r.js → index-g4T1J5qh.js} +3 -3
- package/dist/public/assets/index-g4T1J5qh.js.br +0 -0
- package/lib/setup/install.mjs +10 -7
- package/package.json +1 -1
- package/dist/public/assets/_14Rf7auw2.js.br +0 -0
- package/dist/public/assets/_3L9qJ2FI.js.br +0 -0
- package/dist/public/assets/_46jbMvnT.js.br +0 -0
- package/dist/public/assets/_5B_C1ELg2.js.br +0 -0
- package/dist/public/assets/_6FgRPbD12.js.br +0 -0
- package/dist/public/assets/_8OBdOEN_.js.br +0 -0
- package/dist/public/assets/_B0BWvFlM.js.br +0 -0
- package/dist/public/assets/_B3OlqMGd.js.br +0 -0
- package/dist/public/assets/_B3vaoKEN2.js.br +0 -0
- package/dist/public/assets/_B7_X6QKl.js.br +0 -0
- package/dist/public/assets/_B7zx6ruH.js.br +0 -0
- package/dist/public/assets/_BAmdta6F.js.br +0 -0
- package/dist/public/assets/_BDs5gBRu.js.br +0 -0
- package/dist/public/assets/_BHyVr2SL2.js.br +0 -0
- package/dist/public/assets/_BKFltGNM2.js.br +0 -0
- package/dist/public/assets/_BKrb_vR32.js.br +0 -0
- package/dist/public/assets/_BM1T1EOI.js.br +0 -0
- package/dist/public/assets/_BO7NVUTp.js.br +0 -0
- package/dist/public/assets/_BPVwmM2e.js.br +0 -0
- package/dist/public/assets/_BTA9H0Q3.js.br +0 -0
- package/dist/public/assets/_BVn7ySs5.js.br +0 -0
- package/dist/public/assets/_Bfrb3Fvn2.js.br +0 -0
- package/dist/public/assets/_BipcKLQ82.js.br +0 -0
- package/dist/public/assets/_BqTMyizJ.js.br +0 -0
- package/dist/public/assets/_Bqk-7ZnJ.js.br +0 -0
- package/dist/public/assets/_BrIeskzm.js.br +0 -0
- package/dist/public/assets/_BteZRGy02.js.br +0 -0
- package/dist/public/assets/_Bw4RcZCP2.js.br +0 -0
- package/dist/public/assets/_C0yzBH1I.js.br +0 -0
- package/dist/public/assets/_CAq8JoYd.js.br +0 -0
- package/dist/public/assets/_CG33pVWf.js.br +0 -0
- package/dist/public/assets/_CJRnhPJ5.js.br +0 -0
- package/dist/public/assets/_CLFzw6tJ2.js.br +0 -0
- package/dist/public/assets/_CTCAIoky.js.br +0 -0
- package/dist/public/assets/_CUk8oM8X.js.br +0 -0
- package/dist/public/assets/_CYutj5Nn.js.br +0 -0
- package/dist/public/assets/_ChMN3jzE.js.br +0 -0
- package/dist/public/assets/_CmPpWb_a.js.br +0 -0
- package/dist/public/assets/_CnAW-XtK.js.br +0 -0
- package/dist/public/assets/_CoZJRwLV.js.br +0 -0
- package/dist/public/assets/_CpuGya-f2.js.br +0 -0
- package/dist/public/assets/_CvF3Yy4B.js.br +0 -0
- package/dist/public/assets/_CxVYrK29.js.br +0 -0
- package/dist/public/assets/_D4Agz1BW.js.br +0 -0
- package/dist/public/assets/_D7t5subj.js.br +0 -0
- package/dist/public/assets/_D8LNkUUk.js.br +0 -0
- package/dist/public/assets/_DKExcf_t.js.br +0 -0
- package/dist/public/assets/_DaBnEzqR.js.br +0 -0
- package/dist/public/assets/_DaFCn9AP.js.br +0 -0
- package/dist/public/assets/_DmD3gC-H.js.br +0 -0
- package/dist/public/assets/_Dp1uWzpq2.js.br +0 -0
- package/dist/public/assets/_DrzuvLS6.js.br +0 -0
- package/dist/public/assets/_Dwi7467c.js.br +0 -0
- package/dist/public/assets/_END-bJOF2.js.br +0 -0
- package/dist/public/assets/_Ip505vk_.js.br +0 -0
- package/dist/public/assets/_LbQesljk.js.br +0 -0
- package/dist/public/assets/_MWudDHh02.js.br +0 -0
- package/dist/public/assets/_R2u4F0-3.js.br +0 -0
- package/dist/public/assets/_YpsD0CNd.js.br +0 -0
- package/dist/public/assets/_ZMT8kCL52.js.br +0 -0
- package/dist/public/assets/_aTh5ZUn4.js.br +0 -0
- package/dist/public/assets/_ds7D8iP9.js.br +0 -0
- package/dist/public/assets/_eLSetQBz.js.br +0 -0
- package/dist/public/assets/_eXTAehNM2.js.br +0 -0
- package/dist/public/assets/_g5scf0ei.js.br +0 -0
- package/dist/public/assets/_gVQOuQ8i.js.br +0 -0
- package/dist/public/assets/_mooiyN7w2.js.br +0 -0
- package/dist/public/assets/_oOOdPbmX2.js.br +0 -0
- package/dist/public/assets/_qDJ6gb3q.js.br +0 -0
- package/dist/public/assets/_vdLXTjUv2.js.br +0 -0
- package/dist/public/assets/_yXYQK3xI2.js.br +0 -0
- package/dist/public/assets/_ylRundRE.js.br +0 -0
- package/dist/public/assets/diff-view-CFyPUyMl.css +0 -1
- package/dist/public/assets/diff-view-CFyPUyMl.css.br +0 -0
- package/dist/public/assets/index-CLK3dq8r.js.br +0 -0
- package/dist/public/assets/index-DL_Vi7rw.css +0 -1
- package/dist/public/assets/index-DL_Vi7rw.css.br +0 -0
package/bin/work.mjs
CHANGED
|
@@ -355,7 +355,7 @@ async function fix(d, { agents = "prompt" } = {}) {
|
|
|
355
355
|
} else if (yes) {
|
|
356
356
|
warn("gh is not authenticated — run `gh auth login` later");
|
|
357
357
|
} else {
|
|
358
|
-
log("signing in to GitHub (PRs/clones)");
|
|
358
|
+
log("signing in to GitHub (PRs/clones) — open https://github.com/login/device in any browser and enter the code below; no browser is launched here");
|
|
359
359
|
await authGithub("github.com", { interactive: true }).catch((err) => warn(err.message));
|
|
360
360
|
}
|
|
361
361
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as _set_serialize_reason, B as _html, C as _attr_select_value, F as _existing_scope, G as _resume_branch, H as _if, J as _scope_with_id, K as _scope_id, L as _for_of, M as _el_read_error, N as _el_resume, P as _escape, Q as _serialize_if, S as _attr_option_value, U as _peek_scope_id, W as _resume, X as _sep, Y as _script, Z as _serialize_guard, a as diffTreeOpen, b as _attr_details_or_dialog_open, ct as attrTag, et as _show_end, f as icon_refresh_default, i as icon_sidebar_default, j as _el, k as _content_resume, m as toast_default, n as findIconBtn, nt as _subscribe, o as diffUncommitted, p as icon_base_default, q as _scope_reason, r as findInput, rt as _template, t as icon_search_default, tt as _show_start, u as fuzzy, ut as writeScope, v as _attr, w as _attr_style, x as _attr_input_value, y as _attr_class } from "./
|
|
1
|
+
import { $ as _set_serialize_reason, B as _html, C as _attr_select_value, F as _existing_scope, G as _resume_branch, H as _if, J as _scope_with_id, K as _scope_id, L as _for_of, M as _el_read_error, N as _el_resume, P as _escape, Q as _serialize_if, S as _attr_option_value, U as _peek_scope_id, W as _resume, X as _sep, Y as _script, Z as _serialize_guard, a as diffTreeOpen, b as _attr_details_or_dialog_open, ct as attrTag, et as _show_end, f as icon_refresh_default, i as icon_sidebar_default, j as _el, k as _content_resume, m as toast_default, n as findIconBtn, nt as _subscribe, o as diffUncommitted, p as icon_base_default, q as _scope_reason, r as findInput, rt as _template, t as icon_search_default, tt as _show_start, u as fuzzy, ut as writeScope, v as _attr, w as _attr_style, x as _attr_input_value, y as _attr_class } from "./_hWr23FrN.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
|
|
@@ -262,10 +262,10 @@ function treeRows(files) {
|
|
|
262
262
|
}
|
|
263
263
|
//#endregion
|
|
264
264
|
//#region src/tags/diff-view.css.ts
|
|
265
|
-
var iconBtn$1 = "
|
|
266
|
-
var treeToggle = "
|
|
267
|
-
var repoWorktree = "
|
|
268
|
-
var repoTitle = "
|
|
265
|
+
var iconBtn$1 = "_dN _M";
|
|
266
|
+
var treeToggle = "_dR _M";
|
|
267
|
+
var repoWorktree = "_ej _o";
|
|
268
|
+
var repoTitle = "_el _n";
|
|
269
269
|
//#endregion
|
|
270
270
|
//#region src/tags/icons/icon-back.marko
|
|
271
271
|
var icon_back_default = _template("A", (input) => {
|
|
@@ -283,7 +283,7 @@ var icon_back_default = _template("A", (input) => {
|
|
|
283
283
|
});
|
|
284
284
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
285
285
|
});
|
|
286
|
-
var fileFilter = "
|
|
286
|
+
var fileFilter = "_e5 _c";
|
|
287
287
|
//#endregion
|
|
288
288
|
//#region src/tags/file-filter.marko
|
|
289
289
|
var file_filter_default = _template("j", (input) => {
|
|
@@ -313,7 +313,7 @@ var file_filter_default = _template("j", (input) => {
|
|
|
313
313
|
pending = v;
|
|
314
314
|
box.timer = setTimeout(flush, 150);
|
|
315
315
|
}, "j2", $scope0_id);
|
|
316
|
-
_html(`<div${_attr_class("
|
|
316
|
+
_html(`<div${_attr_class("_e4")}><input${_attr_input_value($scope0_id, "b", draft, _resume(function(v) {
|
|
317
317
|
type(v);
|
|
318
318
|
}, "j0", $scope0_id))}${_attr_class(fileFilter)} type=search placeholder="Filter files…" aria-label="Filter files">${_el_resume($scope0_id, "b")}</div>`);
|
|
319
319
|
_script($scope0_id, "j3");
|
|
@@ -339,21 +339,21 @@ var diff_send_default = _template("g", (input) => {
|
|
|
339
339
|
let sendTarget = null;
|
|
340
340
|
const sessions = input.sessions || [];
|
|
341
341
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
342
|
-
_html(`<span${_attr_class("
|
|
342
|
+
_html(`<span${_attr_class("_fh")}><button type=button${_attr_class("_f")} title="Copy comments as markdown">Copy${_el_resume($scope0_id, "c")}</button>${_el_resume($scope0_id, "b")}`);
|
|
343
343
|
_if(() => {
|
|
344
344
|
if (sessions.length === 1) {
|
|
345
345
|
const $scope1_id = _scope_id();
|
|
346
|
-
_html(`<button type=button${_attr_class(["
|
|
346
|
+
_html(`<button type=button${_attr_class(["_f", "_g"])}${_attr("disabled", sending)}>${`Send to ${_escape(`${sessions[0].title || sessions[0].agent}`)}`}${_el_resume($scope1_id, "b")}</button>${_el_resume($scope1_id, "a")}`);
|
|
347
347
|
_script($scope1_id, "g1");
|
|
348
348
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
349
349
|
return 0;
|
|
350
350
|
} else if (sessions.length) {
|
|
351
351
|
const $scope2_id = _scope_id();
|
|
352
|
-
_html(`<span${_attr_class("
|
|
352
|
+
_html(`<span${_attr_class("_fi")}><button type=button${_attr_class("_fj")}${_attr("disabled", sending)}>Send to${_el_resume($scope2_id, "c")}</button>${_el_resume($scope2_id, "b")}`);
|
|
353
353
|
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
354
354
|
sendTarget = _new_sendTarget;
|
|
355
355
|
}, "g0", $scope2_id), () => {
|
|
356
|
-
_html(`<select${_attr_class("
|
|
356
|
+
_html(`<select${_attr_class("_fk")} aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
357
357
|
_for_of(sessions, (s) => {
|
|
358
358
|
const $scope3_id = _scope_id();
|
|
359
359
|
_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 +1889,9 @@ var diff_find_default = _template("f", (input) => {
|
|
|
1889
1889
|
el.select();
|
|
1890
1890
|
}, 0);
|
|
1891
1891
|
}, "f5", $scope0_id);
|
|
1892
|
-
_html(`<div${_attr_class(["
|
|
1892
|
+
_html(`<div${_attr_class(["_fm", !open && "_fl"])} aria-hidden=${open ? "false" : "true"}><input${_attr_input_value($scope0_id, "b", query || "", _resume(function(v) {
|
|
1893
1893
|
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("
|
|
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("_fp")}>${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
1895
|
_script($scope0_id, "f6");
|
|
1896
1896
|
_script($scope0_id, "f7");
|
|
1897
1897
|
_script($scope0_id, "f8");
|
|
@@ -1930,7 +1930,7 @@ var diff_file_default = _template("e", (input) => {
|
|
|
1930
1930
|
_scope_reason();
|
|
1931
1931
|
const $scope0_id = _scope_id();
|
|
1932
1932
|
_el($scope0_id, "e0");
|
|
1933
|
-
_html(`<div${_attr_class(["
|
|
1933
|
+
_html(`<div${_attr_class(["_fy", input.class])}></div>${_el_resume($scope0_id, "a")}`);
|
|
1934
1934
|
_script($scope0_id, "e1");
|
|
1935
1935
|
writeScope($scope0_id, {
|
|
1936
1936
|
e: input.file,
|
|
@@ -1959,10 +1959,10 @@ var diff_tree_default = _template("h", (input) => {
|
|
|
1959
1959
|
let openedRepos = input.openedRepos;
|
|
1960
1960
|
let collapsedDirs = /* @__PURE__ */ new Set();
|
|
1961
1961
|
const commentKeys = input.commentKeys || /* @__PURE__ */ new Set();
|
|
1962
|
-
_html(`<aside${_attr_class(["
|
|
1962
|
+
_html(`<aside${_attr_class(["_f1", { ["_f0"]: input.open === false }])}>`);
|
|
1963
1963
|
_for_of(input.sections, (section) => {
|
|
1964
1964
|
const $scope1_id = _scope_id();
|
|
1965
|
-
_html(`<div${_attr_class("
|
|
1965
|
+
_html(`<div${_attr_class("_f2")}><button type=button${_attr_class(["_f3", { ["_f0"]: collapsedRepos.has(section.id) }])}><span${_attr_class("_f8")}>${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
1966
|
_if(() => {
|
|
1967
1967
|
if (!collapsedRepos.has(section.id) || openedRepos.has(section.id)) {
|
|
1968
1968
|
const $scope2_id = _scope_id();
|
|
@@ -1989,17 +1989,17 @@ var diff_tree_default = _template("h", (input) => {
|
|
|
1989
1989
|
_if(() => {
|
|
1990
1990
|
if (!hiddenByCollapse(row) && row.kind === "dir") {
|
|
1991
1991
|
const $scope5_id = _scope_id();
|
|
1992
|
-
_html(`<button type=button${_attr_class(["
|
|
1992
|
+
_html(`<button type=button${_attr_class(["_f4", { ["_f0"]: collapsedDirs.has(dirKey(row.path)) }])}${_attr("title", row.path)}${_attr_style(`padding-left:${.35 + row.depth * .75}rem`)}><span${_attr_class("_f8")}>${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
1993
|
_script($scope5_id, "h3");
|
|
1994
1994
|
_subscribe($si__input_sections && $if_content__dirKey__closures, _subscribe($collapsedDirs__closures, writeScope($scope5_id, { Cv: 1 })));
|
|
1995
1995
|
return 0;
|
|
1996
1996
|
} else if (!hiddenByCollapse(row) && row.kind !== "dir") {
|
|
1997
1997
|
const $scope4_id = _scope_id();
|
|
1998
|
-
_html(`<button type=button${_attr_class("
|
|
1998
|
+
_html(`<button type=button${_attr_class("_f5")}${_attr("title", row.file.path)}${_attr_style(`padding-left:${.5 + row.depth * .75}rem`)}><span${_attr_class("_f9")}${_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("_f6")}>${_escape(row.name)}${_el_resume($scope4_id, "e", $sg__input_sections)}</span>`);
|
|
1999
1999
|
_if(() => {
|
|
2000
2000
|
if (commentKeys.has(row.file.key)) {
|
|
2001
2001
|
const $scope6_id = _scope_id();
|
|
2002
|
-
_html(`<span${_attr_class("
|
|
2002
|
+
_html(`<span${_attr_class("_f7")}>💬</span>`);
|
|
2003
2003
|
_serialize_if($scope0_reason, 0) && writeScope($scope6_id, {});
|
|
2004
2004
|
return 0;
|
|
2005
2005
|
}
|
|
@@ -2060,7 +2060,7 @@ var diff_tree_default = _template("h", (input) => {
|
|
|
2060
2060
|
});
|
|
2061
2061
|
//#endregion
|
|
2062
2062
|
//#region src/tags/diff-file-sheet.css.ts
|
|
2063
|
-
var iconBtn = "
|
|
2063
|
+
var iconBtn = "_e8 _M";
|
|
2064
2064
|
//#endregion
|
|
2065
2065
|
//#region src/tags/diff-file-sheet.marko
|
|
2066
2066
|
var diff_file_sheet_default = _template("d", (input) => {
|
|
@@ -2073,10 +2073,10 @@ var diff_file_sheet_default = _template("d", (input) => {
|
|
|
2073
2073
|
_if(() => {
|
|
2074
2074
|
if (open) {
|
|
2075
2075
|
const $scope1_id = _scope_id();
|
|
2076
|
-
_html(`<div${_attr_class("
|
|
2076
|
+
_html(`<div${_attr_class("_e_")}></div>${_el_resume($scope1_id, "a")}<div${_attr_class("_fa")} role=dialog aria-label="Jump to file"><div${_attr_class("_fb")}><strong${_attr_class("_e9")}>Files</strong><span${_attr_class("_fc")}>${_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(iconBtn)} title=Close aria-label=Close>×</button>${_el_resume($scope1_id, "h")}</div><div${_attr_class("_fd")}>`);
|
|
2077
2077
|
_for_of(input.files, (file) => {
|
|
2078
2078
|
const $scope2_id = _scope_id();
|
|
2079
|
-
_html(`<button type=button${_attr_class(["
|
|
2079
|
+
_html(`<button type=button${_attr_class(["_fe", "_o"])}><span${_attr_class("_fg")}${_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("_ff")}${_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
2080
|
_if(() => {
|
|
2081
2081
|
if (commentKeys.has(file.key)) {
|
|
2082
2082
|
const $scope3_id = _scope_id();
|
|
@@ -2470,11 +2470,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2470
2470
|
revealSearchHit();
|
|
2471
2471
|
}, 0);
|
|
2472
2472
|
}, "i20", $scope0_id);
|
|
2473
|
-
_html(`<div${_attr_class("
|
|
2473
|
+
_html(`<div${_attr_class("_dO")}><div${_attr_class("_dT")}><div${_attr_class(["_dU", { ["_dW"]: comments.length > 0 }])}><div${_attr_class("_d6")}>`);
|
|
2474
2474
|
_if(() => {
|
|
2475
2475
|
if (input.onExit) {
|
|
2476
2476
|
const $scope1_id = _scope_id();
|
|
2477
|
-
_html(`<button${_attr_class([iconBtn$1, "
|
|
2477
|
+
_html(`<button${_attr_class([iconBtn$1, "_dV"])} title="Back to terminal">`);
|
|
2478
2478
|
icon_back_default({ size: 14 });
|
|
2479
2479
|
_html(`</button>${_el_resume($scope1_id, "a")}`);
|
|
2480
2480
|
_script($scope1_id, "i36");
|
|
@@ -2482,7 +2482,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2482
2482
|
return 0;
|
|
2483
2483
|
}
|
|
2484
2484
|
}, $scope0_id, "e", $sg__input_onExit, $sg__input_onExit, 1, 0, 1);
|
|
2485
|
-
_html(`<div${_attr_class("
|
|
2485
|
+
_html(`<div${_attr_class("_d7")}>`);
|
|
2486
2486
|
_set_serialize_reason(2);
|
|
2487
2487
|
const $childScope = _peek_scope_id();
|
|
2488
2488
|
file_filter_default({
|
|
@@ -2491,16 +2491,16 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2491
2491
|
fileFilter = _new_fileFilter;
|
|
2492
2492
|
}, "i21", $scope0_id)
|
|
2493
2493
|
});
|
|
2494
|
-
_html(`</div><div${_attr_class("
|
|
2494
|
+
_html(`</div><div${_attr_class("_dX")}><h1${_attr_class("_dY")}>Review</h1><span${_attr_class("_d8")}>`);
|
|
2495
2495
|
_if(() => {
|
|
2496
2496
|
if (lineStats.additions || lineStats.deletions) {
|
|
2497
2497
|
const $scope27_id = _scope_id();
|
|
2498
|
-
_html(`<span${_attr_class("
|
|
2498
|
+
_html(`<span${_attr_class("_d9")}>+<!>${_escape(lineStats.additions)}${_el_resume($scope27_id, "b")}</span><span${_attr_class("_d_")}>−<!>${_escape(lineStats.deletions)}${_el_resume($scope27_id, "d")}</span>`);
|
|
2499
2499
|
writeScope($scope27_id, {});
|
|
2500
2500
|
return 0;
|
|
2501
2501
|
} else {
|
|
2502
2502
|
const $scope29_id = _scope_id();
|
|
2503
|
-
_html(`<span${_attr_class("
|
|
2503
|
+
_html(`<span${_attr_class("_ea")}>0</span>`);
|
|
2504
2504
|
writeScope($scope29_id, {});
|
|
2505
2505
|
return 1;
|
|
2506
2506
|
}
|
|
@@ -2508,7 +2508,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2508
2508
|
_if(() => {
|
|
2509
2509
|
if (comments.length) {
|
|
2510
2510
|
const $scope13_id = _scope_id();
|
|
2511
|
-
_html(`<span${_attr_class("
|
|
2511
|
+
_html(`<span${_attr_class("_eb")}>·</span>${_escape(comments.length)}${_el_resume($scope13_id, "b")} comment<!>${comments.length === 1 ? "" : "s"}${_el_resume($scope13_id, "c")}`);
|
|
2512
2512
|
writeScope($scope13_id, {});
|
|
2513
2513
|
return 0;
|
|
2514
2514
|
}
|
|
@@ -2528,20 +2528,20 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2528
2528
|
return 0;
|
|
2529
2529
|
}
|
|
2530
2530
|
}, $scope0_id, "m", 1, 1, 1, 0, 1);
|
|
2531
|
-
_html(`</div><div${_attr_class("
|
|
2531
|
+
_html(`</div><div${_attr_class("_dS")}><button${_attr_class([
|
|
2532
2532
|
treeToggle,
|
|
2533
|
-
"
|
|
2534
|
-
{ ["
|
|
2533
|
+
"_dQ",
|
|
2534
|
+
{ ["_dP"]: treeOpen }
|
|
2535
2535
|
])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
2536
2536
|
icon_sidebar_default({ size: 14 });
|
|
2537
|
-
_html(`</button>${_el_resume($scope0_id, "o")}<button${_attr_class([iconBtn$1, "
|
|
2537
|
+
_html(`</button>${_el_resume($scope0_id, "o")}<button${_attr_class([iconBtn$1, "_dQ"])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
2538
2538
|
_set_serialize_reason(1);
|
|
2539
2539
|
const $childScope3 = _peek_scope_id();
|
|
2540
2540
|
icon_refresh_default({
|
|
2541
2541
|
size: 14,
|
|
2542
|
-
class: loading && "
|
|
2542
|
+
class: loading && "_v"
|
|
2543
2543
|
});
|
|
2544
|
-
_html(`</button>${_el_resume($scope0_id, "q")}<button${_attr_class("
|
|
2544
|
+
_html(`</button>${_el_resume($scope0_id, "q")}<button${_attr_class("_eD")} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "t")})</button>${_el_resume($scope0_id, "s")}<div${_attr_class("_ec")} role=group aria-label="Review scope"><button type=button${_attr_class(["_ee", { ["_ed"]: !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(["_ee", { ["_ed"]: 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(["_ef", { ["_ed"]: uncommitted }])} aria-pressed=${uncommitted ? "true" : "false"} title=${uncommitted ? "\"Showing working tree — tap for committed only\"" : "\"Showing committed only — tap to include uncommitted\""}${_attr("disabled", loading)}>${uncommitted ? "Dirty" : "Clean"}${_el_resume($scope0_id, "y")}</button>${_el_resume($scope0_id, "x")}<div${_attr_class(["_d1", { ["_d0"]: !findOpen }])}>`);
|
|
2545
2545
|
_set_serialize_reason(2);
|
|
2546
2546
|
const $childScope4 = _peek_scope_id();
|
|
2547
2547
|
diff_find_default({
|
|
@@ -2558,11 +2558,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2558
2558
|
});
|
|
2559
2559
|
_html(`</div>${_el_resume($scope0_id, "z")}<button${_attr_class([
|
|
2560
2560
|
iconBtn$1,
|
|
2561
|
-
"
|
|
2562
|
-
"
|
|
2561
|
+
"_dZ",
|
|
2562
|
+
"_dQ"
|
|
2563
2563
|
])} title="Find in the review (⌘/Ctrl+F)" aria-label="Find in the review"${_attr("hidden", findOpen)}>`);
|
|
2564
2564
|
icon_search_default({ size: 14 });
|
|
2565
|
-
_html(`</button>${_el_resume($scope0_id, "a1")}</div></div>${_el_resume($scope0_id, "c")}<div${_attr_class("
|
|
2565
|
+
_html(`</button>${_el_resume($scope0_id, "a1")}</div></div>${_el_resume($scope0_id, "c")}<div${_attr_class("_d4")} data-diff-main>`);
|
|
2566
2566
|
_if(() => {
|
|
2567
2567
|
if (error) {
|
|
2568
2568
|
const $scope14_id = _scope_id();
|
|
@@ -2585,7 +2585,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2585
2585
|
_if(() => {
|
|
2586
2586
|
if (!repos && loading) {
|
|
2587
2587
|
const $scope30_id = _scope_id();
|
|
2588
|
-
_html(`<p${_attr_class("
|
|
2588
|
+
_html(`<p${_attr_class("_eC")}>Loading diff…</p>`);
|
|
2589
2589
|
writeScope($scope30_id, {});
|
|
2590
2590
|
return 0;
|
|
2591
2591
|
}
|
|
@@ -2654,7 +2654,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2654
2654
|
action: attrTag({ content: _content_resume("i41", () => {
|
|
2655
2655
|
_scope_reason();
|
|
2656
2656
|
const $scope17_id = _scope_id();
|
|
2657
|
-
_html(`<button${_attr_class("
|
|
2657
|
+
_html(`<button${_attr_class("_f")}${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope17_id, "b")}</button>${_el_resume($scope17_id, "a")}`);
|
|
2658
2658
|
_script($scope17_id, "i40");
|
|
2659
2659
|
_subscribe($loading__closures, writeScope($scope17_id, { _: _scope_with_id($scope16_id) }));
|
|
2660
2660
|
_resume_branch($scope17_id);
|
|
@@ -2662,13 +2662,13 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2662
2662
|
content: _content_resume("i42", () => {
|
|
2663
2663
|
_scope_reason();
|
|
2664
2664
|
const $scope28_id = _scope_id();
|
|
2665
|
-
_html(`<span${_attr_class("
|
|
2665
|
+
_html(`<span${_attr_class("_n")}>`);
|
|
2666
2666
|
_for_of(driftRepos, (repo, i) => {
|
|
2667
2667
|
const $scope31_id = _scope_id();
|
|
2668
2668
|
_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
2669
|
writeScope($scope31_id, {});
|
|
2670
2670
|
}, "id", $scope28_id, "b");
|
|
2671
|
-
_html(` — this view has a newer tip than the PR page.</span><span${_attr_class(["
|
|
2671
|
+
_html(` — this view has a newer tip than the PR page.</span><span${_attr_class(["_o", "_d5"])}>`);
|
|
2672
2672
|
_for_of(driftRepos, (repo, i) => {
|
|
2673
2673
|
const $scope32_id = _scope_id();
|
|
2674
2674
|
_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 +2720,12 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2720
2720
|
_if(() => {
|
|
2721
2721
|
if (repos && !allFiles.length) {
|
|
2722
2722
|
const $scope26_id = _scope_id();
|
|
2723
|
-
_html(`<p${_attr_class("
|
|
2723
|
+
_html(`<p${_attr_class("_eC")}>${repoList.some((r) => r.pr) ? "No file changes on these PRs." : "No changes vs base."}${_el_resume($scope26_id, "b")}</p>`);
|
|
2724
2724
|
writeScope($scope26_id, {});
|
|
2725
2725
|
return 0;
|
|
2726
2726
|
} else if (repos && !shownFiles.length && !findState.hit) {
|
|
2727
2727
|
const $scope18_id = _scope_id();
|
|
2728
|
-
_html(`<p${_attr_class("
|
|
2728
|
+
_html(`<p${_attr_class("_eC")}>${findState.query.trim() ? "No matches in diffs." : `No files match "${_escape(`${fileFilter}`)}".`}${_el_resume($scope18_id, "b")}</p>`);
|
|
2729
2729
|
writeScope($scope18_id, {});
|
|
2730
2730
|
return 1;
|
|
2731
2731
|
}
|
|
@@ -2754,21 +2754,21 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2754
2754
|
_if(() => {
|
|
2755
2755
|
if (repoFiles.length || repo.pr) {
|
|
2756
2756
|
const $scope4_id = _scope_id();
|
|
2757
|
-
_html(`<section${_attr_class("
|
|
2757
|
+
_html(`<section${_attr_class("_eg")}${repo.pr ? _attr("data-pr", `${repo.worktree}/${repo.pr.number}`) : ""}${_attr("hidden", !shownInRepo.length && !repo.pr && findState.hit?.repo !== repo.id)}>`);
|
|
2758
2758
|
_if(() => {
|
|
2759
2759
|
if (repoList.length > 1) {
|
|
2760
2760
|
const $scope5_id = _scope_id();
|
|
2761
2761
|
const repoCollapsed = collapsedRepos.has(repo.id);
|
|
2762
2762
|
const repoExpanding = expandingRepos.has(repo.id);
|
|
2763
|
-
_html(`<button type=button${_attr_class(["
|
|
2764
|
-
"
|
|
2765
|
-
!repoCollapsed && "
|
|
2766
|
-
repoExpanding && "
|
|
2763
|
+
_html(`<button type=button${_attr_class(["_eh", repoCollapsed && "_ei"])} 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([
|
|
2764
|
+
"_ex",
|
|
2765
|
+
!repoCollapsed && "_ey",
|
|
2766
|
+
repoExpanding && "_ez"
|
|
2767
2767
|
])} 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
2768
|
_if(() => {
|
|
2769
2769
|
if (repo.pr) {
|
|
2770
2770
|
const $scope33_id = _scope_id();
|
|
2771
|
-
_html(`<a${_attr_class(["
|
|
2771
|
+
_html(`<a${_attr_class(["_j", "_l"])}${_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
2772
|
_script($scope33_id, "i44");
|
|
2773
2773
|
_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
2774
|
Ca4: 2,
|
|
@@ -2785,11 +2785,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2785
2785
|
}
|
|
2786
2786
|
}, $scope5_id, "f");
|
|
2787
2787
|
const compare$1 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch || "", input.workspaceName || "");
|
|
2788
|
-
_html(`<span${_attr_class("
|
|
2788
|
+
_html(`<span${_attr_class("_en")}${_attr("title", `${compare$1.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class("_eo")}>${_escape(compare$1.base)}${_el_resume($scope5_id, "i")}</span><span${_attr_class("_eq")} aria-hidden=true>vs</span><span${_attr_class("_ep")}>${_escape(compare$1.head)}${_el_resume($scope5_id, "l")}</span>`);
|
|
2789
2789
|
_if(() => {
|
|
2790
2790
|
if (compare$1.topic) {
|
|
2791
2791
|
const $scope36_id = _scope_id();
|
|
2792
|
-
_html(`<span${_attr_class("
|
|
2792
|
+
_html(`<span${_attr_class("_er")}>${_escape(compare$1.topic)}${_el_resume($scope36_id, "b")}</span>`);
|
|
2793
2793
|
writeScope($scope36_id, {});
|
|
2794
2794
|
return 0;
|
|
2795
2795
|
}
|
|
@@ -2798,7 +2798,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2798
2798
|
_if(() => {
|
|
2799
2799
|
if (localDifferIds.has(repo.id)) {
|
|
2800
2800
|
const $scope6_id = _scope_id();
|
|
2801
|
-
_html(`<span${_attr_class("
|
|
2801
|
+
_html(`<span${_attr_class("_j")}${_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
2802
|
_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
2803
|
Cdo: $si__input_workspaceBranch && 1,
|
|
2804
2804
|
Cdp: $si__input_workspaceName && 1,
|
|
@@ -2807,7 +2807,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2807
2807
|
return 0;
|
|
2808
2808
|
}
|
|
2809
2809
|
}, $scope5_id, "n", 1, 1, 1, 0, 1);
|
|
2810
|
-
_html(`<span${_attr_class("
|
|
2810
|
+
_html(`<span${_attr_class("_ek")}>${_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
2811
|
_script($scope5_id, "i45");
|
|
2812
2812
|
_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
2813
|
r: repoCollapsed,
|
|
@@ -2818,11 +2818,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2818
2818
|
return 0;
|
|
2819
2819
|
} else {
|
|
2820
2820
|
const $scope7_id = _scope_id();
|
|
2821
|
-
_html(`<p${_attr_class("
|
|
2821
|
+
_html(`<p${_attr_class("_em")}>`);
|
|
2822
2822
|
_if(() => {
|
|
2823
2823
|
if (repo.pr) {
|
|
2824
2824
|
const $scope35_id = _scope_id();
|
|
2825
|
-
_html(`<a${_attr_class(["
|
|
2825
|
+
_html(`<a${_attr_class(["_j", "_l"])}${_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("_n")}>${_escape(repo.pr.title)}${_el_resume($scope35_id, "d")}</span>`);
|
|
2826
2826
|
_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
2827
|
Ca1: 1,
|
|
2828
2828
|
Ca2: 1,
|
|
@@ -2836,11 +2836,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2836
2836
|
}
|
|
2837
2837
|
}, $scope7_id, "b");
|
|
2838
2838
|
const compare$2 = reviewCompareLabel(repo.pr?.baseRefName || repo.base, repo.pr?.headRefName || repo.branch, input.workspaceBranch || "", input.workspaceName || "");
|
|
2839
|
-
_html(`<span${_attr_class("
|
|
2839
|
+
_html(`<span${_attr_class("_en")}${_attr("title", `${compare$2.title} · ${repo.head.slice(0, 7)}…${repo.baseSha.slice(0, 7)}`)}><span${_attr_class("_eo")}>${_escape(compare$2.base)}${_el_resume($scope7_id, "e")}</span><span${_attr_class("_eq")} aria-hidden=true>vs</span><span${_attr_class("_ep")}>${_escape(compare$2.head)}${_el_resume($scope7_id, "h")}</span>`);
|
|
2840
2840
|
_if(() => {
|
|
2841
2841
|
if (compare$2.topic) {
|
|
2842
2842
|
const $scope37_id = _scope_id();
|
|
2843
|
-
_html(`<span${_attr_class("
|
|
2843
|
+
_html(`<span${_attr_class("_er")}>${_escape(compare$2.topic)}${_el_resume($scope37_id, "b")}</span>`);
|
|
2844
2844
|
writeScope($scope37_id, {});
|
|
2845
2845
|
return 0;
|
|
2846
2846
|
}
|
|
@@ -2849,7 +2849,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2849
2849
|
_if(() => {
|
|
2850
2850
|
if (localDifferIds.has(repo.id)) {
|
|
2851
2851
|
const $scope8_id = _scope_id();
|
|
2852
|
-
_html(`<span${_attr_class("
|
|
2852
|
+
_html(`<span${_attr_class("_j")}${_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
2853
|
_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
2854
|
Cdo: $si__input_workspaceBranch && 3,
|
|
2855
2855
|
Cdp: $si__input_workspaceName && 3,
|
|
@@ -2882,7 +2882,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2882
2882
|
const $scope9_id = _scope_id();
|
|
2883
2883
|
const $show = repoList.length === 1 || !collapsedRepos.has(repo.id);
|
|
2884
2884
|
_show_start($show);
|
|
2885
|
-
_html(`<div${_attr_class("
|
|
2885
|
+
_html(`<div${_attr_class("_es")}>`);
|
|
2886
2886
|
_for_of(repoFiles, (file$1) => {
|
|
2887
2887
|
const $scope10_id = _scope_id();
|
|
2888
2888
|
const $for_content2__file__closures = /* @__PURE__ */ new Set();
|
|
@@ -2890,11 +2890,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2890
2890
|
const $for_content2__fileComments__closures = /* @__PURE__ */ new Set();
|
|
2891
2891
|
const fileComments = commentsByFile.get(file$1.key) || [];
|
|
2892
2892
|
let expanded = true;
|
|
2893
|
-
_html(`<details${_attr_details_or_dialog_open($scope10_id, "a", expanded)}${_attr_class(["
|
|
2893
|
+
_html(`<details${_attr_details_or_dialog_open($scope10_id, "a", expanded)}${_attr_class(["_et", findState.hit?.key === file$1.key && "_d2"])}${_attr("data-key", file$1.key)}${_attr("hidden", !shownKeySet.has(file$1.key))}><summary${_attr_class("_ev")}><span${_attr_class("_eA")}${_attr("data-status", file$1.status)}>${_escape(file$1.status)}${_el_resume($scope10_id, "d")}</span>${_el_resume($scope10_id, "c")}<span${_attr_class(["_eB", findState.hit?.key === file$1.key && findState.hit.line < 1 && "_d3"])}${_attr("title", file$1.path)}><bdi>${_escape(file$1.path)}${_el_resume($scope10_id, "f")}</bdi></span>${_el_resume($scope10_id, "e")}`);
|
|
2894
2894
|
_if(() => {
|
|
2895
2895
|
if (fileComments.length) {
|
|
2896
2896
|
const $scope38_id = _scope_id();
|
|
2897
|
-
_html(`<span${_attr_class("
|
|
2897
|
+
_html(`<span${_attr_class("_j")}>💬 <!>${_escape(fileComments.length)}${_el_resume($scope38_id, "b")}</span>`);
|
|
2898
2898
|
writeScope($scope38_id, {});
|
|
2899
2899
|
return 0;
|
|
2900
2900
|
}
|
|
@@ -2903,17 +2903,17 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2903
2903
|
_if(() => {
|
|
2904
2904
|
if (file$1.binary) {
|
|
2905
2905
|
const $scope39_id = _scope_id();
|
|
2906
|
-
_html(`<p${_attr_class(["
|
|
2906
|
+
_html(`<p${_attr_class(["_eE", "_eu"])}>binary file</p>`);
|
|
2907
2907
|
writeScope($scope39_id, {});
|
|
2908
2908
|
return 0;
|
|
2909
2909
|
} else if (file$1.tooLarge) {
|
|
2910
2910
|
const $scope40_id = _scope_id();
|
|
2911
|
-
_html(`<p${_attr_class(["
|
|
2911
|
+
_html(`<p${_attr_class(["_eE", "_eu"])}>file too large to display</p>`);
|
|
2912
2912
|
writeScope($scope40_id, {});
|
|
2913
2913
|
return 1;
|
|
2914
2914
|
} else if (file$1.old == null && file$1.new == null) {
|
|
2915
2915
|
const $scope41_id = _scope_id();
|
|
2916
|
-
_html(`<p${_attr_class(["
|
|
2916
|
+
_html(`<p${_attr_class(["_eE", "_eu"])}>file could not be read</p>`);
|
|
2917
2917
|
writeScope($scope41_id, {});
|
|
2918
2918
|
return 2;
|
|
2919
2919
|
} else {
|
|
@@ -2923,7 +2923,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2923
2923
|
_if(() => {
|
|
2924
2924
|
if (!forceNear) {
|
|
2925
2925
|
const $scope25_id = _scope_id();
|
|
2926
|
-
_html(`<div${_attr_class(["
|
|
2926
|
+
_html(`<div${_attr_class(["_ew", "_eu"])}></div>${_el_resume($scope25_id, "a")}`);
|
|
2927
2927
|
_script($scope25_id, "i46");
|
|
2928
2928
|
writeScope($scope25_id, {});
|
|
2929
2929
|
return 0;
|
|
@@ -2931,7 +2931,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
2931
2931
|
const $scope12_id = _scope_id();
|
|
2932
2932
|
const $childScope9 = _peek_scope_id();
|
|
2933
2933
|
diff_file_default({
|
|
2934
|
-
class: "
|
|
2934
|
+
class: "_eu",
|
|
2935
2935
|
file: file$1,
|
|
2936
2936
|
comments: fileComments,
|
|
2937
2937
|
draft: draft && draft.key === file$1.key ? draft : null,
|
|
@@ -1981,23 +1981,23 @@ function toObjectExpression(options) {
|
|
|
1981
1981
|
return result + "}";
|
|
1982
1982
|
}
|
|
1983
1983
|
var phase = {
|
|
1984
|
-
working: "
|
|
1985
|
-
waiting: "
|
|
1986
|
-
idle: "
|
|
1987
|
-
off: "
|
|
1984
|
+
working: "_r",
|
|
1985
|
+
waiting: "_s",
|
|
1986
|
+
idle: "_t",
|
|
1987
|
+
off: "_u"
|
|
1988
1988
|
};
|
|
1989
|
-
var btnSm = "
|
|
1989
|
+
var btnSm = "_x _f";
|
|
1990
1990
|
var toastKind = {
|
|
1991
|
-
error: "
|
|
1992
|
-
warn: "
|
|
1993
|
-
info: "
|
|
1991
|
+
error: "_Q",
|
|
1992
|
+
warn: "_R",
|
|
1993
|
+
info: "_S"
|
|
1994
1994
|
};
|
|
1995
1995
|
var toastTitle = {
|
|
1996
|
-
error: "
|
|
1997
|
-
warn: "
|
|
1998
|
-
info: "
|
|
1996
|
+
error: "_T",
|
|
1997
|
+
warn: "_U",
|
|
1998
|
+
info: "_V"
|
|
1999
1999
|
};
|
|
2000
|
-
var toastDismiss = "
|
|
2000
|
+
var toastDismiss = "_Z _M";
|
|
2001
2001
|
//#endregion
|
|
2002
2002
|
//#region src/tags/toast.marko
|
|
2003
2003
|
var toast_default = _template("w", (input) => {
|
|
@@ -2008,18 +2008,18 @@ var toast_default = _template("w", (input) => {
|
|
|
2008
2008
|
const kind = inputKind || "error";
|
|
2009
2009
|
const placement = inputPlacement || "float";
|
|
2010
2010
|
const placementClass = {
|
|
2011
|
-
float: "
|
|
2012
|
-
inline: "
|
|
2011
|
+
float: "_O",
|
|
2012
|
+
inline: "_P"
|
|
2013
2013
|
}[placement];
|
|
2014
2014
|
_html(`<div${_attr_class([
|
|
2015
|
-
"
|
|
2015
|
+
"_N",
|
|
2016
2016
|
toastKind[kind],
|
|
2017
2017
|
placementClass,
|
|
2018
2018
|
inputClass
|
|
2019
2019
|
])} role=${kind === "error" ? "alert" : "status"}${_attrs_partial(htmlInput, {
|
|
2020
2020
|
class: 1,
|
|
2021
2021
|
role: 1
|
|
2022
|
-
}, "a", $scope0_id, "div")}><div${_attr_class("
|
|
2022
|
+
}, "a", $scope0_id, "div")}><div${_attr_class("_W")}>`);
|
|
2023
2023
|
_if(() => {
|
|
2024
2024
|
if (title) {
|
|
2025
2025
|
const $scope1_id = _scope_id();
|
|
@@ -2031,7 +2031,7 @@ var toast_default = _template("w", (input) => {
|
|
|
2031
2031
|
_if(() => {
|
|
2032
2032
|
if (content) {
|
|
2033
2033
|
const $scope2_id = _scope_id();
|
|
2034
|
-
_html(`<div${_attr_class("
|
|
2034
|
+
_html(`<div${_attr_class("_X")}>`);
|
|
2035
2035
|
_dynamic_tag($scope2_id, "b", content, {}, 0, 0, $sg__input_content);
|
|
2036
2036
|
_html("</div>");
|
|
2037
2037
|
$si__input_content && writeScope($scope2_id, { _: _scope_with_id($scope0_id) });
|
|
@@ -2042,7 +2042,7 @@ var toast_default = _template("w", (input) => {
|
|
|
2042
2042
|
_if(() => {
|
|
2043
2043
|
if (action || onDismiss) {
|
|
2044
2044
|
const $scope3_id = _scope_id();
|
|
2045
|
-
_html(`<div${_attr_class("
|
|
2045
|
+
_html(`<div${_attr_class("_Y")}>`);
|
|
2046
2046
|
_if(() => {
|
|
2047
2047
|
if (action) {
|
|
2048
2048
|
const $scope4_id = _scope_id();
|
|
@@ -2088,7 +2088,7 @@ var icon_base_default = _template("B", (input) => {
|
|
|
2088
2088
|
const $scope0_reason = _scope_reason();
|
|
2089
2089
|
const $scope0_id = _scope_id();
|
|
2090
2090
|
const size = input.size ?? 15;
|
|
2091
|
-
_html(`<svg${_attr_class(["
|
|
2091
|
+
_html(`<svg${_attr_class(["_b", input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=none stroke=currentColor stroke-width=1.5 stroke-linecap=round stroke-linejoin=round aria-hidden=true><path${_attr("d", input.d)}></path>${_el_resume($scope0_id, "b", _serialize_guard($scope0_reason, 2))}</svg>${_el_resume($scope0_id, "a", _serialize_guard($scope0_reason, 0))}`);
|
|
2092
2092
|
_serialize_if($scope0_reason, 1) && writeScope($scope0_id, {});
|
|
2093
2093
|
});
|
|
2094
2094
|
//#endregion
|
|
@@ -2210,8 +2210,8 @@ var icon_sidebar_default = _template("R", (input) => {
|
|
|
2210
2210
|
});
|
|
2211
2211
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
2212
2212
|
});
|
|
2213
|
-
var findInput = "
|
|
2214
|
-
var findIconBtn = "
|
|
2213
|
+
var findInput = "_fn _c";
|
|
2214
|
+
var findIconBtn = "_fq _M";
|
|
2215
2215
|
//#endregion
|
|
2216
2216
|
//#region src/tags/icons/icon-search.marko
|
|
2217
2217
|
var icon_search_default = _template("O", (input) => {
|