@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
package/src/routeTree.gen.ts
CHANGED
|
@@ -17,8 +17,13 @@ import { Route as NativeBuildsRouteImport } from './routes/native-builds'
|
|
|
17
17
|
import { Route as RemoteConfigRouteImport } from './routes/remote-config'
|
|
18
18
|
import { Route as InsightsDistributionRouteImport } from './routes/insights_.distribution'
|
|
19
19
|
import { Route as NativeBuildsBuildIdRouteImport } from './routes/native-builds_.$buildId'
|
|
20
|
-
import { Route as
|
|
20
|
+
import { Route as NativeBuildsDevicesRouteImport } from './routes/native-builds_.devices'
|
|
21
|
+
import { Route as HotUpdaterDevicesDeviceResponseRouteImport } from './routes/[_]hot-updater/devices/device-response'
|
|
22
|
+
import { Route as HotUpdaterDevicesDeviceDotmobileconfigRouteImport } from './routes/[_]hot-updater/devices/device[.]mobileconfig'
|
|
23
|
+
import { Route as HotUpdaterDevicesReceiptRouteImport } from './routes/[_]hot-updater/devices/receipt'
|
|
24
|
+
import { Route as HotUpdaterDevicesRequestRouteImport } from './routes/[_]hot-updater/devices/request'
|
|
21
25
|
import { Route as ApiAuthSplatRouteImport } from './routes/api/auth/$'
|
|
26
|
+
import { Route as HotUpdaterNativeBuildsBuildIdManifestDotplistRouteImport } from './routes/[_]hot-updater/native-builds/$buildId/manifest[.]plist'
|
|
22
27
|
import { Route as ApiBundlesBundleIdDownloadRouteImport } from './routes/api/bundles/$bundleId/download'
|
|
23
28
|
import { Route as ApiNativeBuildsBuildIdDownloadRouteImport } from './routes/api/native-builds/$buildId/download'
|
|
24
29
|
|
|
@@ -62,10 +67,33 @@ const NativeBuildsBuildIdRoute = NativeBuildsBuildIdRouteImport.update({
|
|
|
62
67
|
path: '/native-builds/$buildId',
|
|
63
68
|
getParentRoute: () => rootRouteImport,
|
|
64
69
|
} as any)
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
70
|
+
const NativeBuildsDevicesRoute = NativeBuildsDevicesRouteImport.update({
|
|
71
|
+
id: '/native-builds_/devices',
|
|
72
|
+
path: '/native-builds/devices',
|
|
73
|
+
getParentRoute: () => rootRouteImport,
|
|
74
|
+
} as any)
|
|
75
|
+
const HotUpdaterDevicesDeviceResponseRoute =
|
|
76
|
+
HotUpdaterDevicesDeviceResponseRouteImport.update({
|
|
77
|
+
id: '/_hot-updater/devices/device-response',
|
|
78
|
+
path: '/_hot-updater/devices/device-response',
|
|
79
|
+
getParentRoute: () => rootRouteImport,
|
|
80
|
+
} as any)
|
|
81
|
+
const HotUpdaterDevicesDeviceDotmobileconfigRoute =
|
|
82
|
+
HotUpdaterDevicesDeviceDotmobileconfigRouteImport.update({
|
|
83
|
+
id: '/_hot-updater/devices/device.mobileconfig',
|
|
84
|
+
path: '/_hot-updater/devices/device.mobileconfig',
|
|
85
|
+
getParentRoute: () => rootRouteImport,
|
|
86
|
+
} as any)
|
|
87
|
+
const HotUpdaterDevicesReceiptRoute =
|
|
88
|
+
HotUpdaterDevicesReceiptRouteImport.update({
|
|
89
|
+
id: '/_hot-updater/devices/receipt',
|
|
90
|
+
path: '/_hot-updater/devices/receipt',
|
|
91
|
+
getParentRoute: () => rootRouteImport,
|
|
92
|
+
} as any)
|
|
93
|
+
const HotUpdaterDevicesRequestRoute =
|
|
94
|
+
HotUpdaterDevicesRequestRouteImport.update({
|
|
95
|
+
id: '/_hot-updater/devices/request',
|
|
96
|
+
path: '/_hot-updater/devices/request',
|
|
69
97
|
getParentRoute: () => rootRouteImport,
|
|
70
98
|
} as any)
|
|
71
99
|
const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
|
|
@@ -73,6 +101,12 @@ const ApiAuthSplatRoute = ApiAuthSplatRouteImport.update({
|
|
|
73
101
|
path: '/api/auth/$',
|
|
74
102
|
getParentRoute: () => rootRouteImport,
|
|
75
103
|
} as any)
|
|
104
|
+
const HotUpdaterNativeBuildsBuildIdManifestDotplistRoute =
|
|
105
|
+
HotUpdaterNativeBuildsBuildIdManifestDotplistRouteImport.update({
|
|
106
|
+
id: '/_hot-updater/native-builds/$buildId/manifest.plist',
|
|
107
|
+
path: '/_hot-updater/native-builds/$buildId/manifest.plist',
|
|
108
|
+
getParentRoute: () => rootRouteImport,
|
|
109
|
+
} as any)
|
|
76
110
|
const ApiBundlesBundleIdDownloadRoute =
|
|
77
111
|
ApiBundlesBundleIdDownloadRouteImport.update({
|
|
78
112
|
id: '/api/bundles/$bundleId/download',
|
|
@@ -95,8 +129,13 @@ export interface FileRoutesByFullPath {
|
|
|
95
129
|
'/remote-config': typeof RemoteConfigRoute
|
|
96
130
|
'/insights/distribution': typeof InsightsDistributionRoute
|
|
97
131
|
'/native-builds/$buildId': typeof NativeBuildsBuildIdRoute
|
|
98
|
-
'/
|
|
132
|
+
'/native-builds/devices': typeof NativeBuildsDevicesRoute
|
|
133
|
+
'/_hot-updater/devices/device-response': typeof HotUpdaterDevicesDeviceResponseRoute
|
|
134
|
+
'/_hot-updater/devices/device.mobileconfig': typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
135
|
+
'/_hot-updater/devices/receipt': typeof HotUpdaterDevicesReceiptRoute
|
|
136
|
+
'/_hot-updater/devices/request': typeof HotUpdaterDevicesRequestRoute
|
|
99
137
|
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
138
|
+
'/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
100
139
|
'/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
|
|
101
140
|
'/api/native-builds/$buildId/download': typeof ApiNativeBuildsBuildIdDownloadRoute
|
|
102
141
|
}
|
|
@@ -109,8 +148,13 @@ export interface FileRoutesByTo {
|
|
|
109
148
|
'/remote-config': typeof RemoteConfigRoute
|
|
110
149
|
'/insights/distribution': typeof InsightsDistributionRoute
|
|
111
150
|
'/native-builds/$buildId': typeof NativeBuildsBuildIdRoute
|
|
112
|
-
'/
|
|
151
|
+
'/native-builds/devices': typeof NativeBuildsDevicesRoute
|
|
152
|
+
'/_hot-updater/devices/device-response': typeof HotUpdaterDevicesDeviceResponseRoute
|
|
153
|
+
'/_hot-updater/devices/device.mobileconfig': typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
154
|
+
'/_hot-updater/devices/receipt': typeof HotUpdaterDevicesReceiptRoute
|
|
155
|
+
'/_hot-updater/devices/request': typeof HotUpdaterDevicesRequestRoute
|
|
113
156
|
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
157
|
+
'/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
114
158
|
'/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
|
|
115
159
|
'/api/native-builds/$buildId/download': typeof ApiNativeBuildsBuildIdDownloadRoute
|
|
116
160
|
}
|
|
@@ -124,8 +168,13 @@ export interface FileRoutesById {
|
|
|
124
168
|
'/remote-config': typeof RemoteConfigRoute
|
|
125
169
|
'/insights_/distribution': typeof InsightsDistributionRoute
|
|
126
170
|
'/native-builds_/$buildId': typeof NativeBuildsBuildIdRoute
|
|
127
|
-
'/
|
|
171
|
+
'/native-builds_/devices': typeof NativeBuildsDevicesRoute
|
|
172
|
+
'/_hot-updater/devices/device-response': typeof HotUpdaterDevicesDeviceResponseRoute
|
|
173
|
+
'/_hot-updater/devices/device.mobileconfig': typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
174
|
+
'/_hot-updater/devices/receipt': typeof HotUpdaterDevicesReceiptRoute
|
|
175
|
+
'/_hot-updater/devices/request': typeof HotUpdaterDevicesRequestRoute
|
|
128
176
|
'/api/auth/$': typeof ApiAuthSplatRoute
|
|
177
|
+
'/_hot-updater/native-builds/$buildId/manifest.plist': typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
129
178
|
'/api/bundles/$bundleId/download': typeof ApiBundlesBundleIdDownloadRoute
|
|
130
179
|
'/api/native-builds/$buildId/download': typeof ApiNativeBuildsBuildIdDownloadRoute
|
|
131
180
|
}
|
|
@@ -140,8 +189,13 @@ export interface FileRouteTypes {
|
|
|
140
189
|
| '/remote-config'
|
|
141
190
|
| '/insights/distribution'
|
|
142
191
|
| '/native-builds/$buildId'
|
|
143
|
-
| '/
|
|
192
|
+
| '/native-builds/devices'
|
|
193
|
+
| '/_hot-updater/devices/device-response'
|
|
194
|
+
| '/_hot-updater/devices/device.mobileconfig'
|
|
195
|
+
| '/_hot-updater/devices/receipt'
|
|
196
|
+
| '/_hot-updater/devices/request'
|
|
144
197
|
| '/api/auth/$'
|
|
198
|
+
| '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
145
199
|
| '/api/bundles/$bundleId/download'
|
|
146
200
|
| '/api/native-builds/$buildId/download'
|
|
147
201
|
fileRoutesByTo: FileRoutesByTo
|
|
@@ -154,8 +208,13 @@ export interface FileRouteTypes {
|
|
|
154
208
|
| '/remote-config'
|
|
155
209
|
| '/insights/distribution'
|
|
156
210
|
| '/native-builds/$buildId'
|
|
157
|
-
| '/
|
|
211
|
+
| '/native-builds/devices'
|
|
212
|
+
| '/_hot-updater/devices/device-response'
|
|
213
|
+
| '/_hot-updater/devices/device.mobileconfig'
|
|
214
|
+
| '/_hot-updater/devices/receipt'
|
|
215
|
+
| '/_hot-updater/devices/request'
|
|
158
216
|
| '/api/auth/$'
|
|
217
|
+
| '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
159
218
|
| '/api/bundles/$bundleId/download'
|
|
160
219
|
| '/api/native-builds/$buildId/download'
|
|
161
220
|
id:
|
|
@@ -168,8 +227,13 @@ export interface FileRouteTypes {
|
|
|
168
227
|
| '/remote-config'
|
|
169
228
|
| '/insights_/distribution'
|
|
170
229
|
| '/native-builds_/$buildId'
|
|
171
|
-
| '/
|
|
230
|
+
| '/native-builds_/devices'
|
|
231
|
+
| '/_hot-updater/devices/device-response'
|
|
232
|
+
| '/_hot-updater/devices/device.mobileconfig'
|
|
233
|
+
| '/_hot-updater/devices/receipt'
|
|
234
|
+
| '/_hot-updater/devices/request'
|
|
172
235
|
| '/api/auth/$'
|
|
236
|
+
| '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
173
237
|
| '/api/bundles/$bundleId/download'
|
|
174
238
|
| '/api/native-builds/$buildId/download'
|
|
175
239
|
fileRoutesById: FileRoutesById
|
|
@@ -183,8 +247,13 @@ export interface RootRouteChildren {
|
|
|
183
247
|
RemoteConfigRoute: typeof RemoteConfigRoute
|
|
184
248
|
InsightsDistributionRoute: typeof InsightsDistributionRoute
|
|
185
249
|
NativeBuildsBuildIdRoute: typeof NativeBuildsBuildIdRoute
|
|
186
|
-
|
|
250
|
+
NativeBuildsDevicesRoute: typeof NativeBuildsDevicesRoute
|
|
251
|
+
HotUpdaterDevicesDeviceResponseRoute: typeof HotUpdaterDevicesDeviceResponseRoute
|
|
252
|
+
HotUpdaterDevicesDeviceDotmobileconfigRoute: typeof HotUpdaterDevicesDeviceDotmobileconfigRoute
|
|
253
|
+
HotUpdaterDevicesReceiptRoute: typeof HotUpdaterDevicesReceiptRoute
|
|
254
|
+
HotUpdaterDevicesRequestRoute: typeof HotUpdaterDevicesRequestRoute
|
|
187
255
|
ApiAuthSplatRoute: typeof ApiAuthSplatRoute
|
|
256
|
+
HotUpdaterNativeBuildsBuildIdManifestDotplistRoute: typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRoute
|
|
188
257
|
ApiBundlesBundleIdDownloadRoute: typeof ApiBundlesBundleIdDownloadRoute
|
|
189
258
|
ApiNativeBuildsBuildIdDownloadRoute: typeof ApiNativeBuildsBuildIdDownloadRoute
|
|
190
259
|
}
|
|
@@ -247,11 +316,39 @@ declare module '@tanstack/react-router' {
|
|
|
247
316
|
preLoaderRoute: typeof NativeBuildsBuildIdRouteImport
|
|
248
317
|
parentRoute: typeof rootRouteImport
|
|
249
318
|
}
|
|
250
|
-
'/
|
|
251
|
-
id: '/
|
|
252
|
-
path: '/
|
|
253
|
-
fullPath: '/
|
|
254
|
-
preLoaderRoute: typeof
|
|
319
|
+
'/native-builds_/devices': {
|
|
320
|
+
id: '/native-builds_/devices'
|
|
321
|
+
path: '/native-builds/devices'
|
|
322
|
+
fullPath: '/native-builds/devices'
|
|
323
|
+
preLoaderRoute: typeof NativeBuildsDevicesRouteImport
|
|
324
|
+
parentRoute: typeof rootRouteImport
|
|
325
|
+
}
|
|
326
|
+
'/_hot-updater/devices/device-response': {
|
|
327
|
+
id: '/_hot-updater/devices/device-response'
|
|
328
|
+
path: '/_hot-updater/devices/device-response'
|
|
329
|
+
fullPath: '/_hot-updater/devices/device-response'
|
|
330
|
+
preLoaderRoute: typeof HotUpdaterDevicesDeviceResponseRouteImport
|
|
331
|
+
parentRoute: typeof rootRouteImport
|
|
332
|
+
}
|
|
333
|
+
'/_hot-updater/devices/device.mobileconfig': {
|
|
334
|
+
id: '/_hot-updater/devices/device.mobileconfig'
|
|
335
|
+
path: '/_hot-updater/devices/device.mobileconfig'
|
|
336
|
+
fullPath: '/_hot-updater/devices/device.mobileconfig'
|
|
337
|
+
preLoaderRoute: typeof HotUpdaterDevicesDeviceDotmobileconfigRouteImport
|
|
338
|
+
parentRoute: typeof rootRouteImport
|
|
339
|
+
}
|
|
340
|
+
'/_hot-updater/devices/receipt': {
|
|
341
|
+
id: '/_hot-updater/devices/receipt'
|
|
342
|
+
path: '/_hot-updater/devices/receipt'
|
|
343
|
+
fullPath: '/_hot-updater/devices/receipt'
|
|
344
|
+
preLoaderRoute: typeof HotUpdaterDevicesReceiptRouteImport
|
|
345
|
+
parentRoute: typeof rootRouteImport
|
|
346
|
+
}
|
|
347
|
+
'/_hot-updater/devices/request': {
|
|
348
|
+
id: '/_hot-updater/devices/request'
|
|
349
|
+
path: '/_hot-updater/devices/request'
|
|
350
|
+
fullPath: '/_hot-updater/devices/request'
|
|
351
|
+
preLoaderRoute: typeof HotUpdaterDevicesRequestRouteImport
|
|
255
352
|
parentRoute: typeof rootRouteImport
|
|
256
353
|
}
|
|
257
354
|
'/api/auth/$': {
|
|
@@ -261,6 +358,13 @@ declare module '@tanstack/react-router' {
|
|
|
261
358
|
preLoaderRoute: typeof ApiAuthSplatRouteImport
|
|
262
359
|
parentRoute: typeof rootRouteImport
|
|
263
360
|
}
|
|
361
|
+
'/_hot-updater/native-builds/$buildId/manifest.plist': {
|
|
362
|
+
id: '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
363
|
+
path: '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
364
|
+
fullPath: '/_hot-updater/native-builds/$buildId/manifest.plist'
|
|
365
|
+
preLoaderRoute: typeof HotUpdaterNativeBuildsBuildIdManifestDotplistRouteImport
|
|
366
|
+
parentRoute: typeof rootRouteImport
|
|
367
|
+
}
|
|
264
368
|
'/api/bundles/$bundleId/download': {
|
|
265
369
|
id: '/api/bundles/$bundleId/download'
|
|
266
370
|
path: '/api/bundles/$bundleId/download'
|
|
@@ -287,8 +391,15 @@ const rootRouteChildren: RootRouteChildren = {
|
|
|
287
391
|
RemoteConfigRoute: RemoteConfigRoute,
|
|
288
392
|
InsightsDistributionRoute: InsightsDistributionRoute,
|
|
289
393
|
NativeBuildsBuildIdRoute: NativeBuildsBuildIdRoute,
|
|
290
|
-
|
|
394
|
+
NativeBuildsDevicesRoute: NativeBuildsDevicesRoute,
|
|
395
|
+
HotUpdaterDevicesDeviceResponseRoute: HotUpdaterDevicesDeviceResponseRoute,
|
|
396
|
+
HotUpdaterDevicesDeviceDotmobileconfigRoute:
|
|
397
|
+
HotUpdaterDevicesDeviceDotmobileconfigRoute,
|
|
398
|
+
HotUpdaterDevicesReceiptRoute: HotUpdaterDevicesReceiptRoute,
|
|
399
|
+
HotUpdaterDevicesRequestRoute: HotUpdaterDevicesRequestRoute,
|
|
291
400
|
ApiAuthSplatRoute: ApiAuthSplatRoute,
|
|
401
|
+
HotUpdaterNativeBuildsBuildIdManifestDotplistRoute:
|
|
402
|
+
HotUpdaterNativeBuildsBuildIdManifestDotplistRoute,
|
|
292
403
|
ApiBundlesBundleIdDownloadRoute: ApiBundlesBundleIdDownloadRoute,
|
|
293
404
|
ApiNativeBuildsBuildIdDownloadRoute: ApiNativeBuildsBuildIdDownloadRoute,
|
|
294
405
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { IosDeviceStatus } from "@hot-updater/plugin-core";
|
|
1
2
|
import { assertCanonicalChannelName } from "@hot-updater/protocol";
|
|
2
3
|
|
|
3
4
|
import type { NativeBuildDetailSearch } from "@/components/features/native-builds/NativeBuildDetailPage";
|
|
4
5
|
import type { NativeBuildPage } from "@/lib/api";
|
|
6
|
+
import { ALL_CHANNELS, DEFAULT_CHANNEL } from "@/lib/constants";
|
|
5
7
|
|
|
6
8
|
const text = (value: unknown) =>
|
|
7
9
|
typeof value === "string" && value.length > 0 ? value : undefined;
|
|
@@ -24,20 +26,47 @@ const defined = <T extends object>(values: T): T =>
|
|
|
24
26
|
) as T;
|
|
25
27
|
|
|
26
28
|
/**
|
|
27
|
-
* The native build list's URL: a channel the builds embed,
|
|
28
|
-
* page. A page has one direction, so `before` wins over
|
|
29
|
+
* The native build list's URL: a channel the builds embed, or every channel,
|
|
30
|
+
* and one keyset page. A page has one direction, so `before` wins over
|
|
31
|
+
* `after`.
|
|
29
32
|
*/
|
|
33
|
+
export type NativeBuildsSearch = NativeBuildPage & {
|
|
34
|
+
/** Every channel, where the list would open on the default one. */
|
|
35
|
+
readonly channels?: typeof ALL_CHANNELS;
|
|
36
|
+
};
|
|
37
|
+
|
|
30
38
|
export const validateNativeBuildsSearch = (
|
|
31
39
|
search: Record<string, unknown>,
|
|
32
|
-
):
|
|
40
|
+
): NativeBuildsSearch => {
|
|
33
41
|
const before = text(search.before);
|
|
42
|
+
const channel = channelName(search.channel);
|
|
34
43
|
return defined({
|
|
35
|
-
channel
|
|
44
|
+
channel,
|
|
45
|
+
channels:
|
|
46
|
+
channel === undefined && search.channels === ALL_CHANNELS
|
|
47
|
+
? ALL_CHANNELS
|
|
48
|
+
: undefined,
|
|
36
49
|
before,
|
|
37
50
|
after: before === undefined ? text(search.after) : undefined,
|
|
38
51
|
});
|
|
39
52
|
};
|
|
40
53
|
|
|
54
|
+
/**
|
|
55
|
+
* The page the list reads. A URL that names no channel opens on the default
|
|
56
|
+
* channel, or on every channel when the project has no such channel;
|
|
57
|
+
* undefined until the channel names, which the page reads anyway, arrive.
|
|
58
|
+
*/
|
|
59
|
+
export const resolveNativeBuildsSearch = (
|
|
60
|
+
{ channels, ...page }: NativeBuildsSearch,
|
|
61
|
+
channelNames: readonly string[] | undefined,
|
|
62
|
+
): NativeBuildPage | undefined => {
|
|
63
|
+
if (page.channel !== undefined || channels === ALL_CHANNELS) return page;
|
|
64
|
+
if (channelNames === undefined) return undefined;
|
|
65
|
+
return channelNames.includes(DEFAULT_CHANNEL)
|
|
66
|
+
? { channel: DEFAULT_CHANNEL, ...page }
|
|
67
|
+
: page;
|
|
68
|
+
};
|
|
69
|
+
|
|
41
70
|
/** A native build page's URL: one page of the patches from it. */
|
|
42
71
|
export const validateNativeBuildDetailSearch = (
|
|
43
72
|
search: Record<string, unknown>,
|
|
@@ -49,3 +78,22 @@ export const validateNativeBuildDetailSearch = (
|
|
|
49
78
|
patchesBefore === undefined ? text(search.patchesAfter) : undefined,
|
|
50
79
|
});
|
|
51
80
|
};
|
|
81
|
+
|
|
82
|
+
const IOS_DEVICE_STATUSES: readonly IosDeviceStatus[] = [
|
|
83
|
+
"pending",
|
|
84
|
+
"approved",
|
|
85
|
+
"registered",
|
|
86
|
+
];
|
|
87
|
+
|
|
88
|
+
/** The iOS devices page's URL: the status the list shows, all without one. */
|
|
89
|
+
export interface IosDevicesSearch {
|
|
90
|
+
readonly status?: IosDeviceStatus;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export const validateIosDevicesSearch = (
|
|
94
|
+
search: Record<string, unknown>,
|
|
95
|
+
): IosDevicesSearch =>
|
|
96
|
+
typeof search.status === "string" &&
|
|
97
|
+
IOS_DEVICE_STATUSES.includes(search.status as IosDeviceStatus)
|
|
98
|
+
? { status: search.status as IosDeviceStatus }
|
|
99
|
+
: {};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import type { ReleaseFilter } from "@hot-updater/plugin-core";
|
|
1
|
+
import type { ChannelRow, ReleaseFilter } from "@hot-updater/plugin-core";
|
|
2
|
+
|
|
3
|
+
import { ALL_CHANNELS, DEFAULT_CHANNEL } from "@/lib/constants";
|
|
2
4
|
|
|
3
5
|
export interface ReleaseSearch {
|
|
4
6
|
/** Releases newer than this id: the previous page. */
|
|
@@ -7,6 +9,8 @@ export interface ReleaseSearch {
|
|
|
7
9
|
beforeReleaseId?: string;
|
|
8
10
|
bundleId?: string;
|
|
9
11
|
channelId?: string;
|
|
12
|
+
/** Every channel, where the list would open on the default one. */
|
|
13
|
+
channels?: typeof ALL_CHANNELS;
|
|
10
14
|
enabled?: boolean;
|
|
11
15
|
platform?: "ios" | "android";
|
|
12
16
|
releaseId?: string;
|
|
@@ -47,12 +51,17 @@ export function validateReleaseSearch(
|
|
|
47
51
|
: search.platform === "android"
|
|
48
52
|
? "android"
|
|
49
53
|
: "ios";
|
|
54
|
+
const channels =
|
|
55
|
+
!bundleId && !scopeKey && !channelId && search.channels === ALL_CHANNELS
|
|
56
|
+
? ALL_CHANNELS
|
|
57
|
+
: undefined;
|
|
50
58
|
|
|
51
59
|
return {
|
|
52
60
|
afterReleaseId,
|
|
53
61
|
beforeReleaseId,
|
|
54
62
|
bundleId,
|
|
55
63
|
channelId,
|
|
64
|
+
channels,
|
|
56
65
|
enabled: scopeKey || channelId ? enabled : undefined,
|
|
57
66
|
platform,
|
|
58
67
|
releaseId: optionalString(search.releaseId),
|
|
@@ -82,6 +91,33 @@ export function hasReleaseFilters(search: ReleaseSearch): boolean {
|
|
|
82
91
|
return releaseFilterOf(search).kind !== "all";
|
|
83
92
|
}
|
|
84
93
|
|
|
94
|
+
/**
|
|
95
|
+
* The search the list shows. A URL that names no channel, bundle, or scope
|
|
96
|
+
* opens on the default channel's iOS releases, or on every channel when the
|
|
97
|
+
* project has no such channel; undefined until the channel list, which the
|
|
98
|
+
* page reads anyway, arrives. A link to one release that names no channel
|
|
99
|
+
* shows every channel, so its row shows wherever it is.
|
|
100
|
+
*/
|
|
101
|
+
export function resolveReleaseSearch(
|
|
102
|
+
search: ReleaseSearch,
|
|
103
|
+
channels: readonly Pick<ChannelRow, "id" | "name">[] | undefined,
|
|
104
|
+
): ReleaseSearch | undefined {
|
|
105
|
+
if (
|
|
106
|
+
search.bundleId ||
|
|
107
|
+
search.scopeKey ||
|
|
108
|
+
search.channelId ||
|
|
109
|
+
search.channels === ALL_CHANNELS
|
|
110
|
+
) {
|
|
111
|
+
return search;
|
|
112
|
+
}
|
|
113
|
+
if (search.releaseId) return { ...search, channels: ALL_CHANNELS };
|
|
114
|
+
if (channels === undefined) return undefined;
|
|
115
|
+
const defaultChannel = channels.find(({ name }) => name === DEFAULT_CHANNEL);
|
|
116
|
+
return defaultChannel
|
|
117
|
+
? validateReleaseSearch({ ...search, channelId: defaultChannel.id })
|
|
118
|
+
: search;
|
|
119
|
+
}
|
|
120
|
+
|
|
85
121
|
/**
|
|
86
122
|
* A new filter starts from the first page. A bundle or scope filter replaces
|
|
87
123
|
* the others, and choosing a channel or platform clears them.
|
|
@@ -91,7 +127,12 @@ export function updateReleaseFilters(
|
|
|
91
127
|
filters: Partial<
|
|
92
128
|
Pick<
|
|
93
129
|
ReleaseSearch,
|
|
94
|
-
|
|
130
|
+
| "bundleId"
|
|
131
|
+
| "channelId"
|
|
132
|
+
| "channels"
|
|
133
|
+
| "enabled"
|
|
134
|
+
| "platform"
|
|
135
|
+
| "scopeKey"
|
|
95
136
|
>
|
|
96
137
|
>,
|
|
97
138
|
): ReleaseSearch {
|
|
@@ -107,6 +148,7 @@ export function updateReleaseFilters(
|
|
|
107
148
|
if ("channelId" in filters || "platform" in filters) {
|
|
108
149
|
return validateReleaseSearch({
|
|
109
150
|
channelId: next.channelId,
|
|
151
|
+
channels: next.channels,
|
|
110
152
|
enabled: next.enabled,
|
|
111
153
|
platform: next.platform,
|
|
112
154
|
});
|
|
@@ -114,8 +156,27 @@ export function updateReleaseFilters(
|
|
|
114
156
|
return validateReleaseSearch({
|
|
115
157
|
bundleId: next.bundleId,
|
|
116
158
|
channelId: next.channelId,
|
|
159
|
+
channels: next.channels,
|
|
117
160
|
enabled: next.enabled,
|
|
118
161
|
platform: next.platform,
|
|
119
162
|
scopeKey: next.scopeKey,
|
|
120
163
|
});
|
|
121
164
|
}
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Whether the list shows what it opens on, so Clear has nothing to clear;
|
|
168
|
+
* true until the channel list arrives.
|
|
169
|
+
*/
|
|
170
|
+
export function showsDefaultReleases(
|
|
171
|
+
search: ReleaseSearch,
|
|
172
|
+
channels: readonly Pick<ChannelRow, "id" | "name">[] | undefined,
|
|
173
|
+
): boolean {
|
|
174
|
+
const view = resolveReleaseSearch(search, channels);
|
|
175
|
+
const opening = resolveReleaseSearch({}, channels);
|
|
176
|
+
return (
|
|
177
|
+
view === undefined ||
|
|
178
|
+
opening === undefined ||
|
|
179
|
+
JSON.stringify(releaseFilterOf(view)) ===
|
|
180
|
+
JSON.stringify(releaseFilterOf(opening))
|
|
181
|
+
);
|
|
182
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
// Where iOS posts an iPhone's UDID, with no session: its capability is checked
|
|
4
|
+
// before the body is read, and only a register capability writes, through the
|
|
5
|
+
// Console's own assembly. See iosDeviceProfile.ts.
|
|
6
|
+
export const Route = createFileRoute("/_hot-updater/devices/device-response")({
|
|
7
|
+
server: {
|
|
8
|
+
handlers: {
|
|
9
|
+
ANY: async ({ request }) => {
|
|
10
|
+
const [{ receiveDeviceResponse }, { loadConsole }] = await Promise.all([
|
|
11
|
+
import("@/lib/server/iosDeviceProfile"),
|
|
12
|
+
import("@/lib/server/config.server"),
|
|
13
|
+
]);
|
|
14
|
+
return receiveDeviceResponse(
|
|
15
|
+
request,
|
|
16
|
+
async () => (await loadConsole(request)).core,
|
|
17
|
+
);
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
// The profile that reads an iPhone's UDID answers only to its capability,
|
|
4
|
+
// checked before anything is read: see iosDeviceProfile.ts.
|
|
5
|
+
export const Route = createFileRoute(
|
|
6
|
+
"/_hot-updater/devices/device.mobileconfig",
|
|
7
|
+
)({
|
|
8
|
+
server: {
|
|
9
|
+
handlers: {
|
|
10
|
+
ANY: async ({ request }) => {
|
|
11
|
+
const { serveDeviceProfile } =
|
|
12
|
+
await import("@/lib/server/iosDeviceProfile");
|
|
13
|
+
return serveDeviceProfile(request);
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
},
|
|
17
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
// This iPhone's kept proof, an HttpOnly cookie scoped to these routes: see
|
|
4
|
+
// iosDeviceCookie.ts. Every method needs the Console's session.
|
|
5
|
+
export const Route = createFileRoute("/_hot-updater/devices/receipt")({
|
|
6
|
+
server: {
|
|
7
|
+
handlers: {
|
|
8
|
+
ANY: async ({ request }) => {
|
|
9
|
+
const [cookie, { iosDeviceViewer }, { requireConsoleAccess }, config] =
|
|
10
|
+
await Promise.all([
|
|
11
|
+
import("@/lib/server/iosDeviceCookie"),
|
|
12
|
+
import("@/lib/server/iosDevices"),
|
|
13
|
+
import("@/lib/server/auth.server"),
|
|
14
|
+
import("@/lib/server/config.server"),
|
|
15
|
+
]);
|
|
16
|
+
const loaded = () => config.prepareConfig(request);
|
|
17
|
+
return cookie.handleIosDeviceReceipt(request, {
|
|
18
|
+
viewer: async () =>
|
|
19
|
+
iosDeviceViewer(
|
|
20
|
+
await requireConsoleAccess(request),
|
|
21
|
+
(await loaded()).config.deviceApprovers,
|
|
22
|
+
),
|
|
23
|
+
core: async () => (await loaded()).core,
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
// This iPhone's kept proof, an HttpOnly cookie scoped to these routes: see
|
|
4
|
+
// iosDeviceCookie.ts. Every method needs the Console's session.
|
|
5
|
+
export const Route = createFileRoute("/_hot-updater/devices/request")({
|
|
6
|
+
server: {
|
|
7
|
+
handlers: {
|
|
8
|
+
ANY: async ({ request }) => {
|
|
9
|
+
const [cookie, { iosDeviceViewer }, { requireConsoleAccess }, config] =
|
|
10
|
+
await Promise.all([
|
|
11
|
+
import("@/lib/server/iosDeviceCookie"),
|
|
12
|
+
import("@/lib/server/iosDevices"),
|
|
13
|
+
import("@/lib/server/auth.server"),
|
|
14
|
+
import("@/lib/server/config.server"),
|
|
15
|
+
]);
|
|
16
|
+
const loaded = () => config.prepareConfig(request);
|
|
17
|
+
return cookie.handleIosDeviceRequest(request, {
|
|
18
|
+
viewer: async () =>
|
|
19
|
+
iosDeviceViewer(
|
|
20
|
+
await requireConsoleAccess(request),
|
|
21
|
+
(await loaded()).config.deviceApprovers,
|
|
22
|
+
),
|
|
23
|
+
core: async () => (await loaded()).core,
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
},
|
|
28
|
+
});
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
+
|
|
3
|
+
// What iOS installs a build from. Its token is all it answers to, checked
|
|
4
|
+
// before any read: see nativeBuildInstall.ts.
|
|
5
|
+
export const Route = createFileRoute(
|
|
6
|
+
"/_hot-updater/native-builds/$buildId/manifest.plist",
|
|
7
|
+
)({
|
|
8
|
+
server: {
|
|
9
|
+
handlers: {
|
|
10
|
+
GET: async ({ params, request }) => {
|
|
11
|
+
const [{ serveNativeBuildManifest }, { loadConsole }] =
|
|
12
|
+
await Promise.all([
|
|
13
|
+
import("@/lib/server/nativeBuildInstall"),
|
|
14
|
+
import("@/lib/server/config.server"),
|
|
15
|
+
]);
|
|
16
|
+
return serveNativeBuildManifest(request, params.buildId, () =>
|
|
17
|
+
loadConsole(request),
|
|
18
|
+
);
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
});
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { createFileRoute } from "@tanstack/react-router";
|
|
2
2
|
|
|
3
|
+
import { NATIVE_BUILD_DOWNLOAD_TOKEN_PARAM } from "@/lib/native-builds";
|
|
4
|
+
|
|
3
5
|
/**
|
|
4
6
|
* Whether a request is a browser opening the URL as a page, as a phone does
|
|
5
7
|
* after scanning a QR code, rather than a script fetching it.
|
|
@@ -12,9 +14,28 @@ export const Route = createFileRoute("/api/native-builds/$buildId/download")({
|
|
|
12
14
|
server: {
|
|
13
15
|
handlers: {
|
|
14
16
|
GET: async ({ params, request }) => {
|
|
15
|
-
const { prepareConfig } =
|
|
17
|
+
const { loadConsole, prepareConfig } =
|
|
18
|
+
await import("@/lib/server/config.server");
|
|
16
19
|
const { downloadNativeBuild } =
|
|
17
20
|
await import("@/lib/server/nativeBuilds");
|
|
21
|
+
// A request with a signed link answers to its token alone, signed
|
|
22
|
+
// in or not, and reaches this route and the install manifest's, for
|
|
23
|
+
// this one build.
|
|
24
|
+
const token = new URL(request.url).searchParams.get(
|
|
25
|
+
NATIVE_BUILD_DOWNLOAD_TOKEN_PARAM,
|
|
26
|
+
);
|
|
27
|
+
if (token !== null) {
|
|
28
|
+
const { refuseNativeBuildDownloadToken } =
|
|
29
|
+
await import("@/lib/server/nativeBuildDownloadLink");
|
|
30
|
+
return (
|
|
31
|
+
(await refuseNativeBuildDownloadToken(
|
|
32
|
+
request,
|
|
33
|
+
params.buildId,
|
|
34
|
+
token,
|
|
35
|
+
)) ??
|
|
36
|
+
downloadNativeBuild(params.buildId, await loadConsole(request))
|
|
37
|
+
);
|
|
38
|
+
}
|
|
18
39
|
let deps: Awaited<ReturnType<typeof prepareConfig>>;
|
|
19
40
|
try {
|
|
20
41
|
deps = await prepareConfig(request);
|