@dylanpiercey/work 0.0.28 → 0.0.29
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/index.mjs +667 -574
- package/dist/public/assets/{_CHLq34up.js → _5wqShEIs.js} +2 -2
- package/dist/public/assets/{_CHLq34up.js.map → _5wqShEIs.js.map} +1 -1
- package/dist/public/assets/{_iFGGC9pM2.js → _ANnRbKMv2.js} +2 -2
- package/dist/public/assets/{_iFGGC9pM2.js.map → _ANnRbKMv2.js.map} +1 -1
- package/dist/public/assets/{_CYvarg9W.js → _B-md618h.js} +2 -2
- package/dist/public/assets/{_CYvarg9W.js.map → _B-md618h.js.map} +1 -1
- package/dist/public/assets/{_DcATy5r-.js → _B4jaVfiC.js} +2 -2
- package/dist/public/assets/{_DcATy5r-.js.map → _B4jaVfiC.js.map} +1 -1
- package/dist/public/assets/{_ByVz1pEI2.js → _BEZoT-lQ2.js} +2 -2
- package/dist/public/assets/{_ByVz1pEI2.js.map → _BEZoT-lQ2.js.map} +1 -1
- package/dist/public/assets/{_DJ1rqVCG.js → _BFpKuU9-.js} +2 -2
- package/dist/public/assets/{_DJ1rqVCG.js.map → _BFpKuU9-.js.map} +1 -1
- package/dist/public/assets/{_CE1QtCTP.js → _BPWp6fBn.js} +2 -2
- package/dist/public/assets/{_CE1QtCTP.js.map → _BPWp6fBn.js.map} +1 -1
- package/dist/public/assets/{_txg_BrbE2.js → _BPvsQ3702.js} +2 -2
- package/dist/public/assets/{_txg_BrbE2.js.map → _BPvsQ3702.js.map} +1 -1
- package/dist/public/assets/{_zSSacvcn.js → _BRrypzqV.js} +2 -2
- package/dist/public/assets/{_zSSacvcn.js.map → _BRrypzqV.js.map} +1 -1
- package/dist/public/assets/{_CpUOMlac.js → _BTEiQKEx.js} +2 -2
- package/dist/public/assets/{_CpUOMlac.js.map → _BTEiQKEx.js.map} +1 -1
- package/dist/public/assets/{_599s_mPO.js → _BTqpL6Dh.js} +2 -2
- package/dist/public/assets/{_599s_mPO.js.map → _BTqpL6Dh.js.map} +1 -1
- package/dist/public/assets/{_DA2HAsmL.js → _BXDWITRA.js} +2 -2
- package/dist/public/assets/{_DA2HAsmL.js.map → _BXDWITRA.js.map} +1 -1
- package/dist/public/assets/{_DI0WPTfJ.js → _BnXA9Q5e.js} +2 -2
- package/dist/public/assets/{_DI0WPTfJ.js.map → _BnXA9Q5e.js.map} +1 -1
- package/dist/public/assets/{_CMGOcqMA2.js → _Bo0_3MZu2.js} +2 -2
- package/dist/public/assets/{_CMGOcqMA2.js.map → _Bo0_3MZu2.js.map} +1 -1
- package/dist/public/assets/{_CCxovD8F2.js → _Bo4C64RX2.js} +2 -2
- package/dist/public/assets/{_CCxovD8F2.js.map → _Bo4C64RX2.js.map} +1 -1
- package/dist/public/assets/{_Zlv_lPYo2.js → _BvAGWuTb2.js} +2 -2
- package/dist/public/assets/{_Zlv_lPYo2.js.map → _BvAGWuTb2.js.map} +1 -1
- package/dist/public/assets/{_CwmqjsDb.js → _BvkbcIIo.js} +2 -2
- package/dist/public/assets/{_CwmqjsDb.js.map → _BvkbcIIo.js.map} +1 -1
- package/dist/public/assets/{_doUtVqO32.js → _BxAiy-tB2.js} +2 -2
- package/dist/public/assets/{_doUtVqO32.js.map → _BxAiy-tB2.js.map} +1 -1
- package/dist/public/assets/{_DDFWuRVz2.js → _C-KhnD2W2.js} +2 -2
- package/dist/public/assets/{_DDFWuRVz2.js.map → _C-KhnD2W2.js.map} +1 -1
- package/dist/public/assets/{_BEA0rtsf.js → _C4686gRz.js} +2 -2
- package/dist/public/assets/{_BEA0rtsf.js.map → _C4686gRz.js.map} +1 -1
- package/dist/public/assets/{_BX-1MhYY.js → _CDm5yykT.js} +2 -2
- package/dist/public/assets/{_BX-1MhYY.js.map → _CDm5yykT.js.map} +1 -1
- package/dist/public/assets/{_D6mnVZvL.js → _CDrAMbOx.js} +2 -2
- package/dist/public/assets/{_D6mnVZvL.js.map → _CDrAMbOx.js.map} +1 -1
- package/dist/public/assets/{_B1jQI_MS.js → _CIIlT1Ao.js} +2 -2
- package/dist/public/assets/{_B1jQI_MS.js.map → _CIIlT1Ao.js.map} +1 -1
- package/dist/public/assets/{_DdqCKkdW.js → _CMoPhXL1.js} +2 -2
- package/dist/public/assets/{_DdqCKkdW.js.map → _CMoPhXL1.js.map} +1 -1
- package/dist/public/assets/{_DNtDpT7J2.js → _CSAxgyMX2.js} +2 -2
- package/dist/public/assets/{_DNtDpT7J2.js.map → _CSAxgyMX2.js.map} +1 -1
- package/dist/public/assets/{_8z_taKm3.js → _CVbP1YVj.js} +2 -2
- package/dist/public/assets/{_8z_taKm3.js.map → _CVbP1YVj.js.map} +1 -1
- package/dist/public/assets/{_DVlxgdsm.js → _CWpYMWx4.js} +2 -2
- package/dist/public/assets/{_DVlxgdsm.js.map → _CWpYMWx4.js.map} +1 -1
- package/dist/public/assets/{_Cp-Aarc52.js → _CZfo35Vw2.js} +2 -2
- package/dist/public/assets/{_Cp-Aarc52.js.map → _CZfo35Vw2.js.map} +1 -1
- package/dist/public/assets/{_ByJ8bIho.js → _CZzzQRrT.js} +2 -2
- package/dist/public/assets/{_ByJ8bIho.js.map → _CZzzQRrT.js.map} +1 -1
- package/dist/public/assets/{_DTfT-sFF2.js → _Ce-1mT8m2.js} +2 -2
- package/dist/public/assets/{_DTfT-sFF2.js.map → _Ce-1mT8m2.js.map} +1 -1
- package/dist/public/assets/{_xYLJb0_42.js → _CeZFRFaB2.js} +2 -2
- package/dist/public/assets/{_xYLJb0_42.js.map → _CeZFRFaB2.js.map} +1 -1
- package/dist/public/assets/{_CYIktEVH.js → _CfA1ZlGI.js} +2 -2
- package/dist/public/assets/{_CYIktEVH.js.map → _CfA1ZlGI.js.map} +1 -1
- package/dist/public/assets/{_C1uLH64z2.js → _CgABKnF12.js} +2 -2
- package/dist/public/assets/{_C1uLH64z2.js.map → _CgABKnF12.js.map} +1 -1
- package/dist/public/assets/{_DNYpQ8c_2.js → _CgIBghdc2.js} +2 -2
- package/dist/public/assets/{_DNYpQ8c_2.js.map → _CgIBghdc2.js.map} +1 -1
- package/dist/public/assets/{_BG98a-Bd.js → _CjF7EQzT.js} +2 -2
- package/dist/public/assets/{_BG98a-Bd.js.map → _CjF7EQzT.js.map} +1 -1
- package/dist/public/assets/{_WrsJ1SVx.js → _CkHWwxgl.js} +2 -2
- package/dist/public/assets/{_WrsJ1SVx.js.map → _CkHWwxgl.js.map} +1 -1
- package/dist/public/assets/{_Djl1TRVn.js → _CkUmWbmE.js} +2 -2
- package/dist/public/assets/{_Djl1TRVn.js.map → _CkUmWbmE.js.map} +1 -1
- package/dist/public/assets/{_Cz_1vtBu.js → _ClsKLHvf.js} +2 -2
- package/dist/public/assets/{_Cz_1vtBu.js.map → _ClsKLHvf.js.map} +1 -1
- package/dist/public/assets/{_BkCe1Qp0.js → _CrIYKuRx.js} +2 -2
- package/dist/public/assets/{_BkCe1Qp0.js.map → _CrIYKuRx.js.map} +1 -1
- package/dist/public/assets/{_Ccm3rKVf.js → _CyQXd1fg.js} +2 -2
- package/dist/public/assets/{_Ccm3rKVf.js.map → _CyQXd1fg.js.map} +1 -1
- package/dist/public/assets/{_NVM5qbq7.js → _CzBgLmxH.js} +2 -2
- package/dist/public/assets/{_NVM5qbq7.js.map → _CzBgLmxH.js.map} +1 -1
- package/dist/public/assets/{_DWHvByuS.js → _D-vhwirZ.js} +2 -2
- package/dist/public/assets/{_DWHvByuS.js.map → _D-vhwirZ.js.map} +1 -1
- package/dist/public/assets/{_BHXWNTj72.js → _D0k-pe5P2.js} +2 -2
- package/dist/public/assets/{_BHXWNTj72.js.map → _D0k-pe5P2.js.map} +1 -1
- package/dist/public/assets/{_C1v_RN4j.js → _D4hqaNhl.js} +2 -2
- package/dist/public/assets/{_C1v_RN4j.js.map → _D4hqaNhl.js.map} +1 -1
- package/dist/public/assets/{_BIZVez4e2.js → _D5XedMwX2.js} +2 -2
- package/dist/public/assets/{_BIZVez4e2.js.map → _D5XedMwX2.js.map} +1 -1
- package/dist/public/assets/{_CwjXbHzo.js → _D8jHqc0y.js} +2 -2
- package/dist/public/assets/{_CwjXbHzo.js.map → _D8jHqc0y.js.map} +1 -1
- package/dist/public/assets/{_7EfSt1VP.js → _DEaHsCO4.js} +2 -2
- package/dist/public/assets/{_7EfSt1VP.js.map → _DEaHsCO4.js.map} +1 -1
- package/dist/public/assets/{_DHNkWyG72.js → _DNLrg0e02.js} +2 -2
- package/dist/public/assets/{_DHNkWyG72.js.map → _DNLrg0e02.js.map} +1 -1
- package/dist/public/assets/{_DVszDPmx.js → _DVXkpt3_.js} +2 -2
- package/dist/public/assets/{_DVszDPmx.js.map → _DVXkpt3_.js.map} +1 -1
- package/dist/public/assets/{_D2PHPuf-.js → _DWlD2wpr.js} +2 -2
- package/dist/public/assets/{_D2PHPuf-.js.map → _DWlD2wpr.js.map} +1 -1
- package/dist/public/assets/{_Br-vX1Tu.js → _DcKAXouy.js} +2 -2
- package/dist/public/assets/{_Br-vX1Tu.js.map → _DcKAXouy.js.map} +1 -1
- package/dist/public/assets/{_DwJU6EeU.js → _DetTNNVt.js} +2 -2
- package/dist/public/assets/{_DwJU6EeU.js.map → _DetTNNVt.js.map} +1 -1
- package/dist/public/assets/{_CqfjUWNC.js → _DndAtJ5x.js} +2 -2
- package/dist/public/assets/{_CqfjUWNC.js.map → _DndAtJ5x.js.map} +1 -1
- package/dist/public/assets/{_yvxe882E.js → _DoXixOdA.js} +2 -2
- package/dist/public/assets/{_yvxe882E.js.map → _DoXixOdA.js.map} +1 -1
- package/dist/public/assets/{_C2awCEWl.js → _DojePfia.js} +2 -2
- package/dist/public/assets/{_C2awCEWl.js.map → _DojePfia.js.map} +1 -1
- package/dist/public/assets/{_CQW9g4EM.js → _DsdJBgxV.js} +2 -2
- package/dist/public/assets/{_CQW9g4EM.js.map → _DsdJBgxV.js.map} +1 -1
- package/dist/public/assets/{_afjtTIwy.js → _DuyTq3Lg.js} +2 -2
- package/dist/public/assets/{_afjtTIwy.js.map → _DuyTq3Lg.js.map} +1 -1
- package/dist/public/assets/{_Bg_ZrvlF.js → _Dz46WqrA.js} +2 -2
- package/dist/public/assets/{_Bg_ZrvlF.js.map → _Dz46WqrA.js.map} +1 -1
- package/dist/public/assets/{_BkYaxto4.js → _Hq_blGcS.js} +2 -2
- package/dist/public/assets/{_BkYaxto4.js.map → _Hq_blGcS.js.map} +1 -1
- package/dist/public/assets/{_CK7dNIXj2.js → _IM1Tdnwx2.js} +2 -2
- package/dist/public/assets/{_CK7dNIXj2.js.map → _IM1Tdnwx2.js.map} +1 -1
- package/dist/public/assets/{_B1j_sdSo.js → _KLw5Y7C_.js} +2 -2
- package/dist/public/assets/{_B1j_sdSo.js.map → _KLw5Y7C_.js.map} +1 -1
- package/dist/public/assets/{_CiA4dPfT2.js → _NLH9UKDf2.js} +2 -2
- package/dist/public/assets/{_CiA4dPfT2.js.map → _NLH9UKDf2.js.map} +1 -1
- package/dist/public/assets/{_BF0cJ2cO2.js → _XF_hNlTi2.js} +2 -2
- package/dist/public/assets/{_BF0cJ2cO2.js.map → _XF_hNlTi2.js.map} +1 -1
- package/dist/public/assets/{_JVRw7xKf.js → _XvtGAraC.js} +2 -2
- package/dist/public/assets/{_JVRw7xKf.js.map → _XvtGAraC.js.map} +1 -1
- package/dist/public/assets/{_DB4u0VFp.js → _Y_Md9hCf.js} +2 -2
- package/dist/public/assets/{_DB4u0VFp.js.map → _Y_Md9hCf.js.map} +1 -1
- package/dist/public/assets/{_DZxfPQXv.js → __N2LGnn6.js} +2 -2
- package/dist/public/assets/{_DZxfPQXv.js.map → __N2LGnn6.js.map} +1 -1
- package/dist/public/assets/{_DmYu9jHv.js → _f8ofWW7F.js} +2 -2
- package/dist/public/assets/{_DmYu9jHv.js.map → _f8ofWW7F.js.map} +1 -1
- package/dist/public/assets/{_DPSelcsm.js → _lG-O9gQl.js} +2 -2
- package/dist/public/assets/{_DPSelcsm.js.map → _lG-O9gQl.js.map} +1 -1
- package/dist/public/assets/{_DWKZhwbB.js → _n3-RJ1mV.js} +2 -2
- package/dist/public/assets/{_DWKZhwbB.js.map → _n3-RJ1mV.js.map} +1 -1
- package/dist/public/assets/{_BTLEtyOE2.js → _ns44AsUv2.js} +2 -2
- package/dist/public/assets/{_BTLEtyOE2.js.map → _ns44AsUv2.js.map} +1 -1
- package/dist/public/assets/{_CNdGjx_J2.js → _pKYKU8Un2.js} +2 -2
- package/dist/public/assets/{_CNdGjx_J2.js.map → _pKYKU8Un2.js.map} +1 -1
- package/dist/public/assets/{_Q4XgVPG6.js → _qxqv4rXp.js} +2 -2
- package/dist/public/assets/{_Q4XgVPG6.js.map → _qxqv4rXp.js.map} +1 -1
- package/dist/public/assets/{_DPt_dOB32.js → _wxerRXmK2.js} +2 -2
- package/dist/public/assets/{_DPt_dOB32.js.map → _wxerRXmK2.js.map} +1 -1
- package/dist/public/assets/{_Km9UGEJN2.js → _yV1heClt2.js} +2 -2
- package/dist/public/assets/{_Km9UGEJN2.js.map → _yV1heClt2.js.map} +1 -1
- package/dist/public/assets/index-VPYPWUm_.css +1 -0
- package/dist/public/assets/index-pLVmiFRS.js +1615 -0
- package/dist/public/assets/index-pLVmiFRS.js.map +1 -0
- package/package.json +1 -1
- package/dist/public/assets/index-BWFFuQvr.css +0 -1
- package/dist/public/assets/index-DZa_eHPR.js +0 -1615
- package/dist/public/assets/index-DZa_eHPR.js.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -10711,7 +10711,31 @@ var _layout_default = _template("a", (input) => {
|
|
|
10711
10711
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, {});
|
|
10712
10712
|
}, 1);
|
|
10713
10713
|
var page_module_default = { boot: "_a" };
|
|
10714
|
-
var
|
|
10714
|
+
var ui_module_default = {
|
|
10715
|
+
icon: "_b",
|
|
10716
|
+
btn: "_c",
|
|
10717
|
+
primary: "_d",
|
|
10718
|
+
danger: "_e",
|
|
10719
|
+
armed: "_f",
|
|
10720
|
+
chip: "_g",
|
|
10721
|
+
lane: "_h",
|
|
10722
|
+
pr: "_i",
|
|
10723
|
+
draft: "_j",
|
|
10724
|
+
dim: "_k",
|
|
10725
|
+
mono: "_l",
|
|
10726
|
+
spacer: "_m",
|
|
10727
|
+
dot: "_n",
|
|
10728
|
+
working: "_o",
|
|
10729
|
+
waiting: "_p",
|
|
10730
|
+
idle: "_q",
|
|
10731
|
+
off: "_r",
|
|
10732
|
+
splitBtn: "_s",
|
|
10733
|
+
splitPrimary: "_t _s",
|
|
10734
|
+
splitGrow: "_u",
|
|
10735
|
+
spin: "_v",
|
|
10736
|
+
workSpin: "_w"
|
|
10737
|
+
};
|
|
10738
|
+
var page_boot_module_default = { root: "_x" };
|
|
10715
10739
|
var bus = new EventTarget();
|
|
10716
10740
|
function requestDiff(workspaceId, pr) {
|
|
10717
10741
|
bus.dispatchEvent(new Event("intent"));
|
|
@@ -10743,17 +10767,17 @@ function coalesce(fn) {
|
|
|
10743
10767
|
};
|
|
10744
10768
|
}
|
|
10745
10769
|
var toast_module_default = {
|
|
10746
|
-
toast: "
|
|
10747
|
-
toastFloat: "
|
|
10748
|
-
toastInline: "
|
|
10749
|
-
toastError: "
|
|
10750
|
-
toastTitle: "
|
|
10751
|
-
toastWarn: "
|
|
10752
|
-
toastInfo: "
|
|
10753
|
-
toastBody: "
|
|
10754
|
-
toastContent: "
|
|
10755
|
-
toastActions: "
|
|
10756
|
-
toastDismiss: "
|
|
10770
|
+
toast: "_y",
|
|
10771
|
+
toastFloat: "_z",
|
|
10772
|
+
toastInline: "_A",
|
|
10773
|
+
toastError: "_B",
|
|
10774
|
+
toastTitle: "_C",
|
|
10775
|
+
toastWarn: "_D",
|
|
10776
|
+
toastInfo: "_E",
|
|
10777
|
+
toastBody: "_F",
|
|
10778
|
+
toastContent: "_G",
|
|
10779
|
+
toastActions: "_H",
|
|
10780
|
+
toastDismiss: "_I _bQ"
|
|
10757
10781
|
};
|
|
10758
10782
|
//#endregion
|
|
10759
10783
|
//#region src/tags/toast.marko
|
|
@@ -10897,25 +10921,27 @@ function sessionPhase(state) {
|
|
|
10897
10921
|
return state?.phase === "working" ? "working" : state?.phase === "waiting" ? "waiting" : state?.alive ? "idle" : "off";
|
|
10898
10922
|
}
|
|
10899
10923
|
var palette_module_default = {
|
|
10900
|
-
paletteBackdrop: "
|
|
10901
|
-
|
|
10902
|
-
|
|
10903
|
-
|
|
10904
|
-
|
|
10905
|
-
|
|
10906
|
-
|
|
10907
|
-
|
|
10908
|
-
|
|
10909
|
-
|
|
10910
|
-
|
|
10911
|
-
|
|
10912
|
-
|
|
10913
|
-
|
|
10914
|
-
|
|
10915
|
-
|
|
10916
|
-
|
|
10917
|
-
|
|
10918
|
-
|
|
10924
|
+
paletteBackdrop: "_bd",
|
|
10925
|
+
palette: "_be",
|
|
10926
|
+
inline: "_bf",
|
|
10927
|
+
rows: "_bg",
|
|
10928
|
+
rowWrap: "_bh",
|
|
10929
|
+
row: "_bi",
|
|
10930
|
+
rowMore: "_bj",
|
|
10931
|
+
hi: "_bk",
|
|
10932
|
+
archived: "_bl",
|
|
10933
|
+
cmdRow: "_bm",
|
|
10934
|
+
onboard: "_bn",
|
|
10935
|
+
rowName: "_bo",
|
|
10936
|
+
rowNameText: "_bp",
|
|
10937
|
+
rowStats: "_bq",
|
|
10938
|
+
open: "_br",
|
|
10939
|
+
stat: "_bs",
|
|
10940
|
+
rowRepos: "_bt",
|
|
10941
|
+
paletteFoot: "_bu",
|
|
10942
|
+
hint: "_bv",
|
|
10943
|
+
archivedLink: "_bw",
|
|
10944
|
+
newSessionPop: "_bx"
|
|
10919
10945
|
};
|
|
10920
10946
|
//#endregion
|
|
10921
10947
|
//#region src/tags/icons/icon-base.marko
|
|
@@ -10923,7 +10949,7 @@ var icon_base_default = _template("A", (input) => {
|
|
|
10923
10949
|
const $scope0_reason = _scope_reason();
|
|
10924
10950
|
const $scope0_id = _scope_id();
|
|
10925
10951
|
const size = input.size ?? 15;
|
|
10926
|
-
_html(`<svg${_attr_class([
|
|
10952
|
+
_html(`<svg${_attr_class([ui_module_default.icon, 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))}`);
|
|
10927
10953
|
_serialize_if($scope0_reason, 1) && writeScope($scope0_id, {});
|
|
10928
10954
|
});
|
|
10929
10955
|
//#endregion
|
|
@@ -10994,7 +11020,7 @@ var icon_agent_default = _template("y", (input) => {
|
|
|
10994
11020
|
_if(() => {
|
|
10995
11021
|
if (d) {
|
|
10996
11022
|
const $scope1_id = _scope_id();
|
|
10997
|
-
_html(`<svg${_attr_class([
|
|
11023
|
+
_html(`<svg${_attr_class([ui_module_default.icon, input.class])}${_attr("width", size)}${_attr("height", size)} viewBox="0 0 24 24" fill=currentColor fill-rule=evenodd aria-hidden=true><path${_attr("d", d)}></path>${_el_resume($scope1_id, "b", $sg__input_agent)}</svg>${_el_resume($scope1_id, "a", $sg__input_size__OR__input_class)}`);
|
|
10998
11024
|
$si__input_size__OR__input_agent__OR__input_class && writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
10999
11025
|
return 0;
|
|
11000
11026
|
} else {
|
|
@@ -11087,7 +11113,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11087
11113
|
return 0;
|
|
11088
11114
|
}
|
|
11089
11115
|
}, $scope0_id, "a", $sg__input_inline, $sg__input_inline, 1, 0, 1);
|
|
11090
|
-
_html(`<div${_attr_class([
|
|
11116
|
+
_html(`<div${_attr_class([palette_module_default.palette, { [palette_module_default.inline]: input.inline }])} data-palette${input.inline ? " data-inline" : ""} role=dialog aria-label=Workspaces>`);
|
|
11091
11117
|
_if(() => {
|
|
11092
11118
|
if (input.inline && !input.workspaces.length) {
|
|
11093
11119
|
const $scope8_id = _scope_id();
|
|
@@ -11121,11 +11147,11 @@ var palette_default = _template("o", (input) => {
|
|
|
11121
11147
|
const $scope2_id = _scope_id();
|
|
11122
11148
|
const st = input.status[row.ws.id];
|
|
11123
11149
|
const rowPrs = (st?.repos || []).flatMap((r) => r.prs || []);
|
|
11124
|
-
_html(`<span${_attr_class(palette_module_default.rowName)}><span${_attr_class([
|
|
11150
|
+
_html(`<span${_attr_class(palette_module_default.rowName)}><span${_attr_class([ui_module_default.dot, ui_module_default[phaseOf(st)]])}></span>${_el_resume($scope2_id, "b")}<span${_attr_class(palette_module_default.rowNameText)}>${_escape(row.ws.name)}${_el_resume($scope2_id, "d")}</span>`);
|
|
11125
11151
|
_if(() => {
|
|
11126
11152
|
if (row.ws.id === input.selectedId) {
|
|
11127
11153
|
const $scope14_id = _scope_id();
|
|
11128
|
-
_html(`<span${_attr_class([
|
|
11154
|
+
_html(`<span${_attr_class([ui_module_default.chip, palette_module_default.open])}>open</span>`);
|
|
11129
11155
|
writeScope($scope14_id, {});
|
|
11130
11156
|
return 0;
|
|
11131
11157
|
}
|
|
@@ -11133,7 +11159,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11133
11159
|
_if(() => {
|
|
11134
11160
|
if (row.archived) {
|
|
11135
11161
|
const $scope15_id = _scope_id();
|
|
11136
|
-
_html(
|
|
11162
|
+
_html(`<span${_attr_class(ui_module_default.chip)}>archived</span>`);
|
|
11137
11163
|
writeScope($scope15_id, {});
|
|
11138
11164
|
return 0;
|
|
11139
11165
|
}
|
|
@@ -11142,7 +11168,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11142
11168
|
_if(() => {
|
|
11143
11169
|
if (st?.agents) {
|
|
11144
11170
|
const $scope11_id = _scope_id();
|
|
11145
|
-
_html(`<span${_attr_class([
|
|
11171
|
+
_html(`<span${_attr_class([ui_module_default.chip, palette_module_default.stat])}${_attr("title", `${st.agents} running session${st.agents === 1 ? "" : "s"}${st.working ? ` — ${st.working} working` : ""}${st.waiting ? ` — ${st.waiting} waiting on you` : ""}`)}>${_escape(st.agents)}${_el_resume($scope11_id, "b")}</span>${_el_resume($scope11_id, "a")}`);
|
|
11146
11172
|
writeScope($scope11_id, {});
|
|
11147
11173
|
return 0;
|
|
11148
11174
|
}
|
|
@@ -11150,7 +11176,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11150
11176
|
_if(() => {
|
|
11151
11177
|
if (rowPrs.length) {
|
|
11152
11178
|
const $scope13_id = _scope_id();
|
|
11153
|
-
_html(`<span${_attr_class([
|
|
11179
|
+
_html(`<span${_attr_class([ui_module_default.chip, palette_module_default.stat])}${_attr("title", `${rowPrs.length} open PR${rowPrs.length === 1 ? "" : "s"}`)}>${_escape(rowPrs.length)}${_el_resume($scope13_id, "b")} PR<!>${rowPrs.length === 1 ? "" : "s"}${_el_resume($scope13_id, "c")}</span>${_el_resume($scope13_id, "a")}`);
|
|
11154
11180
|
writeScope($scope13_id, {});
|
|
11155
11181
|
return 0;
|
|
11156
11182
|
}
|
|
@@ -11158,7 +11184,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11158
11184
|
_if(() => {
|
|
11159
11185
|
if ((st?.ports || []).length) {
|
|
11160
11186
|
const $scope12_id = _scope_id();
|
|
11161
|
-
_html(`<span${_attr_class([
|
|
11187
|
+
_html(`<span${_attr_class([ui_module_default.chip, palette_module_default.stat])}${_attr("title", st.ports.map((p) => `:${p.port} ${p.cmd}`).join("\n"))}>:<!>${_escape(st.ports.length)}${_el_resume($scope12_id, "b")}</span>${_el_resume($scope12_id, "a")}`);
|
|
11162
11188
|
writeScope($scope12_id, {});
|
|
11163
11189
|
return 0;
|
|
11164
11190
|
}
|
|
@@ -11166,7 +11192,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11166
11192
|
_html(`</span></span><span${_attr_class(palette_module_default.rowRepos)}>`);
|
|
11167
11193
|
_for_of(st?.repos || row.ws.repos, (repo) => {
|
|
11168
11194
|
const $scope16_id = _scope_id();
|
|
11169
|
-
_html(`<span
|
|
11195
|
+
_html(`<span${_attr_class(ui_module_default.mono)}>${_escape(repo.worktree)}${_el_resume($scope16_id, "b")}</span>`);
|
|
11170
11196
|
writeScope($scope16_id, {});
|
|
11171
11197
|
}, "full_name", $scope2_id, "k", 1, 1, 1, "</span>", 1);
|
|
11172
11198
|
_subscribe($si__input_status && $input_status__closures, _subscribe($si__input_selectedId && $input_selectedId__closures, writeScope($scope2_id, {
|
|
@@ -11190,7 +11216,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11190
11216
|
const newPopId = _id();
|
|
11191
11217
|
_html(`</button>${_el_resume($scope3_id, "c")}<button${_attr_class(palette_module_default.rowMore)} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
11192
11218
|
icon_plus_default({ size: 13 });
|
|
11193
|
-
_html(`</button>${_el_resume($scope3_id, "e")}<div${_attr("id", newPopId)} popover=auto
|
|
11219
|
+
_html(`</button>${_el_resume($scope3_id, "e")}<div${_attr("id", newPopId)} popover=auto${_attr_class(palette_module_default.newSessionPop)}>`);
|
|
11194
11220
|
_for_of([...input.settings?.agents || [], "shell"], (agent) => {
|
|
11195
11221
|
const $scope4_id = _scope_id();
|
|
11196
11222
|
_html("<button>");
|
|
@@ -11243,8 +11269,8 @@ var palette_default = _template("o", (input) => {
|
|
|
11243
11269
|
_if(() => {
|
|
11244
11270
|
if (settings) {
|
|
11245
11271
|
const $scope6_id = _scope_id();
|
|
11246
|
-
_html(
|
|
11247
|
-
_attr_select_value($scope6_id, "
|
|
11272
|
+
_html(`<label${_attr_class(ui_module_default.dim)}>`);
|
|
11273
|
+
_attr_select_value($scope6_id, "b", settings.preferredAgent, _resume(function(v) {
|
|
11248
11274
|
settings = {
|
|
11249
11275
|
...settings,
|
|
11250
11276
|
preferredAgent: v
|
|
@@ -11260,7 +11286,7 @@ var palette_default = _template("o", (input) => {
|
|
|
11260
11286
|
const $scope17_id = _scope_id();
|
|
11261
11287
|
_html(`<option${_attr_option_value(agent)}>${_escape(agent)}${_el_resume($scope17_id, "b")}</option>${_el_resume($scope17_id, "a")}`);
|
|
11262
11288
|
writeScope($scope17_id, {});
|
|
11263
|
-
}, (a) => a, $scope6_id, "
|
|
11289
|
+
}, (a) => a, $scope6_id, "b", 1, 1, 1, "</select>", 1);
|
|
11264
11290
|
});
|
|
11265
11291
|
_html("</label>");
|
|
11266
11292
|
_script($scope6_id, "o9");
|
|
@@ -11315,20 +11341,31 @@ var palette_default = _template("o", (input) => {
|
|
|
11315
11341
|
_resume_branch($scope0_id);
|
|
11316
11342
|
});
|
|
11317
11343
|
var manage_workspace_module_default = {
|
|
11318
|
-
iconBtn: "
|
|
11319
|
-
spinning: "
|
|
11320
|
-
actStep: "
|
|
11321
|
-
prRepo: "
|
|
11322
|
-
prRepoName: "
|
|
11323
|
-
prList: "
|
|
11324
|
-
prSpacer: "
|
|
11325
|
-
prDismiss: "
|
|
11326
|
-
prState: "
|
|
11327
|
-
prLink: "
|
|
11328
|
-
procs: "
|
|
11329
|
-
procCmd: "
|
|
11330
|
-
procKill: "
|
|
11331
|
-
portLink: "
|
|
11344
|
+
iconBtn: "_J _bQ",
|
|
11345
|
+
spinning: "_K _bR",
|
|
11346
|
+
actStep: "_L",
|
|
11347
|
+
prRepo: "_M",
|
|
11348
|
+
prRepoName: "_N",
|
|
11349
|
+
prList: "_O",
|
|
11350
|
+
prSpacer: "_P",
|
|
11351
|
+
prDismiss: "_Q",
|
|
11352
|
+
prState: "_R",
|
|
11353
|
+
prLink: "_S",
|
|
11354
|
+
procs: "_T",
|
|
11355
|
+
procCmd: "_U",
|
|
11356
|
+
procKill: "_V",
|
|
11357
|
+
portLink: "_W",
|
|
11358
|
+
reposHead: "_X",
|
|
11359
|
+
curRepos: "_Y",
|
|
11360
|
+
curRepo: "_Z",
|
|
11361
|
+
pending: "_0",
|
|
11362
|
+
curWorktree: "_1",
|
|
11363
|
+
curFull: "_2",
|
|
11364
|
+
curBase: "_3",
|
|
11365
|
+
curRemove: "_4",
|
|
11366
|
+
armed: "_5",
|
|
11367
|
+
emptyNote: "_6",
|
|
11368
|
+
manageHead: "_7"
|
|
11332
11369
|
};
|
|
11333
11370
|
//#endregion
|
|
11334
11371
|
//#region src/tags/dialog-close.marko
|
|
@@ -11363,18 +11400,18 @@ var icon_refresh_default = _template("M", (input) => {
|
|
|
11363
11400
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
11364
11401
|
});
|
|
11365
11402
|
var repo_picker_module_default = {
|
|
11366
|
-
addRepo: "
|
|
11367
|
-
repoResults: "
|
|
11368
|
-
resultWrap: "
|
|
11369
|
-
hi: "
|
|
11370
|
-
resultRow: "
|
|
11371
|
-
resultBranch: "
|
|
11372
|
-
on: "
|
|
11373
|
-
branchPick: "
|
|
11374
|
-
branchList: "
|
|
11375
|
-
resultPlus: "
|
|
11376
|
-
repoName: "
|
|
11377
|
-
emptyNote: "
|
|
11403
|
+
addRepo: "_bW",
|
|
11404
|
+
repoResults: "_bX",
|
|
11405
|
+
resultWrap: "_bY",
|
|
11406
|
+
hi: "_bZ",
|
|
11407
|
+
resultRow: "_b0",
|
|
11408
|
+
resultBranch: "_b1",
|
|
11409
|
+
on: "_b2",
|
|
11410
|
+
branchPick: "_b3",
|
|
11411
|
+
branchList: "_b4",
|
|
11412
|
+
resultPlus: "_b5",
|
|
11413
|
+
repoName: "_b6",
|
|
11414
|
+
emptyNote: "_b7"
|
|
11378
11415
|
};
|
|
11379
11416
|
//#endregion
|
|
11380
11417
|
//#region src/tags/repo-picker.marko
|
|
@@ -11456,7 +11493,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
11456
11493
|
_if(() => {
|
|
11457
11494
|
if (!branches) {
|
|
11458
11495
|
const $scope9_id = _scope_id();
|
|
11459
|
-
_html(`<p${_attr_class(repo_picker_module_default.emptyNote)}><span
|
|
11496
|
+
_html(`<p${_attr_class(repo_picker_module_default.emptyNote)}><span${_attr_class(ui_module_default.spin)}></span> Loading branches…</p>`);
|
|
11460
11497
|
writeScope($scope9_id, {});
|
|
11461
11498
|
return 0;
|
|
11462
11499
|
} else {
|
|
@@ -11476,7 +11513,7 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
11476
11513
|
_html(`<ul${_attr_class(repo_picker_module_default.branchList)}>`);
|
|
11477
11514
|
_for_of(shown, (branch) => {
|
|
11478
11515
|
const $scope7_id = _scope_id();
|
|
11479
|
-
_html(`<li><button${_attr_class(repo_picker_module_default.resultRow)}><span${_attr_class([repo_picker_module_default.repoName,
|
|
11516
|
+
_html(`<li><button${_attr_class(repo_picker_module_default.resultRow)}><span${_attr_class([repo_picker_module_default.repoName, ui_module_default.mono])}>${_escape(branch)}${_el_resume($scope7_id, "c")}</span></button>${_el_resume($scope7_id, "a")}</li>`);
|
|
11480
11517
|
_script($scope7_id, "q7");
|
|
11481
11518
|
writeScope($scope7_id, { e: branch });
|
|
11482
11519
|
}, (b) => b, $scope5_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -11544,9 +11581,9 @@ var repo_picker_default = _template("q", (input) => {
|
|
|
11544
11581
|
return $return;
|
|
11545
11582
|
});
|
|
11546
11583
|
var modal_view_module_default = {
|
|
11547
|
-
manageView: "
|
|
11548
|
-
manage: "
|
|
11549
|
-
manageBar: "
|
|
11584
|
+
manageView: "_bT",
|
|
11585
|
+
manage: "_bU",
|
|
11586
|
+
manageBar: "_bV"
|
|
11550
11587
|
};
|
|
11551
11588
|
//#endregion
|
|
11552
11589
|
//#region src/tags/modal-view.marko
|
|
@@ -11581,7 +11618,7 @@ var modal_view_default = _template("l", (input) => {
|
|
|
11581
11618
|
const $scope2_id = _scope_id();
|
|
11582
11619
|
_html(`<form method=dialog${_attr_class(modal_view_module_default.manageBar)}>`);
|
|
11583
11620
|
dialog_close_default({
|
|
11584
|
-
class:
|
|
11621
|
+
class: [ui_module_default.btn, ui_module_default.primary],
|
|
11585
11622
|
content: _content("l0", () => {
|
|
11586
11623
|
_scope_reason();
|
|
11587
11624
|
_scope_id();
|
|
@@ -11784,7 +11821,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11784
11821
|
const $scope8_id = _scope_id();
|
|
11785
11822
|
const $childScope = _peek_scope_id();
|
|
11786
11823
|
dialog_close_default({
|
|
11787
|
-
class:
|
|
11824
|
+
class: [ui_module_default.btn, ui_module_default.primary],
|
|
11788
11825
|
disabled: !!pendingAction,
|
|
11789
11826
|
content: _content("k14", () => {
|
|
11790
11827
|
_scope_reason();
|
|
@@ -11795,28 +11832,32 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11795
11832
|
_if(() => {
|
|
11796
11833
|
if (pendingAction && actionStep) {
|
|
11797
11834
|
const $scope12_id = _scope_id();
|
|
11798
|
-
_html(`<span${_attr_class(manage_workspace_module_default.actStep)}><span
|
|
11835
|
+
_html(`<span${_attr_class(manage_workspace_module_default.actStep)}><span${_attr_class(ui_module_default.spin)}></span><!>${_escape(actionStep)}${_el_resume($scope12_id, "c")}</span>`);
|
|
11799
11836
|
_subscribe($actionStep__closures, writeScope($scope12_id, { Caw: 1 }));
|
|
11800
11837
|
return 0;
|
|
11801
11838
|
}
|
|
11802
11839
|
}, $scope8_id, "b", 1, 1, 1, 0, 1);
|
|
11803
|
-
_html(
|
|
11840
|
+
_html(`<div${_attr_class(ui_module_default.spacer)}></div>`);
|
|
11804
11841
|
_if(() => {
|
|
11805
11842
|
if (ws.status === "active") {
|
|
11806
11843
|
const $scope9_id = _scope_id();
|
|
11807
|
-
_html(`<button type=button
|
|
11844
|
+
_html(`<button type=button${_attr_class(ui_module_default.btn)}${_attr("disabled", !!pendingAction)}>${pendingAction === "archive" ? "Archiving…" : "Archive"}${_el_resume($scope9_id, "b")}</button>${_el_resume($scope9_id, "a")}`);
|
|
11808
11845
|
_script($scope9_id, "k15");
|
|
11809
11846
|
_subscribe($pendingAction__closures, writeScope($scope9_id, { Cat: 1 }));
|
|
11810
11847
|
return 0;
|
|
11811
11848
|
} else {
|
|
11812
11849
|
const $scope10_id = _scope_id();
|
|
11813
|
-
_html(`<button type=button
|
|
11850
|
+
_html(`<button type=button${_attr_class(ui_module_default.btn)}${_attr("disabled", !!pendingAction)}>Restore</button>${_el_resume($scope10_id, "a")}`);
|
|
11814
11851
|
_script($scope10_id, "k16");
|
|
11815
11852
|
_subscribe($pendingAction__closures, writeScope($scope10_id, { Cat: 2 }));
|
|
11816
11853
|
return 1;
|
|
11817
11854
|
}
|
|
11818
|
-
}, $scope8_id, "
|
|
11819
|
-
_html(`<button type=button
|
|
11855
|
+
}, $scope8_id, "d", 1, 1, 1, 0, 1);
|
|
11856
|
+
_html(`<button type=button${_attr_class([
|
|
11857
|
+
ui_module_default.btn,
|
|
11858
|
+
ui_module_default.danger,
|
|
11859
|
+
{ [ui_module_default.armed]: confirmingDelete }
|
|
11860
|
+
])}${_attr("disabled", !!pendingAction)}>${pendingAction === "delete" ? "Deleting…" : "Delete"}${_el_resume($scope8_id, "f")}</button>${_el_resume($scope8_id, "e")}`);
|
|
11820
11861
|
_script($scope8_id, "k17");
|
|
11821
11862
|
_subscribe($ws_status__closures, _subscribe($actionStep__closures, _subscribe($confirmingDelete__closures, _subscribe($pendingAction__closures, writeScope($scope8_id, {
|
|
11822
11863
|
_: _scope_with_id($scope0_id),
|
|
@@ -11827,7 +11868,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11827
11868
|
content: _content("k28", () => {
|
|
11828
11869
|
_scope_reason();
|
|
11829
11870
|
const $scope1_id = _scope_id();
|
|
11830
|
-
_html(`<header
|
|
11871
|
+
_html(`<header${_attr_class(manage_workspace_module_default.manageHead)}><div><h2${_attr("id", titleId)}>${_escape(ws.name)}${_el_resume($scope1_id, "c")}</h2><p${_attr_class([ui_module_default.dim, ui_module_default.mono])}>${_escape(ws.display_path || ws.path)}${_el_resume($scope1_id, "e")}</p></div></header>`);
|
|
11831
11872
|
_if(() => {
|
|
11832
11873
|
if (error) {
|
|
11833
11874
|
const $scope6_id = _scope_id();
|
|
@@ -11850,31 +11891,31 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11850
11891
|
writeScope($scope6_id, {});
|
|
11851
11892
|
return 0;
|
|
11852
11893
|
}
|
|
11853
|
-
}, $scope1_id, "
|
|
11894
|
+
}, $scope1_id, "f", 1, 1, 1, 0, 1);
|
|
11854
11895
|
_if(() => {
|
|
11855
11896
|
if (prs && prs.some((r) => r.prs.length)) {
|
|
11856
11897
|
const $scope3_id = _scope_id();
|
|
11857
11898
|
const finishedCount = (prs || []).reduce((n, r) => n + r.prs.filter((pr) => pr.state !== "OPEN").length, 0);
|
|
11858
|
-
_html(
|
|
11899
|
+
_html(`<section><div${_attr_class(manage_workspace_module_default.reposHead)}><h3>Pull requests</h3>`);
|
|
11859
11900
|
_if(() => {
|
|
11860
11901
|
if (finishedCount) {
|
|
11861
11902
|
const $scope13_id = _scope_id();
|
|
11862
|
-
_html(`<button
|
|
11903
|
+
_html(`<button${_attr_class(ui_module_default.btn)} title="Confirm every merged/closed PR is done — remove them from this list">Clear <!>${_escape(finishedCount)}${_el_resume($scope13_id, "b")} finished</button>${_el_resume($scope13_id, "a")}`);
|
|
11863
11904
|
_script($scope13_id, "k19");
|
|
11864
11905
|
writeScope($scope13_id, {});
|
|
11865
11906
|
return 0;
|
|
11866
11907
|
}
|
|
11867
|
-
}, $scope3_id, "
|
|
11908
|
+
}, $scope3_id, "b", 1, 1, 1, 0, 1);
|
|
11868
11909
|
_html(`<button${_attr_class([manage_workspace_module_default.iconBtn, { [manage_workspace_module_default.spinning]: prsRefreshing }])} title="Refresh PRs" aria-label="Refresh PRs"${_attr("disabled", prsRefreshing)}>`);
|
|
11869
11910
|
icon_refresh_default({ size: 13 });
|
|
11870
|
-
_html(`</button>${_el_resume($scope3_id, "
|
|
11911
|
+
_html(`</button>${_el_resume($scope3_id, "c")}</div>`);
|
|
11871
11912
|
_for_of(prs.filter((r) => r.prs.length), (repo) => {
|
|
11872
11913
|
const $scope4_id = _scope_id();
|
|
11873
11914
|
_html(`<div${_attr_class(manage_workspace_module_default.prRepo)}>`);
|
|
11874
11915
|
_if(() => {
|
|
11875
11916
|
if (prs.length > 1) {
|
|
11876
11917
|
const $scope18_id = _scope_id();
|
|
11877
|
-
_html(`<div${_attr_class([manage_workspace_module_default.prRepoName,
|
|
11918
|
+
_html(`<div${_attr_class([manage_workspace_module_default.prRepoName, ui_module_default.mono])}>${_escape(repo.worktree)}${_el_resume($scope18_id, "b")}</div>`);
|
|
11878
11919
|
writeScope($scope18_id, {});
|
|
11879
11920
|
return 0;
|
|
11880
11921
|
}
|
|
@@ -11882,21 +11923,21 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11882
11923
|
_html(`<ul${_attr_class(manage_workspace_module_default.prList)}>`);
|
|
11883
11924
|
_for_of(repo.prs, (pr) => {
|
|
11884
11925
|
const $scope14_id = _scope_id();
|
|
11885
|
-
_html(`<li><span${_attr_class(
|
|
11926
|
+
_html(`<li><span${_attr_class(manage_workspace_module_default.prState)}${pr.state === "OPEN" && pr.isDraft ? " data-state=open" : _attr("data-state", pr.state.toLowerCase())}>${pr.state === "OPEN" && pr.isDraft ? "draft" : _escape(pr.state.toLowerCase())}${_el_resume($scope14_id, "b")}</span>${_el_resume($scope14_id, "a")}`);
|
|
11886
11927
|
_if(() => {
|
|
11887
11928
|
if (pr.state === "OPEN" && pr.reviewDecision === "APPROVED") {
|
|
11888
11929
|
const $scope19_id = _scope_id();
|
|
11889
|
-
_html(`<span${_attr_class(
|
|
11930
|
+
_html(`<span${_attr_class(manage_workspace_module_default.prState)} data-state=open title=Approved>✓</span>`);
|
|
11890
11931
|
writeScope($scope19_id, {});
|
|
11891
11932
|
return 0;
|
|
11892
11933
|
} else if (pr.state === "OPEN" && pr.reviewDecision === "CHANGES_REQUESTED") {
|
|
11893
11934
|
const $scope20_id = _scope_id();
|
|
11894
|
-
_html(`<span${_attr_class(
|
|
11935
|
+
_html(`<span${_attr_class(manage_workspace_module_default.prState)} data-state=closed title="Changes requested">✗</span>`);
|
|
11895
11936
|
writeScope($scope20_id, {});
|
|
11896
11937
|
return 1;
|
|
11897
11938
|
}
|
|
11898
11939
|
}, $scope14_id, "c", 1, 1, 1, 0, 1);
|
|
11899
|
-
_html(`<a${_attr_class(manage_workspace_module_default.prLink)}${_attr("href", pr.url)} target=_blank rel=noopener><span
|
|
11940
|
+
_html(`<a${_attr_class(manage_workspace_module_default.prLink)}${_attr("href", pr.url)} target=_blank rel=noopener><span${_attr_class([ui_module_default.dim, ui_module_default.mono])}>#<!>${_escape(pr.number)}${_el_resume($scope14_id, "f")}</span><!>${_escape(pr.title)}${_el_resume($scope14_id, "g")}</a>${_el_resume($scope14_id, "d")}<span${_attr_class(manage_workspace_module_default.prSpacer)}></span>`);
|
|
11900
11941
|
_if(() => {
|
|
11901
11942
|
if (pr.state !== "OPEN") {
|
|
11902
11943
|
const $scope15_id = _scope_id();
|
|
@@ -11905,75 +11946,75 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11905
11946
|
writeScope($scope15_id, {});
|
|
11906
11947
|
return 0;
|
|
11907
11948
|
}
|
|
11908
|
-
}, $scope14_id, "
|
|
11949
|
+
}, $scope14_id, "i", 1, 1, 1, 0, 1);
|
|
11909
11950
|
_html("</li>");
|
|
11910
|
-
writeScope($scope14_id, {
|
|
11951
|
+
writeScope($scope14_id, { r: pr?.number });
|
|
11911
11952
|
}, "number", $scope4_id, "c", 1, 1, 1, "</ul>", 1);
|
|
11912
11953
|
_html("</div>");
|
|
11913
11954
|
_subscribe($prs_length__closures, writeScope($scope4_id, {
|
|
11914
11955
|
f: repo?.worktree,
|
|
11915
11956
|
h: repo?.full_name
|
|
11916
11957
|
}));
|
|
11917
|
-
}, "full_name", $scope3_id, "
|
|
11958
|
+
}, "full_name", $scope3_id, "e", 1, 1, 1, 0, 1);
|
|
11918
11959
|
_html("</section>");
|
|
11919
11960
|
_script($scope3_id, "k21");
|
|
11920
11961
|
_subscribe($prsRefreshing__closures, _subscribe($prs__closures, writeScope($scope3_id, {
|
|
11921
|
-
|
|
11962
|
+
f: finishedCount,
|
|
11922
11963
|
Can: 1
|
|
11923
11964
|
})));
|
|
11924
11965
|
return 0;
|
|
11925
11966
|
}
|
|
11926
|
-
}, $scope1_id, "
|
|
11927
|
-
_html(`<section><div
|
|
11967
|
+
}, $scope1_id, "g", 1, 1, 1, 0, 1);
|
|
11968
|
+
_html(`<section><div${_attr_class(manage_workspace_module_default.reposHead)}><h3>Repos</h3><button${_attr_class([manage_workspace_module_default.iconBtn, { [manage_workspace_module_default.spinning]: catalogRefreshing }])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
11928
11969
|
icon_refresh_default({ size: 13 });
|
|
11929
|
-
_html(`</button>${_el_resume($scope1_id, "
|
|
11970
|
+
_html(`</button>${_el_resume($scope1_id, "i")}</div><ul${_attr_class(manage_workspace_module_default.curRepos)}>`);
|
|
11930
11971
|
_for_of(ws.repos, (row) => {
|
|
11931
11972
|
const $scope5_id = _scope_id();
|
|
11932
|
-
_html(`<li
|
|
11973
|
+
_html(`<li${_attr_class(manage_workspace_module_default.curRepo)}><span${_attr_class([ui_module_default.mono, manage_workspace_module_default.curWorktree])}>${_escape(row.worktree)}${_el_resume($scope5_id, "c")}/</span><span${_attr_class([ui_module_default.dim, manage_workspace_module_default.curFull])}>${_escape(row.full_name)}${_el_resume($scope5_id, "e")}</span>`);
|
|
11933
11974
|
_if(() => {
|
|
11934
11975
|
if (row.base_branch !== row.default_branch) {
|
|
11935
11976
|
const $scope21_id = _scope_id();
|
|
11936
|
-
_html(`<span
|
|
11977
|
+
_html(`<span${_attr_class([manage_workspace_module_default.curBase, ui_module_default.mono])} title="Base branch">⎇ <!>${_escape(row.base_branch)}${_el_resume($scope21_id, "b")}</span>`);
|
|
11937
11978
|
writeScope($scope21_id, {});
|
|
11938
11979
|
return 0;
|
|
11939
11980
|
}
|
|
11940
|
-
}, $scope5_id, "
|
|
11981
|
+
}, $scope5_id, "f", 1, 1, 1, 0, 1);
|
|
11941
11982
|
_if(() => {
|
|
11942
11983
|
if (busy.has(row.full_name)) {
|
|
11943
11984
|
const $scope22_id = _scope_id();
|
|
11944
|
-
_html(
|
|
11985
|
+
_html(`<span${_attr_class(ui_module_default.spin)}></span>`);
|
|
11945
11986
|
writeScope($scope22_id, {});
|
|
11946
11987
|
return 0;
|
|
11947
11988
|
} else {
|
|
11948
11989
|
const $scope11_id = _scope_id();
|
|
11949
|
-
_html(`<button
|
|
11990
|
+
_html(`<button${_attr_class([manage_workspace_module_default.curRemove, { [manage_workspace_module_default.armed]: confirmingRemove === row.full_name }])}${confirmingRemove === row.full_name ? _attr("title", `Really remove ${row.worktree}/? Uncommitted changes are lost.`) : _attr("title", `Remove ${row.worktree}/`)}>${confirmingRemove === row.full_name ? "remove?" : "×"}${_el_resume($scope11_id, "b")}</button>${_el_resume($scope11_id, "a")}`);
|
|
11950
11991
|
_script($scope11_id, "k22");
|
|
11951
11992
|
_subscribe($confirmingRemove__closures, writeScope($scope11_id, {}));
|
|
11952
11993
|
return 1;
|
|
11953
11994
|
}
|
|
11954
|
-
}, $scope5_id, "
|
|
11995
|
+
}, $scope5_id, "g", 1, 1, 1, 0, 1);
|
|
11955
11996
|
_html("</li>");
|
|
11956
11997
|
_subscribe($busy__closures, writeScope($scope5_id, {
|
|
11957
|
-
|
|
11958
|
-
|
|
11959
|
-
|
|
11960
|
-
|
|
11998
|
+
i: row,
|
|
11999
|
+
j: row?.worktree,
|
|
12000
|
+
k: row?.full_name,
|
|
12001
|
+
m: row?.base_branch,
|
|
11961
12002
|
Caq: 1
|
|
11962
12003
|
}));
|
|
11963
|
-
}, "full_name", $scope1_id, "
|
|
12004
|
+
}, "full_name", $scope1_id, "l", 1, 1, 1, 0, 1);
|
|
11964
12005
|
_for_of([...busy].filter((n) => !inWorkspace.has(n)), (name) => {
|
|
11965
12006
|
const $scope23_id = _scope_id();
|
|
11966
|
-
_html(`<li
|
|
12007
|
+
_html(`<li${_attr_class([manage_workspace_module_default.curRepo, manage_workspace_module_default.pending])}><span${_attr_class(ui_module_default.spin)}></span><span${_attr_class([ui_module_default.dim, manage_workspace_module_default.curFull])}>${_escape(name)}${_el_resume($scope23_id, "d")}</span></li>`);
|
|
11967
12008
|
writeScope($scope23_id, {});
|
|
11968
|
-
}, (n) => n, $scope1_id, "
|
|
12009
|
+
}, (n) => n, $scope1_id, "m", 1, 1, 1, 0, 1);
|
|
11969
12010
|
_if(() => {
|
|
11970
12011
|
if (!ws.repos.length && !busy.size) {
|
|
11971
12012
|
const $scope24_id = _scope_id();
|
|
11972
|
-
_html(
|
|
12013
|
+
_html(`<li${_attr_class(manage_workspace_module_default.emptyNote)}>No repos yet — search below to add one.</li>`);
|
|
11973
12014
|
writeScope($scope24_id, {});
|
|
11974
12015
|
return 0;
|
|
11975
12016
|
}
|
|
11976
|
-
}, $scope1_id, "
|
|
12017
|
+
}, $scope1_id, "n", 1, 1, 1, 0, 1);
|
|
11977
12018
|
_html("</ul>");
|
|
11978
12019
|
const $childScope2 = _peek_scope_id();
|
|
11979
12020
|
let refreshCatalog = repo_picker_default({
|
|
@@ -11988,7 +12029,7 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11988
12029
|
catalogRefreshing = busy;
|
|
11989
12030
|
}, "k13", $scope1_id)
|
|
11990
12031
|
});
|
|
11991
|
-
_var($scope1_id, "
|
|
12032
|
+
_var($scope1_id, "p", $childScope2, "k23");
|
|
11992
12033
|
_html("</section>");
|
|
11993
12034
|
_if(() => {
|
|
11994
12035
|
if (procs && procs.length) {
|
|
@@ -11996,10 +12037,10 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
11996
12037
|
_html(`<section><h3>Processes</h3><ul${_attr_class(manage_workspace_module_default.procs)}>`);
|
|
11997
12038
|
_for_of(procs, (p) => {
|
|
11998
12039
|
const $scope16_id = _scope_id();
|
|
11999
|
-
_html(`<li><span${_attr_class([
|
|
12040
|
+
_html(`<li><span${_attr_class([ui_module_default.mono, manage_workspace_module_default.procCmd])}${_attr("title", p.args)}>${_escape(p.cmd)}${_el_resume($scope16_id, "b")}`);
|
|
12000
12041
|
_for_of(p.ports, (port) => {
|
|
12001
12042
|
const $scope25_id = _scope_id();
|
|
12002
|
-
_html(`<button${_attr_class([
|
|
12043
|
+
_html(`<button${_attr_class([ui_module_default.chip, manage_workspace_module_default.portLink])}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${port}`)}>:<!>${_escape(port)}${_el_resume($scope25_id, "b")}</button>${_el_resume($scope25_id, "a")}`);
|
|
12003
12044
|
_script($scope25_id, "k24");
|
|
12004
12045
|
writeScope($scope25_id, { d: port });
|
|
12005
12046
|
}, (x) => String(x), $scope16_id, "c", 1, 1, 1, 0, 1);
|
|
@@ -12011,12 +12052,12 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
12011
12052
|
_subscribe($procs__closures, writeScope($scope2_id, { Cam: 1 }));
|
|
12012
12053
|
return 0;
|
|
12013
12054
|
}
|
|
12014
|
-
}, $scope1_id, "
|
|
12055
|
+
}, $scope1_id, "q", 1, 1, 1, 0, 1);
|
|
12015
12056
|
_script($scope1_id, "k26");
|
|
12016
12057
|
_subscribe($addRepo2__closures, _subscribe($inWorkspace__closures, _subscribe($ws_repos_length__closures, _subscribe($ws_path__closures, _subscribe($ws_display_path__closures, _subscribe($ws_name__closures, _subscribe($ws_repos__closures, _subscribe($error__closures, _subscribe($busy_size__closures, _subscribe($busy__closures, _subscribe($prs__closures, _subscribe($procs__closures, _subscribe($catalogRefreshing__closures, writeScope($scope1_id, {
|
|
12017
|
-
|
|
12058
|
+
r: refreshCatalog,
|
|
12018
12059
|
_: _scope_with_id($scope0_id),
|
|
12019
|
-
|
|
12060
|
+
o: _existing_scope($childScope2)
|
|
12020
12061
|
}))))))))))))));
|
|
12021
12062
|
_resume_branch($scope1_id);
|
|
12022
12063
|
})
|
|
@@ -12079,13 +12120,24 @@ var manage_workspace_default = _template("k", (input) => {
|
|
|
12079
12120
|
_resume_branch($scope0_id);
|
|
12080
12121
|
});
|
|
12081
12122
|
var new_workspace_module_default = {
|
|
12082
|
-
iconBtn: "
|
|
12083
|
-
spinning: "
|
|
12084
|
-
newWs: "
|
|
12085
|
-
field: "
|
|
12086
|
-
steps: "
|
|
12087
|
-
active: "
|
|
12088
|
-
stepDone: "
|
|
12123
|
+
iconBtn: "_by _bQ",
|
|
12124
|
+
spinning: "_bz _bR",
|
|
12125
|
+
newWs: "_bA",
|
|
12126
|
+
field: "_bB",
|
|
12127
|
+
steps: "_bC",
|
|
12128
|
+
active: "_bD",
|
|
12129
|
+
stepDone: "_bE",
|
|
12130
|
+
reposHead: "_bF",
|
|
12131
|
+
curRepos: "_bG",
|
|
12132
|
+
curRepo: "_bH",
|
|
12133
|
+
pending: "_bI",
|
|
12134
|
+
curWorktree: "_bJ",
|
|
12135
|
+
curFull: "_bK",
|
|
12136
|
+
curBase: "_bL",
|
|
12137
|
+
curRemove: "_bM",
|
|
12138
|
+
armed: "_bN",
|
|
12139
|
+
emptyNote: "_bO",
|
|
12140
|
+
manageHead: "_bP"
|
|
12089
12141
|
};
|
|
12090
12142
|
//#endregion
|
|
12091
12143
|
//#region src/tags/new-workspace.marko
|
|
@@ -12180,10 +12232,10 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
12180
12232
|
footer: attrTag({ content: _content_resume("m15", () => {
|
|
12181
12233
|
_scope_reason();
|
|
12182
12234
|
const $scope1_id = _scope_id();
|
|
12183
|
-
_html(`<button type=button
|
|
12235
|
+
_html(`<button type=button${_attr_class([ui_module_default.btn, ui_module_default.primary])}${_attr("disabled", busy || !name.trim())}>${busy ? "Creating…" : "Create workspace"}${_el_resume($scope1_id, "b")}</button>${_el_resume($scope1_id, "a")}<div${_attr_class(ui_module_default.spacer)}></div>`);
|
|
12184
12236
|
const $childScope = _peek_scope_id();
|
|
12185
12237
|
dialog_close_default({
|
|
12186
|
-
class:
|
|
12238
|
+
class: ui_module_default.btn,
|
|
12187
12239
|
disabled: busy,
|
|
12188
12240
|
content: _content("m9", () => {
|
|
12189
12241
|
_scope_reason();
|
|
@@ -12194,14 +12246,14 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
12194
12246
|
_script($scope1_id, "m10");
|
|
12195
12247
|
_subscribe($busy__closures, _subscribe($name__closures, writeScope($scope1_id, {
|
|
12196
12248
|
_: _scope_with_id($scope0_id),
|
|
12197
|
-
|
|
12249
|
+
d: _existing_scope($childScope)
|
|
12198
12250
|
})));
|
|
12199
12251
|
_resume_branch($scope1_id);
|
|
12200
12252
|
}, $scope0_id) }),
|
|
12201
12253
|
content: _content("m16", () => {
|
|
12202
12254
|
_scope_reason();
|
|
12203
12255
|
const $scope2_id = _scope_id();
|
|
12204
|
-
_html(`<header
|
|
12256
|
+
_html(`<header${_attr_class(new_workspace_module_default.manageHead)}><div><h2${_attr("id", titleId)}>New workspace</h2></div></header>`);
|
|
12205
12257
|
_if(() => {
|
|
12206
12258
|
if (error) {
|
|
12207
12259
|
const $scope4_id = _scope_id();
|
|
@@ -12224,39 +12276,39 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
12224
12276
|
writeScope($scope4_id, {});
|
|
12225
12277
|
return 0;
|
|
12226
12278
|
}
|
|
12227
|
-
}, $scope2_id, "
|
|
12228
|
-
_html(`<label${_attr_class(new_workspace_module_default.field)}><span>Name</span><input${_attr_input_value($scope2_id, "
|
|
12279
|
+
}, $scope2_id, "c", 1, 1, 1, 0, 1);
|
|
12280
|
+
_html(`<label${_attr_class(new_workspace_module_default.field)}><span>Name</span><input${_attr_input_value($scope2_id, "e", name, _resume((_new_name) => {
|
|
12229
12281
|
name = _new_name;
|
|
12230
|
-
}, "m0", $scope2_id))} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope2_id, "
|
|
12282
|
+
}, "m0", $scope2_id))} placeholder=my-feature${_attr("disabled", busy)} autofocus>${_el_resume($scope2_id, "e")}</label><section><div${_attr_class(new_workspace_module_default.reposHead)}><h3>Repos</h3><button${_attr_class([new_workspace_module_default.iconBtn, { [new_workspace_module_default.spinning]: catalogRefreshing }])} title="Refresh repo list" aria-label="Refresh repo list"${_attr("disabled", catalogRefreshing)}>`);
|
|
12231
12283
|
icon_refresh_default({ size: 13 });
|
|
12232
|
-
_html(`</button>${_el_resume($scope2_id, "
|
|
12284
|
+
_html(`</button>${_el_resume($scope2_id, "g")}</div><ul${_attr_class(new_workspace_module_default.curRepos)}>`);
|
|
12233
12285
|
_for_of(selected, (repo) => {
|
|
12234
12286
|
const $scope3_id = _scope_id();
|
|
12235
|
-
_html(`<li
|
|
12287
|
+
_html(`<li${_attr_class(new_workspace_module_default.curRepo)}><span${_attr_class(new_workspace_module_default.curFull)}>${_escape(repo.fullName)}${_el_resume($scope3_id, "c")}</span>`);
|
|
12236
12288
|
_if(() => {
|
|
12237
12289
|
if (repo.baseBranch) {
|
|
12238
12290
|
const $scope9_id = _scope_id();
|
|
12239
|
-
_html(`<span
|
|
12291
|
+
_html(`<span${_attr_class([new_workspace_module_default.curBase, ui_module_default.mono])} title="Base branch">⎇ <!>${_escape(repo.baseBranch)}${_el_resume($scope9_id, "b")}</span>`);
|
|
12240
12292
|
writeScope($scope9_id, {});
|
|
12241
12293
|
return 0;
|
|
12242
12294
|
}
|
|
12243
|
-
}, $scope3_id, "
|
|
12244
|
-
_html(`<button
|
|
12295
|
+
}, $scope3_id, "d", 1, 1, 1, 0, 1);
|
|
12296
|
+
_html(`<button${_attr_class(new_workspace_module_default.curRemove)}${_attr("title", `Remove ${repo.fullName}`)}${_attr("disabled", busy)}>×</button>${_el_resume($scope3_id, "e")}</li>`);
|
|
12245
12297
|
_script($scope3_id, "m12");
|
|
12246
12298
|
_subscribe($busy__closures, writeScope($scope3_id, {
|
|
12247
|
-
|
|
12248
|
-
|
|
12299
|
+
h: repo?.fullName,
|
|
12300
|
+
i: repo?.baseBranch,
|
|
12249
12301
|
Ca3: 2
|
|
12250
12302
|
}));
|
|
12251
|
-
}, "fullName", $scope2_id, "
|
|
12303
|
+
}, "fullName", $scope2_id, "j", 1, 1, 1, 0, 1);
|
|
12252
12304
|
_if(() => {
|
|
12253
12305
|
if (!selected.length) {
|
|
12254
12306
|
const $scope10_id = _scope_id();
|
|
12255
|
-
_html(
|
|
12307
|
+
_html(`<li${_attr_class(new_workspace_module_default.emptyNote)}>No repos yet — search below to add one (or create empty).</li>`);
|
|
12256
12308
|
writeScope($scope10_id, {});
|
|
12257
12309
|
return 0;
|
|
12258
12310
|
}
|
|
12259
|
-
}, $scope2_id, "
|
|
12311
|
+
}, $scope2_id, "k", 1, 1, 1, 0, 1);
|
|
12260
12312
|
_html("</ul>");
|
|
12261
12313
|
const $childScope2 = _peek_scope_id();
|
|
12262
12314
|
let refreshCatalog = repo_picker_default({
|
|
@@ -12272,7 +12324,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
12272
12324
|
catalogRefreshing = v;
|
|
12273
12325
|
}, "m8", $scope2_id)
|
|
12274
12326
|
});
|
|
12275
|
-
_var($scope2_id, "
|
|
12327
|
+
_var($scope2_id, "m", $childScope2, "m13");
|
|
12276
12328
|
_html("</section>");
|
|
12277
12329
|
_if(() => {
|
|
12278
12330
|
if (busy && steps.length) {
|
|
@@ -12284,7 +12336,7 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
12284
12336
|
_if(() => {
|
|
12285
12337
|
if (i === steps.length - 1) {
|
|
12286
12338
|
const $scope11_id = _scope_id();
|
|
12287
|
-
_html(
|
|
12339
|
+
_html(`<span${_attr_class(ui_module_default.spin)}></span>`);
|
|
12288
12340
|
writeScope($scope11_id, {});
|
|
12289
12341
|
return 0;
|
|
12290
12342
|
} else {
|
|
@@ -12300,12 +12352,12 @@ var new_workspace_default = _template("m", (input) => {
|
|
|
12300
12352
|
_subscribe($steps__closures, writeScope($scope6_id, {}));
|
|
12301
12353
|
return 0;
|
|
12302
12354
|
}
|
|
12303
|
-
}, $scope2_id, "
|
|
12355
|
+
}, $scope2_id, "n", 1, 1, 1, 0, 1);
|
|
12304
12356
|
_script($scope2_id, "m14");
|
|
12305
12357
|
_subscribe($addRepo2__closures, _subscribe($steps_length__closures, _subscribe($error__closures, _subscribe($busy__closures, _subscribe($selected_length__closures, _subscribe($selected__closures, _subscribe($catalogRefreshing__closures, _subscribe($name__closures, writeScope($scope2_id, {
|
|
12306
|
-
|
|
12358
|
+
o: refreshCatalog,
|
|
12307
12359
|
_: _scope_with_id($scope0_id),
|
|
12308
|
-
|
|
12360
|
+
l: _existing_scope($childScope2),
|
|
12309
12361
|
Cz: 1,
|
|
12310
12362
|
Ca3: 1
|
|
12311
12363
|
})))))))));
|
|
@@ -12384,12 +12436,12 @@ function diffUncommitted() {
|
|
|
12384
12436
|
return get("diff-uncommitted") === "1";
|
|
12385
12437
|
}
|
|
12386
12438
|
var work_view_module_default = {
|
|
12387
|
-
workView: "
|
|
12388
|
-
mainCol: "
|
|
12389
|
-
termArea: "
|
|
12390
|
-
asBar: "
|
|
12391
|
-
padInline: "
|
|
12392
|
-
emptySess: "
|
|
12439
|
+
workView: "_8",
|
|
12440
|
+
mainCol: "_9",
|
|
12441
|
+
termArea: "__",
|
|
12442
|
+
asBar: "_ba",
|
|
12443
|
+
padInline: "_bb",
|
|
12444
|
+
emptySess: "_bc"
|
|
12393
12445
|
};
|
|
12394
12446
|
//#endregion
|
|
12395
12447
|
//#region src/client/api.ts
|
|
@@ -12454,21 +12506,39 @@ function vapidKey(base64) {
|
|
|
12454
12506
|
return Uint8Array.from(raw, (c) => c.charCodeAt(0));
|
|
12455
12507
|
}
|
|
12456
12508
|
var side_nav_module_default = {
|
|
12457
|
-
iconBtn: "
|
|
12458
|
-
spinning: "
|
|
12459
|
-
navToggle: "
|
|
12460
|
-
notifyBtn: "
|
|
12461
|
-
sideNav: "
|
|
12462
|
-
open: "
|
|
12463
|
-
sideList: "
|
|
12464
|
-
sideRail: "
|
|
12465
|
-
sideFoot: "
|
|
12466
|
-
|
|
12467
|
-
|
|
12468
|
-
|
|
12469
|
-
|
|
12509
|
+
iconBtn: "_cC _bQ",
|
|
12510
|
+
spinning: "_cD _bR",
|
|
12511
|
+
navToggle: "_cE _bQ",
|
|
12512
|
+
notifyBtn: "_cF _bQ",
|
|
12513
|
+
sideNav: "_cG",
|
|
12514
|
+
open: "_cH",
|
|
12515
|
+
sideList: "_cI",
|
|
12516
|
+
sideRail: "_cJ",
|
|
12517
|
+
sideFoot: "_cK",
|
|
12518
|
+
footSpacer: "_cL",
|
|
12519
|
+
on: "_cM",
|
|
12520
|
+
drawerBackdrop: "_cN",
|
|
12521
|
+
closed: "_cO",
|
|
12522
|
+
railPop: "_cP"
|
|
12523
|
+
};
|
|
12524
|
+
var side_nav_item_module_default = {
|
|
12525
|
+
railBtn: "_ea _bQ",
|
|
12526
|
+
current: "_eb",
|
|
12527
|
+
railDot: "_ec",
|
|
12528
|
+
ws: "_ed",
|
|
12529
|
+
railPopWs: "_ee",
|
|
12530
|
+
wsRow: "_ef",
|
|
12531
|
+
wsBtn: "_eg",
|
|
12532
|
+
wsName: "_eh",
|
|
12533
|
+
rowIcon: "_ei",
|
|
12534
|
+
close: "_ej",
|
|
12535
|
+
sess: "_ek",
|
|
12536
|
+
armed: "_el",
|
|
12537
|
+
sessions: "_em",
|
|
12538
|
+
sessBtn: "_en",
|
|
12539
|
+
sessIcon: "_eo",
|
|
12540
|
+
newSessionPop: "_ep"
|
|
12470
12541
|
};
|
|
12471
|
-
var side_nav_item_module_default = { railBtn: "_dk _7" };
|
|
12472
12542
|
//#endregion
|
|
12473
12543
|
//#region src/tags/icons/icon-edit.marko
|
|
12474
12544
|
var icon_edit_default = _template("F", (input) => {
|
|
@@ -12487,23 +12557,16 @@ var icon_edit_default = _template("F", (input) => {
|
|
|
12487
12557
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
12488
12558
|
});
|
|
12489
12559
|
var side_nav_chips_module_default = {
|
|
12490
|
-
sideChips: "
|
|
12491
|
-
|
|
12492
|
-
|
|
12493
|
-
|
|
12494
|
-
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
armed: "_ds"
|
|
12560
|
+
sideChips: "_eq",
|
|
12561
|
+
prBtn: "_er",
|
|
12562
|
+
rejected: "_es",
|
|
12563
|
+
portChip: "_et",
|
|
12564
|
+
portOpen: "_eu",
|
|
12565
|
+
portKill: "_ev",
|
|
12566
|
+
armed: "_ew"
|
|
12498
12567
|
};
|
|
12499
12568
|
//#endregion
|
|
12500
12569
|
//#region src/tags/side-nav-chips.marko
|
|
12501
|
-
var $class = [
|
|
12502
|
-
"\"chip pr\"",
|
|
12503
|
-
"\"chip pr draft\"",
|
|
12504
|
-
"\"chip pr rejected\"",
|
|
12505
|
-
"\"chip pr draft rejected\""
|
|
12506
|
-
];
|
|
12507
12570
|
var side_nav_chips_default = _template("r", (input) => {
|
|
12508
12571
|
const $scope0_reason = _scope_reason(), $sg__input_status_repos = _serialize_guard($scope0_reason, 1), $si__input_status_repos = _serialize_if($scope0_reason, 1), $sg__input_status_ports = _serialize_guard($scope0_reason, 2), $sg__input_status_repos__OR__input_status_ports = _serialize_guard($scope0_reason, 0), $si__input_status_repos__OR__input_status_ports = _serialize_if($scope0_reason, 0);
|
|
12509
12572
|
const $scope0_id = _scope_id();
|
|
@@ -12533,7 +12596,15 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
12533
12596
|
const $scope2_id = _scope_id();
|
|
12534
12597
|
_for_of(repo.prs || [], (pr) => {
|
|
12535
12598
|
const $scope3_id = _scope_id();
|
|
12536
|
-
_html(`<button type=button
|
|
12599
|
+
_html(`<button type=button${_attr_class([
|
|
12600
|
+
ui_module_default.chip,
|
|
12601
|
+
ui_module_default.pr,
|
|
12602
|
+
side_nav_chips_module_default.prBtn,
|
|
12603
|
+
{
|
|
12604
|
+
[ui_module_default.draft]: pr.isDraft,
|
|
12605
|
+
[side_nav_chips_module_default.rejected]: pr.reviewDecision === "CHANGES_REQUESTED"
|
|
12606
|
+
}
|
|
12607
|
+
])}${_attr("title", `${repo.worktree} — ${pr.title}${pr.reviewDecision === "APPROVED" ? " (approved)" : pr.reviewDecision === "CHANGES_REQUESTED" ? " (changes requested)" : ""}`)}>${_escape(repoLabel(repo))}${_el_resume($scope3_id, "b", $sg__input_status_repos)}#${_sep($sg__input_status_repos)}${_escape(pr.number)}${_el_resume($scope3_id, "c", $sg__input_status_repos)}${_sep($sg__input_status_repos)}${pr.reviewDecision === "APPROVED" ? " ✓" : pr.reviewDecision === "CHANGES_REQUESTED" ? " ✗" : ""}${_el_resume($scope3_id, "d", $sg__input_status_repos)}</button>${_el_resume($scope3_id, "a")}`);
|
|
12537
12608
|
_script($scope3_id, "r2");
|
|
12538
12609
|
_subscribe($si__input_status_repos && $if_content__repoLabel__closures, writeScope($scope3_id, {
|
|
12539
12610
|
l: pr?.number,
|
|
@@ -12548,7 +12619,7 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
12548
12619
|
}, "full_name", $scope1_id, "b", $sg__input_status_repos, $sg__input_status_repos, $sg__input_status_repos__OR__input_status_ports);
|
|
12549
12620
|
_for_of(ports, (p) => {
|
|
12550
12621
|
const $scope4_id = _scope_id();
|
|
12551
|
-
_html(`<span${_attr_class([
|
|
12622
|
+
_html(`<span${_attr_class([ui_module_default.chip, side_nav_chips_module_default.portChip])}${_attr("title", p.cmd)}><button type=button${_attr_class(side_nav_chips_module_default.portOpen)}${_attr("title", `Open http://${typeof location === "undefined" ? "localhost" : location.hostname}:${p.port}`)}>:${_sep($sg__input_status_ports)}${_escape(p.port)}${_el_resume($scope4_id, "c", $sg__input_status_ports)}</button>${_el_resume($scope4_id, "b")}<button type=button${_attr_class([side_nav_chips_module_default.portKill, { [side_nav_chips_module_default.armed]: armedPid === p.pid }])}${armedPid === p.pid ? _attr("title", `Really kill ${p.cmd}?`) : _attr("title", `Kill ${p.cmd} (pid ${p.pid})`)}>×</button>${_el_resume($scope4_id, "d")}</span>${_el_resume($scope4_id, "a", $sg__input_status_ports)}`);
|
|
12552
12623
|
_script($scope4_id, "r3");
|
|
12553
12624
|
_subscribe($armedPid__closures, writeScope($scope4_id, {
|
|
12554
12625
|
g: p?.cmd,
|
|
@@ -12581,7 +12652,7 @@ var side_nav_chips_default = _template("r", (input) => {
|
|
|
12581
12652
|
//#endregion
|
|
12582
12653
|
//#region src/tags/side-nav-item.marko
|
|
12583
12654
|
var side_nav_item_default = _template("s", (input) => {
|
|
12584
|
-
const $scope0_reason = _scope_reason(), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_onReview = _serialize_guard($scope0_reason,
|
|
12655
|
+
const $scope0_reason = _scope_reason(), $sg__input_workspaceId__OR__input_status = _serialize_guard($scope0_reason, 1), $sg__input_onReview = _serialize_guard($scope0_reason, 19), $sg__input_agents = _serialize_guard($scope0_reason, 21), $si__input_agents = _serialize_if($scope0_reason, 21), $sg__input_onReview__OR__input_onNewSession = _serialize_guard($scope0_reason, 3), $sg__input_onNewSession = _serialize_guard($scope0_reason, 20), $sg__input_sessions = _serialize_guard($scope0_reason, 22), $si__input_current = _serialize_if($scope0_reason, 16), $si__input_sessions = _serialize_if($scope0_reason, 22), $si__input_workspaces__OR__input_workspaceId = _serialize_if($scope0_reason, 0), $sg__input_rail = _serialize_guard($scope0_reason, 15), $si__input_rail = _serialize_if($scope0_reason, 15), $sg__input_workspaces__OR__input_workspaceId = _serialize_guard($scope0_reason, 0), $si__input_workspaces__OR__input_workspaceId__OR__input_rail = _serialize_if($scope0_reason, 6), $si__input_index = _serialize_if($scope0_reason, 17), $si__input_currentTab = _serialize_if($scope0_reason, 23), $si__input_railPop = _serialize_if($scope0_reason, 18), $si__input_onReview = _serialize_if($scope0_reason, 19), $si__input_onNewSession = _serialize_if($scope0_reason, 20), $si__input_onReviewPr = _serialize_if($scope0_reason, 24);
|
|
12585
12656
|
const $scope0_id = _scope_id();
|
|
12586
12657
|
const $input_current__closures = /* @__PURE__ */ new Set();
|
|
12587
12658
|
const $input_index__closures = /* @__PURE__ */ new Set();
|
|
@@ -12589,6 +12660,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
12589
12660
|
const $input_agents__closures = /* @__PURE__ */ new Set();
|
|
12590
12661
|
const $input_currentTab__closures = /* @__PURE__ */ new Set();
|
|
12591
12662
|
const $armedKill__closures = /* @__PURE__ */ new Set();
|
|
12663
|
+
const $input_railPop__closures = /* @__PURE__ */ new Set();
|
|
12592
12664
|
const $input_onReview__closures = /* @__PURE__ */ new Set();
|
|
12593
12665
|
const $input_onNewSession__closures = /* @__PURE__ */ new Set();
|
|
12594
12666
|
const $input_sessions__closures = /* @__PURE__ */ new Set();
|
|
@@ -12611,41 +12683,44 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
12611
12683
|
_if(() => {
|
|
12612
12684
|
if (input.rail) {
|
|
12613
12685
|
const $scope2_id = _scope_id();
|
|
12614
|
-
_html(`<button${_attr_class([
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
])}
|
|
12686
|
+
_html(`<button${_attr_class([side_nav_item_module_default.railBtn, { [side_nav_item_module_default.current]: input.current }])}${_attr("title", ws.name)}>${_escape((input.index ?? 0) + 1)}${_el_resume($scope2_id, "b", _serialize_guard($scope0_reason, 17))}<span${_attr_class([
|
|
12687
|
+
ui_module_default.dot,
|
|
12688
|
+
ui_module_default[dot],
|
|
12689
|
+
side_nav_item_module_default.railDot
|
|
12690
|
+
])}></span>${_el_resume($scope2_id, "c", $sg__input_workspaceId__OR__input_status)}</button>${_el_resume($scope2_id, "a")}`);
|
|
12619
12691
|
_script($scope2_id, "s1");
|
|
12620
12692
|
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_index && $input_index__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope2_id, { _: _scope_with_id($scope1_id) }))));
|
|
12621
12693
|
return 0;
|
|
12622
12694
|
} else {
|
|
12623
12695
|
const $scope3_id = _scope_id();
|
|
12624
|
-
_html(`<section
|
|
12696
|
+
_html(`<section${_attr_class([side_nav_item_module_default.ws, {
|
|
12697
|
+
[side_nav_item_module_default.current]: input.current,
|
|
12698
|
+
[side_nav_item_module_default.railPopWs]: input.railPop
|
|
12699
|
+
}])}><div${_attr_class(side_nav_item_module_default.wsRow)}><button${_attr_class(side_nav_item_module_default.wsBtn)}><span${_attr_class([ui_module_default.dot, ui_module_default[dot]])}></span>${_el_resume($scope3_id, "d", $sg__input_workspaceId__OR__input_status)}<span${_attr_class(side_nav_item_module_default.wsName)}>${_escape(ws.name)}${_el_resume($scope3_id, "f", $sg__input_workspaces__OR__input_workspaceId)}</span></button>${_el_resume($scope3_id, "c")}`);
|
|
12625
12700
|
_if(() => {
|
|
12626
12701
|
if (input.onReview) {
|
|
12627
12702
|
const $scope4_id = _scope_id();
|
|
12628
|
-
_html(
|
|
12703
|
+
_html(`<button${_attr_class(side_nav_item_module_default.rowIcon)} title="Review changes">`);
|
|
12629
12704
|
icon_diff_default({ size: 12 });
|
|
12630
12705
|
_html(`</button>${_el_resume($scope4_id, "a")}`);
|
|
12631
12706
|
_script($scope4_id, "s2");
|
|
12632
12707
|
writeScope($scope4_id, { _: _scope_with_id($scope3_id) });
|
|
12633
12708
|
return 0;
|
|
12634
12709
|
}
|
|
12635
|
-
}, $scope3_id, "
|
|
12636
|
-
_html(
|
|
12710
|
+
}, $scope3_id, "g", $sg__input_onReview, $sg__input_onReview, $sg__input_onReview__OR__input_onNewSession, 0, 1);
|
|
12711
|
+
_html(`<button${_attr_class(side_nav_item_module_default.rowIcon)} title="Manage workspace">`);
|
|
12637
12712
|
icon_manage_default({ size: 12 });
|
|
12638
|
-
_html(`</button>${_el_resume($scope3_id, "
|
|
12713
|
+
_html(`</button>${_el_resume($scope3_id, "h")}`);
|
|
12639
12714
|
_if(() => {
|
|
12640
12715
|
if (input.onNewSession) {
|
|
12641
12716
|
const $scope5_id = _scope_id();
|
|
12642
12717
|
const newPopId = _id();
|
|
12643
|
-
_html(`<button
|
|
12718
|
+
_html(`<button${_attr_class(side_nav_item_module_default.rowIcon)} title="New session"${_attr("popovertarget", newPopId)}>`);
|
|
12644
12719
|
icon_agent_default({
|
|
12645
12720
|
agent: "shell",
|
|
12646
12721
|
size: 12
|
|
12647
12722
|
});
|
|
12648
|
-
_html(`</button>${_el_resume($scope5_id, "a")}<div${_attr("id", newPopId)} popover=auto
|
|
12723
|
+
_html(`</button>${_el_resume($scope5_id, "a")}<div${_attr("id", newPopId)} popover=auto${_attr_class(side_nav_item_module_default.newSessionPop)}>`);
|
|
12649
12724
|
_for_of([...input.agents || [], "shell"], (agent) => {
|
|
12650
12725
|
const $scope6_id = _scope_id();
|
|
12651
12726
|
_html("<button>");
|
|
@@ -12670,12 +12745,12 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
12670
12745
|
_subscribe($si__input_agents && $input_agents__closures, writeScope($scope5_id, { _: _scope_with_id($scope3_id) }));
|
|
12671
12746
|
return 0;
|
|
12672
12747
|
}
|
|
12673
|
-
}, $scope3_id, "
|
|
12748
|
+
}, $scope3_id, "j", $sg__input_onNewSession, $sg__input_onNewSession, $sg__input_onReview__OR__input_onNewSession);
|
|
12674
12749
|
const sessions = input.sessions || [];
|
|
12675
|
-
_html(
|
|
12750
|
+
_html(`</div><div${_attr_class(side_nav_item_module_default.sessions)}>`);
|
|
12676
12751
|
_for_of(sessions.length > 1 ? sessions : [], (s) => {
|
|
12677
12752
|
const $scope7_id = _scope_id();
|
|
12678
|
-
_html(`<div
|
|
12753
|
+
_html(`<div${_attr_class([side_nav_item_module_default.sess, { [side_nav_item_module_default.current]: s.id === input.currentTab }])}><button${_attr_class(side_nav_item_module_default.sessBtn)}><span${_attr_class([ui_module_default.dot, ui_module_default[sessionPhase(s.state)]])}></span>${_el_resume($scope7_id, "c", $sg__input_sessions)}`);
|
|
12679
12754
|
_set_serialize_reason({
|
|
12680
12755
|
1: $sg__input_sessions,
|
|
12681
12756
|
2: $sg__input_sessions
|
|
@@ -12684,11 +12759,11 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
12684
12759
|
icon_agent_default({
|
|
12685
12760
|
agent: s.agent,
|
|
12686
12761
|
size: 13,
|
|
12687
|
-
class:
|
|
12762
|
+
class: side_nav_item_module_default.sessIcon
|
|
12688
12763
|
});
|
|
12689
|
-
_html(`${_sep($sg__input_sessions)}${_escape(s.title || s.agent)}${_el_resume($scope7_id, "e", $sg__input_sessions)}</button>${_el_resume($scope7_id, "b")}<button
|
|
12764
|
+
_html(`${_sep($sg__input_sessions)}${_escape(s.title || s.agent)}${_el_resume($scope7_id, "e", $sg__input_sessions)}</button>${_el_resume($scope7_id, "b")}<button${_attr_class(side_nav_item_module_default.rowIcon)} title="Rename session">`);
|
|
12690
12765
|
icon_edit_default({ size: 12 });
|
|
12691
|
-
_html(`</button>${_el_resume($scope7_id, "f")}<button
|
|
12766
|
+
_html(`</button>${_el_resume($scope7_id, "f")}<button${_attr_class([side_nav_item_module_default.close, { [side_nav_item_module_default.armed]: armedKill === s.id }])} title=${armedKill === s.id ? "\"Really kill this session?\"" : "\"Kill session\""}>×</button>${_el_resume($scope7_id, "h")}</div>${_el_resume($scope7_id, "a", _serialize_guard($scope0_reason, 4))}`);
|
|
12692
12767
|
_script($scope7_id, "s5");
|
|
12693
12768
|
_subscribe($armedKill__closures, _subscribe($si__input_currentTab && $input_currentTab__closures, writeScope($scope7_id, {
|
|
12694
12769
|
j: s,
|
|
@@ -12696,7 +12771,7 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
12696
12771
|
_: _scope_with_id($scope3_id),
|
|
12697
12772
|
d: $si__input_sessions && _existing_scope($childScope2)
|
|
12698
12773
|
})));
|
|
12699
|
-
}, "id", $scope3_id, "
|
|
12774
|
+
}, "id", $scope3_id, "l", $sg__input_sessions, $sg__input_sessions, $sg__input_sessions, 0, 1);
|
|
12700
12775
|
_set_serialize_reason({
|
|
12701
12776
|
0: $sg__input_workspaceId__OR__input_status,
|
|
12702
12777
|
1: $sg__input_workspaceId__OR__input_status,
|
|
@@ -12707,17 +12782,17 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
12707
12782
|
status: st,
|
|
12708
12783
|
onReviewPr: input.onReviewPr
|
|
12709
12784
|
});
|
|
12710
|
-
_html(`</div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason,
|
|
12785
|
+
_html(`</div></section>${_el_resume($scope3_id, "a", _serialize_guard($scope0_reason, 2))}`);
|
|
12711
12786
|
_script($scope3_id, "s6");
|
|
12712
|
-
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_onReviewPr && $input_onReviewPr__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
|
|
12787
|
+
_subscribe($si__input_workspaces__OR__input_workspaceId && $ws_name__closures, _subscribe($si__input_onReviewPr && $input_onReviewPr__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_onReview && $input_onReview__closures, _subscribe($si__input_railPop && $input_railPop__closures, _subscribe($si__input_current && $input_current__closures, writeScope($scope3_id, {
|
|
12713
12788
|
_: _scope_with_id($scope1_id),
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
})))))));
|
|
12789
|
+
m: _serialize_if($scope0_reason, 8) && _existing_scope($childScope3),
|
|
12790
|
+
Ca5: $si__input_current && 1,
|
|
12791
|
+
Caf: $si__input_workspaces__OR__input_workspaceId && 1
|
|
12792
|
+
}))))))));
|
|
12718
12793
|
return 1;
|
|
12719
12794
|
}
|
|
12720
|
-
}, $scope1_id, "a", _serialize_guard($scope0_reason,
|
|
12795
|
+
}, $scope1_id, "a", _serialize_guard($scope0_reason, 7), $sg__input_rail, $sg__input_rail, 0, 1);
|
|
12721
12796
|
writeScope($scope1_id, {
|
|
12722
12797
|
b: $si__input_rail && st,
|
|
12723
12798
|
c: $si__input_rail && dot,
|
|
@@ -12725,39 +12800,41 @@ var side_nav_item_default = _template("s", (input) => {
|
|
|
12725
12800
|
});
|
|
12726
12801
|
return 0;
|
|
12727
12802
|
}
|
|
12728
|
-
}, $scope0_id, "a", _serialize_guard($scope0_reason,
|
|
12803
|
+
}, $scope0_id, "a", _serialize_guard($scope0_reason, 9), $sg__input_workspaces__OR__input_workspaceId, $sg__input_workspaces__OR__input_workspaceId);
|
|
12729
12804
|
writeScope($scope0_id, {
|
|
12730
|
-
d: _serialize_if($scope0_reason,
|
|
12731
|
-
e: _serialize_if($scope0_reason,
|
|
12805
|
+
d: _serialize_if($scope0_reason, 14) && input.workspaces,
|
|
12806
|
+
e: _serialize_if($scope0_reason, 5) && input.workspaceId,
|
|
12732
12807
|
g: $si__input_workspaces__OR__input_workspaceId && input.status,
|
|
12733
12808
|
h: $si__input_workspaces__OR__input_workspaceId && input.rail,
|
|
12734
|
-
i: $
|
|
12809
|
+
i: _serialize_if($scope0_reason, 11) && input.current,
|
|
12735
12810
|
j: input.onSelect,
|
|
12736
12811
|
k: $si__input_workspaces__OR__input_workspaceId__OR__input_rail && input.index,
|
|
12737
|
-
l: input.
|
|
12738
|
-
m: input.
|
|
12739
|
-
n: input.
|
|
12740
|
-
o:
|
|
12741
|
-
p: $
|
|
12742
|
-
q:
|
|
12743
|
-
r: input.
|
|
12744
|
-
s: input.
|
|
12745
|
-
t: input.
|
|
12746
|
-
u:
|
|
12747
|
-
v:
|
|
12748
|
-
|
|
12749
|
-
y:
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
a5: $
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
aa: $
|
|
12756
|
-
ac: $
|
|
12757
|
-
|
|
12758
|
-
a7: $
|
|
12759
|
-
|
|
12760
|
-
|
|
12812
|
+
l: _serialize_if($scope0_reason, 10) && input.railPop,
|
|
12813
|
+
m: input.onReview,
|
|
12814
|
+
n: input.onManage,
|
|
12815
|
+
o: input.onNewSession,
|
|
12816
|
+
p: _serialize_if($scope0_reason, 12) && input.agents,
|
|
12817
|
+
q: $si__input_workspaces__OR__input_workspaceId__OR__input_rail && input.sessions,
|
|
12818
|
+
r: _serialize_if($scope0_reason, 13) && input.currentTab,
|
|
12819
|
+
s: input.onOpenTab,
|
|
12820
|
+
t: input.onRenameSession,
|
|
12821
|
+
u: input.onCloseSession,
|
|
12822
|
+
v: $si__input_workspaces__OR__input_workspaceId__OR__input_rail && input.onReviewPr,
|
|
12823
|
+
w: armedKill,
|
|
12824
|
+
y: armBox.timer,
|
|
12825
|
+
z: arm,
|
|
12826
|
+
a1: $si__input_workspaces__OR__input_workspaceId__OR__input_rail && ws?.name,
|
|
12827
|
+
a5: $si__input_current && $input_current__closures,
|
|
12828
|
+
a6: $si__input_index && $input_index__closures,
|
|
12829
|
+
af: $si__input_workspaces__OR__input_workspaceId && $ws_name__closures,
|
|
12830
|
+
aa: $si__input_agents && $input_agents__closures,
|
|
12831
|
+
ac: $si__input_currentTab && $input_currentTab__closures,
|
|
12832
|
+
ae: $armedKill__closures,
|
|
12833
|
+
a7: $si__input_railPop && $input_railPop__closures,
|
|
12834
|
+
a8: $si__input_onReview && $input_onReview__closures,
|
|
12835
|
+
a9: $si__input_onNewSession && $input_onNewSession__closures,
|
|
12836
|
+
ab: $si__input_sessions && $input_sessions__closures,
|
|
12837
|
+
ad: $si__input_onReviewPr && $input_onReviewPr__closures
|
|
12761
12838
|
});
|
|
12762
12839
|
_resume_branch($scope0_id);
|
|
12763
12840
|
});
|
|
@@ -12849,7 +12926,7 @@ var icon_folder_plus_default = _template("G", (input) => {
|
|
|
12849
12926
|
//#endregion
|
|
12850
12927
|
//#region src/tags/side-nav.marko
|
|
12851
12928
|
var side_nav_default = _template("t", (input) => {
|
|
12852
|
-
const $scope0_reason = _scope_reason(), $
|
|
12929
|
+
const $scope0_reason = _scope_reason(), $sg__input_workspace__OR__input_allWorkspaces = _serialize_guard($scope0_reason, 0), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus = _serialize_guard($scope0_reason, 1), $sg__input_workspace__OR__input_allWorkspaces__OR__input_onNewSession = _serialize_guard($scope0_reason, 2), $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions = _serialize_guard($scope0_reason, 3), $sg__input_agents = _serialize_guard($scope0_reason, 14), $sg__input_workspace = _serialize_guard($scope0_reason, 4), $si__input_workspace = _serialize_if($scope0_reason, 4), $si__input_workspace__OR__input_allWorkspaces = _serialize_if($scope0_reason, 0), $si__input_allStatus = _serialize_if($scope0_reason, 12), $si__input_onSelectWorkspace = _serialize_if($scope0_reason, 13), $si__input_agents = _serialize_if($scope0_reason, 14), $si__input_onNewSession = _serialize_if($scope0_reason, 15), $si__input_onReviewOpened = _serialize_if($scope0_reason, 16), $si__input_sessions = _serialize_if($scope0_reason, 17), $si__input_onRenameSession = _serialize_if($scope0_reason, 18), $si__input_onCloseSession = _serialize_if($scope0_reason, 19);
|
|
12853
12930
|
const $scope0_id = _scope_id();
|
|
12854
12931
|
const $ws_id__closures = /* @__PURE__ */ new Set();
|
|
12855
12932
|
const $workspaces__closures = /* @__PURE__ */ new Set();
|
|
@@ -12905,23 +12982,26 @@ var side_nav_default = _template("t", (input) => {
|
|
|
12905
12982
|
_set_serialize_reason({
|
|
12906
12983
|
0: $sg__input_workspace__OR__input_allWorkspaces,
|
|
12907
12984
|
1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
12908
|
-
2:
|
|
12985
|
+
2: $sg__input_workspace__OR__input_allWorkspaces,
|
|
12909
12986
|
3: 1,
|
|
12910
|
-
4:
|
|
12911
|
-
5: $
|
|
12912
|
-
6: $
|
|
12987
|
+
4: 1,
|
|
12988
|
+
5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
12989
|
+
6: $sg__input_workspace__OR__input_allWorkspaces,
|
|
12913
12990
|
7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
12914
12991
|
8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
12915
|
-
9: $
|
|
12916
|
-
10: $
|
|
12992
|
+
9: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
12993
|
+
10: $sg__input_workspace__OR__input_allWorkspaces,
|
|
12917
12994
|
11: $sg__input_workspace__OR__input_allWorkspaces,
|
|
12918
|
-
|
|
12919
|
-
|
|
12920
|
-
|
|
12921
|
-
|
|
12922
|
-
18: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
12995
|
+
12: $sg__input_workspace__OR__input_allWorkspaces__OR__input_onNewSession,
|
|
12996
|
+
13: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
12997
|
+
14: $sg__input_workspace__OR__input_allWorkspaces,
|
|
12998
|
+
16: $sg__input_workspace__OR__input_allWorkspaces,
|
|
12923
12999
|
19: 1,
|
|
12924
|
-
20: $
|
|
13000
|
+
20: $sg__input_workspace__OR__input_allWorkspaces__OR__input_onNewSession,
|
|
13001
|
+
21: $sg__input_agents,
|
|
13002
|
+
22: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus__OR__input_sessions,
|
|
13003
|
+
23: 1,
|
|
13004
|
+
24: $sg__input_workspace
|
|
12925
13005
|
});
|
|
12926
13006
|
const $childScope = _peek_scope_id();
|
|
12927
13007
|
side_nav_item_default({
|
|
@@ -13000,16 +13080,19 @@ var side_nav_default = _template("t", (input) => {
|
|
|
13000
13080
|
_set_serialize_reason({
|
|
13001
13081
|
0: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13002
13082
|
1: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
13003
|
-
|
|
13004
|
-
5: $
|
|
13005
|
-
6: $
|
|
13083
|
+
2: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13084
|
+
5: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
13085
|
+
6: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13006
13086
|
7: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
13007
13087
|
8: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
13008
|
-
9: $
|
|
13088
|
+
9: $sg__input_workspace__OR__input_allWorkspaces__OR__input_allStatus,
|
|
13009
13089
|
10: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13010
13090
|
11: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13091
|
+
12: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13011
13092
|
13: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13012
|
-
14: $sg__input_workspace__OR__input_allWorkspaces
|
|
13093
|
+
14: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13094
|
+
16: $sg__input_workspace__OR__input_allWorkspaces,
|
|
13095
|
+
17: $sg__input_workspace__OR__input_allWorkspaces
|
|
13013
13096
|
});
|
|
13014
13097
|
const $childScope2 = _peek_scope_id();
|
|
13015
13098
|
side_nav_item_default({
|
|
@@ -13049,13 +13132,16 @@ var side_nav_default = _template("t", (input) => {
|
|
|
13049
13132
|
9: 1,
|
|
13050
13133
|
10: 1,
|
|
13051
13134
|
11: 1,
|
|
13135
|
+
12: 1,
|
|
13052
13136
|
13: 1,
|
|
13053
|
-
|
|
13137
|
+
14: 1,
|
|
13054
13138
|
16: 1,
|
|
13055
|
-
17: $sg__input_agents,
|
|
13056
|
-
18: 1,
|
|
13057
13139
|
19: 1,
|
|
13058
|
-
20:
|
|
13140
|
+
20: 1,
|
|
13141
|
+
21: $sg__input_agents,
|
|
13142
|
+
22: 1,
|
|
13143
|
+
23: 1,
|
|
13144
|
+
24: $sg__input_workspace
|
|
13059
13145
|
});
|
|
13060
13146
|
const $childScope3 = _peek_scope_id();
|
|
13061
13147
|
side_nav_item_default({
|
|
@@ -13063,6 +13149,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
13063
13149
|
workspaces,
|
|
13064
13150
|
status: allStatus,
|
|
13065
13151
|
current: hoverId === ws.id,
|
|
13152
|
+
railPop: true,
|
|
13066
13153
|
onSelect: _resume(function() {
|
|
13067
13154
|
railHover = null;
|
|
13068
13155
|
if (hoverId !== ws.id) input.onSelectWorkspace?.(hoverId);
|
|
@@ -13112,9 +13199,9 @@ var side_nav_default = _template("t", (input) => {
|
|
|
13112
13199
|
_subscribe($si__input_allStatus && $allStatus__closures, _subscribe($si__input_workspace__OR__input_allWorkspaces && $workspaces__closures, _subscribe($view__closures, _subscribe($tab__closures, _subscribe($si__input_workspace && $ws_id__closures, _subscribe($si__input_onCloseSession && $input_onCloseSession__closures, _subscribe($si__input_onRenameSession && $input_onRenameSession__closures, _subscribe($si__input_sessions && $input_sessions__closures, _subscribe($si__input_onReviewOpened && $input_onReviewOpened__closures, _subscribe($si__input_onNewSession && $input_onNewSession__closures, _subscribe($si__input_agents && $input_agents__closures, _subscribe($si__input_onSelectWorkspace && $input_onSelectWorkspace__closures, writeScope($scope4_id, {
|
|
13113
13200
|
c: hoverId,
|
|
13114
13201
|
b: _existing_scope($childScope3),
|
|
13115
|
-
|
|
13116
|
-
|
|
13117
|
-
|
|
13202
|
+
Cb3: $si__input_workspace && 1,
|
|
13203
|
+
Cb8: $si__input_workspace__OR__input_allWorkspaces && 1,
|
|
13204
|
+
Cb9: $si__input_allStatus && 1
|
|
13118
13205
|
})))))))))))));
|
|
13119
13206
|
return 0;
|
|
13120
13207
|
}
|
|
@@ -13144,7 +13231,7 @@ var side_nav_default = _template("t", (input) => {
|
|
|
13144
13231
|
return 1;
|
|
13145
13232
|
}
|
|
13146
13233
|
}, $scope0_id, "f", 1, 1, 1, "</button>", 1);
|
|
13147
|
-
_html(
|
|
13234
|
+
_html(`<div${_attr_class([ui_module_default.spacer, side_nav_module_default.footSpacer])}></div>`);
|
|
13148
13235
|
_if(() => {
|
|
13149
13236
|
if (pushSupported()) {
|
|
13150
13237
|
const $scope6_id = _scope_id();
|
|
@@ -13155,61 +13242,61 @@ var side_nav_default = _template("t", (input) => {
|
|
|
13155
13242
|
writeScope($scope6_id, { _: _scope_with_id($scope0_id) });
|
|
13156
13243
|
return 0;
|
|
13157
13244
|
}
|
|
13158
|
-
}, $scope0_id, "
|
|
13245
|
+
}, $scope0_id, "h", 1, 0, 1, 0, 1);
|
|
13159
13246
|
_html(`<button${_attr_class(side_nav_module_default.iconBtn)} title=Usage>`);
|
|
13160
13247
|
icon_gauge_default({ size: 15 });
|
|
13161
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
13248
|
+
_html(`</button>${_el_resume($scope0_id, "i")}<button${_attr_class(side_nav_module_default.iconBtn)} title="New workspace">`);
|
|
13162
13249
|
icon_folder_plus_default({ size: 16 });
|
|
13163
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
13250
|
+
_html(`</button>${_el_resume($scope0_id, "k")}</div></aside>${_el_resume($scope0_id, "b")}`);
|
|
13164
13251
|
_script($scope0_id, "t20");
|
|
13165
13252
|
_script($scope0_id, "t21");
|
|
13166
13253
|
writeScope($scope0_id, {
|
|
13167
|
-
|
|
13168
|
-
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
|
|
13172
|
-
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13177
|
-
|
|
13178
|
-
|
|
13179
|
-
|
|
13180
|
-
|
|
13181
|
-
|
|
13182
|
-
|
|
13183
|
-
|
|
13184
|
-
|
|
13185
|
-
|
|
13186
|
-
|
|
13187
|
-
|
|
13188
|
-
|
|
13189
|
-
|
|
13190
|
-
|
|
13191
|
-
|
|
13192
|
-
|
|
13193
|
-
|
|
13194
|
-
|
|
13195
|
-
|
|
13196
|
-
|
|
13197
|
-
|
|
13198
|
-
|
|
13199
|
-
|
|
13200
|
-
|
|
13201
|
-
|
|
13202
|
-
|
|
13203
|
-
|
|
13204
|
-
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
|
|
13208
|
-
|
|
13209
|
-
|
|
13210
|
-
|
|
13211
|
-
|
|
13212
|
-
|
|
13254
|
+
p: _serialize_if($scope0_reason, 6) && input.tab,
|
|
13255
|
+
q: _serialize_if($scope0_reason, 5) && input.tabChange,
|
|
13256
|
+
s: _serialize_if($scope0_reason, 8) && input.view,
|
|
13257
|
+
t: _serialize_if($scope0_reason, 7) && input.viewChange,
|
|
13258
|
+
v: _serialize_if($scope0_reason, 10) && input.drawerOpen,
|
|
13259
|
+
w: _serialize_if($scope0_reason, 9) && input.drawerOpenChange,
|
|
13260
|
+
y: input.onError,
|
|
13261
|
+
z: input.active,
|
|
13262
|
+
a0: $si__input_workspace && input.allWorkspaces,
|
|
13263
|
+
a2: input.onSelectWorkspace,
|
|
13264
|
+
a3: input.onManage,
|
|
13265
|
+
a4: input.agents,
|
|
13266
|
+
a5: input.onNewSession,
|
|
13267
|
+
a6: input.onReviewOpened,
|
|
13268
|
+
a7: input.sessions,
|
|
13269
|
+
a8: input.onOpenSession,
|
|
13270
|
+
a9: input.onRenameSession,
|
|
13271
|
+
aa: input.onCloseSession,
|
|
13272
|
+
ab: input.onUsage,
|
|
13273
|
+
ac: input.onNew,
|
|
13274
|
+
ad: _serialize_if($scope0_reason, 11) && ws,
|
|
13275
|
+
af: ws?.id,
|
|
13276
|
+
ah: tab,
|
|
13277
|
+
aj: view,
|
|
13278
|
+
al: drawerOpen,
|
|
13279
|
+
an: navOpen,
|
|
13280
|
+
ap: notifyOn,
|
|
13281
|
+
ar: toggleNotify,
|
|
13282
|
+
as: itemIds,
|
|
13283
|
+
at: workspaces,
|
|
13284
|
+
au: allStatus,
|
|
13285
|
+
ai: input.tabChange || void 0,
|
|
13286
|
+
ak: input.viewChange || void 0,
|
|
13287
|
+
am: input.drawerOpenChange || void 0,
|
|
13288
|
+
b3: $si__input_workspace && $ws_id__closures,
|
|
13289
|
+
b8: $si__input_workspace__OR__input_allWorkspaces && $workspaces__closures,
|
|
13290
|
+
b9: $si__input_allStatus && $allStatus__closures,
|
|
13291
|
+
aw: $si__input_onSelectWorkspace && $input_onSelectWorkspace__closures,
|
|
13292
|
+
ax: $si__input_agents && $input_agents__closures,
|
|
13293
|
+
ay: $si__input_onNewSession && $input_onNewSession__closures,
|
|
13294
|
+
az: $si__input_onReviewOpened && $input_onReviewOpened__closures,
|
|
13295
|
+
b0: $si__input_sessions && $input_sessions__closures,
|
|
13296
|
+
b1: $si__input_onRenameSession && $input_onRenameSession__closures,
|
|
13297
|
+
b2: $si__input_onCloseSession && $input_onCloseSession__closures,
|
|
13298
|
+
b4: $tab__closures,
|
|
13299
|
+
b5: $view__closures
|
|
13213
13300
|
});
|
|
13214
13301
|
_resume_branch($scope0_id);
|
|
13215
13302
|
});
|
|
@@ -13415,44 +13502,48 @@ function treeRows(files) {
|
|
|
13415
13502
|
return rows;
|
|
13416
13503
|
}
|
|
13417
13504
|
var diff_view_module_default = {
|
|
13418
|
-
iconBtn: "
|
|
13419
|
-
spinning: "
|
|
13420
|
-
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
|
|
13424
|
-
|
|
13425
|
-
|
|
13426
|
-
|
|
13427
|
-
|
|
13428
|
-
|
|
13429
|
-
|
|
13430
|
-
|
|
13431
|
-
|
|
13432
|
-
|
|
13433
|
-
|
|
13434
|
-
|
|
13435
|
-
|
|
13436
|
-
|
|
13437
|
-
|
|
13438
|
-
|
|
13439
|
-
|
|
13440
|
-
|
|
13441
|
-
|
|
13442
|
-
|
|
13505
|
+
iconBtn: "_b_ _bQ",
|
|
13506
|
+
spinning: "_ca _bR",
|
|
13507
|
+
diffView: "_cb",
|
|
13508
|
+
treeToggle: "_cc _bQ",
|
|
13509
|
+
diffTools: "_cd",
|
|
13510
|
+
on: "_ce",
|
|
13511
|
+
diffCol: "_cf",
|
|
13512
|
+
diffHead: "_cg",
|
|
13513
|
+
findBtn: "_ch",
|
|
13514
|
+
diffMain: "_ci",
|
|
13515
|
+
toastMeta: "_cj",
|
|
13516
|
+
diffStats: "_ck",
|
|
13517
|
+
twoDot: "_cl",
|
|
13518
|
+
repoSection: "_cm",
|
|
13519
|
+
repoSep: "_cn",
|
|
13520
|
+
repoWorktree: "_co _l",
|
|
13521
|
+
repoTitle: "_cp _k",
|
|
13522
|
+
repoMeta: "_cq",
|
|
13523
|
+
files: "_cr",
|
|
13524
|
+
file: "_cs",
|
|
13525
|
+
diffWait: "_ct",
|
|
13526
|
+
treeChev: "_cu",
|
|
13527
|
+
status: "_cv",
|
|
13528
|
+
path: "_cw",
|
|
13529
|
+
viewed: "_cx",
|
|
13530
|
+
centerPad: "_cy",
|
|
13531
|
+
filesBtn: "_cz",
|
|
13532
|
+
findLabel: "_cA",
|
|
13533
|
+
diffPad: "_cB"
|
|
13443
13534
|
};
|
|
13444
13535
|
var diff_tree_module_default = {
|
|
13445
|
-
tree: "
|
|
13446
|
-
closed: "
|
|
13447
|
-
treeRepo: "
|
|
13448
|
-
treeRepoName: "
|
|
13449
|
-
treeDir: "
|
|
13450
|
-
treeFile: "
|
|
13451
|
-
seen: "
|
|
13452
|
-
treeFileName: "
|
|
13453
|
-
treeNote: "
|
|
13454
|
-
treeChev: "
|
|
13455
|
-
status: "
|
|
13536
|
+
tree: "_dU",
|
|
13537
|
+
closed: "_dV",
|
|
13538
|
+
treeRepo: "_dW",
|
|
13539
|
+
treeRepoName: "_dX",
|
|
13540
|
+
treeDir: "_dY",
|
|
13541
|
+
treeFile: "_dZ",
|
|
13542
|
+
seen: "_d0",
|
|
13543
|
+
treeFileName: "_d1",
|
|
13544
|
+
treeNote: "_d2",
|
|
13545
|
+
treeChev: "_d3",
|
|
13546
|
+
status: "_d4"
|
|
13456
13547
|
};
|
|
13457
13548
|
//#endregion
|
|
13458
13549
|
//#region src/tags/diff-tree.marko
|
|
@@ -13500,7 +13591,7 @@ var diff_tree_default = _template("h", (input) => {
|
|
|
13500
13591
|
return 0;
|
|
13501
13592
|
} else if (!hiddenByCollapse(row) && row.kind !== "dir") {
|
|
13502
13593
|
const $scope4_id = _scope_id();
|
|
13503
|
-
_html(`<button type=button${_attr_class([diff_tree_module_default.treeFile, { [diff_tree_module_default.seen]: viewed.has(row.file.key) }])}${_attr("title", row.file.path)}${_attr_style(`padding-left:${.5 + row.depth * .75}rem`)}><span${_attr_class(
|
|
13594
|
+
_html(`<button type=button${_attr_class([diff_tree_module_default.treeFile, { [diff_tree_module_default.seen]: viewed.has(row.file.key) }])}${_attr("title", row.file.path)}${_attr_style(`padding-left:${.5 + row.depth * .75}rem`)}><span${_attr_class(diff_tree_module_default.status)}${_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(diff_tree_module_default.treeFileName)}>${_escape(row.name)}${_el_resume($scope4_id, "e", $sg__input_sections)}</span>`);
|
|
13504
13595
|
_if(() => {
|
|
13505
13596
|
if (commentKeys.has(row.file.key)) {
|
|
13506
13597
|
const $scope6_id = _scope_id();
|
|
@@ -13576,7 +13667,7 @@ var icon_back_default = _template("z", (input) => {
|
|
|
13576
13667
|
});
|
|
13577
13668
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
13578
13669
|
});
|
|
13579
|
-
var diff_send_module_default = { headActions: "
|
|
13670
|
+
var diff_send_module_default = { headActions: "_dS" };
|
|
13580
13671
|
//#endregion
|
|
13581
13672
|
//#region src/tags/diff-send.marko
|
|
13582
13673
|
var diff_send_default = _template("g", (input) => {
|
|
@@ -13586,18 +13677,18 @@ var diff_send_default = _template("g", (input) => {
|
|
|
13586
13677
|
let sendTarget = null;
|
|
13587
13678
|
const sessions = input.sessions || [];
|
|
13588
13679
|
const sendPick = sessions.some((s) => s.id === sendTarget) ? sendTarget : sessions[0]?.id ?? null;
|
|
13589
|
-
_html(`<span${_attr_class(diff_send_module_default.headActions)}><button type=button
|
|
13680
|
+
_html(`<span${_attr_class(diff_send_module_default.headActions)}><button type=button${_attr_class(ui_module_default.btn)} title="Copy comments as markdown">Copy${_el_resume($scope0_id, "c")}</button>${_el_resume($scope0_id, "b")}`);
|
|
13590
13681
|
_if(() => {
|
|
13591
13682
|
if (sessions.length === 1) {
|
|
13592
13683
|
const $scope1_id = _scope_id();
|
|
13593
|
-
_html(`<button type=button
|
|
13684
|
+
_html(`<button type=button${_attr_class([ui_module_default.btn, ui_module_default.primary])}${_attr("disabled", sending)}>${`Send to ${_escape(`${sessions[0].title || sessions[0].agent}`)}`}${_el_resume($scope1_id, "b")}</button>${_el_resume($scope1_id, "a")}`);
|
|
13594
13685
|
_script($scope1_id, "g1");
|
|
13595
13686
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
13596
13687
|
return 0;
|
|
13597
13688
|
} else if (sessions.length) {
|
|
13598
13689
|
const $scope2_id = _scope_id();
|
|
13599
|
-
_html(`<span
|
|
13600
|
-
_attr_select_value($scope2_id, "
|
|
13690
|
+
_html(`<span${_attr_class(ui_module_default.splitPrimary)}><button type=button${_attr("disabled", sending)}>Send to${_el_resume($scope2_id, "c")}</button>${_el_resume($scope2_id, "b")}`);
|
|
13691
|
+
_attr_select_value($scope2_id, "d", sendTarget, _resume((_new_sendTarget) => {
|
|
13601
13692
|
sendTarget = _new_sendTarget;
|
|
13602
13693
|
}, "g0", $scope2_id), () => {
|
|
13603
13694
|
_html(`<select aria-label="Send comments to session"${_attr("disabled", sending)}>`);
|
|
@@ -13605,7 +13696,7 @@ var diff_send_default = _template("g", (input) => {
|
|
|
13605
13696
|
const $scope3_id = _scope_id();
|
|
13606
13697
|
_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)}`);
|
|
13607
13698
|
$si__input_sessions && writeScope($scope3_id, {});
|
|
13608
|
-
}, "id", $scope2_id, "
|
|
13699
|
+
}, "id", $scope2_id, "d", $sg__input_sessions, 1, $sg__input_sessions, "</select>", 1);
|
|
13609
13700
|
});
|
|
13610
13701
|
_html("</span>");
|
|
13611
13702
|
_script($scope2_id, "g2");
|
|
@@ -13645,8 +13736,8 @@ var icon_search_default = _template("N", (input) => {
|
|
|
13645
13736
|
_serialize_if($scope0_reason, 0) && writeScope($scope0_id, { a: _existing_scope($childScope) });
|
|
13646
13737
|
});
|
|
13647
13738
|
var file_filter_module_default = {
|
|
13648
|
-
wrap: "
|
|
13649
|
-
fileFilter: "
|
|
13739
|
+
wrap: "_d9",
|
|
13740
|
+
fileFilter: "_d_"
|
|
13650
13741
|
};
|
|
13651
13742
|
//#endregion
|
|
13652
13743
|
//#region src/tags/file-filter.marko
|
|
@@ -13752,10 +13843,10 @@ function clip(line, at, len) {
|
|
|
13752
13843
|
return (start > 0 ? "…" : "") + line.slice(start, end) + (end < line.length ? "…" : "");
|
|
13753
13844
|
}
|
|
13754
13845
|
var diff_find_module_default = {
|
|
13755
|
-
findBar: "
|
|
13756
|
-
findInput: "
|
|
13757
|
-
count: "
|
|
13758
|
-
findIconBtn: "
|
|
13846
|
+
findBar: "_d5",
|
|
13847
|
+
findInput: "_d6",
|
|
13848
|
+
count: "_d7",
|
|
13849
|
+
findIconBtn: "_d8 _bQ"
|
|
13759
13850
|
};
|
|
13760
13851
|
//#endregion
|
|
13761
13852
|
//#region src/tags/diff-find.marko
|
|
@@ -13830,7 +13921,7 @@ var diff_find_default = _template("f", (input) => {
|
|
|
13830
13921
|
});
|
|
13831
13922
|
_resume_branch($scope0_id);
|
|
13832
13923
|
});
|
|
13833
|
-
var diff_file_module_default = { diffFile: "
|
|
13924
|
+
var diff_file_module_default = { diffFile: "_dT" };
|
|
13834
13925
|
_template("e", (input) => {
|
|
13835
13926
|
_scope_reason();
|
|
13836
13927
|
const $scope0_id = _scope_id();
|
|
@@ -13850,16 +13941,17 @@ _template("e", (input) => {
|
|
|
13850
13941
|
_resume_branch($scope0_id);
|
|
13851
13942
|
});
|
|
13852
13943
|
var diff_file_sheet_module_default = {
|
|
13853
|
-
iconBtn: "
|
|
13854
|
-
spinning: "
|
|
13855
|
-
sheetBackdrop: "
|
|
13856
|
-
fileSheet: "
|
|
13857
|
-
sheetHead: "
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
|
|
13861
|
-
|
|
13862
|
-
|
|
13944
|
+
iconBtn: "_dH _bQ",
|
|
13945
|
+
spinning: "_dI _bR",
|
|
13946
|
+
sheetBackdrop: "_dJ",
|
|
13947
|
+
fileSheet: "_dK",
|
|
13948
|
+
sheetHead: "_dL",
|
|
13949
|
+
viewedCount: "_dM _k",
|
|
13950
|
+
sheetList: "_dN",
|
|
13951
|
+
sheetFile: "_dO",
|
|
13952
|
+
seen: "_dP",
|
|
13953
|
+
sheetPath: "_dQ",
|
|
13954
|
+
status: "_dR"
|
|
13863
13955
|
};
|
|
13864
13956
|
//#endregion
|
|
13865
13957
|
//#region src/tags/diff-file-sheet.marko
|
|
@@ -13875,14 +13967,14 @@ var diff_file_sheet_default = _template("d", (input) => {
|
|
|
13875
13967
|
_if(() => {
|
|
13876
13968
|
if (open) {
|
|
13877
13969
|
const $scope1_id = _scope_id();
|
|
13878
|
-
_html(`<div${_attr_class(diff_file_sheet_module_default.sheetBackdrop)}></div>${_el_resume($scope1_id, "a")}<div${_attr_class(diff_file_sheet_module_default.fileSheet)} role=dialog aria-label="Jump to file"><div${_attr_class(diff_file_sheet_module_default.sheetHead)}><strong>Files</strong><span
|
|
13970
|
+
_html(`<div${_attr_class(diff_file_sheet_module_default.sheetBackdrop)}></div>${_el_resume($scope1_id, "a")}<div${_attr_class(diff_file_sheet_module_default.fileSheet)} role=dialog aria-label="Jump to file"><div${_attr_class(diff_file_sheet_module_default.sheetHead)}><strong>Files</strong><span${_attr_class(diff_file_sheet_module_default.viewedCount)}>${_escape(viewed.size)}${_el_resume($scope1_id, "e", _serialize_guard($scope0_reason, 6))}/${_sep($sg__input_total__OR__input_files_length)}${_escape(total)}${_el_resume($scope1_id, "f", $sg__input_total__OR__input_files_length)} viewed</span><button type=button${_attr_class(diff_file_sheet_module_default.iconBtn)} title=Close aria-label=Close>×</button>${_el_resume($scope1_id, "g")}</div><div${_attr_class(diff_file_sheet_module_default.sheetList)}>`);
|
|
13879
13971
|
_for_of(input.files, (file) => {
|
|
13880
13972
|
const $scope2_id = _scope_id();
|
|
13881
13973
|
_html(`<button type=button${_attr_class([
|
|
13882
13974
|
diff_file_sheet_module_default.sheetFile,
|
|
13883
|
-
|
|
13975
|
+
ui_module_default.mono,
|
|
13884
13976
|
{ [diff_file_sheet_module_default.seen]: viewed.has(file.key) }
|
|
13885
|
-
])}><span${_attr_class(
|
|
13977
|
+
])}><span${_attr_class(diff_file_sheet_module_default.status)}${_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(diff_file_sheet_module_default.sheetPath)}${_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)}`);
|
|
13886
13978
|
_if(() => {
|
|
13887
13979
|
if (commentKeys.has(file.key)) {
|
|
13888
13980
|
const $scope3_id = _scope_id();
|
|
@@ -13894,7 +13986,7 @@ var diff_file_sheet_default = _template("d", (input) => {
|
|
|
13894
13986
|
_if(() => {
|
|
13895
13987
|
if (viewed.has(file.key)) {
|
|
13896
13988
|
const $scope4_id = _scope_id();
|
|
13897
|
-
_html(
|
|
13989
|
+
_html(`<span${_attr_class(ui_module_default.dim)}>✓</span>`);
|
|
13898
13990
|
_serialize_if($scope0_reason, 0) && writeScope($scope4_id, {});
|
|
13899
13991
|
return 0;
|
|
13900
13992
|
}
|
|
@@ -13905,7 +13997,7 @@ var diff_file_sheet_default = _template("d", (input) => {
|
|
|
13905
13997
|
j: file?.key,
|
|
13906
13998
|
_: _scope_with_id($scope1_id)
|
|
13907
13999
|
})));
|
|
13908
|
-
}, "key", $scope1_id, "
|
|
14000
|
+
}, "key", $scope1_id, "h", $sg__input_files, $sg__input_files, $sg__input_files, "</div>", 1);
|
|
13909
14001
|
_html("</div>");
|
|
13910
14002
|
_script($scope1_id, "d1");
|
|
13911
14003
|
writeScope($scope1_id, {});
|
|
@@ -14173,7 +14265,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14173
14265
|
findState = next;
|
|
14174
14266
|
if (next.hit) setTimeout(() => jumpTo(next.hit.key), 0);
|
|
14175
14267
|
}, "i16", $scope0_id);
|
|
14176
|
-
_html(
|
|
14268
|
+
_html(`<div${_attr_class(diff_view_module_default.diffView)}>`);
|
|
14177
14269
|
_set_serialize_reason(238);
|
|
14178
14270
|
const $childScope = _peek_scope_id();
|
|
14179
14271
|
diff_tree_default({
|
|
@@ -14198,8 +14290,8 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14198
14290
|
writeScope($scope1_id, { _: _scope_with_id($scope0_id) });
|
|
14199
14291
|
return 0;
|
|
14200
14292
|
}
|
|
14201
|
-
}, $scope0_id, "
|
|
14202
|
-
_html(`<span${_attr_class(diff_view_module_default.diffStats)}>${_escape(allFiles.length)}${_el_resume($scope0_id, "
|
|
14293
|
+
}, $scope0_id, "e", $sg__input_onExit, $sg__input_onExit, 1, 0, 1);
|
|
14294
|
+
_html(`<span${_attr_class(diff_view_module_default.diffStats)}>${_escape(allFiles.length)}${_el_resume($scope0_id, "g")} file<!>${allFiles.length === 1 ? "" : "s"}${_el_resume($scope0_id, "h")} changed <!>${viewed.size ? ` · ${_escape(`${_to_text(viewed.size)}`)} viewed` : ""}${_el_resume($scope0_id, "i")}<!>${comments.length ? `· ${_escape(`${_to_text(comments.length)}`)} comment${_escape(`${_to_text(comments.length === 1 ? "" : "s")}`)}` : ""}${_el_resume($scope0_id, "j")}</span>`);
|
|
14203
14295
|
_if(() => {
|
|
14204
14296
|
if (comments.length) {
|
|
14205
14297
|
const $scope2_id = _scope_id();
|
|
@@ -14213,18 +14305,18 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14213
14305
|
writeScope($scope2_id, { a: _existing_scope($childScope2) });
|
|
14214
14306
|
return 0;
|
|
14215
14307
|
}
|
|
14216
|
-
}, $scope0_id, "
|
|
14308
|
+
}, $scope0_id, "k", 1, 1, 1, 0, 1);
|
|
14217
14309
|
_html(`</div><div${_attr_class(diff_view_module_default.diffTools)}><button${_attr_class([diff_view_module_default.treeToggle, { [diff_view_module_default.on]: treeOpen }])} title=${treeOpen ? "\"Hide file tree\"" : "\"Show file tree\""}>`);
|
|
14218
14310
|
icon_sidebar_default({ size: 14 });
|
|
14219
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
14311
|
+
_html(`</button>${_el_resume($scope0_id, "m")}<button${_attr_class([diff_view_module_default.iconBtn, { [diff_view_module_default.spinning]: loading }])} title="Refresh diff"${_attr("disabled", loading)}>`);
|
|
14220
14312
|
icon_refresh_default({ size: 14 });
|
|
14221
|
-
_html(`</button>${_el_resume($scope0_id, "
|
|
14222
|
-
|
|
14313
|
+
_html(`</button>${_el_resume($scope0_id, "o")}<button${_attr_class([ui_module_default.btn, diff_view_module_default.filesBtn])} title="Jump to file">Files (<!>${_escape(shownFiles.length)}${_el_resume($scope0_id, "r")})</button>${_el_resume($scope0_id, "q")}<button${_attr_class([
|
|
14314
|
+
ui_module_default.btn,
|
|
14223
14315
|
diff_view_module_default.findBtn,
|
|
14224
14316
|
{ [diff_view_module_default.on]: findOpen }
|
|
14225
14317
|
])} title="Find in the review (⌘/Ctrl+F)">`);
|
|
14226
14318
|
icon_search_default({ size: 14 });
|
|
14227
|
-
_html(`<span${_attr_class(diff_view_module_default.findLabel)}>Find</span></button>${_el_resume($scope0_id, "
|
|
14319
|
+
_html(`<span${_attr_class(diff_view_module_default.findLabel)}>Find</span></button>${_el_resume($scope0_id, "s")}<label${_attr_class(diff_view_module_default.twoDot)} title="Include uncommitted and untracked files in the review. Off by default — the review is commit-to-commit."><input${_attr_input_checked($scope0_id, "w", uncommitted)} type=checkbox>${_el_resume($scope0_id, "w")} include uncommitted</label>`);
|
|
14228
14320
|
_set_serialize_reason(2);
|
|
14229
14321
|
const $childScope3 = _peek_scope_id();
|
|
14230
14322
|
file_filter_default({
|
|
@@ -14253,8 +14345,8 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14253
14345
|
writeScope($scope20_id, { a: _existing_scope($childScope4) });
|
|
14254
14346
|
return 0;
|
|
14255
14347
|
}
|
|
14256
|
-
}, $scope0_id, "
|
|
14257
|
-
_html(
|
|
14348
|
+
}, $scope0_id, "y", 1, 1, 1, 0, 1);
|
|
14349
|
+
_html(`<div${_attr_class(diff_view_module_default.diffMain)} data-diff-main>`);
|
|
14258
14350
|
_if(() => {
|
|
14259
14351
|
if (error) {
|
|
14260
14352
|
const $scope9_id = _scope_id();
|
|
@@ -14273,7 +14365,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14273
14365
|
writeScope($scope9_id, {});
|
|
14274
14366
|
return 0;
|
|
14275
14367
|
}
|
|
14276
|
-
}, $scope0_id, "
|
|
14368
|
+
}, $scope0_id, "a0", 1, 1, 1, 0, 1);
|
|
14277
14369
|
_for_of(repoList.filter((r) => r.baseMissing), (repo) => {
|
|
14278
14370
|
const $scope14_id = _scope_id();
|
|
14279
14371
|
const $for_content3__repo_base__closures = /* @__PURE__ */ new Set();
|
|
@@ -14296,7 +14388,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14296
14388
|
f: $for_content3__repo_base__closures,
|
|
14297
14389
|
a: _existing_scope($childScope5)
|
|
14298
14390
|
});
|
|
14299
|
-
}, "id", $scope0_id, "
|
|
14391
|
+
}, "id", $scope0_id, "a1", 1, 1, 1, 0, 1);
|
|
14300
14392
|
_for_of(repoList.filter((r) => r.contained && r.files.length), (repo) => {
|
|
14301
14393
|
const $scope16_id = _scope_id();
|
|
14302
14394
|
const $for_content4__repo_base__closures = /* @__PURE__ */ new Set();
|
|
@@ -14312,7 +14404,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14312
14404
|
_html(`already in <!>${_escape(repo.base)}${_el_resume($scope17_id, "a")}<!>${uncommitted ? " — showing uncommitted changes only" : ""}${_el_resume($scope17_id, "b")}.`);
|
|
14313
14405
|
_subscribe($for_content4__repo_base__closures, _subscribe($uncommitted__closures, writeScope($scope17_id, {
|
|
14314
14406
|
_: _scope_with_id($scope16_id),
|
|
14315
|
-
|
|
14407
|
+
Ccu: 1
|
|
14316
14408
|
})));
|
|
14317
14409
|
_resume_branch($scope17_id);
|
|
14318
14410
|
}, $scope16_id)
|
|
@@ -14322,7 +14414,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14322
14414
|
h: $for_content4__repo_base__closures,
|
|
14323
14415
|
a: _existing_scope($childScope6)
|
|
14324
14416
|
});
|
|
14325
|
-
}, "id", $scope0_id, "
|
|
14417
|
+
}, "id", $scope0_id, "a2", 1, 1, 1, 0, 1);
|
|
14326
14418
|
_if(() => {
|
|
14327
14419
|
if (driftRepos.length) {
|
|
14328
14420
|
const $scope11_id = _scope_id();
|
|
@@ -14338,7 +14430,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14338
14430
|
action: attrTag({ content: _content_resume("i34", () => {
|
|
14339
14431
|
_scope_reason();
|
|
14340
14432
|
const $scope12_id = _scope_id();
|
|
14341
|
-
_html(`<button
|
|
14433
|
+
_html(`<button${_attr_class(ui_module_default.btn)}${_attr("disabled", loading)}>${loading ? "Reloading…" : "Reload"}${_el_resume($scope12_id, "b")}</button>${_el_resume($scope12_id, "a")}`);
|
|
14342
14434
|
_script($scope12_id, "i33");
|
|
14343
14435
|
_subscribe($loading__closures, writeScope($scope12_id, { _: _scope_with_id($scope11_id) }));
|
|
14344
14436
|
_resume_branch($scope12_id);
|
|
@@ -14346,18 +14438,18 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14346
14438
|
content: _content_resume("i35", () => {
|
|
14347
14439
|
_scope_reason();
|
|
14348
14440
|
const $scope25_id = _scope_id();
|
|
14349
|
-
_html(
|
|
14441
|
+
_html(`<span${_attr_class(ui_module_default.dim)}>`);
|
|
14350
14442
|
_for_of(driftRepos, (repo, i) => {
|
|
14351
14443
|
const $scope26_id = _scope_id();
|
|
14352
14444
|
_html(`${i > 0 ? " · " : ""}${_el_resume($scope26_id, "a")}<!>${_escape(repo.worktree)}${_el_resume($scope26_id, "b")} #<!>${_escape(repo.pr.number)}${_el_resume($scope26_id, "c")}`);
|
|
14353
14445
|
writeScope($scope26_id, {});
|
|
14354
|
-
}, "id", $scope25_id, "
|
|
14355
|
-
_html(` — this view has a newer tip than the PR page.</span><span${_attr_class([
|
|
14446
|
+
}, "id", $scope25_id, "b");
|
|
14447
|
+
_html(` — this view has a newer tip than the PR page.</span><span${_attr_class([ui_module_default.mono, diff_view_module_default.toastMeta])}>`);
|
|
14356
14448
|
_for_of(driftRepos, (repo, i) => {
|
|
14357
14449
|
const $scope27_id = _scope_id();
|
|
14358
14450
|
_html(`<span${_attr("title", `origin/${repo.pr.headRefName} ${repo.head} · GitHub ${repo.pr.headRefOid}`)}>${i > 0 ? " · " : ""}${_el_resume($scope27_id, "b")}<!>${_escape(shortSha(repo.head))}${_el_resume($scope27_id, "c")} → <!>${_escape(shortSha(repo.pr.headRefOid))}${_el_resume($scope27_id, "d")}</span>${_el_resume($scope27_id, "a")}`);
|
|
14359
14451
|
writeScope($scope27_id, {});
|
|
14360
|
-
}, "id", $scope25_id, "
|
|
14452
|
+
}, "id", $scope25_id, "c", 1, 1, 1, "</span>", 1);
|
|
14361
14453
|
_subscribe($driftRepos__closures, writeScope($scope25_id, { _: _scope_with_id($scope11_id) }));
|
|
14362
14454
|
_resume_branch($scope25_id);
|
|
14363
14455
|
}, $scope11_id)
|
|
@@ -14365,7 +14457,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14365
14457
|
writeScope($scope11_id, { a: _existing_scope($childScope7) });
|
|
14366
14458
|
return 0;
|
|
14367
14459
|
}
|
|
14368
|
-
}, $scope0_id, "
|
|
14460
|
+
}, $scope0_id, "a3", 1, 1, 1, 0, 1);
|
|
14369
14461
|
_for_of(localDifferList, (repo) => {
|
|
14370
14462
|
const $scope18_id = _scope_id();
|
|
14371
14463
|
const $for_content5__repo_head__closures = /* @__PURE__ */ new Set();
|
|
@@ -14384,7 +14476,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14384
14476
|
_html(`this view is <!>${_escape(shortSha(repo.head))}${_el_resume($scope19_id, "a")} (<!>${_escape(repo.pr.headRefName)}${_el_resume($scope19_id, "b")}). Local is <!>${_escape(shortSha(repo.localHead))}${_el_resume($scope19_id, "c")} (<!>${_escape(repo.branch)}${_el_resume($scope19_id, "d")}<!>${uncommitted ? ", plus uncommitted" : ""}${_el_resume($scope19_id, "e")}).`);
|
|
14385
14477
|
_subscribe($for_content5__repo_branch__closures, _subscribe($for_content5__repo_localHead__closures, _subscribe($for_content5__repo_pr_headRefName__closures, _subscribe($for_content5__repo_head__closures, _subscribe($uncommitted__closures, writeScope($scope19_id, {
|
|
14386
14478
|
_: _scope_with_id($scope18_id),
|
|
14387
|
-
|
|
14479
|
+
Ccu: 2
|
|
14388
14480
|
}))))));
|
|
14389
14481
|
_resume_branch($scope19_id);
|
|
14390
14482
|
}, $scope18_id)
|
|
@@ -14400,7 +14492,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14400
14492
|
o: $for_content5__repo_branch__closures,
|
|
14401
14493
|
a: _existing_scope($childScope8)
|
|
14402
14494
|
});
|
|
14403
|
-
}, "id", $scope0_id, "
|
|
14495
|
+
}, "id", $scope0_id, "a4", 1, 1, 1, 0, 1);
|
|
14404
14496
|
_if(() => {
|
|
14405
14497
|
if (repos && !allFiles.length) {
|
|
14406
14498
|
const $scope23_id = _scope_id();
|
|
@@ -14413,7 +14505,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14413
14505
|
writeScope($scope13_id, {});
|
|
14414
14506
|
return 1;
|
|
14415
14507
|
}
|
|
14416
|
-
}, $scope0_id, "
|
|
14508
|
+
}, $scope0_id, "a5", 1, 1, 1, 0, 1);
|
|
14417
14509
|
_for_of(repoList, (repo) => {
|
|
14418
14510
|
const $scope3_id = _scope_id();
|
|
14419
14511
|
const $for_content__repo_pr_number__closures = /* @__PURE__ */ new Set();
|
|
@@ -14439,11 +14531,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14439
14531
|
_if(() => {
|
|
14440
14532
|
if (repoList.length > 1) {
|
|
14441
14533
|
const $scope21_id = _scope_id();
|
|
14442
|
-
_html(`<button${_attr_class(diff_view_module_default.repoSep)}><span${_attr_class(diff_view_module_default.treeChev)}>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope21_id, "c")}</span><span
|
|
14534
|
+
_html(`<button${_attr_class(diff_view_module_default.repoSep)}><span${_attr_class(diff_view_module_default.treeChev)}>${collapsedRepos.has(repo.id) ? "▸" : "▾"}${_el_resume($scope21_id, "c")}</span><span${_attr_class(diff_view_module_default.repoWorktree)}>${_escape(repo.worktree)}${_el_resume($scope21_id, "e")}</span>`);
|
|
14443
14535
|
_if(() => {
|
|
14444
14536
|
if (repo.pr) {
|
|
14445
14537
|
const $scope28_id = _scope_id();
|
|
14446
|
-
_html(`<a
|
|
14538
|
+
_html(`<a${_attr_class([ui_module_default.chip, ui_module_default.pr])}${_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($scope28_id, "b")}</a>${_el_resume($scope28_id, "a")}<span${_attr_class(diff_view_module_default.repoTitle)}>${_escape(repo.pr.title)}${_el_resume($scope28_id, "d")}</span>`);
|
|
14447
14539
|
_script($scope28_id, "i37");
|
|
14448
14540
|
_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($scope28_id, {
|
|
14449
14541
|
Ca4: 2,
|
|
@@ -14453,23 +14545,23 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14453
14545
|
return 0;
|
|
14454
14546
|
} else {
|
|
14455
14547
|
const $scope29_id = _scope_id();
|
|
14456
|
-
_html(`<span
|
|
14548
|
+
_html(`<span${_attr_class(diff_view_module_default.repoTitle)}>${_escape(repo.full_name)}${_el_resume($scope29_id, "b")}</span>`);
|
|
14457
14549
|
_subscribe($for_content__repo_full_name__closures, writeScope($scope29_id, {}));
|
|
14458
14550
|
return 1;
|
|
14459
14551
|
}
|
|
14460
|
-
}, $scope21_id, "
|
|
14461
|
-
_html(`<span
|
|
14552
|
+
}, $scope21_id, "f");
|
|
14553
|
+
_html(`<span${_attr_class([ui_module_default.chip, ui_module_default.lane])}${_attr("title", `${repo.pr ? "PR head" : "checked out"} ${repo.pr ? repo.pr.headRefName : repo.branch} ${repo.head}`)}>on <!>${repo.pr ? _escape(repo.pr.headRefName) : _escape(repo.branch)}${_el_resume($scope21_id, "h")}</span>${_el_resume($scope21_id, "g")}<span${_attr_class(ui_module_default.chip)}${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope21_id, "j")}</span>${_el_resume($scope21_id, "i")}`);
|
|
14462
14554
|
_if(() => {
|
|
14463
14555
|
if (localDifferIds.has(repo.id)) {
|
|
14464
14556
|
const $scope30_id = _scope_id();
|
|
14465
|
-
_html(`<span
|
|
14557
|
+
_html(`<span${_attr_class(ui_module_default.chip)}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope30_id, "b")}</span>${_el_resume($scope30_id, "a")}`);
|
|
14466
14558
|
_subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, writeScope($scope30_id, { Ca8: 2 })));
|
|
14467
14559
|
return 0;
|
|
14468
14560
|
}
|
|
14469
|
-
}, $scope21_id, "
|
|
14561
|
+
}, $scope21_id, "k", 1, 1, 1, 0, 1);
|
|
14470
14562
|
_html(`</button>${_el_resume($scope21_id, "a")}`);
|
|
14471
14563
|
_script($scope21_id, "i38");
|
|
14472
|
-
_subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_worktree__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, _subscribe($collapsedRepos__closures, writeScope($scope21_id, {
|
|
14564
|
+
_subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_worktree__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, _subscribe($collapsedRepos__closures, writeScope($scope21_id, { Ccz: 1 }))))))))));
|
|
14473
14565
|
return 0;
|
|
14474
14566
|
} else {
|
|
14475
14567
|
const $scope24_id = _scope_id();
|
|
@@ -14477,7 +14569,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14477
14569
|
_if(() => {
|
|
14478
14570
|
if (repo.pr) {
|
|
14479
14571
|
const $scope31_id = _scope_id();
|
|
14480
|
-
_html(`<a
|
|
14572
|
+
_html(`<a${_attr_class([ui_module_default.chip, ui_module_default.pr])}${_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($scope31_id, "b")}</a>${_el_resume($scope31_id, "a")}<span${_attr_class(ui_module_default.dim)}>${_escape(repo.pr.title)}${_el_resume($scope31_id, "d")}</span>`);
|
|
14481
14573
|
_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($scope31_id, {
|
|
14482
14574
|
Ca0: 1,
|
|
14483
14575
|
Ca1: 1,
|
|
@@ -14490,11 +14582,11 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14490
14582
|
return 0;
|
|
14491
14583
|
}
|
|
14492
14584
|
}, $scope24_id, "b");
|
|
14493
|
-
_html(`<span
|
|
14585
|
+
_html(`<span${_attr_class([ui_module_default.chip, ui_module_default.lane])}${_attr("title", `${repo.pr ? "PR head" : "checked out"} ${repo.pr ? repo.pr.headRefName : repo.branch} ${repo.head}`)}>on <!>${repo.pr ? _escape(repo.pr.headRefName) : _escape(repo.branch)}${_el_resume($scope24_id, "d")}</span>${_el_resume($scope24_id, "c")}<span${_attr_class(ui_module_default.chip)}${_attr("title", `${repo.base} ${repo.baseSha}`)}>vs <!>${_escape(repo.base)}${_el_resume($scope24_id, "f")}</span>${_el_resume($scope24_id, "e")}`);
|
|
14494
14586
|
_if(() => {
|
|
14495
14587
|
if (localDifferIds.has(repo.id)) {
|
|
14496
14588
|
const $scope32_id = _scope_id();
|
|
14497
|
-
_html(`<span
|
|
14589
|
+
_html(`<span${_attr_class(ui_module_default.chip)}${_attr("title", `checked out ${repo.branch} ${repo.localHead}`)}>local <!>${_escape(repo.branch)}${_el_resume($scope32_id, "b")}</span>${_el_resume($scope32_id, "a")}`);
|
|
14498
14590
|
_subscribe($for_content__repo_localHead__closures, _subscribe($for_content__repo_branch__closures, writeScope($scope32_id, {
|
|
14499
14591
|
Ca8: 3,
|
|
14500
14592
|
Ca9: 1
|
|
@@ -14504,7 +14596,7 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14504
14596
|
}, $scope24_id, "g", 1, 1, 1, 0, 1);
|
|
14505
14597
|
_html("</p>");
|
|
14506
14598
|
_subscribe($for_content__repo_branch__closures, _subscribe($for_content__repo_baseSha__closures, _subscribe($for_content__repo_base__closures, _subscribe($for_content__repo_head__closures, _subscribe($for_content__repo_pr__closures, _subscribe($for_content__repo_id__closures, _subscribe($localDifferIds__closures, writeScope($scope24_id, {
|
|
14507
|
-
|
|
14599
|
+
Cd8: 1,
|
|
14508
14600
|
Cx: 1,
|
|
14509
14601
|
Cy: 1,
|
|
14510
14602
|
Ca4: 1,
|
|
@@ -14526,18 +14618,18 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14526
14618
|
const $for_content2__fileComments__closures = /* @__PURE__ */ new Set();
|
|
14527
14619
|
const fileComments = commentsByFile.get(file.key) || [];
|
|
14528
14620
|
let expanded = !viewed.has(file.key);
|
|
14529
|
-
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded)}${_attr_class(diff_view_module_default.file)}${_attr("data-key", file.key)}${_attr("hidden", !shownKeySet.has(file.key))}><summary><span${_attr_class(
|
|
14621
|
+
_html(`<details${_attr_details_or_dialog_open($scope6_id, "a", expanded)}${_attr_class(diff_view_module_default.file)}${_attr("data-key", file.key)}${_attr("hidden", !shownKeySet.has(file.key))}><summary><span${_attr_class(diff_view_module_default.status)}${_attr("data-status", file.status)}>${_escape(file.status)}${_el_resume($scope6_id, "c")}</span>${_el_resume($scope6_id, "b")}<span${_attr_class(diff_view_module_default.path)}${_attr("title", file.path)}><bdi>${_escape(file.path)}${_el_resume($scope6_id, "e")}</bdi></span>${_el_resume($scope6_id, "d")}`);
|
|
14530
14622
|
_if(() => {
|
|
14531
14623
|
if (fileComments.length) {
|
|
14532
14624
|
const $scope33_id = _scope_id();
|
|
14533
|
-
_html(`<span
|
|
14625
|
+
_html(`<span${_attr_class(ui_module_default.chip)}>💬 <!>${_escape(fileComments.length)}${_el_resume($scope33_id, "b")}</span>`);
|
|
14534
14626
|
writeScope($scope33_id, {});
|
|
14535
14627
|
return 0;
|
|
14536
14628
|
}
|
|
14537
14629
|
}, $scope6_id, "f", 1, 1, 1, 0, 1);
|
|
14538
14630
|
_html(`<label${_attr_class(diff_view_module_default.viewed)}><input${_attr_input_checked($scope6_id, "h", viewed.has(file.key), _resume(function() {
|
|
14539
14631
|
toggleViewed(file.key);
|
|
14540
|
-
}, "i0", $scope6_id))} type=checkbox>${_el_resume($scope6_id, "h")}<span
|
|
14632
|
+
}, "i0", $scope6_id))} type=checkbox>${_el_resume($scope6_id, "h")}<span${_attr_class(ui_module_default.dim)}>viewed</span></label>${_el_resume($scope6_id, "g")}</summary>`);
|
|
14541
14633
|
_if(() => {
|
|
14542
14634
|
if (file.binary) {
|
|
14543
14635
|
const $scope34_id = _scope_id();
|
|
@@ -14568,22 +14660,22 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14568
14660
|
writeScope($scope7_id, {});
|
|
14569
14661
|
return 3;
|
|
14570
14662
|
}
|
|
14571
|
-
}, $scope6_id, "
|
|
14663
|
+
}, $scope6_id, "j");
|
|
14572
14664
|
_html(`</details>${_el_resume($scope6_id, "a")}`);
|
|
14573
14665
|
_script($scope6_id, "i40");
|
|
14574
14666
|
_subscribe($toggleViewed2__closures, _subscribe($commentsByFile__closures, _subscribe($shownKeySet__closures, _subscribe($viewed__closures, writeScope($scope6_id, {
|
|
14575
|
-
|
|
14576
|
-
|
|
14577
|
-
|
|
14578
|
-
|
|
14579
|
-
|
|
14580
|
-
|
|
14581
|
-
|
|
14582
|
-
|
|
14583
|
-
|
|
14584
|
-
|
|
14585
|
-
|
|
14586
|
-
|
|
14667
|
+
l: file,
|
|
14668
|
+
m: file?.key,
|
|
14669
|
+
t: file?.binary,
|
|
14670
|
+
u: file?.tooLarge,
|
|
14671
|
+
v: file?.old,
|
|
14672
|
+
w: file?.new,
|
|
14673
|
+
x: fileComments,
|
|
14674
|
+
y: fileComments.length,
|
|
14675
|
+
z: expanded,
|
|
14676
|
+
a1: $for_content2__file__closures,
|
|
14677
|
+
a2: $for_content2__file_key__closures,
|
|
14678
|
+
a3: $for_content2__fileComments__closures
|
|
14587
14679
|
})))));
|
|
14588
14680
|
}, "key", $scope5_id, "a", 1, 1, 1, "</div>", 1);
|
|
14589
14681
|
_subscribe($for_content__repoFiles__closures, writeScope($scope5_id, {}));
|
|
@@ -14626,8 +14718,8 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14626
14718
|
z: $for_content__repo_worktree__closures,
|
|
14627
14719
|
aa: $for_content__repoFiles__closures
|
|
14628
14720
|
});
|
|
14629
|
-
}, "id", $scope0_id, "
|
|
14630
|
-
_html(`</div>${_el_resume($scope0_id, "
|
|
14721
|
+
}, "id", $scope0_id, "a6");
|
|
14722
|
+
_html(`</div>${_el_resume($scope0_id, "z")}</div>`);
|
|
14631
14723
|
_set_serialize_reason(4030);
|
|
14632
14724
|
const $childScope10 = _peek_scope_id();
|
|
14633
14725
|
diff_file_sheet_default({
|
|
@@ -14646,119 +14738,119 @@ var diff_view_default = _template("i", (input) => {
|
|
|
14646
14738
|
_script($scope0_id, "i42");
|
|
14647
14739
|
_script($scope0_id, "i43");
|
|
14648
14740
|
writeScope($scope0_id, {
|
|
14649
|
-
|
|
14650
|
-
|
|
14651
|
-
|
|
14652
|
-
|
|
14653
|
-
|
|
14654
|
-
|
|
14655
|
-
|
|
14656
|
-
|
|
14657
|
-
|
|
14658
|
-
|
|
14659
|
-
|
|
14660
|
-
|
|
14661
|
-
|
|
14662
|
-
|
|
14663
|
-
|
|
14664
|
-
|
|
14665
|
-
|
|
14666
|
-
|
|
14667
|
-
|
|
14668
|
-
|
|
14669
|
-
|
|
14670
|
-
|
|
14671
|
-
|
|
14672
|
-
|
|
14673
|
-
|
|
14674
|
-
|
|
14675
|
-
|
|
14676
|
-
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14680
|
-
|
|
14681
|
-
|
|
14682
|
-
|
|
14683
|
-
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
|
|
14687
|
-
|
|
14688
|
-
|
|
14689
|
-
|
|
14690
|
-
|
|
14691
|
-
|
|
14692
|
-
|
|
14693
|
-
|
|
14694
|
-
|
|
14695
|
-
|
|
14696
|
-
|
|
14697
|
-
|
|
14698
|
-
|
|
14699
|
-
|
|
14700
|
-
|
|
14701
|
-
|
|
14702
|
-
|
|
14703
|
-
|
|
14704
|
-
|
|
14705
|
-
|
|
14706
|
-
|
|
14707
|
-
|
|
14708
|
-
|
|
14709
|
-
|
|
14710
|
-
|
|
14711
|
-
|
|
14712
|
-
|
|
14713
|
-
|
|
14714
|
-
|
|
14715
|
-
|
|
14716
|
-
|
|
14717
|
-
|
|
14718
|
-
|
|
14719
|
-
|
|
14720
|
-
|
|
14721
|
-
|
|
14722
|
-
|
|
14741
|
+
aa: input.workspaceId,
|
|
14742
|
+
ab: input.focusPr,
|
|
14743
|
+
ac: input.active,
|
|
14744
|
+
ad: input.focusNonce,
|
|
14745
|
+
ae: input.onSent,
|
|
14746
|
+
af: input.onExit,
|
|
14747
|
+
ag: input.sessions,
|
|
14748
|
+
ah: repos,
|
|
14749
|
+
ai: comments,
|
|
14750
|
+
ak: viewed,
|
|
14751
|
+
an: draft,
|
|
14752
|
+
ap: error,
|
|
14753
|
+
aq: loading,
|
|
14754
|
+
ar: fileFilter,
|
|
14755
|
+
as: uncommitted,
|
|
14756
|
+
at: treeOpen,
|
|
14757
|
+
av: findOpen,
|
|
14758
|
+
aw: findTick,
|
|
14759
|
+
az: findState?.query,
|
|
14760
|
+
b1: findState?.hit,
|
|
14761
|
+
b2: findState?.hit?.key,
|
|
14762
|
+
b3: findState?.hit?.repo,
|
|
14763
|
+
b4: collapsedRepos,
|
|
14764
|
+
b5: dismissedDrift,
|
|
14765
|
+
b7: nearBox.cbs,
|
|
14766
|
+
b8: nearBox.io,
|
|
14767
|
+
ba: observeNear,
|
|
14768
|
+
bb: focusPrSection,
|
|
14769
|
+
bd: headBox.sig,
|
|
14770
|
+
bf: headBox.timer,
|
|
14771
|
+
bg: load,
|
|
14772
|
+
bi: loadReview,
|
|
14773
|
+
bj: reload,
|
|
14774
|
+
bl: reloadSoon,
|
|
14775
|
+
bn: repoList,
|
|
14776
|
+
bp: repoList.length,
|
|
14777
|
+
bq: allFiles,
|
|
14778
|
+
bs: allFiles?.length,
|
|
14779
|
+
bt: fileFiltered,
|
|
14780
|
+
bu: findKeys,
|
|
14781
|
+
c0: shownKeySet,
|
|
14782
|
+
c1: filesByRepo,
|
|
14783
|
+
c2: shownByRepo,
|
|
14784
|
+
c4: commentsByFile,
|
|
14785
|
+
c8: localDifferIds,
|
|
14786
|
+
c9: driftRepos,
|
|
14787
|
+
cc: dismissDrift,
|
|
14788
|
+
cd: toggleViewed,
|
|
14789
|
+
ce: saveComment,
|
|
14790
|
+
cf: removeComment,
|
|
14791
|
+
cg: clearComments,
|
|
14792
|
+
cj: copyMarkdown,
|
|
14793
|
+
ck: sendTo,
|
|
14794
|
+
cl: jumpTo,
|
|
14795
|
+
cm: openFind,
|
|
14796
|
+
cn: onFindState,
|
|
14797
|
+
b: _existing_scope($childScope),
|
|
14798
|
+
x: _existing_scope($childScope3),
|
|
14799
|
+
cr: $error__closures,
|
|
14800
|
+
cu: $uncommitted__closures,
|
|
14801
|
+
cs: $loading__closures,
|
|
14802
|
+
d9: $driftRepos__closures,
|
|
14803
|
+
cz: $collapsedRepos__closures,
|
|
14804
|
+
d8: $localDifferIds__closures,
|
|
14805
|
+
cq: $draft__closures,
|
|
14806
|
+
dc: $saveComment2__closures,
|
|
14807
|
+
dd: $removeComment2__closures,
|
|
14808
|
+
cp: $viewed__closures,
|
|
14809
|
+
d4: $shownKeySet__closures,
|
|
14810
|
+
d7: $commentsByFile__closures,
|
|
14811
|
+
db: $toggleViewed2__closures,
|
|
14812
|
+
cy: $findState_hit_repo__closures,
|
|
14813
|
+
d2: $repoList_length__closures,
|
|
14814
|
+
a7: _existing_scope($childScope10)
|
|
14723
14815
|
});
|
|
14724
14816
|
_resume_branch($scope0_id);
|
|
14725
14817
|
});
|
|
14726
14818
|
var term_module_default = {
|
|
14727
|
-
iconBtn: "
|
|
14728
|
-
termWrap: "
|
|
14729
|
-
term: "
|
|
14730
|
-
xterm: "
|
|
14731
|
-
termDead: "
|
|
14732
|
-
termCopied: "
|
|
14733
|
-
termCopiedFade: "
|
|
14734
|
-
termUploading: "
|
|
14735
|
-
trapBackdrop: "
|
|
14736
|
-
pasteTrap: "
|
|
14737
|
-
kbSlot: "
|
|
14738
|
-
keyBar: "
|
|
14739
|
-
kspacer: "
|
|
14740
|
-
sessBtn: "
|
|
14741
|
-
sessDot: "
|
|
14742
|
-
sessPop: "
|
|
14743
|
-
sessRow: "
|
|
14744
|
-
current: "
|
|
14745
|
-
sessOpen: "
|
|
14746
|
-
sessTitle: "
|
|
14747
|
-
sessX: "
|
|
14748
|
-
armed: "
|
|
14749
|
-
sessEdit: "
|
|
14750
|
-
sessNew: "
|
|
14751
|
-
lone: "
|
|
14752
|
-
kbarWs: "
|
|
14753
|
-
kbarWsName: "
|
|
14754
|
-
kbtn: "
|
|
14755
|
-
kbtnEsc: "
|
|
14756
|
-
dpadGrid: "
|
|
14757
|
-
repeat: "
|
|
14758
|
-
kbToggle: "
|
|
14759
|
-
on: "
|
|
14760
|
-
bigGlyph: "
|
|
14761
|
-
enter: "
|
|
14819
|
+
iconBtn: "_cQ _bQ",
|
|
14820
|
+
termWrap: "_cR",
|
|
14821
|
+
term: "_cS",
|
|
14822
|
+
xterm: "_cT",
|
|
14823
|
+
termDead: "_cU",
|
|
14824
|
+
termCopied: "_cV",
|
|
14825
|
+
termCopiedFade: "_cW",
|
|
14826
|
+
termUploading: "_cX",
|
|
14827
|
+
trapBackdrop: "_cY",
|
|
14828
|
+
pasteTrap: "_cZ",
|
|
14829
|
+
kbSlot: "_c0",
|
|
14830
|
+
keyBar: "_c1",
|
|
14831
|
+
kspacer: "_c2",
|
|
14832
|
+
sessBtn: "_c3",
|
|
14833
|
+
sessDot: "_c4",
|
|
14834
|
+
sessPop: "_c5",
|
|
14835
|
+
sessRow: "_c6",
|
|
14836
|
+
current: "_c7",
|
|
14837
|
+
sessOpen: "_c8",
|
|
14838
|
+
sessTitle: "_c9",
|
|
14839
|
+
sessX: "_c_",
|
|
14840
|
+
armed: "_da",
|
|
14841
|
+
sessEdit: "_db",
|
|
14842
|
+
sessNew: "_dc",
|
|
14843
|
+
lone: "_dd",
|
|
14844
|
+
kbarWs: "_de",
|
|
14845
|
+
kbarWsName: "_df",
|
|
14846
|
+
kbtn: "_dg _bQ",
|
|
14847
|
+
kbtnEsc: "_dh",
|
|
14848
|
+
dpadGrid: "_di",
|
|
14849
|
+
repeat: "_dj",
|
|
14850
|
+
kbToggle: "_dk",
|
|
14851
|
+
on: "_dl",
|
|
14852
|
+
bigGlyph: "_dm",
|
|
14853
|
+
enter: "_dn"
|
|
14762
14854
|
};
|
|
14763
14855
|
_template("E", (input) => {
|
|
14764
14856
|
const $scope0_reason = _scope_reason(), $sg__input_size__OR__input_class = _serialize_guard($scope0_reason, 0);
|
|
@@ -14946,7 +15038,7 @@ var term_default = _template("u", (input) => {
|
|
|
14946
15038
|
_if(() => {
|
|
14947
15039
|
if (trapOpen) {
|
|
14948
15040
|
const $scope12_id = _scope_id();
|
|
14949
|
-
_html(`<div${_attr_class(term_module_default.trapBackdrop)}><div${_attr_class(term_module_default.pasteTrap)}><p
|
|
15041
|
+
_html(`<div${_attr_class(term_module_default.trapBackdrop)}><div${_attr_class(term_module_default.pasteTrap)}><p${_attr_class(ui_module_default.dim)}>Long-press below and choose Paste</p><input placeholder="Paste here…">${_el_resume($scope12_id, "d")}<button${_attr_class(ui_module_default.btn)}>Cancel</button>${_el_resume($scope12_id, "e")}</div>${_el_resume($scope12_id, "b")}</div>${_el_resume($scope12_id, "a")}`);
|
|
14950
15042
|
_script($scope12_id, "u8");
|
|
14951
15043
|
_script($scope12_id, "u9");
|
|
14952
15044
|
writeScope($scope12_id, {});
|
|
@@ -15000,24 +15092,25 @@ var term_default = _template("u", (input) => {
|
|
|
15000
15092
|
_resume_branch($scope0_id);
|
|
15001
15093
|
});
|
|
15002
15094
|
var usage_stats_module_default = {
|
|
15003
|
-
iconBtn: "
|
|
15004
|
-
spinning: "
|
|
15005
|
-
usageModal: "
|
|
15006
|
-
manageHead: "
|
|
15007
|
-
usageRow: "
|
|
15008
|
-
usageName: "
|
|
15009
|
-
|
|
15010
|
-
|
|
15011
|
-
|
|
15012
|
-
|
|
15013
|
-
|
|
15014
|
-
|
|
15015
|
-
|
|
15016
|
-
|
|
15017
|
-
|
|
15018
|
-
|
|
15019
|
-
|
|
15020
|
-
|
|
15095
|
+
iconBtn: "_do _bQ",
|
|
15096
|
+
spinning: "_dp _bR",
|
|
15097
|
+
usageModal: "_dq",
|
|
15098
|
+
manageHead: "_dr",
|
|
15099
|
+
usageRow: "_ds",
|
|
15100
|
+
usageName: "_dt",
|
|
15101
|
+
plan: "_du _k",
|
|
15102
|
+
usageStale: "_dv",
|
|
15103
|
+
stale: "_dw",
|
|
15104
|
+
usageMeters: "_dx",
|
|
15105
|
+
meter: "_dy",
|
|
15106
|
+
meterReset: "_dz",
|
|
15107
|
+
meterLabel: "_dA",
|
|
15108
|
+
meterTrack: "_dB",
|
|
15109
|
+
meterFill: "_dC",
|
|
15110
|
+
warm: "_dD",
|
|
15111
|
+
hot: "_dE",
|
|
15112
|
+
meterPct: "_dF",
|
|
15113
|
+
usageList: "_dG"
|
|
15021
15114
|
};
|
|
15022
15115
|
//#endregion
|
|
15023
15116
|
//#region src/tags/usage-stats.marko
|
|
@@ -15078,12 +15171,12 @@ var usage_stats_default = _template("w", (input) => {
|
|
|
15078
15171
|
_if(() => {
|
|
15079
15172
|
if (!usage) {
|
|
15080
15173
|
const $scope4_id = _scope_id();
|
|
15081
|
-
_html(
|
|
15174
|
+
_html(`<p${_attr_class(ui_module_default.dim)}><span${_attr_class(ui_module_default.spin)}></span> Loading usage…</p>`);
|
|
15082
15175
|
writeScope($scope4_id, {});
|
|
15083
15176
|
return 0;
|
|
15084
15177
|
} else if (usage.error) {
|
|
15085
15178
|
const $scope2_id = _scope_id();
|
|
15086
|
-
_html(`<p
|
|
15179
|
+
_html(`<p${_attr_class(ui_module_default.dim)}>${_escape(usage.error)}${_el_resume($scope2_id, "b")}</p>`);
|
|
15087
15180
|
_subscribe($usage_error__closures, writeScope($scope2_id, {}));
|
|
15088
15181
|
return 1;
|
|
15089
15182
|
} else {
|
|
@@ -15095,7 +15188,7 @@ var usage_stats_default = _template("w", (input) => {
|
|
|
15095
15188
|
_if(() => {
|
|
15096
15189
|
if (agent.plan) {
|
|
15097
15190
|
const $scope6_id = _scope_id();
|
|
15098
|
-
_html(`<span
|
|
15191
|
+
_html(`<span${_attr_class(usage_stats_module_default.plan)}>${_escape(agent.plan.replace(/^default_/, "").replaceAll("_", " "))}${_el_resume($scope6_id, "b")}</span>`);
|
|
15099
15192
|
writeScope($scope6_id, {});
|
|
15100
15193
|
return 0;
|
|
15101
15194
|
}
|
|
@@ -15149,8 +15242,8 @@ var usage_stats_default = _template("w", (input) => {
|
|
|
15149
15242
|
_resume_branch($scope0_id);
|
|
15150
15243
|
});
|
|
15151
15244
|
var prompt_dialog_module_default = {
|
|
15152
|
-
promptDlg: "
|
|
15153
|
-
promptTitle: "
|
|
15245
|
+
promptDlg: "_b8",
|
|
15246
|
+
promptTitle: "_b9"
|
|
15154
15247
|
};
|
|
15155
15248
|
//#endregion
|
|
15156
15249
|
//#region src/tags/prompt-dialog.marko
|
|
@@ -15186,9 +15279,9 @@ var prompt_dialog_default = _template("p", (input) => {
|
|
|
15186
15279
|
footer: attrTag({ content: _content_resume("p5", () => {
|
|
15187
15280
|
_scope_reason();
|
|
15188
15281
|
const $scope1_id = _scope_id();
|
|
15189
|
-
_html(`<button type=button
|
|
15282
|
+
_html(`<button type=button${_attr_class([ui_module_default.btn, ui_module_default.primary])}${_attr("disabled", !value.trim())}>${_escape(input.submitLabel || "OK")}${_el_resume($scope1_id, "b", _serialize_guard($scope0_reason, 4))}</button>${_el_resume($scope1_id, "a")}<div${_attr_class(ui_module_default.spacer)}></div>`);
|
|
15190
15283
|
dialog_close_default({
|
|
15191
|
-
class:
|
|
15284
|
+
class: ui_module_default.btn,
|
|
15192
15285
|
content: _content("p2", () => {
|
|
15193
15286
|
_scope_reason();
|
|
15194
15287
|
_scope_id();
|
|
@@ -15542,7 +15635,7 @@ var work_view_default = _template("x", (input) => {
|
|
|
15542
15635
|
_if(() => {
|
|
15543
15636
|
if (!shownSessions.length) {
|
|
15544
15637
|
const $scope4_id = _scope_id();
|
|
15545
|
-
_html(`<div${_attr_class(work_view_module_default.emptySess)}><p
|
|
15638
|
+
_html(`<div${_attr_class(work_view_module_default.emptySess)}><p${_attr_class(ui_module_default.dim)}>No sessions in this workspace.</p><button${_attr_class([ui_module_default.btn, ui_module_default.primary])}${_attr("disabled", spawning)}>${spawning ? "Starting…" : `Start ${_escape(`${input.preferred || "claude"}`)}`}${_el_resume($scope4_id, "d")}</button>${_el_resume($scope4_id, "c")}</div>`);
|
|
15546
15639
|
_script($scope4_id, "x32");
|
|
15547
15640
|
_subscribe($spawning__closures, _subscribe($si__input_preferred && $input_preferred__closures, writeScope($scope4_id, {})));
|
|
15548
15641
|
return 0;
|
|
@@ -15946,7 +16039,7 @@ var _page_default = _template("b", (input) => {
|
|
|
15946
16039
|
placeholder: attrTag({ content: _content_resume("b0", () => {
|
|
15947
16040
|
_scope_reason();
|
|
15948
16041
|
_scope_id();
|
|
15949
|
-
_html(`<div${_attr_class(page_module_default.boot)}><span
|
|
16042
|
+
_html(`<div${_attr_class(page_module_default.boot)}><span${_attr_class(ui_module_default.spin)}></span>Loading workspaces…</div>`);
|
|
15950
16043
|
}, $scope0_id) }),
|
|
15951
16044
|
catch: attrTag({ content: _content_resume("b1", (err) => {
|
|
15952
16045
|
const $scope3_reason = _scope_reason();
|
|
@@ -22917,4 +23010,4 @@ server.listen(port, () => {
|
|
|
22917
23010
|
//#endregion
|
|
22918
23011
|
export {};
|
|
22919
23012
|
|
|
22920
|
-
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-
|
|
23013
|
+
;var __MARKO_MANIFEST__={"esfPH6H":{"block":[2,"stylesheet#/assets/index-VPYPWUm_.css",6,"<link",0," rel=\"stylesheet\" crossorigin href=\"",1,"assets/index-VPYPWUm_.css\"",">"],"defer":[2,"/assets/index-pLVmiFRS.js",6,"<script",0," async type=\"module\" crossorigin src=\"",1,"assets/index-pLVmiFRS.js\"","></script>"]}};
|