@hot-updater/console 1.1.4 → 1.2.0-rc.1
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 +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-C0KfsKWL.js → ConsoleFeatureUnavailable-CUtcXuY2.js} +1 -1
- package/.output/public/assets/EventDetails-Dl2RvPAk.js +1 -0
- package/.output/public/assets/HashValueDisplay-6lNRxDJX.js +1 -0
- package/.output/public/assets/InsightsPageHeader-DHhqY3DT.js +1 -0
- package/.output/public/assets/NotFoundPage-DZ3DxyRA.js +1 -0
- package/.output/public/assets/PlatformIcon-BBWQlWm9.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-Cxogpi8F.js +1 -0
- package/.output/public/assets/StoreSubmission-JpngSvHS.js +1 -0
- package/.output/public/assets/alert-dialog-BqYScr9y.js +1 -0
- package/.output/public/assets/api-P2g8dCNg.js +1 -0
- package/.output/public/assets/api-keys-DWQC2q6y.js +1 -0
- package/.output/public/assets/api-keys-FueRkF9q.js +1 -0
- package/.output/public/assets/arrow-left-g9cKqXuC.js +1 -0
- package/.output/public/assets/arrow-right-CNII8TYn.js +1 -0
- package/.output/public/assets/arrow-up-right-DK8Zdg40.js +1 -0
- package/.output/public/assets/badge-DWFcDWho.js +1 -0
- package/.output/public/assets/check-CXVR3s3X.js +1 -0
- package/.output/public/assets/chevron-right-BoUXo82O.js +1 -0
- package/.output/public/assets/circle-off-C7Muo0ss.js +1 -0
- package/.output/public/assets/{clipboard-DTkrlIMn.js → clipboard-DQbOcrL7.js} +1 -1
- package/.output/public/assets/console-features-api-DEXSwFtc.js +1 -0
- package/.output/public/assets/copy-DsuLj3oj.js +1 -0
- package/.output/public/assets/dialog-CNUPxNxH.js +1 -0
- package/.output/public/assets/{dist-dDj-R6uh.js → dist-CPlO6ko9.js} +1 -1
- package/.output/public/assets/download-Cf24LBde.js +1 -0
- package/.output/public/assets/{empty-Bf4DanOL.js → empty-B3Uwdd6k.js} +1 -1
- package/.output/public/assets/{field-GxF9SyUo.js → field-D-2-mnNh.js} +1 -1
- package/.output/public/assets/history-DqHlgSuV.js +1 -0
- package/.output/public/assets/index-BWU6owTG.js +10 -0
- package/.output/public/assets/{input-group-B4nrqIh0.js → input-group-D3OUBk4n.js} +1 -1
- package/.output/public/assets/insights-B-0odqpt.js +42 -0
- package/.output/public/assets/insights-BSVGfxSL.js +1 -0
- package/.output/public/assets/insights-NK5B6ReS.js +2 -0
- package/.output/public/assets/insights-api-BVCXJsoV.js +1 -0
- package/.output/public/assets/insights-search-DghCbEnk.js +1 -0
- package/.output/public/assets/insights-usage-rpc-CKQH0pUS.js +1 -0
- package/.output/public/assets/insights_.distribution-CJvgwcVZ.js +2 -0
- package/.output/public/assets/insights_.distribution-DblZM0mO.js +1 -0
- package/.output/public/assets/insights_.distribution-dvk6vYDM.js +1 -0
- package/.output/public/assets/installations-B674P5Z5.js +2 -0
- package/.output/public/assets/installations-BWxczZ2t.js +1 -0
- package/.output/public/assets/installations-Dv4kWQYz.js +1 -0
- package/.output/public/assets/{key-round-B4fI1psK.js → key-round-DwNKkHhy.js} +1 -1
- package/.output/public/assets/link-DTEyW70e.js +2 -0
- package/.output/public/assets/{list-Dtj7TtzV.js → list--NIee1FZ.js} +1 -1
- package/.output/public/assets/native-builds-BOC71grI.js +1 -0
- package/.output/public/assets/native-builds-BswZazmc.js +1 -0
- package/.output/public/assets/native-builds-c4BpOLAe.js +2 -0
- package/.output/public/assets/native-builds_._buildId-D_Spjl10.js +1 -0
- package/.output/public/assets/native-builds_._buildId-DtoXD8rz.js +2 -0
- package/.output/public/assets/plus-BReVKct-.js +1 -0
- package/.output/public/assets/preload-helper-B44EvKhG.js +1 -0
- package/.output/public/assets/{refresh-cw-DjIKjmrS.js → refresh-cw-B9HHjLej.js} +1 -1
- package/.output/public/assets/relativeTime-YQt84dYr.js +1 -0
- package/.output/public/assets/remote-config-B7ujqhLa.js +6 -0
- package/.output/public/assets/remote-config-WjpozBG5.js +1 -0
- package/.output/public/assets/remote-config-gXeH6PBW.js +1 -0
- package/.output/public/assets/rotate-cw-Cv2aVbYr.js +1 -0
- package/.output/public/assets/routes-BDdBIxYS.js +1 -0
- package/.output/public/assets/routes-CCD33Azv.js +2 -0
- package/.output/public/assets/search-BCel4Oy6.js +1 -0
- package/.output/public/assets/select-CBIU0_M1.js +1 -0
- package/.output/public/assets/{sidebar-BqX460IW.js → sidebar-Di9SN47G.js} +1 -1
- package/.output/public/assets/smartphone-CMaSy_ir.js +1 -0
- package/.output/public/assets/styles-Ccxthuz1.css +2 -0
- package/.output/public/assets/switch-BpdiHL_t.js +1 -0
- package/.output/public/assets/{table-ek1DmRHq.js → table-Bpy3SvSo.js} +1 -1
- package/.output/public/assets/{tabs-CgEH_fMT.js → tabs-Xmt7tZeG.js} +1 -1
- package/.output/public/assets/{undo-2-DxXx9Zvr.js → undo-2-CUX96_BG.js} +1 -1
- package/.output/public/assets/useCompositeListItem-JmyDfo3-.js +1 -0
- package/.output/public/assets/useInfiniteQuery-DX4WpBRG.js +1 -0
- package/.output/public/assets/useMutation-DbYw7boA.js +1 -0
- package/.output/public/assets/uuidv7-zXMtwR9Q.js +1 -0
- package/.output/public/assets/{valueToPercent-B44vDssN.js → valueToPercent-BLwGy_xK.js} +1 -1
- package/.output/server/{__23tanstack-start-server-fn-resolver-KpQ5Z_24.mjs → __23tanstack-start-server-fn-resolver-CygMPYHZ.mjs} +64 -40
- package/.output/server/_chunks/ssr-renderer.mjs +2 -2
- 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/lucide-react.mjs +88 -1
- package/.output/server/_libs/uqr.mjs +858 -0
- package/.output/server/_ssr/-native-builds-search-CwNcoXf4.mjs +37 -0
- package/.output/server/_ssr/{BundleIdDisplay-CjSnY65J.mjs → BundleIdDisplay-DOPz4pUS.mjs} +2 -2
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CHxn9f-w.mjs → ConsoleFeatureUnavailable-Xb1JKqcc.mjs} +7 -7
- package/.output/server/_ssr/{EventDetails-l6dF54zp.mjs → EventDetails-D7MejFCN.mjs} +8 -8
- package/.output/server/_ssr/{HashValueDisplay-Zs7ABoOi.mjs → HashValueDisplay-Dd-wu5rY.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-ZlAlDxQy.mjs → InsightsPageHeader-CWf1n4Vt.mjs} +13 -11
- package/.output/server/_ssr/{NotFoundPage-u28ndvp1.mjs → NotFoundPage-C5rFdUpg.mjs} +2 -2
- package/.output/server/_ssr/PlatformIcon-CFLiTjh1.mjs +29 -0
- package/.output/server/_ssr/RolloutPercentageBadge-g0Bhfl3M.mjs +21 -0
- package/.output/server/_ssr/StoreSubmission-JZ2Zltak.mjs +139 -0
- package/.output/server/_ssr/{alert-dialog-B8AqlJwo.mjs → alert-dialog-CvNvTvIJ.mjs} +1 -1
- package/.output/server/_ssr/{api-C_0B7NXM.mjs → api-0vtwA5vY.mjs} +126 -7
- package/.output/server/_ssr/{api-keys-pRNvn2-9.mjs → api-keys-D5dyA4D1.mjs} +10 -10
- package/.output/server/_ssr/{api-keys-rpc-wecWs0nA.mjs → api-keys-rpc-BOIUHhDi.mjs} +5 -5
- package/.output/server/_ssr/{api-keys-CLH38u9B.mjs → api-keys-yFlQDwQF.mjs} +2 -2
- package/.output/server/_ssr/{api-rpc-DWN8eOHS.mjs → api-rpc-COeFOpYi.mjs} +79 -12
- package/.output/server/_ssr/{auth-UP0wXs4i.mjs → auth-Z-wLddzh.mjs} +1 -1
- package/.output/server/_ssr/{auth-rpc-CLRArbIl.mjs → auth-rpc-D1ss2GUI.mjs} +6 -6
- package/.output/server/_ssr/{auth.server-DR9zc0EU.mjs → auth.server-DYS1OJ6P.mjs} +771 -641
- package/.output/server/_ssr/{badge-BpT7r-ng.mjs → badge-CEdVRgyl.mjs} +1 -1
- package/.output/server/_ssr/{bundleActivity-0qFIcvqt.mjs → bundleActivity-MLrjNJCT.mjs} +1 -1
- package/.output/server/_ssr/{config-WVX4IxSR.mjs → config-CjIBFhJX.mjs} +1 -1
- package/.output/server/_ssr/config.server-NnMFjMFX.mjs +43 -0
- package/.output/server/_ssr/{console-access-aUpQs49I.mjs → console-access-33BNlH97.mjs} +3 -3
- package/.output/server/_ssr/{console-features-4xAGfZHw.mjs → console-features-BTV-XuhQ.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-DSSgCV3v.mjs → console-features-api-v1fSycue.mjs} +6 -6
- package/.output/server/_ssr/{console-features-rpc-D6kMlR2A.mjs → console-features-rpc-C7XNVqm0.mjs} +5 -5
- package/.output/server/_ssr/createCsrfMiddleware-BwHbC8n-.mjs +159 -0
- package/.output/server/_ssr/createMiddleware-C3ACsfuG.mjs +24 -0
- package/.output/server/_ssr/{createMiddleware-B1iPez7u.mjs → createServerFn-AQvBMBjJ.mjs} +2 -23
- package/.output/server/_ssr/{createServerRpc-BaDJLGBx.mjs → createServerRpc-BVvRVOz5.mjs} +2 -2
- package/.output/server/_ssr/{databaseConfig-C5SkAyUy.mjs → databaseConfig-B_Bg7qS5.mjs} +1 -1
- package/.output/server/_ssr/{databaseJsonValue-Csbuzc9Q.mjs → databaseJsonValue-kS7cvEtz.mjs} +1 -1
- package/.output/server/_ssr/{databaseRows-CPphvbag.mjs → databaseRows-B6H8Cmgq.mjs} +3 -3
- package/.output/server/_ssr/{dialog-B4ALf7NJ.mjs → dialog-C8CS8RMt.mjs} +1 -1
- package/.output/server/_ssr/{dist-CbQbBIw-.mjs → dist-TEpM_UAD.mjs} +125 -125
- package/.output/server/_ssr/{downloadBundle-94jPBGSO.mjs → downloadBundle-DCmr7vsj.mjs} +1 -1
- package/.output/server/_ssr/{empty-Bh1FEeYF.mjs → empty-CkdEAvCY.mjs} +2 -2
- package/.output/server/_ssr/{empty-plugin-adapters-CpCHi1TV.mjs → empty-plugin-adapters-zrZ0xs6n.mjs} +1 -1
- package/.output/server/_ssr/{failureReports-Bh22wois.mjs → failureReports-Cn_zU9S8.mjs} +3 -3
- package/.output/server/_ssr/{field-HKCaPH3e.mjs → field-CW08sZXd.mjs} +2 -2
- package/.output/server/_ssr/{getBundleChildren-DfxB2K8D.mjs → getBundleChildren-rtkEEJw5.mjs} +2 -2
- package/.output/server/_ssr/git-CTA8Aqr0.mjs +56 -0
- package/.output/server/_ssr/{input-group-xm3LzDuq.mjs → input-group-D-TpFPuG.mjs} +1 -1
- package/.output/server/_ssr/{insights-BKZpJ_K4.mjs → insights-CMyzPs8l.mjs} +28 -27
- package/.output/server/_ssr/{insights-CCyTACIw.mjs → insights-CYeBl8N9.mjs} +5 -5
- package/.output/server/_ssr/{insights-CNqWQLJR.mjs → insights-DAi9KknT.mjs} +2 -2
- package/.output/server/_ssr/{insights-api-DtRFz5X3.mjs → insights-api-BFARQ5ct.mjs} +6 -6
- package/.output/server/_ssr/{insights-errors-Iy-lBaM7.mjs → insights-errors-7BCwFybo.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-BJN3RfLu.mjs → insights-failures-B9VPkzZE.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-DLZ91uOG.mjs → insights-failures-rpc-Q4WNNJkU.mjs} +12 -12
- package/.output/server/_ssr/{insights-recovery-BUuQdlA3.mjs → insights-recovery-BtXVU3ro.mjs} +1 -1
- package/.output/server/_ssr/{insights-recovery-rpc-BQHUhPi7.mjs → insights-recovery-rpc-CY5RYJKa.mjs} +8 -8
- package/.output/server/_ssr/{insights-rpc-C6Vukyn7.mjs → insights-rpc-BO7_evvs.mjs} +5 -5
- package/.output/server/_ssr/{insights-search-CBYoxT7v.mjs → insights-search-DKfxgHD3.mjs} +5 -5
- package/.output/server/_ssr/{insights-usage-CHqvtehH.mjs → insights-usage-DiGnuxW8.mjs} +1 -1
- package/.output/server/_ssr/{insights-usage-rpc-BJ7a-xco.mjs → insights-usage-rpc-B4czku50.mjs} +8 -8
- package/.output/server/_ssr/{insights-usage-rpc-C-lNUIsD.mjs → insights-usage-rpc-CUCTFska.mjs} +5 -5
- package/.output/server/_ssr/{insightsUsage-COUG-_-U.mjs → insightsUsage-ClAmoUz8.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-DmLW8I8a.mjs → insights_.distribution-BDeUhZGj.mjs} +2 -2
- package/.output/server/_ssr/{insights_.distribution-CTwilMPm.mjs → insights_.distribution-BRrbZN1X.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-DztDyrBj.mjs → insights_.distribution-C2MXpzKd.mjs} +15 -14
- package/.output/server/_ssr/{installations-Bct7ag5y.mjs → installations-BVk7okiY.mjs} +4 -4
- package/.output/server/_ssr/{installations-B6MK5iA8.mjs → installations-BjLMgBoH.mjs} +2 -2
- package/.output/server/_ssr/{installations-_N4PtYFl.mjs → installations-DxGZEC5G.mjs} +12 -12
- package/.output/server/_ssr/{listReleases-BfUBlCHo.mjs → listReleases-D_GY00SQ.mjs} +1 -1
- package/.output/server/_ssr/native-builds-CSCgFB21.mjs +10 -0
- package/.output/server/_ssr/native-builds-CdlyAldW.mjs +569 -0
- package/.output/server/_ssr/native-builds-DhXL5zf_.mjs +137 -0
- package/.output/server/_ssr/native-builds_._buildId-CMp1h8dT.mjs +10 -0
- package/.output/server/_ssr/native-builds_._buildId-GHpGaYyE.mjs +813 -0
- package/.output/server/_ssr/nativeBuildQr-84cnFQPX.mjs +59 -0
- package/.output/server/_ssr/nativeBuilds-B_7BPjt_.mjs +133 -0
- package/.output/server/_ssr/{plugins-BaD1slHx.mjs → plugins-RIryUNWj.mjs} +6 -5
- package/.output/server/_ssr/qr-code-C7kNRIDX.mjs +22 -0
- package/.output/server/_ssr/{release-adoption-DuYJTGuX.mjs → release-adoption-DoAtNPED.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-CHl7G_Zy.mjs → release-adoption-rpc-BJXZvtoQ.mjs} +10 -10
- package/.output/server/_ssr/{releaseAdoption-B39cpvfo.mjs → releaseAdoption-a2byXMfz.mjs} +4 -4
- package/.output/server/_ssr/releaseCatalogCompiler-DLcean2k.mjs +364 -0
- package/.output/server/_ssr/{releaseManagement-DFMUnDF5.mjs → releaseManagement-DHUux2az.mjs} +1 -1
- package/.output/server/_ssr/{releaseReachability-bFsuElSS.mjs → releaseReachability-DZOK_dH-.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-Mj05qVYZ.mjs → remote-config-DjsEl270.mjs} +20 -19
- package/.output/server/_ssr/{remote-config-10-obSZ0.mjs → remote-config-DlyyohL2.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-Dj1eTYi4.mjs → remote-config-XdYuByHz.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-lteqDSLn.mjs → remote-config-rpc-GMLPb-90.mjs} +6 -6
- package/.output/server/_ssr/request-guard-CPdRBuGW.mjs +108 -0
- package/.output/server/_ssr/{router-Dr4jjjhx.mjs → router-vpxd56RW.mjs} +317 -71
- package/.output/server/_ssr/{routes-BZbrY_qw.mjs → routes-DyEM4b3x.mjs} +14 -14
- package/.output/server/_ssr/{routes-B5KrCDwk.mjs → routes-dQe3XhiS.mjs} +99 -81
- package/.output/server/_ssr/{runtime.server-DsHqVqTr.mjs → runtime.server-BdMY1blX.mjs} +4 -4
- package/.output/server/_ssr/schema-ChlRtZIo.mjs +23 -0
- package/.output/server/_ssr/schema-migration-rpc-BfGzEK_o.mjs +65 -0
- package/.output/server/_ssr/{select-BtdGNSmp.mjs → select-DM1uwtk9.mjs} +3 -27
- package/.output/server/_ssr/{server-BxaHSwHh.mjs → server-BUUKNSPI.mjs} +7 -161
- package/.output/server/_ssr/{sidebar-CVsgosaD.mjs → sidebar-DB2YQlok.mjs} +4 -4
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/start-BvDsQehg.mjs +49 -0
- package/.output/server/_ssr/{switch-BmARgkUP.mjs → switch-DLD58zLy.mjs} +2 -2
- package/.output/server/_ssr/{table-M5P3YUfY.mjs → table-P4TnAZhl.mjs} +1 -1
- package/.output/server/_ssr/{tabs-CrmfOlJj.mjs → tabs-B7ZeLicF.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-z1IQy_4q.mjs → updateFailures-n-tGv90S.mjs} +3 -3
- package/.output/server/_ssr/{uuidv7-C88s9jWF.mjs → uuidv7-BIF4nb_q.mjs} +2 -2
- package/.output/server/_ssr/{schema-BiAVyEj2.mjs → version-CQ98ZBpL-CWSkTT9J.mjs} +2 -22
- package/.output/server/_tanstack-start-manifest_v-C-KC63Zq.mjs +184 -0
- package/.output/server/index.mjs +432 -271
- package/lib/vite-internal.mjs +32 -1
- package/package.json +8 -7
- package/src/components/AppSidebar.tsx +12 -1
- package/src/components/ConsoleAccessPage.tsx +49 -3
- package/src/components/QrCode.tsx +35 -0
- package/src/components/SchemaMigrationRequired.tsx +139 -0
- package/src/components/features/insights/BuiltinBundle.tsx +5 -3
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +163 -0
- package/src/components/features/native-builds/CommitLink.tsx +30 -0
- package/src/components/features/native-builds/CopyableText.tsx +48 -0
- package/src/components/features/native-builds/ImportBuild.tsx +91 -0
- package/src/components/features/native-builds/InstallCard.tsx +205 -0
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +175 -0
- package/src/components/features/native-builds/NativeBuildsPage.tsx +151 -0
- package/src/components/features/native-builds/NativeBuildsTable.tsx +426 -0
- package/src/components/features/native-builds/PatchesCard.tsx +222 -0
- package/src/components/features/native-builds/ReleaseNativeBuildLink.tsx +101 -0
- package/src/components/features/native-builds/ServedNowCard.tsx +214 -0
- package/src/components/features/native-builds/ShortHash.tsx +41 -0
- package/src/components/features/native-builds/StoreSubmission.tsx +73 -0
- package/src/components/features/releases/ReleaseEditorSheet.tsx +8 -0
- package/src/lib/api-rpc.ts +98 -0
- package/src/lib/api.ts +120 -0
- package/src/lib/native-builds.ts +162 -0
- package/src/lib/qr-code.ts +16 -0
- package/src/lib/schema-migration-api.ts +54 -0
- package/src/lib/schema-migration-rpc.ts +26 -0
- package/src/lib/schema-migration.ts +101 -0
- package/src/lib/server/config.server.ts +23 -14
- package/src/lib/server/console-runtime.server.ts +4 -6
- package/src/lib/server/local-console.ts +164 -0
- package/src/lib/server/nativeBuildQr.ts +73 -0
- package/src/lib/server/nativeBuilds.ts +288 -0
- package/src/lib/shell.ts +9 -0
- package/src/routeTree.gen.ts +88 -1
- package/src/router.tsx +11 -1
- package/src/routes/-native-builds-search.ts +51 -0
- package/src/routes/[_]hot-updater/native-builds/qr.ts +14 -0
- package/src/routes/__root.tsx +11 -1
- package/src/routes/api/native-builds/$buildId/download.ts +50 -0
- package/src/routes/native-builds.tsx +21 -0
- package/src/routes/native-builds_.$buildId.tsx +23 -0
- package/src/start.ts +33 -0
- package/src/virtual-modules.d.ts +18 -0
- package/src/vite-internal.ts +57 -1
- package/.output/public/assets/EventDetails-gbD_fCqc.js +0 -1
- package/.output/public/assets/HashValueDisplay-BGkDPaYi.js +0 -1
- package/.output/public/assets/InsightsPageHeader-BRw8XkJW.js +0 -1
- package/.output/public/assets/NotFoundPage-Cei6W2lm.js +0 -1
- package/.output/public/assets/alert-dialog-BtVg50WQ.js +0 -1
- package/.output/public/assets/api-DoicFJfd.js +0 -1
- package/.output/public/assets/api-keys-D81VHHNM.js +0 -1
- package/.output/public/assets/api-keys-Dia6i8K1.js +0 -1
- package/.output/public/assets/arrow-left-DsivSewE.js +0 -1
- package/.output/public/assets/arrow-up-right-B5aM0F7f.js +0 -1
- package/.output/public/assets/badge-Bqf3UDee.js +0 -1
- package/.output/public/assets/circle-off-BsbZQtsF.js +0 -1
- package/.output/public/assets/console-features-api-DPE4C06Y.js +0 -2
- package/.output/public/assets/dialog-CGKPxz3n.js +0 -1
- package/.output/public/assets/index-DrkdiRIn.js +0 -10
- package/.output/public/assets/insights-C-5t8wh2.js +0 -2
- package/.output/public/assets/insights-D_ngQdiz.js +0 -1
- package/.output/public/assets/insights-KigRBDgC.js +0 -42
- package/.output/public/assets/insights-api-1ZjVu3Sb.js +0 -1
- package/.output/public/assets/insights-search-aT8BVCci.js +0 -1
- package/.output/public/assets/insights-usage-rpc-DqTiXI1_.js +0 -1
- package/.output/public/assets/insights_.distribution-Bzl6RFBR.js +0 -2
- package/.output/public/assets/insights_.distribution-Cthgttqb.js +0 -1
- package/.output/public/assets/insights_.distribution-D2c2v1bu.js +0 -1
- package/.output/public/assets/installations-2Nx8Htf-.js +0 -1
- package/.output/public/assets/installations-BskJ1xQr.js +0 -2
- package/.output/public/assets/installations-K2iJ_r0h.js +0 -1
- package/.output/public/assets/remote-config-D9X3NiwV.js +0 -6
- package/.output/public/assets/remote-config-DzOOiBIO.js +0 -1
- package/.output/public/assets/remote-config-ikg7kak0.js +0 -1
- package/.output/public/assets/routes-9rb9P5Y7.js +0 -2
- package/.output/public/assets/routes-P7683vKQ.js +0 -1
- package/.output/public/assets/search-DuI1FBpg.js +0 -1
- package/.output/public/assets/select-M3H2gxCc.js +0 -1
- package/.output/public/assets/smartphone-CtsHuiIC.js +0 -1
- package/.output/public/assets/styles-CpiW_YdW.css +0 -2
- package/.output/public/assets/switch-By_vfm8I.js +0 -1
- package/.output/public/assets/useCompositeListItem-B-UkrDlu.js +0 -1
- package/.output/server/_ssr/config.server-DTdsG47T.mjs +0 -35
- package/.output/server/_ssr/start-B6ECIE_7.mjs +0 -4
- package/.output/server/_tanstack-start-manifest_v-_BY9hYTm.mjs +0 -136
|
@@ -0,0 +1,569 @@
|
|
|
1
|
+
import { yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
2
|
+
import { B as Download, J as ChevronLeft, L as FileUp, M as HardDrive, N as HardDriveDownload, _ as RefreshCw, i as TriangleAlert, q as ChevronRight, tt as ArrowUpRight } from "../_libs/lucide-react.mjs";
|
|
3
|
+
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, t as Button$1 } from "./sidebar-DB2YQlok.mjs";
|
|
4
|
+
import { a as Badge, i as AlertTitle, n as AlertAction, o as Card, r as AlertDescription, s as CardContent, t as Alert } from "./badge-CEdVRgyl.mjs";
|
|
5
|
+
import { a as DialogHeader, n as DialogContent, o as DialogTitle, r as DialogDescription, s as DialogTrigger, t as Dialog$1 } from "./dialog-C8CS8RMt.mjs";
|
|
6
|
+
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-P4TnAZhl.mjs";
|
|
7
|
+
import { g as useNavigate, h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
8
|
+
import { c as nativeBuildFileName, d as platformLabel, i as nativeBuildArtifacts, o as nativeBuildChannel, r as formatByteSize, s as nativeBuildDownloadPath, u as nativeBuildTarget } from "./native-builds-DhXL5zf_.mjs";
|
|
9
|
+
import { t as PlatformIcon } from "./PlatformIcon-CFLiTjh1.mjs";
|
|
10
|
+
import { a as SelectTrigger, i as SelectItem, n as SelectContent, o as SelectValue, r as SelectGroup, t as Select$1 } from "./select-DM1uwtk9.mjs";
|
|
11
|
+
import { f as useNativeBuildsQuery, i as useChannelsQuery } from "./api-0vtwA5vY.mjs";
|
|
12
|
+
import { t as Route } from "./native-builds-CSCgFB21.mjs";
|
|
13
|
+
import { t as TimestampDisplay } from "./git-CTA8Aqr0.mjs";
|
|
14
|
+
import { i as StoreSubmissionBadge, n as CopyableText, r as ShortHash, t as CommitLink } from "./StoreSubmission-JZ2Zltak.mjs";
|
|
15
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds-CdlyAldW.js
|
|
16
|
+
var import_jsx_runtime = require_jsx_runtime();
|
|
17
|
+
/** The command that tracks a build made elsewhere. */
|
|
18
|
+
var IMPORT_COMMAND = "npx hot-updater native-build import <path-to-.ipa|.aab|.apk|.app|.app.zip>";
|
|
19
|
+
/** `native-build import`'s section of the native build guide. */
|
|
20
|
+
var IMPORT_GUIDE_URL = "https://hot-updater.dev/docs/guides/native-build#import-a-build-made-elsewhere";
|
|
21
|
+
/**
|
|
22
|
+
* How to track a build made elsewhere: the CLI command, which reads the
|
|
23
|
+
* artifact on the machine that has it. The Console uploads nothing, since a
|
|
24
|
+
* host may cap a request's body far below an `.ipa`.
|
|
25
|
+
*/
|
|
26
|
+
function ImportBuildSteps() {
|
|
27
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
28
|
+
className: "flex min-w-0 flex-col gap-2",
|
|
29
|
+
children: [
|
|
30
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
31
|
+
className: "text-xs text-muted-foreground",
|
|
32
|
+
children: [
|
|
33
|
+
"Track an ",
|
|
34
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
35
|
+
className: "font-mono",
|
|
36
|
+
children: ".ipa"
|
|
37
|
+
}),
|
|
38
|
+
",",
|
|
39
|
+
" ",
|
|
40
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
41
|
+
className: "font-mono",
|
|
42
|
+
children: ".aab"
|
|
43
|
+
}),
|
|
44
|
+
",",
|
|
45
|
+
" ",
|
|
46
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
47
|
+
className: "font-mono",
|
|
48
|
+
children: ".apk"
|
|
49
|
+
}),
|
|
50
|
+
" or simulator",
|
|
51
|
+
" ",
|
|
52
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
53
|
+
className: "font-mono",
|
|
54
|
+
children: ".app"
|
|
55
|
+
}),
|
|
56
|
+
" (or its",
|
|
57
|
+
" ",
|
|
58
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
59
|
+
className: "font-mono",
|
|
60
|
+
children: ".app.zip"
|
|
61
|
+
}),
|
|
62
|
+
") built elsewhere, such as by EAS, Xcode Cloud or Fastlane, so the OTAs you deploy after it patch from its built-in bundle. Run in the app's project:"
|
|
63
|
+
]
|
|
64
|
+
}),
|
|
65
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
66
|
+
label: "the import command",
|
|
67
|
+
value: IMPORT_COMMAND,
|
|
68
|
+
wrap: true
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
71
|
+
className: "text-xs text-muted-foreground",
|
|
72
|
+
children: [
|
|
73
|
+
"Add ",
|
|
74
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
75
|
+
className: "font-mono",
|
|
76
|
+
children: "-c <channel>"
|
|
77
|
+
}),
|
|
78
|
+
" (",
|
|
79
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
80
|
+
className: "font-mono",
|
|
81
|
+
children: "--channel"
|
|
82
|
+
}),
|
|
83
|
+
") when the app reports another channel than the one it was built with, such as one its code sets or switches to at runtime."
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
]
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/** The toolbar's "Import a build" button and the command it shows. */
|
|
90
|
+
function ImportBuildDialog() {
|
|
91
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Dialog$1, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogTrigger, {
|
|
92
|
+
render: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
93
|
+
"aria-label": "Import a build",
|
|
94
|
+
className: "min-h-11 sm:min-h-7",
|
|
95
|
+
size: "sm",
|
|
96
|
+
variant: "outline"
|
|
97
|
+
}),
|
|
98
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(FileUp, { "data-icon": "inline-start" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
99
|
+
className: "hidden sm:inline",
|
|
100
|
+
children: "Import a build"
|
|
101
|
+
})]
|
|
102
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogContent, {
|
|
103
|
+
className: "sm:max-w-lg",
|
|
104
|
+
children: [
|
|
105
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(DialogHeader, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogTitle, { children: "Import a build" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DialogDescription, { children: "The build appears here once the command tracks it." })] }),
|
|
106
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ImportBuildSteps, {}),
|
|
107
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
108
|
+
className: buttonVariants({
|
|
109
|
+
className: "min-h-11 w-full sm:min-h-8 sm:w-fit",
|
|
110
|
+
variant: "outline"
|
|
111
|
+
}),
|
|
112
|
+
href: IMPORT_GUIDE_URL,
|
|
113
|
+
rel: "noreferrer",
|
|
114
|
+
target: "_blank",
|
|
115
|
+
children: ["Import guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
116
|
+
})
|
|
117
|
+
]
|
|
118
|
+
})] });
|
|
119
|
+
}
|
|
120
|
+
var NATIVE_BUILD_GUIDE_URL = "https://hot-updater.dev/docs/guides/native-build#register-a-build";
|
|
121
|
+
var COLUMNS = 6;
|
|
122
|
+
function EmptyRow({ channel, paged, onClearChannel, onNewest }) {
|
|
123
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableRow, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
124
|
+
className: "h-44 text-center text-muted-foreground",
|
|
125
|
+
colSpan: COLUMNS,
|
|
126
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
127
|
+
className: "mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal",
|
|
128
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDriveDownload, {
|
|
129
|
+
"aria-hidden": "true",
|
|
130
|
+
className: "size-5"
|
|
131
|
+
}), paged ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
132
|
+
className: "font-medium text-foreground",
|
|
133
|
+
children: "No more native builds"
|
|
134
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
135
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
136
|
+
onClick: onNewest,
|
|
137
|
+
variant: "outline",
|
|
138
|
+
children: "Show the newest builds"
|
|
139
|
+
})] }) : channel !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
140
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
141
|
+
className: "font-medium text-foreground",
|
|
142
|
+
children: ["No native build embeds ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
143
|
+
translate: "no",
|
|
144
|
+
children: channel
|
|
145
|
+
})]
|
|
146
|
+
}),
|
|
147
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", { children: "A build embeds the channel it was built on. Build one on this channel, or list every channel's builds." }),
|
|
148
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
149
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
150
|
+
onClick: onClearChannel,
|
|
151
|
+
variant: "outline",
|
|
152
|
+
children: "Show all channels"
|
|
153
|
+
})
|
|
154
|
+
] }) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [
|
|
155
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
156
|
+
className: "font-medium text-foreground",
|
|
157
|
+
children: "No native builds"
|
|
158
|
+
}),
|
|
159
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
160
|
+
"Build a release app with",
|
|
161
|
+
" ",
|
|
162
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
163
|
+
className: "font-mono text-xs",
|
|
164
|
+
children: "hot-updater native-build android"
|
|
165
|
+
}),
|
|
166
|
+
" ",
|
|
167
|
+
"or ",
|
|
168
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("code", {
|
|
169
|
+
className: "font-mono text-xs",
|
|
170
|
+
children: "native-build ios"
|
|
171
|
+
}),
|
|
172
|
+
", which tracks it here, or import one built elsewhere:"
|
|
173
|
+
] }),
|
|
174
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
175
|
+
className: "w-full text-left",
|
|
176
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CopyableText, {
|
|
177
|
+
label: "the import command",
|
|
178
|
+
value: IMPORT_COMMAND,
|
|
179
|
+
wrap: true
|
|
180
|
+
})
|
|
181
|
+
}),
|
|
182
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
183
|
+
className: buttonVariants({
|
|
184
|
+
className: "mt-1 min-h-11 sm:min-h-8",
|
|
185
|
+
variant: "outline"
|
|
186
|
+
}),
|
|
187
|
+
href: NATIVE_BUILD_GUIDE_URL,
|
|
188
|
+
rel: "noreferrer",
|
|
189
|
+
target: "_blank",
|
|
190
|
+
children: ["Native build guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
191
|
+
}),
|
|
192
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
193
|
+
className: buttonVariants({
|
|
194
|
+
className: "min-h-11 sm:min-h-8",
|
|
195
|
+
variant: "outline"
|
|
196
|
+
}),
|
|
197
|
+
href: IMPORT_GUIDE_URL,
|
|
198
|
+
rel: "noreferrer",
|
|
199
|
+
target: "_blank",
|
|
200
|
+
children: ["Import guide", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ArrowUpRight, { "data-icon": "inline-end" })]
|
|
201
|
+
})
|
|
202
|
+
] })]
|
|
203
|
+
})
|
|
204
|
+
}) });
|
|
205
|
+
}
|
|
206
|
+
function LoadingRows() {
|
|
207
|
+
return Array.from({ length: 3 }, (_, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
|
|
208
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableCell, {
|
|
209
|
+
className: "space-y-2 py-3",
|
|
210
|
+
children: [
|
|
211
|
+
index === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
212
|
+
className: "sr-only",
|
|
213
|
+
children: "Loading native builds"
|
|
214
|
+
}) : null,
|
|
215
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-40" }),
|
|
216
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3 w-24" })
|
|
217
|
+
]
|
|
218
|
+
}),
|
|
219
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
220
|
+
className: "hidden md:table-cell",
|
|
221
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-5 w-20" })
|
|
222
|
+
}),
|
|
223
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
224
|
+
className: "hidden xl:table-cell",
|
|
225
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-28" })
|
|
226
|
+
}),
|
|
227
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
228
|
+
className: "hidden xl:table-cell",
|
|
229
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-14" })
|
|
230
|
+
}),
|
|
231
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
232
|
+
className: "hidden sm:table-cell",
|
|
233
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "h-3.5 w-20" })
|
|
234
|
+
}),
|
|
235
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Skeleton, { className: "ml-auto h-6 w-16" }) })
|
|
236
|
+
] }, index));
|
|
237
|
+
}
|
|
238
|
+
function BuildRow({ build, onChannel }) {
|
|
239
|
+
const navigate = useNavigate();
|
|
240
|
+
const target = nativeBuildTarget(build);
|
|
241
|
+
const channel = nativeBuildChannel(build);
|
|
242
|
+
const title = `${platformLabel(build.platform)} ${nativeBuildArtifacts[build.artifact_kind].label}`;
|
|
243
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
244
|
+
className: "cursor-pointer",
|
|
245
|
+
onClick: () => void navigate({
|
|
246
|
+
to: "/native-builds/$buildId",
|
|
247
|
+
params: { buildId: build.id }
|
|
248
|
+
}),
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
251
|
+
className: "py-3 whitespace-normal",
|
|
252
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
253
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
254
|
+
children: [
|
|
255
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
256
|
+
className: "flex flex-wrap items-center gap-1.5",
|
|
257
|
+
children: [
|
|
258
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(PlatformIcon, {
|
|
259
|
+
className: "size-3.5 shrink-0 text-muted-foreground",
|
|
260
|
+
platform: build.platform
|
|
261
|
+
}),
|
|
262
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
|
|
263
|
+
className: "font-medium underline-offset-4 hover:underline",
|
|
264
|
+
onClick: (event) => event.stopPropagation(),
|
|
265
|
+
params: { buildId: build.id },
|
|
266
|
+
to: "/native-builds/$buildId",
|
|
267
|
+
children: title
|
|
268
|
+
}),
|
|
269
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
270
|
+
className: "text-xs text-muted-foreground tabular-nums",
|
|
271
|
+
children: formatByteSize(build.byte_size)
|
|
272
|
+
}),
|
|
273
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(StoreSubmissionBadge, {
|
|
274
|
+
build,
|
|
275
|
+
withTime: true
|
|
276
|
+
})
|
|
277
|
+
]
|
|
278
|
+
}),
|
|
279
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
280
|
+
className: "flex min-w-0 flex-wrap items-center gap-x-1.5 text-xs text-muted-foreground",
|
|
281
|
+
children: [
|
|
282
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: target.label }),
|
|
283
|
+
build.fingerprint_hash === null ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
284
|
+
className: "font-mono text-foreground",
|
|
285
|
+
translate: "no",
|
|
286
|
+
children: target.value
|
|
287
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ShortHash, {
|
|
288
|
+
label: "fingerprint",
|
|
289
|
+
length: 12,
|
|
290
|
+
value: build.fingerprint_hash
|
|
291
|
+
}),
|
|
292
|
+
!build.build_number ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
293
|
+
className: "tabular-nums",
|
|
294
|
+
translate: "no",
|
|
295
|
+
children: ["· build ", build.build_number]
|
|
296
|
+
}),
|
|
297
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
298
|
+
className: "md:hidden",
|
|
299
|
+
translate: "no",
|
|
300
|
+
children: ["· ", channel]
|
|
301
|
+
}),
|
|
302
|
+
build.git_commit_hash === null ? null : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
303
|
+
className: "inline-flex items-center gap-1 xl:hidden",
|
|
304
|
+
children: ["· commit ", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommitLink, { hash: build.git_commit_hash })]
|
|
305
|
+
})
|
|
306
|
+
]
|
|
307
|
+
}),
|
|
308
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
309
|
+
className: "text-xs text-muted-foreground xl:hidden",
|
|
310
|
+
children: [
|
|
311
|
+
"Built-in bundle",
|
|
312
|
+
" ",
|
|
313
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
314
|
+
className: "font-mono [overflow-wrap:anywhere] text-foreground",
|
|
315
|
+
translate: "no",
|
|
316
|
+
children: build.min_bundle_id
|
|
317
|
+
})
|
|
318
|
+
]
|
|
319
|
+
})
|
|
320
|
+
]
|
|
321
|
+
})
|
|
322
|
+
}),
|
|
323
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
324
|
+
className: "hidden md:table-cell",
|
|
325
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", {
|
|
326
|
+
"aria-label": `Show the builds that embed ${channel}`,
|
|
327
|
+
className: "rounded-md text-left focus-visible:ring-2 focus-visible:ring-ring focus-visible:outline-none",
|
|
328
|
+
onClick: (event) => {
|
|
329
|
+
event.stopPropagation();
|
|
330
|
+
onChannel(channel);
|
|
331
|
+
},
|
|
332
|
+
type: "button",
|
|
333
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Badge, {
|
|
334
|
+
className: "whitespace-nowrap",
|
|
335
|
+
translate: "no",
|
|
336
|
+
variant: "outline",
|
|
337
|
+
children: channel
|
|
338
|
+
})
|
|
339
|
+
})
|
|
340
|
+
}),
|
|
341
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
342
|
+
className: "hidden xl:table-cell",
|
|
343
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
344
|
+
className: "font-mono text-xs text-muted-foreground",
|
|
345
|
+
translate: "no",
|
|
346
|
+
children: build.min_bundle_id
|
|
347
|
+
})
|
|
348
|
+
}),
|
|
349
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
350
|
+
className: "hidden xl:table-cell",
|
|
351
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CommitLink, { hash: build.git_commit_hash })
|
|
352
|
+
}),
|
|
353
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
354
|
+
className: "hidden sm:table-cell",
|
|
355
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TimestampDisplay, { uuid: build.id })
|
|
356
|
+
}),
|
|
357
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableCell, {
|
|
358
|
+
className: "text-right",
|
|
359
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
360
|
+
"aria-label": `Download ${nativeBuildFileName(build)}`,
|
|
361
|
+
className: buttonVariants({
|
|
362
|
+
className: "min-h-11 sm:min-h-7",
|
|
363
|
+
size: "sm",
|
|
364
|
+
variant: "outline"
|
|
365
|
+
}),
|
|
366
|
+
download: true,
|
|
367
|
+
href: nativeBuildDownloadPath(build.id),
|
|
368
|
+
onClick: (event) => event.stopPropagation(),
|
|
369
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Download, { "data-icon": "inline-start" }), "Download"]
|
|
370
|
+
})
|
|
371
|
+
})
|
|
372
|
+
]
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* The registered native builds, newest first, one page at a time. A row
|
|
377
|
+
* opens the build's page; its channel filters the list by that channel.
|
|
378
|
+
*/
|
|
379
|
+
function NativeBuildsTable({ builds, channel, paged, onChannel, onPage }) {
|
|
380
|
+
const rows = builds.data?.data;
|
|
381
|
+
const { next, previous } = builds.data ?? {};
|
|
382
|
+
if (builds.isError) return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
383
|
+
className: "p-4",
|
|
384
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Alert, {
|
|
385
|
+
variant: "destructive",
|
|
386
|
+
children: [
|
|
387
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, {}),
|
|
388
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertTitle, { children: "Native builds couldn't be loaded" }),
|
|
389
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertDescription, { children: "Check your connection and try again." }),
|
|
390
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AlertAction, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
391
|
+
onClick: () => void builds.refetch(),
|
|
392
|
+
size: "xs",
|
|
393
|
+
variant: "outline",
|
|
394
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "data-icon": "inline-start" }), "Retry"]
|
|
395
|
+
}) })
|
|
396
|
+
]
|
|
397
|
+
})
|
|
398
|
+
});
|
|
399
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Table, {
|
|
400
|
+
"aria-busy": builds.isPlaceholderData,
|
|
401
|
+
"aria-label": "Native builds",
|
|
402
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHeader, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TableRow, { children: [
|
|
403
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, { children: "Build" }),
|
|
404
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
405
|
+
className: "hidden md:table-cell",
|
|
406
|
+
children: "Channel"
|
|
407
|
+
}),
|
|
408
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
409
|
+
className: "hidden xl:table-cell",
|
|
410
|
+
children: "Built-in bundle"
|
|
411
|
+
}),
|
|
412
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
413
|
+
className: "hidden xl:table-cell",
|
|
414
|
+
children: "Commit"
|
|
415
|
+
}),
|
|
416
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
417
|
+
className: "hidden sm:table-cell",
|
|
418
|
+
children: "Created"
|
|
419
|
+
}),
|
|
420
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableHead, {
|
|
421
|
+
className: "text-right",
|
|
422
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
|
|
423
|
+
className: "sr-only",
|
|
424
|
+
children: "Actions"
|
|
425
|
+
})
|
|
426
|
+
})
|
|
427
|
+
] }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TableBody, { children: builds.isLoading ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoadingRows, {}) : rows?.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EmptyRow, {
|
|
428
|
+
channel,
|
|
429
|
+
onClearChannel: () => onChannel(void 0),
|
|
430
|
+
onNewest: () => onPage({}),
|
|
431
|
+
paged
|
|
432
|
+
}) : rows?.map((build) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(BuildRow, {
|
|
433
|
+
build,
|
|
434
|
+
onChannel
|
|
435
|
+
}, build.id)) })]
|
|
436
|
+
}), next !== void 0 || previous !== void 0 ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("nav", {
|
|
437
|
+
"aria-label": "Native build pages",
|
|
438
|
+
className: "flex items-center justify-end gap-2 border-t px-4 py-2",
|
|
439
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
440
|
+
className: "min-h-11 sm:min-h-7",
|
|
441
|
+
disabled: previous === void 0 || builds.isPlaceholderData,
|
|
442
|
+
onClick: () => onPage({ after: previous }),
|
|
443
|
+
size: "sm",
|
|
444
|
+
variant: "ghost",
|
|
445
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronLeft, { "data-icon": "inline-start" }), "Newer"]
|
|
446
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Button$1, {
|
|
447
|
+
className: "min-h-11 sm:min-h-7",
|
|
448
|
+
disabled: next === void 0 || builds.isPlaceholderData,
|
|
449
|
+
onClick: () => onPage({ before: next }),
|
|
450
|
+
size: "sm",
|
|
451
|
+
variant: "ghost",
|
|
452
|
+
children: ["Older", /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronRight, { "data-icon": "inline-end" })]
|
|
453
|
+
})]
|
|
454
|
+
}) : null] });
|
|
455
|
+
}
|
|
456
|
+
/**
|
|
457
|
+
* The filter's values: a channel's is its name behind a prefix, so no channel
|
|
458
|
+
* name, `all` included, can be taken for "All channels".
|
|
459
|
+
*/
|
|
460
|
+
var ALL_CHANNELS = "all";
|
|
461
|
+
var CHANNEL_VALUE_PREFIX = "channel:";
|
|
462
|
+
var channelValue = (name) => `${CHANNEL_VALUE_PREFIX}${name}`;
|
|
463
|
+
/**
|
|
464
|
+
* The native builds Hot Updater tracks: one page at a time, newest first,
|
|
465
|
+
* optionally only those that embed one channel. The page and the channel
|
|
466
|
+
* are in the URL, so a pull request links to its channel's builds.
|
|
467
|
+
*/
|
|
468
|
+
function NativeBuildsPage({ search, onSearchChange }) {
|
|
469
|
+
const { channel, before, after } = search;
|
|
470
|
+
const builds = useNativeBuildsQuery(search);
|
|
471
|
+
const channels = useChannelsQuery();
|
|
472
|
+
const channelNames = channels.data?.map(({ name }) => name) ?? [];
|
|
473
|
+
const choices = channel === void 0 || channelNames.includes(channel) ? channelNames : [channel, ...channelNames];
|
|
474
|
+
const filterBy = (next) => onSearchChange(next === void 0 ? {} : { channel: next });
|
|
475
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
476
|
+
className: "flex h-svh min-h-0 flex-col",
|
|
477
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("header", {
|
|
478
|
+
className: "sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-x-3 gap-y-1 border-b bg-background px-3 py-3 sm:min-h-12 sm:flex-nowrap sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm",
|
|
479
|
+
children: [
|
|
480
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarTrigger, { className: "-ml-1 size-11 lg:size-7" }),
|
|
481
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
482
|
+
className: "flex items-center gap-1.5",
|
|
483
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HardDrive, {
|
|
484
|
+
"aria-hidden": "true",
|
|
485
|
+
className: "size-3.5 text-muted-foreground"
|
|
486
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
|
|
487
|
+
className: "text-sm font-medium",
|
|
488
|
+
children: "Native builds"
|
|
489
|
+
})]
|
|
490
|
+
}),
|
|
491
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
492
|
+
className: "basis-full pl-12 text-xs text-muted-foreground sm:basis-auto sm:pl-0",
|
|
493
|
+
children: "Store and test builds, each the built-in bundle its OTAs patch from."
|
|
494
|
+
})
|
|
495
|
+
]
|
|
496
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
497
|
+
className: "min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6",
|
|
498
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
499
|
+
className: "mx-auto w-full max-w-6xl overflow-hidden shadow-sm",
|
|
500
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
501
|
+
className: "flex items-center gap-2 border-b px-4 py-3",
|
|
502
|
+
children: [
|
|
503
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Select$1, {
|
|
504
|
+
items: [{
|
|
505
|
+
label: "All channels",
|
|
506
|
+
value: ALL_CHANNELS
|
|
507
|
+
}, ...choices.map((name) => ({
|
|
508
|
+
label: name,
|
|
509
|
+
value: channelValue(name)
|
|
510
|
+
}))],
|
|
511
|
+
onOpenChange: (open) => {
|
|
512
|
+
if (open) channels.refetch();
|
|
513
|
+
},
|
|
514
|
+
onValueChange: (value) => filterBy(value?.startsWith(CHANNEL_VALUE_PREFIX) ? value.slice(8) : void 0),
|
|
515
|
+
value: channel === void 0 ? ALL_CHANNELS : channelValue(channel),
|
|
516
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
517
|
+
"aria-label": "Channel",
|
|
518
|
+
className: "h-11 min-w-0 flex-1 text-xs sm:h-8 sm:w-48 sm:flex-none",
|
|
519
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
520
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SelectGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
521
|
+
value: ALL_CHANNELS,
|
|
522
|
+
children: "All channels"
|
|
523
|
+
}), choices.map((name) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
524
|
+
translate: "no",
|
|
525
|
+
value: channelValue(name),
|
|
526
|
+
children: name
|
|
527
|
+
}, name))] }) })]
|
|
528
|
+
}),
|
|
529
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
|
|
530
|
+
className: "ml-auto",
|
|
531
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ImportBuildDialog, {})
|
|
532
|
+
}),
|
|
533
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button$1, {
|
|
534
|
+
"aria-label": "Refresh native builds",
|
|
535
|
+
className: "size-11 sm:size-7",
|
|
536
|
+
disabled: builds.isLoading,
|
|
537
|
+
onClick: () => void builds.refetch(),
|
|
538
|
+
size: "icon-sm",
|
|
539
|
+
variant: "ghost",
|
|
540
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RefreshCw, { "aria-hidden": "true" })
|
|
541
|
+
})
|
|
542
|
+
]
|
|
543
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardContent, {
|
|
544
|
+
className: "p-0",
|
|
545
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsTable, {
|
|
546
|
+
builds,
|
|
547
|
+
channel,
|
|
548
|
+
onChannel: filterBy,
|
|
549
|
+
onPage: (page) => onSearchChange({
|
|
550
|
+
...channel === void 0 ? {} : { channel },
|
|
551
|
+
...page
|
|
552
|
+
}),
|
|
553
|
+
paged: before !== void 0 || after !== void 0
|
|
554
|
+
})
|
|
555
|
+
})]
|
|
556
|
+
})
|
|
557
|
+
})]
|
|
558
|
+
});
|
|
559
|
+
}
|
|
560
|
+
function NativeBuildsRoute() {
|
|
561
|
+
const search = Route.useSearch();
|
|
562
|
+
const navigate = Route.useNavigate();
|
|
563
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(NativeBuildsPage, {
|
|
564
|
+
onSearchChange: (next) => void navigate({ search: next }),
|
|
565
|
+
search
|
|
566
|
+
});
|
|
567
|
+
}
|
|
568
|
+
//#endregion
|
|
569
|
+
export { NativeBuildsRoute as component };
|