@hot-updater/console 1.2.0-rc.3 → 1.2.0-rc.30
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-C-TGpFAm.js → -native-builds-search-DdHwfe4q.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-CTBdtFQ8.js +1 -0
- package/.output/public/assets/ChannelBadge-CEabmopB.js +1 -0
- package/.output/public/assets/CompositeItem-KUM5yQVr.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-CUtcXuY2.js → ConsoleFeatureUnavailable-Be-0iTww.js} +1 -1
- package/.output/public/assets/{EventDetails-Dl2RvPAk.js → EventDetails-bDOYte1z.js} +1 -1
- package/.output/public/assets/HashValueDisplay-D2f0HmyU.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-DHhqY3DT.js → InsightsPageHeader-Cj2ROSQO.js} +1 -1
- package/.output/public/assets/IosInstall-CHI2C4Yd.js +1 -0
- package/.output/public/assets/NativeBuildsNav-DaqxQPnG.js +1 -0
- package/.output/public/assets/{NotFoundPage-DZ3DxyRA.js → NotFoundPage-CVBtl68B.js} +1 -1
- package/.output/public/assets/{PlatformIcon-BBWQlWm9.js → PlatformIcon-DVnzzGqM.js} +1 -1
- package/.output/public/assets/RelativeTime-B4PK8qDw.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-D_I0Raj2.js +1 -0
- package/.output/public/assets/RowReason-B7VM1ztc.js +1 -0
- package/.output/public/assets/SandboxBadge-BVxHg_HF.js +1 -0
- package/.output/public/assets/TargetDisplay-KU7JhIWG.js +1 -0
- package/.output/public/assets/{alert-dialog-BqYScr9y.js → alert-dialog-Ch0QxRsa.js} +1 -1
- package/.output/public/assets/api-C1OPeiG1.js +1 -0
- package/.output/public/assets/api-keys-DLC8jjaM.js +1 -0
- package/.output/public/assets/api-keys-eDnzgFAf.js +1 -0
- package/.output/public/assets/arrow-left-DQjHJAnT.js +1 -0
- package/.output/public/assets/arrow-right-CXp_K3xK.js +1 -0
- package/.output/public/assets/arrow-up-right-BFafIOrq.js +1 -0
- package/.output/public/assets/badge-FZMD5vvS.js +1 -0
- package/.output/public/assets/card-CyHYmHue.js +1 -0
- package/.output/public/assets/check-CqWNyG93.js +1 -0
- package/.output/public/assets/chevron-right-DNbYTBX1.js +1 -0
- package/.output/public/assets/{circle-off-C7Muo0ss.js → circle-off-BCkZpskJ.js} +1 -1
- package/.output/public/assets/{clipboard-DQbOcrL7.js → clipboard-DZrZK5gR.js} +1 -1
- package/.output/public/assets/{console-features-api-DEXSwFtc.js → console-features-api-BO5V64P3.js} +1 -1
- package/.output/public/assets/{copy-DsuLj3oj.js → copy-CH1__JAW.js} +1 -1
- package/.output/public/assets/dialog-BLj71-Nf.js +1 -0
- package/.output/public/assets/{dist-CPlO6ko9.js → dist-DAM__Tdz.js} +1 -1
- package/.output/public/assets/{download-Cf24LBde.js → download-B2GjTySo.js} +1 -1
- package/.output/public/assets/empty--YaE5Z4p.js +1 -0
- package/.output/public/assets/field-CdhSgWhI.js +1 -0
- package/.output/public/assets/git-branch-DG1VDaKq.js +1 -0
- package/.output/public/assets/history-C0wv4htz.js +1 -0
- package/.output/public/assets/index-CgwVUC2n.js +10 -0
- package/.output/public/assets/{input-group-D3OUBk4n.js → input-group-XKLcUGoa.js} +1 -1
- package/.output/public/assets/insights-C94CdeAA.js +1 -0
- package/.output/public/assets/insights-DILMVpk8.js +2 -0
- package/.output/public/assets/insights-_j_ieOyh.js +42 -0
- package/.output/public/assets/insights-api-B6Gj74n5.js +1 -0
- package/.output/public/assets/{insights-search-DghCbEnk.js → insights-search-Bgvg6wSP.js} +1 -1
- package/.output/public/assets/insights-usage-rpc-BUCinjSN.js +1 -0
- package/.output/public/assets/insights_.distribution-Bb6_S-hD.js +2 -0
- package/.output/public/assets/insights_.distribution-CRkGNelG.js +1 -0
- package/.output/public/assets/insights_.distribution-CyAu3RN3.js +1 -0
- package/.output/public/assets/installations-BA01mqJE.js +1 -0
- package/.output/public/assets/installations-BsD6LgNc.js +2 -0
- package/.output/public/assets/installations-CYTzndfP.js +1 -0
- package/.output/public/assets/{key-round-DwNKkHhy.js → key-round-D7UgdXyA.js} +1 -1
- package/.output/public/assets/{link-DTEyW70e.js → link-CN3iHC4A.js} +2 -2
- package/.output/public/assets/{list--NIee1FZ.js → list-Bm-CfN5g.js} +1 -1
- package/.output/public/assets/loader-circle-iMqC-8ZE.js +1 -0
- package/.output/public/assets/native-builds-BMbws1g5.js +2 -0
- package/.output/public/assets/native-builds-xgHiHQML.js +1 -0
- package/.output/public/assets/native-builds_._buildId-B04z9yfk.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DaMmTcHo.js +2 -0
- package/.output/public/assets/native-builds_.devices-CTzpCVsb.js +1 -0
- package/.output/public/assets/native-builds_.devices-D_kl2-bc.js +2 -0
- package/.output/public/assets/package-BmfoZ5Zj.js +1 -0
- package/.output/public/assets/plus-Db0KxLZp.js +1 -0
- package/.output/public/assets/preload-helper-CRQjUQaZ.js +1 -0
- package/.output/public/assets/{refresh-cw-B9HHjLej.js → refresh-cw-BHhBYjS8.js} +1 -1
- package/.output/public/assets/{relativeTime-YQt84dYr.js → relativeTime-BYRt19mj.js} +1 -1
- package/.output/public/assets/remote-config-Cxkr7_BP.js +1 -0
- package/.output/public/assets/remote-config-DAOyn5xL.js +1 -0
- package/.output/public/assets/remote-config-DXv25LX1.js +6 -0
- package/.output/public/assets/{rotate-cw-Cv2aVbYr.js → rotate-cw-Ba-slJea.js} +1 -1
- package/.output/public/assets/routes-DM3TyTLW.js +2 -0
- package/.output/public/assets/routes-Des97uK_.js +1 -0
- package/.output/public/assets/search-dJG2BYmx.js +1 -0
- package/.output/public/assets/select-CA8r-UUe.js +1 -0
- package/.output/public/assets/send-DuMOCzbD.js +1 -0
- package/.output/public/assets/{sidebar-Di9SN47G.js → sidebar-yC7KdImc.js} +1 -1
- package/.output/public/assets/smartphone-D1C6BRd_.js +1 -0
- package/.output/public/assets/styles-BHLI87EH.css +2 -0
- package/.output/public/assets/switch-BsV3d4km.js +1 -0
- package/.output/public/assets/table-D8YjT_ht.js +1 -0
- package/.output/public/assets/tabs-RdhEl9sE.js +1 -0
- package/.output/public/assets/trash-2-B5KIvrXy.js +1 -0
- package/.output/public/assets/{undo-2-CUX96_BG.js → undo-2-CFcU9dIB.js} +1 -1
- package/.output/public/assets/{useCompositeListItem-JmyDfo3-.js → useCompositeListItem-lAmUsXcc.js} +1 -1
- package/.output/public/assets/{useMutation-DbYw7boA.js → useMutation-w3qYaU2L.js} +1 -1
- package/.output/public/assets/valueToPercent-Bn8p2lng.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-DJQS4eWX.mjs → __23tanstack-start-server-fn-resolver-q4YFIDyr.mjs} +94 -46
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- package/.output/server/_libs/@base-ui/react+[...].mjs +1488 -183
- package/.output/server/_libs/@tanstack/react-router+[...].mjs +1 -1
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +2 -0
- package/.output/server/_libs/lucide-react.mjs +22 -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-CwNcoXf4.mjs → -native-builds-search-Mm_AZoRU.mjs} +9 -3
- package/.output/server/_ssr/{BundleIdDisplay-LdRkYdnN.mjs → BundleIdDisplay-DvzlYWq8.mjs} +3 -3
- package/.output/server/_ssr/ChannelBadge-qF_Pc5Ud.mjs +23 -0
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BN-FZ8eG.mjs → ConsoleFeatureUnavailable-DKUgr0N_.mjs} +7 -7
- package/.output/server/_ssr/{EventDetails-B77sWxgh.mjs → EventDetails-T1XtYEDD.mjs} +8 -8
- package/.output/server/_ssr/{HashValueDisplay-C4Vs4cmO.mjs → HashValueDisplay-Cas_zjIS.mjs} +7 -7
- package/.output/server/_ssr/{InsightsPageHeader-Dx4jJ7X0.mjs → InsightsPageHeader-BrllhUl2.mjs} +8 -8
- package/.output/server/_ssr/IosInstall-CEHI8F2M.mjs +615 -0
- package/.output/server/_ssr/NativeBuildsNav-2xSHyA1a.mjs +38 -0
- package/.output/server/_ssr/{NotFoundPage-DB5cXeVZ.mjs → NotFoundPage-D6H9vxj_.mjs} +3 -3
- package/.output/server/_ssr/{PlatformIcon-CFLiTjh1.mjs → PlatformIcon-BpGOEXjU.mjs} +13 -3
- package/.output/server/_ssr/RelativeTime-DpEVzDP9.mjs +237 -0
- package/.output/server/_ssr/{git-CTA8Aqr0.mjs → RolloutPercentageBadge-DW8-_w30.mjs} +20 -4
- package/.output/server/_ssr/RowReason-C-PjIxzq.mjs +186 -0
- package/.output/server/_ssr/SandboxBadge-CDdNew0R.mjs +97 -0
- package/.output/server/_ssr/TargetDisplay-BBsP7IaZ.mjs +83 -0
- package/.output/server/_ssr/{alert-dialog-DxboqQmd.mjs → alert-dialog-Bd4E9xdw.mjs} +2 -2
- package/.output/server/_ssr/{api-cvzOLlTy.mjs → api-BT7aA8UM.mjs} +167 -33
- package/.output/server/_ssr/{api-keys-C3QCQvpV.mjs → api-keys-D2NvcQZv.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-CrbGr02t.mjs → api-keys-DjWpM20P.mjs} +11 -10
- package/.output/server/_ssr/{api-keys-rpc-BcTQzRLj.mjs → api-keys-rpc-nM5H7V7f.mjs} +4 -4
- package/.output/server/_ssr/{api-rpc-B48nsUak.mjs → api-rpc-DX4HynbW.mjs} +83 -35
- package/.output/server/_ssr/{auth-rpc-C0gtG9nJ.mjs → auth-rpc-LCxTtYz2.mjs} +5 -5
- package/.output/server/_ssr/{auth.server-B0JikHOQ.mjs → auth.server-CERo_xef.mjs} +797 -174
- package/.output/server/_ssr/{badge-oO-0mLsr.mjs → badge-Dpp4q7sD.mjs} +4 -45
- package/.output/server/_ssr/{bundleActivity-MLrjNJCT.mjs → bundleActivity-BP40zYSt.mjs} +1 -1
- package/.output/server/_ssr/card-CFCftDfI.mjs +49 -0
- package/.output/server/_ssr/{config.server-CJVHGJtr.mjs → config.server-5W5WD8x2.mjs} +4 -4
- package/.output/server/_ssr/{console-access-4TW5Af_n.mjs → console-access-B0S5YFUa.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-DfzZRyXa.mjs → console-features-api-CV_EReEj.mjs} +4 -4
- package/.output/server/_ssr/{console-features-rpc-DqNpa3U9.mjs → console-features-rpc-D3xlQsuy.mjs} +4 -4
- package/.output/server/_ssr/{console-features-BTV-XuhQ.mjs → console-features-xaGDhRC9.mjs} +1 -1
- package/.output/server/_ssr/{createServerRpc-BVvRVOz5.mjs → createServerRpc-DJZel12M.mjs} +1 -1
- package/.output/server/_ssr/{databaseConfig-B_Bg7qS5.mjs → databaseConfig-XAvDetmn.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-kS7cvEtz.mjs → databaseJsonValue-DuUoft8j.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-B6H8Cmgq.mjs → databaseRows-BtRVBD0C.mjs} +3 -3
- package/.output/server/_ssr/deviceProfileToken-CwWb1lPq.mjs +82 -0
- package/.output/server/_ssr/{dialog-DsuMZ5oh.mjs → dialog-DQR_QI_X.mjs} +2 -2
- package/.output/server/_ssr/{dist-TEpM_UAD.mjs → dist-B6-irDRA.mjs} +1 -1
- package/.output/server/_ssr/{downloadBundle-DCmr7vsj.mjs → downloadBundle-DnoYpi36.mjs} +1 -1
- package/.output/server/_ssr/{empty-r4kJO91t.mjs → empty-C7PFnkCH.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-BA2eg11O.mjs} +3 -3
- package/.output/server/_ssr/{field-DfXmt9CS.mjs → field-BqYN8sZT.mjs} +3 -3
- package/.output/server/_ssr/foldedPage-CqpVk31Q.mjs +176 -0
- package/.output/server/_ssr/{getBundleChildren-rtkEEJw5.mjs → getBundleChildren-CdqFonhl.mjs} +2 -2
- package/.output/server/_ssr/{input-group-BCO7zTpU.mjs → input-group-Brv0mmyp.mjs} +2 -2
- package/.output/server/_ssr/{insights-CRu5FUj8.mjs → insights--xI3A0KI.mjs} +5 -5
- package/.output/server/_ssr/{insights-DrrhPDER.mjs → insights-CD1e3EnW.mjs} +2 -2
- package/.output/server/_ssr/{insights-Csqlj6u7.mjs → insights-Dd0VdO-1.mjs} +27 -26
- package/.output/server/_ssr/{insights-api-NW5VCXqg.mjs → insights-api-Bt2XVa4Y.mjs} +5 -5
- package/.output/server/_ssr/{insights-errors-7BCwFybo.mjs → insights-errors-CXHg1lLV.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-B9VPkzZE.mjs → insights-failures-7zH97WOO.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-CoFrAOK9.mjs → insights-failures-rpc-DBGzXP5A.mjs} +11 -11
- package/.output/server/_ssr/{insights-recovery-BtXVU3ro.mjs → insights-recovery-BhOg6kz2.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-sud_FyGW.mjs → insights-recovery-rpc-C6fAh-i_.mjs} +7 -7
- package/.output/server/_ssr/{insights-rpc-Ce2Isz9q.mjs → insights-rpc-pThKC9oj.mjs} +4 -4
- package/.output/server/_ssr/{insights-search-B0O3YoO2.mjs → insights-search-iFN4UaUv.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-DiGnuxW8.mjs → insights-usage-h8fipPTv.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-Cwf1t4aW.mjs → insights-usage-rpc-B-RLvdLZ.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-rpc-C-cS2F9s.mjs → insights-usage-rpc-CGHZQ9jq.mjs} +7 -7
- package/.output/server/_ssr/{insightsUsage-ClAmoUz8.mjs → insightsUsage-BjSiV_X_.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-DIkh5VqM.mjs → insights_.distribution-C6iXJ93Y.mjs} +15 -14
- package/.output/server/_ssr/{insights_.distribution-D52TkQ2V.mjs → insights_.distribution-E6Ns2aN7.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution--3aR6Kpy.mjs → insights_.distribution-xHmfwwa5.mjs} +5 -5
- package/.output/server/_ssr/{installations-Bu4Lb0x9.mjs → installations-7V-Xyui8.mjs} +12 -12
- package/.output/server/_ssr/{installations-DftevpDt.mjs → installations-CZnN6slr.mjs} +4 -4
- package/.output/server/_ssr/{installations-C818mFCp.mjs → installations-D6Upc9Rt.mjs} +2 -2
- package/.output/server/_ssr/ios-devices-rpc-CXuHk24G.mjs +139 -0
- package/.output/server/_ssr/iosDeviceProfile-BESi_onx.mjs +176 -0
- package/.output/server/_ssr/iosDevices-BmvvvZRo.mjs +129 -0
- package/.output/server/_ssr/listReleases-DYYA5alS.mjs +94 -0
- package/.output/server/_ssr/{request-guard-CPdRBuGW.mjs → local-console-Dtxlsav0.mjs} +2 -9
- package/.output/server/_ssr/{native-builds-DOASMwGh.mjs → native-builds-BUojmVWC.mjs} +3 -3
- package/.output/server/_ssr/native-builds-BXBkklfA.mjs +197 -0
- package/.output/server/_ssr/native-builds-BhDCE89P.mjs +717 -0
- package/.output/server/_ssr/{native-builds_._buildId-CTytnLBB.mjs → native-builds_._buildId-DRiCNDdO.mjs} +3 -3
- package/.output/server/_ssr/native-builds_._buildId-DkMpG-OB.mjs +1176 -0
- package/.output/server/_ssr/native-builds_.devices-DSideebA.mjs +10 -0
- package/.output/server/_ssr/native-builds_.devices-DsOx1R36.mjs +702 -0
- package/.output/server/_ssr/nativeBuildDownloadLink-DDAUVU8q.mjs +96 -0
- package/.output/server/_ssr/nativeBuildInstall-CcBrfTsc.mjs +250 -0
- package/.output/server/_ssr/nativeBuilds-Cub0EUGN.mjs +287 -0
- package/.output/server/_ssr/{plugins-RIryUNWj.mjs → plugins-CX7wutet.mjs} +6 -6
- package/.output/server/_ssr/publicConsoleBase-f67NLLXZ.mjs +610 -0
- package/.output/server/_ssr/{release-adoption-DoAtNPED.mjs → release-adoption-DeICczY7.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-OizwttJD.mjs → release-adoption-rpc-BjMXMi9A.mjs} +9 -9
- package/.output/server/_ssr/{releaseAdoption-a2byXMfz.mjs → releaseAdoption-kHZo8P90.mjs} +4 -4
- package/.output/server/_ssr/{releaseCatalogCompiler-DLcean2k.mjs → releaseCatalogCompiler-D9dAMI17.mjs} +3 -3
- package/.output/server/_ssr/{releaseManagement-DHUux2az.mjs → releaseManagement-EPhok_Py.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-DZOK_dH-.mjs → releaseReachability-DaZ7ifUF.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DaBgnVnL.mjs → remote-config-B1iZuZOF.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-Dypc_nuk.mjs → remote-config-C_DprbJz.mjs} +23 -22
- package/.output/server/_ssr/{remote-config-DZu7gJLL.mjs → remote-config-C_q6FBE4.mjs} +3 -3
- package/.output/server/_ssr/{remote-config-rpc-DOfPhqli.mjs → remote-config-rpc-BFTPcMfZ.mjs} +5 -5
- package/.output/server/_ssr/request-guard-BPLyogIN.mjs +11 -0
- package/.output/server/_ssr/{router-BkRbvels.mjs → router-BDXPwfwl.mjs} +92 -59
- package/.output/server/_ssr/{routes-D9JnXVWL.mjs → routes-BJeztqpQ.mjs} +388 -432
- package/.output/server/_ssr/{routes-BeTsUkNX.mjs → routes-DpapxHLc.mjs} +14 -17
- package/.output/server/_ssr/{runtime.server-BdMY1blX.mjs → runtime.server-CkSbWaZm.mjs} +4 -4
- package/.output/server/_ssr/{schema-ChlRtZIo.mjs → schema-3oDJJFWa.mjs} +1 -1
- package/.output/server/_ssr/{schema-migration-rpc-B2VGxRY6.mjs → schema-migration-rpc-a4bLEdaP.mjs} +4 -4
- package/.output/server/_ssr/{select-Cywc0NmT.mjs → select-C9HpIZxd.mjs} +2 -2
- package/.output/server/_ssr/{server-Ds-fU1zf.mjs → server-C8ZmMWnn.mjs} +7 -7
- package/.output/server/_ssr/{sidebar-t0NiN0-2.mjs → sidebar-BrVL3L7R.mjs} +3 -3
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-BvDsQehg.mjs → start-D3noqqOK.mjs} +2 -2
- package/.output/server/_ssr/{switch-D1T38CnM.mjs → switch-DtnsoZHO.mjs} +3 -3
- package/.output/server/_ssr/{table-L9ZQgxNF.mjs → table-Bg7nCnct.mjs} +2 -2
- package/.output/server/_ssr/{tabs-BiByrAnU.mjs → tabs-BEIoGLTL.mjs} +4 -4
- package/.output/server/_ssr/{updateFailures-n-tGv90S.mjs → updateFailures-D0bP_Ume.mjs} +3 -3
- package/.output/server/_ssr/{uuidv7-BIF4nb_q.mjs → uuidv7-CmHbryZT.mjs} +2 -2
- package/.output/server/_ssr/{version-CQ98ZBpL-CWSkTT9J.mjs → version-CQ98ZBpL-NmbU0MD2.mjs} +1 -1
- package/.output/server/_tanstack-start-manifest_v-C_TPyfFP.mjs +225 -0
- package/.output/server/index.mjs +479 -381
- package/lib/index.d.mts +9 -0
- package/package.json +7 -30
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/DataTable.tsx +347 -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 +69 -0
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/api-keys/ApiKeysPage.tsx +1 -1
- package/src/components/features/channels/ChannelManagementDialog.tsx +5 -10
- package/src/components/features/insights/ReleaseActivity.tsx +1 -1
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +108 -58
- 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 +310 -67
- package/src/components/features/native-builds/IosDevicesPage.tsx +944 -0
- package/src/components/features/native-builds/IosInstall.tsx +632 -0
- package/src/components/features/native-builds/IpaDevicesCard.tsx +111 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +21 -4
- package/src/components/features/native-builds/NativeBuildsNav.tsx +44 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +65 -76
- package/src/components/features/native-builds/NativeBuildsTable.tsx +668 -318
- package/src/components/features/native-builds/OlderBuildLabel.tsx +61 -0
- package/src/components/features/native-builds/PatchesCard.tsx +3 -2
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +4 -4
- 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 +19 -0
- package/src/components/features/remote-config/PublishDialog.tsx +4 -1
- package/src/components/features/remote-config/VersionsCard.tsx +5 -2
- package/src/components/ui/badge.tsx +2 -0
- package/src/components/ui/sonner.tsx +3 -1
- package/src/index.ts +9 -0
- package/src/lib/api-rpc.ts +124 -35
- package/src/lib/api.ts +150 -14
- package/src/lib/ios-devices-api.ts +110 -0
- package/src/lib/ios-devices-rpc.ts +183 -0
- package/src/lib/native-builds.ts +160 -17
- package/src/lib/server/console-runtime.server.ts +9 -2
- package/src/lib/server/deviceProfileToken.ts +187 -0
- package/src/lib/server/foldedPage.ts +360 -0
- package/src/lib/server/iosDeviceProfile.ts +230 -0
- package/src/lib/server/iosDevices.ts +223 -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 +495 -0
- package/src/lib/server/nativeBuilds.ts +308 -59
- package/src/lib/server/plistText.ts +17 -0
- package/src/lib/server/publicConsoleBase.ts +17 -0
- package/src/routeTree.gen.ts +85 -18
- package/src/routes/-native-builds-search.ts +20 -0
- 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/native-builds/$buildId/manifest[.]plist.ts +22 -0
- package/src/routes/api/native-builds/$buildId/download.ts +22 -1
- package/src/routes/index.tsx +541 -532
- package/src/routes/native-builds_.devices.tsx +21 -0
- package/src/styles.css +24 -0
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.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/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/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/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-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/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/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/RolloutPercentageBadge-vmwE8iae.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-DE4vgy5B.mjs +0 -139
- package/.output/server/_ssr/listReleases-D_GY00SQ.mjs +0 -79
- package/.output/server/_ssr/native-builds-CWjU--fI.mjs +0 -510
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +0 -137
- package/.output/server/_ssr/native-builds_._buildId-D4lYJLIU.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/_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/.output/public/assets/{uuidv7-zXMtwR9Q.js → uuidv7-DAoOOpz9.js} +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import { w as isUUIDv7 } from "./dist-TEpM_UAD.mjs";
|
|
2
|
-
import { s as nativeBuildDownloadPath } from "./native-builds-DhXL5zf_.mjs";
|
|
3
|
-
import { t as qrCodePath } from "./qr-code-C7kNRIDX.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildQr-84cnFQPX.js
|
|
5
|
-
/** The header that carries the download URL the QR code holds. */
|
|
6
|
-
var DOWNLOAD_URL_HEADER = "x-hot-updater-download-url";
|
|
7
|
-
/** The pixel size of one module, so the image is legible at its own size. */
|
|
8
|
-
var MODULE_PX = 6;
|
|
9
|
-
var refusal = (status, message) => new Response(message, {
|
|
10
|
-
status,
|
|
11
|
-
headers: {
|
|
12
|
-
"cache-control": "no-store",
|
|
13
|
-
"content-type": "text/plain; charset=utf-8"
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
/**
|
|
17
|
-
* The URL of a native build's console download, under the console path the
|
|
18
|
-
* QR request came to: the console answers it with a fresh storage URL on
|
|
19
|
-
* each request, so it never expires.
|
|
20
|
-
*/
|
|
21
|
-
var nativeBuildDownloadUrl = (request, id) => {
|
|
22
|
-
const url = new URL(request.url);
|
|
23
|
-
const base = url.pathname.endsWith("/_hot-updater/native-builds/qr") ? url.pathname.slice(0, -30) : "";
|
|
24
|
-
return `${url.origin}${base}${nativeBuildDownloadPath(id)}`;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* The QR code of a native build's download URL, `<console>/api/native-builds/
|
|
28
|
-
* <id>/download`, as an SVG image, served at
|
|
29
|
-
* `/_hot-updater/native-builds/qr?build=<id>` without a session: a pull
|
|
30
|
-
* request comment shows it, and GitHub fetches a comment's images
|
|
31
|
-
* anonymously. It reads nothing, no database and no storage, so it says
|
|
32
|
-
* nothing about whether the build exists; the download itself asks for the
|
|
33
|
-
* session. The response's `x-hot-updater-download-url` header is the URL.
|
|
34
|
-
*
|
|
35
|
-
* - 400: `build` is missing or not a UUIDv7;
|
|
36
|
-
* - 405: a method other than GET or HEAD.
|
|
37
|
-
*/
|
|
38
|
-
var serveNativeBuildQr = (request) => {
|
|
39
|
-
if (request.method !== "GET" && request.method !== "HEAD") {
|
|
40
|
-
const response = refusal(405, "Method Not Allowed");
|
|
41
|
-
response.headers.set("allow", "GET, HEAD");
|
|
42
|
-
return response;
|
|
43
|
-
}
|
|
44
|
-
const id = new URL(request.url).searchParams.get("build");
|
|
45
|
-
if (id === null || !isUUIDv7(id)) return refusal(400, "Pass ?build=<native build ID>.");
|
|
46
|
-
const downloadUrl = nativeBuildDownloadUrl(request, id);
|
|
47
|
-
const { size, path } = qrCodePath(downloadUrl);
|
|
48
|
-
const pixels = size * MODULE_PX;
|
|
49
|
-
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${pixels}" height="${pixels}" viewBox="0 0 ${size} ${size}" shape-rendering="crispEdges"><rect fill="#fff" width="${size}" height="${size}"/><path fill="#000" d="${path}"/></svg>`;
|
|
50
|
-
return new Response(request.method === "HEAD" ? null : svg, { headers: {
|
|
51
|
-
"cache-control": "public, max-age=86400",
|
|
52
|
-
"content-type": "image/svg+xml",
|
|
53
|
-
"content-security-policy": "default-src 'none'",
|
|
54
|
-
"x-content-type-options": "nosniff",
|
|
55
|
-
[DOWNLOAD_URL_HEADER]: downloadUrl
|
|
56
|
-
} });
|
|
57
|
-
};
|
|
58
|
-
//#endregion
|
|
59
|
-
export { serveNativeBuildQr };
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { a as nativeBuildCatalogScopeKey, l as nativeBuildScope, o as nativeBuildChannel } from "./native-builds-DhXL5zf_.mjs";
|
|
2
|
-
import { n as projectCompiledCatalog } from "./releaseCatalogCompiler-DLcean2k.mjs";
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuilds-B_7BPjt_.js
|
|
4
|
-
/**
|
|
5
|
-
* One page newest first, from one keyset read: newest first for the next
|
|
6
|
-
* page, oldest first (then reversed) for the previous one. `next` is set
|
|
7
|
-
* for a full page, so the last page may lead to an empty one.
|
|
8
|
-
*/
|
|
9
|
-
async function keysetPage(read, keyOf, { before, after, limit }) {
|
|
10
|
-
const data = after === void 0 ? await read({
|
|
11
|
-
order: "desc",
|
|
12
|
-
limit,
|
|
13
|
-
...before === void 0 ? {} : { after: before }
|
|
14
|
-
}) : [...await read({
|
|
15
|
-
order: "asc",
|
|
16
|
-
after,
|
|
17
|
-
limit
|
|
18
|
-
})].reverse();
|
|
19
|
-
const first = data[0];
|
|
20
|
-
const last = data.at(-1);
|
|
21
|
-
const full = data.length === limit;
|
|
22
|
-
return {
|
|
23
|
-
data,
|
|
24
|
-
...last !== void 0 && (after !== void 0 || full) ? { next: keyOf(last) } : {},
|
|
25
|
-
...first !== void 0 && (after === void 0 ? before : full) ? { previous: keyOf(first) } : {}
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* One page of native builds, newest first: one read of the registry's ID
|
|
30
|
-
* index, or of its channel index for one channel's builds.
|
|
31
|
-
*/
|
|
32
|
-
function listNativeBuilds(core, { channelId, ...page }) {
|
|
33
|
-
return keysetPage((input) => core.listNativeBuilds({
|
|
34
|
-
...input,
|
|
35
|
-
...channelId === void 0 ? {} : { channelId }
|
|
36
|
-
}), ({ id }) => id, page);
|
|
37
|
-
}
|
|
38
|
-
/** How many patches one page of a build's patches lists. */
|
|
39
|
-
var NATIVE_BUILD_PATCH_PAGE_SIZE = 20;
|
|
40
|
-
/**
|
|
41
|
-
* One page of the patches from a built-in bundle, newest target first: one
|
|
42
|
-
* read of the patches index. The patch rows carry what the page shows, so
|
|
43
|
-
* no bundle is read.
|
|
44
|
-
*/
|
|
45
|
-
function listNativeBuildPatches(core, minBundleId, page) {
|
|
46
|
-
return keysetPage(async (input) => (await core.listPatchesFromBase(minBundleId, input)).map(({ bundle_id, byte_size }) => ({
|
|
47
|
-
bundleId: bundle_id,
|
|
48
|
-
byteSize: byte_size
|
|
49
|
-
})), ({ bundleId }) => bundleId, page);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Everything a native build's page shows, in five reads whatever the
|
|
53
|
-
* build: the build, then its built-in bundle, its scope's newest build, its
|
|
54
|
-
* scope's catalog, and one page of patches from it. Null for an unknown ID.
|
|
55
|
-
*/
|
|
56
|
-
async function getNativeBuildDetail(core, id) {
|
|
57
|
-
const build = await core.getNativeBuild(id);
|
|
58
|
-
if (build === null) return null;
|
|
59
|
-
const catalogScopeKey = nativeBuildCatalogScopeKey(build);
|
|
60
|
-
const [builtIn, newestInScope, catalog, patches] = await Promise.all([
|
|
61
|
-
core.getBundle(build.min_bundle_id),
|
|
62
|
-
core.findNativeBuild(nativeBuildScope(build)),
|
|
63
|
-
core.getReleaseCatalogRow(catalogScopeKey),
|
|
64
|
-
listNativeBuildPatches(core, build.min_bundle_id, { limit: 20 })
|
|
65
|
-
]);
|
|
66
|
-
const servedNow = catalog === null || catalog.is_tombstone ? [] : projectCompiledCatalog(JSON.parse(catalog.payload), build.app_version ?? void 0).filter(({ bundleId }) => bundleId !== null && bundleId >= build.min_bundle_id);
|
|
67
|
-
return {
|
|
68
|
-
build,
|
|
69
|
-
channel: nativeBuildChannel(build),
|
|
70
|
-
catalogScopeKey,
|
|
71
|
-
builtInBundle: builtIn === null ? null : { childCount: builtIn.childCount },
|
|
72
|
-
newestInScope,
|
|
73
|
-
servedNow,
|
|
74
|
-
patches
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
var protocolOf = (storageUri) => new URL(storageUri).protocol.replace(":", "");
|
|
78
|
-
/** The storage that holds `storageUri`, by its protocol. */
|
|
79
|
-
var storageFor = (storage, storageUri) => storage.protocol === protocolOf(storageUri) ? storage : void 0;
|
|
80
|
-
/** A public URL no storage owns, which is its own download URL. */
|
|
81
|
-
var isPublicUrl = (storageUri) => ["http", "https"].includes(protocolOf(storageUri));
|
|
82
|
-
/**
|
|
83
|
-
* The URL a phone downloads a native build's artifact from, without the
|
|
84
|
-
* console's sign-in: the storage's download URL, which may expire. Null
|
|
85
|
-
* when the storage gives none, or the build is gone.
|
|
86
|
-
*/
|
|
87
|
-
async function resolveNativeBuildDownloadUrl(id, { core, storage }) {
|
|
88
|
-
const build = await core.getNativeBuild(id);
|
|
89
|
-
if (build === null) return null;
|
|
90
|
-
const storageUri = build.artifact_storage_uri;
|
|
91
|
-
const adapter = storageFor(storage, storageUri);
|
|
92
|
-
if (adapter?.getDownloadUrl !== void 0) return (await adapter.getDownloadUrl({ storageUri })).url;
|
|
93
|
-
return adapter === void 0 && isPublicUrl(storageUri) ? storageUri : null;
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* Downloads a native build's artifact: a redirect to the storage's download
|
|
97
|
-
* URL, or the object streamed through the console when the storage gives
|
|
98
|
-
* no URL. The redirect is resolved on each request, so the console's link
|
|
99
|
-
* never expires.
|
|
100
|
-
*/
|
|
101
|
-
async function downloadNativeBuild(id, { core, storage }) {
|
|
102
|
-
const build = await core.getNativeBuild(id);
|
|
103
|
-
if (build === null) return new Response("Build not found", { status: 404 });
|
|
104
|
-
const storageUri = build.artifact_storage_uri;
|
|
105
|
-
const adapter = storageFor(storage, storageUri);
|
|
106
|
-
if (adapter?.getDownloadUrl !== void 0) {
|
|
107
|
-
const { url } = await adapter.getDownloadUrl({ storageUri });
|
|
108
|
-
return new Response(null, {
|
|
109
|
-
headers: {
|
|
110
|
-
"cache-control": "private, no-store",
|
|
111
|
-
location: url
|
|
112
|
-
},
|
|
113
|
-
status: 302
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
if (adapter?.get !== void 0) {
|
|
117
|
-
const { response } = await adapter.get({ storageUri });
|
|
118
|
-
if (!response) return new Response("Storage object not found", { status: 404 });
|
|
119
|
-
const fileName = decodeURIComponent(storageUri.split("/").at(-1) ?? "");
|
|
120
|
-
const headers = new Headers(response.headers);
|
|
121
|
-
headers.set("cache-control", "private, no-store");
|
|
122
|
-
headers.set("content-disposition", `attachment; filename*=UTF-8''${encodeURIComponent(fileName)}`);
|
|
123
|
-
return new Response(response.body, {
|
|
124
|
-
headers,
|
|
125
|
-
status: response.status,
|
|
126
|
-
statusText: response.statusText
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
if (adapter === void 0 && isPublicUrl(storageUri)) return Response.redirect(storageUri, 302);
|
|
130
|
-
return new Response(`No storage adapter for protocol: ${protocolOf(storageUri)}`, { status: 503 });
|
|
131
|
-
}
|
|
132
|
-
//#endregion
|
|
133
|
-
export { NATIVE_BUILD_PATCH_PAGE_SIZE, downloadNativeBuild, getNativeBuildDetail, listNativeBuildPatches, listNativeBuilds, resolveNativeBuildDownloadUrl };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { t as encode } from "../_libs/uqr.mjs";
|
|
2
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/qr-code-C7kNRIDX.js
|
|
3
|
-
/**
|
|
4
|
-
* A QR code of `value` as one SVG path of unit squares, with the standard
|
|
5
|
-
* four-module quiet zone: `size` is the side of its viewBox.
|
|
6
|
-
*/
|
|
7
|
-
var qrCodePath = (value) => {
|
|
8
|
-
const { data, size } = encode(value, {
|
|
9
|
-
ecc: "M",
|
|
10
|
-
border: 4
|
|
11
|
-
});
|
|
12
|
-
let path = "";
|
|
13
|
-
data.forEach((row, y) => row.forEach((dark, x) => {
|
|
14
|
-
if (dark) path += `M${x} ${y}h1v1h-1z`;
|
|
15
|
-
}));
|
|
16
|
-
return {
|
|
17
|
-
size,
|
|
18
|
-
path
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
//#endregion
|
|
22
|
-
export { qrCodePath as t };
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/_tanstack-start-manifest_v-B5nsO5L4.js
|
|
2
|
-
var tsrStartManifest = () => ({ routes: {
|
|
3
|
-
__root__: {
|
|
4
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/__root.tsx",
|
|
5
|
-
children: [
|
|
6
|
-
"/",
|
|
7
|
-
"/api-keys",
|
|
8
|
-
"/insights",
|
|
9
|
-
"/installations",
|
|
10
|
-
"/native-builds",
|
|
11
|
-
"/remote-config",
|
|
12
|
-
"/insights_/distribution",
|
|
13
|
-
"/native-builds_/$buildId",
|
|
14
|
-
"/_hot-updater/native-builds/qr",
|
|
15
|
-
"/api/auth/$",
|
|
16
|
-
"/api/bundles/$bundleId/download",
|
|
17
|
-
"/api/native-builds/$buildId/download"
|
|
18
|
-
],
|
|
19
|
-
preloads: [
|
|
20
|
-
"/assets/index-CqP5HPV6.js",
|
|
21
|
-
"/assets/sidebar-Di9SN47G.js",
|
|
22
|
-
"/assets/preload-helper-B44EvKhG.js",
|
|
23
|
-
"/assets/link-DTEyW70e.js",
|
|
24
|
-
"/assets/remote-config-B7ujqhLa.js",
|
|
25
|
-
"/assets/alert-dialog-BqYScr9y.js",
|
|
26
|
-
"/assets/select-CBIU0_M1.js",
|
|
27
|
-
"/assets/useCompositeListItem-JmyDfo3-.js",
|
|
28
|
-
"/assets/check-CXVR3s3X.js",
|
|
29
|
-
"/assets/tabs-Xmt7tZeG.js",
|
|
30
|
-
"/assets/switch-BpdiHL_t.js",
|
|
31
|
-
"/assets/useInfiniteQuery-DX4WpBRG.js",
|
|
32
|
-
"/assets/useMutation-DbYw7boA.js",
|
|
33
|
-
"/assets/console-features-api-DEXSwFtc.js",
|
|
34
|
-
"/assets/relativeTime-YQt84dYr.js",
|
|
35
|
-
"/assets/arrow-right-CNII8TYn.js",
|
|
36
|
-
"/assets/clipboard-DQbOcrL7.js",
|
|
37
|
-
"/assets/history-DqHlgSuV.js",
|
|
38
|
-
"/assets/plus-BReVKct-.js",
|
|
39
|
-
"/assets/refresh-cw-B9HHjLej.js",
|
|
40
|
-
"/assets/input-group-D3OUBk4n.js",
|
|
41
|
-
"/assets/search-BCel4Oy6.js",
|
|
42
|
-
"/assets/smartphone-CMaSy_ir.js",
|
|
43
|
-
"/assets/badge-DWFcDWho.js",
|
|
44
|
-
"/assets/undo-2-CUX96_BG.js",
|
|
45
|
-
"/assets/dist-CPlO6ko9.js",
|
|
46
|
-
"/assets/PlatformIcon-BBWQlWm9.js",
|
|
47
|
-
"/assets/dialog-CNUPxNxH.js",
|
|
48
|
-
"/assets/empty-B3Uwdd6k.js",
|
|
49
|
-
"/assets/field-D-2-mnNh.js",
|
|
50
|
-
"/assets/api-P2g8dCNg.js",
|
|
51
|
-
"/assets/arrow-up-right-DK8Zdg40.js",
|
|
52
|
-
"/assets/routes-CCD33Azv.js",
|
|
53
|
-
"/assets/insights-api-BVCXJsoV.js",
|
|
54
|
-
"/assets/key-round-DwNKkHhy.js",
|
|
55
|
-
"/assets/insights-search-DghCbEnk.js",
|
|
56
|
-
"/assets/uuidv7-zXMtwR9Q.js",
|
|
57
|
-
"/assets/native-builds_._buildId-DvQDKnUQ.js",
|
|
58
|
-
"/assets/-native-builds-search-C-TGpFAm.js",
|
|
59
|
-
"/assets/copy-DsuLj3oj.js",
|
|
60
|
-
"/assets/rotate-cw-Cv2aVbYr.js",
|
|
61
|
-
"/assets/NotFoundPage-DZ3DxyRA.js",
|
|
62
|
-
"/assets/installations-B674P5Z5.js",
|
|
63
|
-
"/assets/insights-NK5B6ReS.js",
|
|
64
|
-
"/assets/insights_.distribution-CJvgwcVZ.js",
|
|
65
|
-
"/assets/native-builds-D6rldpSh.js"
|
|
66
|
-
],
|
|
67
|
-
scripts: [{ attrs: {
|
|
68
|
-
type: "module",
|
|
69
|
-
async: !0,
|
|
70
|
-
src: "/assets/index-CqP5HPV6.js"
|
|
71
|
-
} }]
|
|
72
|
-
},
|
|
73
|
-
"/": {
|
|
74
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/index.tsx",
|
|
75
|
-
children: void 0,
|
|
76
|
-
preloads: [
|
|
77
|
-
"/assets/routes-BDdBIxYS.js",
|
|
78
|
-
"/assets/valueToPercent-BLwGy_xK.js",
|
|
79
|
-
"/assets/native-builds-BOC71grI.js",
|
|
80
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
81
|
-
"/assets/circle-off-C7Muo0ss.js",
|
|
82
|
-
"/assets/download-Cf24LBde.js",
|
|
83
|
-
"/assets/list--NIee1FZ.js",
|
|
84
|
-
"/assets/HashValueDisplay-6lNRxDJX.js",
|
|
85
|
-
"/assets/RolloutPercentageBadge-Cxogpi8F.js",
|
|
86
|
-
"/assets/table-Bpy3SvSo.js"
|
|
87
|
-
]
|
|
88
|
-
},
|
|
89
|
-
"/api-keys": {
|
|
90
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/api-keys.tsx",
|
|
91
|
-
children: void 0,
|
|
92
|
-
preloads: [
|
|
93
|
-
"/assets/api-keys-DWQC2q6y.js",
|
|
94
|
-
"/assets/ConsoleFeatureUnavailable-CUtcXuY2.js",
|
|
95
|
-
"/assets/api-keys-FueRkF9q.js",
|
|
96
|
-
"/assets/table-Bpy3SvSo.js"
|
|
97
|
-
]
|
|
98
|
-
},
|
|
99
|
-
"/insights": {
|
|
100
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/insights.tsx",
|
|
101
|
-
children: void 0,
|
|
102
|
-
preloads: [
|
|
103
|
-
"/assets/insights-B-0odqpt.js",
|
|
104
|
-
"/assets/insights-usage-rpc-CKQH0pUS.js",
|
|
105
|
-
"/assets/valueToPercent-BLwGy_xK.js",
|
|
106
|
-
"/assets/EventDetails-Dl2RvPAk.js",
|
|
107
|
-
"/assets/download-Cf24LBde.js",
|
|
108
|
-
"/assets/HashValueDisplay-6lNRxDJX.js",
|
|
109
|
-
"/assets/InsightsPageHeader-DHhqY3DT.js",
|
|
110
|
-
"/assets/list--NIee1FZ.js",
|
|
111
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
112
|
-
"/assets/circle-off-C7Muo0ss.js",
|
|
113
|
-
"/assets/table-Bpy3SvSo.js",
|
|
114
|
-
"/assets/insights-BSVGfxSL.js",
|
|
115
|
-
"/assets/ConsoleFeatureUnavailable-CUtcXuY2.js"
|
|
116
|
-
]
|
|
117
|
-
},
|
|
118
|
-
"/installations": {
|
|
119
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/installations.tsx",
|
|
120
|
-
children: void 0,
|
|
121
|
-
preloads: [
|
|
122
|
-
"/assets/installations-BWxczZ2t.js",
|
|
123
|
-
"/assets/EventDetails-Dl2RvPAk.js",
|
|
124
|
-
"/assets/download-Cf24LBde.js",
|
|
125
|
-
"/assets/HashValueDisplay-6lNRxDJX.js",
|
|
126
|
-
"/assets/InsightsPageHeader-DHhqY3DT.js",
|
|
127
|
-
"/assets/list--NIee1FZ.js",
|
|
128
|
-
"/assets/arrow-left-g9cKqXuC.js",
|
|
129
|
-
"/assets/table-Bpy3SvSo.js",
|
|
130
|
-
"/assets/installations-Dv4kWQYz.js",
|
|
131
|
-
"/assets/ConsoleFeatureUnavailable-CUtcXuY2.js"
|
|
132
|
-
]
|
|
133
|
-
},
|
|
134
|
-
"/native-builds": {
|
|
135
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/native-builds.tsx",
|
|
136
|
-
children: void 0,
|
|
137
|
-
preloads: [
|
|
138
|
-
"/assets/native-builds-DAy2678K.js",
|
|
139
|
-
"/assets/native-builds-BOC71grI.js",
|
|
140
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
141
|
-
"/assets/download-Cf24LBde.js",
|
|
142
|
-
"/assets/StoreSubmission-ViTkW4eJ.js",
|
|
143
|
-
"/assets/table-Bpy3SvSo.js"
|
|
144
|
-
]
|
|
145
|
-
},
|
|
146
|
-
"/remote-config": {
|
|
147
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/remote-config.tsx",
|
|
148
|
-
children: void 0,
|
|
149
|
-
preloads: [
|
|
150
|
-
"/assets/remote-config-WjpozBG5.js",
|
|
151
|
-
"/assets/remote-config-gXeH6PBW.js",
|
|
152
|
-
"/assets/ConsoleFeatureUnavailable-CUtcXuY2.js"
|
|
153
|
-
]
|
|
154
|
-
},
|
|
155
|
-
"/insights_/distribution": {
|
|
156
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/insights_.distribution.tsx",
|
|
157
|
-
children: void 0,
|
|
158
|
-
preloads: [
|
|
159
|
-
"/assets/insights_.distribution-DblZM0mO.js",
|
|
160
|
-
"/assets/ConsoleFeatureUnavailable-CUtcXuY2.js",
|
|
161
|
-
"/assets/insights_.distribution-dvk6vYDM.js",
|
|
162
|
-
"/assets/insights-usage-rpc-CKQH0pUS.js",
|
|
163
|
-
"/assets/valueToPercent-BLwGy_xK.js",
|
|
164
|
-
"/assets/arrow-left-g9cKqXuC.js",
|
|
165
|
-
"/assets/InsightsPageHeader-DHhqY3DT.js",
|
|
166
|
-
"/assets/list--NIee1FZ.js"
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
"/native-builds_/$buildId": {
|
|
170
|
-
filePath: "/home/runner/work/hot-updater/hot-updater/packages/console/src/routes/native-builds_.$buildId.tsx",
|
|
171
|
-
children: void 0,
|
|
172
|
-
preloads: [
|
|
173
|
-
"/assets/native-builds_._buildId-DD58_Phd.js",
|
|
174
|
-
"/assets/native-builds-BOC71grI.js",
|
|
175
|
-
"/assets/chevron-right-BoUXo82O.js",
|
|
176
|
-
"/assets/download-Cf24LBde.js",
|
|
177
|
-
"/assets/StoreSubmission-ViTkW4eJ.js",
|
|
178
|
-
"/assets/RolloutPercentageBadge-Cxogpi8F.js",
|
|
179
|
-
"/assets/table-Bpy3SvSo.js"
|
|
180
|
-
]
|
|
181
|
-
}
|
|
182
|
-
} });
|
|
183
|
-
//#endregion
|
|
184
|
-
export { tsrStartManifest };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { isUUIDv7 } from "@hot-updater/protocol";
|
|
2
|
-
|
|
3
|
-
import { nativeBuildDownloadPath } from "../native-builds";
|
|
4
|
-
import { qrCodePath } from "../qr-code";
|
|
5
|
-
|
|
6
|
-
/** The header that carries the download URL the QR code holds. */
|
|
7
|
-
export const DOWNLOAD_URL_HEADER = "x-hot-updater-download-url";
|
|
8
|
-
|
|
9
|
-
/** The route that serves the QR code, under the console's own path. */
|
|
10
|
-
export const NATIVE_BUILD_QR_PATH = "/_hot-updater/native-builds/qr";
|
|
11
|
-
|
|
12
|
-
/** The pixel size of one module, so the image is legible at its own size. */
|
|
13
|
-
const MODULE_PX = 6;
|
|
14
|
-
|
|
15
|
-
const refusal = (status: number, message: string) =>
|
|
16
|
-
new Response(message, {
|
|
17
|
-
status,
|
|
18
|
-
headers: {
|
|
19
|
-
"cache-control": "no-store",
|
|
20
|
-
"content-type": "text/plain; charset=utf-8",
|
|
21
|
-
},
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* The URL of a native build's console download, under the console path the
|
|
26
|
-
* QR request came to: the console answers it with a fresh storage URL on
|
|
27
|
-
* each request, so it never expires.
|
|
28
|
-
*/
|
|
29
|
-
export const nativeBuildDownloadUrl = (request: Request, id: string) => {
|
|
30
|
-
const url = new URL(request.url);
|
|
31
|
-
const base = url.pathname.endsWith(NATIVE_BUILD_QR_PATH)
|
|
32
|
-
? url.pathname.slice(0, -NATIVE_BUILD_QR_PATH.length)
|
|
33
|
-
: "";
|
|
34
|
-
return `${url.origin}${base}${nativeBuildDownloadPath(id)}`;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* The QR code of a native build's download URL, `<console>/api/native-builds/
|
|
39
|
-
* <id>/download`, as an SVG image, served at
|
|
40
|
-
* `/_hot-updater/native-builds/qr?build=<id>` without a session: a pull
|
|
41
|
-
* request comment shows it, and GitHub fetches a comment's images
|
|
42
|
-
* anonymously. It reads nothing, no database and no storage, so it says
|
|
43
|
-
* nothing about whether the build exists; the download itself asks for the
|
|
44
|
-
* session. The response's `x-hot-updater-download-url` header is the URL.
|
|
45
|
-
*
|
|
46
|
-
* - 400: `build` is missing or not a UUIDv7;
|
|
47
|
-
* - 405: a method other than GET or HEAD.
|
|
48
|
-
*/
|
|
49
|
-
export const serveNativeBuildQr = (request: Request): Response => {
|
|
50
|
-
if (request.method !== "GET" && request.method !== "HEAD") {
|
|
51
|
-
const response = refusal(405, "Method Not Allowed");
|
|
52
|
-
response.headers.set("allow", "GET, HEAD");
|
|
53
|
-
return response;
|
|
54
|
-
}
|
|
55
|
-
const id = new URL(request.url).searchParams.get("build");
|
|
56
|
-
if (id === null || !isUUIDv7(id)) {
|
|
57
|
-
return refusal(400, "Pass ?build=<native build ID>.");
|
|
58
|
-
}
|
|
59
|
-
const downloadUrl = nativeBuildDownloadUrl(request, id);
|
|
60
|
-
const { size, path } = qrCodePath(downloadUrl);
|
|
61
|
-
const pixels = size * MODULE_PX;
|
|
62
|
-
const svg = `<svg xmlns="http://www.w3.org/2000/svg" width="${pixels}" height="${pixels}" viewBox="0 0 ${size} ${size}" shape-rendering="crispEdges"><rect fill="#fff" width="${size}" height="${size}"/><path fill="#000" d="${path}"/></svg>`;
|
|
63
|
-
return new Response(request.method === "HEAD" ? null : svg, {
|
|
64
|
-
headers: {
|
|
65
|
-
// The URL depends only on the build ID and the console's own address.
|
|
66
|
-
"cache-control": "public, max-age=86400",
|
|
67
|
-
"content-type": "image/svg+xml",
|
|
68
|
-
"content-security-policy": "default-src 'none'",
|
|
69
|
-
"x-content-type-options": "nosniff",
|
|
70
|
-
[DOWNLOAD_URL_HEADER]: downloadUrl,
|
|
71
|
-
},
|
|
72
|
-
});
|
|
73
|
-
};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { createFileRoute } from "@tanstack/react-router";
|
|
2
|
-
|
|
3
|
-
// A native build's download QR code takes no session and reads nothing:
|
|
4
|
-
// see nativeBuildQr.ts.
|
|
5
|
-
const handle = async ({ request }: { readonly request: Request }) => {
|
|
6
|
-
const { serveNativeBuildQr } = await import("@/lib/server/nativeBuildQr");
|
|
7
|
-
return serveNativeBuildQr(request);
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
export const Route = createFileRoute("/_hot-updater/native-builds/qr")({
|
|
11
|
-
server: {
|
|
12
|
-
handlers: { ANY: handle },
|
|
13
|
-
},
|
|
14
|
-
});
|
|
File without changes
|