@hot-updater/console 1.2.0-rc.4 → 1.2.0-rc.41
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/.output/nitro.json +1 -1
- package/.output/public/assets/-native-builds-search-BFcW2mlI.js +1 -0
- package/.output/public/assets/BundleIdDisplay-C0X-k49t.js +1 -0
- package/.output/public/assets/ChannelBadge-BgVCJfJs.js +1 -0
- package/.output/public/assets/ChannelPicker-BQKoyxnf.js +1 -0
- package/.output/public/assets/CompositeItem-B7uxFM46.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-B3VCINom.js} +1 -1
- package/.output/public/assets/EventDetails-CWiI1CXb.js +1 -0
- package/.output/public/assets/HashValueDisplay-DvwvQchI.js +1 -0
- package/.output/public/assets/InsightsPageHeader-BjUAikRe.js +1 -0
- package/.output/public/assets/IosInstall-B5IdjCP2.js +1 -0
- package/.output/public/assets/NativeBuildsNav-BKdnlKMN.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-BEpesHEm.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-D4KPXCHL.js} +1 -1
- package/.output/public/assets/QrCode-BFSCkbPj.js +1 -0
- package/.output/public/assets/RelativeTime-5ZP9WlQ6.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-DCtG7c1o.js +1 -0
- package/.output/public/assets/RowReason-CXMCJ-Jc.js +1 -0
- package/.output/public/assets/SandboxBadge-PM92jCk6.js +1 -0
- package/.output/public/assets/TargetDisplay-DG_I3qln.js +1 -0
- package/.output/public/assets/alert-dialog-DGPqJBCk.js +1 -0
- package/.output/public/assets/api-eO-sq3Jd.js +1 -0
- package/.output/public/assets/api-keys-CAVLgicI.js +1 -0
- package/.output/public/assets/api-keys-ztwXoKcj.js +1 -0
- package/.output/public/assets/arrow-left-68S4uy4I.js +1 -0
- package/.output/public/assets/arrow-right-DjRwIoF1.js +1 -0
- package/.output/public/assets/arrow-up-right-C_1ALUCD.js +1 -0
- package/.output/public/assets/badge-zMibJGR5.js +1 -0
- package/.output/public/assets/card-BAs80yql.js +1 -0
- package/.output/public/assets/check-C3VCvMOV.js +1 -0
- package/.output/public/assets/chevron-right-RAuPv9r1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-DvYMC5yF.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-D0JWZ1KF.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-CtbGqKyr.js} +1 -1
- package/.output/public/assets/{uuidv7-zXMtwR9Q.js → constants-C5gi7fdZ.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-BjVLMKbo.js} +1 -1
- package/.output/public/assets/dialog-BvZDZzdQ.js +1 -0
- package/.output/public/assets/dist-BEmib-ZM.js +1 -0
- package/.output/public/assets/{download-Cf24LBde.js → download-CgpaZb23.js} +1 -1
- package/.output/public/assets/empty-C5GqArX9.js +1 -0
- package/.output/public/assets/field-DInLQ5oV.js +1 -0
- package/.output/public/assets/git-branch-BGatQV8Q.js +1 -0
- package/.output/public/assets/history-Ci4dhphE.js +1 -0
- package/.output/public/assets/index-Ck4fZq4M.js +10 -0
- package/.output/public/assets/input-group-CIjTdxCW.js +1 -0
- package/.output/public/assets/insights-V3D8tYPQ.js +1 -0
- package/.output/public/assets/insights-api-D4-FZeEI.js +1 -0
- package/.output/public/assets/insights-fSY6n4k3.js +42 -0
- package/.output/public/assets/insights-osTmFzzR.js +2 -0
- package/.output/public/assets/insights-search-CZtvD-Vf.js +1 -0
- package/.output/public/assets/insights-usage-rpc-Dw5_pmRH.js +1 -0
- package/.output/public/assets/insights_.distribution-Cws8lYLC.js +1 -0
- package/.output/public/assets/insights_.distribution-DpppHhaU.js +2 -0
- package/.output/public/assets/insights_.distribution-oIFSv2TC.js +1 -0
- package/.output/public/assets/installations-Byojb0Rv.js +2 -0
- package/.output/public/assets/installations-CFGDrY-W.js +1 -0
- package/.output/public/assets/installations-CcPrSZwW.js +1 -0
- package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-BkeLvA1m.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CRMwpc7-.js} +2 -2
- package/.output/public/assets/{list--NIee1FZ.js → list-DQ9YBIDW.js} +1 -1
- package/.output/public/assets/loader-circle-8lunBReu.js +1 -0
- package/.output/public/assets/native-builds-C4u6JvxV.js +2 -0
- package/.output/public/assets/native-builds-D9hoJd6W.js +1 -0
- package/.output/public/assets/native-builds-zwqucwx2.js +1 -0
- package/.output/public/assets/native-builds_._buildId-CXx2xjoI.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DymsEZlO.js +2 -0
- package/.output/public/assets/native-builds_.devices-DF3g--dt.js +1 -0
- package/.output/public/assets/native-builds_.devices-QToUV8FB.js +2 -0
- package/.output/public/assets/plus-DztQIXYL.js +1 -0
- package/.output/public/assets/preload-helper-CE9OukVC.js +1 -0
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-RUNbaMyO.js} +1 -1
- package/.output/public/assets/remote-config-BIIj0Faf.js +1 -0
- package/.output/public/assets/remote-config-BJJAxy_g.js +6 -0
- package/.output/public/assets/remote-config-Dm1MCHDN.js +1 -0
- package/.output/public/assets/rotate-ccw-tITIe0Bd.js +1 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-BFQcpUTO.js} +1 -1
- package/.output/public/assets/routes-9gxYg__u.js +1 -0
- package/.output/public/assets/routes-CUsayL0T.js +2 -0
- package/.output/public/assets/search-BfEqtE64.js +1 -0
- package/.output/public/assets/select-Bk52fOVX.js +1 -0
- package/.output/public/assets/sidebar-BmzmPGuv.js +3 -0
- package/.output/public/assets/smartphone-Dy13ukaU.js +1 -0
- package/.output/public/assets/styles-C1iqL6CR.css +2 -0
- package/.output/public/assets/switch-CI393qIT.js +1 -0
- package/.output/public/assets/table-DbZPkzdz.js +1 -0
- package/.output/public/assets/tabs-BnpNC0zf.js +1 -0
- package/.output/public/assets/trash-2-DI0biNI-.js +1 -0
- package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CxhBbgJw.js} +1 -1
- package/.output/public/assets/useAnchoredPopupScrollLock-Cvx6CdPD.js +1 -0
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-Cbk_weKW.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-D7IuoOLE.js} +1 -1
- package/.output/public/assets/valueToPercent-Db73Kirz.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-X9YQcrQI.mjs → __23tanstack-start-server-fn-resolver-76SKGuoc.mjs} +94 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@base-ui/react+[...].mjs +4436 -3131
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +2 -2
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +34 -28
- package/.output/server/_libs/next-themes.mjs +1 -1
- package/.output/server/_libs/react-redux+[...].mjs +1 -1
- package/.output/server/_libs/recharts+[...].mjs +1 -1
- package/.output/server/_libs/sonner.mjs +1 -1
- package/.output/server/_libs/tanstack__react-query.mjs +1 -1
- package/.output/server/_ssr/-native-builds-search-Bwt8tQzp.mjs +55 -0
- package/.output/server/_ssr/{BundleIdDisplay-BVrZXzTm.mjs → BundleIdDisplay-By3CbbRM.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-CDup7l56.mjs +23 -0
- package/.output/server/_ssr/ChannelPicker-Du2TmP3P.mjs +251 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CULyV3nR.mjs → ConsoleFeatureUnavailable-C6aGoKDE.mjs} +8 -8
- package/.output/server/_ssr/{EventDetails-DeI1rOQc.mjs → EventDetails-VbcnMnSs.mjs} +9 -9
- package/.output/server/_ssr/{HashValueDisplay-DpnPD3U2.mjs → HashValueDisplay-CnC2fHER.mjs} +7 -7
- package/.output/server/_ssr/{InsightsPageHeader-Dwmdtelg.mjs → InsightsPageHeader-BuOanVZL.mjs} +13 -13
- package/.output/server/_ssr/IosInstall-BAFhW7Q9.mjs +751 -0
- package/.output/server/_ssr/NativeBuildsNav-BoTu4aLF.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-Dddp1HSc.mjs → NotFoundPage-Bz05xF5Q.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-C22qEcwo.mjs} +13 -3
- package/.output/server/_ssr/QrCode-DWshAW81.mjs +50 -0
- package/.output/server/_ssr/RelativeTime-D5kDQVn1.mjs +242 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-Dwx7dEeQ.mjs} +20 -4
- package/.output/server/_ssr/RowReason-pVOWQ7t5.mjs +186 -0
- package/.output/server/_ssr/SandboxBadge-DFbUYwhO.mjs +85 -0
- package/.output/server/_ssr/TargetDisplay-BtE5vntq.mjs +105 -0
- package/.output/server/_ssr/{alert-dialog-ei2c1b6A.mjs → alert-dialog-tcfkkNUX.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CVi7E0qS.mjs → api-keys-12_U0SQM.mjs} +14 -11
- package/.output/server/_ssr/{api-keys-BLHCygD_.mjs → api-keys-Bm8uDp2u.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-rpc-CLZsTwih.mjs → api-keys-rpc-BxkfToWI.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-p-7EhGIG.mjs → api-rpc-TSnLWB7e.mjs} +83 -35
- package/.output/server/_ssr/{api-CvwqILEx.mjs → api-xOHZxbzu.mjs} +174 -37
- package/.output/server/_ssr/{auth-rpc-B1W4-hxa.mjs → auth-rpc-D3w54vsW.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-CVKs7SWJ.mjs → auth.server-a2eP6q5P.mjs} +952 -186
- package/.output/server/_ssr/{badge-nS9EbEA0.mjs → badge-DrfbN1n0.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-a-pEDiqu.mjs} +1 -1
- package/.output/server/_ssr/card-DEItjgKG.mjs +49 -0
- package/.output/server/_ssr/{config.server-BAdvotbH.mjs → config.server-K8dd4dRv.mjs} +4 -4
- package/.output/server/_ssr/{console-access-BiuC2QFp.mjs → console-access-D-DHU4YH.mjs} +2 -2
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-DTYyXrWO.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-FvbqhbTg.mjs → console-features-api-Chy2PrzZ.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-Cl3J66aP.mjs → console-features-rpc-_31L0k1i.mjs} +4 -4
- package/.output/server/_ssr/constants-BjsJZqaU.mjs +10 -0
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-B56IJxlu.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BZMFl5QV.mjs} +3 -3
- package/.output/server/_ssr/deviceProfileToken-xzDLfE0T.mjs +98 -0
- package/.output/server/_ssr/{dialog-GmTPeUS4.mjs → dialog-SAl1vP74.mjs} +5 -5
- package/.output/server/_ssr/dist-CiOq3ygH.mjs +148 -0
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-C1KOnpiF.mjs} +1 -1
- package/.output/server/_ssr/{empty-CXWKv24M.mjs → empty-opJc9Fjw.mjs} +3 -3
- package/.output/server/_ssr/{empty-plugin-adapters-zrZ0xs6n.mjs → empty-plugin-adapters-BYBYBaxo.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Cn_zU9S8.mjs → failureReports-BVufgM3l.mjs} +3 -3
- package/.output/server/_ssr/{field-lwIHAwLc.mjs → field-D6Y7zDZd.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CUjJqtlF.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CnOf4Frp.mjs} +2 -2
- package/.output/server/_ssr/{input-group-Dgr4DNbE.mjs → input-group-D2PvPRdm.mjs} +3 -3
- package/.output/server/_ssr/{insights-BxtyBLt0.mjs → insights-Cro4cYp7.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-PN_9ilr8.mjs → insights-api-BPyvQert.mjs} +5 -5
- package/.output/server/_ssr/{insights-DSnQTQw1.mjs → insights-dWeLneo1.mjs} +45 -191
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-DwUaDs0Z.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-DGO2_3Vx.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-Cxu3UtyB.mjs → insights-failures-rpc-D7M8-Et9.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-Cdg3Msrj.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc--c6kBp3k.mjs → insights-recovery-rpc-BUMK4m4H.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-oTMaAqc1.mjs → insights-rpc-BZZ4U2Ll.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-r-Z50f0Y.mjs → insights-search-Czi553oN.mjs} +6 -8
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-BVm7CDw9.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-DoElOI5b.mjs → insights-usage-rpc-BXvUr-z6.mjs} +7 -7
- package/.output/server/_ssr/{insights-usage-rpc-B00vjt0a.mjs → insights-usage-rpc-HOr6mniz.mjs} +5 -5
- package/.output/server/_ssr/{insights-B9NvjAWc.mjs → insights-vmCmvfXx.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-lPKyRC2o.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-CnYddZ2Y.mjs → insights_.distribution-B2dxcCd_.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-mpZ0wS_R.mjs → insights_.distribution-B5V_NbK4.mjs} +17 -16
- package/.output/server/_ssr/{insights_.distribution-B8AMBp-Q.mjs → insights_.distribution-DongF2jp.mjs} +5 -5
- package/.output/server/_ssr/{installations-BfhcY_XQ.mjs → installations-B7w4LGJp.mjs} +4 -4
- package/.output/server/_ssr/{installations-CWTRzcR7.mjs → installations-B84kSetd.mjs} +2 -2
- package/.output/server/_ssr/{installations-O6Jzc5PO.mjs → installations-bieZA3xt.mjs} +13 -13
- package/.output/server/_ssr/ios-devices-rpc-DOQg4dpb.mjs +137 -0
- package/.output/server/_ssr/iosDeviceCookie-DhWNFpC6.mjs +155 -0
- package/.output/server/_ssr/iosDeviceProfile-jC8w4zEF.mjs +176 -0
- package/.output/server/_ssr/iosDevices-B4kQLURA.mjs +113 -0
- package/.output/server/_ssr/listReleases-QF91GLE7.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/native-artifact-D4ZISXRZ.mjs +1517 -0
- package/.output/server/_ssr/native-builds-BU9Njiwm.mjs +696 -0
- package/.output/server/_ssr/native-builds-lEyKQemV.mjs +262 -0
- package/.output/server/_ssr/{native-builds-UIgRLMb8.mjs → native-builds-zpCsEYyA.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-DjUqI5sa.mjs → native-builds_._buildId-BJ4R32fq.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-RHUotAYb.mjs +1148 -0
- package/.output/server/_ssr/native-builds_.devices-C0IlQkLv.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-D1Ke-Fc-.mjs +820 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-MCd5xUqP.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-DcsqDS-O.mjs +253 -0
- package/.output/server/_ssr/nativeBuilds-CRa36wNn.mjs +287 -0
- package/.output/server/_ssr/plistText-DkzlCfPI.mjs +15 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-D9CCkDjn.mjs} +7 -6
- package/.output/server/_ssr/publicConsoleBase-wTKw3_iB.mjs +15 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-gfhE5tz5.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-PLyiDnas.mjs → release-adoption-rpc-C4G_d8qK.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-DfEYq7I4.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-CJ2Shida.mjs} +4 -3
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-CqIc-SDE.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-Ch1JpJkY.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-C5j4CfGa.mjs → remote-config-1QZ0HgEu.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-eNxv5Kzc.mjs → remote-config-CsbpqWAR.mjs} +24 -23
- package/.output/server/_ssr/{remote-config-tOdzsFMi.mjs → remote-config-DkgBxBka.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-Cy4VwdMt.mjs → remote-config-rpc-KjJA9DC-.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-DaQ6OkIp.mjs → router-Dy3fmb8q.mjs} +137 -64
- package/.output/server/_ssr/{routes-Drni4c1E.mjs → routes-68rZQGee.mjs} +470 -474
- package/.output/server/_ssr/{routes-BYmUIYfN.mjs → routes-Ug9uqzob.mjs} +50 -18
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-BUbb281Z.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-CaIuQCXb.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-mZ_19Wt_.mjs → schema-migration-rpc-kntY9oPm.mjs} +4 -4
- package/.output/server/_ssr/{select-Cjrp1Sl9.mjs → select-BOKFFr_G.mjs} +12 -10
- package/.output/server/_ssr/{server-y3KoaSil.mjs → server-DetMvRBJ.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-tRHVNWpo.mjs → sidebar-B46houn0.mjs} +17 -10
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-BSkL2B6C.mjs} +2 -2
- package/.output/server/_ssr/{switch-YrqCYfP-.mjs → switch-BMYzd71j.mjs} +4 -4
- package/.output/server/_ssr/{table-NHakBPSp.mjs → table-DWrYwJ_a.mjs} +2 -2
- package/.output/server/_ssr/tabs-DusHAcYy.mjs +45 -0
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-BwDwIoNu.mjs} +3 -3
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → uuid-kZvLA0Ly-DNL0qBSj.mjs} +2 -147
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-C0jNe2Om.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-zW2fpHOZ.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-CD1q5k0m.mjs +228 -0
- package/.output/server/index.mjs +503 -391
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/AppSidebar.tsx +11 -2
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/ChannelPicker.tsx +227 -0
- package/src/components/DataTable.tsx +363 -0
- package/src/components/FoldedRows.tsx +219 -0
- package/src/components/HashValueDisplay.tsx +6 -3
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/RowReason.tsx +56 -0
- package/src/components/TargetDisplay.tsx +95 -0
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +5 -3
- package/src/components/features/bundles/BundleMetadata.tsx +1 -1
- package/src/components/features/bundles/RolloutCohortsDialog.tsx +8 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +10 -11
- package/src/components/features/insights/AppUsage.tsx +3 -5
- package/src/components/features/insights/FailureReports.tsx +3 -2
- package/src/components/features/insights/InsightsControls.tsx +10 -69
- package/src/components/features/insights/InsightsOverview.tsx +7 -1
- package/src/components/features/insights/InsightsPageHeader.tsx +10 -15
- package/src/components/features/insights/ReleaseActivity.tsx +6 -2
- package/src/components/features/insights/ReleaseCombobox.tsx +1 -1
- package/src/components/features/insights/UpdateFailures.tsx +1 -0
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +122 -61
- package/src/components/features/native-builds/CommitLink.tsx +3 -2
- package/src/components/features/native-builds/ImportBuild.tsx +1 -1
- package/src/components/features/native-builds/InstallCard.tsx +316 -91
- package/src/components/features/native-builds/IosDevicesPage.tsx +1100 -0
- package/src/components/features/native-builds/IosInstall.tsx +732 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +30 -6
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +94 -108
- package/src/components/features/native-builds/NativeBuildsTable.tsx +649 -323
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/PatchesCard.tsx +28 -19
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +5 -5
- package/src/components/features/native-builds/SandboxBadge.tsx +21 -0
- package/src/components/features/native-builds/ServedNowCard.tsx +33 -1
- package/src/components/features/native-builds/ShortHash.tsx +6 -3
- package/src/components/features/native-builds/StoreSubmission.tsx +18 -12
- package/src/components/features/native-builds/playTracks.ts +7 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +8 -6
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/alert-dialog.tsx +2 -2
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/button.tsx +11 -2
- package/src/components/ui/combobox.tsx +2 -2
- package/src/components/ui/dialog.tsx +3 -3
- package/src/components/ui/input.tsx +1 -1
- package/src/components/ui/select.tsx +15 -7
- package/src/components/ui/sheet.tsx +1 -1
- package/src/components/ui/sidebar.tsx +2 -2
- package/src/components/ui/slider.tsx +1 -1
- package/src/components/ui/sonner.tsx +3 -1
- package/src/components/ui/switch.tsx +1 -1
- package/src/components/ui/tabs.tsx +1 -1
- package/src/components/ui/textarea.tsx +1 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +125 -35
- package/src/lib/api.ts +160 -16
- package/src/lib/constants.ts +15 -0
- package/src/lib/insights-search.ts +0 -3
- package/src/lib/ios-devices-api.ts +290 -0
- package/src/lib/ios-devices-rpc.ts +188 -0
- package/src/lib/native-builds.ts +261 -20
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +221 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceCookie.ts +239 -0
- package/src/lib/server/iosDeviceProfile.ts +232 -0
- package/src/lib/server/iosDevices.ts +193 -0
- package/src/lib/server/listReleases.ts +101 -62
- package/src/lib/server/local-console.ts +1 -1
- package/src/lib/server/nativeBuildDownloadLink.ts +193 -0
- package/src/lib/server/nativeBuildInstall.ts +502 -0
- package/src/lib/server/nativeBuilds.ts +314 -58
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +129 -18
- package/src/routes/-native-builds-search.ts +52 -4
- package/src/routes/-releases-search.ts +63 -2
- package/src/routes/[_]hot-updater/devices/device-response.ts +21 -0
- package/src/routes/[_]hot-updater/devices/device[.]mobileconfig.ts +17 -0
- package/src/routes/[_]hot-updater/devices/receipt.ts +28 -0
- package/src/routes/[_]hot-updater/devices/request.ts +28 -0
- package/src/routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/src/routes/index.tsx +657 -577
- package/src/routes/insights.tsx +3 -5
- package/src/routes/insights_.distribution.tsx +2 -2
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +24 -0
- package/.output/public/assets/-native-builds-search-C-TGpFAm.js +0 -1
- package/.output/public/assets/EventDetails-Dl2RvPAk.js +0 -1
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +0 -1
- package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +0 -1
- package/.output/public/assets/StoreSubmission-ViTkW4eJ.js +0 -1
- package/.output/public/assets/alert-dialog-BqYScr9y.js +0 -1
- package/.output/public/assets/api-P2g8dCNg.js +0 -1
- package/.output/public/assets/api-keys-DWQC2q6y.js +0 -1
- package/.output/public/assets/api-keys-FueRkF9q.js +0 -1
- package/.output/public/assets/arrow-left-g9cKqXuC.js +0 -1
- package/.output/public/assets/arrow-right-CNII8TYn.js +0 -1
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +0 -1
- package/.output/public/assets/badge-DWFcDWho.js +0 -1
- package/.output/public/assets/check-CXVR3s3X.js +0 -1
- package/.output/public/assets/chevron-right-BoUXo82O.js +0 -1
- package/.output/public/assets/dialog-CNUPxNxH.js +0 -1
- package/.output/public/assets/dist-CPlO6ko9.js +0 -1
- package/.output/public/assets/empty-B3Uwdd6k.js +0 -1
- package/.output/public/assets/field-D-2-mnNh.js +0 -1
- package/.output/public/assets/history-DqHlgSuV.js +0 -1
- package/.output/public/assets/index-CqP5HPV6.js +0 -10
- package/.output/public/assets/input-group-D3OUBk4n.js +0 -1
- package/.output/public/assets/insights-B-0odqpt.js +0 -42
- package/.output/public/assets/insights-BSVGfxSL.js +0 -1
- package/.output/public/assets/insights-NK5B6ReS.js +0 -2
- package/.output/public/assets/insights-api-BVCXJsoV.js +0 -1
- package/.output/public/assets/insights-search-DghCbEnk.js +0 -1
- package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +0 -1
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +0 -2
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +0 -1
- package/.output/public/assets/insights_.distribution-dvk6vYDM.js +0 -1
- package/.output/public/assets/installations-B674P5Z5.js +0 -2
- package/.output/public/assets/installations-BWxczZ2t.js +0 -1
- package/.output/public/assets/installations-Dv4kWQYz.js +0 -1
- package/.output/public/assets/native-builds-BOC71grI.js +0 -1
- package/.output/public/assets/native-builds-D6rldpSh.js +0 -2
- package/.output/public/assets/native-builds-DAy2678K.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DD58_Phd.js +0 -1
- package/.output/public/assets/native-builds_._buildId-DvQDKnUQ.js +0 -2
- package/.output/public/assets/plus-BReVKct-.js +0 -1
- package/.output/public/assets/preload-helper-B44EvKhG.js +0 -1
- package/.output/public/assets/refresh-cw-B9HHjLej.js +0 -1
- package/.output/public/assets/remote-config-B7ujqhLa.js +0 -6
- package/.output/public/assets/remote-config-WjpozBG5.js +0 -1
- package/.output/public/assets/remote-config-gXeH6PBW.js +0 -1
- package/.output/public/assets/routes-BDdBIxYS.js +0 -1
- package/.output/public/assets/routes-CCD33Azv.js +0 -2
- package/.output/public/assets/search-BCel4Oy6.js +0 -1
- package/.output/public/assets/select-CBIU0_M1.js +0 -1
- package/.output/public/assets/sidebar-Di9SN47G.js +0 -3
- package/.output/public/assets/smartphone-CMaSy_ir.js +0 -1
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/switch-BpdiHL_t.js +0 -1
- package/.output/public/assets/table-Bpy3SvSo.js +0 -1
- package/.output/public/assets/tabs-Xmt7tZeG.js +0 -1
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +0 -1
- package/.output/public/assets/valueToPercent-BLwGy_xK.js +0 -1
- package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +0 -37
- package/.output/server/_ssr/RolloutPercentageBadge-CoBhJtv9.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-CPg_Rn5E.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-BDcOlKnd.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-BjsdQO93.mjs +0 -813
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +0 -59
- package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +0 -133
- package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +0 -22
- package/.output/server/_ssr/tabs-BgTTFotk.mjs +0 -45
- package/.output/server/_tanstack-start-manifest_v-B5nsO5L4.mjs +0 -184
- package/src/lib/server/nativeBuildQr.ts +0 -73
- package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
|
@@ -0,0 +1,820 @@
|
|
|
1
|
+
import { i as __toESM } from "../_runtime.mjs";
|
|
2
|
+
import { C as MenuItem, Et as require_react, S as MenuPopup, Tt as require_jsx_runtime, b as MenuPositioner, pt as Separator, v as MenuTrigger, x as MenuPortal, y as MenuRoot } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
|
+
import { D as LoaderCircle, M as HardDrive, Z as Check, _ as RefreshCw, a as Trash2, i as TriangleAlert, u as Smartphone, y as Pencil, z as Ellipsis } from "../_libs/lucide-react.mjs";
|
|
4
|
+
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, j as useIsMobile, k as cn, n as Input, t as Button$1 } from "./sidebar-B46houn0.mjs";
|
|
5
|
+
import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-DEItjgKG.mjs";
|
|
6
|
+
import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-DrfbN1n0.mjs";
|
|
7
|
+
import { a as FieldLabel, i as FieldGroup, n as FieldDescription, r as FieldError, t as Field } from "./field-D6Y7zDZd.mjs";
|
|
8
|
+
import { a as AlertDialogDescription, i as AlertDialogContent, l as AlertDialogTitle, n as AlertDialogAction, o as AlertDialogFooter, r as AlertDialogCancel, s as AlertDialogHeader, t as AlertDialog$1 } from "./alert-dialog-tcfkkNUX.mjs";
|
|
9
|
+
import { a as DialogHeader, i as DialogFooter, n as DialogContent, o as DialogTitle, r as DialogDescription, t as Dialog$1 } from "./dialog-SAl1vP74.mjs";
|
|
10
|
+
import { i as TableHead, o as TableRow, r as TableCell } from "./table-DWrYwJ_a.mjs";
|
|
11
|
+
import { s as useQueryClient } from "../_libs/tanstack__react-query.mjs";
|
|
12
|
+
import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
13
|
+
import { _ as maskIosUdid, f as consolePathOf, g as iosDeviceProfileUrl, n as IOS_DEVICES_PATH, t as IOS_DEVICES_ADD_COMMAND } from "./native-builds-lEyKQemV.mjs";
|
|
14
|
+
import { r as extractTimestampFromUUIDv7 } from "./uuidv7-C0jNe2Om.mjs";
|
|
15
|
+
import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-BOKFFr_G.mjs";
|
|
16
|
+
import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
|
|
17
|
+
import { c as DataTableFullRow, d as DataTableSkeletonRows, f as RelativeTime, i as DataTable, n as DataCardSkeletons, o as DataTableEmpty, r as DataCardsEmpty, s as DataTableFrame, t as DataCard } from "./RelativeTime-D5kDQVn1.mjs";
|
|
18
|
+
import { n as CopyableText, r as NoValue } from "./TargetDisplay-BtE5vntq.mjs";
|
|
19
|
+
import { t as NativeBuildsNav } from "./NativeBuildsNav-BoTu4aLF.mjs";
|
|
20
|
+
import { _ as useRequestThisIphoneMutation, c as useApproveIosDeviceMutation, d as useIosDeviceQuery, f as useIosDevicesQuery, g as useRenameIosDeviceMutation, h as useRemoveIosDeviceMutation, i as iosDeviceKeys, l as useIosDevice, o as keptIsThisIphone, p as useKeptIosDeviceQuery, s as useAdoptKeptIosDevice, t as AppleRefusal, u as useIosDeviceProfileLinkQuery } from "./IosInstall-BAFhW7Q9.mjs";
|
|
21
|
+
import { t as QrCode } from "./QrCode-DWshAW81.mjs";
|
|
22
|
+
import { t as Route } from "./native-builds_.devices-C0IlQkLv.mjs";
|
|
23
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds_.devices-D1Ke-Fc-.js
|
|
24
|
+
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
25
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
26
|
+
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
|
|
27
|
+
function DropdownMenu({ ...props }) {
|
|
28
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuRoot, {
|
|
29
|
+
"data-slot": "dropdown-menu",
|
|
30
|
+
...props
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function DropdownMenuTrigger({ ...props }) {
|
|
34
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuTrigger, {
|
|
35
|
+
"data-slot": "dropdown-menu-trigger",
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
function DropdownMenuContent({ align = "start", alignOffset = 0, side = "bottom", sideOffset = 4, className, ...props }) {
|
|
40
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPortal, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPositioner, {
|
|
41
|
+
className: "isolate z-50 outline-none",
|
|
42
|
+
align,
|
|
43
|
+
alignOffset,
|
|
44
|
+
side,
|
|
45
|
+
sideOffset,
|
|
46
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuPopup, {
|
|
47
|
+
"data-slot": "dropdown-menu-content",
|
|
48
|
+
className: cn("dark z-50 max-h-(--available-height) w-(--anchor-width) min-w-32 origin-(--transform-origin) overflow-x-hidden overflow-y-auto rounded-lg bg-popover p-1 text-popover-foreground shadow-md ring-1 ring-foreground/10 duration-100 outline-none data-[side=bottom]:slide-in-from-top-2 data-[side=inline-end]:slide-in-from-left-2 data-[side=inline-start]:slide-in-from-right-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:overflow-hidden data-closed:fade-out-0 data-closed:zoom-out-95", className),
|
|
49
|
+
...props
|
|
50
|
+
})
|
|
51
|
+
}) });
|
|
52
|
+
}
|
|
53
|
+
function DropdownMenuItem({ className, inset, variant = "default", ...props }) {
|
|
54
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(MenuItem, {
|
|
55
|
+
"data-slot": "dropdown-menu-item",
|
|
56
|
+
"data-inset": inset,
|
|
57
|
+
"data-variant": variant,
|
|
58
|
+
className: cn("group/dropdown-menu-item relative flex min-h-7 cursor-default items-center gap-2 rounded-md px-2 py-1 text-xs/relaxed outline-hidden select-none focus:bg-accent focus:text-accent-foreground not-data-[variant=destructive]:focus:**:text-accent-foreground data-inset:pl-7.5 data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive dark:data-[variant=destructive]:focus:bg-destructive/20 data-disabled:pointer-events-none data-disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-3.5 data-[variant=destructive]:*:[svg]:text-destructive", className),
|
|
59
|
+
...props
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
function DropdownMenuSeparator({ className, ...props }) {
|
|
63
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Separator, {
|
|
64
|
+
"data-slot": "dropdown-menu-separator",
|
|
65
|
+
className: cn("-mx-1 my-1 h-px bg-border/50", className),
|
|
66
|
+
...props
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
var STATUS_LABELS = {
|
|
70
|
+
pending: "Requested",
|
|
71
|
+
approved: "Approved",
|
|
72
|
+
registered: "Registered"
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* Only a request waits on someone, so only it takes a status color; the
|
|
76
|
+
* other states are the normal course and stay neutral.
|
|
77
|
+
*/
|
|
78
|
+
var STATUS_BADGES = {
|
|
79
|
+
pending: "warning",
|
|
80
|
+
approved: "secondary",
|
|
81
|
+
registered: "muted"
|
|
82
|
+
};
|
|
83
|
+
var ALL = "all";
|
|
84
|
+
var COLUMNS = 6;
|
|
85
|
+
/** The Console's path from this page, so links work under a base path. */
|
|
86
|
+
var consolePath = () => window.location.pathname.endsWith("/native-builds/devices") ? window.location.pathname.slice(0, -IOS_DEVICES_PATH.length) : consolePathOf(window.location, "");
|
|
87
|
+
/** Who may act on a row, decided again on the server. */
|
|
88
|
+
var actionsFor = (device, viewer) => ({
|
|
89
|
+
approve: viewer.canApprove && device.status === "pending",
|
|
90
|
+
rename: viewer.canApprove,
|
|
91
|
+
remove: viewer.canApprove,
|
|
92
|
+
withdraw: !viewer.canApprove && device.status === "pending" && device.requested_by === viewer.email
|
|
93
|
+
});
|
|
94
|
+
/**
|
|
95
|
+
* Apple's refusal of an approved device is the row an approver acts on, so it
|
|
96
|
+
* takes the warning in place of Approved; the other states stay neutral.
|
|
97
|
+
*/
|
|
98
|
+
var appleRefused = (device) => device.status === "approved" && device.apple_error !== null;
|
|
99
|
+
/** Who asked for a device: a person, or a terminal for one the CLI added. */
|
|
100
|
+
var requesterOf = (device) => device.requested_by ?? "Added from a terminal";
|
|
101
|
+
/**
|
|
102
|
+
* Apple's reason. In a table cell it wraps at most two lines in a narrow
|
|
103
|
+
* column, the full text on hover and to a screen reader, so a long reason
|
|
104
|
+
* never widens the table past its frame; a card shows all of it.
|
|
105
|
+
*/
|
|
106
|
+
function AppleError({ device, inTable = false }) {
|
|
107
|
+
if (device.apple_error === null) return null;
|
|
108
|
+
return inTable ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
109
|
+
className: "line-clamp-2 max-w-48 text-xs whitespace-normal text-muted-foreground",
|
|
110
|
+
title: device.apple_error,
|
|
111
|
+
children: device.apple_error
|
|
112
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
113
|
+
className: "max-w-64 text-xs whitespace-normal text-muted-foreground",
|
|
114
|
+
children: device.apple_error
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
function DeviceStatus({ device, withError = true }) {
|
|
118
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
119
|
+
className: "flex min-w-0 shrink-0 flex-col items-start gap-1",
|
|
120
|
+
children: [appleRefused(device) ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
121
|
+
variant: "warning",
|
|
122
|
+
children: "Apple refused"
|
|
123
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
124
|
+
variant: STATUS_BADGES[device.status],
|
|
125
|
+
children: STATUS_LABELS[device.status]
|
|
126
|
+
}), withError ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, {
|
|
127
|
+
device,
|
|
128
|
+
inTable: true
|
|
129
|
+
}) : null]
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function DeviceBuild({ device }) {
|
|
133
|
+
if (device.build_id === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NoValue, {});
|
|
134
|
+
let label = "A build";
|
|
135
|
+
try {
|
|
136
|
+
label = `Build of ${(0, import_dayjs_min.default)(extractTimestampFromUUIDv7(device.build_id)).format("MMM D")}`;
|
|
137
|
+
} catch {}
|
|
138
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
139
|
+
className: "text-xs font-medium underline-offset-4 hover:underline",
|
|
140
|
+
params: { buildId: device.build_id },
|
|
141
|
+
to: "/native-builds/$buildId",
|
|
142
|
+
children: label
|
|
143
|
+
});
|
|
144
|
+
}
|
|
145
|
+
function DeviceActions({ device, viewer, onOpen }) {
|
|
146
|
+
const can = actionsFor(device, viewer);
|
|
147
|
+
if (!can.approve && !can.rename && !can.remove && !can.withdraw) return null;
|
|
148
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
149
|
+
className: "flex items-center justify-end gap-1",
|
|
150
|
+
children: [
|
|
151
|
+
can.approve ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
152
|
+
className: "h-11 sm:h-8",
|
|
153
|
+
onClick: () => onOpen({
|
|
154
|
+
kind: "approve",
|
|
155
|
+
device
|
|
156
|
+
}),
|
|
157
|
+
size: "sm",
|
|
158
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), "Approve"]
|
|
159
|
+
}) : null,
|
|
160
|
+
can.withdraw ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
161
|
+
className: "h-11 sm:h-8",
|
|
162
|
+
onClick: () => onOpen({
|
|
163
|
+
kind: "remove",
|
|
164
|
+
device
|
|
165
|
+
}),
|
|
166
|
+
size: "sm",
|
|
167
|
+
variant: "outline",
|
|
168
|
+
children: "Withdraw"
|
|
169
|
+
}) : null,
|
|
170
|
+
can.rename || can.remove ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenu, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
171
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
172
|
+
"aria-label": `More actions for ${device.name}`,
|
|
173
|
+
className: "size-11 sm:size-8",
|
|
174
|
+
size: "icon-sm",
|
|
175
|
+
variant: "ghost"
|
|
176
|
+
}),
|
|
177
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Ellipsis, { "aria-hidden": "true" })
|
|
178
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
|
|
179
|
+
align: "end",
|
|
180
|
+
children: [
|
|
181
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
182
|
+
onClick: () => onOpen({
|
|
183
|
+
kind: "rename",
|
|
184
|
+
device
|
|
185
|
+
}),
|
|
186
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Pencil, { "aria-hidden": "true" }), "Rename"]
|
|
187
|
+
}),
|
|
188
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}),
|
|
189
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
190
|
+
onClick: () => onOpen({
|
|
191
|
+
kind: "remove",
|
|
192
|
+
device
|
|
193
|
+
}),
|
|
194
|
+
variant: "destructive",
|
|
195
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Trash2, { "aria-hidden": "true" }), device.status === "pending" ? "Decline" : "Remove"]
|
|
196
|
+
})
|
|
197
|
+
]
|
|
198
|
+
})] }) : null
|
|
199
|
+
]
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* "This iPhone" on the row of the iPhone this page is open on: a quiet tag,
|
|
204
|
+
* as "Sandbox" is on a build, so its actions are found where every row's are.
|
|
205
|
+
*/
|
|
206
|
+
function ThisIphoneTag() {
|
|
207
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
208
|
+
className: "shrink-0 px-1.5",
|
|
209
|
+
variant: "muted",
|
|
210
|
+
children: "This iPhone"
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function DeviceRow({ device, viewer, onOpen, isThisIphone }) {
|
|
214
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
|
|
215
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
216
|
+
className: "font-medium",
|
|
217
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
218
|
+
className: "flex items-center gap-1.5",
|
|
219
|
+
children: [device.name, isThisIphone ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThisIphoneTag, {}) : null]
|
|
220
|
+
})
|
|
221
|
+
}),
|
|
222
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
223
|
+
className: "font-mono text-xs",
|
|
224
|
+
title: device.udid,
|
|
225
|
+
translate: "no",
|
|
226
|
+
children: maskIosUdid(device.udid)
|
|
227
|
+
}) }),
|
|
228
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
229
|
+
className: "text-xs",
|
|
230
|
+
children: device.requested_by ?? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
231
|
+
className: "text-muted-foreground",
|
|
232
|
+
children: requesterOf(device)
|
|
233
|
+
})
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, { device }) }),
|
|
236
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
237
|
+
className: "text-xs",
|
|
238
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms })
|
|
239
|
+
}),
|
|
240
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device }) }),
|
|
241
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
242
|
+
className: "text-right",
|
|
243
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
|
|
244
|
+
device,
|
|
245
|
+
onOpen,
|
|
246
|
+
viewer
|
|
247
|
+
})
|
|
248
|
+
})
|
|
249
|
+
] });
|
|
250
|
+
}
|
|
251
|
+
function DeviceCard({ device, viewer, onOpen, isThisIphone }) {
|
|
252
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DataCard, {
|
|
253
|
+
className: "cursor-default gap-3",
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
256
|
+
className: "flex min-w-0 items-start justify-between gap-3",
|
|
257
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
258
|
+
className: "flex min-w-0 flex-col gap-0.5",
|
|
259
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
260
|
+
className: "flex min-w-0 items-center gap-1.5 text-sm font-medium",
|
|
261
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
262
|
+
className: "truncate",
|
|
263
|
+
children: device.name
|
|
264
|
+
}), isThisIphone ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThisIphoneTag, {}) : null]
|
|
265
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
266
|
+
className: "font-mono text-xs text-muted-foreground",
|
|
267
|
+
translate: "no",
|
|
268
|
+
children: maskIosUdid(device.udid)
|
|
269
|
+
})]
|
|
270
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, {
|
|
271
|
+
device,
|
|
272
|
+
withError: false
|
|
273
|
+
})]
|
|
274
|
+
}),
|
|
275
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleError, { device }),
|
|
276
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
277
|
+
className: "flex flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
|
|
278
|
+
children: [
|
|
279
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: requesterOf(device) }),
|
|
280
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
281
|
+
"aria-hidden": "true",
|
|
282
|
+
children: "·"
|
|
283
|
+
}),
|
|
284
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RelativeTime, { ms: device.created_at_ms }),
|
|
285
|
+
device.build_id === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
286
|
+
"aria-hidden": "true",
|
|
287
|
+
children: "·"
|
|
288
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceBuild, { device })] })
|
|
289
|
+
]
|
|
290
|
+
}),
|
|
291
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceActions, {
|
|
292
|
+
device,
|
|
293
|
+
onOpen,
|
|
294
|
+
viewer
|
|
295
|
+
})
|
|
296
|
+
]
|
|
297
|
+
});
|
|
298
|
+
}
|
|
299
|
+
/** Name a device: approving a request, or renaming any device. */
|
|
300
|
+
function NameDialog({ target, onClose }) {
|
|
301
|
+
const approve = useApproveIosDeviceMutation();
|
|
302
|
+
const rename = useRenameIosDeviceMutation();
|
|
303
|
+
const mutation = target.kind === "approve" ? approve : rename;
|
|
304
|
+
const [name, setName] = (0, import_react.useState)(target.device.name);
|
|
305
|
+
const trimmed = name.trim();
|
|
306
|
+
const submit = (event) => {
|
|
307
|
+
event.preventDefault();
|
|
308
|
+
if (trimmed === "") return;
|
|
309
|
+
mutation.mutate({
|
|
310
|
+
id: target.device.id,
|
|
311
|
+
name: trimmed
|
|
312
|
+
}, { onSuccess: onClose });
|
|
313
|
+
};
|
|
314
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Dialog$1, {
|
|
315
|
+
onOpenChange: (open) => open ? null : onClose(),
|
|
316
|
+
open: true,
|
|
317
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogContent, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogTitle, { children: target.kind === "approve" ? `Approve ${target.device.name}?` : `Rename ${target.device.name}` }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogDescription, { children: target.kind === "approve" ? "The next ad hoc build registers this iPhone with your Apple account. Each new iPhone uses one of the account's 100 a year, and removing it never gives the slot back." : "The registry shows this name. The next ad hoc build doesn't rename it at Apple." })] }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
|
|
318
|
+
onSubmit: submit,
|
|
319
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(FieldGroup, { children: [target.kind === "approve" ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("dl", {
|
|
320
|
+
className: "grid grid-cols-[auto_minmax(0,1fr)] gap-x-4 gap-y-1 text-sm",
|
|
321
|
+
children: [
|
|
322
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
323
|
+
className: "text-muted-foreground",
|
|
324
|
+
children: "Requested by"
|
|
325
|
+
}),
|
|
326
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
327
|
+
className: "truncate",
|
|
328
|
+
children: target.device.requested_by ?? "Terminal (CLI)"
|
|
329
|
+
}),
|
|
330
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dt", {
|
|
331
|
+
className: "text-muted-foreground",
|
|
332
|
+
children: "UDID"
|
|
333
|
+
}),
|
|
334
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("dd", {
|
|
335
|
+
className: "font-mono text-xs break-all select-all",
|
|
336
|
+
translate: "no",
|
|
337
|
+
children: target.device.udid
|
|
338
|
+
})
|
|
339
|
+
]
|
|
340
|
+
}) : null, /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
|
|
341
|
+
"data-invalid": mutation.isError || void 0,
|
|
342
|
+
children: [
|
|
343
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
344
|
+
htmlFor: "ios-device-dialog-name",
|
|
345
|
+
children: "Name"
|
|
346
|
+
}),
|
|
347
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
348
|
+
autoComplete: "off",
|
|
349
|
+
id: "ios-device-dialog-name",
|
|
350
|
+
maxLength: 100,
|
|
351
|
+
onChange: (event) => setName(event.target.value),
|
|
352
|
+
value: name
|
|
353
|
+
}),
|
|
354
|
+
target.kind === "approve" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldDescription, { children: "The iPhone's ID comes from the person who asked. Approve devices you recognize." }) : null,
|
|
355
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldError, { children: mutation.isError ? `Couldn't ${target.kind === "approve" ? "approve" : "rename"} ${target.device.name}. Check your connection and try again.` : null })
|
|
356
|
+
]
|
|
357
|
+
})] }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogFooter, {
|
|
358
|
+
className: "mt-4",
|
|
359
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
360
|
+
className: "h-11 sm:h-8",
|
|
361
|
+
disabled: trimmed === "" || mutation.isPending,
|
|
362
|
+
type: "submit",
|
|
363
|
+
children: [mutation.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
364
|
+
className: "animate-spin motion-reduce:animate-none",
|
|
365
|
+
"data-icon": "inline-start"
|
|
366
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, { "data-icon": "inline-start" }), target.kind === "approve" ? "Approve" : "Rename"]
|
|
367
|
+
})
|
|
368
|
+
})]
|
|
369
|
+
})] })
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
function RemoveDialog({ device, viewer, onClose }) {
|
|
373
|
+
const remove = useRemoveIosDeviceMutation();
|
|
374
|
+
const withdraw = !viewer.canApprove;
|
|
375
|
+
const decline = device.status === "pending";
|
|
376
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialog$1, {
|
|
377
|
+
onOpenChange: (open) => open ? null : onClose(),
|
|
378
|
+
open: true,
|
|
379
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogContent, { children: [
|
|
380
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogTitle, { children: withdraw ? `Withdraw ${device.name}?` : decline ? `Decline ${device.name}?` : `Remove ${device.name}?` }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogDescription, { children: decline ? "It leaves the list. Its owner can request it again." : "It leaves the list. New ad hoc builds keep it until it's disabled at Apple." })] }),
|
|
381
|
+
remove.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
382
|
+
className: "text-xs text-destructive",
|
|
383
|
+
role: "alert",
|
|
384
|
+
children: [
|
|
385
|
+
"Couldn't ",
|
|
386
|
+
withdraw ? "withdraw" : decline ? "decline" : "remove",
|
|
387
|
+
" ",
|
|
388
|
+
device.name,
|
|
389
|
+
". Check your connection and try again."
|
|
390
|
+
]
|
|
391
|
+
}) : null,
|
|
392
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogFooter, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDialogCancel, {
|
|
393
|
+
disabled: remove.isPending,
|
|
394
|
+
children: "Cancel"
|
|
395
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(AlertDialogAction, {
|
|
396
|
+
disabled: remove.isPending,
|
|
397
|
+
onClick: (event) => {
|
|
398
|
+
event.preventDefault();
|
|
399
|
+
remove.mutate({ udid: device.udid }, { onSuccess: onClose });
|
|
400
|
+
},
|
|
401
|
+
variant: "destructive",
|
|
402
|
+
children: [remove.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
403
|
+
className: "animate-spin motion-reduce:animate-none",
|
|
404
|
+
"data-icon": "inline-start"
|
|
405
|
+
}) : null, withdraw ? "Withdraw" : decline ? "Decline" : "Remove"]
|
|
406
|
+
})] })
|
|
407
|
+
] })
|
|
408
|
+
});
|
|
409
|
+
}
|
|
410
|
+
/**
|
|
411
|
+
* Where this iPhone stands, once its profile has answered: its row's name,
|
|
412
|
+
* status, and what happens next, in place of the form that registered it.
|
|
413
|
+
* It has no actions: they are on its row in the list, tagged "This iPhone",
|
|
414
|
+
* as every row's are. Apple's refusal reads as on a build's page.
|
|
415
|
+
*/
|
|
416
|
+
function ThisIphone({ device, viewer }) {
|
|
417
|
+
const canApprove = viewer?.canApprove === true;
|
|
418
|
+
if (device.apple_error !== null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppleRefusal, {
|
|
419
|
+
canApprove,
|
|
420
|
+
device,
|
|
421
|
+
onDevicesPage: true
|
|
422
|
+
});
|
|
423
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
424
|
+
className: "flex min-w-0 flex-col gap-3",
|
|
425
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
426
|
+
className: "flex min-w-0 items-start justify-between gap-3",
|
|
427
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
428
|
+
className: "flex min-w-0 flex-col gap-0.5",
|
|
429
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
430
|
+
className: "truncate text-sm font-medium",
|
|
431
|
+
children: device.name
|
|
432
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
433
|
+
className: "font-mono text-xs text-muted-foreground",
|
|
434
|
+
translate: "no",
|
|
435
|
+
children: maskIosUdid(device.udid)
|
|
436
|
+
})]
|
|
437
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceStatus, {
|
|
438
|
+
device,
|
|
439
|
+
withError: false
|
|
440
|
+
})]
|
|
441
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
442
|
+
className: "text-xs text-muted-foreground",
|
|
443
|
+
role: "status",
|
|
444
|
+
children: device.status === "pending" ? canApprove ? "Approve it below, and it joins the next ad hoc build." : "A maintainer approves it next." : device.status === "approved" ? "It joins the next ad hoc build." : "New ad hoc builds install on it."
|
|
445
|
+
})]
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
/** Why iPhones can't register through this Console. */
|
|
449
|
+
function RegistrationNotice({ status, secretName }) {
|
|
450
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
451
|
+
className: "text-xs text-muted-foreground",
|
|
452
|
+
role: "status",
|
|
453
|
+
children: status === "local-console" ? "iPhones register through your hosted Console: an iPhone can't reach this computer's." : `Set ${secretName} on this Console to register iPhones.`
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* Where an iPhone joins the list: on a computer, a QR code of this page; on
|
|
458
|
+
* the iPhone, its name and the profile that reads its UDID, signed for the
|
|
459
|
+
* person who is signed in.
|
|
460
|
+
*/
|
|
461
|
+
function RegisterCard({ view, phone }) {
|
|
462
|
+
const [name, setName] = (0, import_react.useState)(null);
|
|
463
|
+
const typed = name ?? view?.defaultName ?? "";
|
|
464
|
+
const [signed, setSigned] = (0, import_react.useState)(typed);
|
|
465
|
+
(0, import_react.useEffect)(() => {
|
|
466
|
+
const timer = setTimeout(() => setSigned(typed.trim()), 400);
|
|
467
|
+
return () => clearTimeout(timer);
|
|
468
|
+
}, [typed]);
|
|
469
|
+
const onPhone = phone?.ios === true;
|
|
470
|
+
const link = useIosDeviceProfileLinkQuery({
|
|
471
|
+
mode: "register",
|
|
472
|
+
name: signed || "iPhone"
|
|
473
|
+
}, onPhone && view?.registration === "ready");
|
|
474
|
+
const https = phone === null || window.location.protocol === "https:";
|
|
475
|
+
const udid = onPhone ? phone.udid : null;
|
|
476
|
+
const mine = useIosDeviceQuery(udid);
|
|
477
|
+
const answers = phone?.answers ?? 0;
|
|
478
|
+
const { refetch } = mine;
|
|
479
|
+
const seen = (0, import_react.useRef)({
|
|
480
|
+
udid,
|
|
481
|
+
answers
|
|
482
|
+
});
|
|
483
|
+
(0, import_react.useEffect)(() => {
|
|
484
|
+
const before = seen.current;
|
|
485
|
+
seen.current = {
|
|
486
|
+
udid,
|
|
487
|
+
answers
|
|
488
|
+
};
|
|
489
|
+
if (udid !== null && udid === before.udid && answers > before.answers) refetch();
|
|
490
|
+
}, [
|
|
491
|
+
udid,
|
|
492
|
+
answers,
|
|
493
|
+
refetch
|
|
494
|
+
]);
|
|
495
|
+
const path = phone === null ? "" : consolePath();
|
|
496
|
+
const kept = useKeptIosDeviceQuery(path, phone?.receipt ?? null, onPhone && view?.registration === "ready" && (udid === null || phone.receipt !== null || mine.data === null));
|
|
497
|
+
useAdoptKeptIosDevice(phone, kept.data?.udid);
|
|
498
|
+
const again = useRequestThisIphoneMutation(path);
|
|
499
|
+
const proved = onPhone && keptIsThisIphone(kept.data?.udid, phone.udid);
|
|
500
|
+
const body = (() => {
|
|
501
|
+
if (phone === null) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
|
|
502
|
+
"aria-label": "Loading",
|
|
503
|
+
className: "h-36 w-full"
|
|
504
|
+
});
|
|
505
|
+
if (onPhone && phone.udid !== null && mine.isPending) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
|
|
506
|
+
"aria-label": "Loading",
|
|
507
|
+
className: "h-36 w-full"
|
|
508
|
+
});
|
|
509
|
+
if (onPhone && mine.data) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThisIphone, {
|
|
510
|
+
device: mine.data,
|
|
511
|
+
viewer: view?.viewer
|
|
512
|
+
});
|
|
513
|
+
if (view !== void 0 && (view.registration === "local-console" || view.registration === "no-secret")) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, {
|
|
514
|
+
secretName: view.secretName,
|
|
515
|
+
status: view.registration
|
|
516
|
+
});
|
|
517
|
+
if (!onPhone) return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
518
|
+
className: "flex flex-col items-start gap-4 sm:flex-row sm:items-center",
|
|
519
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(QrCode, {
|
|
520
|
+
className: "size-36 shrink-0",
|
|
521
|
+
label: "Open this page on an iPhone",
|
|
522
|
+
value: `${window.location.origin}${consolePath()}${IOS_DEVICES_PATH}`
|
|
523
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
524
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
525
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
526
|
+
className: "text-sm font-medium",
|
|
527
|
+
children: "Open this page on the iPhone, in Safari."
|
|
528
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
529
|
+
className: "text-xs text-muted-foreground",
|
|
530
|
+
children: "It installs a profile that reads the iPhone's ID, then lists the iPhone here as requested. Nothing stays installed."
|
|
531
|
+
})]
|
|
532
|
+
})]
|
|
533
|
+
});
|
|
534
|
+
if (!https) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
535
|
+
className: "text-xs text-muted-foreground",
|
|
536
|
+
role: "status",
|
|
537
|
+
children: "iPhones need this Console on HTTPS."
|
|
538
|
+
});
|
|
539
|
+
if (mine.data === null && kept.isFetching && !proved) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
|
|
540
|
+
"aria-label": "Loading",
|
|
541
|
+
className: "h-36 w-full"
|
|
542
|
+
});
|
|
543
|
+
if (proved) {
|
|
544
|
+
const trimmed = typed.trim();
|
|
545
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("form", {
|
|
546
|
+
className: "flex min-w-0 flex-col gap-3",
|
|
547
|
+
onSubmit: (event) => {
|
|
548
|
+
event.preventDefault();
|
|
549
|
+
if (trimmed === "") return;
|
|
550
|
+
again.mutate({
|
|
551
|
+
name: trimmed,
|
|
552
|
+
receipt: phone.receipt
|
|
553
|
+
});
|
|
554
|
+
},
|
|
555
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, {
|
|
556
|
+
"data-invalid": again.isError || void 0,
|
|
557
|
+
children: [
|
|
558
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
559
|
+
htmlFor: "ios-device-register-name",
|
|
560
|
+
children: "This iPhone's name"
|
|
561
|
+
}),
|
|
562
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
563
|
+
autoComplete: "off",
|
|
564
|
+
className: "h-11",
|
|
565
|
+
id: "ios-device-register-name",
|
|
566
|
+
maxLength: 100,
|
|
567
|
+
onChange: (event) => setName(event.target.value),
|
|
568
|
+
value: typed
|
|
569
|
+
}),
|
|
570
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldDescription, { children: "This Safari checked it before, so no profile is needed." }),
|
|
571
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldError, { children: again.isError ? "The request didn't go through. Try again." : null })
|
|
572
|
+
]
|
|
573
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
574
|
+
className: "h-11 w-full",
|
|
575
|
+
disabled: trimmed === "" || again.isPending,
|
|
576
|
+
type: "submit",
|
|
577
|
+
children: [again.isPending ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
578
|
+
className: "animate-spin motion-reduce:animate-none",
|
|
579
|
+
"data-icon": "inline-start"
|
|
580
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), "Request this iPhone"]
|
|
581
|
+
})]
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
if (link.data?.status === "local-console") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, { status: "local-console" });
|
|
585
|
+
if (link.data?.status === "no-secret") return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegistrationNotice, {
|
|
586
|
+
secretName: link.data.secretName,
|
|
587
|
+
status: "no-secret"
|
|
588
|
+
});
|
|
589
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
590
|
+
className: "flex min-w-0 flex-col gap-3",
|
|
591
|
+
children: [
|
|
592
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Field, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FieldLabel, {
|
|
593
|
+
htmlFor: "ios-device-register-name",
|
|
594
|
+
children: "This iPhone's name"
|
|
595
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Input, {
|
|
596
|
+
autoComplete: "off",
|
|
597
|
+
className: "h-11",
|
|
598
|
+
id: "ios-device-register-name",
|
|
599
|
+
maxLength: 100,
|
|
600
|
+
onChange: (event) => setName(event.target.value),
|
|
601
|
+
value: typed
|
|
602
|
+
})] }),
|
|
603
|
+
link.data?.status === "issued" && signed === typed.trim() ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
604
|
+
className: buttonVariants({ className: "h-auto min-h-11 w-full whitespace-normal" }),
|
|
605
|
+
href: iosDeviceProfileUrl(consolePath(), link.data.token),
|
|
606
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), "Install profile"]
|
|
607
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, {
|
|
608
|
+
"aria-label": "Preparing the profile",
|
|
609
|
+
className: "h-11 w-full"
|
|
610
|
+
}),
|
|
611
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
612
|
+
className: "text-xs text-muted-foreground",
|
|
613
|
+
children: "Safari only. Allow the download, then install it in Settings, where iOS calls it not signed. Safari comes back here, and nothing stays installed."
|
|
614
|
+
})
|
|
615
|
+
]
|
|
616
|
+
});
|
|
617
|
+
})();
|
|
618
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
619
|
+
className: "shadow-sm",
|
|
620
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
|
|
621
|
+
className: "border-b px-4 py-3",
|
|
622
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardTitle, {
|
|
623
|
+
className: "text-sm",
|
|
624
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h2", { children: "Register an iPhone" })
|
|
625
|
+
})
|
|
626
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
|
|
627
|
+
className: "p-4 sm:p-6",
|
|
628
|
+
children: body
|
|
629
|
+
})]
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* The iOS device registry inside Native builds: the iPhones and iPads a team
|
|
634
|
+
* asked to install ad hoc builds on. Testers register from an iPhone,
|
|
635
|
+
* approvers approve, rename, and remove, and the next ad hoc build registers
|
|
636
|
+
* what was approved with Apple. Android builds need none of this.
|
|
637
|
+
*/
|
|
638
|
+
function IosDevicesPage({ search, onSearchChange }) {
|
|
639
|
+
const isMobile = useIsMobile();
|
|
640
|
+
const query = useIosDevicesQuery(search.status);
|
|
641
|
+
const view = query.data;
|
|
642
|
+
const rows = view?.devices;
|
|
643
|
+
const queryClient = useQueryClient();
|
|
644
|
+
const refresh = () => void queryClient.invalidateQueries({ queryKey: iosDeviceKeys.all });
|
|
645
|
+
const [dialog, setDialog] = (0, import_react.useState)(null);
|
|
646
|
+
const phone = useIosDevice();
|
|
647
|
+
const thisUdid = phone?.ios === true ? phone.udid?.toLowerCase() ?? null : null;
|
|
648
|
+
const close = () => setDialog(null);
|
|
649
|
+
const empty = /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableEmpty, {
|
|
650
|
+
icon: Smartphone,
|
|
651
|
+
title: search.status === void 0 ? "No iPhones yet" : `No ${STATUS_LABELS[search.status].toLowerCase()} iPhones`,
|
|
652
|
+
children: search.status === void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Open this page on an iPhone to register it." }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
653
|
+
className: "h-11 sm:h-8",
|
|
654
|
+
onClick: () => onSearchChange({}),
|
|
655
|
+
size: "sm",
|
|
656
|
+
variant: "outline",
|
|
657
|
+
children: "Show all"
|
|
658
|
+
})
|
|
659
|
+
});
|
|
660
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
661
|
+
className: "flex h-svh min-h-0 min-w-0 flex-col",
|
|
662
|
+
children: [
|
|
663
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
664
|
+
className: "sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm",
|
|
665
|
+
children: [
|
|
666
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
|
|
667
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
668
|
+
className: "flex items-center gap-1.5",
|
|
669
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {
|
|
670
|
+
"aria-hidden": "true",
|
|
671
|
+
className: "size-3.5 text-muted-foreground"
|
|
672
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
673
|
+
className: "text-sm font-medium",
|
|
674
|
+
children: "Native builds"
|
|
675
|
+
})]
|
|
676
|
+
}),
|
|
677
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
678
|
+
className: "basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0",
|
|
679
|
+
children: "The iPhones and iPads ad hoc builds install on. Android needs none."
|
|
680
|
+
})
|
|
681
|
+
]
|
|
682
|
+
}),
|
|
683
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
684
|
+
className: "flex min-h-0 min-w-0 flex-1 flex-col gap-4 overflow-y-auto bg-muted/5 p-3 sm:p-6",
|
|
685
|
+
children: [
|
|
686
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsNav, { current: "devices" }),
|
|
687
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RegisterCard, {
|
|
688
|
+
phone,
|
|
689
|
+
view
|
|
690
|
+
}),
|
|
691
|
+
view !== void 0 && !view.viewer.approversConfigured ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
692
|
+
className: "flex min-w-0 flex-col gap-1.5 text-xs text-muted-foreground",
|
|
693
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "Nobody approves in this Console. Approve from a terminal:" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
694
|
+
label: "the approve command",
|
|
695
|
+
value: IOS_DEVICES_ADD_COMMAND
|
|
696
|
+
})]
|
|
697
|
+
}) : null,
|
|
698
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
699
|
+
className: "flex items-center gap-2",
|
|
700
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Select$1, {
|
|
701
|
+
items: [{
|
|
702
|
+
label: "All statuses",
|
|
703
|
+
value: ALL
|
|
704
|
+
}, ...Object.keys(STATUS_LABELS).map((status) => ({
|
|
705
|
+
label: STATUS_LABELS[status],
|
|
706
|
+
value: status
|
|
707
|
+
}))],
|
|
708
|
+
onValueChange: (value) => onSearchChange(value === null || value === ALL ? {} : { status: value }),
|
|
709
|
+
value: search.status ?? ALL,
|
|
710
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
711
|
+
"aria-label": "Status",
|
|
712
|
+
className: "min-w-0 flex-1 text-xs data-[size=default]:h-11 sm:w-44 sm:flex-none sm:data-[size=default]:h-8",
|
|
713
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
714
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
715
|
+
value: ALL,
|
|
716
|
+
children: "All statuses"
|
|
717
|
+
}), Object.keys(STATUS_LABELS).map((status) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
718
|
+
value: status,
|
|
719
|
+
children: STATUS_LABELS[status]
|
|
720
|
+
}, status))] }) })]
|
|
721
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
722
|
+
"aria-label": "Refresh iOS devices",
|
|
723
|
+
className: "ml-auto size-11 sm:size-7",
|
|
724
|
+
disabled: query.isFetching,
|
|
725
|
+
onClick: refresh,
|
|
726
|
+
size: "icon-sm",
|
|
727
|
+
variant: "ghost",
|
|
728
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "aria-hidden": "true" })
|
|
729
|
+
})]
|
|
730
|
+
}),
|
|
731
|
+
query.isError ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
732
|
+
variant: "destructive",
|
|
733
|
+
children: [
|
|
734
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
735
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "iOS devices couldn't be loaded" }),
|
|
736
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Check your connection and try again." }),
|
|
737
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
738
|
+
onClick: refresh,
|
|
739
|
+
size: "xs",
|
|
740
|
+
variant: "outline",
|
|
741
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
|
|
742
|
+
}) })
|
|
743
|
+
]
|
|
744
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFrame, {
|
|
745
|
+
className: "flex-none",
|
|
746
|
+
children: isMobile ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
747
|
+
"aria-busy": query.isPlaceholderData,
|
|
748
|
+
"aria-label": "iOS devices",
|
|
749
|
+
className: "aria-busy:opacity-60",
|
|
750
|
+
role: "list",
|
|
751
|
+
children: query.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardSkeletons, { label: "Loading iOS devices" }) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataCardsEmpty, { children: empty }) : rows?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
752
|
+
className: "border-b last:border-b-0",
|
|
753
|
+
role: "listitem",
|
|
754
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceCard, {
|
|
755
|
+
device,
|
|
756
|
+
isThisIphone: device.udid === thisUdid,
|
|
757
|
+
onOpen: setDialog,
|
|
758
|
+
viewer: view.viewer
|
|
759
|
+
})
|
|
760
|
+
}, device.id))
|
|
761
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTable, {
|
|
762
|
+
"aria-busy": query.isPlaceholderData,
|
|
763
|
+
"aria-label": "iOS devices",
|
|
764
|
+
className: "aria-busy:opacity-60",
|
|
765
|
+
header: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
766
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Name" }),
|
|
767
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "UDID" }),
|
|
768
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Requested by" }),
|
|
769
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Status" }),
|
|
770
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Added" }),
|
|
771
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build" }),
|
|
772
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
773
|
+
className: "text-right",
|
|
774
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
775
|
+
className: "sr-only",
|
|
776
|
+
children: "Actions"
|
|
777
|
+
})
|
|
778
|
+
})
|
|
779
|
+
] }),
|
|
780
|
+
children: query.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableSkeletonRows, {
|
|
781
|
+
columns: COLUMNS + 1,
|
|
782
|
+
label: "Loading iOS devices"
|
|
783
|
+
}) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DataTableFullRow, {
|
|
784
|
+
columns: COLUMNS + 1,
|
|
785
|
+
children: empty
|
|
786
|
+
}) : rows?.map((device) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DeviceRow, {
|
|
787
|
+
device,
|
|
788
|
+
isThisIphone: device.udid === thisUdid,
|
|
789
|
+
onOpen: setDialog,
|
|
790
|
+
viewer: view.viewer
|
|
791
|
+
}, device.id))
|
|
792
|
+
})
|
|
793
|
+
})
|
|
794
|
+
]
|
|
795
|
+
}),
|
|
796
|
+
dialog !== null && dialog.kind !== "remove" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NameDialog, {
|
|
797
|
+
onClose: close,
|
|
798
|
+
target: dialog
|
|
799
|
+
}, dialog.device.id) : null,
|
|
800
|
+
dialog?.kind === "remove" && view !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RemoveDialog, {
|
|
801
|
+
device: dialog.device,
|
|
802
|
+
onClose: close,
|
|
803
|
+
viewer: view.viewer
|
|
804
|
+
}, dialog.device.id) : null
|
|
805
|
+
]
|
|
806
|
+
});
|
|
807
|
+
}
|
|
808
|
+
function IosDevicesRoute() {
|
|
809
|
+
const search = Route.useSearch();
|
|
810
|
+
const navigate = Route.useNavigate();
|
|
811
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IosDevicesPage, {
|
|
812
|
+
onSearchChange: (next) => void navigate({
|
|
813
|
+
search: next,
|
|
814
|
+
replace: true
|
|
815
|
+
}),
|
|
816
|
+
search
|
|
817
|
+
});
|
|
818
|
+
}
|
|
819
|
+
//#endregion
|
|
820
|
+
export { IosDevicesRoute as component };
|