@openc3/vue-common 6.2.1 → 6.4.0
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/{ArrayWidget-BIQi_bWC.cjs → ArrayWidget-Ba-YDfZB.cjs} +3 -3
- package/dist/{ArrayWidget-BIQi_bWC.cjs.map → ArrayWidget-Ba-YDfZB.cjs.map} +1 -1
- package/dist/{ArrayWidget-BxEO5hEG.js → ArrayWidget-DAZApfkV.js} +5 -5
- package/dist/{ArrayWidget-BxEO5hEG.js.map → ArrayWidget-DAZApfkV.js.map} +1 -1
- package/dist/{ArrayplotWidget-B_VPoV4v.js → ArrayplotWidget-BfsxDplv.js} +4 -4
- package/dist/{ArrayplotWidget-B_VPoV4v.js.map → ArrayplotWidget-BfsxDplv.js.map} +1 -1
- package/dist/ArrayplotWidget-Ckm4lmSc.cjs +2 -0
- package/dist/{ArrayplotWidget-Donxhd8_.cjs.map → ArrayplotWidget-Ckm4lmSc.cjs.map} +1 -1
- package/dist/{BarColumn-CyRSZHMh.cjs → BarColumn-Cp7oEFJR.cjs} +2 -2
- package/dist/{BarColumn-CyRSZHMh.cjs.map → BarColumn-Cp7oEFJR.cjs.map} +1 -1
- package/dist/{BarColumn-C9dkpg2O.js → BarColumn-q0nAsvrd.js} +3 -3
- package/dist/{BarColumn-C9dkpg2O.js.map → BarColumn-q0nAsvrd.js.map} +1 -1
- package/dist/BlockWidget-DRB-TDL_.cjs +3 -0
- package/dist/{BlockWidget-DPLN1jgj.cjs.map → BlockWidget-DRB-TDL_.cjs.map} +1 -1
- package/dist/{BlockWidget-CuefOin6.js → BlockWidget-SDCUWcMQ.js} +5 -5
- package/dist/{BlockWidget-CuefOin6.js.map → BlockWidget-SDCUWcMQ.js.map} +1 -1
- package/dist/{ButtonWidget-B6HM0Doo.js → ButtonWidget-BVMjwC19.js} +7 -7
- package/dist/{ButtonWidget-B6HM0Doo.js.map → ButtonWidget-BVMjwC19.js.map} +1 -1
- package/dist/ButtonWidget-yJ70adEU.cjs +3 -0
- package/dist/{ButtonWidget-DccYzIY3.cjs.map → ButtonWidget-yJ70adEU.cjs.map} +1 -1
- package/dist/CanvasWidget-DXkxnt1x.cjs +2 -0
- package/dist/{CanvasWidget-BzTU9rc9.cjs.map → CanvasWidget-DXkxnt1x.cjs.map} +1 -1
- package/dist/{CanvasWidget-DZQGG-yQ.js → CanvasWidget-bVkufjRQ.js} +3 -3
- package/dist/{CanvasWidget-DZQGG-yQ.js.map → CanvasWidget-bVkufjRQ.js.map} +1 -1
- package/dist/CanvasdotWidget-Bi3nZh7g.cjs +2 -0
- package/dist/{CanvasdotWidget-B7VTS1QI.cjs.map → CanvasdotWidget-Bi3nZh7g.cjs.map} +1 -1
- package/dist/{CanvasdotWidget-6wuCSnw_.js → CanvasdotWidget-DpniFfca.js} +3 -3
- package/dist/{CanvasdotWidget-6wuCSnw_.js.map → CanvasdotWidget-DpniFfca.js.map} +1 -1
- package/dist/CanvasimageWidget-C-aBl-by.cjs +2 -0
- package/dist/{CanvasimageWidget-BwYpfmDE.cjs.map → CanvasimageWidget-C-aBl-by.cjs.map} +1 -1
- package/dist/{CanvasimageWidget-mhcPpAuN.js → CanvasimageWidget-DHOSz-dJ.js} +4 -4
- package/dist/{CanvasimageWidget-mhcPpAuN.js.map → CanvasimageWidget-DHOSz-dJ.js.map} +1 -1
- package/dist/CanvasimagevalueWidget-DAbbV-LB.cjs +2 -0
- package/dist/{CanvasimagevalueWidget-E_NsZ82T.cjs.map → CanvasimagevalueWidget-DAbbV-LB.cjs.map} +1 -1
- package/dist/{CanvasimagevalueWidget-Cx-dH8Gc.js → CanvasimagevalueWidget-zrURWWUL.js} +4 -4
- package/dist/{CanvasimagevalueWidget-Cx-dH8Gc.js.map → CanvasimagevalueWidget-zrURWWUL.js.map} +1 -1
- package/dist/CanvaslabelWidget-82bf_Awf.cjs +2 -0
- package/dist/{CanvaslabelWidget-BBDuXWfU.cjs.map → CanvaslabelWidget-82bf_Awf.cjs.map} +1 -1
- package/dist/{CanvaslabelWidget-CQZCeohU.js → CanvaslabelWidget-D-XAMifp.js} +3 -3
- package/dist/{CanvaslabelWidget-CQZCeohU.js.map → CanvaslabelWidget-D-XAMifp.js.map} +1 -1
- package/dist/{CanvaslabelvalueWidget-CwmYDCjr.js → CanvaslabelvalueWidget-BsIdBtEb.js} +3 -3
- package/dist/{CanvaslabelvalueWidget-CwmYDCjr.js.map → CanvaslabelvalueWidget-BsIdBtEb.js.map} +1 -1
- package/dist/CanvaslabelvalueWidget-DgDzwLdi.cjs +2 -0
- package/dist/{CanvaslabelvalueWidget-DAdu7ujn.cjs.map → CanvaslabelvalueWidget-DgDzwLdi.cjs.map} +1 -1
- package/dist/CanvaslineWidget-BRRPuuqS.cjs +2 -0
- package/dist/{CanvaslineWidget-Bv5da1Vy.cjs.map → CanvaslineWidget-BRRPuuqS.cjs.map} +1 -1
- package/dist/{CanvaslineWidget-nTP3fJB4.js → CanvaslineWidget-CA2aPGRg.js} +3 -3
- package/dist/{CanvaslineWidget-nTP3fJB4.js.map → CanvaslineWidget-CA2aPGRg.js.map} +1 -1
- package/dist/CanvaslinevalueWidget-BYjWr2gq.cjs +2 -0
- package/dist/{CanvaslinevalueWidget-BVfUB96K.cjs.map → CanvaslinevalueWidget-BYjWr2gq.cjs.map} +1 -1
- package/dist/{CanvaslinevalueWidget-C3sJnjLQ.js → CanvaslinevalueWidget-J7epKRlo.js} +3 -3
- package/dist/{CanvaslinevalueWidget-C3sJnjLQ.js.map → CanvaslinevalueWidget-J7epKRlo.js.map} +1 -1
- package/dist/{CheckbuttonWidget-5-8YDsQL.js → CheckbuttonWidget-ByH-PDRG.js} +3 -3
- package/dist/{CheckbuttonWidget-5-8YDsQL.js.map → CheckbuttonWidget-ByH-PDRG.js.map} +1 -1
- package/dist/CheckbuttonWidget-DkoFFTcM.cjs +2 -0
- package/dist/{CheckbuttonWidget-BGqD-BGc.cjs.map → CheckbuttonWidget-DkoFFTcM.cjs.map} +1 -1
- package/dist/{ComboboxWidget-DzBL8h9f.js → ComboboxWidget-Bdm_fMzW.js} +3 -3
- package/dist/{ComboboxWidget-DzBL8h9f.js.map → ComboboxWidget-Bdm_fMzW.js.map} +1 -1
- package/dist/ComboboxWidget-Dq28F4bs.cjs +2 -0
- package/dist/{ComboboxWidget-DoHMlSAr.cjs.map → ComboboxWidget-Dq28F4bs.cjs.map} +1 -1
- package/dist/{CriticalCmdDialog-DLEasFsx.js → CriticalCmdDialog-Bcq8PGag.js} +17 -17
- package/dist/CriticalCmdDialog-Bcq8PGag.js.map +1 -0
- package/dist/CriticalCmdDialog-CLF7hYKu.cjs +2 -0
- package/dist/CriticalCmdDialog-CLF7hYKu.cjs.map +1 -0
- package/dist/CustomIcon-Bop2mEnu.cjs +2 -0
- package/dist/CustomIcon-Bop2mEnu.cjs.map +1 -0
- package/dist/CustomIcon-h5X7369N.js +50 -0
- package/dist/CustomIcon-h5X7369N.js.map +1 -0
- package/dist/{DateWidget-CW7Od7lB.js → DateWidget-BaQqthC7.js} +4 -4
- package/dist/{DateWidget-CW7Od7lB.js.map → DateWidget-BaQqthC7.js.map} +1 -1
- package/dist/DateWidget-DCayVS3o.cjs +2 -0
- package/dist/{DateWidget-DKZz1J9J.cjs.map → DateWidget-DCayVS3o.cjs.map} +1 -1
- package/dist/{DetailsDialog-BvbziA7Y.js → DetailsDialog-C5jf8o0K.js} +16 -16
- package/dist/DetailsDialog-C5jf8o0K.js.map +1 -0
- package/dist/DetailsDialog-CangkVuF.cjs +2 -0
- package/dist/DetailsDialog-CangkVuF.cjs.map +1 -0
- package/dist/DynamicWidget-BWEVCUfd.cjs +2 -0
- package/dist/{DynamicWidget-3wHr6Ng-.cjs.map → DynamicWidget-BWEVCUfd.cjs.map} +1 -1
- package/dist/{DynamicWidget-gFSYxzvT.js → DynamicWidget-CfMtj7H8.js} +2 -2
- package/dist/{DynamicWidget-gFSYxzvT.js.map → DynamicWidget-CfMtj7H8.js.map} +1 -1
- package/dist/EventListDialog-Bniar26O.js +1509 -0
- package/dist/EventListDialog-Bniar26O.js.map +1 -0
- package/dist/EventListDialog-D_KXhGDO.cjs +2 -0
- package/dist/EventListDialog-D_KXhGDO.cjs.map +1 -0
- package/dist/FormatvalueWidget--H5B9i_Y.js +48 -0
- package/dist/FormatvalueWidget--H5B9i_Y.js.map +1 -0
- package/dist/FormatvalueWidget-CDh1rF5P.cjs +2 -0
- package/dist/FormatvalueWidget-CDh1rF5P.cjs.map +1 -0
- package/dist/Graph-DIR-5tJu.cjs +2 -0
- package/dist/Graph-DIR-5tJu.cjs.map +1 -0
- package/dist/{Graph-3rkhFP3G.js → Graph-M382Zo8o.js} +676 -806
- package/dist/Graph-M382Zo8o.js.map +1 -0
- package/dist/{GraphWidget-22NxFa9k.cjs → GraphWidget-CNUOLw5-.cjs} +2 -2
- package/dist/{GraphWidget-22NxFa9k.cjs.map → GraphWidget-CNUOLw5-.cjs.map} +1 -1
- package/dist/{GraphWidget-Dycey-mj.js → GraphWidget-_YOGDD1U.js} +2 -2
- package/dist/{GraphWidget-Dycey-mj.js.map → GraphWidget-_YOGDD1U.js.map} +1 -1
- package/dist/HorizontalWidget-Bix4q7It.cjs +2 -0
- package/dist/{HorizontalWidget-BBeB0eBI.cjs.map → HorizontalWidget-Bix4q7It.cjs.map} +1 -1
- package/dist/{HorizontalWidget-D31NRWy5.js → HorizontalWidget-D_gzrOWs.js} +3 -3
- package/dist/{HorizontalWidget-D31NRWy5.js.map → HorizontalWidget-D_gzrOWs.js.map} +1 -1
- package/dist/HorizontalboxWidget-B8a4-h2J.cjs +2 -0
- package/dist/HorizontalboxWidget-B8a4-h2J.cjs.map +1 -0
- package/dist/HorizontalboxWidget-GDcjO-UB.js +47 -0
- package/dist/HorizontalboxWidget-GDcjO-UB.js.map +1 -0
- package/dist/HorizontallineWidget-BD6dqVhE.cjs +2 -0
- package/dist/{HorizontallineWidget-BCKOQase.cjs.map → HorizontallineWidget-BD6dqVhE.cjs.map} +1 -1
- package/dist/HorizontallineWidget-DZvOYFxf.js +16 -0
- package/dist/{HorizontallineWidget-CbxREBYI.js.map → HorizontallineWidget-DZvOYFxf.js.map} +1 -1
- package/dist/{IframeWidget-Ctj8OIcG.js → IframeWidget-CuUav9b3.js} +3 -3
- package/dist/{IframeWidget-Ctj8OIcG.js.map → IframeWidget-CuUav9b3.js.map} +1 -1
- package/dist/IframeWidget-DL_CET3B.cjs +2 -0
- package/dist/{IframeWidget-CZwsTgvX.cjs.map → IframeWidget-DL_CET3B.cjs.map} +1 -1
- package/dist/{ImageLoader-BrNrCBvi.js → ImageLoader-3KLKJ5mV.js} +2 -2
- package/dist/{ImageLoader-BrNrCBvi.js.map → ImageLoader-3KLKJ5mV.js.map} +1 -1
- package/dist/{ImageLoader-D_Gq-KxR.cjs → ImageLoader-DaWMqoJS.cjs} +2 -2
- package/dist/{ImageLoader-D_Gq-KxR.cjs.map → ImageLoader-DaWMqoJS.cjs.map} +1 -1
- package/dist/{ImageviewerWidget-XrsqxmLo.js → ImageviewerWidget-BMZ6REN4.js} +3 -3
- package/dist/{ImageviewerWidget-XrsqxmLo.js.map → ImageviewerWidget-BMZ6REN4.js.map} +1 -1
- package/dist/ImageviewerWidget-_0YopZ1s.cjs +2 -0
- package/dist/{ImageviewerWidget-DwRPFSLR.cjs.map → ImageviewerWidget-_0YopZ1s.cjs.map} +1 -1
- package/dist/InterfacesTab-DGrLsTA0.cjs +2 -0
- package/dist/InterfacesTab-DGrLsTA0.cjs.map +1 -0
- package/dist/InterfacesTab-DTixVrGo.js +83 -0
- package/dist/InterfacesTab-DTixVrGo.js.map +1 -0
- package/dist/LabelWidget-DkZvBxYg.cjs +2 -0
- package/dist/LabelWidget-DkZvBxYg.cjs.map +1 -0
- package/dist/{LabelWidget-t7I87dp7.js → LabelWidget-oh6FIG6s.js} +5 -5
- package/dist/LabelWidget-oh6FIG6s.js.map +1 -0
- package/dist/{LabelledWidget-C7TDf92M.js → LabelledWidget-Bic36les.js} +5 -5
- package/dist/{LabelledWidget-C7TDf92M.js.map → LabelledWidget-Bic36les.js.map} +1 -1
- package/dist/LabelledWidget-D7nm73kj.cjs +2 -0
- package/dist/{LabelledWidget-DUpHxc9z.cjs.map → LabelledWidget-D7nm73kj.cjs.map} +1 -1
- package/dist/{LabelprogressbarWidget-wwLURt1u.js → LabelprogressbarWidget-CqIiGoDb.js} +5 -5
- package/dist/{LabelprogressbarWidget-wwLURt1u.js.map → LabelprogressbarWidget-CqIiGoDb.js.map} +1 -1
- package/dist/LabelprogressbarWidget-DY0Xd2c2.cjs +2 -0
- package/dist/{LabelprogressbarWidget-D6cpayCR.cjs.map → LabelprogressbarWidget-DY0Xd2c2.cjs.map} +1 -1
- package/dist/{LabelsparklineWidget-B3awLUyP.js → LabelsparklineWidget-DLhmqO02.js} +5 -5
- package/dist/{LabelsparklineWidget-B3awLUyP.js.map → LabelsparklineWidget-DLhmqO02.js.map} +1 -1
- package/dist/LabelsparklineWidget-DZ5-iEcK.cjs +2 -0
- package/dist/{LabelsparklineWidget-CJRnLETe.cjs.map → LabelsparklineWidget-DZ5-iEcK.cjs.map} +1 -1
- package/dist/{LabelvalueWidget-Zx_yHCtl.js → LabelvalueWidget-BefwSSVq.js} +5 -5
- package/dist/{LabelvalueWidget-Zx_yHCtl.js.map → LabelvalueWidget-BefwSSVq.js.map} +1 -1
- package/dist/LabelvalueWidget-D-u38nLh.cjs +2 -0
- package/dist/{LabelvalueWidget-owiMSCYl.cjs.map → LabelvalueWidget-D-u38nLh.cjs.map} +1 -1
- package/dist/LabelvaluedescWidget-DMuBCLM8.cjs +2 -0
- package/dist/{LabelvaluedescWidget-MRmZBUc0.cjs.map → LabelvaluedescWidget-DMuBCLM8.cjs.map} +1 -1
- package/dist/{LabelvaluedescWidget-BBSBh4vI.js → LabelvaluedescWidget-NxrCzznm.js} +10 -10
- package/dist/{LabelvaluedescWidget-BBSBh4vI.js.map → LabelvaluedescWidget-NxrCzznm.js.map} +1 -1
- package/dist/LabelvaluelimitsbarWidget-BY212bgc.cjs +2 -0
- package/dist/{LabelvaluelimitsbarWidget-BQ2XYPNE.cjs.map → LabelvaluelimitsbarWidget-BY212bgc.cjs.map} +1 -1
- package/dist/{LabelvaluelimitsbarWidget-CZueHYWG.js → LabelvaluelimitsbarWidget-pq7qoolL.js} +5 -5
- package/dist/{LabelvaluelimitsbarWidget-CZueHYWG.js.map → LabelvaluelimitsbarWidget-pq7qoolL.js.map} +1 -1
- package/dist/LabelvaluelimitscolumnWidget-DVLGU6ja.cjs +2 -0
- package/dist/{LabelvaluelimitscolumnWidget-DNmVpU8J.cjs.map → LabelvaluelimitscolumnWidget-DVLGU6ja.cjs.map} +1 -1
- package/dist/{LabelvaluelimitscolumnWidget-BTvzyQMq.js → LabelvaluelimitscolumnWidget-edkpogsl.js} +6 -6
- package/dist/{LabelvaluelimitscolumnWidget-BTvzyQMq.js.map → LabelvaluelimitscolumnWidget-edkpogsl.js.map} +1 -1
- package/dist/LabelvaluerangebarWidget-CA_7kTS2.cjs +2 -0
- package/dist/{LabelvaluerangebarWidget-DL0U8cbw.cjs.map → LabelvaluerangebarWidget-CA_7kTS2.cjs.map} +1 -1
- package/dist/{LabelvaluerangebarWidget-BhYTBgDq.js → LabelvaluerangebarWidget-DpJNv9dh.js} +5 -5
- package/dist/{LabelvaluerangebarWidget-BhYTBgDq.js.map → LabelvaluerangebarWidget-DpJNv9dh.js.map} +1 -1
- package/dist/{Layout-Bh7VzCZd.js → Layout-B0hvhBQO.js} +2 -2
- package/dist/{Layout-Bh7VzCZd.js.map → Layout-B0hvhBQO.js.map} +1 -1
- package/dist/Layout-BLADjt_A.cjs +2 -0
- package/dist/{Layout-DRL0EeSA.cjs.map → Layout-BLADjt_A.cjs.map} +1 -1
- package/dist/LedWidget--4eSxBnn.js +148 -0
- package/dist/LedWidget--4eSxBnn.js.map +1 -0
- package/dist/LedWidget-BoZKOBZg.cjs +2 -0
- package/dist/LedWidget-BoZKOBZg.cjs.map +1 -0
- package/dist/{LimitsbarWidget-Djui0IpK.js → LimitsbarWidget-BQaumgRt.js} +11 -8
- package/dist/LimitsbarWidget-BQaumgRt.js.map +1 -0
- package/dist/LimitsbarWidget-CyHbbNx3.cjs +2 -0
- package/dist/LimitsbarWidget-CyHbbNx3.cjs.map +1 -0
- package/dist/{LimitscolorWidget-DdmvKzmx.js → LimitscolorWidget-BBF9sRtF.js} +3 -3
- package/dist/{LimitscolorWidget-DdmvKzmx.js.map → LimitscolorWidget-BBF9sRtF.js.map} +1 -1
- package/dist/LimitscolorWidget-CsuRoqxm.cjs +2 -0
- package/dist/{LimitscolorWidget-CS0wpX9A.cjs.map → LimitscolorWidget-CsuRoqxm.cjs.map} +1 -1
- package/dist/LimitscolumnWidget-Cr1qFT8M.cjs +2 -0
- package/dist/{LimitscolumnWidget-C_UW6xKq.cjs.map → LimitscolumnWidget-Cr1qFT8M.cjs.map} +1 -1
- package/dist/{LimitscolumnWidget-Cc19IEjq.js → LimitscolumnWidget-DZZtSoXw.js} +3 -3
- package/dist/{LimitscolumnWidget-Cc19IEjq.js.map → LimitscolumnWidget-DZZtSoXw.js.map} +1 -1
- package/dist/LinegraphWidget-Cw9vua8K.cjs +2 -0
- package/dist/{LinegraphWidget-8td_PqgU.cjs.map → LinegraphWidget-Cw9vua8K.cjs.map} +1 -1
- package/dist/{LinegraphWidget-BtieJxeL.js → LinegraphWidget-DTLZmyWs.js} +5 -5
- package/dist/{LinegraphWidget-BtieJxeL.js.map → LinegraphWidget-DTLZmyWs.js.map} +1 -1
- package/dist/MatrixbycolumnsWidget-Digh2kY7.cjs +2 -0
- package/dist/{MatrixbycolumnsWidget-CGOeCNW2.cjs.map → MatrixbycolumnsWidget-Digh2kY7.cjs.map} +1 -1
- package/dist/{MatrixbycolumnsWidget-DnExVRF8.js → MatrixbycolumnsWidget-dpgZz4wR.js} +4 -4
- package/dist/{MatrixbycolumnsWidget-DnExVRF8.js.map → MatrixbycolumnsWidget-dpgZz4wR.js.map} +1 -1
- package/dist/MicroservicesTab-BQywJ_ya.cjs +2 -0
- package/dist/MicroservicesTab-BQywJ_ya.cjs.map +1 -0
- package/dist/MicroservicesTab-DbL48MBc.js +219 -0
- package/dist/MicroservicesTab-DbL48MBc.js.map +1 -0
- package/dist/Openc3Screen-COi4u-9k.cjs +5 -0
- package/dist/Openc3Screen-COi4u-9k.cjs.map +1 -0
- package/dist/Openc3Screen-CtwGKfq-.js +1690 -0
- package/dist/Openc3Screen-CtwGKfq-.js.map +1 -0
- package/dist/{OutputDialog-Ci5OT_fH.js → OutputDialog-B5qHVyck.js} +66 -81
- package/dist/OutputDialog-B5qHVyck.js.map +1 -0
- package/dist/OutputDialog-CFhG2RY9.cjs +2 -0
- package/dist/OutputDialog-CFhG2RY9.cjs.map +1 -0
- package/dist/PackagesTab-Bw34RkLc.js +313 -0
- package/dist/PackagesTab-Bw34RkLc.js.map +1 -0
- package/dist/PackagesTab-DXSowjd4.cjs +2 -0
- package/dist/PackagesTab-DXSowjd4.cjs.map +1 -0
- package/dist/{PluginsTab-Ds3jk64b.js → PluginsTab-C9t0-QVm.js} +206 -245
- package/dist/PluginsTab-C9t0-QVm.js.map +1 -0
- package/dist/PluginsTab-CPaBGJMa.cjs +6 -0
- package/dist/PluginsTab-CPaBGJMa.cjs.map +1 -0
- package/dist/{ProgressbarWidget-DIfqhHRE.js → ProgressbarWidget-7cYr8136.js} +3 -3
- package/dist/{ProgressbarWidget-DIfqhHRE.js.map → ProgressbarWidget-7cYr8136.js.map} +1 -1
- package/dist/ProgressbarWidget-CdOWGViG.cjs +2 -0
- package/dist/{ProgressbarWidget-CUIAYySg.cjs.map → ProgressbarWidget-CdOWGViG.cjs.map} +1 -1
- package/dist/RadiobuttonWidget-5t4ofYx3.cjs +2 -0
- package/dist/{RadiobuttonWidget-Cjk1JAP_.cjs.map → RadiobuttonWidget-5t4ofYx3.cjs.map} +1 -1
- package/dist/{RadiobuttonWidget-QzIkNP7m.js → RadiobuttonWidget-DTfn-7F2.js} +3 -3
- package/dist/{RadiobuttonWidget-QzIkNP7m.js.map → RadiobuttonWidget-DTfn-7F2.js.map} +1 -1
- package/dist/{RadiogroupWidget-Ci9sCX39.js → RadiogroupWidget-DWvTpw94.js} +3 -3
- package/dist/{RadiogroupWidget-Ci9sCX39.js.map → RadiogroupWidget-DWvTpw94.js.map} +1 -1
- package/dist/RadiogroupWidget-emxyymRZ.cjs +2 -0
- package/dist/{RadiogroupWidget-B4lkYWaC.cjs.map → RadiogroupWidget-emxyymRZ.cjs.map} +1 -1
- package/dist/{RangebarWidget-CN0YuHqy.js → RangebarWidget-CG2Y7eYp.js} +3 -3
- package/dist/{RangebarWidget-CN0YuHqy.js.map → RangebarWidget-CG2Y7eYp.js.map} +1 -1
- package/dist/RangebarWidget-CLMKfbiT.cjs +2 -0
- package/dist/{RangebarWidget-nl0rzj93.cjs.map → RangebarWidget-CLMKfbiT.cjs.map} +1 -1
- package/dist/{RedisTab-CVimDkIE.js → RedisTab-CvPLS0Qe.js} +3 -3
- package/dist/{RedisTab-CVimDkIE.js.map → RedisTab-CvPLS0Qe.js.map} +1 -1
- package/dist/RedisTab-PbizvHjY.cjs +2 -0
- package/dist/{RedisTab-DhS4GHDj.cjs.map → RedisTab-PbizvHjY.cjs.map} +1 -1
- package/dist/{RollupWidget-y4jBtJB2.js → RollupWidget-C6HKTfCR.js} +3 -3
- package/dist/{RollupWidget-y4jBtJB2.js.map → RollupWidget-C6HKTfCR.js.map} +1 -1
- package/dist/RollupWidget-CHKUdXMx.cjs +2 -0
- package/dist/{RollupWidget-Bgudi_bt.cjs.map → RollupWidget-CHKUdXMx.cjs.map} +1 -1
- package/dist/RoutersTab-D-ex_yMO.js +85 -0
- package/dist/RoutersTab-D-ex_yMO.js.map +1 -0
- package/dist/RoutersTab-zkaML-Xt.cjs +2 -0
- package/dist/RoutersTab-zkaML-Xt.cjs.map +1 -0
- package/dist/ScriptChooser-Dkf84RzQ.cjs +2 -0
- package/dist/ScriptChooser-Dkf84RzQ.cjs.map +1 -0
- package/dist/ScriptChooser-qiC2xQ_W.js +176 -0
- package/dist/ScriptChooser-qiC2xQ_W.js.map +1 -0
- package/dist/ScrollwindowWidget-CVc9EXW2.cjs +2 -0
- package/dist/{ScrollwindowWidget-BIiV7xwi.cjs.map → ScrollwindowWidget-CVc9EXW2.cjs.map} +1 -1
- package/dist/{ScrollwindowWidget-CBzYk4Y3.js → ScrollwindowWidget-DvhBCYd2.js} +4 -4
- package/dist/{ScrollwindowWidget-CBzYk4Y3.js.map → ScrollwindowWidget-DvhBCYd2.js.map} +1 -1
- package/dist/{SecretsTab-BjviaTxh.js → SecretsTab-CLkJfzf-.js} +39 -49
- package/dist/SecretsTab-CLkJfzf-.js.map +1 -0
- package/dist/SecretsTab-Clw9ErBz.cjs +2 -0
- package/dist/SecretsTab-Clw9ErBz.cjs.map +1 -0
- package/dist/SettingsTab-BJ9mrQ8U.cjs +3 -0
- package/dist/SettingsTab-BJ9mrQ8U.cjs.map +1 -0
- package/dist/{SettingsTab-Bo_dYXgb.js → SettingsTab-CysOMBFu.js} +198 -135
- package/dist/SettingsTab-CysOMBFu.js.map +1 -0
- package/dist/{SignalWidget-DQ5Uc2uV.js → SignalWidget-BZIoGjam.js} +16 -18
- package/dist/SignalWidget-BZIoGjam.js.map +1 -0
- package/dist/SignalWidget-DpNUpQNW.cjs +2 -0
- package/dist/SignalWidget-DpNUpQNW.cjs.map +1 -0
- package/dist/SimpleTextDialog-CGStqYvO.js +97 -0
- package/dist/SimpleTextDialog-CGStqYvO.js.map +1 -0
- package/dist/SimpleTextDialog-P2KPhVHq.cjs +2 -0
- package/dist/SimpleTextDialog-P2KPhVHq.cjs.map +1 -0
- package/dist/SpacerWidget-CHuv4qDR.cjs +2 -0
- package/dist/{SpacerWidget-BBJR6HBQ.cjs.map → SpacerWidget-CHuv4qDR.cjs.map} +1 -1
- package/dist/{SpacerWidget-6rsc_dSM.js → SpacerWidget-YBS8RZIE.js} +3 -3
- package/dist/{SpacerWidget-6rsc_dSM.js.map → SpacerWidget-YBS8RZIE.js.map} +1 -1
- package/dist/{SparklineWidget-CZtvu2ss.js → SparklineWidget-BMhY9vYe.js} +5 -5
- package/dist/{SparklineWidget-CZtvu2ss.js.map → SparklineWidget-BMhY9vYe.js.map} +1 -1
- package/dist/SparklineWidget-qWQGTMwn.cjs +2 -0
- package/dist/{SparklineWidget-BxBLnjAO.cjs.map → SparklineWidget-qWQGTMwn.cjs.map} +1 -1
- package/dist/TabbookWidget-C4jdzkQl.cjs +2 -0
- package/dist/{TabbookWidget-DyFQnA10.cjs.map → TabbookWidget-C4jdzkQl.cjs.map} +1 -1
- package/dist/{TabbookWidget-DNALU0jl.js → TabbookWidget-RfET19pq.js} +3 -3
- package/dist/{TabbookWidget-DNALU0jl.js.map → TabbookWidget-RfET19pq.js.map} +1 -1
- package/dist/TargetsTab-CVZR_Bp6.cjs +2 -0
- package/dist/TargetsTab-CVZR_Bp6.cjs.map +1 -0
- package/dist/TargetsTab-CfBt-dZW.js +117 -0
- package/dist/TargetsTab-CfBt-dZW.js.map +1 -0
- package/dist/TextBoxDialog-C60jmnyN.js +98 -0
- package/dist/TextBoxDialog-C60jmnyN.js.map +1 -0
- package/dist/TextBoxDialog-DWt30tB8.cjs +2 -0
- package/dist/TextBoxDialog-DWt30tB8.cjs.map +1 -0
- package/dist/TextboxWidget-Cm7-yWTZ.cjs +2 -0
- package/dist/{TextboxWidget-D6lW_dsU.cjs.map → TextboxWidget-Cm7-yWTZ.cjs.map} +1 -1
- package/dist/{TextboxWidget-5hqPj74D.js → TextboxWidget-M8vFBSxS.js} +5 -5
- package/dist/{TextboxWidget-5hqPj74D.js.map → TextboxWidget-M8vFBSxS.js.map} +1 -1
- package/dist/TextfieldWidget-Bfk2NPtC.cjs +2 -0
- package/dist/{TextfieldWidget-iHN7-fyF.cjs.map → TextfieldWidget-Bfk2NPtC.cjs.map} +1 -1
- package/dist/{TextfieldWidget-Df0ANSiU.js → TextfieldWidget-Dev7lCsT.js} +3 -3
- package/dist/{TextfieldWidget-Df0ANSiU.js.map → TextfieldWidget-Dev7lCsT.js.map} +1 -1
- package/dist/TimeWidget-BqkZJdg7.cjs +2 -0
- package/dist/{TimeWidget-C3NZqTEG.cjs.map → TimeWidget-BqkZJdg7.cjs.map} +1 -1
- package/dist/{TimeWidget-C6XQMUG2.js → TimeWidget-CQzn13rQ.js} +4 -4
- package/dist/{TimeWidget-C6XQMUG2.js.map → TimeWidget-CQzn13rQ.js.map} +1 -1
- package/dist/{TitleWidget-B9SPUlbW.js → TitleWidget-C4zbSian.js} +3 -3
- package/dist/{TitleWidget-B9SPUlbW.js.map → TitleWidget-C4zbSian.js.map} +1 -1
- package/dist/TitleWidget-DW0hJ0FE.cjs +2 -0
- package/dist/{TitleWidget-CWZs33c4.cjs.map → TitleWidget-DW0hJ0FE.cjs.map} +1 -1
- package/dist/ToolsTab-CKeFb94Y.cjs +7 -0
- package/dist/{ToolsTab-CUpUmkZL.cjs.map → ToolsTab-CKeFb94Y.cjs.map} +1 -1
- package/dist/ToolsTab-CnhhRS3J.js +1501 -0
- package/dist/{ToolsTab-Cgpb2nAW.js.map → ToolsTab-CnhhRS3J.js.map} +1 -1
- package/dist/TopBar-4zZ-wYMY.cjs +2 -0
- package/dist/TopBar-4zZ-wYMY.cjs.map +1 -0
- package/dist/{TopBar-F1jHuFan.js → TopBar-BQhv8Jcc.js} +102 -68
- package/dist/TopBar-BQhv8Jcc.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog-C0MA3Uc-.cjs +2 -0
- package/dist/UpgradeToEnterpriseDialog-C0MA3Uc-.cjs.map +1 -0
- package/dist/{UpgradeToEnterpriseDialog-DVcAH30Y.js → UpgradeToEnterpriseDialog-c6twungI.js} +27 -27
- package/dist/UpgradeToEnterpriseDialog-c6twungI.js.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs +1497 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-Bowkx8lp.cjs.map +1 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CVrrWDJ_.js +30244 -0
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CVrrWDJ_.js.map +1 -0
- package/dist/{VWidget-C4spAawK.js → VWidget-iASFPjdx.js} +3 -3
- package/dist/{VWidget-C4spAawK.js.map → VWidget-iASFPjdx.js.map} +1 -1
- package/dist/{VWidget-C2x_zSC2.cjs → VWidget-iTwRH6Qq.cjs} +2 -2
- package/dist/{VWidget-C2x_zSC2.cjs.map → VWidget-iTwRH6Qq.cjs.map} +1 -1
- package/dist/{ValueWidget-D4RrYVEK.js → ValueWidget-BVI6uUVX.js} +17 -15
- package/dist/ValueWidget-BVI6uUVX.js.map +1 -0
- package/dist/ValueWidget-CPuSUgn9.cjs +2 -0
- package/dist/ValueWidget-CPuSUgn9.cjs.map +1 -0
- package/dist/{ValuelimitsbarWidget-Bc9_Vj_f.js → ValuelimitsbarWidget-BiIcery0.js} +5 -5
- package/dist/{ValuelimitsbarWidget-Bc9_Vj_f.js.map → ValuelimitsbarWidget-BiIcery0.js.map} +1 -1
- package/dist/ValuelimitsbarWidget-CNdyobcf.cjs +2 -0
- package/dist/{ValuelimitsbarWidget-DJuh7FOs.cjs.map → ValuelimitsbarWidget-CNdyobcf.cjs.map} +1 -1
- package/dist/{ValuelimitscolumnWidget-DHKIL7sf.js → ValuelimitscolumnWidget-BiRI8GbI.js} +5 -5
- package/dist/{ValuelimitscolumnWidget-DHKIL7sf.js.map → ValuelimitscolumnWidget-BiRI8GbI.js.map} +1 -1
- package/dist/ValuelimitscolumnWidget-Db0K4OjQ.cjs +2 -0
- package/dist/{ValuelimitscolumnWidget-BFpG-H7v.cjs.map → ValuelimitscolumnWidget-Db0K4OjQ.cjs.map} +1 -1
- package/dist/{ValuerangebarWidget-CecQRIok.js → ValuerangebarWidget-CtMFQu9-.js} +5 -5
- package/dist/{ValuerangebarWidget-CecQRIok.js.map → ValuerangebarWidget-CtMFQu9-.js.map} +1 -1
- package/dist/ValuerangebarWidget-DAEr-D_E.cjs +2 -0
- package/dist/{ValuerangebarWidget-BlZSaiXo.cjs.map → ValuerangebarWidget-DAEr-D_E.cjs.map} +1 -1
- package/dist/{VerticalWidget-D8jUFxjS.js → VerticalWidget-CRmcpQBn.js} +3 -3
- package/dist/{VerticalWidget-D8jUFxjS.js.map → VerticalWidget-CRmcpQBn.js.map} +1 -1
- package/dist/VerticalWidget-YG3auPJa.cjs +2 -0
- package/dist/{VerticalWidget--8UErB4q.cjs.map → VerticalWidget-YG3auPJa.cjs.map} +1 -1
- package/dist/VerticalboxWidget-C-qChjug.js +46 -0
- package/dist/VerticalboxWidget-C-qChjug.js.map +1 -0
- package/dist/VerticalboxWidget-DX8-gFay.cjs +2 -0
- package/dist/VerticalboxWidget-DX8-gFay.cjs.map +1 -0
- package/dist/{Widget-fRCERxGf.js → Widget-CFEnOKms.js} +19 -19
- package/dist/Widget-CFEnOKms.js.map +1 -0
- package/dist/Widget-EsyLQi_8.cjs +2 -0
- package/dist/Widget-EsyLQi_8.cjs.map +1 -0
- package/dist/components.cjs +3 -6
- package/dist/components.cjs.map +1 -1
- package/dist/components.js +402 -2029
- package/dist/components.js.map +1 -1
- package/dist/icons.cjs +1 -1
- package/dist/icons.cjs.map +1 -1
- package/dist/icons.js +59 -52
- package/dist/icons.js.map +1 -1
- package/dist/index-DcL65Mqb.cjs +7 -0
- package/dist/index-DcL65Mqb.cjs.map +1 -0
- package/dist/{index-CFQnWdPA.js → index-qCq0L4jN.js} +404 -406
- package/dist/index-qCq0L4jN.js.map +1 -0
- package/dist/plugins.cjs +4 -4
- package/dist/plugins.cjs.map +1 -1
- package/dist/plugins.js +86 -77
- package/dist/plugins.js.map +1 -1
- package/dist/{timeFilters-CRYpYDdf.js → timeFilters-BKnCM4rv.js} +139 -136
- package/dist/{timeFilters-CRYpYDdf.js.map → timeFilters-BKnCM4rv.js.map} +1 -1
- package/dist/timeFilters-CJFxfjqN.cjs +2 -0
- package/dist/{timeFilters-8SaYvcH0.cjs.map → timeFilters-CJFxfjqN.cjs.map} +1 -1
- package/dist/tools/admin.cjs +10 -10
- package/dist/tools/admin.cjs.map +1 -1
- package/dist/tools/admin.js +790 -736
- package/dist/tools/admin.js.map +1 -1
- package/dist/tools/base.cjs +1 -1
- package/dist/tools/base.cjs.map +1 -1
- package/dist/tools/base.js +217 -226
- package/dist/tools/base.js.map +1 -1
- package/dist/tools/calendar.cjs +1 -1
- package/dist/tools/calendar.cjs.map +1 -1
- package/dist/tools/calendar.js +9 -1583
- package/dist/tools/calendar.js.map +1 -1
- package/dist/tools/scriptrunner.cjs +85 -0
- package/dist/tools/scriptrunner.cjs.map +1 -0
- package/dist/tools/scriptrunner.js +4574 -0
- package/dist/tools/scriptrunner.js.map +1 -0
- package/dist/util.cjs +1 -1
- package/dist/util.js +1 -1
- package/dist/vue-common.css +1 -1
- package/dist/widgets.cjs +1 -1
- package/dist/widgets.js +64 -64
- package/package.json +20 -15
- package/dist/ArrayplotWidget-Donxhd8_.cjs +0 -2
- package/dist/BlockWidget-DPLN1jgj.cjs +0 -3
- package/dist/ButtonWidget-DccYzIY3.cjs +0 -3
- package/dist/CanvasWidget-BzTU9rc9.cjs +0 -2
- package/dist/CanvasdotWidget-B7VTS1QI.cjs +0 -2
- package/dist/CanvasimageWidget-BwYpfmDE.cjs +0 -2
- package/dist/CanvasimagevalueWidget-E_NsZ82T.cjs +0 -2
- package/dist/CanvaslabelWidget-BBDuXWfU.cjs +0 -2
- package/dist/CanvaslabelvalueWidget-DAdu7ujn.cjs +0 -2
- package/dist/CanvaslineWidget-Bv5da1Vy.cjs +0 -2
- package/dist/CanvaslinevalueWidget-BVfUB96K.cjs +0 -2
- package/dist/CheckbuttonWidget-BGqD-BGc.cjs +0 -2
- package/dist/ComboboxWidget-DoHMlSAr.cjs +0 -2
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs +0 -2
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-BHFhmbuH.cjs.map +0 -1
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js +0 -10
- package/dist/CosmosRuxIcon.vue_vue_type_style_index_0_scoped_9af48e85_lang-CHgC5LLL.js.map +0 -1
- package/dist/CriticalCmdDialog-DLEasFsx.js.map +0 -1
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs +0 -2
- package/dist/CriticalCmdDialog-DoLBrU2k.cjs.map +0 -1
- package/dist/DateWidget-DKZz1J9J.cjs +0 -2
- package/dist/DetailsDialog-BvbziA7Y.js.map +0 -1
- package/dist/DetailsDialog-CiuQYvJK.cjs +0 -2
- package/dist/DetailsDialog-CiuQYvJK.cjs.map +0 -1
- package/dist/DynamicWidget-3wHr6Ng-.cjs +0 -2
- package/dist/FormatvalueWidget-CGpnTqVH.js +0 -44
- package/dist/FormatvalueWidget-CGpnTqVH.js.map +0 -1
- package/dist/FormatvalueWidget-DFrbeKb9.cjs +0 -2
- package/dist/FormatvalueWidget-DFrbeKb9.cjs.map +0 -1
- package/dist/Graph-3rkhFP3G.js.map +0 -1
- package/dist/Graph-C3vGMcos.cjs +0 -2
- package/dist/Graph-C3vGMcos.cjs.map +0 -1
- package/dist/HorizontalWidget-BBeB0eBI.cjs +0 -2
- package/dist/HorizontalboxWidget-Br8dSVHD.js +0 -38
- package/dist/HorizontalboxWidget-Br8dSVHD.js.map +0 -1
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs +0 -2
- package/dist/HorizontalboxWidget-DsdzrCJx.cjs.map +0 -1
- package/dist/HorizontallineWidget-BCKOQase.cjs +0 -2
- package/dist/HorizontallineWidget-CbxREBYI.js +0 -11
- package/dist/IframeWidget-CZwsTgvX.cjs +0 -2
- package/dist/ImageviewerWidget-DwRPFSLR.cjs +0 -2
- package/dist/InterfacesTab-CLaicsHA.cjs +0 -2
- package/dist/InterfacesTab-CLaicsHA.cjs.map +0 -1
- package/dist/InterfacesTab-DAeNlGlB.js +0 -93
- package/dist/InterfacesTab-DAeNlGlB.js.map +0 -1
- package/dist/LabelWidget-C-s8OVmA.cjs +0 -2
- package/dist/LabelWidget-C-s8OVmA.cjs.map +0 -1
- package/dist/LabelWidget-t7I87dp7.js.map +0 -1
- package/dist/LabelledWidget-DUpHxc9z.cjs +0 -2
- package/dist/LabelprogressbarWidget-D6cpayCR.cjs +0 -2
- package/dist/LabelsparklineWidget-CJRnLETe.cjs +0 -2
- package/dist/LabelvalueWidget-owiMSCYl.cjs +0 -2
- package/dist/LabelvaluedescWidget-MRmZBUc0.cjs +0 -2
- package/dist/LabelvaluelimitsbarWidget-BQ2XYPNE.cjs +0 -2
- package/dist/LabelvaluelimitscolumnWidget-DNmVpU8J.cjs +0 -2
- package/dist/LabelvaluerangebarWidget-DL0U8cbw.cjs +0 -2
- package/dist/Layout-DRL0EeSA.cjs +0 -2
- package/dist/LedWidget-B8rjFe1b.cjs +0 -2
- package/dist/LedWidget-B8rjFe1b.cjs.map +0 -1
- package/dist/LedWidget-CxJjJBBS.js +0 -71
- package/dist/LedWidget-CxJjJBBS.js.map +0 -1
- package/dist/LimitsbarWidget-CYIH8fdp.cjs +0 -2
- package/dist/LimitsbarWidget-CYIH8fdp.cjs.map +0 -1
- package/dist/LimitsbarWidget-Djui0IpK.js.map +0 -1
- package/dist/LimitscolorWidget-CS0wpX9A.cjs +0 -2
- package/dist/LimitscolumnWidget-C_UW6xKq.cjs +0 -2
- package/dist/LinegraphWidget-8td_PqgU.cjs +0 -2
- package/dist/MatrixbycolumnsWidget-CGOeCNW2.cjs +0 -2
- package/dist/MicroservicesTab-IbTmbPxO.js +0 -268
- package/dist/MicroservicesTab-IbTmbPxO.js.map +0 -1
- package/dist/MicroservicesTab-uMC8NebS.cjs +0 -2
- package/dist/MicroservicesTab-uMC8NebS.cjs.map +0 -1
- package/dist/OutputDialog-B4Q0QMJ1.cjs +0 -2
- package/dist/OutputDialog-B4Q0QMJ1.cjs.map +0 -1
- package/dist/OutputDialog-Ci5OT_fH.js.map +0 -1
- package/dist/PackagesTab-BX8YP3H1.js +0 -332
- package/dist/PackagesTab-BX8YP3H1.js.map +0 -1
- package/dist/PackagesTab-eYbk2vw7.cjs +0 -2
- package/dist/PackagesTab-eYbk2vw7.cjs.map +0 -1
- package/dist/PluginsTab-Ck3DvEGm.cjs +0 -6
- package/dist/PluginsTab-Ck3DvEGm.cjs.map +0 -1
- package/dist/PluginsTab-Ds3jk64b.js.map +0 -1
- package/dist/ProgressbarWidget-CUIAYySg.cjs +0 -2
- package/dist/RadiobuttonWidget-Cjk1JAP_.cjs +0 -2
- package/dist/RadiogroupWidget-B4lkYWaC.cjs +0 -2
- package/dist/RangebarWidget-nl0rzj93.cjs +0 -2
- package/dist/RedisTab-DhS4GHDj.cjs +0 -2
- package/dist/RollupWidget-Bgudi_bt.cjs +0 -2
- package/dist/RoutersTab-CzO10cVP.cjs +0 -2
- package/dist/RoutersTab-CzO10cVP.cjs.map +0 -1
- package/dist/RoutersTab-Dki_66av.js +0 -95
- package/dist/RoutersTab-Dki_66av.js.map +0 -1
- package/dist/ScriptChooser-BNm_zXxX.cjs +0 -2
- package/dist/ScriptChooser-BNm_zXxX.cjs.map +0 -1
- package/dist/ScriptChooser-l5i8c8KP.js +0 -199
- package/dist/ScriptChooser-l5i8c8KP.js.map +0 -1
- package/dist/ScrollwindowWidget-BIiV7xwi.cjs +0 -2
- package/dist/SecretsTab-BSzFZ81X.cjs +0 -2
- package/dist/SecretsTab-BSzFZ81X.cjs.map +0 -1
- package/dist/SecretsTab-BjviaTxh.js.map +0 -1
- package/dist/SettingsTab-Bo_dYXgb.js.map +0 -1
- package/dist/SettingsTab-DH8LAAoG.cjs +0 -3
- package/dist/SettingsTab-DH8LAAoG.cjs.map +0 -1
- package/dist/SignalWidget-CvZkvejy.cjs +0 -2
- package/dist/SignalWidget-CvZkvejy.cjs.map +0 -1
- package/dist/SignalWidget-DQ5Uc2uV.js.map +0 -1
- package/dist/SimpleTextDialog-CheuP_ls.js +0 -108
- package/dist/SimpleTextDialog-CheuP_ls.js.map +0 -1
- package/dist/SimpleTextDialog-DmeNMMCR.cjs +0 -2
- package/dist/SimpleTextDialog-DmeNMMCR.cjs.map +0 -1
- package/dist/SpacerWidget-BBJR6HBQ.cjs +0 -2
- package/dist/SparklineWidget-BxBLnjAO.cjs +0 -2
- package/dist/TabbookWidget-DyFQnA10.cjs +0 -2
- package/dist/TargetsTab-Cd8U1aN_.js +0 -129
- package/dist/TargetsTab-Cd8U1aN_.js.map +0 -1
- package/dist/TargetsTab-DMiOliqg.cjs +0 -2
- package/dist/TargetsTab-DMiOliqg.cjs.map +0 -1
- package/dist/TextBoxDialog-DvUf3Cak.cjs +0 -2
- package/dist/TextBoxDialog-DvUf3Cak.cjs.map +0 -1
- package/dist/TextBoxDialog-fHkDTtzI.js +0 -110
- package/dist/TextBoxDialog-fHkDTtzI.js.map +0 -1
- package/dist/TextboxWidget-D6lW_dsU.cjs +0 -2
- package/dist/TextfieldWidget-iHN7-fyF.cjs +0 -2
- package/dist/TimeWidget-C3NZqTEG.cjs +0 -2
- package/dist/TitleWidget-CWZs33c4.cjs +0 -2
- package/dist/ToolsTab-CUpUmkZL.cjs +0 -7
- package/dist/ToolsTab-Cgpb2nAW.js +0 -1521
- package/dist/TopBar-DuXL27iD.cjs +0 -2
- package/dist/TopBar-DuXL27iD.cjs.map +0 -1
- package/dist/TopBar-F1jHuFan.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog-DVcAH30Y.js.map +0 -1
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs +0 -2
- package/dist/UpgradeToEnterpriseDialog-DfIKahNK.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs +0 -1417
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-DJX55UPj.cjs.map +0 -1
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js +0 -26941
- package/dist/UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_6fa47877_lang-iq-jp8dD.js.map +0 -1
- package/dist/ValueWidget-D4RrYVEK.js.map +0 -1
- package/dist/ValueWidget-Do3Yn47P.cjs +0 -2
- package/dist/ValueWidget-Do3Yn47P.cjs.map +0 -1
- package/dist/ValuelimitsbarWidget-DJuh7FOs.cjs +0 -2
- package/dist/ValuelimitscolumnWidget-BFpG-H7v.cjs +0 -2
- package/dist/ValuerangebarWidget-BlZSaiXo.cjs +0 -2
- package/dist/VerticalWidget--8UErB4q.cjs +0 -2
- package/dist/VerticalboxWidget-B4eGUSYH.js +0 -37
- package/dist/VerticalboxWidget-B4eGUSYH.js.map +0 -1
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs +0 -2
- package/dist/VerticalboxWidget-cxHq1WKQ.cjs.map +0 -1
- package/dist/Widget-DNf52jRQ.cjs +0 -2
- package/dist/Widget-DNf52jRQ.cjs.map +0 -1
- package/dist/Widget-fRCERxGf.js.map +0 -1
- package/dist/index-Bz_jHTkl.cjs +0 -7
- package/dist/index-Bz_jHTkl.cjs.map +0 -1
- package/dist/index-CFQnWdPA.js.map +0 -1
- package/dist/timeFilters-8SaYvcH0.cjs +0 -2
package/dist/tools/admin.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a as
|
|
2
|
-
import { resolveComponent as
|
|
3
|
-
import { _ as
|
|
4
|
-
import {
|
|
1
|
+
import { a as we } from "../index-qCq0L4jN.js";
|
|
2
|
+
import { resolveComponent as m, createBlock as M, openBlock as E, withCtx as g, createVNode as c, createElementVNode as T, createElementBlock as V, createTextVNode as S, Fragment as G, renderList as $, createCommentVNode as j, toDisplayString as A, withModifiers as H, withDirectives as ye, vShow as ve, toRaw as xe } from "vue";
|
|
3
|
+
import { _ as q } from "../CustomIcon-h5X7369N.js";
|
|
4
|
+
import { b as I, l as Ce } from "../UpgradeToEnterpriseDialog.vue_vue_type_style_index_0_scoped_2c757408_lang-CVrrWDJ_.js";
|
|
5
|
+
import { A as U, T as Ee } from "../TopBar-BQhv8Jcc.js";
|
|
5
6
|
import "single-spa";
|
|
6
|
-
|
|
7
|
-
const Se = {
|
|
7
|
+
const Le = {
|
|
8
8
|
props: {
|
|
9
9
|
modelValue: Boolean
|
|
10
10
|
},
|
|
@@ -40,7 +40,7 @@ const Se = {
|
|
|
40
40
|
}));
|
|
41
41
|
},
|
|
42
42
|
getResponse: function() {
|
|
43
|
-
this.disableSearch = !0,
|
|
43
|
+
this.disableSearch = !0, we.get(this.url).then((e) => {
|
|
44
44
|
this.response = e.data;
|
|
45
45
|
}), setTimeout(() => {
|
|
46
46
|
this.disableSearch = !1;
|
|
@@ -54,66 +54,66 @@ const Se = {
|
|
|
54
54
|
t.href = e.url, t.setAttribute("download", e.name), t.click(), t.remove();
|
|
55
55
|
}
|
|
56
56
|
}
|
|
57
|
-
},
|
|
57
|
+
}, Se = { class: "pa-3" }, De = { class: "px-2" }, Me = {
|
|
58
58
|
key: 0,
|
|
59
59
|
class: "mt-4"
|
|
60
60
|
}, Te = {
|
|
61
61
|
key: 1,
|
|
62
62
|
class: "mt-4"
|
|
63
|
-
}
|
|
64
|
-
function
|
|
65
|
-
const
|
|
66
|
-
return
|
|
63
|
+
};
|
|
64
|
+
function ke(e, t, n, o, l, i) {
|
|
65
|
+
const s = m("v-spacer"), r = m("v-toolbar"), a = m("v-row"), f = m("v-icon"), u = m("v-btn"), h = m("v-col"), p = m("v-list-item-title"), _ = m("v-progress-circular"), w = m("v-list-item"), C = m("v-divider"), y = m("v-card-text"), b = m("v-card"), v = m("v-dialog");
|
|
66
|
+
return E(), M(v, {
|
|
67
67
|
modelValue: i.show,
|
|
68
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
68
|
+
"onUpdate:modelValue": t[0] || (t[0] = (x) => i.show = x),
|
|
69
69
|
width: "600"
|
|
70
70
|
}, {
|
|
71
|
-
default:
|
|
72
|
-
|
|
73
|
-
default:
|
|
74
|
-
|
|
75
|
-
default:
|
|
76
|
-
|
|
77
|
-
t[1] || (t[1] =
|
|
78
|
-
|
|
71
|
+
default: g(() => [
|
|
72
|
+
c(b, null, {
|
|
73
|
+
default: g(() => [
|
|
74
|
+
c(r, { height: "24" }, {
|
|
75
|
+
default: g(() => [
|
|
76
|
+
c(s),
|
|
77
|
+
t[1] || (t[1] = T("span", null, " Download Gems ", -1)),
|
|
78
|
+
c(s)
|
|
79
79
|
]),
|
|
80
80
|
_: 1
|
|
81
81
|
}),
|
|
82
|
-
|
|
83
|
-
default:
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
default:
|
|
87
|
-
|
|
82
|
+
c(y, null, {
|
|
83
|
+
default: g(() => [
|
|
84
|
+
T("div", Se, [
|
|
85
|
+
c(a, { class: "my-2" }, {
|
|
86
|
+
default: g(() => t[2] || (t[2] = [
|
|
87
|
+
S(" Select a download option ")
|
|
88
88
|
])),
|
|
89
89
|
_: 1
|
|
90
90
|
}),
|
|
91
|
-
|
|
92
|
-
default:
|
|
93
|
-
|
|
94
|
-
default:
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
onClick: i.searchGithub,
|
|
91
|
+
c(a, null, {
|
|
92
|
+
default: g(() => [
|
|
93
|
+
c(h, null, {
|
|
94
|
+
default: g(() => [
|
|
95
|
+
T("div", De, [
|
|
96
|
+
c(u, {
|
|
98
97
|
block: "",
|
|
99
98
|
"data-test": "searchGithub",
|
|
100
99
|
color: "primary",
|
|
101
|
-
disabled:
|
|
100
|
+
disabled: l.disableSearch,
|
|
101
|
+
onClick: i.searchGithub
|
|
102
102
|
}, {
|
|
103
|
-
default:
|
|
104
|
-
t[4] || (t[4] =
|
|
105
|
-
|
|
103
|
+
default: g(() => [
|
|
104
|
+
t[4] || (t[4] = S(" Github ")),
|
|
105
|
+
c(f, {
|
|
106
106
|
end: "",
|
|
107
107
|
theme: "dark"
|
|
108
108
|
}, {
|
|
109
|
-
default:
|
|
110
|
-
|
|
109
|
+
default: g(() => t[3] || (t[3] = [
|
|
110
|
+
S(" mdi-github ")
|
|
111
111
|
])),
|
|
112
112
|
_: 1
|
|
113
113
|
})
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
|
-
}, 8, ["
|
|
116
|
+
}, 8, ["disabled", "onClick"])
|
|
117
117
|
])
|
|
118
118
|
]),
|
|
119
119
|
_: 1
|
|
@@ -121,62 +121,49 @@ function Me(e, t, n, o, s, i) {
|
|
|
121
121
|
]),
|
|
122
122
|
_: 1
|
|
123
123
|
}),
|
|
124
|
-
|
|
125
|
-
default:
|
|
126
|
-
|
|
124
|
+
c(a, { class: "mt-5" }, {
|
|
125
|
+
default: g(() => t[5] || (t[5] = [
|
|
126
|
+
S(" Community Gems ")
|
|
127
127
|
])),
|
|
128
128
|
_: 1
|
|
129
129
|
}),
|
|
130
|
-
i.listData.length < 1 ? (
|
|
131
|
-
|
|
132
|
-
default:
|
|
133
|
-
|
|
130
|
+
i.listData.length < 1 ? (E(), V("div", Me, [
|
|
131
|
+
c(a, { class: "mx-2" }, {
|
|
132
|
+
default: g(() => t[6] || (t[6] = [
|
|
133
|
+
T("span", null, " I’m sorry, Dave. No gems available.... ", -1)
|
|
134
134
|
])),
|
|
135
135
|
_: 1
|
|
136
136
|
})
|
|
137
|
-
])) : (
|
|
138
|
-
(
|
|
139
|
-
|
|
140
|
-
default:
|
|
141
|
-
|
|
142
|
-
default:
|
|
143
|
-
|
|
137
|
+
])) : (E(), V("div", Te, [
|
|
138
|
+
(E(!0), V(G, null, $(i.listData, (x, L) => (E(), V("div", { key: L }, [
|
|
139
|
+
c(w, null, {
|
|
140
|
+
default: g(() => [
|
|
141
|
+
c(p, null, {
|
|
142
|
+
default: g(() => [
|
|
143
|
+
S(A(x.name), 1)
|
|
144
144
|
]),
|
|
145
145
|
_: 2
|
|
146
146
|
}, 1024),
|
|
147
|
-
|
|
148
|
-
default:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
}), {
|
|
161
|
-
default: u(() => t[7] || (t[7] = [
|
|
162
|
-
E(" mdi-cloud-download ")
|
|
163
|
-
])),
|
|
164
|
-
_: 2
|
|
165
|
-
}, 1040, ["onClick", "disabled"])
|
|
166
|
-
]),
|
|
167
|
-
default: u(() => [
|
|
168
|
-
t[8] || (t[8] = k("span", null, "Download Gem", -1))
|
|
169
|
-
]),
|
|
170
|
-
_: 2
|
|
171
|
-
}, 1024)
|
|
172
|
-
]))
|
|
147
|
+
c(w, { icon: "" }, {
|
|
148
|
+
default: g(() => [
|
|
149
|
+
l.activeDownload ? (E(), M(_, {
|
|
150
|
+
key: 0,
|
|
151
|
+
indeterminate: "",
|
|
152
|
+
color: "primary"
|
|
153
|
+
})) : (E(), M(u, {
|
|
154
|
+
key: 1,
|
|
155
|
+
icon: "mdi-cloud-download",
|
|
156
|
+
variant: "text",
|
|
157
|
+
disabled: l.activeDownload,
|
|
158
|
+
onClick: (k) => i.downloadGem(x)
|
|
159
|
+
}, null, 8, ["disabled", "onClick"]))
|
|
173
160
|
]),
|
|
174
161
|
_: 2
|
|
175
162
|
}, 1024)
|
|
176
163
|
]),
|
|
177
164
|
_: 2
|
|
178
165
|
}, 1024),
|
|
179
|
-
|
|
166
|
+
L < i.listData.length - 1 ? (E(), M(C, { key: L })) : j("", !0)
|
|
180
167
|
]))), 128))
|
|
181
168
|
]))
|
|
182
169
|
])
|
|
@@ -190,7 +177,7 @@ function Me(e, t, n, o, s, i) {
|
|
|
190
177
|
_: 1
|
|
191
178
|
}, 8, ["modelValue"]);
|
|
192
179
|
}
|
|
193
|
-
const
|
|
180
|
+
const ht = /* @__PURE__ */ q(Le, [["render", ke]]), Ie = {
|
|
194
181
|
props: {
|
|
195
182
|
content: {
|
|
196
183
|
type: String,
|
|
@@ -203,16 +190,12 @@ const pt = /* @__PURE__ */ U(Se, [["render", Me]]), Re = {
|
|
|
203
190
|
},
|
|
204
191
|
data() {
|
|
205
192
|
return {
|
|
206
|
-
editor: null
|
|
193
|
+
editor: null,
|
|
194
|
+
contextMenu: !1,
|
|
195
|
+
menuX: 0,
|
|
196
|
+
menuY: 0
|
|
207
197
|
};
|
|
208
198
|
},
|
|
209
|
-
mounted() {
|
|
210
|
-
const e = this.buildPluginMode();
|
|
211
|
-
this.editor = R.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.content), this.editor.clearSelection(), this.editor.focus(), this.readonly && this.editor.setReadOnly(!0);
|
|
212
|
-
},
|
|
213
|
-
beforeUnmount() {
|
|
214
|
-
this.editor && this.editor.destroy();
|
|
215
|
-
},
|
|
216
199
|
computed: {
|
|
217
200
|
show: {
|
|
218
201
|
get() {
|
|
@@ -229,6 +212,13 @@ const pt = /* @__PURE__ */ U(Se, [["render", Me]]), Re = {
|
|
|
229
212
|
return this.editor && this.editor.getValue() === "" && !this.file ? "Input can not be blank." : null;
|
|
230
213
|
}
|
|
231
214
|
},
|
|
215
|
+
mounted() {
|
|
216
|
+
const e = this.buildPluginMode();
|
|
217
|
+
this.editor = I.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.content), this.editor.clearSelection(), U.applyVimModeIfEnabled(this.editor), this.editor.focus(), this.readonly && this.editor.setReadOnly(!0);
|
|
218
|
+
},
|
|
219
|
+
beforeUnmount() {
|
|
220
|
+
this.editor && this.editor.destroy();
|
|
221
|
+
},
|
|
232
222
|
methods: {
|
|
233
223
|
submit: function() {
|
|
234
224
|
this.$emit("submit", this.editor.getValue()), this.show = !this.show;
|
|
@@ -246,110 +236,105 @@ const pt = /* @__PURE__ */ U(Se, [["render", Me]]), Re = {
|
|
|
246
236
|
), t.click();
|
|
247
237
|
},
|
|
248
238
|
buildPluginMode() {
|
|
249
|
-
let e =
|
|
239
|
+
let e = I.require("ace/lib/oop"), t = I.require(
|
|
250
240
|
"ace/mode/json_highlight_rules"
|
|
251
|
-
).JsonHighlightRules, n =
|
|
241
|
+
).JsonHighlightRules, n = I.require(
|
|
252
242
|
"ace/mode/matching_brace_outdent"
|
|
253
|
-
).MatchingBraceOutdent, o =
|
|
243
|
+
).MatchingBraceOutdent, o = I.require(
|
|
254
244
|
"ace/mode/behaviour/cstyle"
|
|
255
|
-
).CstyleBehaviour,
|
|
256
|
-
this.HighlightRules = t, this.$outdent = new n(), this.$behaviour = new o(), this.foldingRules = new
|
|
257
|
-
},
|
|
258
|
-
return e.inherits(i,
|
|
245
|
+
).CstyleBehaviour, l = I.require("ace/mode/folding/ruby").FoldMode, i = function() {
|
|
246
|
+
this.HighlightRules = t, this.$outdent = new n(), this.$behaviour = new o(), this.foldingRules = new l(), this.indentKeywords = this.foldingRules.indentKeywords;
|
|
247
|
+
}, s = I.require("ace/mode/ruby").Mode;
|
|
248
|
+
return e.inherits(i, s), (function() {
|
|
259
249
|
this.$id = "ace/mode/openc3";
|
|
260
250
|
}).call(i.prototype), i;
|
|
251
|
+
},
|
|
252
|
+
showContextMenu: function(e) {
|
|
253
|
+
this.menuX = e.pageX, this.menuY = e.pageY;
|
|
254
|
+
let t = this.editor.getCursorPosition(), n = this.editor.session.getTokenAt(t.row, t.column);
|
|
255
|
+
if (n) {
|
|
256
|
+
let o = n.value.trim();
|
|
257
|
+
o.includes(" ") ? this.docsKeyword = o.split(" ")[0] : this.docsKeyword = o, this.contextMenu = !0;
|
|
258
|
+
}
|
|
259
|
+
},
|
|
260
|
+
toggleVimMode: function() {
|
|
261
|
+
U.toggleVimMode(this.editor);
|
|
261
262
|
}
|
|
262
263
|
}
|
|
263
|
-
},
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
function He(e, t, n, o, s, i) {
|
|
268
|
-
const l = _("v-spacer"), r = _("v-icon"), a = _("v-tooltip"), f = _("v-toolbar"), c = _("v-row"), h = _("v-btn"), p = _("v-col"), m = _("v-file-input"), w = _("v-card-text"), v = _("v-card"), y = _("v-dialog");
|
|
269
|
-
return S(), M(y, {
|
|
270
|
-
persistent: !n.readonly,
|
|
264
|
+
}, Re = ["textContent"], Ve = { class: "pa-3" }, Ae = { key: 0 }, Ne = ["textContent"];
|
|
265
|
+
function Oe(e, t, n, o, l, i) {
|
|
266
|
+
const s = m("v-spacer"), r = m("v-btn"), a = m("v-toolbar"), f = m("v-row"), u = m("v-col"), h = m("v-file-input"), p = m("v-list-item"), _ = m("v-list"), w = m("v-menu"), C = m("v-card-text"), y = m("v-card"), b = m("v-dialog");
|
|
267
|
+
return E(), M(b, {
|
|
271
268
|
modelValue: i.show,
|
|
272
|
-
"onUpdate:modelValue": t[
|
|
269
|
+
"onUpdate:modelValue": t[4] || (t[4] = (v) => i.show = v),
|
|
270
|
+
persistent: !n.readonly,
|
|
273
271
|
width: "80vw"
|
|
274
272
|
}, {
|
|
275
|
-
default:
|
|
276
|
-
|
|
277
|
-
default:
|
|
278
|
-
|
|
279
|
-
onSubmit: t[
|
|
273
|
+
default: g(() => [
|
|
274
|
+
c(y, null, {
|
|
275
|
+
default: g(() => [
|
|
276
|
+
T("form", {
|
|
277
|
+
onSubmit: t[3] || (t[3] = H((...v) => i.submit && i.submit(...v), ["prevent"]))
|
|
280
278
|
}, [
|
|
281
|
-
|
|
282
|
-
default:
|
|
283
|
-
|
|
284
|
-
|
|
279
|
+
c(a, { height: "24" }, {
|
|
280
|
+
default: g(() => [
|
|
281
|
+
c(s),
|
|
282
|
+
T("span", {
|
|
285
283
|
textContent: A(i.title)
|
|
286
|
-
}, null, 8,
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
default: u(() => t[3] || (t[3] = [
|
|
297
|
-
E(" mdi-download ")
|
|
298
|
-
])),
|
|
299
|
-
_: 1
|
|
300
|
-
}, 8, ["onClick"])
|
|
301
|
-
], 16)
|
|
302
|
-
]),
|
|
303
|
-
default: u(() => [
|
|
304
|
-
t[4] || (t[4] = k("span", null, " Download ", -1))
|
|
305
|
-
]),
|
|
306
|
-
_: 1
|
|
307
|
-
})
|
|
308
|
-
])
|
|
284
|
+
}, null, 8, Re),
|
|
285
|
+
c(s),
|
|
286
|
+
c(r, {
|
|
287
|
+
class: "mx-2",
|
|
288
|
+
icon: "mdi-download",
|
|
289
|
+
variant: "text",
|
|
290
|
+
density: "compact",
|
|
291
|
+
"data-test": "downloadIcon",
|
|
292
|
+
onClick: i.download
|
|
293
|
+
}, null, 8, ["onClick"])
|
|
309
294
|
]),
|
|
310
295
|
_: 1
|
|
311
296
|
}),
|
|
312
|
-
|
|
313
|
-
default:
|
|
314
|
-
|
|
315
|
-
n.readonly ?
|
|
316
|
-
|
|
317
|
-
default:
|
|
318
|
-
|
|
297
|
+
c(C, null, {
|
|
298
|
+
default: g(() => [
|
|
299
|
+
T("div", Ve, [
|
|
300
|
+
n.readonly ? j("", !0) : (E(), V("div", Ae, [
|
|
301
|
+
c(f, { class: "mt-3" }, {
|
|
302
|
+
default: g(() => t[5] || (t[5] = [
|
|
303
|
+
S(" Upload a file. ")
|
|
319
304
|
])),
|
|
320
305
|
_: 1
|
|
321
306
|
}),
|
|
322
|
-
|
|
307
|
+
c(f, {
|
|
323
308
|
"no-gutters": "",
|
|
324
309
|
align: "center"
|
|
325
310
|
}, {
|
|
326
|
-
default:
|
|
327
|
-
|
|
328
|
-
default:
|
|
329
|
-
|
|
311
|
+
default: g(() => [
|
|
312
|
+
c(u, { cols: "3" }, {
|
|
313
|
+
default: g(() => [
|
|
314
|
+
c(r, {
|
|
330
315
|
block: "",
|
|
331
316
|
color: "success",
|
|
332
|
-
onClick: e.loadFile,
|
|
333
317
|
disabled: !e.file || e.loadingFile || n.readonly,
|
|
334
318
|
loading: e.loadingFile,
|
|
335
|
-
"data-test": "editScreenLoadBtn"
|
|
319
|
+
"data-test": "editScreenLoadBtn",
|
|
320
|
+
onClick: e.loadFile
|
|
336
321
|
}, {
|
|
337
|
-
loader:
|
|
338
|
-
|
|
322
|
+
loader: g(() => t[6] || (t[6] = [
|
|
323
|
+
T("span", null, "Loading...", -1)
|
|
339
324
|
])),
|
|
340
|
-
default:
|
|
341
|
-
t[7] || (t[7] =
|
|
325
|
+
default: g(() => [
|
|
326
|
+
t[7] || (t[7] = S(" Load "))
|
|
342
327
|
]),
|
|
343
328
|
_: 1
|
|
344
|
-
}, 8, ["
|
|
329
|
+
}, 8, ["disabled", "loading", "onClick"])
|
|
345
330
|
]),
|
|
346
331
|
_: 1
|
|
347
332
|
}),
|
|
348
|
-
|
|
349
|
-
default:
|
|
350
|
-
|
|
333
|
+
c(u, { cols: "9" }, {
|
|
334
|
+
default: g(() => [
|
|
335
|
+
c(h, {
|
|
351
336
|
modelValue: e.file,
|
|
352
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
337
|
+
"onUpdate:modelValue": t[0] || (t[0] = (v) => e.file = v),
|
|
353
338
|
accept: ".json",
|
|
354
339
|
label: "Click to select .json file.",
|
|
355
340
|
disabled: n.readonly
|
|
@@ -361,38 +346,61 @@ function He(e, t, n, o, s, i) {
|
|
|
361
346
|
_: 1
|
|
362
347
|
})
|
|
363
348
|
])),
|
|
364
|
-
|
|
365
|
-
default:
|
|
366
|
-
|
|
349
|
+
c(f, { "no-gutters": "" }, {
|
|
350
|
+
default: g(() => [
|
|
351
|
+
T("pre", {
|
|
352
|
+
ref: "editor",
|
|
353
|
+
class: "editor",
|
|
354
|
+
onContextmenu: t[1] || (t[1] = H((...v) => i.showContextMenu && i.showContextMenu(...v), ["prevent"]))
|
|
355
|
+
}, null, 544),
|
|
356
|
+
c(w, {
|
|
357
|
+
modelValue: l.contextMenu,
|
|
358
|
+
"onUpdate:modelValue": t[2] || (t[2] = (v) => l.contextMenu = v),
|
|
359
|
+
target: [l.menuX, l.menuY]
|
|
360
|
+
}, {
|
|
361
|
+
default: g(() => [
|
|
362
|
+
c(_, null, {
|
|
363
|
+
default: g(() => [
|
|
364
|
+
c(p, {
|
|
365
|
+
title: "Toggle Vim mode",
|
|
366
|
+
"prepend-icon": "extras:vim",
|
|
367
|
+
onClick: i.toggleVimMode
|
|
368
|
+
}, null, 8, ["onClick"])
|
|
369
|
+
]),
|
|
370
|
+
_: 1
|
|
371
|
+
})
|
|
372
|
+
]),
|
|
373
|
+
_: 1
|
|
374
|
+
}, 8, ["modelValue", "target"])
|
|
367
375
|
]),
|
|
368
376
|
_: 1
|
|
369
377
|
}),
|
|
370
|
-
|
|
371
|
-
default:
|
|
372
|
-
|
|
378
|
+
c(f, { class: "my-3" }, {
|
|
379
|
+
default: g(() => [
|
|
380
|
+
ye(T("span", {
|
|
373
381
|
class: "text-red",
|
|
374
382
|
textContent: A(i.error)
|
|
375
|
-
}, null, 8,
|
|
376
|
-
[
|
|
383
|
+
}, null, 8, Ne), [
|
|
384
|
+
[ve, i.error]
|
|
377
385
|
])
|
|
378
386
|
]),
|
|
379
387
|
_: 1
|
|
380
388
|
}),
|
|
381
|
-
|
|
382
|
-
default:
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
onClick: j(i.close, ["prevent"]),
|
|
389
|
+
c(f, null, {
|
|
390
|
+
default: g(() => [
|
|
391
|
+
c(s),
|
|
392
|
+
c(r, {
|
|
386
393
|
variant: "outlined",
|
|
387
394
|
class: "mx-2",
|
|
388
|
-
"data-test": "editCancelBtn"
|
|
395
|
+
"data-test": "editCancelBtn",
|
|
396
|
+
onClick: H(i.close, ["prevent"])
|
|
389
397
|
}, {
|
|
390
|
-
default:
|
|
391
|
-
|
|
398
|
+
default: g(() => t[8] || (t[8] = [
|
|
399
|
+
S(" Cancel ")
|
|
392
400
|
])),
|
|
393
401
|
_: 1
|
|
394
402
|
}, 8, ["onClick"]),
|
|
395
|
-
n.readonly ?
|
|
403
|
+
n.readonly ? j("", !0) : (E(), M(r, {
|
|
396
404
|
key: 0,
|
|
397
405
|
class: "mx-2",
|
|
398
406
|
color: "primary",
|
|
@@ -400,8 +408,8 @@ function He(e, t, n, o, s, i) {
|
|
|
400
408
|
"data-test": "editSubmitBtn",
|
|
401
409
|
disabled: !!i.error || n.readonly
|
|
402
410
|
}, {
|
|
403
|
-
default:
|
|
404
|
-
|
|
411
|
+
default: g(() => t[9] || (t[9] = [
|
|
412
|
+
S(" Save ")
|
|
405
413
|
])),
|
|
406
414
|
_: 1
|
|
407
415
|
}, 8, ["disabled"]))
|
|
@@ -418,9 +426,9 @@ function He(e, t, n, o, s, i) {
|
|
|
418
426
|
})
|
|
419
427
|
]),
|
|
420
428
|
_: 1
|
|
421
|
-
}, 8, ["
|
|
429
|
+
}, 8, ["modelValue", "persistent"]);
|
|
422
430
|
}
|
|
423
|
-
const
|
|
431
|
+
const ut = /* @__PURE__ */ q(Ie, [["render", Oe], ["__scopeId", "data-v-e84cb3ed"]]), Pe = {
|
|
424
432
|
props: {
|
|
425
433
|
modelValue: Boolean,
|
|
426
434
|
plugin: String,
|
|
@@ -445,7 +453,7 @@ const mt = /* @__PURE__ */ U(Re, [["render", He], ["__scopeId", "data-v-74f3ff47
|
|
|
445
453
|
},
|
|
446
454
|
created() {
|
|
447
455
|
for (const e of this.targets)
|
|
448
|
-
|
|
456
|
+
Ce.get(`/openc3-api/targets/${e.name}/modified_files`).then(
|
|
449
457
|
(t) => {
|
|
450
458
|
t.data.length !== 0 && this.modifiedTargets.push({
|
|
451
459
|
name: e.name,
|
|
@@ -455,50 +463,50 @@ const mt = /* @__PURE__ */ U(Re, [["render", He], ["__scopeId", "data-v-74f3ff47
|
|
|
455
463
|
);
|
|
456
464
|
}
|
|
457
465
|
};
|
|
458
|
-
function
|
|
459
|
-
const
|
|
460
|
-
return
|
|
466
|
+
function Fe(e, t, n, o, l, i) {
|
|
467
|
+
const s = m("v-spacer"), r = m("v-toolbar"), a = m("v-list-item-title"), f = m("v-list-item-subtitle"), u = m("v-list-item"), h = m("v-checkbox"), p = m("v-card-text"), _ = m("v-btn"), w = m("v-card-actions"), C = m("v-card"), y = m("v-dialog");
|
|
468
|
+
return E(), M(y, {
|
|
461
469
|
modelValue: i.show,
|
|
462
470
|
"onUpdate:modelValue": t[3] || (t[3] = (b) => i.show = b),
|
|
463
471
|
width: "600"
|
|
464
472
|
}, {
|
|
465
|
-
default:
|
|
466
|
-
|
|
467
|
-
default:
|
|
468
|
-
|
|
469
|
-
default:
|
|
470
|
-
|
|
471
|
-
t[4] || (t[4] =
|
|
472
|
-
|
|
473
|
+
default: g(() => [
|
|
474
|
+
c(C, null, {
|
|
475
|
+
default: g(() => [
|
|
476
|
+
c(r, { height: "24" }, {
|
|
477
|
+
default: g(() => [
|
|
478
|
+
c(s),
|
|
479
|
+
t[4] || (t[4] = T("span", null, " Modified Plugin ", -1)),
|
|
480
|
+
c(s)
|
|
473
481
|
]),
|
|
474
482
|
_: 1
|
|
475
483
|
}),
|
|
476
|
-
|
|
477
|
-
default:
|
|
478
|
-
|
|
479
|
-
(
|
|
480
|
-
|
|
481
|
-
|
|
484
|
+
c(p, { class: "pa-3" }, {
|
|
485
|
+
default: g(() => [
|
|
486
|
+
T("div", null, " Plugin " + A(n.plugin) + " was modified. Would you like to delete the existing modified files? ", 1),
|
|
487
|
+
(E(!0), V(G, null, $(l.modifiedTargets, (b, v) => (E(), M(u, {
|
|
488
|
+
key: v,
|
|
489
|
+
lines: "two"
|
|
482
490
|
}, {
|
|
483
|
-
default:
|
|
484
|
-
|
|
485
|
-
default:
|
|
486
|
-
|
|
491
|
+
default: g(() => [
|
|
492
|
+
c(a, null, {
|
|
493
|
+
default: g(() => [
|
|
494
|
+
S(A(b.name), 1)
|
|
487
495
|
]),
|
|
488
496
|
_: 2
|
|
489
497
|
}, 1024),
|
|
490
|
-
(
|
|
491
|
-
default:
|
|
492
|
-
|
|
498
|
+
(E(!0), V(G, null, $(b.files, (x, L) => (E(), M(f, { key: L }, {
|
|
499
|
+
default: g(() => [
|
|
500
|
+
S(A(x), 1)
|
|
493
501
|
]),
|
|
494
502
|
_: 2
|
|
495
503
|
}, 1024))), 128))
|
|
496
504
|
]),
|
|
497
505
|
_: 2
|
|
498
506
|
}, 1024))), 128)),
|
|
499
|
-
|
|
500
|
-
modelValue:
|
|
501
|
-
"onUpdate:modelValue": t[0] || (t[0] = (b) =>
|
|
507
|
+
c(h, {
|
|
508
|
+
modelValue: l.deleteModified,
|
|
509
|
+
"onUpdate:modelValue": t[0] || (t[0] = (b) => l.deleteModified = b),
|
|
502
510
|
label: "DELETE MODIFIED! THIS CAN NOT BE UNDONE!!!",
|
|
503
511
|
color: "error",
|
|
504
512
|
"data-test": "modified-plugin-delete-checkbox"
|
|
@@ -506,30 +514,30 @@ function $e(e, t, n, o, s, i) {
|
|
|
506
514
|
]),
|
|
507
515
|
_: 1
|
|
508
516
|
}),
|
|
509
|
-
|
|
510
|
-
default:
|
|
511
|
-
|
|
512
|
-
|
|
517
|
+
c(w, { class: "px-2" }, {
|
|
518
|
+
default: g(() => [
|
|
519
|
+
c(s),
|
|
520
|
+
c(_, {
|
|
513
521
|
variant: "outlined",
|
|
514
522
|
"data-test": "modified-plugin-cancel",
|
|
515
523
|
onClick: t[1] || (t[1] = () => {
|
|
516
524
|
i.show = !1, e.$emit("cancel");
|
|
517
525
|
})
|
|
518
526
|
}, {
|
|
519
|
-
default:
|
|
520
|
-
|
|
527
|
+
default: g(() => t[5] || (t[5] = [
|
|
528
|
+
S(" Cancel ")
|
|
521
529
|
])),
|
|
522
530
|
_: 1
|
|
523
531
|
}),
|
|
524
|
-
|
|
532
|
+
c(_, {
|
|
525
533
|
variant: "flat",
|
|
526
534
|
"data-test": "modified-plugin-submit",
|
|
527
535
|
onClick: t[2] || (t[2] = () => {
|
|
528
|
-
i.show = !1, e.$emit("submit",
|
|
536
|
+
i.show = !1, e.$emit("submit", l.deleteModified);
|
|
529
537
|
})
|
|
530
538
|
}, {
|
|
531
|
-
default:
|
|
532
|
-
|
|
539
|
+
default: g(() => t[6] || (t[6] = [
|
|
540
|
+
S(" Confirm ")
|
|
533
541
|
])),
|
|
534
542
|
_: 1
|
|
535
543
|
})
|
|
@@ -543,70 +551,70 @@ function $e(e, t, n, o, s, i) {
|
|
|
543
551
|
_: 1
|
|
544
552
|
}, 8, ["modelValue"]);
|
|
545
553
|
}
|
|
546
|
-
const
|
|
554
|
+
const ct = /* @__PURE__ */ q(Pe, [["render", Fe]]), Ue = [
|
|
547
555
|
{
|
|
548
556
|
displayName: "Plugins",
|
|
549
557
|
name: "PluginsTab",
|
|
550
558
|
path: "plugins",
|
|
551
|
-
component: () => import("../PluginsTab-
|
|
559
|
+
component: () => import("../PluginsTab-C9t0-QVm.js")
|
|
552
560
|
},
|
|
553
561
|
{
|
|
554
562
|
displayName: "Targets",
|
|
555
563
|
name: "TargetsTab",
|
|
556
564
|
path: "targets",
|
|
557
|
-
component: () => import("../TargetsTab-
|
|
565
|
+
component: () => import("../TargetsTab-CfBt-dZW.js")
|
|
558
566
|
},
|
|
559
567
|
{
|
|
560
568
|
displayName: "Interfaces",
|
|
561
569
|
name: "InterfacesTab",
|
|
562
570
|
path: "interfaces",
|
|
563
|
-
component: () => import("../InterfacesTab-
|
|
571
|
+
component: () => import("../InterfacesTab-DTixVrGo.js")
|
|
564
572
|
},
|
|
565
573
|
{
|
|
566
574
|
displayName: "Routers",
|
|
567
575
|
name: "RoutersTab",
|
|
568
576
|
path: "routers",
|
|
569
|
-
component: () => import("../RoutersTab-
|
|
577
|
+
component: () => import("../RoutersTab-D-ex_yMO.js")
|
|
570
578
|
},
|
|
571
579
|
{
|
|
572
580
|
displayName: "Microservices",
|
|
573
581
|
name: "MicroservicesTab",
|
|
574
582
|
path: "microservices",
|
|
575
|
-
component: () => import("../MicroservicesTab-
|
|
583
|
+
component: () => import("../MicroservicesTab-DbL48MBc.js")
|
|
576
584
|
},
|
|
577
585
|
{
|
|
578
586
|
displayName: "Packages",
|
|
579
587
|
name: "PackagesTab",
|
|
580
588
|
path: "packages",
|
|
581
|
-
component: () => import("../PackagesTab-
|
|
589
|
+
component: () => import("../PackagesTab-Bw34RkLc.js")
|
|
582
590
|
},
|
|
583
591
|
{
|
|
584
592
|
displayName: "Tools",
|
|
585
593
|
name: "ToolsTab",
|
|
586
594
|
path: "tools",
|
|
587
|
-
component: () => import("../ToolsTab-
|
|
595
|
+
component: () => import("../ToolsTab-CnhhRS3J.js")
|
|
588
596
|
},
|
|
589
597
|
{
|
|
590
598
|
displayName: "Redis",
|
|
591
599
|
name: "RedisTab",
|
|
592
600
|
path: "redis",
|
|
593
|
-
component: () => import("../RedisTab-
|
|
601
|
+
component: () => import("../RedisTab-CvPLS0Qe.js")
|
|
594
602
|
},
|
|
595
603
|
{
|
|
596
604
|
displayName: "Secrets",
|
|
597
605
|
name: "SecretsTab",
|
|
598
606
|
path: "secrets",
|
|
599
|
-
component: () => import("../SecretsTab-
|
|
607
|
+
component: () => import("../SecretsTab-CLkJfzf-.js")
|
|
600
608
|
},
|
|
601
609
|
{
|
|
602
610
|
displayName: "Settings",
|
|
603
611
|
name: "SettingsTab",
|
|
604
612
|
path: "settings",
|
|
605
|
-
component: () => import("../SettingsTab-
|
|
613
|
+
component: () => import("../SettingsTab-CysOMBFu.js")
|
|
606
614
|
}
|
|
607
|
-
],
|
|
615
|
+
], He = {
|
|
608
616
|
components: {
|
|
609
|
-
TopBar:
|
|
617
|
+
TopBar: Ee
|
|
610
618
|
},
|
|
611
619
|
data() {
|
|
612
620
|
return {
|
|
@@ -616,44 +624,44 @@ const _t = /* @__PURE__ */ U(Ue, [["render", $e]]), Be = [
|
|
|
616
624
|
},
|
|
617
625
|
computed: {
|
|
618
626
|
tabs: function() {
|
|
619
|
-
return
|
|
627
|
+
return Ue.map((e) => ({
|
|
620
628
|
displayName: e.displayName,
|
|
621
629
|
path: { name: e.name }
|
|
622
630
|
}));
|
|
623
631
|
}
|
|
624
632
|
}
|
|
625
633
|
};
|
|
626
|
-
function
|
|
627
|
-
const
|
|
628
|
-
return
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
default:
|
|
632
|
-
|
|
633
|
-
modelValue:
|
|
634
|
-
"onUpdate:modelValue": t[0] || (t[0] = (h) =>
|
|
634
|
+
function Be(e, t, n, o, l, i) {
|
|
635
|
+
const s = m("top-bar"), r = m("v-tab"), a = m("v-tabs"), f = m("router-view"), u = m("v-card");
|
|
636
|
+
return E(), V("div", null, [
|
|
637
|
+
c(s, { title: l.title }, null, 8, ["title"]),
|
|
638
|
+
c(u, null, {
|
|
639
|
+
default: g(() => [
|
|
640
|
+
c(a, {
|
|
641
|
+
modelValue: l.curTab,
|
|
642
|
+
"onUpdate:modelValue": t[0] || (t[0] = (h) => l.curTab = h),
|
|
635
643
|
"fixed-tabs": ""
|
|
636
644
|
}, {
|
|
637
|
-
default:
|
|
638
|
-
(
|
|
645
|
+
default: g(() => [
|
|
646
|
+
(E(!0), V(G, null, $(i.tabs, (h, p) => (E(), M(r, {
|
|
639
647
|
key: p,
|
|
640
648
|
to: h.path
|
|
641
649
|
}, {
|
|
642
|
-
default:
|
|
643
|
-
|
|
650
|
+
default: g(() => [
|
|
651
|
+
S(A(h.displayName), 1)
|
|
644
652
|
]),
|
|
645
653
|
_: 2
|
|
646
654
|
}, 1032, ["to"]))), 128))
|
|
647
655
|
]),
|
|
648
656
|
_: 1
|
|
649
657
|
}, 8, ["modelValue"]),
|
|
650
|
-
|
|
658
|
+
c(f)
|
|
651
659
|
]),
|
|
652
660
|
_: 1
|
|
653
661
|
})
|
|
654
662
|
]);
|
|
655
663
|
}
|
|
656
|
-
const
|
|
664
|
+
const gt = /* @__PURE__ */ q(He, [["render", Be]]), d = function() {
|
|
657
665
|
this.Diff_Timeout = 1, this.Diff_EditCost = 4, this.Match_Threshold = 0.5, this.Match_Distance = 1e3, this.Patch_DeleteThreshold = 0.5, this.Patch_Margin = 4, this.Match_MaxBits = 32;
|
|
658
666
|
};
|
|
659
667
|
d.Diff = function(e, t) {
|
|
@@ -665,198 +673,198 @@ d.Diff.prototype.toString = function() {
|
|
|
665
673
|
};
|
|
666
674
|
d.prototype.diff_main = function(e, t, n, o) {
|
|
667
675
|
typeof o > "u" && (this.Diff_Timeout <= 0 ? o = Number.MAX_VALUE : o = (/* @__PURE__ */ new Date()).getTime() + this.Diff_Timeout * 1e3);
|
|
668
|
-
let
|
|
676
|
+
let l = o;
|
|
669
677
|
if (e == null || t == null) throw new Error("Null input. (diff_main)");
|
|
670
678
|
if (e == t) return e ? [new d.Diff(0, e)] : [];
|
|
671
679
|
typeof n > "u" && (n = !0);
|
|
672
|
-
let i = n,
|
|
673
|
-
e = e.substring(
|
|
674
|
-
let a = e.substring(e.length -
|
|
675
|
-
e = e.substring(0, e.length -
|
|
676
|
-
let f = this.diff_compute_(e, t, i,
|
|
680
|
+
let i = n, s = this.diff_commonPrefix(e, t), r = e.substring(0, s);
|
|
681
|
+
e = e.substring(s), t = t.substring(s), s = this.diff_commonSuffix(e, t);
|
|
682
|
+
let a = e.substring(e.length - s);
|
|
683
|
+
e = e.substring(0, e.length - s), t = t.substring(0, t.length - s);
|
|
684
|
+
let f = this.diff_compute_(e, t, i, l);
|
|
677
685
|
return r && f.unshift(new d.Diff(0, r)), a && f.push(new d.Diff(0, a)), this.diff_cleanupMerge(f), f;
|
|
678
686
|
};
|
|
679
687
|
d.prototype.diff_compute_ = function(e, t, n, o) {
|
|
680
|
-
let
|
|
688
|
+
let l;
|
|
681
689
|
if (!e) return [new d.Diff(1, t)];
|
|
682
690
|
if (!t) return [new d.Diff(-1, e)];
|
|
683
|
-
let i = e.length > t.length ? e : t,
|
|
684
|
-
return r != -1 ? (
|
|
691
|
+
let i = e.length > t.length ? e : t, s = e.length > t.length ? t : e, r = i.indexOf(s);
|
|
692
|
+
return r != -1 ? (l = [new d.Diff(1, i.substring(0, r)), new d.Diff(0, s), new d.Diff(1, i.substring(r + s.length))], e.length > t.length && (l[0][0] = l[2][0] = -1), l) : s.length == 1 ? [new d.Diff(-1, e), new d.Diff(1, t)] : n && e.length > 100 && t.length > 100 ? this.diff_lineMode_(e, t, o) : this.diff_bisect_(e, t, o);
|
|
685
693
|
};
|
|
686
694
|
d.prototype.diff_lineMode_ = function(e, t, n) {
|
|
687
695
|
let o = this.diff_linesToChars_(e, t);
|
|
688
696
|
e = o.chars1, t = o.chars2;
|
|
689
|
-
let
|
|
690
|
-
this.diff_charsToLines_(i,
|
|
691
|
-
let
|
|
692
|
-
for (;
|
|
693
|
-
switch (i[
|
|
697
|
+
let l = o.lineArray, i = this.diff_main(e, t, !1, n);
|
|
698
|
+
this.diff_charsToLines_(i, l), this.diff_cleanupSemantic(i), i.push(new d.Diff(0, ""));
|
|
699
|
+
let s = 0, r = 0, a = 0, f = "", u = "";
|
|
700
|
+
for (; s < i.length; ) {
|
|
701
|
+
switch (i[s][0]) {
|
|
694
702
|
case 1:
|
|
695
|
-
a++,
|
|
703
|
+
a++, u += i[s][1];
|
|
696
704
|
break;
|
|
697
705
|
case -1:
|
|
698
|
-
r++, f += i[
|
|
706
|
+
r++, f += i[s][1];
|
|
699
707
|
break;
|
|
700
708
|
case 0:
|
|
701
709
|
if (r >= 1 && a >= 1) {
|
|
702
|
-
i.splice(
|
|
703
|
-
let h = this.diff_main(f,
|
|
704
|
-
for (let p = h.length - 1; p >= 0; p--) i.splice(
|
|
705
|
-
|
|
710
|
+
i.splice(s - r - a, r + a), s = s - r - a;
|
|
711
|
+
let h = this.diff_main(f, u, !1, n);
|
|
712
|
+
for (let p = h.length - 1; p >= 0; p--) i.splice(s, 0, h[p]);
|
|
713
|
+
s = s + h.length;
|
|
706
714
|
}
|
|
707
|
-
a = 0, r = 0, f = "",
|
|
715
|
+
a = 0, r = 0, f = "", u = "";
|
|
708
716
|
break;
|
|
709
717
|
}
|
|
710
|
-
|
|
718
|
+
s++;
|
|
711
719
|
}
|
|
712
720
|
return i.pop(), i;
|
|
713
721
|
};
|
|
714
722
|
d.prototype.diff_bisect_ = function(e, t, n) {
|
|
715
|
-
let o = e.length,
|
|
723
|
+
let o = e.length, l = t.length, i = Math.ceil((o + l) / 2), s = i, r = 2 * i, a = new Array(r), f = new Array(r);
|
|
716
724
|
for (let y = 0; y < r; y++) a[y] = -1, f[y] = -1;
|
|
717
|
-
a[
|
|
718
|
-
let
|
|
725
|
+
a[s + 1] = 0, f[s + 1] = 0;
|
|
726
|
+
let u = o - l, h = u % 2 != 0, p = 0, _ = 0, w = 0, C = 0;
|
|
719
727
|
for (let y = 0; y < i && !((/* @__PURE__ */ new Date()).getTime() > n); y++) {
|
|
720
|
-
for (let b = -y + p; b <= y -
|
|
721
|
-
let
|
|
722
|
-
b == -y || b != y && a[
|
|
723
|
-
let
|
|
724
|
-
for (; x < o &&
|
|
725
|
-
if (a[
|
|
726
|
-
else if (
|
|
728
|
+
for (let b = -y + p; b <= y - _; b += 2) {
|
|
729
|
+
let v = s + b, x;
|
|
730
|
+
b == -y || b != y && a[v - 1] < a[v + 1] ? x = a[v + 1] : x = a[v - 1] + 1;
|
|
731
|
+
let L = x - b;
|
|
732
|
+
for (; x < o && L < l && e.charAt(x) == t.charAt(L); ) x++, L++;
|
|
733
|
+
if (a[v] = x, x > o) _ += 2;
|
|
734
|
+
else if (L > l) p += 2;
|
|
727
735
|
else if (h) {
|
|
728
|
-
let
|
|
729
|
-
if (
|
|
730
|
-
let
|
|
731
|
-
if (x >=
|
|
736
|
+
let k = s + u - b;
|
|
737
|
+
if (k >= 0 && k < r && f[k] != -1) {
|
|
738
|
+
let N = o - f[k];
|
|
739
|
+
if (x >= N) return this.diff_bisectSplit_(e, t, x, L, n);
|
|
732
740
|
}
|
|
733
741
|
}
|
|
734
742
|
}
|
|
735
|
-
for (let b = -y + w; b <= y -
|
|
736
|
-
let
|
|
737
|
-
b == -y || b != y && f[
|
|
738
|
-
let
|
|
739
|
-
for (; x < o &&
|
|
740
|
-
if (f[
|
|
741
|
-
else if (
|
|
743
|
+
for (let b = -y + w; b <= y - C; b += 2) {
|
|
744
|
+
let v = s + b, x;
|
|
745
|
+
b == -y || b != y && f[v - 1] < f[v + 1] ? x = f[v + 1] : x = f[v - 1] + 1;
|
|
746
|
+
let L = x - b;
|
|
747
|
+
for (; x < o && L < l && e.charAt(o - x - 1) == t.charAt(l - L - 1); ) x++, L++;
|
|
748
|
+
if (f[v] = x, x > o) C += 2;
|
|
749
|
+
else if (L > l) w += 2;
|
|
742
750
|
else if (!h) {
|
|
743
|
-
let
|
|
744
|
-
if (
|
|
745
|
-
let
|
|
746
|
-
if (x = o - x,
|
|
751
|
+
let k = s + u - b;
|
|
752
|
+
if (k >= 0 && k < r && a[k] != -1) {
|
|
753
|
+
let N = a[k], O = s + N - k;
|
|
754
|
+
if (x = o - x, N >= x) return this.diff_bisectSplit_(e, t, N, O, n);
|
|
747
755
|
}
|
|
748
756
|
}
|
|
749
757
|
}
|
|
750
758
|
}
|
|
751
759
|
return [new d.Diff(-1, e), new d.Diff(1, t)];
|
|
752
760
|
};
|
|
753
|
-
d.prototype.diff_bisectSplit_ = function(e, t, n, o,
|
|
754
|
-
let i = e.substring(0, n),
|
|
755
|
-
return f.concat(
|
|
761
|
+
d.prototype.diff_bisectSplit_ = function(e, t, n, o, l) {
|
|
762
|
+
let i = e.substring(0, n), s = t.substring(0, o), r = e.substring(n), a = t.substring(o), f = this.diff_main(i, s, !1, l), u = this.diff_main(r, a, !1, l);
|
|
763
|
+
return f.concat(u);
|
|
756
764
|
};
|
|
757
765
|
d.prototype.diff_linesToChars_ = function(e, t) {
|
|
758
766
|
let n = [], o = {};
|
|
759
767
|
n[0] = "";
|
|
760
|
-
function
|
|
761
|
-
let f = "",
|
|
768
|
+
function l(a) {
|
|
769
|
+
let f = "", u = 0, h = -1, p = n.length;
|
|
762
770
|
for (; h < a.length - 1; ) {
|
|
763
771
|
h = a.indexOf(`
|
|
764
|
-
`,
|
|
765
|
-
let
|
|
766
|
-
(o.hasOwnProperty ? o.hasOwnProperty(
|
|
772
|
+
`, u), h == -1 && (h = a.length - 1);
|
|
773
|
+
let _ = a.substring(u, h + 1);
|
|
774
|
+
(o.hasOwnProperty ? o.hasOwnProperty(_) : o[_] !== void 0) ? f += String.fromCharCode(o[_]) : (p == i && (_ = a.substring(u), h = a.length), f += String.fromCharCode(p), o[_] = p, n[p++] = _), u = h + 1;
|
|
767
775
|
}
|
|
768
776
|
return f;
|
|
769
777
|
}
|
|
770
|
-
let i = 4e4,
|
|
778
|
+
let i = 4e4, s = l(e);
|
|
771
779
|
i = 65535;
|
|
772
|
-
let r =
|
|
773
|
-
return { chars1:
|
|
780
|
+
let r = l(t);
|
|
781
|
+
return { chars1: s, chars2: r, lineArray: n };
|
|
774
782
|
};
|
|
775
783
|
d.prototype.diff_charsToLines_ = function(e, t) {
|
|
776
784
|
for (let n = 0; n < e.length; n++) {
|
|
777
|
-
let o = e[n][1],
|
|
778
|
-
for (let i = 0; i < o.length; i++)
|
|
779
|
-
e[n][1] =
|
|
785
|
+
let o = e[n][1], l = [];
|
|
786
|
+
for (let i = 0; i < o.length; i++) l[i] = t[o.charCodeAt(i)];
|
|
787
|
+
e[n][1] = l.join("");
|
|
780
788
|
}
|
|
781
789
|
};
|
|
782
790
|
d.prototype.diff_commonPrefix = function(e, t) {
|
|
783
791
|
if (!e || !t || e.charAt(0) != t.charAt(0)) return 0;
|
|
784
|
-
let n = 0, o = Math.min(e.length, t.length),
|
|
785
|
-
for (; n <
|
|
786
|
-
return
|
|
792
|
+
let n = 0, o = Math.min(e.length, t.length), l = o, i = 0;
|
|
793
|
+
for (; n < l; ) e.substring(i, l) == t.substring(i, l) ? (n = l, i = n) : o = l, l = Math.floor((o - n) / 2 + n);
|
|
794
|
+
return l;
|
|
787
795
|
};
|
|
788
796
|
d.prototype.diff_commonSuffix = function(e, t) {
|
|
789
797
|
if (!e || !t || e.charAt(e.length - 1) != t.charAt(t.length - 1)) return 0;
|
|
790
|
-
let n = 0, o = Math.min(e.length, t.length),
|
|
791
|
-
for (; n <
|
|
792
|
-
return
|
|
798
|
+
let n = 0, o = Math.min(e.length, t.length), l = o, i = 0;
|
|
799
|
+
for (; n < l; ) e.substring(e.length - l, e.length - i) == t.substring(t.length - l, t.length - i) ? (n = l, i = n) : o = l, l = Math.floor((o - n) / 2 + n);
|
|
800
|
+
return l;
|
|
793
801
|
};
|
|
794
802
|
d.prototype.diff_commonOverlap_ = function(e, t) {
|
|
795
803
|
let n = e.length, o = t.length;
|
|
796
804
|
if (n == 0 || o == 0) return 0;
|
|
797
805
|
n > o ? e = e.substring(n - o) : n < o && (t = t.substring(0, n));
|
|
798
|
-
let
|
|
799
|
-
if (e == t) return
|
|
800
|
-
let i = 0,
|
|
806
|
+
let l = Math.min(n, o);
|
|
807
|
+
if (e == t) return l;
|
|
808
|
+
let i = 0, s = 1;
|
|
801
809
|
for (; ; ) {
|
|
802
|
-
let r = e.substring(
|
|
810
|
+
let r = e.substring(l - s), a = t.indexOf(r);
|
|
803
811
|
if (a == -1) return i;
|
|
804
|
-
|
|
812
|
+
s += a, (a == 0 || e.substring(l - s) == t.substring(0, s)) && (i = s, s++);
|
|
805
813
|
}
|
|
806
814
|
};
|
|
807
815
|
d.prototype.diff_halfMatch_ = function(e, t) {
|
|
808
816
|
if (this.Diff_Timeout <= 0) return null;
|
|
809
817
|
let n = e.length > t.length ? e : t, o = e.length > t.length ? t : e;
|
|
810
818
|
if (n.length < 4 || o.length * 2 < n.length) return null;
|
|
811
|
-
let
|
|
812
|
-
function i(w,
|
|
813
|
-
let b = w.substring(y, y + Math.floor(w.length / 4)),
|
|
814
|
-
for (; (
|
|
815
|
-
let
|
|
816
|
-
x.length <
|
|
819
|
+
let l = this;
|
|
820
|
+
function i(w, C, y) {
|
|
821
|
+
let b = w.substring(y, y + Math.floor(w.length / 4)), v = -1, x = "", L, k, N, O;
|
|
822
|
+
for (; (v = C.indexOf(b, v + 1)) != -1; ) {
|
|
823
|
+
let P = l.diff_commonPrefix(w.substring(y), C.substring(v)), F = l.diff_commonSuffix(w.substring(0, y), C.substring(0, v));
|
|
824
|
+
x.length < F + P && (x = C.substring(v - F, v) + C.substring(v, v + P), L = w.substring(0, y - F), k = w.substring(y + P), N = C.substring(0, v - F), O = C.substring(v + P));
|
|
817
825
|
}
|
|
818
|
-
return x.length * 2 >= w.length ? [
|
|
826
|
+
return x.length * 2 >= w.length ? [L, k, N, O, x] : null;
|
|
819
827
|
}
|
|
820
|
-
let
|
|
821
|
-
if (!
|
|
822
|
-
r ?
|
|
823
|
-
let f,
|
|
824
|
-
e.length > t.length ? (f = a[0],
|
|
825
|
-
let
|
|
826
|
-
return [f,
|
|
828
|
+
let s = i(n, o, Math.ceil(n.length / 4)), r = i(n, o, Math.ceil(n.length / 2)), a;
|
|
829
|
+
if (!s && !r) return null;
|
|
830
|
+
r ? s ? a = s[4].length > r[4].length ? s : r : a = r : a = s;
|
|
831
|
+
let f, u, h, p;
|
|
832
|
+
e.length > t.length ? (f = a[0], u = a[1], h = a[2], p = a[3]) : (h = a[0], p = a[1], f = a[2], u = a[3]);
|
|
833
|
+
let _ = a[4];
|
|
834
|
+
return [f, u, h, p, _];
|
|
827
835
|
};
|
|
828
836
|
d.prototype.diff_cleanupSemantic = function(e) {
|
|
829
|
-
let t = !1, n = [], o = 0,
|
|
830
|
-
for (; i < e.length; ) e[i][0] == 0 ? (n[o++] = i,
|
|
837
|
+
let t = !1, n = [], o = 0, l = null, i = 0, s = 0, r = 0, a = 0, f = 0;
|
|
838
|
+
for (; i < e.length; ) e[i][0] == 0 ? (n[o++] = i, s = a, r = f, a = 0, f = 0, l = e[i][1]) : (e[i][0] == 1 ? a += e[i][1].length : f += e[i][1].length, l && l.length <= Math.max(s, r) && l.length <= Math.max(a, f) && (e.splice(n[o - 1], 0, new d.Diff(-1, l)), e[n[o - 1] + 1][0] = 1, o--, o--, i = o > 0 ? n[o - 1] : -1, s = 0, r = 0, a = 0, f = 0, l = null, t = !0)), i++;
|
|
831
839
|
for (t && this.diff_cleanupMerge(e), this.diff_cleanupSemanticLossless(e), i = 1; i < e.length; ) {
|
|
832
840
|
if (e[i - 1][0] == -1 && e[i][0] == 1) {
|
|
833
|
-
let
|
|
834
|
-
p >=
|
|
841
|
+
let u = e[i - 1][1], h = e[i][1], p = this.diff_commonOverlap_(u, h), _ = this.diff_commonOverlap_(h, u);
|
|
842
|
+
p >= _ ? (p >= u.length / 2 || p >= h.length / 2) && (e.splice(i, 0, new d.Diff(0, h.substring(0, p))), e[i - 1][1] = u.substring(0, u.length - p), e[i + 1][1] = h.substring(p), i++) : (_ >= u.length / 2 || _ >= h.length / 2) && (e.splice(i, 0, new d.Diff(0, u.substring(0, _))), e[i - 1][0] = 1, e[i - 1][1] = h.substring(0, h.length - _), e[i + 1][0] = -1, e[i + 1][1] = u.substring(_), i++), i++;
|
|
835
843
|
}
|
|
836
844
|
i++;
|
|
837
845
|
}
|
|
838
846
|
};
|
|
839
847
|
d.prototype.diff_cleanupSemanticLossless = function(e) {
|
|
840
|
-
function t(o,
|
|
841
|
-
if (!o || !
|
|
842
|
-
let i = o.charAt(o.length - 1),
|
|
843
|
-
return
|
|
848
|
+
function t(o, l) {
|
|
849
|
+
if (!o || !l) return 6;
|
|
850
|
+
let i = o.charAt(o.length - 1), s = l.charAt(0), r = i.match(d.nonAlphaNumericRegex_), a = s.match(d.nonAlphaNumericRegex_), f = r && i.match(d.whitespaceRegex_), u = a && s.match(d.whitespaceRegex_), h = f && i.match(d.linebreakRegex_), p = u && s.match(d.linebreakRegex_), _ = h && o.match(d.blanklineEndRegex_), w = p && l.match(d.blanklineStartRegex_);
|
|
851
|
+
return _ || w ? 5 : h || p ? 4 : r && !f && u ? 3 : f || u ? 2 : r || a ? 1 : 0;
|
|
844
852
|
}
|
|
845
853
|
let n = 1;
|
|
846
854
|
for (; n < e.length - 1; ) {
|
|
847
855
|
if (e[n - 1][0] == 0 && e[n + 1][0] == 0) {
|
|
848
|
-
let o = e[n - 1][1],
|
|
849
|
-
if (
|
|
850
|
-
o[o.length -
|
|
851
|
-
` && (
|
|
852
|
-
let h =
|
|
853
|
-
o = o.substring(0, o.length -
|
|
856
|
+
let o = e[n - 1][1], l = e[n][1], i = e[n + 1][1], s = this.diff_commonSuffix(o, l);
|
|
857
|
+
if (s) {
|
|
858
|
+
o[o.length - s] === `
|
|
859
|
+
` && (s -= 1);
|
|
860
|
+
let h = l.substring(l.length - s);
|
|
861
|
+
o = o.substring(0, o.length - s), l = h + l.substring(0, l.length - s), i = h + i;
|
|
854
862
|
}
|
|
855
|
-
let r = o, a =
|
|
856
|
-
for (;
|
|
857
|
-
o +=
|
|
858
|
-
let h = t(o,
|
|
859
|
-
h >=
|
|
863
|
+
let r = o, a = l, f = i, u = t(o, l) + t(l, i);
|
|
864
|
+
for (; l.charAt(0) === i.charAt(0); ) {
|
|
865
|
+
o += l.charAt(0), l = l.substring(1) + i.charAt(0), i = i.substring(1);
|
|
866
|
+
let h = t(o, l) + t(l, i);
|
|
867
|
+
h >= u && (u = h, r = o, a = l, f = i);
|
|
860
868
|
}
|
|
861
869
|
e[n - 1][1] != r && (r ? e[n - 1][1] = r : (e.splice(n - 1, 1), n--), e[n][1] = a, f ? e[n + 1][1] = f : (e.splice(n + 1, 1), n--));
|
|
862
870
|
}
|
|
@@ -869,22 +877,22 @@ d.linebreakRegex_ = /[\r\n]/;
|
|
|
869
877
|
d.blanklineEndRegex_ = /\n\r?\n$/;
|
|
870
878
|
d.blanklineStartRegex_ = /^\r?\n\r?\n/;
|
|
871
879
|
d.prototype.diff_cleanupEfficiency = function(e) {
|
|
872
|
-
let t = !1, n = [], o = 0,
|
|
873
|
-
for (; i < e.length; ) e[i][0] == 0 ? (e[i][1].length < this.Diff_EditCost && (a || f) ? (n[o++] = i,
|
|
880
|
+
let t = !1, n = [], o = 0, l = null, i = 0, s = !1, r = !1, a = !1, f = !1;
|
|
881
|
+
for (; i < e.length; ) e[i][0] == 0 ? (e[i][1].length < this.Diff_EditCost && (a || f) ? (n[o++] = i, s = a, r = f, l = e[i][1]) : (o = 0, l = null), a = f = !1) : (e[i][0] == -1 ? f = !0 : a = !0, l && (s && r && a && f || l.length < this.Diff_EditCost / 2 && s + r + a + f == 3) && (e.splice(n[o - 1], 0, new d.Diff(-1, l)), e[n[o - 1] + 1][0] = 1, o--, l = null, s && r ? (a = f = !0, o = 0) : (o--, i = o > 0 ? n[o - 1] : -1, a = f = !1), t = !0)), i++;
|
|
874
882
|
t && this.diff_cleanupMerge(e);
|
|
875
883
|
};
|
|
876
884
|
d.prototype.diff_cleanupMerge = function(e) {
|
|
877
885
|
e.push(new d.Diff(0, ""));
|
|
878
|
-
let t = 0, n = 0, o = 0,
|
|
886
|
+
let t = 0, n = 0, o = 0, l = "", i = "", s;
|
|
879
887
|
for (; t < e.length; ) switch (e[t][0]) {
|
|
880
888
|
case 1:
|
|
881
889
|
o++, i += e[t][1], t++;
|
|
882
890
|
break;
|
|
883
891
|
case -1:
|
|
884
|
-
n++,
|
|
892
|
+
n++, l += e[t][1], t++;
|
|
885
893
|
break;
|
|
886
894
|
case 0:
|
|
887
|
-
n + o > 1 ? (n !== 0 && o !== 0 && (
|
|
895
|
+
n + o > 1 ? (n !== 0 && o !== 0 && (s = this.diff_commonPrefix(i, l), s !== 0 && (t - n - o > 0 && e[t - n - o - 1][0] == 0 ? e[t - n - o - 1][1] += i.substring(0, s) : (e.splice(0, 0, new d.Diff(0, i.substring(0, s))), t++), i = i.substring(s), l = l.substring(s)), s = this.diff_commonSuffix(i, l), s !== 0 && (e[t][1] = i.substring(i.length - s) + e[t][1], i = i.substring(0, i.length - s), l = l.substring(0, l.length - s))), t -= n + o, e.splice(t, n + o), l.length && (e.splice(t, 0, new d.Diff(-1, l)), t++), i.length && (e.splice(t, 0, new d.Diff(1, i)), t++), t++) : t !== 0 && e[t - 1][0] == 0 ? (e[t - 1][1] += e[t][1], e.splice(t, 1)) : t++, o = 0, n = 0, l = "", i = "";
|
|
888
896
|
break;
|
|
889
897
|
}
|
|
890
898
|
e[e.length - 1][1] === "" && e.pop();
|
|
@@ -895,12 +903,12 @@ d.prototype.diff_cleanupMerge = function(e) {
|
|
|
895
903
|
d.prototype.diff_cleanupSplitSurrogates = function(e) {
|
|
896
904
|
let t;
|
|
897
905
|
for (let n = 0; n < e.length; n++) {
|
|
898
|
-
let o = e[n],
|
|
906
|
+
let o = e[n], l = o[1][0], i = o[1][o[1].length - 1];
|
|
899
907
|
if (o[1].length === 0) {
|
|
900
908
|
e.splice(n--, 1);
|
|
901
909
|
continue;
|
|
902
910
|
}
|
|
903
|
-
if (i && this.isHighSurrogate(i) && (t = i, o[1] = o[1].slice(0, -1)), t &&
|
|
911
|
+
if (i && this.isHighSurrogate(i) && (t = i, o[1] = o[1].slice(0, -1)), t && l && this.isHighSurrogate(t) && this.isLowSurrogate(l) && (o[1] = t + o[1]), o[1].length === 0) {
|
|
904
912
|
e.splice(n--, 1);
|
|
905
913
|
continue;
|
|
906
914
|
}
|
|
@@ -970,29 +978,29 @@ d.prototype.decodeURI = function(e) {
|
|
|
970
978
|
continue;
|
|
971
979
|
}
|
|
972
980
|
let o = (this.digit16(e[t + 1]) << 4) + this.digit16(e[t + 2]);
|
|
973
|
-
if (
|
|
981
|
+
if ((o & 128) === 0) {
|
|
974
982
|
n += String.fromCharCode(o), t += 3;
|
|
975
983
|
continue;
|
|
976
984
|
}
|
|
977
985
|
if (e[t + 3] !== "%") throw new URIError("URI malformed");
|
|
978
|
-
let
|
|
979
|
-
if ((
|
|
980
|
-
if (
|
|
981
|
-
n += String.fromCharCode((o & 31) << 6 |
|
|
986
|
+
let l = (this.digit16(e[t + 4]) << 4) + this.digit16(e[t + 5]);
|
|
987
|
+
if ((l & 192) !== 128) throw new URIError("URI malformed");
|
|
988
|
+
if (l = l & 63, (o & 224) === 192) {
|
|
989
|
+
n += String.fromCharCode((o & 31) << 6 | l), t += 6;
|
|
982
990
|
continue;
|
|
983
991
|
}
|
|
984
992
|
if (e[t + 6] !== "%") throw new URIError("URI malformed");
|
|
985
993
|
let i = (this.digit16(e[t + 7]) << 4) + this.digit16(e[t + 8]);
|
|
986
994
|
if ((i & 192) !== 128) throw new URIError("URI malformed");
|
|
987
995
|
if (i = i & 63, (o & 240) === 224) {
|
|
988
|
-
n += String.fromCharCode((o & 15) << 12 |
|
|
996
|
+
n += String.fromCharCode((o & 15) << 12 | l << 6 | i), t += 9;
|
|
989
997
|
continue;
|
|
990
998
|
}
|
|
991
999
|
if (e[t + 9] !== "%") throw new URIError("URI malformed");
|
|
992
|
-
let
|
|
993
|
-
if ((
|
|
994
|
-
if (
|
|
995
|
-
let r = (o & 7) << 18 |
|
|
1000
|
+
let s = (this.digit16(e[t + 10]) << 4) + this.digit16(e[t + 11]);
|
|
1001
|
+
if ((s & 192) !== 128) throw new URIError("URI malformed");
|
|
1002
|
+
if (s = s & 63, (o & 248) === 240) {
|
|
1003
|
+
let r = (o & 7) << 18 | l << 12 | i << 6 | s;
|
|
996
1004
|
if (r >= 65536 && r <= 1114111) {
|
|
997
1005
|
n += String.fromCharCode((r & 65535) >>> 10 & 1023 | 55296), n += String.fromCharCode(56320 | r & 65535 & 1023), t += 12;
|
|
998
1006
|
continue;
|
|
@@ -1004,24 +1012,24 @@ d.prototype.decodeURI = function(e) {
|
|
|
1004
1012
|
}
|
|
1005
1013
|
};
|
|
1006
1014
|
d.prototype.diff_xIndex = function(e, t) {
|
|
1007
|
-
let n = 0, o = 0,
|
|
1008
|
-
for (
|
|
1009
|
-
return e.length !=
|
|
1015
|
+
let n = 0, o = 0, l = 0, i = 0, s;
|
|
1016
|
+
for (s = 0; s < e.length && (e[s][0] !== 1 && (n += e[s][1].length), e[s][0] !== -1 && (o += e[s][1].length), !(n > t)); s++) l = n, i = o;
|
|
1017
|
+
return e.length != s && e[s][0] === -1 ? i : i + (t - l);
|
|
1010
1018
|
};
|
|
1011
1019
|
d.prototype.diff_prettyHtml = function(e) {
|
|
1012
1020
|
e = this.diff_cleanupSplitSurrogates(e);
|
|
1013
|
-
let t = [], n = /&/g, o = /</g,
|
|
1014
|
-
for (let
|
|
1015
|
-
let r = e[
|
|
1021
|
+
let t = [], n = /&/g, o = /</g, l = />/g, i = /\n/g;
|
|
1022
|
+
for (let s = 0; s < e.length; s++) {
|
|
1023
|
+
let r = e[s][0], a = e[s][1].replace(n, "&").replace(o, "<").replace(l, ">").replace(i, "¶<br>");
|
|
1016
1024
|
switch (r) {
|
|
1017
1025
|
case 1:
|
|
1018
|
-
t[
|
|
1026
|
+
t[s] = '<ins style="background:#e6ffe6;">' + a + "</ins>";
|
|
1019
1027
|
break;
|
|
1020
1028
|
case -1:
|
|
1021
|
-
t[
|
|
1029
|
+
t[s] = '<del style="background:#ffe6e6;">' + a + "</del>";
|
|
1022
1030
|
break;
|
|
1023
1031
|
case 0:
|
|
1024
|
-
t[
|
|
1032
|
+
t[s] = "<span>" + a + "</span>";
|
|
1025
1033
|
break;
|
|
1026
1034
|
}
|
|
1027
1035
|
}
|
|
@@ -1039,14 +1047,14 @@ d.prototype.diff_text2 = function(e) {
|
|
|
1039
1047
|
};
|
|
1040
1048
|
d.prototype.diff_levenshtein = function(e) {
|
|
1041
1049
|
let t = 0, n = 0, o = 0;
|
|
1042
|
-
for (let
|
|
1043
|
-
let i = e[
|
|
1050
|
+
for (let l = 0; l < e.length; l++) {
|
|
1051
|
+
let i = e[l][0], s = e[l][1];
|
|
1044
1052
|
switch (i) {
|
|
1045
1053
|
case 1:
|
|
1046
|
-
n +=
|
|
1054
|
+
n += s.length;
|
|
1047
1055
|
break;
|
|
1048
1056
|
case -1:
|
|
1049
|
-
o +=
|
|
1057
|
+
o += s.length;
|
|
1050
1058
|
break;
|
|
1051
1059
|
case 0:
|
|
1052
1060
|
t += Math.max(n, o), n = 0, o = 0;
|
|
@@ -1072,13 +1080,13 @@ d.prototype.diff_toDelta = function(e) {
|
|
|
1072
1080
|
return t.join(" ").replace(/%20/g, " ");
|
|
1073
1081
|
};
|
|
1074
1082
|
d.prototype.diff_fromDelta = function(e, t) {
|
|
1075
|
-
let n = 0, o = "",
|
|
1083
|
+
let n = 0, o = "", l = [], i = 0, s = 0, r = t.split(/\t/g);
|
|
1076
1084
|
for (let a = 0; a < r.length; a++) {
|
|
1077
1085
|
let f = r[a].substring(1);
|
|
1078
1086
|
switch (r[a].charAt(0)) {
|
|
1079
1087
|
case "+":
|
|
1080
1088
|
try {
|
|
1081
|
-
|
|
1089
|
+
l[i++] = new d.Diff(1, this.decodeURI(f));
|
|
1082
1090
|
} catch {
|
|
1083
1091
|
throw new Error("Illegal escape in diff_fromDelta: " + f);
|
|
1084
1092
|
}
|
|
@@ -1086,14 +1094,14 @@ d.prototype.diff_fromDelta = function(e, t) {
|
|
|
1086
1094
|
case "-":
|
|
1087
1095
|
case "=":
|
|
1088
1096
|
if (n = parseInt(f, 10), isNaN(n) || n < 0) throw new Error("Invalid number in diff_fromDelta: " + f);
|
|
1089
|
-
o = e.substring(
|
|
1097
|
+
o = e.substring(s, s += n), r[a].charAt(0) == "=" ? l[i++] = new d.Diff(0, o) : l[i++] = new d.Diff(-1, o);
|
|
1090
1098
|
break;
|
|
1091
1099
|
default:
|
|
1092
1100
|
if (r[a]) throw new Error("Invalid diff operation in diff_fromDelta: " + r[a]);
|
|
1093
1101
|
}
|
|
1094
1102
|
}
|
|
1095
|
-
if (
|
|
1096
|
-
return
|
|
1103
|
+
if (s != e.length) throw new Error("Delta length (" + s + ") does not equal source text length (" + e.length + ").");
|
|
1104
|
+
return l;
|
|
1097
1105
|
};
|
|
1098
1106
|
d.prototype.match_main = function(e, t, n) {
|
|
1099
1107
|
if (e == null || t == null || n == null) throw new Error("Null input. (match_main)");
|
|
@@ -1101,30 +1109,30 @@ d.prototype.match_main = function(e, t, n) {
|
|
|
1101
1109
|
};
|
|
1102
1110
|
d.prototype.match_bitap_ = function(e, t, n) {
|
|
1103
1111
|
if (t.length > this.Match_MaxBits) throw new Error("Pattern too long for this browser.");
|
|
1104
|
-
let o = this.match_alphabet_(t),
|
|
1105
|
-
function i(
|
|
1106
|
-
let
|
|
1107
|
-
return
|
|
1112
|
+
let o = this.match_alphabet_(t), l = this;
|
|
1113
|
+
function i(_, w) {
|
|
1114
|
+
let C = _ / t.length, y = Math.abs(n - w);
|
|
1115
|
+
return l.Match_Distance ? C + y / l.Match_Distance : y ? 1 : C;
|
|
1108
1116
|
}
|
|
1109
|
-
let
|
|
1110
|
-
r != -1 && (
|
|
1117
|
+
let s = this.Match_Threshold, r = e.indexOf(t, n);
|
|
1118
|
+
r != -1 && (s = Math.min(i(0, r), s), r = e.lastIndexOf(t, n + t.length), r != -1 && (s = Math.min(i(0, r), s)));
|
|
1111
1119
|
let a = 1 << t.length - 1;
|
|
1112
1120
|
r = -1;
|
|
1113
|
-
let f,
|
|
1114
|
-
for (let
|
|
1115
|
-
for (f = 0,
|
|
1116
|
-
h =
|
|
1117
|
-
let w = Math.max(1, n -
|
|
1118
|
-
y[
|
|
1119
|
-
for (let b =
|
|
1120
|
-
let
|
|
1121
|
-
if (
|
|
1122
|
-
let x = i(
|
|
1123
|
-
if (x <=
|
|
1121
|
+
let f, u, h = t.length + e.length, p;
|
|
1122
|
+
for (let _ = 0; _ < t.length; _++) {
|
|
1123
|
+
for (f = 0, u = h; f < u; ) i(_, n + u) <= s ? f = u : h = u, u = Math.floor((h - f) / 2 + f);
|
|
1124
|
+
h = u;
|
|
1125
|
+
let w = Math.max(1, n - u + 1), C = Math.min(n + u, e.length) + t.length, y = Array(C + 2);
|
|
1126
|
+
y[C + 1] = (1 << _) - 1;
|
|
1127
|
+
for (let b = C; b >= w; b--) {
|
|
1128
|
+
let v = o[e.charAt(b - 1)];
|
|
1129
|
+
if (_ === 0 ? y[b] = (y[b + 1] << 1 | 1) & v : y[b] = (y[b + 1] << 1 | 1) & v | ((p[b + 1] | p[b]) << 1 | 1) | p[b + 1], y[b] & a) {
|
|
1130
|
+
let x = i(_, b - 1);
|
|
1131
|
+
if (x <= s) if (s = x, r = b - 1, r > n) w = Math.max(1, 2 * n - r);
|
|
1124
1132
|
else break;
|
|
1125
1133
|
}
|
|
1126
1134
|
}
|
|
1127
|
-
if (i(
|
|
1135
|
+
if (i(_ + 1, n) > s) break;
|
|
1128
1136
|
p = y;
|
|
1129
1137
|
}
|
|
1130
1138
|
return r;
|
|
@@ -1141,45 +1149,45 @@ d.prototype.patch_addContext_ = function(e, t) {
|
|
|
1141
1149
|
let n = t.substring(e.start2, e.start2 + e.length1), o = 0;
|
|
1142
1150
|
for (; t.indexOf(n) != t.lastIndexOf(n) && n.length < this.Match_MaxBits - this.Patch_Margin - this.Patch_Margin; ) o += this.Patch_Margin, n = t.substring(e.start2 - o, e.start2 + e.length1 + o);
|
|
1143
1151
|
o += this.Patch_Margin, e.start2 - o > 0 && d.prototype.isLowSurrogate(t[e.start2 - o]) && o++;
|
|
1144
|
-
let
|
|
1145
|
-
|
|
1152
|
+
let l = t.substring(e.start2 - o, e.start2);
|
|
1153
|
+
l && e.diffs.unshift(new d.Diff(0, l)), e.start2 + e.length1 + o < t.length && d.prototype.isHighSurrogate(t[e.start2 + e.length1 + o]) && o++;
|
|
1146
1154
|
let i = t.substring(e.start2 + e.length1, e.start2 + e.length1 + o);
|
|
1147
|
-
i && e.diffs.push(new d.Diff(0, i)), e.start1 -=
|
|
1155
|
+
i && e.diffs.push(new d.Diff(0, i)), e.start1 -= l.length, e.start2 -= l.length, e.length1 += l.length + i.length, e.length2 += l.length + i.length;
|
|
1148
1156
|
};
|
|
1149
1157
|
d.prototype.patch_make = function(e, t, n) {
|
|
1150
|
-
let o,
|
|
1151
|
-
if (typeof e == "string" && typeof t == "string" && typeof n > "u") o = e,
|
|
1152
|
-
else if (e && typeof e == "object" && typeof t > "u" && typeof n > "u")
|
|
1153
|
-
else if (typeof e == "string" && t && typeof t == "object" && typeof n > "u") o = e,
|
|
1154
|
-
else if (typeof e == "string" && typeof t == "string" && n && typeof n == "object") o = e,
|
|
1158
|
+
let o, l;
|
|
1159
|
+
if (typeof e == "string" && typeof t == "string" && typeof n > "u") o = e, l = this.diff_main(o, t, !0), l.length > 2 && (this.diff_cleanupSemantic(l), this.diff_cleanupEfficiency(l));
|
|
1160
|
+
else if (e && typeof e == "object" && typeof t > "u" && typeof n > "u") l = e, o = this.diff_text1(l);
|
|
1161
|
+
else if (typeof e == "string" && t && typeof t == "object" && typeof n > "u") o = e, l = t;
|
|
1162
|
+
else if (typeof e == "string" && typeof t == "string" && n && typeof n == "object") o = e, l = n;
|
|
1155
1163
|
else throw new Error("Unknown call format to patch_make.");
|
|
1156
|
-
if (
|
|
1157
|
-
|
|
1158
|
-
let i = [],
|
|
1159
|
-
for (let p = 0; p <
|
|
1160
|
-
let
|
|
1161
|
-
switch (!r &&
|
|
1164
|
+
if (l.length === 0) return [];
|
|
1165
|
+
l = this.diff_cleanupSplitSurrogates(l);
|
|
1166
|
+
let i = [], s = new d.patch_obj(), r = 0, a = 0, f = 0, u = o, h = o;
|
|
1167
|
+
for (let p = 0; p < l.length; p++) {
|
|
1168
|
+
let _ = l[p][0], w = l[p][1];
|
|
1169
|
+
switch (!r && _ !== 0 && (s.start1 = a, s.start2 = f), _) {
|
|
1162
1170
|
case 1:
|
|
1163
|
-
|
|
1171
|
+
s.diffs[r++] = l[p], s.length2 += w.length, h = h.substring(0, f) + w + h.substring(f);
|
|
1164
1172
|
break;
|
|
1165
1173
|
case -1:
|
|
1166
|
-
|
|
1174
|
+
s.length1 += w.length, s.diffs[r++] = l[p], h = h.substring(0, f) + h.substring(f + w.length);
|
|
1167
1175
|
break;
|
|
1168
1176
|
case 0:
|
|
1169
|
-
w.length <= 2 * this.Patch_Margin && r &&
|
|
1177
|
+
w.length <= 2 * this.Patch_Margin && r && l.length != p + 1 ? (s.diffs[r++] = l[p], s.length1 += w.length, s.length2 += w.length) : w.length >= 2 * this.Patch_Margin && r && (this.patch_addContext_(s, u), i.push(s), s = new d.patch_obj(), r = 0, u = h, a = f);
|
|
1170
1178
|
break;
|
|
1171
1179
|
}
|
|
1172
|
-
|
|
1180
|
+
_ !== 1 && (a += w.length), _ !== -1 && (f += w.length);
|
|
1173
1181
|
}
|
|
1174
|
-
return r && (this.patch_addContext_(
|
|
1182
|
+
return r && (this.patch_addContext_(s, u), i.push(s)), i;
|
|
1175
1183
|
};
|
|
1176
1184
|
d.prototype.patch_deepCopy = function(e) {
|
|
1177
1185
|
let t = [];
|
|
1178
1186
|
for (let n = 0; n < e.length; n++) {
|
|
1179
|
-
let o = e[n],
|
|
1180
|
-
|
|
1181
|
-
for (let i = 0; i < o.diffs.length; i++)
|
|
1182
|
-
|
|
1187
|
+
let o = e[n], l = new d.patch_obj();
|
|
1188
|
+
l.diffs = [];
|
|
1189
|
+
for (let i = 0; i < o.diffs.length; i++) l.diffs[i] = new d.Diff(o.diffs[i][0], o.diffs[i][1]);
|
|
1190
|
+
l.start1 = o.start1, l.start2 = o.start2, l.length1 = o.length1, l.length2 = o.length2, t[n] = l;
|
|
1183
1191
|
}
|
|
1184
1192
|
return t;
|
|
1185
1193
|
};
|
|
@@ -1188,44 +1196,44 @@ d.prototype.patch_apply = function(e, t) {
|
|
|
1188
1196
|
e = this.patch_deepCopy(e);
|
|
1189
1197
|
let n = this.patch_addPadding(e);
|
|
1190
1198
|
t = n + t + n, this.patch_splitMax(e);
|
|
1191
|
-
let o = 0,
|
|
1199
|
+
let o = 0, l = [];
|
|
1192
1200
|
for (let i = 0; i < e.length; i++) {
|
|
1193
|
-
let
|
|
1194
|
-
if (r.length > this.Match_MaxBits ? (a = this.match_main(t, r.substring(0, this.Match_MaxBits),
|
|
1201
|
+
let s = e[i].start2 + o, r = this.diff_text1(e[i].diffs), a, f = -1;
|
|
1202
|
+
if (r.length > this.Match_MaxBits ? (a = this.match_main(t, r.substring(0, this.Match_MaxBits), s), a != -1 && (f = this.match_main(t, r.substring(r.length - this.Match_MaxBits), s + r.length - this.Match_MaxBits), (f == -1 || a >= f) && (a = -1))) : a = this.match_main(t, r, s), a == -1) l[i] = !1, o -= e[i].length2 - e[i].length1;
|
|
1195
1203
|
else {
|
|
1196
|
-
|
|
1197
|
-
let
|
|
1198
|
-
if (f == -1 ?
|
|
1204
|
+
l[i] = !0, o = a - s;
|
|
1205
|
+
let u;
|
|
1206
|
+
if (f == -1 ? u = t.substring(a, a + r.length) : u = t.substring(a, f + this.Match_MaxBits), r == u) t = t.substring(0, a) + this.diff_text2(e[i].diffs) + t.substring(a + r.length);
|
|
1199
1207
|
else {
|
|
1200
|
-
let h = this.diff_main(r,
|
|
1201
|
-
if (r.length > this.Match_MaxBits && this.diff_levenshtein(h) / r.length > this.Patch_DeleteThreshold)
|
|
1208
|
+
let h = this.diff_main(r, u, !1);
|
|
1209
|
+
if (r.length > this.Match_MaxBits && this.diff_levenshtein(h) / r.length > this.Patch_DeleteThreshold) l[i] = !1;
|
|
1202
1210
|
else {
|
|
1203
1211
|
this.diff_cleanupSemanticLossless(h);
|
|
1204
|
-
let p = 0,
|
|
1212
|
+
let p = 0, _;
|
|
1205
1213
|
for (let w = 0; w < e[i].diffs.length; w++) {
|
|
1206
|
-
let
|
|
1207
|
-
|
|
1214
|
+
let C = e[i].diffs[w];
|
|
1215
|
+
C[0] !== 0 && (_ = this.diff_xIndex(h, p)), C[0] === 1 ? t = t.substring(0, a + _) + C[1] + t.substring(a + _) : C[0] === -1 && (t = t.substring(0, a + _) + t.substring(a + this.diff_xIndex(h, p + C[1].length))), C[0] !== -1 && (p += C[1].length);
|
|
1208
1216
|
}
|
|
1209
1217
|
}
|
|
1210
1218
|
}
|
|
1211
1219
|
}
|
|
1212
1220
|
}
|
|
1213
|
-
return t = t.substring(n.length, t.length - n.length), [t,
|
|
1221
|
+
return t = t.substring(n.length, t.length - n.length), [t, l];
|
|
1214
1222
|
};
|
|
1215
1223
|
d.prototype.patch_addPadding = function(e) {
|
|
1216
1224
|
let t = this.Patch_Margin, n = "";
|
|
1217
1225
|
for (let i = 1; i <= t; i++) n += String.fromCharCode(i);
|
|
1218
1226
|
for (let i = 0; i < e.length; i++) e[i].start1 += t, e[i].start2 += t;
|
|
1219
|
-
let o = e[0],
|
|
1220
|
-
if (
|
|
1221
|
-
else if (t >
|
|
1222
|
-
let i = t -
|
|
1223
|
-
|
|
1227
|
+
let o = e[0], l = o.diffs;
|
|
1228
|
+
if (l.length == 0 || l[0][0] != 0) l.unshift(new d.Diff(0, n)), o.start1 -= t, o.start2 -= t, o.length1 += t, o.length2 += t;
|
|
1229
|
+
else if (t > l[0][1].length) {
|
|
1230
|
+
let i = t - l[0][1].length;
|
|
1231
|
+
l[0][1] = n.substring(l[0][1].length) + l[0][1], o.start1 -= i, o.start2 -= i, o.length1 += i, o.length2 += i;
|
|
1224
1232
|
}
|
|
1225
|
-
if (o = e[e.length - 1],
|
|
1226
|
-
else if (t >
|
|
1227
|
-
let i = t -
|
|
1228
|
-
|
|
1233
|
+
if (o = e[e.length - 1], l = o.diffs, l.length == 0 || l[l.length - 1][0] != 0) l.push(new d.Diff(0, n)), o.length1 += t, o.length2 += t;
|
|
1234
|
+
else if (t > l[l.length - 1][1].length) {
|
|
1235
|
+
let i = t - l[l.length - 1][1].length;
|
|
1236
|
+
l[l.length - 1][1] += n.substring(0, i), o.length1 += i, o.length2 += i;
|
|
1229
1237
|
}
|
|
1230
1238
|
return n;
|
|
1231
1239
|
};
|
|
@@ -1235,14 +1243,14 @@ d.prototype.patch_splitMax = function(e) {
|
|
|
1235
1243
|
if (e[n].length1 <= t) continue;
|
|
1236
1244
|
let o = e[n];
|
|
1237
1245
|
e.splice(n--, 1);
|
|
1238
|
-
let
|
|
1246
|
+
let l = o.start1, i = o.start2, s = "";
|
|
1239
1247
|
for (; o.diffs.length !== 0; ) {
|
|
1240
1248
|
let r = new d.patch_obj(), a = !0;
|
|
1241
|
-
for (r.start1 =
|
|
1242
|
-
let
|
|
1243
|
-
|
|
1249
|
+
for (r.start1 = l - s.length, r.start2 = i - s.length, s !== "" && (r.length1 = r.length2 = s.length, r.diffs.push(new d.Diff(0, s))); o.diffs.length !== 0 && r.length1 < t - this.Patch_Margin; ) {
|
|
1250
|
+
let u = o.diffs[0][0], h = o.diffs[0][1];
|
|
1251
|
+
u === 1 ? (r.length2 += h.length, i += h.length, r.diffs.push(o.diffs.shift()), a = !1) : u === -1 && r.diffs.length == 1 && r.diffs[0][0] == 0 && h.length > 2 * t ? (r.length1 += h.length, l += h.length, a = !1, r.diffs.push(new d.Diff(u, h)), o.diffs.shift()) : (h = h.substring(0, t - r.length1 - this.Patch_Margin), r.length1 += h.length, l += h.length, u === 0 ? (r.length2 += h.length, i += h.length) : a = !1, r.diffs.push(new d.Diff(u, h)), h == o.diffs[0][1] ? o.diffs.shift() : o.diffs[0][1] = o.diffs[0][1].substring(h.length));
|
|
1244
1252
|
}
|
|
1245
|
-
|
|
1253
|
+
s = this.diff_text2(r.diffs), s = s.substring(s.length - this.Patch_Margin);
|
|
1246
1254
|
let f = this.diff_text1(o.diffs).substring(0, this.Patch_Margin);
|
|
1247
1255
|
f !== "" && (r.length1 += f.length, r.length2 += f.length, r.diffs.length !== 0 && r.diffs[r.diffs.length - 1][0] === 0 ? r.diffs[r.diffs.length - 1][1] += f : r.diffs.push(new d.Diff(0, f))), a || e.splice(++n, 0, r);
|
|
1248
1256
|
}
|
|
@@ -1257,21 +1265,21 @@ d.prototype.patch_fromText = function(e) {
|
|
|
1257
1265
|
let t = [];
|
|
1258
1266
|
if (!e) return t;
|
|
1259
1267
|
let n = e.split(`
|
|
1260
|
-
`), o = 0,
|
|
1268
|
+
`), o = 0, l = /^@@ -(\d+),?(\d*) \+(\d+),?(\d*) @@$/;
|
|
1261
1269
|
for (; o < n.length; ) {
|
|
1262
|
-
let i = n[o].match(
|
|
1270
|
+
let i = n[o].match(l);
|
|
1263
1271
|
if (!i) throw new Error("Invalid patch string: " + n[o]);
|
|
1264
|
-
let
|
|
1265
|
-
for (t.push(
|
|
1272
|
+
let s = new d.patch_obj();
|
|
1273
|
+
for (t.push(s), s.start1 = parseInt(i[1], 10), i[2] === "" ? (s.start1--, s.length1 = 1) : i[2] == "0" ? s.length1 = 0 : (s.start1--, s.length1 = parseInt(i[2], 10)), s.start2 = parseInt(i[3], 10), i[4] === "" ? (s.start2--, s.length2 = 1) : i[4] == "0" ? s.length2 = 0 : (s.start2--, s.length2 = parseInt(i[4], 10)), o++; o < n.length; ) {
|
|
1266
1274
|
let r = n[o].charAt(0), a = "";
|
|
1267
1275
|
try {
|
|
1268
1276
|
a = decodeURI(n[o].substring(1));
|
|
1269
1277
|
} catch {
|
|
1270
1278
|
throw new Error("Illegal escape in patch_fromText: " + a);
|
|
1271
1279
|
}
|
|
1272
|
-
if (r == "-")
|
|
1273
|
-
else if (r == "+")
|
|
1274
|
-
else if (r == " ")
|
|
1280
|
+
if (r == "-") s.diffs.push(new d.Diff(-1, a));
|
|
1281
|
+
else if (r == "+") s.diffs.push(new d.Diff(1, a));
|
|
1282
|
+
else if (r == " ") s.diffs.push(new d.Diff(0, a));
|
|
1275
1283
|
else {
|
|
1276
1284
|
if (r == "@") break;
|
|
1277
1285
|
if (r !== "") throw new Error('Invalid patch mode "' + r + '" in: ' + a);
|
|
@@ -1290,8 +1298,8 @@ d.patch_obj.prototype.toString = function() {
|
|
|
1290
1298
|
let n = ["@@ -" + e + " +" + t + ` @@
|
|
1291
1299
|
`], o;
|
|
1292
1300
|
d.prototype.diff_cleanupSplitSurrogates(this.diffs);
|
|
1293
|
-
for (let
|
|
1294
|
-
switch (this.diffs[
|
|
1301
|
+
for (let l = 0; l < this.diffs.length; l++) {
|
|
1302
|
+
switch (this.diffs[l][0]) {
|
|
1295
1303
|
case 1:
|
|
1296
1304
|
o = "+";
|
|
1297
1305
|
break;
|
|
@@ -1302,268 +1310,268 @@ d.patch_obj.prototype.toString = function() {
|
|
|
1302
1310
|
o = " ";
|
|
1303
1311
|
break;
|
|
1304
1312
|
}
|
|
1305
|
-
n[
|
|
1313
|
+
n[l + 1] = o + encodeURI(this.diffs[l][1]) + `
|
|
1306
1314
|
`;
|
|
1307
1315
|
}
|
|
1308
1316
|
return n.join("").replace(/%20/g, " ");
|
|
1309
1317
|
};
|
|
1310
|
-
function
|
|
1318
|
+
function z(e) {
|
|
1311
1319
|
return e && typeof e == "object" && !Array.isArray(e) && e !== null;
|
|
1312
1320
|
}
|
|
1313
|
-
function
|
|
1314
|
-
return
|
|
1315
|
-
n === "__proto__" || n === "constructor" || (
|
|
1321
|
+
function J(e, t) {
|
|
1322
|
+
return z(e) && z(t) && Object.keys(t).forEach((n) => {
|
|
1323
|
+
n === "__proto__" || n === "constructor" || (z(t[n]) ? ((!e[n] || !z(e[n])) && (e[n] = t[n]), J(e[n], t[n])) : Object.assign(e, { [n]: t[n] }));
|
|
1316
1324
|
}), e;
|
|
1317
1325
|
}
|
|
1318
|
-
function
|
|
1319
|
-
let o = null,
|
|
1326
|
+
function Q(e, t, n = !1) {
|
|
1327
|
+
let o = null, l = !0;
|
|
1320
1328
|
return (...i) => {
|
|
1321
|
-
const
|
|
1329
|
+
const s = n && l, r = () => {
|
|
1322
1330
|
e.apply(this, i), o = null;
|
|
1323
1331
|
};
|
|
1324
|
-
|
|
1332
|
+
s && (l = !1, r()), o || (o = setTimeout(r, t));
|
|
1325
1333
|
};
|
|
1326
1334
|
}
|
|
1327
|
-
function
|
|
1335
|
+
function Ge(e, t) {
|
|
1328
1336
|
let n;
|
|
1329
1337
|
return (...o) => {
|
|
1330
|
-
const
|
|
1331
|
-
clearTimeout(n), n = setTimeout(() => e.apply(
|
|
1338
|
+
const l = this;
|
|
1339
|
+
clearTimeout(n), n = setTimeout(() => e.apply(l, o), t);
|
|
1332
1340
|
};
|
|
1333
1341
|
}
|
|
1334
|
-
function
|
|
1342
|
+
function Z(e = "") {
|
|
1335
1343
|
return e.replace(/\r\n/g, `
|
|
1336
1344
|
`);
|
|
1337
1345
|
}
|
|
1338
|
-
function
|
|
1339
|
-
const
|
|
1346
|
+
function ee(e, t, n, o) {
|
|
1347
|
+
const l = n - e, i = e + l / 2;
|
|
1340
1348
|
return `M ${e} ${t} C ${i},${t} ${i},${o} ${n},${o}`;
|
|
1341
1349
|
}
|
|
1342
|
-
const
|
|
1343
|
-
function
|
|
1350
|
+
const D = { DIFF_EQUAL: 0, DIFF_DELETE: -1, DIFF_INSERT: 1, EDITOR_RIGHT: "right", EDITOR_LEFT: "left", RTL: "rtl", LTR: "ltr", SVG_NS: "http://www.w3.org/2000/svg", DIFF_GRANULARITY_SPECIFIC: "specific", DIFF_GRANULARITY_BROAD: "broad" };
|
|
1351
|
+
function te(e, t) {
|
|
1344
1352
|
let { mode: n } = e.options;
|
|
1345
|
-
return t ===
|
|
1353
|
+
return t === D.EDITOR_LEFT && e.options.left.mode !== null && (n = e.options.left.mode), t === D.EDITOR_RIGHT && e.options.right.mode !== null && (n = e.options.right.mode), n;
|
|
1346
1354
|
}
|
|
1347
|
-
function
|
|
1355
|
+
function ne(e, t) {
|
|
1348
1356
|
let { theme: n } = e.options;
|
|
1349
|
-
return t ===
|
|
1357
|
+
return t === D.EDITOR_LEFT && e.options.left.theme !== null && (n = e.options.left.theme), t === D.EDITOR_RIGHT && e.options.right.theme !== null && (n = e.options.right.theme), n;
|
|
1350
1358
|
}
|
|
1351
|
-
function
|
|
1359
|
+
function ce(e, t) {
|
|
1352
1360
|
return e.ace.getSession().doc.getLine(t);
|
|
1353
1361
|
}
|
|
1354
|
-
function
|
|
1362
|
+
function $e(e) {
|
|
1355
1363
|
return document.getElementById(e.options.left.id).offsetHeight;
|
|
1356
1364
|
}
|
|
1357
|
-
function
|
|
1365
|
+
function ie(e) {
|
|
1358
1366
|
const t = document.createElement("div"), n = { class: e.className, style: `top:${e.topOffset}px`, title: e.tooltip, "data-diff-index": e.diffIndex };
|
|
1359
1367
|
for (const o in n) t.setAttribute(o, n[o]);
|
|
1360
1368
|
return t.innerHTML = e.arrowContent, t;
|
|
1361
1369
|
}
|
|
1362
|
-
function
|
|
1363
|
-
const n = Math.random().toString(36).substr(2, 5), o = `js-${t}-${n}`,
|
|
1364
|
-
if (
|
|
1370
|
+
function W(e, t) {
|
|
1371
|
+
const n = Math.random().toString(36).substr(2, 5), o = `js-${t}-${n}`, l = e.querySelector(`.${t}`);
|
|
1372
|
+
if (l) return l.id = l.id || o, l.id;
|
|
1365
1373
|
const i = document.createElement("div");
|
|
1366
1374
|
return e.appendChild(i), i.className = t, i.id = o, i.id;
|
|
1367
1375
|
}
|
|
1368
|
-
function
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1371
|
-
const
|
|
1372
|
-
for (let a = 0, f =
|
|
1373
|
-
let
|
|
1374
|
-
const h =
|
|
1375
|
-
for (;
|
|
1376
|
+
function oe(e, t, n, o) {
|
|
1377
|
+
const l = e === "document" ? document : document.querySelector(e);
|
|
1378
|
+
l.addEventListener(t, (i) => {
|
|
1379
|
+
const s = l.querySelectorAll(n), { target: r } = i;
|
|
1380
|
+
for (let a = 0, f = s.length; a < f; a += 1) {
|
|
1381
|
+
let u = r;
|
|
1382
|
+
const h = s[a];
|
|
1383
|
+
for (; u && u !== l; ) u === h && o.call(h, i), u = u.parentNode;
|
|
1376
1384
|
}
|
|
1377
1385
|
});
|
|
1378
1386
|
}
|
|
1379
|
-
let
|
|
1380
|
-
function
|
|
1387
|
+
let K;
|
|
1388
|
+
function je(e) {
|
|
1381
1389
|
if (e.Range) return e.Range;
|
|
1382
1390
|
const t = e.acequire || e.require;
|
|
1383
1391
|
return t ? t("ace/range") : !1;
|
|
1384
1392
|
}
|
|
1385
|
-
function
|
|
1386
|
-
if (!(this instanceof
|
|
1393
|
+
function X(e = {}) {
|
|
1394
|
+
if (!(this instanceof X)) return new X(e);
|
|
1387
1395
|
const t = this, n = () => window ? window.ace : void 0;
|
|
1388
|
-
t.options =
|
|
1396
|
+
t.options = J({ ace: n(), mode: null, theme: null, element: null, diffGranularity: D.DIFF_GRANULARITY_BROAD, lockScrolling: !1, showDiffs: !0, showConnectors: !0, maxDiffs: 5e3, left: { id: null, content: null, mode: null, theme: null, editable: !0, copyLinkEnabled: !0 }, right: { id: null, content: null, mode: null, theme: null, editable: !0, copyLinkEnabled: !0 }, classes: { gutterID: "acediff__gutter", diff: "acediff__diffLine", connector: "acediff__connector", newCodeConnectorLink: "acediff__newCodeConnector", newCodeConnectorLinkContent: "→", deletedCodeConnectorLink: "acediff__deletedCodeConnector", deletedCodeConnectorLinkContent: "←", copyRightContainer: "acediff__copy--right", copyLeftContainer: "acediff__copy--left" }, connectorYOffset: 0 }, e);
|
|
1389
1397
|
const { ace: o } = t.options;
|
|
1390
1398
|
if (!o) {
|
|
1391
|
-
const
|
|
1392
|
-
return console.error(
|
|
1399
|
+
const l = "No ace editor found nor supplied - `options.ace` or `window.ace` is missing";
|
|
1400
|
+
return console.error(l), new Error(l);
|
|
1393
1401
|
}
|
|
1394
|
-
if (
|
|
1395
|
-
const
|
|
1396
|
-
return console.error(
|
|
1402
|
+
if (K = je(o), !K) {
|
|
1403
|
+
const l = "Could not require Range module for Ace. Depends on your bundling strategy, but it usually comes with Ace itself. See https://ace.c9.io/api/range.html, open an issue on GitHub ace-diff/ace-diff";
|
|
1404
|
+
return console.error(l), new Error(l);
|
|
1397
1405
|
}
|
|
1398
1406
|
if (t.options.element === null) {
|
|
1399
|
-
const
|
|
1400
|
-
return console.error(
|
|
1407
|
+
const l = "You need to specify an element for Ace-diff - `options.element` is missing";
|
|
1408
|
+
return console.error(l), new Error(l);
|
|
1401
1409
|
}
|
|
1402
1410
|
if (t.options.element instanceof HTMLElement ? t.el = t.options.element : t.el = document.body.querySelector(t.options.element), !t.el) {
|
|
1403
|
-
const
|
|
1404
|
-
return console.error(
|
|
1411
|
+
const l = `Can't find the specified element ${t.options.element}`;
|
|
1412
|
+
return console.error(l), new Error(l);
|
|
1405
1413
|
}
|
|
1406
|
-
t.options.left.id =
|
|
1407
|
-
t.lineHeight = t.editors.left.ace.renderer.lineHeight,
|
|
1414
|
+
t.options.left.id = W(t.el, "acediff__left"), t.options.classes.gutterID = W(t.el, "acediff__gutter"), t.options.right.id = W(t.el, "acediff__right"), t.el.innerHTML = `<div class="acediff__wrap">${t.el.innerHTML}</div>`, t.editors = { left: { ace: o.edit(t.options.left.id), markers: [], lineLengths: [] }, right: { ace: o.edit(t.options.right.id), markers: [], lineLengths: [] }, editorHeight: null }, t.editors.left.ace.getSession().setMode(te(t, D.EDITOR_LEFT)), t.editors.right.ace.getSession().setMode(te(t, D.EDITOR_RIGHT)), t.editors.left.ace.setReadOnly(!t.options.left.editable), t.editors.right.ace.setReadOnly(!t.options.right.editable), t.editors.left.ace.setTheme(ne(t, D.EDITOR_LEFT)), t.editors.right.ace.setTheme(ne(t, D.EDITOR_RIGHT)), t.editors.left.ace.setValue(Z(t.options.left.content), -1), t.editors.right.ace.setValue(Z(t.options.right.content), -1), t.editors.editorHeight = $e(t), setTimeout(() => {
|
|
1415
|
+
t.lineHeight = t.editors.left.ace.renderer.lineHeight, qe(t), Xe(t), me(t), t.diff();
|
|
1408
1416
|
}, 1);
|
|
1409
1417
|
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1418
|
+
X.prototype = { setOptions(e) {
|
|
1419
|
+
J(this.options, e), this.diff();
|
|
1412
1420
|
}, getNumDiffs() {
|
|
1413
1421
|
return this.diffs.length;
|
|
1414
1422
|
}, getEditors() {
|
|
1415
1423
|
return { left: this.editors.left.ace, right: this.editors.right.ace };
|
|
1416
1424
|
}, diff() {
|
|
1417
1425
|
const e = new d(), t = this.editors.left.ace.getSession().getValue(), n = this.editors.right.ace.getSession().getValue(), o = e.diff_main(n, t);
|
|
1418
|
-
e.diff_cleanupSemantic(o), this.editors.left.lineLengths =
|
|
1419
|
-
const
|
|
1420
|
-
o.forEach((
|
|
1421
|
-
const r =
|
|
1422
|
-
let a =
|
|
1423
|
-
a.length !== 0 && (r ===
|
|
1424
|
-
}, this), this.diffs =
|
|
1426
|
+
e.diff_cleanupSemantic(o), this.editors.left.lineLengths = se(this.editors.left), this.editors.right.lineLengths = se(this.editors.right);
|
|
1427
|
+
const l = [], i = { left: 0, right: 0 };
|
|
1428
|
+
o.forEach((s) => {
|
|
1429
|
+
const r = s[0];
|
|
1430
|
+
let a = s[1];
|
|
1431
|
+
a.length !== 0 && (r === D.DIFF_EQUAL ? (i.left += a.length, i.right += a.length) : r === D.DIFF_DELETE ? (l.push(fe(this, D.DIFF_DELETE, i.left, i.right, a)), i.right += a.length) : r === D.DIFF_INSERT && (l.push(fe(this, D.DIFF_INSERT, i.left, i.right, a)), i.left += a.length));
|
|
1432
|
+
}, this), this.diffs = Qe(this, l), !(this.diffs.length > this.options.maxDiffs) && (pe(this), _e(this));
|
|
1425
1433
|
}, destroy() {
|
|
1426
1434
|
const e = this.editors.left.ace.getValue();
|
|
1427
1435
|
this.editors.left.ace.destroy();
|
|
1428
1436
|
let t = this.editors.left.ace.container, n = t.cloneNode(!1);
|
|
1429
1437
|
n.textContent = e, t.parentNode.replaceChild(n, t);
|
|
1430
1438
|
const o = this.editors.right.ace.getValue();
|
|
1431
|
-
this.editors.right.ace.destroy(), t = this.editors.right.ace.container, n = t.cloneNode(!1), n.textContent = o, t.parentNode.replaceChild(n, t), document.getElementById(this.options.classes.gutterID).innerHTML = "",
|
|
1439
|
+
this.editors.right.ace.destroy(), t = this.editors.right.ace.container, n = t.cloneNode(!1), n.textContent = o, t.parentNode.replaceChild(n, t), document.getElementById(this.options.classes.gutterID).innerHTML = "", ge();
|
|
1432
1440
|
} };
|
|
1433
|
-
let
|
|
1441
|
+
let ge = () => {
|
|
1434
1442
|
};
|
|
1435
|
-
function
|
|
1436
|
-
e.editors.left.ace.getSession().on("changeScrollTop",
|
|
1437
|
-
|
|
1438
|
-
}, 16)), e.editors.right.ace.getSession().on("changeScrollTop",
|
|
1439
|
-
|
|
1443
|
+
function qe(e) {
|
|
1444
|
+
e.editors.left.ace.getSession().on("changeScrollTop", Q(() => {
|
|
1445
|
+
ae(e);
|
|
1446
|
+
}, 16)), e.editors.right.ace.getSession().on("changeScrollTop", Q(() => {
|
|
1447
|
+
ae(e);
|
|
1440
1448
|
}, 16));
|
|
1441
1449
|
const t = e.diff.bind(e);
|
|
1442
|
-
e.editors.left.ace.on("change", t), e.editors.right.ace.on("change", t), e.options.left.copyLinkEnabled &&
|
|
1443
|
-
|
|
1444
|
-
}), e.options.right.copyLinkEnabled &&
|
|
1445
|
-
|
|
1450
|
+
e.editors.left.ace.on("change", t), e.editors.right.ace.on("change", t), e.options.left.copyLinkEnabled && oe(`#${e.options.classes.gutterID}`, "click", `.${e.options.classes.newCodeConnectorLink}`, (o) => {
|
|
1451
|
+
le(e, o, D.LTR);
|
|
1452
|
+
}), e.options.right.copyLinkEnabled && oe(`#${e.options.classes.gutterID}`, "click", `.${e.options.classes.deletedCodeConnectorLink}`, (o) => {
|
|
1453
|
+
le(e, o, D.RTL);
|
|
1446
1454
|
});
|
|
1447
|
-
const n =
|
|
1455
|
+
const n = Ge(() => {
|
|
1448
1456
|
e.editors.availableHeight = document.getElementById(e.options.left.id).offsetHeight, e.diff();
|
|
1449
1457
|
}, 250);
|
|
1450
|
-
window.addEventListener("resize", n),
|
|
1458
|
+
window.addEventListener("resize", n), ge = () => {
|
|
1451
1459
|
window.removeEventListener("resize", n);
|
|
1452
1460
|
};
|
|
1453
1461
|
}
|
|
1454
|
-
function
|
|
1455
|
-
const o = parseInt(t.target.getAttribute("data-diff-index"), 10),
|
|
1456
|
-
let i,
|
|
1457
|
-
n ===
|
|
1462
|
+
function le(e, t, n) {
|
|
1463
|
+
const o = parseInt(t.target.getAttribute("data-diff-index"), 10), l = e.diffs[o];
|
|
1464
|
+
let i, s, r, a, f, u;
|
|
1465
|
+
n === D.LTR ? (i = e.editors.left, s = e.editors.right, r = l.leftStartLine, a = l.leftEndLine, f = l.rightStartLine, u = l.rightEndLine) : (i = e.editors.right, s = e.editors.left, r = l.rightStartLine, a = l.rightEndLine, f = l.leftStartLine, u = l.leftEndLine);
|
|
1458
1466
|
let h = "";
|
|
1459
|
-
for (let
|
|
1460
|
-
`),
|
|
1467
|
+
for (let _ = r; _ < a; _ += 1) h += ce(i, _), _ === r && h === "" && f != 0 && (h += `
|
|
1468
|
+
`), _ < i.ace.getSession().getLength() - 1 && (h += `
|
|
1461
1469
|
`);
|
|
1462
|
-
const p =
|
|
1463
|
-
|
|
1470
|
+
const p = s.ace.getSession().getScrollTop();
|
|
1471
|
+
s.ace.getSession().replace(new K(f, 0, u, 0), h), s.ace.getSession().setScrollTop(parseInt(p, 10)), e.diff();
|
|
1464
1472
|
}
|
|
1465
|
-
function
|
|
1473
|
+
function se(e) {
|
|
1466
1474
|
const t = e.ace.getSession().doc.getAllLines(), n = [];
|
|
1467
1475
|
return t.forEach((o) => {
|
|
1468
1476
|
n.push(o.length + 1);
|
|
1469
1477
|
}), n;
|
|
1470
1478
|
}
|
|
1471
|
-
function
|
|
1479
|
+
function re(e, t, n, o, l) {
|
|
1472
1480
|
const i = e.editors[t];
|
|
1473
1481
|
o < n && (o = n);
|
|
1474
|
-
const
|
|
1475
|
-
o > n && (o -= 1), i.markers.push(i.ace.session.addMarker(new
|
|
1482
|
+
const s = `${l} ${o > n ? "lines" : "targetOnly"}`;
|
|
1483
|
+
o > n && (o -= 1), i.markers.push(i.ace.session.addMarker(new K(n, 0, o, 1), s, "fullLine"));
|
|
1476
1484
|
}
|
|
1477
|
-
function
|
|
1478
|
-
|
|
1485
|
+
function ae(e) {
|
|
1486
|
+
pe(e), _e(e), Ke(e);
|
|
1479
1487
|
}
|
|
1480
|
-
function
|
|
1488
|
+
function pe(e) {
|
|
1481
1489
|
e.editors.left.markers.forEach((t) => {
|
|
1482
1490
|
e.editors.left.ace.getSession().removeMarker(t);
|
|
1483
1491
|
}, e), e.editors.right.markers.forEach((t) => {
|
|
1484
1492
|
e.editors.right.ace.getSession().removeMarker(t);
|
|
1485
1493
|
}, e);
|
|
1486
1494
|
}
|
|
1487
|
-
function
|
|
1488
|
-
const i = e.editors.left.ace.getSession().getScrollTop(),
|
|
1495
|
+
function Ye(e, t, n, o, l) {
|
|
1496
|
+
const i = e.editors.left.ace.getSession().getScrollTop(), s = e.editors.right.ace.getSession().getScrollTop();
|
|
1489
1497
|
e.connectorYOffset = 1;
|
|
1490
|
-
const r = -1, a = t * e.lineHeight - i + 0.5, f = e.gutterWidth + 1,
|
|
1491
|
-
|
|
1498
|
+
const r = -1, a = t * e.lineHeight - i + 0.5, f = e.gutterWidth + 1, u = o * e.lineHeight - s + 0.5, h = -1, p = n * e.lineHeight - i + e.connectorYOffset + 0.5, _ = e.gutterWidth + 1, w = l * e.lineHeight - s + e.connectorYOffset + 0.5, C = ee(r, a, f, u), y = ee(_, w, h, p), b = `L${f},${u} ${_},${w}`, v = `L${h},${p} ${r},${a}`, x = `${C} ${b} ${y} ${v}`, L = document.createElementNS(D.SVG_NS, "path");
|
|
1499
|
+
L.setAttribute("d", x), L.setAttribute("class", e.options.classes.connector), e.gutterSVG.appendChild(L);
|
|
1492
1500
|
}
|
|
1493
|
-
function
|
|
1501
|
+
function ze(e, t, n) {
|
|
1494
1502
|
if (t.leftEndLine > t.leftStartLine && e.options.left.copyLinkEnabled) {
|
|
1495
|
-
const o =
|
|
1503
|
+
const o = ie({ className: e.options.classes.newCodeConnectorLink, topOffset: t.leftStartLine * e.lineHeight, tooltip: "Copy to right", diffIndex: n, arrowContent: e.options.classes.newCodeConnectorLinkContent });
|
|
1496
1504
|
e.copyRightContainer.appendChild(o);
|
|
1497
1505
|
}
|
|
1498
1506
|
if (t.rightEndLine > t.rightStartLine && e.options.right.copyLinkEnabled) {
|
|
1499
|
-
const o =
|
|
1507
|
+
const o = ie({ className: e.options.classes.deletedCodeConnectorLink, topOffset: t.rightStartLine * e.lineHeight, tooltip: "Copy to left", diffIndex: n, arrowContent: e.options.classes.deletedCodeConnectorLinkContent });
|
|
1500
1508
|
e.copyLeftContainer.appendChild(o);
|
|
1501
1509
|
}
|
|
1502
1510
|
}
|
|
1503
|
-
function
|
|
1511
|
+
function Ke(e) {
|
|
1504
1512
|
const t = e.editors.left.ace.getSession().getScrollTop(), n = e.editors.right.ace.getSession().getScrollTop();
|
|
1505
1513
|
e.copyRightContainer.style.cssText = `top: ${-t}px`, e.copyLeftContainer.style.cssText = `top: ${-n}px`;
|
|
1506
1514
|
}
|
|
1507
|
-
function
|
|
1515
|
+
function fe(e, t, n, o, l) {
|
|
1508
1516
|
let i = {};
|
|
1509
|
-
if (t ===
|
|
1510
|
-
let
|
|
1511
|
-
const f =
|
|
1512
|
-
let
|
|
1513
|
-
(
|
|
1517
|
+
if (t === D.DIFF_INSERT) {
|
|
1518
|
+
let s = de(e.editors.left, n, l), r = he(e.editors.right, o), a = B(e.editors.right, r);
|
|
1519
|
+
const f = B(e.editors.left, s.startLine);
|
|
1520
|
+
let u = r, h = s.startLine === s.endLine, p = 0;
|
|
1521
|
+
(s.startChar > 0 || h && l.length < f) && a > 0 && s.startChar < f && p++, i = { leftStartLine: s.startLine, leftEndLine: s.endLine + 1, rightStartLine: u, rightEndLine: u + p };
|
|
1514
1522
|
} else {
|
|
1515
|
-
let
|
|
1516
|
-
const f =
|
|
1517
|
-
let
|
|
1518
|
-
(
|
|
1523
|
+
let s = de(e.editors.right, o, l), r = he(e.editors.left, n), a = B(e.editors.left, r);
|
|
1524
|
+
const f = B(e.editors.right, s.startLine);
|
|
1525
|
+
let u = r, h = s.startLine === s.endLine, p = 0;
|
|
1526
|
+
(s.startChar > 0 || h && l.length < f) && a > 0 && s.startChar < f && p++, i = { leftStartLine: u, leftEndLine: u + p, rightStartLine: s.startLine, rightEndLine: s.endLine + 1 };
|
|
1519
1527
|
}
|
|
1520
1528
|
return i;
|
|
1521
1529
|
}
|
|
1522
|
-
function
|
|
1523
|
-
const o = { startLine: 0, startChar: 0, endLine: 0, endChar: 0 },
|
|
1524
|
-
let i = 0,
|
|
1525
|
-
e.lineLengths.forEach((f,
|
|
1526
|
-
i += f, !
|
|
1527
|
-
}), o.startChar > 0 &&
|
|
1530
|
+
function de(e, t, n) {
|
|
1531
|
+
const o = { startLine: 0, startChar: 0, endLine: 0, endChar: 0 }, l = t + n.length;
|
|
1532
|
+
let i = 0, s = !1, r = !1;
|
|
1533
|
+
e.lineLengths.forEach((f, u) => {
|
|
1534
|
+
i += f, !s && t < i && (o.startLine = u, o.startChar = t - i + f, s = !0), !r && l <= i && (o.endLine = u, o.endChar = l - i + f, r = !0);
|
|
1535
|
+
}), o.startChar > 0 && B(e, o.startLine) === o.startChar && (o.startLine++, o.startChar = 0), o.endChar === 0 && o.endLine--;
|
|
1528
1536
|
const a = /\n$/.test(n);
|
|
1529
1537
|
return o.startChar > 0 && a && o.endLine++, o;
|
|
1530
1538
|
}
|
|
1531
|
-
function
|
|
1532
|
-
return
|
|
1539
|
+
function B(e, t) {
|
|
1540
|
+
return ce(e, t).length;
|
|
1533
1541
|
}
|
|
1534
|
-
function
|
|
1542
|
+
function he(e, t) {
|
|
1535
1543
|
const n = e.ace.getSession().doc.getAllLines();
|
|
1536
|
-
let o = 0,
|
|
1537
|
-
for (let i = 0; i < n.length; i += 1) if (
|
|
1544
|
+
let o = 0, l = 0;
|
|
1545
|
+
for (let i = 0; i < n.length; i += 1) if (l += n[i].length + 1, t < l) {
|
|
1538
1546
|
o = i;
|
|
1539
1547
|
break;
|
|
1540
1548
|
}
|
|
1541
|
-
return
|
|
1549
|
+
return l > e.ace.getSession().getValue().length && (o += 1), o;
|
|
1542
1550
|
}
|
|
1543
|
-
function
|
|
1551
|
+
function me(e) {
|
|
1544
1552
|
e.gutterHeight = document.getElementById(e.options.classes.gutterID).clientHeight, e.gutterWidth = document.getElementById(e.options.classes.gutterID).clientWidth;
|
|
1545
|
-
const t =
|
|
1546
|
-
e.gutterSVG = document.createElementNS(
|
|
1553
|
+
const t = ue(e, D.EDITOR_LEFT), n = ue(e, D.EDITOR_RIGHT), o = Math.max(t, n, e.gutterHeight);
|
|
1554
|
+
e.gutterSVG = document.createElementNS(D.SVG_NS, "svg"), e.gutterSVG.setAttribute("width", e.gutterWidth), e.gutterSVG.setAttribute("height", o), document.getElementById(e.options.classes.gutterID).appendChild(e.gutterSVG);
|
|
1547
1555
|
}
|
|
1548
|
-
function
|
|
1549
|
-
return (t ===
|
|
1556
|
+
function ue(e, t) {
|
|
1557
|
+
return (t === D.EDITOR_LEFT ? e.editors.left : e.editors.right).ace.getSession().getLength() * e.lineHeight;
|
|
1550
1558
|
}
|
|
1551
1559
|
function Xe(e) {
|
|
1552
1560
|
e.copyRightContainer = document.createElement("div"), e.copyRightContainer.setAttribute("class", e.options.classes.copyRightContainer), e.copyLeftContainer = document.createElement("div"), e.copyLeftContainer.setAttribute("class", e.options.classes.copyLeftContainer), document.getElementById(e.options.classes.gutterID).appendChild(e.copyRightContainer), document.getElementById(e.options.classes.gutterID).appendChild(e.copyLeftContainer);
|
|
1553
1561
|
}
|
|
1554
|
-
function
|
|
1555
|
-
document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG),
|
|
1562
|
+
function We(e) {
|
|
1563
|
+
document.getElementById(e.options.classes.gutterID).removeChild(e.gutterSVG), me(e);
|
|
1556
1564
|
}
|
|
1557
|
-
function
|
|
1565
|
+
function Je(e) {
|
|
1558
1566
|
e.copyLeftContainer.innerHTML = "", e.copyRightContainer.innerHTML = "";
|
|
1559
1567
|
}
|
|
1560
|
-
function
|
|
1568
|
+
function Qe(e, t) {
|
|
1561
1569
|
const n = [];
|
|
1562
1570
|
function o(i) {
|
|
1563
|
-
return e.options.diffGranularity ===
|
|
1571
|
+
return e.options.diffGranularity === D.DIFF_GRANULARITY_SPECIFIC ? i < 1 : i <= 1;
|
|
1564
1572
|
}
|
|
1565
|
-
t.forEach((i,
|
|
1566
|
-
if (
|
|
1573
|
+
t.forEach((i, s) => {
|
|
1574
|
+
if (s === 0) {
|
|
1567
1575
|
n.push(i);
|
|
1568
1576
|
return;
|
|
1569
1577
|
}
|
|
@@ -1574,17 +1582,17 @@ function tt(e, t) {
|
|
|
1574
1582
|
}
|
|
1575
1583
|
r || n.push(i);
|
|
1576
1584
|
});
|
|
1577
|
-
const
|
|
1585
|
+
const l = [];
|
|
1578
1586
|
return n.forEach((i) => {
|
|
1579
|
-
i.leftStartLine === i.leftEndLine && i.rightStartLine === i.rightEndLine ||
|
|
1580
|
-
}),
|
|
1587
|
+
i.leftStartLine === i.leftEndLine && i.rightStartLine === i.rightEndLine || l.push(i);
|
|
1588
|
+
}), l;
|
|
1581
1589
|
}
|
|
1582
|
-
function
|
|
1583
|
-
|
|
1584
|
-
e.options.showDiffs && (
|
|
1590
|
+
function _e(e) {
|
|
1591
|
+
We(e), Je(e), e.diffs.forEach((t, n) => {
|
|
1592
|
+
e.options.showDiffs && (re(e, D.EDITOR_LEFT, t.leftStartLine, t.leftEndLine, e.options.classes.diff), re(e, D.EDITOR_RIGHT, t.rightStartLine, t.rightEndLine, e.options.classes.diff), e.options.showConnectors && Ye(e, t.leftStartLine, t.leftEndLine, t.rightStartLine, t.rightEndLine), ze(e, t, n));
|
|
1585
1593
|
}, e);
|
|
1586
1594
|
}
|
|
1587
|
-
const
|
|
1595
|
+
const Ze = {
|
|
1588
1596
|
props: {
|
|
1589
1597
|
pluginName: {
|
|
1590
1598
|
type: String,
|
|
@@ -1612,28 +1620,12 @@ const nt = {
|
|
|
1612
1620
|
localPluginTxt: "",
|
|
1613
1621
|
localExistingPluginTxt: null,
|
|
1614
1622
|
editor: null,
|
|
1615
|
-
differ: null
|
|
1623
|
+
differ: null,
|
|
1624
|
+
contextMenu: !1,
|
|
1625
|
+
menuX: 0,
|
|
1626
|
+
menuY: 0
|
|
1616
1627
|
};
|
|
1617
1628
|
},
|
|
1618
|
-
mounted() {
|
|
1619
|
-
const e = this.buildPluginMode();
|
|
1620
|
-
this.existingPluginTxt === null ? (this.editor = R.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.localPluginTxt), this.editor.clearSelection(), this.editor.focus()) : (this.tab = 1, this.differ = new z({
|
|
1621
|
-
element: this.$refs.editor,
|
|
1622
|
-
mode: new e(),
|
|
1623
|
-
theme: "ace/theme/twilight",
|
|
1624
|
-
left: {
|
|
1625
|
-
content: this.localExistingPluginTxt,
|
|
1626
|
-
copyLinkEnabled: !1
|
|
1627
|
-
},
|
|
1628
|
-
right: {
|
|
1629
|
-
content: this.localPluginTxt,
|
|
1630
|
-
editable: !1
|
|
1631
|
-
}
|
|
1632
|
-
}), this.differ.getEditors().left.setFontSize(16), this.differ.getEditors().right.setFontSize(16), this.curDiff = -1);
|
|
1633
|
-
},
|
|
1634
|
-
beforeUnmount() {
|
|
1635
|
-
this.editor && this.editor.destroy(), this.differ && this.differ.destroy();
|
|
1636
|
-
},
|
|
1637
1629
|
computed: {
|
|
1638
1630
|
show: {
|
|
1639
1631
|
get() {
|
|
@@ -1652,6 +1644,25 @@ const nt = {
|
|
|
1652
1644
|
}
|
|
1653
1645
|
}
|
|
1654
1646
|
},
|
|
1647
|
+
mounted() {
|
|
1648
|
+
const e = this.buildPluginMode();
|
|
1649
|
+
this.existingPluginTxt === null ? (this.editor = I.edit(this.$refs.editor), this.editor.setTheme("ace/theme/twilight"), this.editor.session.setMode(new e()), this.editor.session.setTabSize(2), this.editor.session.setUseWrapMode(!0), this.editor.$blockScrolling = 1 / 0, this.editor.setHighlightActiveLine(!1), this.editor.setValue(this.localPluginTxt), this.editor.clearSelection(), U.applyVimModeIfEnabled(this.editor), this.editor.focus()) : (this.tab = 1, this.differ = new X({
|
|
1650
|
+
element: this.$refs.editor,
|
|
1651
|
+
mode: new e(),
|
|
1652
|
+
theme: "ace/theme/twilight",
|
|
1653
|
+
left: {
|
|
1654
|
+
content: this.localExistingPluginTxt,
|
|
1655
|
+
copyLinkEnabled: !1
|
|
1656
|
+
},
|
|
1657
|
+
right: {
|
|
1658
|
+
content: this.localPluginTxt,
|
|
1659
|
+
editable: !1
|
|
1660
|
+
}
|
|
1661
|
+
}), this.differ.getEditors().left.setFontSize(16), this.differ.getEditors().right.setFontSize(16), U.applyVimModeIfEnabled(this.differ.getEditors().left), U.applyVimModeIfEnabled(this.differ.getEditors().right), this.curDiff = -1);
|
|
1662
|
+
},
|
|
1663
|
+
beforeUnmount() {
|
|
1664
|
+
this.editor && this.editor.destroy(), this.differ && this.differ.destroy();
|
|
1665
|
+
},
|
|
1655
1666
|
methods: {
|
|
1656
1667
|
previousDiff() {
|
|
1657
1668
|
this.curDiff--, this.curDiff < 0 && (this.curDiff = this.differ.diffs.length - 1), this.scrollToCurDiff();
|
|
@@ -1665,24 +1676,24 @@ const nt = {
|
|
|
1665
1676
|
e > 5 && (e -= 5), t > 5 && (t -= 5), this.differ.getEditors().left.scrollToLine(e), this.differ.getEditors().right.scrollToLine(t);
|
|
1666
1677
|
},
|
|
1667
1678
|
buildPluginMode() {
|
|
1668
|
-
let e =
|
|
1679
|
+
let e = I.require("ace/lib/oop"), t = I.require(
|
|
1669
1680
|
"ace/mode/ruby_highlight_rules"
|
|
1670
|
-
).RubyHighlightRules, n = ["VARIABLE"], o = new RegExp(`(\\b${n.join("\\b|\\b")}\\b)`),
|
|
1681
|
+
).RubyHighlightRules, n = ["VARIABLE"], o = new RegExp(`(\\b${n.join("\\b|\\b")}\\b)`), l = function() {
|
|
1671
1682
|
t.call(this);
|
|
1672
|
-
for (let
|
|
1673
|
-
this.$rules[
|
|
1683
|
+
for (let u in this.$rules)
|
|
1684
|
+
this.$rules[u].unshift({
|
|
1674
1685
|
regex: o,
|
|
1675
1686
|
token: "support.function"
|
|
1676
1687
|
});
|
|
1677
1688
|
};
|
|
1678
|
-
e.inherits(
|
|
1679
|
-
let i =
|
|
1689
|
+
e.inherits(l, t);
|
|
1690
|
+
let i = I.require(
|
|
1680
1691
|
"ace/mode/matching_brace_outdent"
|
|
1681
|
-
).MatchingBraceOutdent,
|
|
1692
|
+
).MatchingBraceOutdent, s = I.require(
|
|
1682
1693
|
"ace/mode/behaviour/cstyle"
|
|
1683
|
-
).CstyleBehaviour, r =
|
|
1684
|
-
this.HighlightRules =
|
|
1685
|
-
}, f =
|
|
1694
|
+
).CstyleBehaviour, r = I.require("ace/mode/folding/ruby").FoldMode, a = function() {
|
|
1695
|
+
this.HighlightRules = l, this.$outdent = new i(), this.$behaviour = new s(), this.foldingRules = new r(), this.indentKeywords = this.foldingRules.indentKeywords;
|
|
1696
|
+
}, f = I.require("ace/mode/ruby").Mode;
|
|
1686
1697
|
return e.inherits(a, f), (function() {
|
|
1687
1698
|
this.$id = "ace/mode/openc3";
|
|
1688
1699
|
}).call(a.prototype), a;
|
|
@@ -1707,77 +1718,85 @@ const nt = {
|
|
|
1707
1718
|
emitSubmit(e) {
|
|
1708
1719
|
let t = {
|
|
1709
1720
|
name: this.pluginName,
|
|
1710
|
-
variables:
|
|
1721
|
+
variables: xe(this.localVariables),
|
|
1711
1722
|
plugin_txt_lines: e
|
|
1712
1723
|
};
|
|
1713
1724
|
this.$emit("callback", t);
|
|
1714
1725
|
},
|
|
1715
1726
|
close: function() {
|
|
1716
1727
|
this.show = !this.show;
|
|
1728
|
+
},
|
|
1729
|
+
showContextMenu: function(e) {
|
|
1730
|
+
this.menuX = e.pageX, this.menuY = e.pageY;
|
|
1731
|
+
let t = this.editor.getCursorPosition(), n = this.editor.session.getTokenAt(t.row, t.column);
|
|
1732
|
+
if (n) {
|
|
1733
|
+
let o = n.value.trim();
|
|
1734
|
+
o.includes(" ") ? this.docsKeyword = o.split(" ")[0] : this.docsKeyword = o, this.contextMenu = !0;
|
|
1735
|
+
}
|
|
1736
|
+
},
|
|
1737
|
+
toggleVimMode: function() {
|
|
1738
|
+
this.editor && U.toggleVimMode(this.editor);
|
|
1717
1739
|
}
|
|
1718
1740
|
}
|
|
1719
|
-
},
|
|
1720
|
-
ref: "editor",
|
|
1721
|
-
class: "editor"
|
|
1722
|
-
}, lt = {
|
|
1741
|
+
}, et = { style: { flex: "1" } }, tt = { class: "pa-3" }, nt = {
|
|
1723
1742
|
ref: "editor",
|
|
1724
1743
|
class: "editor"
|
|
1725
|
-
},
|
|
1726
|
-
function
|
|
1727
|
-
const
|
|
1728
|
-
return
|
|
1729
|
-
persistent: "",
|
|
1744
|
+
}, it = { key: 0 };
|
|
1745
|
+
function ot(e, t, n, o, l, i) {
|
|
1746
|
+
const s = m("v-card-title"), r = m("v-icon"), a = m("v-row"), f = m("v-tab"), u = m("v-tabs"), h = m("v-text-field"), p = m("v-col"), _ = m("v-window-item"), w = m("v-list-item-title"), C = m("v-list-item"), y = m("v-divider"), b = m("v-list"), v = m("v-menu"), x = m("v-window"), L = m("v-btn"), k = m("v-spacer"), N = m("v-card-actions"), O = m("v-card-text"), P = m("v-card"), F = m("v-dialog");
|
|
1747
|
+
return E(), M(F, {
|
|
1730
1748
|
modelValue: i.show,
|
|
1731
|
-
"onUpdate:modelValue": t[
|
|
1749
|
+
"onUpdate:modelValue": t[5] || (t[5] = (R) => i.show = R),
|
|
1750
|
+
persistent: "",
|
|
1732
1751
|
width: "80vw"
|
|
1733
1752
|
}, {
|
|
1734
|
-
default:
|
|
1735
|
-
|
|
1736
|
-
default:
|
|
1737
|
-
|
|
1738
|
-
default:
|
|
1739
|
-
|
|
1740
|
-
default:
|
|
1741
|
-
|
|
1753
|
+
default: g(() => [
|
|
1754
|
+
c(P, null, {
|
|
1755
|
+
default: g(() => [
|
|
1756
|
+
c(O, null, {
|
|
1757
|
+
default: g(() => [
|
|
1758
|
+
c(s, null, {
|
|
1759
|
+
default: g(() => [
|
|
1760
|
+
S(A(n.pluginName), 1)
|
|
1742
1761
|
]),
|
|
1743
1762
|
_: 1
|
|
1744
1763
|
}),
|
|
1745
|
-
n.existingPluginTxt !== null ? (
|
|
1764
|
+
n.existingPluginTxt !== null ? (E(), M(a, {
|
|
1746
1765
|
key: 0,
|
|
1747
1766
|
class: "notice d-flex flex-row"
|
|
1748
1767
|
}, {
|
|
1749
|
-
default:
|
|
1750
|
-
|
|
1768
|
+
default: g(() => [
|
|
1769
|
+
c(r, {
|
|
1751
1770
|
size: "x-large",
|
|
1752
1771
|
start: "",
|
|
1753
1772
|
color: "yellow"
|
|
1754
1773
|
}, {
|
|
1755
|
-
default:
|
|
1756
|
-
|
|
1774
|
+
default: g(() => t[6] || (t[6] = [
|
|
1775
|
+
S(" mdi-alert-box ")
|
|
1757
1776
|
])),
|
|
1758
1777
|
_: 1
|
|
1759
1778
|
}),
|
|
1760
|
-
|
|
1779
|
+
T("div", et, " The existing plugin.txt is different from the " + A(n.pluginName) + "'s plugin.txt. Navigate the diffs making whatever edits you want before installing. You may want to update " + A(n.pluginName) + "'s plugin.txt going forward. ", 1)
|
|
1761
1780
|
]),
|
|
1762
1781
|
_: 1
|
|
1763
|
-
})) :
|
|
1764
|
-
|
|
1765
|
-
default:
|
|
1766
|
-
|
|
1767
|
-
modelValue:
|
|
1768
|
-
"onUpdate:modelValue": t[0] || (t[0] = (
|
|
1782
|
+
})) : j("", !0),
|
|
1783
|
+
c(a, { class: "pb-3 pr-3" }, {
|
|
1784
|
+
default: g(() => [
|
|
1785
|
+
c(u, {
|
|
1786
|
+
modelValue: l.tab,
|
|
1787
|
+
"onUpdate:modelValue": t[0] || (t[0] = (R) => l.tab = R),
|
|
1769
1788
|
class: "ml-3"
|
|
1770
1789
|
}, {
|
|
1771
|
-
default:
|
|
1772
|
-
(
|
|
1773
|
-
default:
|
|
1774
|
-
|
|
1790
|
+
default: g(() => [
|
|
1791
|
+
(E(), M(f, { key: 0 }, {
|
|
1792
|
+
default: g(() => t[7] || (t[7] = [
|
|
1793
|
+
S(" Variables ")
|
|
1775
1794
|
])),
|
|
1776
1795
|
_: 1
|
|
1777
1796
|
})),
|
|
1778
|
-
(
|
|
1779
|
-
default:
|
|
1780
|
-
|
|
1797
|
+
(E(), M(f, { key: 1 }, {
|
|
1798
|
+
default: g(() => t[8] || (t[8] = [
|
|
1799
|
+
S(" plugin.txt ")
|
|
1781
1800
|
])),
|
|
1782
1801
|
_: 1
|
|
1783
1802
|
}))
|
|
@@ -1787,33 +1806,33 @@ function at(e, t, n, o, s, i) {
|
|
|
1787
1806
|
]),
|
|
1788
1807
|
_: 1
|
|
1789
1808
|
}),
|
|
1790
|
-
|
|
1791
|
-
onSubmit: t[
|
|
1809
|
+
T("form", {
|
|
1810
|
+
onSubmit: t[4] || (t[4] = H((...R) => e.onSubmit && e.onSubmit(...R), ["prevent"]))
|
|
1792
1811
|
}, [
|
|
1793
|
-
|
|
1794
|
-
modelValue:
|
|
1795
|
-
"onUpdate:modelValue": t[
|
|
1812
|
+
c(x, {
|
|
1813
|
+
modelValue: l.tab,
|
|
1814
|
+
"onUpdate:modelValue": t[3] || (t[3] = (R) => l.tab = R)
|
|
1796
1815
|
}, {
|
|
1797
|
-
default:
|
|
1798
|
-
(
|
|
1816
|
+
default: g(() => [
|
|
1817
|
+
(E(), M(_, {
|
|
1799
1818
|
key: 0,
|
|
1800
1819
|
eager: "true",
|
|
1801
1820
|
class: "tab"
|
|
1802
1821
|
}, {
|
|
1803
|
-
default:
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
default:
|
|
1807
|
-
(
|
|
1808
|
-
|
|
1809
|
-
default:
|
|
1810
|
-
|
|
1822
|
+
default: g(() => [
|
|
1823
|
+
T("div", tt, [
|
|
1824
|
+
c(a, { class: "mt-3" }, {
|
|
1825
|
+
default: g(() => [
|
|
1826
|
+
(E(!0), V(G, null, $(l.localVariables, (R, Y) => (E(), V("div", { key: Y }, [
|
|
1827
|
+
c(p, { style: { width: "220px" } }, {
|
|
1828
|
+
default: g(() => [
|
|
1829
|
+
c(h, {
|
|
1830
|
+
modelValue: l.localVariables[Y],
|
|
1831
|
+
"onUpdate:modelValue": (be) => l.localVariables[Y] = be,
|
|
1811
1832
|
clearable: "",
|
|
1812
1833
|
type: "text",
|
|
1813
|
-
label:
|
|
1814
|
-
|
|
1815
|
-
"onUpdate:modelValue": (N) => s.localVariables[I] = N
|
|
1816
|
-
}, null, 8, ["label", "modelValue", "onUpdate:modelValue"])
|
|
1834
|
+
label: Y
|
|
1835
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label"])
|
|
1817
1836
|
]),
|
|
1818
1837
|
_: 2
|
|
1819
1838
|
}, 1024)
|
|
@@ -1825,96 +1844,131 @@ function at(e, t, n, o, s, i) {
|
|
|
1825
1844
|
]),
|
|
1826
1845
|
_: 1
|
|
1827
1846
|
})),
|
|
1828
|
-
n.existingPluginTxt === null ? (
|
|
1847
|
+
n.existingPluginTxt === null ? (E(), M(_, {
|
|
1829
1848
|
key: "1-new",
|
|
1830
1849
|
eager: "true",
|
|
1831
1850
|
class: "tab"
|
|
1832
1851
|
}, {
|
|
1833
|
-
default:
|
|
1834
|
-
|
|
1835
|
-
default:
|
|
1836
|
-
|
|
1837
|
-
default:
|
|
1838
|
-
|
|
1852
|
+
default: g(() => [
|
|
1853
|
+
c(a, { class: "pa-3" }, {
|
|
1854
|
+
default: g(() => [
|
|
1855
|
+
c(p, null, {
|
|
1856
|
+
default: g(() => t[9] || (t[9] = [
|
|
1857
|
+
S(" This can be edited before installation. ")
|
|
1839
1858
|
])),
|
|
1840
1859
|
_: 1
|
|
1841
1860
|
})
|
|
1842
1861
|
]),
|
|
1843
1862
|
_: 1
|
|
1844
1863
|
}),
|
|
1845
|
-
|
|
1864
|
+
T("pre", {
|
|
1865
|
+
ref: "editor",
|
|
1866
|
+
class: "editor",
|
|
1867
|
+
onContextmenu: t[1] || (t[1] = H((...R) => i.showContextMenu && i.showContextMenu(...R), ["prevent"]))
|
|
1868
|
+
}, null, 544),
|
|
1869
|
+
c(v, {
|
|
1870
|
+
modelValue: l.contextMenu,
|
|
1871
|
+
"onUpdate:modelValue": t[2] || (t[2] = (R) => l.contextMenu = R),
|
|
1872
|
+
target: [l.menuX, l.menuY]
|
|
1873
|
+
}, {
|
|
1874
|
+
default: g(() => [
|
|
1875
|
+
c(b, null, {
|
|
1876
|
+
default: g(() => [
|
|
1877
|
+
c(C, { link: "" }, {
|
|
1878
|
+
default: g(() => [
|
|
1879
|
+
c(w, { onClick: e.openDocumentation }, {
|
|
1880
|
+
default: g(() => [
|
|
1881
|
+
S(A(e.docsKeyword) + " documentation ", 1)
|
|
1882
|
+
]),
|
|
1883
|
+
_: 1
|
|
1884
|
+
}, 8, ["onClick"])
|
|
1885
|
+
]),
|
|
1886
|
+
_: 1
|
|
1887
|
+
}),
|
|
1888
|
+
c(y),
|
|
1889
|
+
c(C, {
|
|
1890
|
+
title: "Toggle Vim mode",
|
|
1891
|
+
"prepend-icon": "extras:vim",
|
|
1892
|
+
onClick: i.toggleVimMode
|
|
1893
|
+
}, null, 8, ["onClick"])
|
|
1894
|
+
]),
|
|
1895
|
+
_: 1
|
|
1896
|
+
})
|
|
1897
|
+
]),
|
|
1898
|
+
_: 1
|
|
1899
|
+
}, 8, ["modelValue", "target"])
|
|
1846
1900
|
]),
|
|
1847
1901
|
_: 1
|
|
1848
|
-
})) : (
|
|
1902
|
+
})) : (E(), M(_, {
|
|
1849
1903
|
key: "1-existing",
|
|
1850
1904
|
eager: "true",
|
|
1851
1905
|
class: "tab"
|
|
1852
1906
|
}, {
|
|
1853
|
-
default:
|
|
1854
|
-
|
|
1855
|
-
default:
|
|
1856
|
-
|
|
1857
|
-
default:
|
|
1858
|
-
|
|
1907
|
+
default: g(() => [
|
|
1908
|
+
c(a, { class: "pa-3" }, {
|
|
1909
|
+
default: g(() => [
|
|
1910
|
+
c(p, null, {
|
|
1911
|
+
default: g(() => t[10] || (t[10] = [
|
|
1912
|
+
S(" Existing plugin.txt. This can be edited before installation. ")
|
|
1859
1913
|
])),
|
|
1860
1914
|
_: 1
|
|
1861
1915
|
}),
|
|
1862
|
-
|
|
1863
|
-
default:
|
|
1864
|
-
|
|
1916
|
+
c(p, { class: "ml-6" }, {
|
|
1917
|
+
default: g(() => t[11] || (t[11] = [
|
|
1918
|
+
S(" Uneditable plugin.txt from the new plugin. ")
|
|
1865
1919
|
])),
|
|
1866
1920
|
_: 1
|
|
1867
1921
|
})
|
|
1868
1922
|
]),
|
|
1869
1923
|
_: 1
|
|
1870
1924
|
}),
|
|
1871
|
-
|
|
1925
|
+
T("pre", nt, null, 512)
|
|
1872
1926
|
]),
|
|
1873
1927
|
_: 1
|
|
1874
1928
|
}))
|
|
1875
1929
|
]),
|
|
1876
1930
|
_: 1
|
|
1877
1931
|
}, 8, ["modelValue"]),
|
|
1878
|
-
|
|
1879
|
-
default:
|
|
1880
|
-
n.existingPluginTxt !== null ? (
|
|
1881
|
-
|
|
1932
|
+
c(N, { class: "px-2 mt-2" }, {
|
|
1933
|
+
default: g(() => [
|
|
1934
|
+
n.existingPluginTxt !== null ? (E(), V("div", it, [
|
|
1935
|
+
c(L, {
|
|
1882
1936
|
variant: "text",
|
|
1883
1937
|
onClick: i.nextDiff
|
|
1884
1938
|
}, {
|
|
1885
|
-
default:
|
|
1886
|
-
|
|
1939
|
+
default: g(() => t[12] || (t[12] = [
|
|
1940
|
+
S(" Next Diff ")
|
|
1887
1941
|
])),
|
|
1888
1942
|
_: 1
|
|
1889
1943
|
}, 8, ["onClick"]),
|
|
1890
|
-
|
|
1944
|
+
c(L, {
|
|
1891
1945
|
variant: "text",
|
|
1892
1946
|
onClick: i.previousDiff
|
|
1893
1947
|
}, {
|
|
1894
|
-
default:
|
|
1895
|
-
|
|
1948
|
+
default: g(() => t[13] || (t[13] = [
|
|
1949
|
+
S(" Previous Diff ")
|
|
1896
1950
|
])),
|
|
1897
1951
|
_: 1
|
|
1898
1952
|
}, 8, ["onClick"])
|
|
1899
|
-
])) :
|
|
1900
|
-
|
|
1901
|
-
|
|
1953
|
+
])) : j("", !0),
|
|
1954
|
+
c(k),
|
|
1955
|
+
c(L, {
|
|
1902
1956
|
variant: "outlined",
|
|
1903
|
-
|
|
1904
|
-
|
|
1957
|
+
"data-test": "edit-cancel",
|
|
1958
|
+
onClick: H(i.close, ["prevent"])
|
|
1905
1959
|
}, {
|
|
1906
|
-
default:
|
|
1907
|
-
|
|
1960
|
+
default: g(() => t[14] || (t[14] = [
|
|
1961
|
+
S(" Cancel ")
|
|
1908
1962
|
])),
|
|
1909
1963
|
_: 1
|
|
1910
1964
|
}, 8, ["onClick"]),
|
|
1911
|
-
|
|
1965
|
+
c(L, {
|
|
1912
1966
|
variant: "flat",
|
|
1913
|
-
|
|
1914
|
-
|
|
1967
|
+
"data-test": "edit-submit",
|
|
1968
|
+
onClick: i.submit
|
|
1915
1969
|
}, {
|
|
1916
|
-
default:
|
|
1917
|
-
|
|
1970
|
+
default: g(() => t[15] || (t[15] = [
|
|
1971
|
+
S(" Install ")
|
|
1918
1972
|
])),
|
|
1919
1973
|
_: 1
|
|
1920
1974
|
}, 8, ["onClick"])
|
|
@@ -1932,13 +1986,13 @@ function at(e, t, n, o, s, i) {
|
|
|
1932
1986
|
_: 1
|
|
1933
1987
|
}, 8, ["modelValue"]);
|
|
1934
1988
|
}
|
|
1935
|
-
const
|
|
1989
|
+
const pt = /* @__PURE__ */ q(Ze, [["render", ot], ["__scopeId", "data-v-5b18ccf5"]]);
|
|
1936
1990
|
export {
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1991
|
+
ht as DownloadDialog,
|
|
1992
|
+
ut as EditDialog,
|
|
1993
|
+
ct as ModifiedPluginDialog,
|
|
1994
|
+
gt as OpenC3Admin,
|
|
1995
|
+
pt as PluginDialog,
|
|
1996
|
+
Ue as TabsList
|
|
1943
1997
|
};
|
|
1944
1998
|
//# sourceMappingURL=admin.js.map
|