@hot-updater/console 1.2.0-rc.24 → 1.2.0-rc.26
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/{EventDetails-Dcpdu7re.js → EventDetails-DZsRlDHk.js} +1 -1
- package/.output/public/assets/{InsightsPageHeader-CSas9gM0.js → InsightsPageHeader-2bTrjXln.js} +1 -1
- package/.output/public/assets/{RelativeTime-CiZ7yXNJ.js → RelativeTime-TCmpOVPg.js} +1 -1
- package/.output/public/assets/{RolloutPercentageBadge-D-tZKnX7.js → RolloutPercentageBadge-G6qt8rVb.js} +1 -1
- package/.output/public/assets/StoreSubmission-CqSg880n.js +1 -0
- package/.output/public/assets/{TargetDisplay-CoYY8Fs4.js → TargetDisplay-DwOaMOiI.js} +1 -1
- package/.output/public/assets/{api-keys-3IL4dIHe.js → api-keys-uFY8FsN9.js} +1 -1
- package/.output/public/assets/{badge-laIuYW1U.js → badge-D0NFvUY5.js} +1 -1
- package/.output/public/assets/{index-BKB82n6Y.js → index-CJclLsbG.js} +3 -3
- package/.output/public/assets/{insights-_6iMn8GR.js → insights-B75txQ_F.js} +1 -1
- package/.output/public/assets/{insights-DDRfERph.js → insights-C17Z0whn.js} +2 -2
- package/.output/public/assets/{insights_.distribution-BGAqgPi0.js → insights_.distribution-_dZi1_ay.js} +1 -1
- package/.output/public/assets/{insights_.distribution-CjYkDRA4.js → insights_.distribution-gDqNqI5E.js} +2 -2
- package/.output/public/assets/{installations-CSZfo1rG.js → installations-D0g3xvw8.js} +2 -2
- package/.output/public/assets/{installations-CwQYwQ6K.js → installations-Y_7QW_p8.js} +1 -1
- package/.output/public/assets/{native-builds-B4pD_O7E.js → native-builds-Ba6cEZfm.js} +2 -2
- package/.output/public/assets/native-builds-C3_-21we.js +1 -0
- package/.output/public/assets/native-builds_._buildId-BnP31v32.js +1 -0
- package/.output/public/assets/{native-builds_._buildId-D5tnmyu7.js → native-builds_._buildId-Cp9LJiMP.js} +2 -2
- package/.output/public/assets/{remote-config-Dwdc-sij.js → remote-config-BRdy8QFR.js} +1 -1
- package/.output/public/assets/{remote-config-ZJ_IRSKE.js → remote-config-C9p5Pcdj.js} +3 -3
- package/.output/public/assets/{routes-BUWLcUqW.js → routes-BLTF7nwe.js} +1 -1
- package/.output/public/assets/{routes-Rtz-KcQO.js → routes-gQXSzO_n.js} +2 -2
- package/.output/public/assets/styles-BdlrKlVs.css +2 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-CcDHdMzp.mjs → __23tanstack-start-server-fn-resolver-z8rr63xV.mjs} +49 -49
- package/.output/server/_libs/@tanstack/react-router-ssr-query+[...].mjs +1 -1
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_ssr/{-native-builds-search-Cl8EZ0Ud.mjs → -native-builds-search-M6t7EIt4.mjs} +1 -1
- package/.output/server/_ssr/{BundleIdDisplay-BOFw0I4S.mjs → BundleIdDisplay-DRnAzJse.mjs} +2 -2
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-CLb3FQ37.mjs → ConsoleFeatureUnavailable-BEU7r4aH.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-DCcm4h8I.mjs → EventDetails-CjT6o2sJ.mjs} +6 -6
- package/.output/server/_ssr/{HashValueDisplay-Bo7HtMVb.mjs → HashValueDisplay-Bkim8r3-.mjs} +2 -2
- package/.output/server/_ssr/{InsightsPageHeader-D0CFqoqK.mjs → InsightsPageHeader-Ctw4N3SZ.mjs} +6 -6
- package/.output/server/_ssr/{NotFoundPage-CrM2mNho.mjs → NotFoundPage-Bh3gFsR6.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-Cuhy0CIO.mjs → PlatformIcon-CMLs3Wez.mjs} +1 -1
- package/.output/server/_ssr/{RelativeTime-pdNaQt7K.mjs → RelativeTime-DjdCU0J7.mjs} +3 -3
- package/.output/server/_ssr/{RolloutPercentageBadge-D2fgomoj.mjs → RolloutPercentageBadge-BiIHw-V2.mjs} +3 -3
- package/.output/server/_ssr/{StoreSubmission-tbaU5Jxl.mjs → StoreSubmission-Cv59joPo.mjs} +29 -7
- package/.output/server/_ssr/{TargetDisplay-c4AmIqUa.mjs → TargetDisplay-D1PKOupt.mjs} +4 -4
- package/.output/server/_ssr/{alert-dialog-Bl_9bN7q.mjs → alert-dialog-BOKQTpmP.mjs} +1 -1
- package/.output/server/_ssr/{api-bPCSYWmk.mjs → api-CDvGGB1B.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-DCdpQxvq.mjs → api-keys-DvbSgd9L.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-CWc-kMoo.mjs → api-keys-NYJ0VaDB.mjs} +9 -9
- package/.output/server/_ssr/{api-keys-rpc-r2mnoc7r.mjs → api-keys-rpc-B0MrcD15.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc--JDsqZkl.mjs → api-rpc-CIB9gcI7.mjs} +10 -10
- package/.output/server/_ssr/{auth-rpc-c6zZj3k7.mjs → auth-rpc-DsIffEXe.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-D1lLWwx9.mjs → auth.server-Dt9XHLs_.mjs} +42 -15
- package/.output/server/_ssr/{badge-Cf4fbU_q.mjs → badge-KS3YftV5.mjs} +2 -1
- package/.output/server/_ssr/{card-Bx_12-o-.mjs → card-CG5GqIoA.mjs} +1 -1
- package/.output/server/_ssr/{config.server-DBFnQIeD.mjs → config.server-CJs-9Zd_.mjs} +4 -4
- package/.output/server/_ssr/{console-access-Dah0AEYy.mjs → console-access-ClmTMpo_.mjs} +2 -2
- package/.output/server/_ssr/{console-features-CgdQJQlX.mjs → console-features-CRP-pfov.mjs} +1 -1
- package/.output/server/_ssr/{console-features-api-CP8VgLf_.mjs → console-features-api-CpMYF0Pb.mjs} +5 -5
- package/.output/server/_ssr/{console-features-rpc-BWc5qG3c.mjs → console-features-rpc-D-dr-WF8.mjs} +3 -3
- package/.output/server/_ssr/{dialog-B5-o4y_0.mjs → dialog-DvHMJkq7.mjs} +1 -1
- package/.output/server/_ssr/{empty-sGLINpS3.mjs → empty-Bx8DnyWN.mjs} +2 -2
- package/.output/server/_ssr/{field-CYSNwGK0.mjs → field-BVI4lxoz.mjs} +2 -2
- package/.output/server/_ssr/{input-group-LpWc50V4.mjs → input-group-CpJwooTk.mjs} +1 -1
- package/.output/server/_ssr/{insights-CRjccjYz.mjs → insights-B-VtObqr.mjs} +5 -5
- package/.output/server/_ssr/{insights-CjQ9FDjt.mjs → insights-DxlHHXPK.mjs} +21 -21
- package/.output/server/_ssr/{insights-api-ChTevZmg.mjs → insights-api-8PWQ7PiR.mjs} +3 -3
- package/.output/server/_ssr/{insights-C3eT73Ut.mjs → insights-b1hq1O0p.mjs} +2 -2
- package/.output/server/_ssr/{insights-failures-rpc-C2SBL0t-.mjs → insights-failures-rpc-pY2KV9HI.mjs} +7 -7
- package/.output/server/_ssr/{insights-recovery-rpc-fBmK_XwY.mjs → insights-recovery-rpc-CejmWL_y.mjs} +4 -4
- package/.output/server/_ssr/{insights-rpc-CoIPmXt3.mjs → insights-rpc-D_7d_AAJ.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-DqI-4UF6.mjs → insights-search-CoMkZvRt.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-DpI7VDWn.mjs → insights-usage-rpc-B1XSuara.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-rpc-37TTUAr6.mjs → insights-usage-rpc-CrGZDHzO.mjs} +4 -4
- package/.output/server/_ssr/{insights_.distribution-W4fpzgsj.mjs → insights_.distribution-B9sPDvG4.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-RwlJNvF6.mjs → insights_.distribution-CpqnDZNG.mjs} +15 -15
- package/.output/server/_ssr/{insights_.distribution-pdBXAM-9.mjs → insights_.distribution-EOOOOTb6.mjs} +2 -2
- package/.output/server/_ssr/{installations-DKKAVTSE.mjs → installations-BOI_y7Ma.mjs} +11 -11
- package/.output/server/_ssr/{installations-BmIh7M2B.mjs → installations-D0_0hzdi.mjs} +4 -4
- package/.output/server/_ssr/{installations-PHNRkSUb.mjs → installations-dWlOOS7Y.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-CymG4aTV.mjs → native-builds-Bx_az6YZ.mjs} +3 -3
- package/.output/server/_ssr/{native-builds-q-yQUcmQ.mjs → native-builds-C721Rw23.mjs} +25 -21
- package/.output/server/_ssr/{native-builds-CWA9Y__P.mjs → native-builds-OUdRtp6m.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_._buildId-CzJKPxiV.mjs → native-builds_._buildId-YItxv8j9.mjs} +3 -3
- package/.output/server/_ssr/{native-builds_._buildId-bLt4WRQ0.mjs → native-builds_._buildId-ubi48Sfs.mjs} +118 -85
- package/.output/server/_ssr/{nativeBuildDevice-Dn16gNmZ.mjs → nativeBuildDevice-DJUAzAIj.mjs} +26 -46
- package/.output/server/_ssr/{nativeBuildDownloadLink-mzzxooek.mjs → nativeBuildDownloadLink-C0I8eLpS.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-C52_rFTA.mjs → nativeBuildInstall-CxG8K8TL.mjs} +5 -6
- package/.output/server/_ssr/{nativeBuilds-D84Qo6jn.mjs → nativeBuilds-CRLmvFaO.mjs} +2 -2
- package/.output/server/_ssr/{native-artifact-H1MDP0Jz.mjs → publicConsoleBase-DvHYxDaG.mjs} +26 -17
- package/.output/server/_ssr/{release-adoption-rpc-CiQeg2XC.mjs → release-adoption-rpc-DcZAYRWJ.mjs} +7 -7
- package/.output/server/_ssr/{releaseAdoption-LLYlRnUB.mjs → releaseAdoption-D6ScSu-W.mjs} +1 -1
- package/.output/server/_ssr/{remote-config-D6_98aiF.mjs → remote-config-BZ_vGV97.mjs} +19 -19
- package/.output/server/_ssr/{remote-config-CHXk0t0Y.mjs → remote-config-DOcSXzxG.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DFcP3X_W.mjs → remote-config-gKqDKMxk.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-rpc-CmjtaLZo.mjs → remote-config-rpc-CVPd3V69.mjs} +3 -3
- package/.output/server/_ssr/{router-DlRo8qJe.mjs → router-Bcyej4cr.mjs} +60 -75
- package/.output/server/_ssr/{routes-BemtQYlj.mjs → routes-B10xsCh4.mjs} +22 -22
- package/.output/server/_ssr/{routes-DeokFLZU.mjs → routes-ddBRVSju.mjs} +10 -10
- package/.output/server/_ssr/{runtime.server-BsTTLV-B.mjs → runtime.server-wcHT2Cop.mjs} +2 -2
- package/.output/server/_ssr/{schema-migration-rpc-8sXxCyev.mjs → schema-migration-rpc-iWZzLv70.mjs} +3 -3
- package/.output/server/_ssr/{select-C-Xg3M0y.mjs → select-i4WT0c9r.mjs} +1 -1
- package/.output/server/_ssr/{server-BMeXGwaI.mjs → server-CMgMPrDx.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-C-YtAmhJ.mjs → sidebar-mIQgB0iy.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-C0XSSCq4.mjs → start-By4wHYjG.mjs} +1 -1
- package/.output/server/_ssr/{switch-Bq_TE-f9.mjs → switch-DR8EAh5C.mjs} +2 -2
- package/.output/server/_ssr/{table-DvW7CEdk.mjs → table-DXmK6G7A.mjs} +1 -1
- package/.output/server/_ssr/{tabs-X3A6lDz5.mjs → tabs-DAfypcYe.mjs} +2 -2
- package/.output/server/_ssr/{updateFailures-DPYzv9bE.mjs → updateFailures-DNiv3S_y.mjs} +1 -1
- package/.output/server/{_tanstack-start-manifest_v-Df6g3sSt.mjs → _tanstack-start-manifest_v-8M7ggCuB.mjs} +36 -38
- package/.output/server/index.mjs +211 -211
- package/package.json +7 -7
- package/src/components/ThemeProvider.tsx +11 -2
- package/src/components/features/native-builds/InstallCard.tsx +20 -21
- package/src/components/features/native-builds/IosInstall.tsx +77 -47
- package/src/components/features/native-builds/NativeBuildsTable.tsx +14 -9
- package/src/components/features/native-builds/SandboxBadge.tsx +8 -2
- package/src/components/features/native-builds/StoreSubmission.tsx +7 -10
- package/src/components/features/native-builds/playTracks.ts +19 -0
- package/src/components/ui/badge.tsx +2 -0
- package/src/lib/server/nativeBuildDevice.ts +22 -43
- package/src/routeTree.gen.ts +0 -44
- package/src/styles.css +8 -0
- package/.output/public/assets/StoreSubmission-CGFw9Mjw.js +0 -1
- package/.output/public/assets/native-builds-CKSg6cCF.js +0 -1
- package/.output/public/assets/native-builds_._buildId-BuVvRbMp.js +0 -1
- package/.output/public/assets/styles-83XEjOMT.css +0 -2
- package/.output/server/_ssr/nativeBuildQr-P9qKcI7l.mjs +0 -115
- package/.output/server/_ssr/publicConsoleBase-3IHSHvqd.mjs +0 -27
- package/.output/server/_ssr/qr-code-pENFuyy9.mjs +0 -22
- package/src/lib/server/nativeBuildQr.ts +0 -163
- package/src/routes/[_]hot-updater/native-builds/preview-qr.ts +0 -14
- package/src/routes/[_]hot-updater/native-builds/qr.ts +0 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { f as lazyRouteComponent, p as createFileRoute } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
2
|
-
import { t as validateNativeBuildDetailSearch } from "./-native-builds-search-
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-
|
|
4
|
-
var $$splitComponentImporter = () => import("./native-builds_._buildId-
|
|
2
|
+
import { t as validateNativeBuildDetailSearch } from "./-native-builds-search-M6t7EIt4.mjs";
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-YItxv8j9.js
|
|
4
|
+
var $$splitComponentImporter = () => import("./native-builds_._buildId-ubi48Sfs.mjs");
|
|
5
5
|
var Route = createFileRoute("/native-builds_/$buildId")({
|
|
6
6
|
component: lazyRouteComponent($$splitComponentImporter, "component"),
|
|
7
7
|
validateSearch: validateNativeBuildDetailSearch
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import { i as __toESM } from "../_runtime.mjs";
|
|
2
2
|
import { bt as require_react, yt as require_jsx_runtime } from "../_libs/@base-ui/react+[...].mjs";
|
|
3
3
|
import { K as ChevronRight, M as HardDrive, N as GitBranch, R as ExternalLink, S as PackageOpen, U as CircleCheck, _ as RefreshCw, et as ArrowUpRight, i as TriangleAlert, j as History, q as ChevronLeft, u as Smartphone, z as Download } from "../_libs/lucide-react.mjs";
|
|
4
|
-
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, k as cn, t as Button$1 } from "./sidebar-
|
|
5
|
-
import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-Bx_12-o-.mjs";
|
|
6
|
-
import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-Cf4fbU_q.mjs";
|
|
7
|
-
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-DvW7CEdk.mjs";
|
|
8
|
-
import { n as toast } from "../_libs/sonner.mjs";
|
|
4
|
+
import { C as Skeleton, O as buttonVariants, S as SidebarTrigger, k as cn, t as Button$1 } from "./sidebar-mIQgB0iy.mjs";
|
|
9
5
|
import { h as Link } from "../_libs/@tanstack/react-router+[...].mjs";
|
|
10
|
-
import { a as EmptyMedia, i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-
|
|
6
|
+
import { a as EmptyMedia, i as EmptyHeader, n as EmptyContent, o as EmptyTitle, r as EmptyDescription, t as Empty } from "./empty-Bx8DnyWN.mjs";
|
|
7
|
+
import { a as CardHeader, n as CardContent, o as CardTitle, t as Card } from "./card-CG5GqIoA.mjs";
|
|
8
|
+
import { a as Badge, i as AlertTitle, n as AlertAction, r as AlertDescription, t as Alert } from "./badge-KS3YftV5.mjs";
|
|
9
|
+
import { a as TableHeader, i as TableHead, n as TableBody, o as TableRow, r as TableCell, t as Table } from "./table-DXmK6G7A.mjs";
|
|
10
|
+
import { n as toast } from "../_libs/sonner.mjs";
|
|
11
11
|
import { i as NUMERIC_COHORT_SIZE } from "./dist-B6-irDRA.mjs";
|
|
12
|
-
import {
|
|
13
|
-
import { t as PlatformIcon } from "./PlatformIcon-
|
|
14
|
-
import { a as useConfigQuery, d as useNativeBuildDownloadLinkQuery, f as useNativeBuildDownloadUrlQuery, l as useMarkNativeBuildMutation, m as useNativeBuildPatchesQuery, p as useNativeBuildInstallEligibilityQuery, u as useNativeBuildDetailQuery } from "./api-
|
|
15
|
-
import { t as BundleIdDisplay } from "./BundleIdDisplay-
|
|
16
|
-
import { a as TargetDisplay, n as ChannelBadge, r as CopyableText, t as BuildKeyDisplay } from "./TargetDisplay-
|
|
12
|
+
import { S as shellQuote, a as consolePathOf, b as platformLabel, d as nativeBuildDeviceProfilePath, f as nativeBuildDownloadPath, g as nativeBuildLabel, h as nativeBuildItmsUrl, m as nativeBuildInstallCommand, n as IOS_UDID_STORAGE_KEY, o as formatByteSize, p as nativeBuildFileName, r as NATIVE_BUILD_INSTALL_LINK_TTL_MS, s as nativeBuildArtifacts, t as IOS_UDID_PATTERN, u as nativeBuildDeviceAddCommand, y as nativeBuildSignedDownloadUrl } from "./native-builds-OUdRtp6m.mjs";
|
|
13
|
+
import { t as PlatformIcon } from "./PlatformIcon-CMLs3Wez.mjs";
|
|
14
|
+
import { a as useConfigQuery, d as useNativeBuildDownloadLinkQuery, f as useNativeBuildDownloadUrlQuery, l as useMarkNativeBuildMutation, m as useNativeBuildPatchesQuery, p as useNativeBuildInstallEligibilityQuery, u as useNativeBuildDetailQuery } from "./api-CDvGGB1B.mjs";
|
|
15
|
+
import { t as BundleIdDisplay } from "./BundleIdDisplay-DRnAzJse.mjs";
|
|
16
|
+
import { a as TargetDisplay, n as ChannelBadge, r as CopyableText, t as BuildKeyDisplay } from "./TargetDisplay-D1PKOupt.mjs";
|
|
17
17
|
import { n as require_dayjs_min } from "../_libs/dayjs.mjs";
|
|
18
|
-
import { n as
|
|
19
|
-
import { t as
|
|
20
|
-
import { t as
|
|
21
|
-
import {
|
|
22
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-
|
|
18
|
+
import { i as isSubmitted, n as SandboxBadge, r as StoreSubmissionBadge, t as PLAY_TRACKS } from "./StoreSubmission-Cv59joPo.mjs";
|
|
19
|
+
import { t as Route } from "./native-builds_._buildId-YItxv8j9.mjs";
|
|
20
|
+
import { n as TimestampDisplay, r as getCommitUrl, t as RolloutPercentageBadge } from "./RolloutPercentageBadge-BiIHw-V2.mjs";
|
|
21
|
+
import { t as encode } from "../_libs/uqr.mjs";
|
|
22
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/native-builds_._buildId-ubi48Sfs.js
|
|
23
23
|
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
24
24
|
var import_jsx_runtime = require_jsx_runtime();
|
|
25
25
|
var import_dayjs_min = /* @__PURE__ */ __toESM(require_dayjs_min());
|
|
@@ -267,6 +267,24 @@ function BuiltInBundleCard({ detail }) {
|
|
|
267
267
|
});
|
|
268
268
|
}
|
|
269
269
|
/**
|
|
270
|
+
* A QR code of `value` as one SVG path of unit squares, with the standard
|
|
271
|
+
* four-module quiet zone: `size` is the side of its viewBox.
|
|
272
|
+
*/
|
|
273
|
+
var qrCodePath = (value) => {
|
|
274
|
+
const { data, size } = encode(value, {
|
|
275
|
+
ecc: "M",
|
|
276
|
+
border: 4
|
|
277
|
+
});
|
|
278
|
+
let path = "";
|
|
279
|
+
data.forEach((row, y) => row.forEach((dark, x) => {
|
|
280
|
+
if (dark) path += `M${x} ${y}h1v1h-1z`;
|
|
281
|
+
}));
|
|
282
|
+
return {
|
|
283
|
+
size,
|
|
284
|
+
path
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
/**
|
|
270
288
|
* A QR code of `value`, drawn as one SVG path with the standard four-module
|
|
271
289
|
* quiet zone. Phone cameras read dark modules on a light ground, so the code
|
|
272
290
|
* keeps its own two colors in both themes instead of the theme's tokens.
|
|
@@ -297,23 +315,47 @@ var IOS_STORE_APP_NOTE = "With the same bundle ID, this install replaces the App
|
|
|
297
315
|
var ACTION_CLASS = "h-auto min-h-11 w-full min-w-0 py-2 whitespace-normal sm:min-h-8 sm:w-fit";
|
|
298
316
|
/** Whether this browser runs on an iPhone or iPad: an iPad says it is a Mac. */
|
|
299
317
|
var isIosBrowser = (browser) => /iPhone|iPod|iPad/u.test(browser.userAgent) || /Macintosh/u.test(browser.userAgent) && browser.maxTouchPoints > 1;
|
|
318
|
+
/** The UDID the profile's page passed in the fragment, if any. */
|
|
319
|
+
var fragmentUdid = () => {
|
|
320
|
+
if (typeof window === "undefined") return null;
|
|
321
|
+
const udid = new URLSearchParams(window.location.hash.slice(1)).get("udid");
|
|
322
|
+
return udid !== null && IOS_UDID_PATTERN.test(udid) ? udid : null;
|
|
323
|
+
};
|
|
300
324
|
/**
|
|
301
|
-
* Whether this page is open on an iPhone, and
|
|
302
|
-
*
|
|
303
|
-
* browser. Null until then.
|
|
325
|
+
* Whether this page is open on an iPhone, and its UDID: the one this phone
|
|
326
|
+
* kept, else the one the profile's page passed in the fragment. Read after the
|
|
327
|
+
* page mounts: the server renders it without a browser. Null until then.
|
|
304
328
|
*/
|
|
305
329
|
var useIosDevice = () => {
|
|
306
330
|
const [device, setDevice] = (0, import_react.useState)(null);
|
|
331
|
+
const [passed] = (0, import_react.useState)(fragmentUdid);
|
|
307
332
|
(0, import_react.useEffect)(() => {
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
333
|
+
const valid = (udid) => udid != null && IOS_UDID_PATTERN.test(udid) ? udid : null;
|
|
334
|
+
if (passed !== null && window.location.hash !== "") window.history.replaceState(window.history.state, "", `${window.location.pathname}${window.location.search}`);
|
|
335
|
+
const read = () => {
|
|
336
|
+
let udid = null;
|
|
337
|
+
try {
|
|
338
|
+
udid = window.localStorage.getItem(IOS_UDID_STORAGE_KEY);
|
|
339
|
+
} catch {}
|
|
340
|
+
const kept = valid(udid) ?? passed;
|
|
341
|
+
setDevice((current) => current?.udid === kept && current !== null ? current : {
|
|
342
|
+
ios: isIosBrowser(navigator),
|
|
343
|
+
udid: kept
|
|
344
|
+
});
|
|
345
|
+
};
|
|
346
|
+
read();
|
|
347
|
+
const onStorage = (event) => {
|
|
348
|
+
if (event.key === null || event.key === "hot-updater-ios-udid") read();
|
|
349
|
+
};
|
|
350
|
+
window.addEventListener("storage", onStorage);
|
|
351
|
+
window.addEventListener("pageshow", read);
|
|
352
|
+
document.addEventListener("visibilitychange", read);
|
|
353
|
+
return () => {
|
|
354
|
+
window.removeEventListener("storage", onStorage);
|
|
355
|
+
window.removeEventListener("pageshow", read);
|
|
356
|
+
document.removeEventListener("visibilitychange", read);
|
|
357
|
+
};
|
|
358
|
+
}, [passed]);
|
|
317
359
|
return device;
|
|
318
360
|
};
|
|
319
361
|
/**
|
|
@@ -359,14 +401,11 @@ function RenewInstallLink({ fetching, onRenew }) {
|
|
|
359
401
|
})]
|
|
360
402
|
});
|
|
361
403
|
}
|
|
362
|
-
function InstallButton({ build, token
|
|
404
|
+
function InstallButton({ build, token }) {
|
|
363
405
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("a", {
|
|
364
|
-
className: buttonVariants({
|
|
365
|
-
className: ACTION_CLASS,
|
|
366
|
-
variant: secondary ? "outline" : "default"
|
|
367
|
-
}),
|
|
406
|
+
className: buttonVariants({ className: ACTION_CLASS }),
|
|
368
407
|
href: nativeBuildItmsUrl(window.location, build.id, token),
|
|
369
|
-
children:
|
|
408
|
+
children: "Install"
|
|
370
409
|
});
|
|
371
410
|
}
|
|
372
411
|
/** What a tester reads before Install opens the system's install prompt. */
|
|
@@ -384,16 +423,17 @@ function InstallNotes() {
|
|
|
384
423
|
}
|
|
385
424
|
/**
|
|
386
425
|
* The link that hands this iPhone the profile that reads its UDID, under the
|
|
387
|
-
* console's path. A plain link, so iOS offers the profile.
|
|
426
|
+
* console's path. A plain link, so iOS offers the profile. Once it's installed,
|
|
427
|
+
* the phone comes back to this page, which then offers Install.
|
|
388
428
|
*/
|
|
389
|
-
function
|
|
429
|
+
function InstallProfile({ build, again = false }) {
|
|
390
430
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("a", {
|
|
391
431
|
className: buttonVariants({
|
|
392
432
|
className: ACTION_CLASS,
|
|
393
|
-
variant:
|
|
433
|
+
variant: again ? "secondary" : "default"
|
|
394
434
|
}),
|
|
395
435
|
href: `${consolePathOf(window.location, build.id)}${nativeBuildDeviceProfilePath(build.id)}`,
|
|
396
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), "
|
|
436
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Smartphone, { "data-icon": "inline-start" }), again ? "Install the profile again" : "Install profile"]
|
|
397
437
|
});
|
|
398
438
|
}
|
|
399
439
|
/**
|
|
@@ -405,7 +445,7 @@ function CheckThisIphone({ build, outline = false }) {
|
|
|
405
445
|
function IosInstall({ build, udid }) {
|
|
406
446
|
const eligibility = useNativeBuildInstallEligibilityQuery(build.id, udid);
|
|
407
447
|
const { refetch } = eligibility;
|
|
408
|
-
const expired = useInstallLinkExpired(eligibility.dataUpdatedAt, eligibility.data?.status === "installable");
|
|
448
|
+
const expired = useInstallLinkExpired(eligibility.dataUpdatedAt, eligibility.data?.status === "installable" && eligibility.data.device === "included");
|
|
409
449
|
(0, import_react.useEffect)(() => {
|
|
410
450
|
if (expired) refetch();
|
|
411
451
|
}, [expired, refetch]);
|
|
@@ -446,14 +486,6 @@ function IosInstall({ build, udid }) {
|
|
|
446
486
|
]
|
|
447
487
|
});
|
|
448
488
|
if (token === null) return null;
|
|
449
|
-
const install = ({ secondary = false } = {}) => expired ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RenewInstallLink, {
|
|
450
|
-
fetching: eligibility.isFetching,
|
|
451
|
-
onRenew: () => void refetch()
|
|
452
|
-
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallButton, {
|
|
453
|
-
build,
|
|
454
|
-
secondary,
|
|
455
|
-
token
|
|
456
|
-
});
|
|
457
489
|
if (result.device === "included") return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
458
490
|
className: "flex min-w-0 flex-col gap-3",
|
|
459
491
|
children: [
|
|
@@ -461,7 +493,13 @@ function IosInstall({ build, udid }) {
|
|
|
461
493
|
className: "text-sm font-medium",
|
|
462
494
|
children: "This iPhone is in this build."
|
|
463
495
|
}),
|
|
464
|
-
|
|
496
|
+
expired ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(RenewInstallLink, {
|
|
497
|
+
fetching: eligibility.isFetching,
|
|
498
|
+
onRenew: () => void refetch()
|
|
499
|
+
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallButton, {
|
|
500
|
+
build,
|
|
501
|
+
token
|
|
502
|
+
}),
|
|
465
503
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallNotes, {})
|
|
466
504
|
]
|
|
467
505
|
});
|
|
@@ -483,29 +521,24 @@ function IosInstall({ build, udid }) {
|
|
|
483
521
|
value: nativeBuildDeviceAddCommand(udid ?? ""),
|
|
484
522
|
wrap: true
|
|
485
523
|
}),
|
|
486
|
-
|
|
487
|
-
|
|
524
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallProfile, {
|
|
525
|
+
build,
|
|
526
|
+
again: true
|
|
527
|
+
})
|
|
488
528
|
]
|
|
489
529
|
});
|
|
490
530
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
491
531
|
className: "flex min-w-0 flex-col gap-3",
|
|
492
|
-
children: [
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
}),
|
|
503
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
504
|
-
className: "flex flex-col gap-2 sm:flex-row sm:flex-wrap",
|
|
505
|
-
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CheckThisIphone, { build }), install({ secondary: true })]
|
|
506
|
-
}),
|
|
507
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallNotes, {})
|
|
508
|
-
]
|
|
532
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
533
|
+
className: "flex min-w-0 flex-col gap-1",
|
|
534
|
+
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
535
|
+
className: "text-sm font-medium",
|
|
536
|
+
children: "Install the profile first"
|
|
537
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("p", {
|
|
538
|
+
className: "text-xs text-muted-foreground",
|
|
539
|
+
children: "iOS installs this IPA only on the devices it lists. The profile reads this iPhone's ID and nothing else: allow the download, then install it in Settings, where iOS calls it not signed. Safari comes back here to install the app, and nothing stays installed."
|
|
540
|
+
})]
|
|
541
|
+
}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(InstallProfile, { build })]
|
|
509
542
|
});
|
|
510
543
|
}
|
|
511
544
|
/**
|
|
@@ -605,25 +638,17 @@ function SubmittedVersion({ build }) {
|
|
|
605
638
|
});
|
|
606
639
|
}
|
|
607
640
|
/**
|
|
608
|
-
*
|
|
609
|
-
* the
|
|
641
|
+
* A build a store took installs from the store, so the card leads with it, and
|
|
642
|
+
* the file stays for keeping, with no QR code or signed link to ask for.
|
|
610
643
|
*/
|
|
611
|
-
|
|
612
|
-
testflight
|
|
644
|
+
function StoreInstallCard({ build }) {
|
|
645
|
+
const store = build.submitted_to === "testflight" ? {
|
|
613
646
|
name: "App Store Connect",
|
|
614
647
|
url: "https://appstoreconnect.apple.com/apps"
|
|
615
|
-
}
|
|
616
|
-
"play-internal": {
|
|
648
|
+
} : {
|
|
617
649
|
name: "Play Console",
|
|
618
650
|
url: "https://play.google.com/console"
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
|
-
/**
|
|
622
|
-
* A build a store took installs from the store, so the card leads with it, and
|
|
623
|
-
* the file stays for keeping, with no QR code or signed link to ask for.
|
|
624
|
-
*/
|
|
625
|
-
function StoreInstallCard({ build }) {
|
|
626
|
-
const store = STORE_CONSOLES[build.submitted_to];
|
|
651
|
+
};
|
|
627
652
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Card, {
|
|
628
653
|
className: "overflow-hidden shadow-sm",
|
|
629
654
|
children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(CardHeader, {
|
|
@@ -705,10 +730,16 @@ function InstallSteps({ build }) {
|
|
|
705
730
|
case "aab": return isSubmitted(build) ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", {
|
|
706
731
|
className: "text-xs text-muted-foreground",
|
|
707
732
|
children: [
|
|
708
|
-
"Submitted to
|
|
733
|
+
"Submitted to",
|
|
734
|
+
" ",
|
|
735
|
+
build.submitted_to === "play-internal" ? PLAY_TRACKS["play-internal"].name : PLAY_TRACKS[build.submitted_to].label,
|
|
709
736
|
" ",
|
|
737
|
+
"as ",
|
|
710
738
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SubmittedVersion, { build }),
|
|
711
|
-
".
|
|
739
|
+
".",
|
|
740
|
+
" ",
|
|
741
|
+
build.submitted_to === "play-production" ? "Users" : "Testers",
|
|
742
|
+
" get it once its release is rolled out; on an app Play Console hasn't published, the release is a draft you roll out in Play Console."
|
|
712
743
|
]
|
|
713
744
|
}) : /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
|
|
714
745
|
className: "flex min-w-0 flex-col gap-2",
|
|
@@ -764,8 +795,10 @@ function SignedLink({ link, url }) {
|
|
|
764
795
|
children: [
|
|
765
796
|
"Anyone with this link can download this build until",
|
|
766
797
|
" ",
|
|
767
|
-
(0,
|
|
768
|
-
|
|
798
|
+
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", {
|
|
799
|
+
className: "whitespace-nowrap",
|
|
800
|
+
children: [(0, import_dayjs_min.default)(link.expiresAt).format("YYYY-MM-DD"), "."]
|
|
801
|
+
})
|
|
769
802
|
]
|
|
770
803
|
})]
|
|
771
804
|
});
|
package/.output/server/_ssr/{nativeBuildDevice-Dn16gNmZ.mjs → nativeBuildDevice-DJUAzAIj.mjs}
RENAMED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { w as isUUIDv7 } from "./dist-B6-irDRA.mjs";
|
|
2
|
-
import { d as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildDevice-Dn16gNmZ.js
|
|
2
|
+
import { d as nativeBuildDeviceProfilePath, n as IOS_UDID_STORAGE_KEY, t as IOS_UDID_PATTERN } from "./native-builds-OUdRtp6m.mjs";
|
|
3
|
+
import { a as readProfileServiceUdid, r as publicConsoleBase, t as escapePlistText } from "./publicConsoleBase-DvHYxDaG.mjs";
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildDevice-DJUAzAIj.js
|
|
6
5
|
/** The most a Profile Service answer holds: a plist and a device's certificates. */
|
|
7
6
|
var MAX_RESPONSE_BYTES = 64 * 1024;
|
|
8
7
|
var devicePagePath = (id) => `/_hot-updater/native-builds/${encodeURIComponent(id)}/device`;
|
|
@@ -53,11 +52,11 @@ var serveDeviceProfile = (request, id) => {
|
|
|
53
52
|
<key>PayloadOrganization</key>
|
|
54
53
|
<string>Hot Updater</string>
|
|
55
54
|
<key>PayloadDisplayName</key>
|
|
56
|
-
<string>
|
|
55
|
+
<string>Hot Updater Device Profile</string>
|
|
57
56
|
<key>PayloadDescription</key>
|
|
58
57
|
<string>Sends this iPhone's ID (UDID) to ${escapePlistText(host)}, to check whether a build can install on it. Nothing stays installed.</string>
|
|
59
58
|
<key>PayloadIdentifier</key>
|
|
60
|
-
<string>dev.hot-updater.
|
|
59
|
+
<string>dev.hot-updater.device-profile</string>
|
|
61
60
|
<key>PayloadUUID</key>
|
|
62
61
|
<string>6D3F4C0E-52C4-4C8B-9E0A-7B1E5A0C2F11</string>
|
|
63
62
|
<key>PayloadVersion</key>
|
|
@@ -123,12 +122,9 @@ var receiveDeviceResponse = async (request, id) => {
|
|
|
123
122
|
});
|
|
124
123
|
};
|
|
125
124
|
var page = ({ buildId, nonce }) => {
|
|
126
|
-
const [commandStart, commandEnd] = nativeBuildDeviceAddCommand("UDID").split("UDID");
|
|
127
125
|
const script = JSON.stringify({
|
|
128
126
|
pattern: IOS_UDID_PATTERN.source,
|
|
129
|
-
key: IOS_UDID_STORAGE_KEY
|
|
130
|
-
commandStart,
|
|
131
|
-
commandEnd
|
|
127
|
+
key: IOS_UDID_STORAGE_KEY
|
|
132
128
|
}).replaceAll("<", "\\u003c");
|
|
133
129
|
return `<!doctype html>
|
|
134
130
|
<html lang="en">
|
|
@@ -137,38 +133,30 @@ var page = ({ buildId, nonce }) => {
|
|
|
137
133
|
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
|
|
138
134
|
<meta name="color-scheme" content="dark light">
|
|
139
135
|
<meta name="robots" content="noindex">
|
|
140
|
-
<title>
|
|
136
|
+
<title>Back to the build</title>
|
|
141
137
|
<style nonce="${nonce}">
|
|
142
|
-
:root { color-scheme: dark light; --bg: oklch(1 0 0); --fg: oklch(0.147 0.004 49.25); --muted: oklch(0.553 0.013 58.071); --line: oklch(0.923 0.003 48.717); --
|
|
143
|
-
@media (prefers-color-scheme: dark) { :root { --bg: oklch(0.147 0.004 49.25); --fg: oklch(0.985 0.001 106.423); --muted: oklch(0.709 0.01 56.259); --line: oklch(1 0 0 / 10%);
|
|
138
|
+
:root { color-scheme: dark light; --bg: oklch(1 0 0); --fg: oklch(0.147 0.004 49.25); --muted: oklch(0.553 0.013 58.071); --line: oklch(0.923 0.003 48.717); --radius: 0.45rem; }
|
|
139
|
+
@media (prefers-color-scheme: dark) { :root { --bg: oklch(0.147 0.004 49.25); --fg: oklch(0.985 0.001 106.423); --muted: oklch(0.709 0.01 56.259); --line: oklch(1 0 0 / 10%); } }
|
|
144
140
|
* { box-sizing: border-box; }
|
|
145
141
|
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.5 -apple-system, system-ui, sans-serif; }
|
|
146
142
|
main { display: flex; flex-direction: column; gap: 16px; max-width: 32rem; margin: 0 auto; padding: 32px 16px calc(32px + env(safe-area-inset-bottom)); }
|
|
147
143
|
h1 { margin: 0; font-size: 22px; line-height: 1.25; }
|
|
148
144
|
p { margin: 0; color: var(--muted); font-size: 15px; }
|
|
149
|
-
.
|
|
150
|
-
code { display: block; padding: 12px; overflow-wrap: anywhere; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font: 14px/1.4 ui-monospace, Menlo, monospace; }
|
|
151
|
-
button, a.action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 16px; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; }
|
|
152
|
-
button { border: 0; background: var(--primary); color: var(--on-primary); }
|
|
153
|
-
a.action { border: 1px solid var(--line); color: var(--fg); }
|
|
145
|
+
a.action { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; padding: 8px 16px; border-radius: var(--radius); font: inherit; font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--fg); }
|
|
154
146
|
[hidden] { display: none; }
|
|
155
147
|
</style>
|
|
156
148
|
</head>
|
|
157
149
|
<body>
|
|
158
150
|
<main>
|
|
159
|
-
<div id="
|
|
160
|
-
<h1>
|
|
151
|
+
<div id="returning" hidden>
|
|
152
|
+
<h1>Back to the build</h1>
|
|
153
|
+
<p>Opening the build's page to install it.</p>
|
|
161
154
|
</div>
|
|
162
155
|
<div id="missing" hidden>
|
|
163
156
|
<h1>No iPhone ID here</h1>
|
|
164
157
|
</div>
|
|
165
|
-
<
|
|
166
|
-
<
|
|
167
|
-
<p id="next" hidden>A maintainer runs this command to register the iPhone, then rebuilds. Open the build again afterwards to install it.</p>
|
|
168
|
-
<code id="command" hidden translate="no"></code>
|
|
169
|
-
<button id="copy" type="button" hidden>Copy command</button>
|
|
170
|
-
<p id="retry" hidden>Open the build's page in Safari and check this iPhone again. On a Mac, Finder shows an iPhone's ID, which a maintainer can register with native-build devices add.</p>
|
|
171
|
-
<a class="action" href="../../../native-builds/${encodeURIComponent(buildId)}">Back to the build</a>
|
|
158
|
+
<p id="retry" hidden>Open the build's page in Safari and install the profile again. On a Mac, Finder shows an iPhone's ID, which a maintainer can register with native-build devices add.</p>
|
|
159
|
+
<a class="action" id="back" href="../../../native-builds/${encodeURIComponent(buildId)}">Back to the build</a>
|
|
172
160
|
</main>
|
|
173
161
|
<script nonce="${nonce}">
|
|
174
162
|
(function () {
|
|
@@ -181,19 +169,11 @@ a.action { border: 1px solid var(--line); color: var(--fg); }
|
|
|
181
169
|
if (location.hash) history.replaceState(null, "", location.pathname);
|
|
182
170
|
if (!udid || !pattern.test(udid)) { show("missing"); show("retry"); return; }
|
|
183
171
|
try { localStorage.setItem(c.key, udid); } catch (e) {}
|
|
184
|
-
|
|
185
|
-
document.getElementById("
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
button.addEventListener("click", function () {
|
|
190
|
-
navigator.clipboard.writeText(command).then(function () {
|
|
191
|
-
button.textContent = "Copied";
|
|
192
|
-
}, function () {
|
|
193
|
-
getSelection().selectAllChildren(document.getElementById("command"));
|
|
194
|
-
button.textContent = "Select and copy above";
|
|
195
|
-
});
|
|
196
|
-
});
|
|
172
|
+
// The ID goes along in the fragment too, for a browser that keeps nothing.
|
|
173
|
+
var back = document.getElementById("back");
|
|
174
|
+
back.href = back.href.split("#")[0] + "#udid=" + encodeURIComponent(udid);
|
|
175
|
+
show("returning");
|
|
176
|
+
location.replace(back.href);
|
|
197
177
|
})();
|
|
198
178
|
<\/script>
|
|
199
179
|
</body>
|
|
@@ -201,12 +181,12 @@ a.action { border: 1px solid var(--line); color: var(--fg); }
|
|
|
201
181
|
`;
|
|
202
182
|
};
|
|
203
183
|
/**
|
|
204
|
-
* The page the callback lands on
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
*
|
|
184
|
+
* The page the callback lands on. It keeps the UDID in the phone's
|
|
185
|
+
* `localStorage` and goes straight back to the build's page with the UDID in
|
|
186
|
+
* the fragment too, for a browser that keeps nothing. The build's page offers
|
|
187
|
+
* Install, or the command for a maintainer, which asks whose iPhone it is,
|
|
188
|
+
* since a crafted link can carry any ID. The UDID stays in the browser: a
|
|
189
|
+
* fragment never reaches a server. It takes no session.
|
|
210
190
|
*
|
|
211
191
|
* - 400: the ID isn't a UUIDv7;
|
|
212
192
|
* - 405: a method other than GET or HEAD.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { i as getRequest } from "./server-
|
|
1
|
+
import { i as getRequest } from "./server-CMgMPrDx.mjs";
|
|
2
2
|
import { n as sameSecret } from "./local-console-Dtxlsav0.mjs";
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildDownloadLink-
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildDownloadLink-C0I8eLpS.js
|
|
4
4
|
/**
|
|
5
5
|
* How long a signed download link works. A link holds its own expiry and the
|
|
6
6
|
* Console stores nothing, so a new one never ends an older one.
|
package/.output/server/_ssr/{nativeBuildInstall-C52_rFTA.mjs → nativeBuildInstall-CxG8K8TL.mjs}
RENAMED
|
@@ -1,9 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as normalizeIosUdid, r as
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildInstall-C52_rFTA.js
|
|
1
|
+
import { _ as nativeBuildManifestPath, f as nativeBuildDownloadPath, r as NATIVE_BUILD_INSTALL_LINK_TTL_MS } from "./native-builds-OUdRtp6m.mjs";
|
|
2
|
+
import { i as readIpaInstallInfo, n as normalizeIosUdid, r as publicConsoleBase, t as escapePlistText } from "./publicConsoleBase-DvHYxDaG.mjs";
|
|
3
|
+
import { issueNativeBuildDownloadLink, refuseNativeBuildDownloadToken } from "./nativeBuildDownloadLink-C0I8eLpS.mjs";
|
|
4
|
+
import { nativeBuildArtifactUrl } from "./nativeBuilds-CRLmvFaO.mjs";
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuildInstall-CxG8K8TL.js
|
|
7
6
|
var KiB = 1024;
|
|
8
7
|
var MiB = 1024 * KiB;
|
|
9
8
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { c as nativeBuildCatalogScopeKey, l as nativeBuildChannel,
|
|
1
|
+
import { c as nativeBuildCatalogScopeKey, l as nativeBuildChannel, v as nativeBuildScope } from "./native-builds-OUdRtp6m.mjs";
|
|
2
2
|
import { n as projectCompiledCatalog } from "./releaseCatalogCompiler-D9dAMI17.mjs";
|
|
3
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuilds-
|
|
3
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/nativeBuilds-CRLmvFaO.js
|
|
4
4
|
/**
|
|
5
5
|
* One page newest first, from one keyset read: newest first for the next
|
|
6
6
|
* page, oldest first (then reversed) for the previous one. `next` is set
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/native-artifact-H1MDP0Jz.js
|
|
1
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/publicConsoleBase-DvHYxDaG.js
|
|
3
2
|
/** Why an artifact can't be read, or can't serve as a native build. */
|
|
4
3
|
var NativeArtifactError = class extends Error {
|
|
5
4
|
code;
|
|
@@ -230,20 +229,6 @@ var parsePlist = (bytes) => {
|
|
|
230
229
|
if (new TextDecoder().decode(bytes.subarray(0, 8)) === "bplist00") return parseBinaryPlist(bytes);
|
|
231
230
|
return parseXmlPlist(new TextDecoder().decode(bytes));
|
|
232
231
|
};
|
|
233
|
-
var SANDBOX_URL_SCHEME_PREFIX = "hu-sandbox-";
|
|
234
|
-
/**
|
|
235
|
-
* The URL scheme only a sandbox build registers, derived from the app's ID:
|
|
236
|
-
* the app's own scheme would ask which app to open beside the store app.
|
|
237
|
-
*/
|
|
238
|
-
var sandboxUrlSchemeOf = (appId) => `${SANDBOX_URL_SCHEME_PREFIX}${appId.toLowerCase().replace(/[^a-z0-9]+/gu, "-")}`;
|
|
239
|
-
/**
|
|
240
|
-
* The link a preview QR holds. `appId` is the scheme's `bundleIdentifier` or
|
|
241
|
-
* `packageName`: the ID before the Android sandbox's `.sandbox` suffix.
|
|
242
|
-
*/
|
|
243
|
-
var createPreviewLink = ({ appId, channel, fingerprintHash }) => {
|
|
244
|
-
assertCanonicalChannelName(channel);
|
|
245
|
-
return `${sandboxUrlSchemeOf(appId)}://hot-updater/preview?channel=${encodeURIComponent(channel)}&fingerprint=${encodeURIComponent(fingerprintHash)}`;
|
|
246
|
-
};
|
|
247
232
|
var EOCD_SIGNATURE = 101010256;
|
|
248
233
|
var ZIP64_EOCD_LOCATOR_SIGNATURE = 117853008;
|
|
249
234
|
var ZIP64_EOCD_SIGNATURE = 101075792;
|
|
@@ -589,5 +574,29 @@ var readIpaInstallInfo = async (source) => {
|
|
|
589
574
|
profileBundleIds: [.../* @__PURE__ */ new Set([bundleId, ...profiles.flatMap((item) => item.bundleId ?? [])])]
|
|
590
575
|
};
|
|
591
576
|
};
|
|
577
|
+
var ESCAPES = {
|
|
578
|
+
"&": "&",
|
|
579
|
+
"<": "<",
|
|
580
|
+
">": ">",
|
|
581
|
+
"\"": """,
|
|
582
|
+
"'": "'"
|
|
583
|
+
};
|
|
584
|
+
/**
|
|
585
|
+
* Text as an XML plist's `<string>` holds it. Control characters have no XML
|
|
586
|
+
* form at all, even escaped, so they go.
|
|
587
|
+
*/
|
|
588
|
+
var escapePlistText = (text) => [...text].filter((character) => character >= " " || " \n\r".includes(character)).map((character) => ESCAPES[character] ?? character).join("");
|
|
589
|
+
/**
|
|
590
|
+
* The console's address and path as a phone reached it, without a trailing
|
|
591
|
+
* slash, from a request to `routePath` under it. A proxy that ends TLS says so
|
|
592
|
+
* in `x-forwarded-proto`, which only upgrades the scheme: the answer goes back
|
|
593
|
+
* to whoever sent the header, and is never cached.
|
|
594
|
+
*/
|
|
595
|
+
var publicConsoleBase = (request, routePath) => {
|
|
596
|
+
const url = new URL(request.url);
|
|
597
|
+
const forwarded = request.headers.get("x-forwarded-proto")?.split(",")[0]?.trim();
|
|
598
|
+
const base = url.pathname.endsWith(routePath) ? url.pathname.slice(0, -routePath.length) : "";
|
|
599
|
+
return `${forwarded === "https" ? "https:" : url.protocol}//${url.host}${base}`;
|
|
600
|
+
};
|
|
592
601
|
//#endregion
|
|
593
|
-
export { readProfileServiceUdid as i, normalizeIosUdid as n,
|
|
602
|
+
export { readProfileServiceUdid as a, readIpaInstallInfo as i, normalizeIosUdid as n, publicConsoleBase as r, escapePlistText as t };
|
package/.output/server/_ssr/{release-adoption-rpc-CiQeg2XC.mjs → release-adoption-rpc-DcZAYRWJ.mjs}
RENAMED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { l as createServerFn } from "./createServerFn-AQvBMBjJ.mjs";
|
|
2
|
-
import { t as consoleAccess } from "./console-access-
|
|
2
|
+
import { t as consoleAccess } from "./console-access-ClmTMpo_.mjs";
|
|
3
3
|
import { t as createServerRpc } from "./createServerRpc-DJZel12M.mjs";
|
|
4
4
|
import { a as readAdoptionReleasesInput, i as readAdoptionReleaseInput, o as readBundleEventsInput } from "./release-adoption-C7sUFDwa.mjs";
|
|
5
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/release-adoption-rpc-
|
|
5
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/release-adoption-rpc-DcZAYRWJ.js
|
|
6
6
|
var listAdoptionReleasesRpc_createServerFn_handler = createServerRpc({
|
|
7
7
|
id: "d11a48f7251928b7819e2376aed4902fa66277bf6d30312d87ca53468332f256",
|
|
8
8
|
name: "listAdoptionReleasesRpc",
|
|
9
9
|
filename: "src/lib/release-adoption-rpc.ts"
|
|
10
10
|
}, (opts) => listAdoptionReleasesRpc.__executeServer(opts));
|
|
11
11
|
var listAdoptionReleasesRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readAdoptionReleasesInput).handler(listAdoptionReleasesRpc_createServerFn_handler, async ({ data }) => {
|
|
12
|
-
const [{ prepareConfig }, { listAdoptionReleases }] = await Promise.all([import("./config.server-
|
|
12
|
+
const [{ prepareConfig }, { listAdoptionReleases }] = await Promise.all([import("./config.server-CJs-9Zd_.mjs"), import("./releaseAdoption-D6ScSu-W.mjs")]);
|
|
13
13
|
const { core } = await prepareConfig();
|
|
14
14
|
return listAdoptionReleases(core, data);
|
|
15
15
|
});
|
|
@@ -19,7 +19,7 @@ var getAdoptionReleaseRpc_createServerFn_handler = createServerRpc({
|
|
|
19
19
|
filename: "src/lib/release-adoption-rpc.ts"
|
|
20
20
|
}, (opts) => getAdoptionReleaseRpc.__executeServer(opts));
|
|
21
21
|
var getAdoptionReleaseRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readAdoptionReleaseInput).handler(getAdoptionReleaseRpc_createServerFn_handler, async ({ data }) => {
|
|
22
|
-
const [{ prepareConfig }, { getAdoptionRelease }] = await Promise.all([import("./config.server-
|
|
22
|
+
const [{ prepareConfig }, { getAdoptionRelease }] = await Promise.all([import("./config.server-CJs-9Zd_.mjs"), import("./releaseAdoption-D6ScSu-W.mjs")]);
|
|
23
23
|
const { core } = await prepareConfig();
|
|
24
24
|
return getAdoptionRelease(core, data);
|
|
25
25
|
});
|
|
@@ -30,9 +30,9 @@ var getBundleEventsRpc_createServerFn_handler = createServerRpc({
|
|
|
30
30
|
}, (opts) => getBundleEventsRpc.__executeServer(opts));
|
|
31
31
|
var getBundleEventsRpc = createServerFn({ method: "GET" }).middleware([consoleAccess]).validator(readBundleEventsInput).handler(getBundleEventsRpc_createServerFn_handler, async ({ data }) => {
|
|
32
32
|
const [{ prepareConfig }, { getBundleEvents }, { requireFeature }] = await Promise.all([
|
|
33
|
-
import("./config.server-
|
|
34
|
-
import("./releaseAdoption-
|
|
35
|
-
import("./runtime.server-
|
|
33
|
+
import("./config.server-CJs-9Zd_.mjs"),
|
|
34
|
+
import("./releaseAdoption-D6ScSu-W.mjs"),
|
|
35
|
+
import("./runtime.server-wcHT2Cop.mjs")
|
|
36
36
|
]);
|
|
37
37
|
const { runtime } = await prepareConfig();
|
|
38
38
|
return getBundleEvents(await requireFeature(runtime, "insightsAnalytics"), data);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as addReleaseReachability } from "./releaseReachability-DaZ7ifUF.mjs";
|
|
2
2
|
import { r as recoveryWindows, t as insightsPeriodEnd } from "./insights-recovery-DOkpqnQ8.mjs";
|
|
3
3
|
import { a as readAdoptionReleasesInput, i as readAdoptionReleaseInput, o as readBundleEventsInput } from "./release-adoption-C7sUFDwa.mjs";
|
|
4
|
-
//#region node_modules/.nitro/vite/services/ssr/assets/releaseAdoption-
|
|
4
|
+
//#region node_modules/.nitro/vite/services/ssr/assets/releaseAdoption-D6ScSu-W.js
|
|
5
5
|
/** Rows read past a focused release to find the bundle before it. */
|
|
6
6
|
var PREVIOUS_ROWS = 4;
|
|
7
7
|
var platformsOf = (platform) => platform === "all" ? ["ios", "android"] : [platform];
|