@hot-updater/console 1.2.0-rc.13 → 1.2.0-rc.14
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-DC2PutLU.js → -native-builds-search-OlRj4Jz0.js} +1 -1
- package/.output/public/assets/BundleIdDisplay-CP6rsdFO.js +1 -0
- package/.output/public/assets/{ConsoleFeatureUnavailable-oMmbaqF6.js → ConsoleFeatureUnavailable-DUqlpHCp.js} +1 -1
- package/.output/public/assets/EventDetails-Dcpdu7re.js +1 -0
- package/.output/public/assets/HashValueDisplay-MoZMmTeP.js +1 -0
- package/.output/public/assets/{InsightsPageHeader-q2FgL8xS.js → InsightsPageHeader-CSas9gM0.js} +1 -1
- package/.output/public/assets/{PlatformIcon-DCTtCP5t.js → PlatformIcon-CJ69KopR.js} +1 -1
- package/.output/public/assets/RelativeTime-CiZ7yXNJ.js +1 -0
- package/.output/public/assets/RolloutPercentageBadge-D-tZKnX7.js +1 -0
- package/.output/public/assets/StoreSubmission-F00RL5rI.js +1 -0
- package/.output/public/assets/TargetDisplay-CoYY8Fs4.js +1 -0
- package/.output/public/assets/api-keys-3IL4dIHe.js +1 -0
- package/.output/public/assets/api-keys-4w2-ofii.js +1 -0
- package/.output/public/assets/badge-laIuYW1U.js +1 -0
- package/.output/public/assets/card-ulgg5xHn.js +1 -0
- package/.output/public/assets/{index-t0CToN0S.js → index-Cde2QQJq.js} +3 -3
- package/.output/public/assets/insights-0TUItqwh.js +1 -0
- package/.output/public/assets/insights-DDRfERph.js +2 -0
- package/.output/public/assets/insights-_6iMn8GR.js +42 -0
- package/.output/public/assets/{insights-search-B5cZsP6C.js → insights-search-CYPrQVUC.js} +1 -1
- package/.output/public/assets/{insights-usage-rpc-zut_JaSS.js → insights-usage-rpc-BbFllvi_.js} +1 -1
- package/.output/public/assets/insights_.distribution-AZcfvK7x.js +1 -0
- package/.output/public/assets/insights_.distribution-BGAqgPi0.js +1 -0
- package/.output/public/assets/insights_.distribution-CjYkDRA4.js +2 -0
- package/.output/public/assets/installations-Ap2G2tDs.js +1 -0
- package/.output/public/assets/{installations-BRS-vuRJ.js → installations-CSZfo1rG.js} +2 -2
- package/.output/public/assets/installations-CwQYwQ6K.js +1 -0
- package/.output/public/assets/native-builds-cT9Ha-jZ.js +1 -0
- package/.output/public/assets/native-builds-v5wez34c.js +2 -0
- package/.output/public/assets/native-builds_._buildId-BBwE8Pcc.js +2 -0
- package/.output/public/assets/native-builds_._buildId-DZPcR_up.js +1 -0
- package/.output/public/assets/package-ytYrywZH.js +1 -0
- package/.output/public/assets/remote-config-CIAEArwq.js +1 -0
- package/.output/public/assets/{remote-config-DQguWTMa.js → remote-config-Dwdc-sij.js} +1 -1
- package/.output/public/assets/remote-config-ZJ_IRSKE.js +6 -0
- package/.output/public/assets/routes-BUWLcUqW.js +1 -0
- package/.output/public/assets/routes-Rtz-KcQO.js +2 -0
- package/.output/public/assets/styles-bNNic0NS.css +2 -0
- package/.output/public/assets/valueToPercent-B6X9rUJM.js +1 -0
- package/.output/server/{__23tanstack-start-server-fn-resolver-DI0OnlQe.mjs → __23tanstack-start-server-fn-resolver-BD3yIgQW.mjs} +49 -49
- package/.output/server/_libs/_.mjs +1 -1
- package/.output/server/_libs/lucide-react.mjs +1 -27
- package/.output/server/_ssr/{BundleIdDisplay-SAvC-NlE.mjs → BundleIdDisplay-Di0dxxxD.mjs} +2 -2
- package/.output/server/_ssr/{ConsoleFeatureUnavailable-BgHEoZ36.mjs → ConsoleFeatureUnavailable-BJM23Zg6.mjs} +6 -6
- package/.output/server/_ssr/{EventDetails-VaS25yjE.mjs → EventDetails-BatEDlOf.mjs} +7 -7
- package/.output/server/_ssr/{HashValueDisplay-BGc-x_l8.mjs → HashValueDisplay-DoVLNSRc.mjs} +6 -6
- package/.output/server/_ssr/{InsightsPageHeader-gMuNJt-f.mjs → InsightsPageHeader--Lsgjvy7.mjs} +6 -6
- package/.output/server/_ssr/{NotFoundPage-DsRI-J4h.mjs → NotFoundPage-DsX6EelI.mjs} +2 -2
- package/.output/server/_ssr/{PlatformIcon-BsU0d0jN.mjs → PlatformIcon-Cuhy0CIO.mjs} +12 -2
- package/.output/server/_ssr/RelativeTime-BVQMmkQi.mjs +209 -0
- package/.output/server/_ssr/{git-WSg7LY17.mjs → RolloutPercentageBadge-B5_ASwiR.mjs} +18 -2
- package/.output/server/_ssr/StoreSubmission-B-oliflh.mjs +65 -0
- package/.output/server/_ssr/TargetDisplay-Zy7Xom4-.mjs +100 -0
- package/.output/server/_ssr/{alert-dialog-lury59vV.mjs → alert-dialog-C4wLRSPA.mjs} +1 -1
- package/.output/server/_ssr/{api-BQ8ztUgU.mjs → api-B9fz7k5l.mjs} +4 -4
- package/.output/server/_ssr/{api-keys-CHATVpa9.mjs → api-keys-CWRy6qIm.mjs} +2 -2
- package/.output/server/_ssr/{api-keys-DVChzF3r.mjs → api-keys-DSBFZRhe.mjs} +10 -9
- package/.output/server/_ssr/{api-keys-rpc-DXPJTfdr.mjs → api-keys-rpc-CWXJDGcR.mjs} +3 -3
- package/.output/server/_ssr/{api-rpc-BexxmTM9.mjs → api-rpc-DFAKchn0.mjs} +10 -10
- package/.output/server/_ssr/{auth-rpc-BgNCvy2L.mjs → auth-rpc-CCrZswwU.mjs} +4 -4
- package/.output/server/_ssr/{auth.server-43UW34Rd.mjs → auth.server-B_NFqTVL.mjs} +2 -2
- package/.output/server/_ssr/{badge-BYB825vl.mjs → badge-CrneyinM.mjs} +2 -44
- package/.output/server/_ssr/card-uJiVh8Ex.mjs +49 -0
- package/.output/server/_ssr/{config.server-QRTmD4Hf.mjs → config.server-DegewTDN.mjs} +3 -3
- package/.output/server/_ssr/{console-access-E91fYTIB.mjs → console-access-Dn2nyMoy.mjs} +2 -2
- package/.output/server/_ssr/{console-features-api-CLRjxvy2.mjs → console-features-api-XvLDCadj.mjs} +3 -3
- package/.output/server/_ssr/{console-features-rpc-C2rJ0u6i.mjs → console-features-rpc-BGj3a9MK.mjs} +3 -3
- package/.output/server/_ssr/{dialog-CcF1pxfR.mjs → dialog-Bd8rq2D6.mjs} +1 -1
- package/.output/server/_ssr/{empty-DkiJ7nWt.mjs → empty-CxQ3tY82.mjs} +2 -2
- package/.output/server/_ssr/{field-CHlDI06h.mjs → field-BO99RT90.mjs} +2 -2
- package/.output/server/_ssr/{input-group-BPZ4UtB5.mjs → input-group-DTHYcd9a.mjs} +1 -1
- package/.output/server/_ssr/{insights-B3YetvBK.mjs → insights-2DKWoVb_.mjs} +5 -5
- package/.output/server/_ssr/{insights-Dn32lJ18.mjs → insights-B7__SQut.mjs} +2 -2
- package/.output/server/_ssr/{insights-CEABWFk4.mjs → insights-BxElDwIK.mjs} +21 -20
- package/.output/server/_ssr/{insights-api-CYPf5853.mjs → insights-api-BJcM3WZe.mjs} +3 -3
- package/.output/server/_ssr/{insights-failures-rpc-CxPpBR1K.mjs → insights-failures-rpc-Waj0XZKw.mjs} +4 -4
- package/.output/server/_ssr/{insights-recovery-rpc-CwnQMTE3.mjs → insights-recovery-rpc-DrPel0ob.mjs} +3 -3
- package/.output/server/_ssr/{insights-rpc-CKd5ATFI.mjs → insights-rpc-ETBGnpx2.mjs} +3 -3
- package/.output/server/_ssr/{insights-search-B_92_iEj.mjs → insights-search-Dm005qPB.mjs} +2 -2
- package/.output/server/_ssr/{insights-usage-rpc-RIMNhPtj.mjs → insights-usage-rpc-DLReOGQK.mjs} +3 -3
- package/.output/server/_ssr/{insights-usage-rpc-D90uHpJJ.mjs → insights-usage-rpc-SqWTs_Dy.mjs} +3 -3
- package/.output/server/_ssr/{insights_.distribution-D4QWsHNo.mjs → insights_.distribution-BEUt7pIk.mjs} +5 -5
- package/.output/server/_ssr/{insights_.distribution-D42mHSe0.mjs → insights_.distribution-B_FxGnXR.mjs} +15 -14
- package/.output/server/_ssr/{insights_.distribution-DwjIdjQi.mjs → insights_.distribution-CCxFQ1g_.mjs} +2 -2
- package/.output/server/_ssr/{installations-BIu66J6Q.mjs → installations-Bphhuxoy.mjs} +2 -2
- package/.output/server/_ssr/{installations-DyzKzWuv.mjs → installations-C9cYjLEo.mjs} +12 -12
- package/.output/server/_ssr/{installations-CfmO_V_R.mjs → installations-ChnSJFAp.mjs} +4 -4
- package/.output/server/_ssr/{native-builds-BCp8ICrn.mjs → native-builds-CCLcEAUo.mjs} +2 -2
- package/.output/server/_ssr/{native-builds-qj346atQ.mjs → native-builds-CWA9Y__P.mjs} +11 -10
- package/.output/server/_ssr/native-builds-vEUV8Jcd.mjs +548 -0
- package/.output/server/_ssr/{native-builds_._buildId-C8gsW-Rh.mjs → native-builds_._buildId-C-AS0ccm.mjs} +2 -2
- package/.output/server/_ssr/{native-builds_._buildId-BAxkkEFo.mjs → native-builds_._buildId-CDnSyuLI.mjs} +107 -58
- package/.output/server/_ssr/{nativeBuildDevice-nU480p5A.mjs → nativeBuildDevice-Dn16gNmZ.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildDownloadLink-c3tcq3G5.mjs → nativeBuildDownloadLink-XqrSsk2n.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuildInstall-B-_lHDsS.mjs → nativeBuildInstall-DqyrDtdY.mjs} +4 -4
- package/.output/server/_ssr/{nativeBuildQr-C5AFtpmE.mjs → nativeBuildQr-P9qKcI7l.mjs} +2 -2
- package/.output/server/_ssr/{nativeBuilds-CbxOJDhO.mjs → nativeBuilds-ByQdDnHG.mjs} +2 -2
- package/.output/server/_ssr/{release-adoption-rpc-BBwJO2hu.mjs → release-adoption-rpc-DUnqLbyh.mjs} +5 -5
- package/.output/server/_ssr/{remote-config-B1g7vrQD.mjs → remote-config-DC9HsCJa.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-BDijmvj1.mjs → remote-config-Db3pXNkQ.mjs} +2 -2
- package/.output/server/_ssr/{remote-config-DjeXVIcr.mjs → remote-config-jOKasCsC.mjs} +19 -18
- package/.output/server/_ssr/{remote-config-rpc-B7bzKw4N.mjs → remote-config-rpc-D4rLBAC7.mjs} +3 -3
- package/.output/server/_ssr/{router-DhxgFNWn.mjs → router-B3iMYd1N.mjs} +28 -28
- package/.output/server/_ssr/{routes-BC-rBuu_.mjs → routes-BHhqwGpi.mjs} +254 -377
- package/.output/server/_ssr/{routes-BDriEBtF.mjs → routes-Bpb4VcCf.mjs} +10 -14
- package/.output/server/_ssr/{schema-migration-rpc-CNMqY0RE.mjs → schema-migration-rpc-BY84M6ZD.mjs} +3 -3
- package/.output/server/_ssr/{select-hFD2e3Bh.mjs → select-C_ARCTCI.mjs} +2 -2
- package/.output/server/_ssr/{server-D_hG9iIq.mjs → server-yFcuyI0b.mjs} +4 -4
- package/.output/server/_ssr/{sidebar-Dmq4j1qr.mjs → sidebar-CFRWCQFu.mjs} +2 -2
- package/.output/server/_ssr/ssr.mjs +1 -1
- package/.output/server/_ssr/{start-RjhaPVFE.mjs → start-C0XSSCq4.mjs} +1 -1
- package/.output/server/_ssr/{switch-CkNsEp9k.mjs → switch-DS2sIZvU.mjs} +2 -2
- package/.output/server/_ssr/{table-CTtXogFJ.mjs → table-C4kXCYKR.mjs} +1 -1
- package/.output/server/_ssr/{tabs-BTKDM4AJ.mjs → tabs-DxOJdu7O.mjs} +2 -2
- package/.output/server/_tanstack-start-manifest_v-AYP07Vaf.mjs +194 -0
- package/.output/server/index.mjs +305 -284
- package/package.json +7 -7
- package/src/components/ChannelBadge.tsx +9 -9
- package/src/components/DataTable.tsx +303 -0
- package/src/components/HashValueDisplay.tsx +6 -3
- package/src/components/PlatformIcon.tsx +10 -0
- package/src/components/RelativeTime.tsx +31 -0
- package/src/components/TargetDisplay.tsx +69 -0
- package/src/components/features/channels/ChannelManagementDialog.tsx +3 -8
- package/src/components/features/insights/ReleaseActivity.tsx +1 -1
- package/src/components/features/native-builds/BuiltInBundleCard.tsx +29 -28
- package/src/components/features/native-builds/CommitLink.tsx +1 -1
- package/src/components/features/native-builds/ImportBuild.tsx +1 -1
- package/src/components/features/native-builds/NativeBuildDetailPage.tsx +4 -1
- package/src/components/features/native-builds/NativeBuildsPage.tsx +63 -76
- package/src/components/features/native-builds/NativeBuildsTable.tsx +435 -317
- package/src/components/features/native-builds/ShortHash.tsx +1 -1
- package/src/components/features/native-builds/StoreSubmission.tsx +11 -2
- package/src/lib/native-builds.ts +22 -6
- package/src/routes/index.tsx +290 -429
- package/src/styles.css +16 -0
- package/.output/public/assets/EventDetails-ly7ygfdH.js +0 -1
- package/.output/public/assets/HashValueDisplay-BNoXZADg.js +0 -1
- package/.output/public/assets/RolloutPercentageBadge-frllRncE.js +0 -1
- package/.output/public/assets/StoreSubmission-D8BGGGgn.js +0 -1
- package/.output/public/assets/api-keys-B0N3SixL.js +0 -1
- package/.output/public/assets/api-keys-DFAOfU4U.js +0 -1
- package/.output/public/assets/badge-UNnTz4Dl.js +0 -1
- package/.output/public/assets/download-Cf24LBde.js +0 -1
- package/.output/public/assets/insights-B0_8xNxr.js +0 -1
- package/.output/public/assets/insights-BbIzm_QG.js +0 -42
- package/.output/public/assets/insights-BtmYg4vg.js +0 -2
- package/.output/public/assets/insights_.distribution-DLxq-IKU.js +0 -1
- package/.output/public/assets/insights_.distribution-izFBYfJL.js +0 -2
- package/.output/public/assets/insights_.distribution-rdeyNhH2.js +0 -1
- package/.output/public/assets/installations-CWx7vYY5.js +0 -1
- package/.output/public/assets/installations-Ce_dTa35.js +0 -1
- package/.output/public/assets/native-builds-Br0onFRc.js +0 -2
- package/.output/public/assets/native-builds-CDYL3y0I.js +0 -1
- package/.output/public/assets/native-builds-DEWHul-_.js +0 -1
- package/.output/public/assets/native-builds_._buildId-D1XEPQ-V.js +0 -1
- package/.output/public/assets/native-builds_._buildId-x-uu1Vbr.js +0 -2
- package/.output/public/assets/remote-config-Bw6sErCV.js +0 -6
- package/.output/public/assets/remote-config-S3xj8r3x.js +0 -1
- package/.output/public/assets/routes-Dw8zgqXz.js +0 -2
- package/.output/public/assets/routes-nKCEKnhh.js +0 -1
- package/.output/public/assets/styles-uK-0vUMk.css +0 -2
- package/.output/public/assets/valueToPercent-DRLgSP0P.js +0 -1
- package/.output/server/_ssr/RolloutPercentageBadge-axz7VuIZ.mjs +0 -21
- package/.output/server/_ssr/StoreSubmission-BqXKtpqW.mjs +0 -139
- package/.output/server/_ssr/native-builds-CqFeXByK.mjs +0 -514
- package/.output/server/_tanstack-start-manifest_v-BuGAtKIu.mjs +0 -189
- /package/.output/public/assets/{NotFoundPage-fiaucvsO.js → NotFoundPage-Ckb5GMhh.js} +0 -0
- /package/.output/public/assets/{alert-dialog-Z_RNBrFc.js → alert-dialog-DiRLrFVe.js} +0 -0
- /package/.output/public/assets/{api-BEEYDSCX.js → api-LQJH44FU.js} +0 -0
- /package/.output/public/assets/{dialog-C2U9bINi.js → dialog-CLIaC82_.js} +0 -0
- /package/.output/public/assets/{dist-UQUhRoJi.js → dist-Bf1BPKMs.js} +0 -0
- /package/.output/public/assets/{empty-PAp07lsC.js → empty-Bhlj8PEo.js} +0 -0
- /package/.output/public/assets/{field-DhKRWFG5.js → field-q4sTYzNU.js} +0 -0
- /package/.output/public/assets/{input-group-BJfBVqeI.js → input-group-D_NfhUbX.js} +0 -0
- /package/.output/public/assets/{refresh-cw-C6svDMfM.js → refresh-cw-C-tvoCcE.js} +0 -0
- /package/.output/public/assets/{relativeTime-BscR0TsX.js → relativeTime-DvyxGIsm.js} +0 -0
- /package/.output/public/assets/{rotate-cw-CxFW64IG.js → rotate-cw-Clk5xTeE.js} +0 -0
- /package/.output/public/assets/{search-bIYGuFCt.js → search-nnvSOTEB.js} +0 -0
- /package/.output/public/assets/{smartphone-Bn5FtEwt.js → smartphone-r0rRdPas.js} +0 -0
- /package/.output/public/assets/{switch-DtUu1RCw.js → switch-CP6GsHmN.js} +0 -0
- /package/.output/public/assets/{table-B22H8-RL.js → table-TUtVz-2l.js} +0 -0
- /package/.output/public/assets/{tabs-Fgz3sA51.js → tabs-CP3CSmtI.js} +0 -0
- /package/.output/public/assets/{undo-2-7gOxArtb.js → undo-2-Bt0YXG26.js} +0 -0
- /package/.output/public/assets/{uuidv7-BLyD3pAM.js → uuidv7-cI6C63Fm.js} +0 -0
package/.output/nitro.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{ir as e}from"./sidebar-Di9SN47G.js";import{d as t}from"./uuidv7-
|
|
1
|
+
import{ir as e}from"./sidebar-Di9SN47G.js";import{d as t}from"./uuidv7-cI6C63Fm.js";var n=e(`hard-drive`,[[`path`,{d:`M10 16h.01`,key:`1bzywj`}],[`path`,{d:`M2.212 11.577a2 2 0 0 0-.212.896V18a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5.527a2 2 0 0 0-.212-.896L18.55 5.11A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z`,key:`18tbho`}],[`path`,{d:`M21.946 12.013H2.054`,key:`zqlbp7`}],[`path`,{d:`M6 16h.01`,key:`1pmjb7`}]]),r=e=>typeof e==`string`&&e.length>0?e:void 0,i=e=>{let n=r(e);if(n!==void 0)try{return t(n),n}catch{return}},a=e=>Object.fromEntries(Object.entries(e).filter(([,e])=>e!==void 0)),o=e=>{let t=r(e.before);return a({channel:i(e.channel),before:t,after:t===void 0?r(e.after):void 0})},s=e=>{let t=r(e.patchesBefore);return a({patchesBefore:t,patchesAfter:t===void 0?r(e.patchesAfter):void 0})};export{o as n,n as r,s as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ln as e,Wr as t}from"./sidebar-Di9SN47G.js";var n=t();function r({bundleId:t,className:r}){return(0,n.jsx)(`span`,{translate:`no`,className:e(`break-all font-mono text-xs tabular-nums`,r),children:t})}export{r as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{In as e,Wr as t,p as n}from"./sidebar-Di9SN47G.js";import{a as r,c as i,n as a,o}from"./console-features-api-DEXSwFtc.js";import{t as s}from"./arrow-up-right-DK8Zdg40.js";import{t as c}from"./NotFoundPage-
|
|
1
|
+
import{In as e,Wr as t,p as n}from"./sidebar-Di9SN47G.js";import{a as r,c as i,n as a,o}from"./console-features-api-DEXSwFtc.js";import{t as s}from"./arrow-up-right-DK8Zdg40.js";import{t as c}from"./NotFoundPage-Ckb5GMhh.js";import{i as l,n as u,o as d,r as f,t as p}from"./empty-Bhlj8PEo.js";var m=t(),h=`https://hot-updater.dev/docs/guides/console-deployment`;function g({data:t}){let g=a(t),_=r().data?.remote===!0;if(g===void 0)return(0,m.jsx)(c,{});let{label:v,plugin:y}=o[g],b=(0,m.jsx)(`code`,{className:`font-mono`,children:`${y}()`});return(0,m.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,m.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 items-center gap-3 border-b bg-background px-3 py-3 sm:min-h-12 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,m.jsx)(n,{className:`-ml-1`}),(0,m.jsx)(`h1`,{className:`text-sm font-medium`,children:v})]}),(0,m.jsx)(`div`,{className:`flex min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,m.jsxs)(p,{children:[(0,m.jsx)(l,{children:i(g,{remote:_})===`remote`?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(d,{children:`Needs the server's database`}),(0,m.jsx)(f,{children:`This console reaches a self-hosted server through its admin API, which does not serve this page. Configure the console with the database the server uses.`})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(d,{children:[v,` not installed`]}),(0,m.jsxs)(f,{children:[`Add `,b,` to `,(0,m.jsx)(`code`,{className:`font-mono`,children:`plugins`}),` `,`where you create the server and in the console config.`]})]})}),(0,m.jsx)(u,{children:(0,m.jsxs)(`a`,{className:e({variant:`outline`}),href:h,rel:`noreferrer`,target:`_blank`,children:[`Console setup guide`,(0,m.jsx)(s,{"aria-hidden":`true`,"data-icon":`inline-end`})]})})]})})]})}export{g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fn as e,Wr as t,_ as n,b as r,g as i,ii as a,ir as o,ti as s,v as c,x as l,y as u}from"./sidebar-Di9SN47G.js";import{f as d}from"./insights-api-BVCXJsoV.js";import{t as f}from"./check-CXVR3s3X.js";import{a as p}from"./useCompositeListItem-JmyDfo3-.js";import{t as m}from"./copy-DsuLj3oj.js";import{r as h,t as g}from"./HashValueDisplay-MoZMmTeP.js";import{s as _}from"./input-group-D_NfhUbX.js";import{t as v}from"./smartphone-r0rRdPas.js";import{t as y}from"./badge-laIuYW1U.js";import{n as b}from"./dist-Bf1BPKMs.js";import{i as x,o as S,r as C,t as w}from"./empty-Bhlj8PEo.js";import{n as T,r as E}from"./InsightsPageHeader-CSas9gM0.js";var D=o(`activity`,[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]),O=o(`arrow-right-left`,[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]),k=o(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),A=o(`sparkles`,[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]]),j=a(s(),1),M=t(),N={UPDATE_DOWNLOADED:{label:`Downloaded`,description:`Downloaded. It launches when the app restarts.`,variant:`default`,icon:h},UPDATE_APPLIED:{label:`Launched`,description:`The app restarted into the downloaded bundle.`,variant:`success`,icon:f},RECOVERED:{label:`Crashed`,description:`Crashed on the bundle and rolled back.`,variant:`warning`,icon:_},UPDATE_FAILED:{label:`Update failed`,description:`An update check, download, or install failed.`,variant:`destructive`,icon:k},UNCHANGED:{label:`Launch`,description:`The app launched; the report changed nothing.`,variant:`secondary`,icon:D}},P=e=>{let{kinds:t=[],previous:n}=e.change??{};return t.includes(`first_seen`)?{label:`First seen`,description:`The installation's first report to this server.`,variant:`secondary`,icon:A}:t.includes(`app_version`)||t.includes(`native_build`)?{label:`App updated`,description:n&&n.appVersion!==e.appVersion?`From app ${n.appVersion} to ${e.appVersion}.`:`A new build of the same app version.`,variant:`secondary`,icon:v}:t.includes(`bundle`)?{label:`Launched`,description:`Seen running this bundle; the report of the restart into it never arrived.`,variant:`success`,icon:f}:t.includes(`release`)?{label:`Release adopted`,description:`The bundle it runs now ships under another release.`,variant:`secondary`,icon:O}:t.includes(`channel`)?{label:`Channel changed`,description:n?`From ${n.channel} to ${e.channel}.`:`It reports on another channel.`,variant:`secondary`,icon:O}:N.UNCHANGED},F=e=>e.type===`UNCHANGED`&&e.change?P({change:e.change,appVersion:e.appVersion??``,channel:e.channel??``}):N[e.type];function I(){let[e,t]=(0,j.useState)(`UTC`);return(0,j.useEffect)(()=>{t(Intl.DateTimeFormat().resolvedOptions().timeZone)},[]),new Intl.DateTimeFormat(`en`,{timeZone:e,timeZoneName:`shortOffset`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`,hourCycle:`h23`})}function L(e,t){let n=Object.fromEntries(t.formatToParts(new Date(e)).map(({type:e,value:t})=>[e,t])),r=n.timeZoneName===`GMT`?`GMT+0`:n.timeZoneName;return`${n.year}/${n.month}/${n.day} ${n.hour}:${n.minute}:${n.second} ${r}`}function R({value:e,formatter:t,touch:n=!1}){let r=new Date(e),i=L(e,t);return(0,M.jsxs)(`details`,{className:`group/time`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer list-none rounded-md outline-none focus-visible:ring-2 focus-visible:ring-ring/30 [&::-webkit-details-marker]:hidden ${n?`flex min-h-11 items-center`:``}`,children:(0,M.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,M.jsx)(`time`,{dateTime:r.toISOString(),className:`whitespace-nowrap`,children:i}),(0,M.jsx)(p,{"aria-hidden":`true`,className:`size-3 text-muted-foreground group-open/time:rotate-180`})]})}),(0,M.jsx)(`p`,{className:`mt-2 text-muted-foreground`,children:r.toISOString().replace(`T`,` `).replace(`Z`,` UTC`)})]})}var z={patch:`A patch delivered it.`,manifest:`Only the changed files were downloaded.`,archive:`The full archive was downloaded.`},B=e=>{if(e.late)return`Counted nothing: the installation had already downloaded or run this bundle.`;if(e.impliedDownload)return`Its download report never arrived; the download counted with it.`;if(e.type===`UPDATE_FAILED`&&e.failure)return d(e.failure);if(e.type===`UPDATE_DOWNLOADED`&&e.delivery){let t=z[e.delivery]??null;return e.patchFallback?`The patch failed. ${t??``}`.trim():t}return null};function V({response:t}){let n=async()=>{try{await navigator.clipboard.writeText(t.body),b.success(`Response body copied`)}catch{b.error(`Could not copy the response body`)}};return(0,M.jsxs)(`section`,{"aria-label":`Response body`,className:`flex min-w-0 flex-col gap-3`,children:[(0,M.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response body`}),(0,M.jsxs)(e,{variant:`outline`,className:`min-h-11`,disabled:t.body===null||t.body===``,onClick:()=>void n(),children:[(0,M.jsx)(m,{"aria-hidden":`true`,"data-icon":`inline-start`}),` Copy body`]})]}),t.bodyTruncated?(0,M.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:`Truncated to the 4 KiB reporting limit. Copy includes only the stored text.`}):null,t.body?(0,M.jsx)(`pre`,{className:`rounded-md border bg-muted/30 p-4 font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:t.body}):(0,M.jsx)(w,{children:(0,M.jsxs)(x,{children:[(0,M.jsx)(S,{children:t.body===null?`Response body unavailable`:`Empty response body`}),(0,M.jsx)(C,{children:t.body===null?`The client received the HTTP status but could not read the body.`:t.status===304?`The server returned no body. The client can reuse its cached catalog.`:`The server returned no text in this response.`})]})})]})}function H({event:t}){let a=t.httpResponse,o=I(),s=a.status===304?`Not modified`:a.status>=500?`Server error`:a.status>=400?`Request error`:a.status>=300?`Redirect`:`Success`,d=a.resource===`catalog`?`Catalog`:`Artifact`,f=[[`App`,t.platform&&`${t.platform===`ios`?`iOS`:`Android`} ${t.appVersion}`],[`Channel`,t.channel],[`SDK`,t.sdkVersion],[`Installation`,t.installId]].filter(([,e])=>e!=null);return(0,M.jsxs)(i,{children:[(0,M.jsxs)(l,{"aria-label":`View ${d.toLowerCase()} response: HTTP ${a.status}`,render:(0,M.jsx)(e,{variant:`ghost`,className:`-ml-2 h-auto min-h-11 justify-start`}),children:[(0,M.jsxs)(y,{variant:a.status>=400?`destructive`:`secondary`,children:[`HTTP `,a.status]}),(0,M.jsxs)(`span`,{children:[d,` response`]})]}),(0,M.jsxs)(n,{className:`data-[side=right]:w-full data-[side=right]:sm:max-w-2xl`,children:[(0,M.jsxs)(u,{className:`border-b pr-14`,children:[(0,M.jsx)(r,{children:`HTTP response`}),(0,M.jsxs)(c,{children:[d,` · HTTP `,a.status,` · `,s,`. Most recent response available when this report was created.`]})]}),(0,M.jsxs)(`div`,{className:`flex min-h-0 flex-1 flex-col gap-6 overflow-y-auto p-6`,children:[(0,M.jsxs)(`section`,{"aria-label":`Request`,className:`flex min-w-0 flex-col gap-2`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Request`}),(0,M.jsxs)(`p`,{className:`font-mono text-xs leading-relaxed whitespace-pre-wrap wrap-anywhere`,children:[`GET `,a.path]}),a.receivedAtMs==null?null:(0,M.jsxs)(`div`,{className:`text-xs text-muted-foreground`,children:[`Response received`,` `,(0,M.jsx)(R,{value:a.receivedAtMs,formatter:o})]})]}),(0,M.jsx)(V,{response:a}),f.length?(0,M.jsxs)(`section`,{"aria-label":`Response context`,className:`flex flex-col gap-3`,children:[(0,M.jsx)(`h3`,{className:`text-sm font-medium`,children:`Response context`}),(0,M.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-6 gap-y-4`,children:f.map(([e,t])=>(0,M.jsxs)(`div`,{className:`min-w-0`,children:[(0,M.jsx)(`dt`,{className:`text-xs text-muted-foreground`,children:e}),(0,M.jsx)(`dd`,{className:`mt-1 text-sm wrap-anywhere`,children:t})]},e))})]}):null]})]})]})}function U({event:e}){let t=F(e),n=t.icon,r=B(e);return(0,M.jsxs)(`div`,{className:`flex min-w-0 flex-col items-start gap-2`,children:[(0,M.jsxs)(y,{variant:t.variant,className:`gap-1 whitespace-nowrap [&_svg]:size-3`,children:[(0,M.jsx)(n,{"aria-hidden":`true`}),t.label]}),(0,M.jsx)(`p`,{className:`max-w-56 whitespace-pre-wrap wrap-anywhere text-xs text-muted-foreground`,children:e.type===`UPDATE_FAILED`&&r?r:t.description}),e.httpResponse?(0,M.jsx)(H,{event:e}):null,e.type===`UPDATE_FAILED`&&e.failure?.errorStack?(0,M.jsxs)(`details`,{className:`w-full max-w-56 text-xs`,children:[(0,M.jsx)(`summary`,{className:`cursor-pointer text-muted-foreground`,children:`Stack trace`}),(0,M.jsx)(`pre`,{className:`mt-2 max-h-64 overflow-auto whitespace-pre-wrap wrap-anywhere font-mono`,children:e.failure.errorStack})]}):null,e.type!==`UPDATE_FAILED`&&r?(0,M.jsx)(`p`,{className:`max-w-56 whitespace-normal text-xs text-muted-foreground`,children:r}):null]})}function W({event:e,touch:t=!1}){let n=e.type===`UPDATE_DOWNLOADED`,r=e.type===`UPDATE_FAILED`,i=!r||e.failure?.stage!==`check`,a=e.type===`UNCHANGED`&&e.change?.kinds.includes(`bundle`)===!0&&e.change.previous!==void 0,o=a?e.change.previous.bundleId:e.fromBundleId,s=n||r||a||e.type===`UPDATE_APPLIED`||e.type===`RECOVERED`;return(0,M.jsxs)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] items-center gap-x-2 gap-y-2`,children:[o&&s?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n||r?`Running`:`From`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(g,{value:o,buttonClassName:t?`min-h-11 px-3`:void 0}),E(o,a?e.change.previous.minBundleId:e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null,i?(0,M.jsxs)(M.Fragment,{children:[(0,M.jsx)(`dt`,{className:`text-muted-foreground`,children:n?`Pending`:r?`Target`:s?`To`:`Current`}),(0,M.jsxs)(`dd`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,M.jsx)(g,{value:e.toBundleId,buttonClassName:t?`min-h-11 px-3`:void 0}),E(e.toBundleId,e.minBundleId)?(0,M.jsx)(T,{}):null]})]}):null]})}export{H as a,V as i,R as n,I as o,U as r,W as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ln as e,Wr as t,ir as n,it as r,nt as i,tt as a}from"./sidebar-Di9SN47G.js";import{n as o}from"./dist-Bf1BPKMs.js";var s=n(`download`,[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]),c=t(),l=(e,t=12)=>e.length>t?`${e.slice(0,Math.max(1,t-4))}…${e.slice(-4)}`:e;function u({value:t,display:n=t,maxLength:s=12,className:u,buttonClassName:d}){let f=n!==t||n.length>s,p=l(n,s),m=async()=>{try{await navigator.clipboard.writeText(t),o.success(`Copied to clipboard`,{description:t})}catch{o.error(`Failed to copy value`)}},h=e=>{e.preventDefault(),e.stopPropagation(),m()},g=e=>{(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),e.stopPropagation(),m())},_=(0,c.jsx)(`span`,{translate:`no`,className:e(`font-mono text-xs tabular-nums whitespace-nowrap`,u),children:p});return(0,c.jsxs)(a,{children:[(0,c.jsx)(r,{render:(0,c.jsx)(`button`,{type:`button`,"aria-label":`Copy full value: ${t}`,translate:`no`,className:e(`ring-ring/30 bg-muted/40 border-border/70 relative inline-flex min-w-0 after:absolute after:inset-x-0 after:-inset-y-3 sm:after:hidden max-w-full cursor-pointer items-center rounded-md border px-1.5 py-0.5 align-top shadow-xs outline-none transition-[background-color,border-color,transform,box-shadow]`,`hover:bg-muted/70 active:scale-[0.98] active:bg-muted/85 focus-visible:ring-[2px]`,`touch-manipulation select-none motion-reduce:transition-none motion-reduce:active:scale-100`,!f&&`cursor-copy`,d),onClick:h,onKeyDown:g}),children:_}),(0,c.jsx)(i,{hidden:!f,children:(0,c.jsx)(`p`,{translate:`no`,className:`break-all font-mono text-xs tabular-nums`,children:t})})]})}export{l as n,s as r,u as t};
|
package/.output/public/assets/{InsightsPageHeader-q2FgL8xS.js → InsightsPageHeader-CSas9gM0.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{In as e,Ln as t,Wr as n,p as r}from"./sidebar-Di9SN47G.js";import{t as i}from"./link-DTEyW70e.js";import{i as a,s as o}from"./console-features-api-DEXSwFtc.js";import{b as s,x as c}from"./insights-api-BVCXJsoV.js";import{t as l}from"./list-B6GeoQ_b.js";import{a as u,
|
|
1
|
+
import{In as e,Ln as t,Wr as n,p as r}from"./sidebar-Di9SN47G.js";import{t as i}from"./link-DTEyW70e.js";import{i as a,s as o}from"./console-features-api-DEXSwFtc.js";import{b as s,x as c}from"./insights-api-BVCXJsoV.js";import{t as l}from"./list-B6GeoQ_b.js";import{a as u,i as d,n as f,o as p,t as m}from"./badge-laIuYW1U.js";import{i as h,r as g,t as _}from"./tabs-CP3CSmtI.js";var v=n();function y({error:e,fallbackTitle:t}){return o(e)?(0,v.jsxs)(f,{children:[(0,v.jsx)(s,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:`Insights not installed`}),(0,v.jsx)(d,{children:e.message})]}):(0,v.jsxs)(f,{variant:`destructive`,children:[(0,v.jsx)(p,{"aria-hidden":`true`}),(0,v.jsx)(u,{children:t}),(0,v.jsx)(d,{children:`Refresh to try again. If this keeps happening, check your Insights provider connection.`})]})}var b={"24h":{label:`DAU`,period:`24 hours`,interval:`hour`},"7d":{label:`WAU`,period:`7 days`,interval:`6 hours`},"30d":{label:`MAU`,period:`30 days`,interval:`day`},"12m":{label:`YAU`,period:`12 months`,interval:`week`}};function x({label:e,onPeriodChange:t,period:n,periods:r}){return(0,v.jsx)(_,{value:n,onValueChange:e=>{let n=r.find(t=>t.value===e);n&&t(n.value)},children:(0,v.jsx)(g,{"aria-label":e,className:`min-h-11 sm:min-h-9`,children:r.map(({value:e,name:t})=>(0,v.jsx)(h,{value:e,"aria-label":t,className:`min-w-12 px-3`,children:e},e))})})}var S=[`24h`,`7d`,`30d`].map(e=>({value:e,name:b[e].period})),C=Object.keys(b).map(e=>({value:e,name:b[e].period}));function w({window:e,onWindowChange:t}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:S})}function T({window:e,onWindowChange:t,twelveMonths:n=!0}){return(0,v.jsx)(x,{label:`Reporting period`,onPeriodChange:t,period:e,periods:C.filter(({value:e})=>n||e!==`12m`)})}var E=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-7000-8000-(?:000000000000|0[12][0-9a-f]{10})|00000000-0000-0000-0000-000000000000)$/iu,D=(e,t)=>e!=null&&(e===t||E.test(e));function O(){return(0,v.jsx)(m,{className:`shrink-0 font-sans font-normal`,title:`The bundle the native build shipped`,variant:`secondary`,children:`Built-in bundle`})}function k({view:n,overviewSearch:o}){let s=a(`insightsAnalytics`);return(0,v.jsxs)(`header`,{className:`sticky top-0 z-10 flex shrink-0 flex-wrap items-center gap-3 border-b bg-background px-3 py-3 sm:bg-card/70 sm:px-4 sm:backdrop-blur-sm`,children:[(0,v.jsx)(r,{className:`-ml-1 size-11 lg:size-7`}),(0,v.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,v.jsx)(c,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,v.jsx)(`h1`,{className:`text-sm font-medium`,children:`Insights`})]}),(0,v.jsxs)(`nav`,{"aria-label":`Insights views`,className:`ml-auto flex gap-2`,children:[s?(0,v.jsx)(i,{"aria-current":n===`overview`?`page`:void 0,className:t(e({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:n===`overview`?`secondary`:`ghost`})),search:o,to:`/insights`,children:`Overview`}):null,(0,v.jsxs)(i,{"aria-current":n===`events`?`page`:void 0,className:t(e({className:`h-11 px-3 lg:h-8 lg:px-2.5`,size:`lg`,variant:n===`events`?`secondary`:`ghost`})),to:`/installations`,children:[(0,v.jsx)(l,{"aria-hidden":`true`,"data-icon":`inline-start`}),`All events`]})]})]})}export{x as a,y as c,w as i,O as n,T as o,D as r,b as s,k as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Wr as e}from"./sidebar-Di9SN47G.js";var t=e();function n({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function r({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function i({platform:e,className:i}){return e===`ios`?(0,t.jsx)(n,{className:i}):(0,t.jsx)(r,{className:i})}export{i as t};
|
|
1
|
+
import{Wr as e}from"./sidebar-Di9SN47G.js";var t=e();function n({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M12.152 6.896c-.948 0-2.415-1.078-3.96-1.04-2.04.027-3.91 1.183-4.961 3.014-2.117 3.675-.546 9.103 1.519 12.09 1.013 1.454 2.208 3.09 3.792 3.039 1.52-.065 2.09-.987 3.935-.987 1.831 0 2.35.987 3.96.948 1.637-.026 2.676-1.48 3.676-2.948 1.156-1.688 1.636-3.325 1.662-3.415-.039-.013-3.182-1.221-3.22-4.857-.026-3.04 2.48-4.494 2.597-4.559-1.429-2.09-3.623-2.324-4.39-2.376-2-.156-3.675 1.09-4.61 1.09zM15.53 3.83c.843-1.012 1.4-2.427 1.245-3.83-1.207.052-2.662.805-3.532 1.818-.78.896-1.454 2.338-1.273 3.714 1.338.104 2.715-.688 3.559-1.701`})})}function r({className:e}){return(0,t.jsx)(`svg`,{"aria-hidden":`true`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,className:e,fill:`currentColor`,children:(0,t.jsx)(`path`,{d:`M18.4395 5.5586c-.675 1.1664-1.352 2.3318-2.0274 3.498-.0366-.0155-.0742-.0286-.1113-.043-1.8249-.6957-3.484-.8-4.42-.787-1.8551.0185-3.3544.4643-4.2597.8203-.084-.1494-1.7526-3.021-2.0215-3.4864a1.1451 1.1451 0 0 0-.1406-.1914c-.3312-.364-.9054-.4859-1.379-.203-.475.282-.7136.9361-.3886 1.5019 1.9466 3.3696-.0966-.2158 1.9473 3.3593.0172.031-.4946.2642-1.3926 1.0177C2.8987 12.176.452 14.772 0 18.9902h24c-.119-1.1108-.3686-2.099-.7461-3.0683-.7438-1.9118-1.8435-3.2928-2.7402-4.1836a12.1048 12.1048 0 0 0-2.1309-1.6875c.6594-1.122 1.312-2.2559 1.9649-3.3848.2077-.3615.1886-.7956-.0079-1.1191a1.1001 1.1001 0 0 0-.8515-.5332c-.5225-.0536-.9392.3128-1.0488.5449zm-.0391 8.461c.3944.5926.324 1.3306-.1563 1.6503-.4799.3197-1.188.0985-1.582-.4941-.3944-.5927-.324-1.3307.1563-1.6504.4727-.315 1.1812-.1086 1.582.4941zM7.207 13.5273c.4803.3197.5506 1.0577.1563 1.6504-.394.5926-1.1038.8138-1.584.4941-.48-.3197-.5503-1.0577-.1563-1.6504.4008-.6021 1.1087-.8106 1.584-.4941z`})})}function i({platform:e,className:i}){return e===`ios`?(0,t.jsx)(n,{className:i}):(0,t.jsx)(r,{className:i})}function a({platform:e}){return(0,t.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,t.jsx)(i,{className:`size-4`,platform:e}),e===`ios`?`iOS`:`Android`]})}export{a as n,i as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,Fn as t,In as n,Ln as r,Wr as i,ii as a}from"./sidebar-Di9SN47G.js";import{t as o}from"./link-DTEyW70e.js";import{w as s}from"./TargetDisplay-CoYY8Fs4.js";import{t as c}from"./chevron-right-BoUXo82O.js";import{n as l,t as u}from"./relativeTime-DvyxGIsm.js";import{a as d,n as f,o as p,r as m,t as h}from"./table-TUtVz-2l.js";var g=i();function _({children:e}){return(0,g.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-hidden rounded-lg border bg-card text-card-foreground shadow-sm [&_[data-slot=table-container]]:h-full [&_[data-slot=table-container]]:overflow-auto`,children:e})}function v({header:e,children:t,className:n,...i}){return(0,g.jsxs)(h,{className:r(`min-w-max`,n),...i,children:[(0,g.jsx)(d,{className:`bg-muted/40`,children:(0,g.jsx)(p,{className:`border-b border-border/60 hover:bg-transparent [&>th]:h-10 [&>th]:text-xs [&>th]:font-semibold [&>th]:uppercase [&>th]:text-muted-foreground`,children:e})}),(0,g.jsx)(f,{children:t})]})}var y=e=>t=>{t.target instanceof Element&&t.target.closest(`button, a, input, select, textarea`)||e()};function b({className:e,onOpen:t,...n}){return(0,g.jsx)(p,{onClick:y(t),onKeyDown:e=>{e.target!==e.currentTarget||e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),t())},tabIndex:0,className:r(`cursor-pointer transition-[background-color,filter] hover:bg-muted/10 focus-within:bg-muted/15 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-ring motion-reduce:transition-none data-[state=selected]:bg-muted/15 [&>td]:py-3`,e),...n})}function x({columns:t,label:n}){return Array.from({length:7},(r,i)=>(0,g.jsx)(p,{children:(0,g.jsxs)(m,{colSpan:t,children:[i===0&&n?(0,g.jsx)(`span`,{className:`sr-only`,children:n}):null,(0,g.jsx)(e,{className:`h-8 w-full`})]})},i))}function S({columns:e,className:t,children:n}){return(0,g.jsx)(p,{children:(0,g.jsx)(m,{className:r(`h-44 text-center text-muted-foreground`,t),colSpan:e,children:n})})}function C({icon:e,title:t,children:n}){return(0,g.jsxs)(`div`,{className:`mx-auto flex max-w-sm flex-col items-center gap-2 whitespace-normal text-center text-sm text-muted-foreground`,children:[(0,g.jsx)(e,{"aria-hidden":`true`,className:`size-5`}),(0,g.jsx)(`p`,{className:`font-medium text-foreground`,children:t}),n]})}function w({children:e}){return(0,g.jsx)(`div`,{className:`p-8`,children:e})}function T({label:t}){return(0,g.jsxs)(`div`,{className:`flex flex-col gap-3 p-4`,children:[t?(0,g.jsx)(`span`,{className:`sr-only`,children:t}):null,Array.from({length:5},(t,n)=>(0,g.jsx)(e,{className:`h-44 w-full`},n))]})}function E({className:e,...t}){return(0,g.jsx)(`article`,{className:r(`flex cursor-pointer touch-manipulation flex-col gap-4 border-b p-4 transition-[background-color,filter] last:border-b-0 hover:bg-muted/10 active:bg-muted/20 motion-reduce:transition-none data-[state=selected]:bg-muted/15`,e),...t})}function D({count:e,label:r,pending:i=!1,newest:a,previous:l,next:u}){return(0,g.jsxs)(`nav`,{"aria-label":r,className:`flex flex-col gap-3 px-2 sm:flex-row sm:items-center sm:justify-between`,children:[(0,g.jsxs)(`p`,{className:`text-xs font-medium text-muted-foreground`,children:[(0,g.jsx)(`span`,{className:`text-foreground`,children:e}),` `,e===1?`entry`:`entries`,`, newest first`]}),(0,g.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 sm:justify-end`,children:[a&&!i?(0,g.jsx)(o,{className:n({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`ghost`}),search:a.search,to:a.to,children:`Newest`}):null,l&&!i?(0,g.jsxs)(o,{className:n({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:l.search,to:l.to,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}):(0,g.jsxs)(t,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[(0,g.jsx)(s,{"data-icon":`inline-start`}),`Previous`]}),u&&!i?(0,g.jsxs)(o,{className:n({className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,size:`sm`,variant:`outline`}),search:u.search,to:u.to,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]}):(0,g.jsxs)(t,{className:`h-11 flex-1 px-3 text-xs sm:h-8 sm:flex-none`,disabled:!0,size:`sm`,variant:`outline`,children:[`Next`,(0,g.jsx)(c,{"data-icon":`inline-end`})]})]})]})}var O=a(l(),1),k=a(u(),1);O.default.extend(k.default);function A({ms:e,withDate:t=!1}){let n=(0,O.default)(e),r=n.format(`YYYY-MM-DD HH:mm:ss`);return(0,g.jsxs)(`time`,{className:`flex flex-col whitespace-nowrap tabular-nums`,dateTime:n.toISOString(),title:r,children:[(0,g.jsx)(`span`,{children:n.fromNow()}),t?(0,g.jsx)(`span`,{className:`text-muted-foreground`,children:r}):null]})}export{v as a,S as c,x as d,y as f,w as i,D as l,E as n,C as o,T as r,_ as s,A as t,b as u};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ln as e,Wr as t,ii as n,ir as r}from"./sidebar-Di9SN47G.js";import{o as i,t as a}from"./badge-laIuYW1U.js";import{t as o}from"./uuidv7-cI6C63Fm.js";import{n as s,t as c}from"./relativeTime-DvyxGIsm.js";var l=r(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),u=n(s(),1),d=n(c(),1),f=t();u.default.extend(d.default);function p({uuid:e,format:t=`relative`}){let n=(0,u.default)(o(e));return t===`relative`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.fromNow()}):t===`absolute`?(0,f.jsx)(`span`,{className:`text-sm text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)}):(0,f.jsxs)(`div`,{className:`flex flex-col`,children:[(0,f.jsx)(`span`,{className:`text-sm`,children:n.fromNow()}),(0,f.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:n.format(`YYYY-MM-DD HH:mm:ss`)})]})}var m=e=>{let t=e.trim();if(t.startsWith(`git@`)){let e=t.match(/^git@([^:]+):(.+?)(?:\.git)?$/);if(e)return`https://${e[1]}/${e[2]}`}if(t.startsWith(`ssh://`))try{let e=new URL(t);return`https://${e.hostname}${e.pathname}`.replace(/\/+$/,``).replace(/\.git$/,``)}catch{return t.replace(/\/+$/,``).replace(/\.git$/,``)}return t.replace(/\/+$/,``).replace(/\.git$/,``)},h=(e,t)=>{if(!e?.trim())return null;let n=m(e);try{let{hostname:e}=new URL(n);if(e.includes(`gitlab`))return`${n}/-/commit/${t}`;if(e.includes(`bitbucket`))return`${n}/commits/${t}`}catch{}return`${n}/commit/${t}`};function g({percentage:t,className:n}){let r=t<100,o=t.toFixed(1);return(0,f.jsxs)(a,{className:e(`gap-1`,n),variant:r?`secondary`:`default`,children:[r?(0,f.jsx)(i,{className:`h-3 w-3`}):null,o,`%`]})}export{l as i,h as n,p as r,g as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Wr as e,ii as t,ir as n}from"./sidebar-Di9SN47G.js";import{t as r}from"./badge-laIuYW1U.js";import{n as i,t as a}from"./relativeTime-DvyxGIsm.js";var o=n(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),s=t(i(),1),c=t(a(),1),l=e();s.default.extend(c.default);var u={testflight:`TestFlight`,"play-internal":`Play internal`},d=e=>e.submitted_to!==null&&e.submitted_to!==void 0;function f({ms:e}){if(e===null)return null;let t=(0,s.default)(e);return(0,l.jsx)(`time`,{className:`text-xs text-muted-foreground`,dateTime:t.toISOString(),title:t.format(`YYYY-MM-DD HH:mm:ss`),children:t.fromNow()})}var p=e=>{let t=`Submitted to ${u[e.submitted_to]}`;if(e.submitted_at_ms===null)return t;let n=(0,s.default)(e.submitted_at_ms);return`${t} ${n.fromNow()}, ${n.format(`YYYY-MM-DD HH:mm:ss`)}`};function m({build:e,withTime:t=!1}){return d(e)?(0,l.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-1.5`,children:[(0,l.jsxs)(r,{className:`gap-1`,title:p(e),variant:`secondary`,children:[(0,l.jsx)(o,{"aria-hidden":`true`,className:`size-3`}),u[e.submitted_to],e.submitted_version?(0,l.jsx)(`span`,{className:`font-mono tabular-nums`,translate:`no`,children:e.submitted_version}):null]}),t?(0,l.jsx)(f,{ms:e.submitted_at_ms}):null]}):null}export{d as n,m as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Fn as e,Ln as t,Wr as n,ir as r}from"./sidebar-Di9SN47G.js";import{t as i}from"./copy-DsuLj3oj.js";import{t as a}from"./HashValueDisplay-MoZMmTeP.js";import{t as o}from"./key-round-DzBe6DHr.js";import{t as s}from"./package-ytYrywZH.js";import{t as c}from"./badge-laIuYW1U.js";import{n as l}from"./dist-Bf1BPKMs.js";import{f as u,p as d}from"./uuidv7-cI6C63Fm.js";var f=r(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),p=r(`fingerprint-pattern`,[[`path`,{d:`M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4`,key:`1nerag`}],[`path`,{d:`M14 13.12c0 2.38 0 6.38-1 8.88`,key:`o46ks0`}],[`path`,{d:`M17.29 21.02c.12-.6.43-2.3.5-3.02`,key:`ptglia`}],[`path`,{d:`M2 12a10 10 0 0 1 18-6`,key:`ydlgp0`}],[`path`,{d:`M2 16h.01`,key:`1gqxmh`}],[`path`,{d:`M21.8 16c.2-2 .131-5.354 0-6`,key:`drycrb`}],[`path`,{d:`M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2`,key:`1tidbn`}],[`path`,{d:`M8.65 22c.21-.66.45-1.32.57-2`,key:`13wd9y`}],[`path`,{d:`M9 6.8a6 6 0 0 1 9 5.2v2`,key:`1fr1j5`}]]),m=n(),h=new Set([`production`,`staging`,`dev`]);function g({channel:e,className:n}){let r=e.toLowerCase();return(0,m.jsx)(c,{variant:`outline`,translate:`no`,"data-channel":h.has(r)?r:void 0,className:t(`border-channel-other/20 bg-channel-other/10 text-channel-other`,`data-[channel=production]:border-channel-production/20 data-[channel=production]:bg-channel-production/10 data-[channel=production]:text-channel-production`,`data-[channel=staging]:border-channel-staging/20 data-[channel=staging]:bg-channel-staging/10 data-[channel=staging]:text-channel-staging`,`data-[channel=dev]:border-channel-dev/20 data-[channel=dev]:bg-channel-dev/10 data-[channel=dev]:text-channel-dev`,n),children:e})}function _({label:t,value:n,wrap:r=!1}){let a=async()=>{try{await navigator.clipboard.writeText(n),l.success(`Copied to clipboard`)}catch{l.error(`Could not copy ${t}`)}};return(0,m.jsxs)(`div`,{className:`flex w-full min-w-0 items-center gap-2 rounded-md border bg-muted/40 py-1 pr-1 pl-3`,children:[(0,m.jsx)(`code`,{className:r?`min-w-0 flex-1 text-left font-mono text-xs whitespace-normal sm:whitespace-nowrap`:`min-w-0 flex-1 overflow-x-auto text-left font-mono text-xs whitespace-nowrap`,children:n}),(0,m.jsx)(e,{"aria-label":`Copy ${t}`,className:`size-11 sm:size-7`,onClick:()=>void a(),size:`icon-sm`,variant:`ghost`,children:(0,m.jsx)(i,{"aria-hidden":`true`})})]})}var v=e=>/^[\w@%+=:,./-]+$/.test(e)?e:`'${e.replaceAll(`'`,`'\\''`)}'`,y={apk:{label:`APK`,installs:`Android device or emulator`},aab:{label:`AAB`,installs:`Google Play or bundletool`},app:{label:`Simulator app`,installs:`iOS Simulator`},ipa:{label:`IPA`,installs:`registered iOS devices`}},b=e=>e===`ios`?`iOS`:`Android`,x=e=>{let t=e.submitted_version??[e.app_version,e.build_number===null?null:`(${e.build_number})`].filter(e=>e!==null).join(` `);return t===``?null:`${b(e.platform)} ${t}`},S=e=>`/api/native-builds/${encodeURIComponent(e)}/download`,C=(e,t,n)=>`${e.origin}${w(e,t)}${S(t)}?t=${encodeURIComponent(n)}`,w=(e,t)=>{let n=T(t);return e.pathname.endsWith(n)?e.pathname.slice(0,-n.length):``},T=e=>`/native-builds/${encodeURIComponent(e)}`,E=3600*1e3,D=`hot-updater-ios-udid`,O=/^(?:[0-9a-f]{40}|[0-9a-f]{8}-[0-9a-f]{16})$/iu,k=e=>`/_hot-updater/native-builds/${encodeURIComponent(e)}/device.mobileconfig`,A=e=>`/_hot-updater/native-builds/${encodeURIComponent(e)}/manifest.plist`,j=e=>`npx hot-updater native-build devices add --udid ${e} --name "Teammate's iPhone"`,M=(e,t,n)=>{let r=`${e.origin}${w(e,t)}${A(t)}?t=${encodeURIComponent(n)}`;return`itms-services://?action=download-manifest&url=${encodeURIComponent(r)}`},N=e=>d(e.channel_id.slice(8)),P=e=>{if(e.fingerprintHash!==null)return{platform:e.platform,channel:e.channel,fingerprintHash:e.fingerprintHash,appVersion:null};let t=e.targetAppVersion;return t===null||u(t)!==t?null:{platform:e.platform,channel:e.channel,fingerprintHash:null,appVersion:t}},F=e=>{let t=(e.artifact_storage_uri.split(/[?#]/,1)[0]??``).split(`/`).at(-1)??``;try{return decodeURIComponent(t)}catch{return t}},I=[`B`,`KB`,`MB`,`GB`],L=e=>{let t=e,n=0;for(;t>=1024&&n<I.length-1;)t/=1024,n+=1;return`${n===0?t:t.toFixed(1)} ${I[n]}`},R=e=>`npx hot-updater native-build install ${v(e.id)}`;function z({icon:e,value:t,display:n}){return(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(e,{className:`size-4 shrink-0 text-muted-foreground`}),(0,m.jsx)(a,{display:n,maxLength:12,value:t})]})}function B(){return(0,m.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function V({appVersion:e,fingerprintHash:t}){return e?(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(s,{className:`size-4 shrink-0 text-muted-foreground`}),(0,m.jsx)(`span`,{className:`font-medium`,children:e})]}):t?(0,m.jsx)(z,{icon:p,value:t}):(0,m.jsx)(B,{})}function H({value:e}){return e?(0,m.jsx)(z,{display:e.replace(/^nbk1:/,``),icon:o,value:e}):(0,m.jsx)(B,{})}export{g as C,_ as S,x as _,D as a,P as b,L as c,j as d,k as f,M as g,R as h,O as i,y as l,F as m,B as n,E as o,S as p,V as r,w as s,H as t,N as u,C as v,f as w,v as x,b as y};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,Fn as t,Gr as n,Vr as r,Wr as i,Z as a,ar as o,ii as s,ir as c,nr as l,p as u,ti as d,zr as f}from"./sidebar-Di9SN47G.js";import{t as p}from"./useMutation-DbYw7boA.js";import{t as ee}from"./check-CXVR3s3X.js";import{t as te}from"./clipboard-DQbOcrL7.js";import{t as m}from"./key-round-DzBe6DHr.js";import{n as h,t as ne}from"./plus-BVhOauU3.js";import{t as g}from"./refresh-cw-C-tvoCcE.js";import{a as _,i as re,n as v,o as y,r as ie,t as ae}from"./badge-laIuYW1U.js";import{n as b}from"./dist-Bf1BPKMs.js";import{a as oe,n as se,o as x,t as S}from"./card-ulgg5xHn.js";import{a as C,c as w,i as T,l as E,n as D,o as O,r as k,s as A,t as j,u as M}from"./alert-dialog-DiRLrFVe.js";import{a as N,i as P,n as F,o as I,r as L,t as R}from"./dialog-CLIaC82_.js";import{a as z,i as B,n as V,r as H,t as U}from"./field-q4sTYzNU.js";import{a as W,i as G,n as K,o as q,r as J,t as ce}from"./table-TUtVz-2l.js";var Y=c(`shield-off`,[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]),X=s(d(),1),le=r({method:`GET`}).middleware([l]).handler(n(`2c7f3cdb9bd3cab2c026a48abdc84c362db0362924a08679052a325640aec56b`)),ue=r({method:`POST`}).middleware([l]).handler(n(`68a2d94ee016be64936401f5eba60ab08a47ff373e1cf9de48e4413336e6034b`)),de=r({method:`POST`}).middleware([l]).handler(n(`a1cb80b19ca72a64fb631ca28ebb9b6941db245983de082d5dd3203ec2eef795`)),Z={list:[`api-keys`,`list`]},fe=()=>o({queryKey:Z.list,queryFn:()=>le()}),Q=()=>{let e=f();return p({mutationFn:e=>ue({data:{name:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Z.list})}})},pe=()=>{let e=f();return p({mutationFn:e=>de({data:{id:e}}),onSuccess:async()=>{await e.invalidateQueries({queryKey:Z.list})}})},$=i(),me=e=>new Date(e).toISOString().slice(0,10);function he(){let[e,n]=(0,X.useState)(!1),[r,i]=(0,X.useState)(``),[o,s]=(0,X.useState)(null),c=Q(),l=r.trim(),u=l.length>64?`Name must be 64 characters or fewer.`:null,d=()=>{i(``),s(null),c.reset()},f=e=>{n(e),e||d()};return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(t,{onClick:()=>n(!0),children:[(0,$.jsx)(ne,{"data-icon":`inline-start`}),`Create API key`]}),(0,$.jsx)(R,{open:e,onOpenChange:f,children:(0,$.jsxs)(F,{showCloseButton:o===null,children:[(0,$.jsxs)(N,{children:[(0,$.jsx)(I,{children:o===null?`Create API key`:`Save your API key`}),(0,$.jsx)(L,{children:o===null?`Name the app or environment that will use this key.`:`This key is shown once. Store it securely before closing.`})]}),o===null?(0,$.jsxs)(`form`,{onSubmit:async e=>{if(e.preventDefault(),!(l.length===0||u!==null))try{s((await c.mutateAsync(l)).apiKey),b.success(`API key created`)}catch(e){b.error(e instanceof Error?e.message:`Unable to create API key`)}},children:[(0,$.jsx)(B,{children:(0,$.jsxs)(U,{"data-invalid":u!==null||void 0,children:[(0,$.jsx)(z,{htmlFor:`api-key-name`,children:`Name`}),(0,$.jsx)(a,{id:`api-key-name`,autoComplete:`off`,maxLength:65,onChange:e=>i(e.target.value),placeholder:`Production app`,value:r}),(0,$.jsx)(V,{children:`Use a name you can identify before revoking the key.`}),(0,$.jsx)(H,{children:u})]})}),(0,$.jsx)(P,{className:`mt-4`,children:(0,$.jsxs)(t,{disabled:c.isPending||l.length===0||u!==null,type:`submit`,children:[c.isPending?(0,$.jsx)(h,{"data-icon":`inline-start`,className:`animate-spin`}):(0,$.jsx)(m,{"data-icon":`inline-start`}),`Create API key`]})})]}):(0,$.jsxs)(B,{children:[(0,$.jsxs)(U,{children:[(0,$.jsx)(z,{htmlFor:`created-api-key`,children:`API key`}),(0,$.jsxs)(`div`,{className:`flex gap-2`,children:[(0,$.jsx)(a,{id:`created-api-key`,className:`font-mono`,readOnly:!0,value:o}),(0,$.jsxs)(t,{onClick:async()=>{if(o!==null)try{await navigator.clipboard.writeText(o),b.success(`API key copied`)}catch{b.error(`Unable to copy API key`)}},type:`button`,variant:`outline`,children:[(0,$.jsx)(te,{"data-icon":`inline-start`}),`Copy`]})]})]}),(0,$.jsx)(P,{children:(0,$.jsxs)(t,{onClick:()=>f(!1),children:[(0,$.jsx)(ee,{"data-icon":`inline-start`}),`Done`]})})]})]})})]})}function ge({record:e}){let[n,r]=(0,X.useState)(!1),i=pe(),a=async t=>{t.preventDefault();try{await i.mutateAsync(e.id),r(!1),b.success(`API key revoked`)}catch(e){b.error(e instanceof Error?e.message:`Unable to revoke API key`)}};return(0,$.jsxs)(j,{open:n,onOpenChange:e=>{i.isPending||r(e)},children:[(0,$.jsxs)(M,{render:(0,$.jsx)(t,{size:`sm`,variant:`ghost`}),children:[(0,$.jsx)(Y,{"data-icon":`inline-start`}),`Revoke`]}),(0,$.jsxs)(T,{children:[(0,$.jsxs)(A,{children:[(0,$.jsx)(w,{children:(0,$.jsx)(Y,{})}),(0,$.jsxs)(E,{children:[`Revoke `,e.name,`?`]}),(0,$.jsxs)(C,{children:[`Apps using `,e.prefix,`… will immediately lose OTA update and insights access. This action cannot be undone.`]})]}),(0,$.jsxs)(O,{children:[(0,$.jsx)(k,{disabled:i.isPending,children:`Cancel`}),(0,$.jsx)(D,{disabled:i.isPending,onClick:e=>void a(e),variant:`destructive`,children:`Revoke API key`})]})]})]})}function _e(){let n=fe();return(0,$.jsxs)(S,{className:`overflow-hidden shadow-sm`,children:[(0,$.jsxs)(oe,{className:`flex-row items-center justify-between space-y-0 border-b px-4 py-3`,children:[(0,$.jsx)(x,{className:`text-sm`,children:(0,$.jsx)(`h2`,{children:`API keys`})}),(0,$.jsx)(he,{})]}),(0,$.jsx)(se,{className:`p-0`,children:n.isError?(0,$.jsx)(`div`,{className:`p-4`,children:(0,$.jsxs)(v,{variant:`destructive`,children:[(0,$.jsx)(y,{}),(0,$.jsx)(_,{children:`API keys couldn't be loaded`}),(0,$.jsx)(re,{children:`Check your connection and try again.`}),(0,$.jsx)(ie,{children:(0,$.jsxs)(t,{onClick:()=>void n.refetch(),size:`xs`,variant:`outline`,children:[(0,$.jsx)(g,{"data-icon":`inline-start`}),`Retry`]})})]})}):(0,$.jsxs)(ce,{"aria-label":`API keys`,className:`table-fixed`,children:[(0,$.jsx)(W,{children:(0,$.jsxs)(q,{children:[(0,$.jsx)(G,{children:`Key`}),(0,$.jsx)(G,{className:`w-32`,children:`Created`}),(0,$.jsx)(G,{className:`w-24 text-right`,children:(0,$.jsx)(`span`,{className:`sr-only`,children:`Actions`})})]})}),(0,$.jsx)(K,{children:n.isLoading?Array.from({length:3},(t,n)=>(0,$.jsxs)(q,{children:[(0,$.jsxs)(J,{className:`space-y-2 py-3`,children:[n===0?(0,$.jsx)(`span`,{className:`sr-only`,children:`Loading API keys`}):null,(0,$.jsx)(e,{className:`h-3.5 w-32`}),(0,$.jsx)(e,{className:`h-3 w-20`})]}),(0,$.jsx)(J,{children:(0,$.jsx)(e,{className:`h-3.5 w-20`})}),(0,$.jsx)(J,{children:(0,$.jsx)(e,{className:`ml-auto h-6 w-16`})})]},n)):n.data?.length===0?(0,$.jsx)(q,{children:(0,$.jsx)(J,{colSpan:3,className:`h-40 text-center text-muted-foreground`,children:(0,$.jsxs)(`div`,{className:`mx-auto flex max-w-xs flex-col items-center gap-2`,children:[(0,$.jsx)(m,{className:`size-5`}),(0,$.jsx)(`p`,{className:`font-medium text-foreground`,children:`No API keys`}),(0,$.jsx)(`p`,{children:`Create an API key to connect an app.`})]})})}):n.data?.map(e=>(0,$.jsxs)(q,{className:e.revoked_at_ms===null?void 0:`text-muted-foreground`,children:[(0,$.jsx)(J,{className:`whitespace-normal py-3`,children:(0,$.jsxs)(`div`,{className:`min-w-0 space-y-1`,children:[(0,$.jsx)(`p`,{className:`break-words font-medium text-foreground`,children:e.name}),(0,$.jsxs)(`p`,{className:`font-mono text-xs text-muted-foreground`,children:[e.prefix,`…`]})]})}),(0,$.jsx)(J,{className:`text-xs text-muted-foreground`,children:(0,$.jsx)(`time`,{dateTime:new Date(e.created_at_ms).toISOString(),children:me(e.created_at_ms)})}),(0,$.jsx)(J,{className:`text-right`,children:e.revoked_at_ms===null?(0,$.jsx)(ge,{record:e}):(0,$.jsx)(ae,{variant:`outline`,children:`Revoked`})})]},e.id))})]})})]})}function ve(){return(0,$.jsxs)(`div`,{className:`flex h-svh min-h-0 flex-col`,children:[(0,$.jsxs)(`header`,{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`,children:[(0,$.jsx)(u,{className:`-ml-1`}),(0,$.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,$.jsx)(m,{"aria-hidden":`true`,className:`size-3.5 text-muted-foreground`}),(0,$.jsx)(`h1`,{className:`text-sm font-medium`,children:`API keys`})]}),(0,$.jsx)(`p`,{className:`basis-full pl-9 text-xs text-muted-foreground sm:basis-auto sm:pl-0`,children:`API keys can download OTA updates and submit insights only.`})]}),(0,$.jsx)(`div`,{className:`min-h-0 min-w-0 flex-1 overflow-y-auto bg-muted/5 p-3 sm:p-6`,children:(0,$.jsx)(`div`,{className:`mx-auto w-full max-w-5xl`,children:(0,$.jsx)(_e,{})})})]})}export{ve as component};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./ConsoleFeatureUnavailable-DUqlpHCp.js";var t=e;export{t as notFoundComponent};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ln as e,Q as t,Rn as n,Wr as r,Yn as i,ir as a,ti as o}from"./sidebar-Di9SN47G.js";var s=a(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]);o();var c=r(),l=n(`group/alert relative grid w-full gap-0.5 rounded-lg border px-2 py-1.5 text-left text-xs/relaxed has-data-[slot=alert-action]:relative has-data-[slot=alert-action]:pr-18 has-[>svg]:grid-cols-[auto_1fr] has-[>svg]:gap-x-1.5 *:[svg]:row-span-2 *:[svg]:translate-y-0.5 *:[svg]:text-current *:[svg:not([class*='size-'])]:size-3.5`,{variants:{variant:{default:`bg-card text-card-foreground`,destructive:`bg-card text-destructive *:data-[slot=alert-description]:text-destructive/90 *:[svg]:text-current`}},defaultVariants:{variant:`default`}});function u({className:t,variant:n,...r}){return(0,c.jsx)(`div`,{"data-slot":`alert`,role:`alert`,className:e(l({variant:n}),t),...r})}function d({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert-title`,className:e(`font-medium group-has-[>svg]/alert:col-start-2 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground`,t),...n})}function f({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert-description`,className:e(`text-xs/relaxed text-balance text-muted-foreground md:text-pretty [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4`,t),...n})}function p({className:t,...n}){return(0,c.jsx)(`div`,{"data-slot":`alert-action`,className:e(`absolute top-1.5 right-2`,t),...n})}var m=n(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,success:`border-success/20 bg-success/10 text-success`,warning:`border-warning/20 bg-warning/10 text-warning`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function h({className:n,variant:r=`default`,render:a,...o}){return t({defaultTagName:`span`,props:i({className:e(m({variant:r}),n)},o),render:a,state:{slot:`badge`,variant:r}})}export{d as a,f as i,u as n,s as o,p as r,h as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Ln as e,Wr as t,ti as n}from"./sidebar-Di9SN47G.js";n();var r=t();function i({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card`,className:e(`rounded-xl border bg-card text-card-foreground shadow`,t),...n})}function a({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-header`,className:e(`flex flex-col gap-1.5 p-6`,t),...n})}function o({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-title`,className:e(`font-semibold leading-none tracking-tight`,t),...n})}function s({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-description`,className:e(`text-sm text-muted-foreground`,t),...n})}function c({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-content`,className:e(`p-6 pt-0`,t),...n})}function l({className:t,...n}){return(0,r.jsx)(`div`,{"data-slot":`card-footer`,className:e(`flex items-center p-6 pt-0`,t),...n})}export{a,l as i,c as n,o,s as r,i as t};
|