@lob-ox/core-darwin-x64 0.0.20 → 0.0.22
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/core.cjs +20571 -20321
- package/package.json +1 -1
- package/ui-react/assets/{InstancesPage-MGpeXK2D.js → InstancesPage-DTy-dQ-L.js} +1 -1
- package/ui-react/assets/{LanPage-BTX10UvJ.js → LanPage-DGGWJGab.js} +1 -1
- package/ui-react/assets/{OverviewPage-CGolWxj5.js → OverviewPage-FLGxQPCE.js} +1 -1
- package/ui-react/assets/{PluginsPage-BjjSXeun.js → PluginsPage-BBfj4bk7.js} +1 -1
- package/ui-react/assets/{RouterPage-UMIiizkg.js → RouterPage-MZBwIV9n.js} +1 -1
- package/ui-react/assets/{SettingsPage-ByUNpMiY.js → SettingsPage-BkG-APXm.js} +1 -1
- package/ui-react/assets/{TasksPage-DCSwnQcl.js → TasksPage-B50BoixQ.js} +1 -1
- package/ui-react/assets/{openExternal-D76TEieU.js → openExternal-Ayshj45y.js} +1 -1
- package/ui-react/assets/{refresh-cw-gnnGR0ej.js → refresh-cw-GKBYw9-E.js} +1 -1
- package/ui-react/assets/{rocket-w_FQq9IU.js → rocket-cmjG68ou.js} +1 -1
- package/ui-react/assets/{supervisor-DouAeDUQ.js → supervisor-DSBgs_XY.js} +1 -1
- package/ui-react/assets/{supervisor-C-lEz0-6.js → supervisor-DWUbDZTX.js} +3 -3
- package/ui-react/assets/{useSupervisorAction-BdLx_DkH.js → useSupervisorAction-U8T1qRbC.js} +1 -1
- package/ui-react/assets/{widgets-GTNEjznx.js → widgets-DV5fuKzB.js} +1 -1
- package/ui-react/supervisor.html +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
import{O as e,U as t,V as n,n as r,r as i}from"./supervisor-
|
|
1
|
+
import{O as e,U as t,V as n,n as r,r as i}from"./supervisor-DSBgs_XY.js";var a=t(n(),1);function o(){let[t,n]=(0,a.useState)(null);return{busy:t,run:(0,a.useCallback)(async(t,a,o)=>{n(t);let s=!0;try{let t=i(await a());if(t)throw Error(t);o?.success&&e.success(o.success)}catch(t){s=!1,e.error(t instanceof Error?t.message:String(t))}finally{n(null),o?.onDone?.(),s&&o?.refresh!==!1&&r.refresh()}return s},[])}}export{o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{L as e,R as t}from"./supervisor-
|
|
1
|
+
import{L as e,R as t}from"./supervisor-DSBgs_XY.js";var n=t();function r({tone:t=`off`,ping:r=!1,className:i}){let a=t===`ok`?`bg-status-ok shadow-[0_0_6px_2px_var(--status-ok-ring)]`:t===`err`?`bg-status-error shadow-[0_0_6px_2px_var(--status-error-ring)]`:t===`warn`?`bg-warning`:t===`boot`?`bg-status-brand shadow-[0_0_6px_2px_var(--status-brand-ring)]`:`bg-muted-foreground/50`;return(0,n.jsxs)(`span`,{"aria-hidden":`true`,className:e(`relative inline-flex size-2 shrink-0 items-center justify-center`,i),children:[r?(0,n.jsx)(`span`,{className:e(`absolute inline-flex size-full animate-ping rounded-full`,t===`ok`?`bg-status-ok-soft opacity-75`:`bg-transparent`),style:t===`ok`?{animationDuration:`2s`}:void 0}):null,(0,n.jsx)(`span`,{className:e(`relative inline-flex size-2 rounded-full`,a)})]})}function i({tone:t=`off`,className:r,children:i}){return(0,n.jsx)(`span`,{className:e(`inline-flex h-5 shrink-0 items-center whitespace-nowrap rounded-full px-2 text-xs font-semibold leading-none`,t===`ok`&&`bg-success-background text-success`,t===`err`&&`bg-careful-background text-careful`,t===`warn`&&`bg-warning-background text-warning`,t===`boot`&&`bg-primary/10 text-primary`,t===`off`&&`bg-muted text-muted-foreground`,r),children:i})}function a({className:t,children:r}){return(0,n.jsx)(`div`,{className:e(`overflow-hidden rounded-lg border border-border bg-card shadow-[0_1px_2px_rgba(15,23,42,0.04)]`,t),children:r})}function o({title:t,subtitle:r,actions:i,className:a}){return(0,n.jsxs)(`div`,{className:e(`flex min-h-[52px] items-center justify-between gap-4 border-b border-border/70 bg-muted px-5`,a),children:[(0,n.jsxs)(`div`,{className:`min-w-0`,children:[(0,n.jsx)(`strong`,{className:`block truncate text-sm font-semibold leading-tight text-foreground`,children:t}),r?(0,n.jsx)(`span`,{className:`mt-1 block text-xs leading-tight text-muted-foreground`,children:r}):null]}),i?(0,n.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:i}):null]})}function s({icon:t,label:r,value:i,mono:a=!1,warn:o=!1,className:s}){return(0,n.jsxs)(`div`,{className:e(`flex min-w-0 flex-col gap-2`,s),children:[(0,n.jsxs)(`div`,{className:e(`flex items-center gap-1.5 text-xs text-muted-foreground`,o&&`text-destructive`),children:[t,(0,n.jsx)(`span`,{className:`truncate`,children:r})]}),(0,n.jsx)(`strong`,{className:e(`truncate text-lg font-semibold tabular-nums leading-none`,a&&`font-mono`,o?`text-destructive`:`text-foreground`),children:i})]})}function c({icon:t,label:r,value:i,note:a,danger:o=!1}){return(0,n.jsxs)(`div`,{className:`grid min-h-[52px] min-w-0 flex-1 grid-cols-[auto_minmax(0,1fr)] items-center gap-x-1.5 rounded-md border border-border bg-card px-3 py-2`,children:[(0,n.jsx)(`span`,{className:`text-muted-foreground`,children:t}),(0,n.jsx)(`span`,{className:`overflow-hidden text-ellipsis whitespace-nowrap text-xs leading-tight text-muted-foreground`,children:r}),(0,n.jsx)(`strong`,{className:e(`col-span-full mt-1 truncate text-base font-semibold leading-none tabular-nums`,o?`text-destructive`:`text-foreground`),children:i}),a?(0,n.jsx)(`span`,{className:`col-span-full mt-1 truncate text-[11px] leading-tight text-muted-foreground`,children:a}):null]})}function l({kind:e}){return(0,n.jsx)(i,{tone:e===`native`?`boot`:`off`,children:e===`native`?`原生`:`沙箱`})}function u({children:t,className:r}){return(0,n.jsx)(`span`,{className:e(`max-w-[180px] overflow-hidden text-ellipsis whitespace-nowrap font-mono text-sm leading-tight text-muted-foreground`,r),children:t})}export{u as a,r as c,s as i,o as n,i as o,l as r,c as s,a as t};
|
package/ui-react/supervisor.html
CHANGED
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
html, body, #root { width: 100%; height: 100%; height: 100dvh; }
|
|
17
17
|
body { margin: 0; min-width: 320px; min-height: 100vh; min-height: 100dvh; overflow: hidden; background: transparent; }
|
|
18
18
|
</style>
|
|
19
|
-
<script type="module" crossorigin src="/assets/supervisor-
|
|
20
|
-
<link rel="modulepreload" crossorigin href="/assets/supervisor-
|
|
19
|
+
<script type="module" crossorigin src="/assets/supervisor-DWUbDZTX.js"></script>
|
|
20
|
+
<link rel="modulepreload" crossorigin href="/assets/supervisor-DSBgs_XY.js">
|
|
21
21
|
<link rel="stylesheet" crossorigin href="/assets/supervisor-hG2-v7mV.css">
|
|
22
22
|
<link rel="stylesheet" crossorigin href="/assets/supervisor-DgItqlLO.css">
|
|
23
23
|
</head>
|