@hot-updater/console 0.27.1 → 0.29.0

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.
Files changed (93) hide show
  1. package/.output/nitro.json +17 -0
  2. package/.output/public/apple-touch-icon.png +0 -0
  3. package/.output/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
  4. package/.output/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
  5. package/.output/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
  6. package/.output/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
  7. package/.output/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
  8. package/.output/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
  9. package/.output/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
  10. package/.output/public/assets/main-Dlx8-qN-.js +61 -0
  11. package/.output/public/assets/routes-DB0tWmiJ.js +10 -0
  12. package/.output/public/assets/styles-Bfxg4M1x.css +2 -0
  13. package/.output/public/favicon-16x16.png +0 -0
  14. package/.output/public/favicon-32x32.png +0 -0
  15. package/.output/public/favicon.ico +0 -0
  16. package/.output/public/logo.svg +1 -0
  17. package/.output/public/manifest.json +30 -0
  18. package/.output/public/robots.txt +3 -0
  19. package/.output/server/_chunks/ssr-renderer.mjs +15 -0
  20. package/.output/server/_libs/@floating-ui/core+[...].mjs +698 -0
  21. package/.output/server/_libs/@floating-ui/dom+[...].mjs +644 -0
  22. package/.output/server/_libs/@floating-ui/react-dom+[...].mjs +839 -0
  23. package/.output/server/_libs/@radix-ui/react-alert-dialog+[...].mjs +2093 -0
  24. package/.output/server/_libs/@radix-ui/react-popper+[...].mjs +287 -0
  25. package/.output/server/_libs/@radix-ui/react-select+[...].mjs +1003 -0
  26. package/.output/server/_libs/@tanstack/devtools-event-client+[...].mjs +196 -0
  27. package/.output/server/_libs/@tanstack/form-core+[...].mjs +2396 -0
  28. package/.output/server/_libs/@tanstack/react-form+[...].mjs +298 -0
  29. package/.output/server/_libs/@tanstack/react-router+[...].mjs +13068 -0
  30. package/.output/server/_libs/@tanstack/react-table+[...].mjs +2372 -0
  31. package/.output/server/_libs/chownr.mjs +60 -0
  32. package/.output/server/_libs/class-variance-authority+clsx.mjs +69 -0
  33. package/.output/server/_libs/core-util-is.mjs +67 -0
  34. package/.output/server/_libs/dayjs.mjs +408 -0
  35. package/.output/server/_libs/h3+rou3+srvx.mjs +1158 -0
  36. package/.output/server/_libs/hookable.mjs +41 -0
  37. package/.output/server/_libs/immediate.mjs +57 -0
  38. package/.output/server/_libs/inherits.mjs +39 -0
  39. package/.output/server/_libs/isaacs__fs-minipass+minipass.mjs +1120 -0
  40. package/.output/server/_libs/isarray.mjs +10 -0
  41. package/.output/server/_libs/jszip+[...].mjs +8311 -0
  42. package/.output/server/_libs/lucide-react.mjs +371 -0
  43. package/.output/server/_libs/minizlib.mjs +345 -0
  44. package/.output/server/_libs/next-themes.mjs +49 -0
  45. package/.output/server/_libs/radix-ui__number.mjs +6 -0
  46. package/.output/server/_libs/radix-ui__primitive.mjs +9 -0
  47. package/.output/server/_libs/radix-ui__react-arrow.mjs +23 -0
  48. package/.output/server/_libs/radix-ui__react-collection.mjs +78 -0
  49. package/.output/server/_libs/radix-ui__react-direction.mjs +11 -0
  50. package/.output/server/_libs/radix-ui__react-label.mjs +22 -0
  51. package/.output/server/_libs/radix-ui__react-separator.mjs +31 -0
  52. package/.output/server/_libs/radix-ui__react-slider.mjs +451 -0
  53. package/.output/server/_libs/radix-ui__react-switch.mjs +118 -0
  54. package/.output/server/_libs/radix-ui__react-tooltip.mjs +491 -0
  55. package/.output/server/_libs/semver.mjs +1339 -0
  56. package/.output/server/_libs/sonner.mjs +908 -0
  57. package/.output/server/_libs/tailwind-merge.mjs +1962 -0
  58. package/.output/server/_libs/tanstack__history.mjs +322 -0
  59. package/.output/server/_libs/tanstack__query-core.mjs +2073 -0
  60. package/.output/server/_libs/tanstack__react-query.mjs +146 -0
  61. package/.output/server/_libs/tanstack__router-core.mjs +6 -0
  62. package/.output/server/_libs/tar.mjs +1996 -0
  63. package/.output/server/_libs/ufo.mjs +64 -0
  64. package/.output/server/_runtime.mjs +26 -0
  65. package/.output/server/_ssr/api-rpc-D3ZehMIN.mjs +217 -0
  66. package/.output/server/_ssr/config.server-JUYQ7UbI.mjs +26 -0
  67. package/.output/server/_ssr/deleteBundle-DWUxu9-K.mjs +22 -0
  68. package/.output/server/_ssr/extract-timestamp-from-uuidv7-B90UBADU.mjs +24 -0
  69. package/.output/server/_ssr/promoteBundle-DtMHuubR.mjs +1571 -0
  70. package/.output/server/_ssr/router-pgc7NX76.mjs +250 -0
  71. package/.output/server/_ssr/routes-PqTTQSoI.mjs +1833 -0
  72. package/.output/server/_ssr/sidebar-DXng0IOP.mjs +439 -0
  73. package/.output/server/_ssr/ssr.mjs +5050 -0
  74. package/.output/server/_ssr/start-DQK0r85G.mjs +4 -0
  75. package/.output/server/_tanstack-start-manifest_v-DTbQVOpU.mjs +17 -0
  76. package/.output/server/index.mjs +417 -0
  77. package/.output/server/node_modules/tslib/modules/index.js +70 -0
  78. package/.output/server/node_modules/tslib/modules/package.json +3 -0
  79. package/.output/server/node_modules/tslib/package.json +47 -0
  80. package/.output/server/node_modules/tslib/tslib.js +484 -0
  81. package/.output/server/package.json +9 -0
  82. package/README.md +191 -2
  83. package/package.json +77 -50
  84. package/dist/.gitkeep +0 -0
  85. package/dist/assets/favicon-BkwcEHsj.ico +0 -0
  86. package/dist/assets/index-DUlKsori.css +0 -1
  87. package/dist/assets/index-ijmIcyn1.js +0 -27
  88. package/dist/assets/logo-BYNFyja1.png +0 -0
  89. package/dist/index.cjs +0 -2129
  90. package/dist/index.d.cts +0 -218
  91. package/dist/index.d.ts +0 -218
  92. package/dist/index.html +0 -14
  93. package/dist/index.js +0 -2125
