@hot-updater/console 0.0.2 → 0.1.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.
@@ -0,0 +1,36 @@
1
+ /*!
2
+ * Original code by Emil Kowalski
3
+ * MIT Licensed, Copyright 2023 Emil Kowalski, see https://github.com/emilkowalski/sonner/blob/main/LICENSE.md for details
4
+ *
5
+ * Credits:
6
+ * https://github.com/emilkowalski/sonner/blob/main/src/index.tsx
7
+ */
8
+
9
+ /**
10
+ * solid-table
11
+ *
12
+ * Copyright (c) TanStack
13
+ *
14
+ * This source code is licensed under the MIT license found in the
15
+ * LICENSE.md file in the root directory of this source tree.
16
+ *
17
+ * @license MIT
18
+ */
19
+
20
+ /**
21
+ * table-core
22
+ *
23
+ * Copyright (c) TanStack
24
+ *
25
+ * This source code is licensed under the MIT license found in the
26
+ * LICENSE.md file in the root directory of this source tree.
27
+ *
28
+ * @license MIT
29
+ */
30
+
31
+ /**
32
+ * @license lucide-solid v0.454.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={84:function(e,t,r){var n=r("923"),a=r("350"),s=r("436"),o=r("51"),l=r("541");let i=e=>(0,n.LM)(l.x,(0,n.dG)({class:"toaster group",toastOptions:{classes:{toast:"group toast group-[.toaster]:bg-background group-[.toaster]:text-foreground group-[.toaster]:border-border group-[.toaster]:shadow-lg",description:"group-[.toast]:text-muted-foreground",actionButton:"group-[.toast]:bg-primary group-[.toast]:text-primary-foreground",cancelButton:"group-[.toast]:bg-muted group-[.toast]:text-muted-foreground"}}},e));var d=r("628"),u=r("332"),c=r("976"),g=r("136");function f(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return(0,g.m6)((0,c.W)(t))}var p=(0,a.XK)("<div>"),h=(0,a.XK)('<svg xmlns=http://www.w3.org/2000/svg viewBox="0 0 24 24"fill=none stroke=currentColor stroke-width=2 stroke-linecap=round stroke-linejoin=round class=size-4><path d="M18 6l-12 12"></path><path d="M6 6l12 12">'),v=(0,a.XK)("<span class=sr-only>Close");let b=d.GR;d.hg,d.iK;let m=(0,u.j)("fixed inset-0 z-50 flex",{variants:{position:{top:"items-start",bottom:"items-end",left:"justify-start",right:"justify-end"}},defaultVariants:{position:"right"}}),x=e=>{let[t,r]=(0,n.eY)(e,["position","children"]);return(0,n.LM)(d.PK,(0,n.dG)(r,{get children(){var s=p();return(0,a.$T)(s,()=>t.children),(0,n.F3)(()=>(0,a.ok)(s,m({position:t.position}))),s}}))},M=e=>{let[t,r]=(0,n.eY)(e,["class"]);return(0,n.LM)(d.t9,(0,n.dG)({get class(){return f("fixed inset-0 z-50 bg-black/80 data-[expanded=]:animate-in data-[closed=]:animate-out data-[closed=]:fade-out-0 data-[expanded=]:fade-in-0",t.class)}},r))},L=(0,u.j)("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[closed=]:duration-300 data-[expanded=]:duration-500 data-[expanded=]:animate-in data-[closed=]:animate-out",{variants:{position:{top:"inset-x-0 top-0 border-b data-[closed=]:slide-out-to-top data-[expanded=]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[closed=]:slide-out-to-bottom data-[expanded=]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[closed=]:slide-out-to-left data-[expanded]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[closed=]:slide-out-to-right data-[expanded=]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{position:"right"}}),y=e=>{let[t,r]=(0,n.eY)(e,["position","class","children"]);return(0,n.LM)(x,{get position(){return t.position},get children(){return[(0,n.LM)(M,{}),(0,n.LM)(d.cZ,(0,n.dG)({get class(){return f(L({position:t.position}),t.class,"max-h-screen overflow-y-auto")}},r,{get children(){return[(0,n.Py)(()=>t.children),(0,n.LM)(d.iK,{class:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary",get children(){return[h(),v()]}})]}}))]}})},w=e=>{var t;let[r,s]=(0,n.eY)(e,["class"]);return t=p(),(0,a.hw)(t,(0,n.dG)({get class(){return f("flex flex-col space-y-2 text-center sm:text-left",r.class)}},s),!1,!1),t},k=e=>{let[t,r]=(0,n.eY)(e,["class"]);return(0,n.LM)(d.$N,(0,n.dG)({get class(){return f("text-lg font-semibold text-foreground",t.class)}},r))},V=e=>{let[t,r]=(0,n.eY)(e,["class"]);return(0,n.LM)(d.Be,(0,n.dG)({get class(){return f("text-sm text-muted-foreground",t.class)}},r))},C=(0,r("576").hc)("/rpc");var $=r("974"),K=r("874"),G=(0,a.XK)('<div class="flex flex-row items-center">');let Y=e=>{let t=e.substring(0,4),r=e.substring(4,6),n=e.substring(6,8),a=e.substring(8,10),s=e.substring(10,12),o=e.substring(12,14);return`${t}/${r}/${n} ${a}:${s}:${o}`},T=[{accessorKey:"platform",header:"Platform",cell:e=>e.getValue()},{accessorKey:"targetVersion",header:"Target Version",cell:e=>e.getValue()},{accessorKey:"enabled",header:"Enabled",cell:e=>{var t,r;return e.getValue()?(t=G(),(0,a.$T)(t,(0,n.LM)($.Z,{})),t):(r=G(),(0,a.$T)(r,(0,n.LM)(K.Z,{})),r)}},{accessorKey:"forceUpdate",header:"Force Update",cell:e=>{var t,r;return e.getValue()?(t=G(),(0,a.$T)(t,(0,n.LM)($.Z,{})),t):(r=G(),(0,a.$T)(r,(0,n.LM)(K.Z,{})),r)}},{accessorKey:"description",header:"Description",cell:e=>e.getValue()},{accessorKey:"bundleVersion",header:"Created At",cell:e=>Y(String(e.getValue()))}];var j=r("498"),S=r("679"),X=(0,a.XK)('<div class="relative w-full overflow-auto"><table>'),U=(0,a.XK)("<thead>"),O=(0,a.XK)("<tbody>"),P=(0,a.XK)("<tr>"),z=(0,a.XK)("<th>"),B=(0,a.XK)("<td>");let D=e=>{var t,r;let[s,o]=(0,n.eY)(e,["class"]);return r=(t=X()).firstChild,(0,a.hw)(r,(0,n.dG)({get class(){return f("w-full caption-bottom text-sm",s.class)}},o),!1,!1),t},_=e=>{var t;let[r,s]=(0,n.eY)(e,["class"]);return t=U(),(0,a.hw)(t,(0,n.dG)({get class(){return f("[&_tr]:border-b",r.class)}},s),!1,!1),t},F=e=>{var t;let[r,s]=(0,n.eY)(e,["class"]);return t=O(),(0,a.hw)(t,(0,n.dG)({get class(){return f("[&_tr:last-child]:border-0",r.class)}},s),!1,!1),t},E=e=>{var t;let[r,s]=(0,n.eY)(e,["class"]);return t=P(),(0,a.hw)(t,(0,n.dG)({get class(){return f("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",r.class)}},s),!1,!1),t},N=e=>{var t;let[r,s]=(0,n.eY)(e,["class"]);return t=z(),(0,a.hw)(t,(0,n.dG)({get class(){return f("h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",r.class)}},s),!1,!1),t},R=e=>{var t;let[r,s]=(0,n.eY)(e,["class"]);return t=B(),(0,a.hw)(t,(0,n.dG)({get class(){return f("p-4 align-middle [&:has([role=checkbox])]:pr-0",r.class)}},s),!1,!1),t};var Z=(0,a.XK)('<div class="border rounded-md">');function A(e){var t;let[r]=(0,n.eY)(e,["columns","data","onRowClick"]),s=(0,j.C7)({get data(){return r.data()||[]},columns:r.columns,getCoreRowModel:(0,S.sC)()}),o=e=>()=>{r.onRowClick(e.original)};return t=Z(),(0,a.$T)(t,(0,n.LM)(D,{get children(){return[(0,n.LM)(_,{get children(){return(0,n.LM)(n.U2,{get each(){return s.getHeaderGroups()},children:e=>(0,n.LM)(E,{get children(){return(0,n.LM)(n.U2,{get each(){return e.headers},children:e=>(0,n.LM)(N,{get children(){return(0,n.Py)(()=>!!e.isPlaceholder)()?null:(0,j.ie)(e.column.columnDef.header,e.getContext())}})})}})})}}),(0,n.LM)(F,{get children(){return(0,n.Py)(()=>{var e;return!!(null===(e=s.getRowModel().rows)||void 0===e?void 0:e.length)})()?(0,n.LM)(n.U2,{get each(){return s.getRowModel().rows},children:e=>(0,n.LM)(E,{get"data-state"(){return e.getIsSelected()&&"selected"},class:"cursor-pointer",get onClick(){return o(e)},get children(){return(0,n.LM)(n.U2,{get each(){return e.getVisibleCells()},children:e=>(0,n.LM)(R,{get children(){return(0,j.ie)(e.column.columnDef.cell,e.getContext())}})})}})}):(0,n.LM)(E,{get children(){return(0,n.LM)(R,{get colSpan(){return r.columns.length},class:"h-24 text-center",children:"No results."})}})}})]}})),t}var I=r("662");let W=(0,u.j)("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",icon:"size-10"}},defaultVariants:{variant:"default",size:"default"}}),H=e=>{let[t,r]=(0,n.eY)(e,["variant","size","class"]);return(0,n.LM)(I.Y4,(0,n.dG)({get class(){return f(W({variant:t.variant,size:t.size}),t.class)}},r))};var q=r("279");let Q=q.NX;q.Zm,q.Mz;let J=e=>{let[t,r]=(0,n.eY)(e,["class","children"]);return[(0,n.LM)(q.D_,{get class(){return f("[&:focus-visible+div]:outline-none [&:focus-visible+div]:ring-2 [&:focus-visible+div]:ring-ring [&:focus-visible+div]:ring-offset-2 [&:focus-visible+div]:ring-offset-background",t.class)}}),(0,n.LM)(q.iw,(0,n.dG)({get class(){return f("inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent bg-input transition-[color,background-color,box-shadow] data-[disabled]:cursor-not-allowed data-[checked]:bg-primary data-[disabled]:opacity-50",t.class)}},r,{get children(){return t.children}}))]},ee=e=>{let[t,r]=(0,n.eY)(e,["class"]);return(0,n.LM)(q.He,(0,n.dG)({get class(){return f("pointer-events-none block size-5 translate-x-0 rounded-full bg-background shadow-lg ring-0 transition-transform data-[checked]:translate-x-5",t.class)}},r))},et=e=>{let[t,r]=(0,n.eY)(e,["class"]);return(0,n.LM)(q.$A,(0,n.dG)({get class(){return f("text-sm font-medium leading-none data-[disabled]:cursor-not-allowed data-[disabled]:opacity-70",t.class)}},r))};var er=r("165"),en=r("607");let ea=er.k4,es=e=>{let[t,r]=(0,n.eY)(e,["type","class"]);return(0,n.LM)(er.Nl,(0,n.dG)({get type(){return t.type},get class(){return f("flex h-10 w-full rounded-md border border-input bg-transparent px-3 py-2 text-sm ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t.class)}},r))},eo=(0,u.j)("text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70",{variants:{variant:{label:"data-[invalid]:text-destructive",description:"text-destructive",error:"font-normal text-muted-foreground"}},defaultVariants:{variant:"label"}}),el=e=>{let[t,r]=(0,n.eY)(e,["class"]);return(0,n.LM)(en.D8,(0,n.dG)({get class(){return f(eo(),t.class)}},r))};var ei=r("581"),ed=(0,a.XK)('<form class="flex flex-col gap-3"><div></div><div></div><div><div class="flex items-center space-x-2"></div><p class="text-xs text-muted-foreground mt-[2px]">When disabled, this update will not be available to your users.</p></div><div><div class="flex items-center space-x-2"></div><p class="text-xs text-muted-foreground mt-[2px]">When enabled, this update will require users to update before continuing to use the application.');let eu=e=>{var t,r,s,o,l,i;let{source:d,onEditSuccess:u}=e,c=(0,ei.N)(()=>({defaultValues:{description:d.description,targetVersion:d.targetVersion,enabled:d.enabled,forceUpdate:d.forceUpdate},onSubmit:async e=>{let{value:t}=e;await C.updateUpdateSource.$post({json:{targetBundleVersion:d.bundleVersion,updateSource:t}}),u()}}));return l=(o=(s=(r=(t=ed()).firstChild).nextSibling).nextSibling).firstChild,i=o.nextSibling.firstChild,t.addEventListener("submit",e=>{e.preventDefault(),e.stopPropagation(),c.handleSubmit()}),(0,a.$T)(r,(0,n.LM)(ea,{class:"grid w-full max-w-sm items-center gap-1.5",get children(){return[(0,n.LM)(el,{for:"description",children:"Description"}),(0,n.LM)(c.Field,{name:"description",children:e=>(0,n.LM)(es,{type:"text",id:"description",placeholder:"Description",get name(){return e().name},get value(){return e().state.value},get onBlur(){return e().handleBlur},onInput:t=>e().handleChange(t.currentTarget.value)})})]}})),(0,a.$T)(s,(0,n.LM)(ea,{class:"grid w-full max-w-sm items-center gap-1.5",get children(){return[(0,n.LM)(el,{for:"targetVersion",children:"Target Version"}),(0,n.LM)(c.Field,{name:"targetVersion",children:e=>(0,n.LM)(es,{type:"text",id:"targetVersion",placeholder:"Target Version",get name(){return e().name},get value(){return e().state.value},get onBlur(){return e().handleBlur},onInput:t=>e().handleChange(t.currentTarget.value)})})]}})),(0,a.$T)(l,(0,n.LM)(c.Field,{name:"enabled",children:e=>(0,n.LM)(Q,{class:"flex items-center space-x-2",get checked(){return e().state.value},get name(){return e().name},onChange:t=>e().handleChange(t),get children(){return[(0,n.LM)(J,{get children(){return(0,n.LM)(ee,{})}}),(0,n.LM)(et,{children:"Enabled"})]}})})),(0,a.$T)(i,(0,n.LM)(c.Field,{name:"forceUpdate",children:e=>(0,n.LM)(Q,{class:"flex items-center space-x-2",get checked(){return e().state.value},get name(){return e().name},onChange:t=>e().handleChange(t),get children(){return[(0,n.LM)(J,{get children(){return(0,n.LM)(ee,{})}}),(0,n.LM)(et,{children:"Force Update"})]}})})),(0,a.$T)(t,(0,n.LM)(H,{type:"submit",class:"mt-4",children:"Save"}),null),t},ec=e=>{let{bundleVersion:t,onClose:r}=e,a=(0,o.km)(()=>C.getUpdateSourceByBundleVersion.$post({json:{bundleVersion:t}}).then(e=>e.json()));return(0,n.LM)(y,{class:"flex flex-col h-full",get children(){return[(0,n.LM)(w,{class:"mb-4",get children(){return(0,n.LM)(k,{get children(){return["Edit ",(0,n.Py)(()=>{var e;return null===(e=a())||void 0===e?void 0:e.bundleVersion})]}})}}),(0,n.Py)(()=>(0,n.Py)(()=>!!a())()?(0,n.LM)(eu,{get source(){return a()},onEditSuccess:r}):(0,n.LM)(V,{get children(){return["No update source found for bundle version ",t]}}))]}})};var eg=(0,a.XK)('<main class="w-full space-y-2.5">'),ef=(0,a.XK)("<div>Loading...");function ep(){let[e,{refetch:t}]=(0,n.SN)(()=>C.getUpdateSources.$get().then(e=>e.json())),[r,s]=(0,n.gQ)(null);return(0,n.LM)(n.n4,{get fallback(){return ef()},get children(){var o=eg();return(0,a.$T)(o,(0,n.LM)(A,{columns:T,data:e,onRowClick:e=>{console.log(e),s(e.bundleVersion)}}),null),(0,a.$T)(o,(0,n.LM)(b,{get open(){return null!==r()},onOpenChange:e=>{!e&&s(null)},get children(){return(0,n.Py)(()=>!!r())()&&(0,n.LM)(ec,{get bundleVersion(){return r()},onClose:()=>{s(null),t()}})}}),null),o}})}function eh(){return(0,n.LM)(o.F0,{root:e=>(0,n.LM)(s.eV,{get children(){return[(0,n.LM)(s.Dx,{children:"HotUpdater Console"}),(0,n.LM)(n.n4,{get children(){return e.children}}),(0,n.LM)(i,{})]}}),get children(){return(0,n.LM)(o.AW,{path:"/",component:ep})}})}let ev=document.getElementById("root");ev&&(0,a.sY)(()=>(0,n.LM)(eh,{}),ev)}},t={};function r(n){var a=t[n];if(void 0!==a)return a.exports;var s=t[n]={exports:{}};return e[n](s,s.exports,r),s.exports}r.m=e,r.d=function(e,t){for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},(()=>{var e=[];r.O=function(t,n,a,s){if(n){s=s||0;for(var o=e.length;o>0&&e[o-1][2]>s;o--)e[o]=e[o-1];e[o]=[n,a,s];return}for(var l=1/0,o=0;o<e.length;o++){for(var n=e[o][0],a=e[o][1],s=e[o][2],i=!0,d=0;d<n.length;d++)(!1&s||l>=s)&&Object.keys(r.O).every(function(e){return r.O[e](n[d])})?n.splice(d--,1):(i=!1,s<l&&(l=s));if(i){e.splice(o--,1);var u=a();void 0!==u&&(t=u)}}return t}})(),r.rv=function(){return"1.0.14"},(()=>{var e={980:0};r.O.j=function(t){return 0===e[t]};var t=function(t,n){var a=n[0],s=n[1],o=n[2],l,i,d=0;if(a.some(function(t){return 0!==e[t]})){for(l in s)r.o(s,l)&&(r.m[l]=s[l]);if(o)var u=o(r)}for(t&&t(n);d<a.length;d++)i=a[d],r.o(e,i)&&e[i]&&e[i][0](),e[i]=0;return r.O(u)},n=self.webpackChunk_hot_updater_console=self.webpackChunk_hot_updater_console||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.ruid="bundler=rspack@1.0.14";var n=r.O(void 0,["447"],function(){return r("84")});n=r.O(n)})();
package/package.json CHANGED
@@ -1,77 +1,60 @@
1
1
  {
2
2
  "name": "@hot-updater/console",
3
- "version": "0.0.2",
4
- "exports": {
5
- ".": "./bin"
6
- },
3
+ "type": "module",
4
+ "version": "0.1.0",
7
5
  "files": [
8
- "bin",
6
+ "dist",
9
7
  "package.json"
10
8
  ],
11
- "publishConfig": {
12
- "access": "public"
9
+ "main": "dist/index.cjs",
10
+ "module": "dist/index.js",
11
+ "types": "dist/index.d.ts",
12
+ "exports": {
13
+ ".": {
14
+ "import": "./dist/index.js",
15
+ "require": "./dist/index.cjs"
16
+ }
13
17
  },
14
- "description": "React Native OTA solution for self-hosted",
15
- "type": "module",
16
- "license": "MIT",
17
18
  "devDependencies": {
18
- "@radix-ui/react-checkbox": "^1.1.2",
19
- "@radix-ui/react-dialog": "^1.1.2",
20
- "@radix-ui/react-icons": "^1.3.0",
21
- "@radix-ui/react-label": "^2.1.0",
22
- "@radix-ui/react-slot": "^1.1.0",
23
- "@radix-ui/react-switch": "^1.1.1",
24
- "@radix-ui/react-toast": "^1.2.2",
25
- "@tauri-apps/plugin-dialog": "^2.0.0",
26
- "@tauri-apps/plugin-log": "^2.0.0",
27
- "@types/node": "^20.9.4",
28
- "@types/react": "^18.3.11",
29
- "jotai": "^2.10.0",
30
- "@hono/trpc-server": "^0.3.2",
31
- "@tanstack/react-query": "^5.59.0",
32
- "@tanstack/react-table": "^8.20.5",
33
- "@tauri-apps/api": ">=2.0.0",
34
- "@tauri-apps/cli": ">=2.0.0",
35
- "@tauri-apps/plugin-http": "^2.0.0",
36
- "@tauri-apps/plugin-shell": ">=2.0.0",
37
- "@trpc/client": "11.0.0-rc.553",
38
- "@trpc/react-query": "11.0.0-rc.553",
39
- "@trpc/server": "11.0.0-rc.553",
40
- "@types/react-dom": "^18.3.0",
41
- "@vitejs/plugin-react-swc": "^3.7.1",
19
+ "@biomejs/biome": "^1.9.3",
20
+ "@hono/valibot-validator": "^0.4.1",
21
+ "@kobalte/core": "^0.13.7",
22
+ "@rsbuild/core": "^1.0.18",
23
+ "@rsbuild/plugin-babel": "^1.0.2",
24
+ "@rsbuild/plugin-solid": "^1.0.3",
25
+ "@solidjs/meta": "^0.29.4",
26
+ "@solidjs/router": "^0.14.10",
27
+ "@tanstack/solid-form": "^0.34.0",
28
+ "@tanstack/solid-table": "^8.20.5",
29
+ "@tanstack/valibot-form-adapter": "^0.34.0",
30
+ "@typeschema/valibot": "^0.14.0",
42
31
  "autoprefixer": "^10.4.19",
43
32
  "class-variance-authority": "^0.7.0",
44
33
  "clsx": "^2.1.1",
45
- "commander": "^11.1.0",
46
34
  "hono": "^4.6.3",
47
- "lucide-react": "^0.447.0",
48
- "overlay-kit": "^1.4.1",
35
+ "lucide-solid": "^0.454.0",
49
36
  "postcss": "^8.4.38",
50
- "react": "^18.3.1",
51
- "react-dom": "^18.3.1",
52
- "react-hook-form": "^7.53.0",
53
- "tailwind-merge": "^2.5.2",
54
- "tailwindcss": "^3.4.4",
37
+ "solid-js": "^1.9.3",
38
+ "solid-sonner": "^0.2.8",
39
+ "solidui-cli": "latest",
40
+ "tailwind-merge": "^2.5.4",
41
+ "tailwindcss": "^3.4.14",
55
42
  "tailwindcss-animate": "^1.0.7",
56
- "vite": "^5.4.8",
57
- "vite-plugin-solid": "^2.10.2",
58
- "wouter": "^3.3.5",
59
- "zod": "^3.23.8",
60
- "@hot-updater/utils": "^0.0.4",
61
- "@hot-updater/plugin-core": "^0.0.4"
43
+ "typescript": "^5.6.3",
44
+ "valibot": "^0.42.1",
45
+ "@hono/node-server": "^1.13.4",
46
+ "@types/node": "^22.8.6"
47
+ },
48
+ "dependencies": {
49
+ "@hot-updater/plugin-core": "0.1.0",
50
+ "@hot-updater/utils": "0.1.0"
62
51
  },
63
52
  "scripts": {
64
- "postinstall": "node ./scripts/postinstall.js",
65
- "start": "vite",
66
- "dev": "vite",
67
- "build": "vite build",
68
- "serve": "vite preview",
69
- "tauri": "tauri",
70
- "icongen": "tauri icon icon_768x768.png",
71
- "sidecar:mac-arm": "bun build ./sidecar-app/index.ts --compile --target=bun-darwin-arm64 --minify --bytecode --outfile ./sidecar-app/app && bun ./scripts/binary_rename.js",
72
- "sidecar:mac-x64": "bun build ./sidecar-app/index.ts --compile --target=bun-darwin-x64 --minify --bytecode --outfile ./sidecar-app/app",
73
- "sidecar:windows-x64": "bun build ./sidecar-app/index.ts --compile --target=bun-windows-x64 --minify --bytecode --outfile ./sidecar-app/app",
74
- "sidecar:linux-arm": "bun build ./sidecar-app/index.ts --compile --target=bun-linux-arm64 --minify --bytecode --outfile ./sidecar-app/app",
75
- "sidecar:linux-x64": "bun build ./sidecar-app/index.ts --compile --target=bun-linux-x64 --minify --bytecode --outfile ./sidecar-app/app"
53
+ "build": "rsbuild build && tsup src-server/index.ts --format esm,cjs --dts",
54
+ "check": "biome check --write",
55
+ "dev": "rsbuild dev --open",
56
+ "format": "biome format --write",
57
+ "preview": "rsbuild preview",
58
+ "test:type": "tsc --noEmit"
76
59
  }
77
60
  }
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) 2023 Sungyu Kang
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
@@ -1,34 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3
- <plist version="1.0">
4
- <dict>
5
- <key>CFBundleDevelopmentRegion</key>
6
- <string>English</string>
7
- <key>CFBundleDisplayName</key>
8
- <string>Hot Updater Console</string>
9
- <key>CFBundleExecutable</key>
10
- <string>HotUpdater</string>
11
- <key>CFBundleIconFile</key>
12
- <string>icon.icns</string>
13
- <key>CFBundleIdentifier</key>
14
- <string>com.hot-updater.app</string>
15
- <key>CFBundleInfoDictionaryVersion</key>
16
- <string>6.0</string>
17
- <key>CFBundleName</key>
18
- <string>Hot Updater Console</string>
19
- <key>CFBundlePackageType</key>
20
- <string>APPL</string>
21
- <key>CFBundleShortVersionString</key>
22
- <string>0.1.0</string>
23
- <key>CFBundleVersion</key>
24
- <string>20241015.160325</string>
25
- <key>CSResourcesFileMapped</key>
26
- <true/>
27
- <key>LSMinimumSystemVersion</key>
28
- <string>10.13</string>
29
- <key>LSRequiresCarbon</key>
30
- <true/>
31
- <key>NSHighResolutionCapable</key>
32
- <true/>
33
- </dict>
34
- </plist>
Binary file