@@ -0,0 +1,250 @@
1
+ import { r as __toESM } from "../_runtime.mjs";
2
+ import { P as require_jsx_runtime } from "../_libs/@radix-ui/react-alert-dialog+[...].mjs";
3
+ import { a as createRouter, c as createFileRoute, l as createRootRoute, n as Scripts, o as Outlet, p as useRouterState, r as HeadContent, s as lazyRouteComponent, u as Link } from "../_libs/@tanstack/react-router+[...].mjs";
4
+ import { u as require_react } from "../_libs/@floating-ui/react-dom+[...].mjs";
5
+ import { _ as CircleCheck, c as Moon, f as Info, n as TriangleAlert, o as Package, r as Sun, s as OctagonX, u as LoaderCircle } from "../_libs/lucide-react.mjs";
6
+ import { T as TooltipProvider, _ as SidebarMenu, b as SidebarProvider, d as SidebarFooter, f as SidebarGroup, g as SidebarInset, h as SidebarHeader, l as Sidebar, m as SidebarGroupLabel, p as SidebarGroupContent, t as Button, u as SidebarContent, v as SidebarMenuButton, y as SidebarMenuItem } from "./sidebar-DXng0IOP.mjs";
7
+ import { t as QueryClient } from "../_libs/tanstack__query-core.mjs";
8
+ import { r as QueryClientProvider } from "../_libs/tanstack__react-query.mjs";
9
+ import { t as z } from "../_libs/next-themes.mjs";
10
+ import { t as Toaster } from "../_libs/sonner.mjs";
11
+ //#region node_modules/.nitro/vite/services/ssr/assets/router-pgc7NX76.js
12
+ var import_jsx_runtime = require_jsx_runtime();
13
+ var import_react = /* @__PURE__ */ __toESM(require_react());
14
+ function HotUpdaterLogo({ className }) {
15
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("svg", {
16
+ role: "img",
17
+ "aria-label": "Hot Updater",
18
+ className,
19
+ viewBox: "0 0 447 652",
20
+ xmlns: "http://www.w3.org/2000/svg",
21
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("defs", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("linearGradient", {
22
+ id: "hot-updater-gradient",
23
+ x1: "223.54",
24
+ y1: "0.36",
25
+ x2: "223.54",
26
+ y2: "711.23",
27
+ gradientUnits: "userSpaceOnUse",
28
+ children: [
29
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", {
30
+ offset: "0",
31
+ stopColor: "#ff7f33"
32
+ }),
33
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", {
34
+ offset: "0.4",
35
+ stopColor: "#f9602b"
36
+ }),
37
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", {
38
+ offset: "0.76",
39
+ stopColor: "#f54c25"
40
+ }),
41
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)("stop", {
42
+ offset: "1",
43
+ stopColor: "#f44523"
44
+ })
45
+ ]
46
+ }) }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("path", {
47
+ d: "M150.25,8.58c16.28,31.85,42.09,116-68.18,212.22C75.46,226.57,70,233,63.72,239.62c-28.48,30-84.71,114.89-55.82,207,.69,2.18,1.31,4.37,1.91,6.57,5.25,19.33,38.08,121,155.56,157.25a5.14,5.14,0,0,0,6-7.39c-14.72-26.53-46.07-96.89-8.89-162.55,0,0,11.5,44.5,50.5,83.5,6,6,14.72,15.64,19.53,21.23,14.47,16.77,32.24,53.55,1.82,98.18a5.63,5.63,0,0,0,6.85,8.34c75.64-32.1,333.29-164.6,128.68-410.85a7,7,0,0,0-12.46,4.15c-1.77,39.31-14.84,129-96.18,148.06a31.08,31.08,0,0,1-24.3-4.16c-13.34-8.9-25.41-32.06.53-92.3a250.9,250.9,0,0,1,20.12-37.29C282.78,220.56,356.18,79.83,157.33.77A5.64,5.64,0,0,0,150.25,8.58Z",
48
+ fill: "url(#hot-updater-gradient)"
49
+ })]
50
+ });
51
+ }
52
+ var ThemeContext = (0, import_react.createContext)(void 0);
53
+ function ThemeProvider({ children, defaultTheme = "dark", storageKey = "hot-updater-theme" }) {
54
+ const [theme, setTheme] = (0, import_react.useState)(defaultTheme);
55
+ (0, import_react.useEffect)(() => {
56
+ const stored = localStorage.getItem(storageKey);
57
+ if (stored) setTheme(stored);
58
+ }, [storageKey]);
59
+ (0, import_react.useEffect)(() => {
60
+ const root = window.document.documentElement;
61
+ root.classList.remove("light", "dark");
62
+ if (theme === "system") {
63
+ const systemTheme = window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
64
+ root.classList.add(systemTheme);
65
+ } else root.classList.add(theme);
66
+ }, [theme]);
67
+ const value = {
68
+ theme,
69
+ setTheme: (newTheme) => {
70
+ localStorage.setItem(storageKey, newTheme);
71
+ setTheme(newTheme);
72
+ }
73
+ };
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThemeContext.Provider, {
75
+ value,
76
+ children
77
+ });
78
+ }
79
+ function useTheme$1() {
80
+ const context = (0, import_react.useContext)(ThemeContext);
81
+ if (context === void 0) throw new Error("useTheme must be used within a ThemeProvider");
82
+ return context;
83
+ }
84
+ function AppSidebar() {
85
+ const { theme, setTheme } = useTheme$1();
86
+ const isBundlesActive = useRouterState().location.pathname === "/";
87
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Sidebar, {
88
+ collapsible: "icon",
89
+ children: [
90
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarHeader, {
91
+ className: "h-12 justify-center",
92
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
93
+ to: "/",
94
+ search: {
95
+ channel: void 0,
96
+ platform: void 0,
97
+ offset: void 0,
98
+ bundleId: void 0
99
+ },
100
+ className: "flex items-center gap-3 p-1 group-data-[collapsible=icon]:justify-center group-data-[collapsible=icon]:p-2",
101
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(HotUpdaterLogo, { className: "h-7 w-7 shrink-0" }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", {
102
+ className: "flex flex-col gap-0 group-data-[collapsible=icon]:hidden",
103
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
104
+ className: "text-sm font-semibold tracking-tight text-sidebar-foreground leading-tight",
105
+ children: "Hot Updater"
106
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", {
107
+ className: "text-[10px] text-sidebar-foreground/60 leading-tight",
108
+ children: "Console"
109
+ })]
110
+ })]
111
+ })
112
+ }),
113
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SidebarGroup, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarGroupLabel, { children: "Navigation" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarGroupContent, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarMenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarMenuButton, {
114
+ asChild: true,
115
+ isActive: isBundlesActive,
116
+ tooltip: "Bundles",
117
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(Link, {
118
+ to: "/",
119
+ search: {
120
+ channel: void 0,
121
+ platform: void 0,
122
+ offset: void 0,
123
+ bundleId: void 0
124
+ },
125
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(Package, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: "Bundles" })]
126
+ })
127
+ }) }) }) })] }) }),
128
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarFooter, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarMenu, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarMenuItem, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SidebarMenuButton, {
129
+ onClick: () => setTheme(theme === "dark" ? "light" : "dark"),
130
+ tooltip: theme === "dark" ? "Light mode" : "Dark mode",
131
+ children: [theme === "dark" ? /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Sun, { className: "h-4 w-4" }) : /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Moon, { className: "h-4 w-4" }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { children: theme === "dark" ? "Light mode" : "Dark mode" })]
132
+ }) }) }) })
133
+ ]
134
+ });
135
+ }
136
+ var homeSearch = {
137
+ channel: void 0,
138
+ platform: void 0,
139
+ offset: void 0,
140
+ bundleId: void 0
141
+ };
142
+ function NotFoundPage() {
143
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", {
144
+ className: "flex min-h-svh flex-1 items-center justify-center px-6 py-10",
145
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("section", {
146
+ className: "flex max-w-md flex-col items-center text-center",
147
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("h1", {
148
+ className: "text-2xl font-semibold tracking-tight text-foreground",
149
+ children: "Page not found"
150
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Button, {
151
+ asChild: true,
152
+ size: "lg",
153
+ className: "mt-6",
154
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Link, {
155
+ to: "/",
156
+ search: homeSearch,
157
+ children: "Go to home"
158
+ })
159
+ })]
160
+ })
161
+ });
162
+ }
163
+ var Toaster$1 = ({ ...props }) => {
164
+ const { theme = "system" } = z();
165
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Toaster, {
166
+ theme,
167
+ className: "toaster group",
168
+ icons: {
169
+ success: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(CircleCheck, { className: "size-4" }),
170
+ info: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Info, { className: "size-4" }),
171
+ warning: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(TriangleAlert, { className: "size-4" }),
172
+ error: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(OctagonX, { className: "size-4" }),
173
+ loading: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(LoaderCircle, { className: "size-4 animate-spin" })
174
+ },
175
+ style: {
176
+ "--normal-bg": "var(--popover)",
177
+ "--normal-text": "var(--popover-foreground)",
178
+ "--normal-border": "var(--border)",
179
+ "--border-radius": "var(--radius)"
180
+ },
181
+ toastOptions: { classNames: { toast: "cn-toast" } },
182
+ ...props
183
+ });
184
+ };
185
+ var styles_default = "/assets/styles-Bfxg4M1x.css";
186
+ var Route$1 = createRootRoute({
187
+ head: () => ({
188
+ meta: [
189
+ { charSet: "utf-8" },
190
+ {
191
+ name: "viewport",
192
+ content: "width=device-width, initial-scale=1"
193
+ },
194
+ { title: "Hot Updater Console" }
195
+ ],
196
+ links: [{
197
+ rel: "stylesheet",
198
+ href: styles_default
199
+ }]
200
+ }),
201
+ component: RootLayout,
202
+ notFoundComponent: NotFoundPage,
203
+ shellComponent: RootDocument
204
+ });
205
+ function RootDocument({ children }) {
206
+ const [queryClient] = (0, import_react.useState)(() => new QueryClient());
207
+ (0, import_react.useEffect)(() => {}, []);
208
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("html", {
209
+ lang: "en",
210
+ suppressHydrationWarning: true,
211
+ children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)("head", { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(HeadContent, {}) }), /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("body", { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ThemeProvider, {
212
+ defaultTheme: "dark",
213
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(QueryClientProvider, {
214
+ client: queryClient,
215
+ children: /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(TooltipProvider, { children: [children, /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Toaster$1, {})] })
216
+ })
217
+ }), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Scripts, {})] })]
218
+ });
219
+ }
220
+ function RootLayout() {
221
+ (0, import_react.useEffect)(() => {}, []);
222
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(SidebarProvider, { children: [/* @__PURE__ */ (0, import_jsx_runtime.jsx)(AppSidebar, {}), /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SidebarInset, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Outlet, {}) })] });
223
+ }
224
+ var $$splitComponentImporter = () => import("./routes-PqTTQSoI.mjs");
225
+ var rootRouteChildren = { IndexRoute: createFileRoute("/")({
226
+ component: lazyRouteComponent($$splitComponentImporter, "component"),
227
+ validateSearch: (search) => {
228
+ return {
229
+ channel: search.channel,
230
+ platform: search.platform,
231
+ offset: search.offset,
232
+ bundleId: search.bundleId
233
+ };
234
+ }
235
+ }).update({
236
+ id: "/",
237
+ path: "/",
238
+ getParentRoute: () => Route$1
239
+ }) };
240
+ var routeTree = Route$1._addFileChildren(rootRouteChildren)._addFileTypes();
241
+ var getRouter = () => {
242
+ return createRouter({
243
+ routeTree,
244
+ context: {},
245
+ scrollRestoration: true,
246
+ defaultPreloadStaleTime: 0
247
+ });
248
+ };
249
+ //#endregion
250
+ export { getRouter };