@lob-ox/core-darwin-x64 0.0.19 → 0.0.21
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/README.md +1 -1
- package/core.cjs +12303 -12326
- package/package.json +5 -2
- package/ui-react/assets/InstancesPage-DTy-dQ-L.js +3 -0
- package/ui-react/assets/{LanPage-C_v98nOL.js → LanPage-DGGWJGab.js} +2 -2
- package/ui-react/assets/OverviewPage-FLGxQPCE.js +2 -0
- package/ui-react/assets/PluginsPage-BBfj4bk7.js +1 -0
- package/ui-react/assets/RouterPage-MZBwIV9n.js +1 -0
- package/ui-react/assets/SettingsPage-BkG-APXm.js +1 -0
- package/ui-react/assets/{TasksPage-BynVo5ge.js → TasksPage-B50BoixQ.js} +1 -1
- package/ui-react/assets/jobs-CrrY4iBU.js +1 -0
- package/ui-react/assets/openExternal-Ayshj45y.js +1 -0
- package/ui-react/assets/{refresh-cw-CHZo8X7a.js → refresh-cw-GKBYw9-E.js} +1 -1
- package/ui-react/assets/{rocket-OqsLWeGD.js → rocket-cmjG68ou.js} +1 -1
- package/ui-react/assets/{supervisor-Blfqgw-f.js → supervisor-DSBgs_XY.js} +1 -1
- package/ui-react/assets/{supervisor-C0cZTc5d.js → supervisor-DWUbDZTX.js} +5 -5
- package/ui-react/assets/{supervisor-D4l-mJqH.css → supervisor-DgItqlLO.css} +1 -1
- package/ui-react/assets/{useSupervisorAction-DUxfx47b.js → useSupervisorAction-U8T1qRbC.js} +1 -1
- package/ui-react/assets/{widgets-C9CEOdGF.js → widgets-DV5fuKzB.js} +1 -1
- package/ui-react/supervisor.html +3 -3
- package/ui-react/assets/InstancesPage-p4wXb1ax.js +0 -3
- package/ui-react/assets/OverviewPage-Db0jblYm.js +0 -2
- package/ui-react/assets/PluginsPage-CZzJb7Io.js +0 -1
- package/ui-react/assets/RouterPage-BoApjMyy.js +0 -1
- package/ui-react/assets/SettingsPage-roII_vHR.js +0 -1
- package/ui-react/assets/jobs-BjLbfJTM.js +0 -1
- package/ui-react/assets/openExternal-BL2ow_UN.js +0 -1
- package/ui-react/assets/shield-check-DdG3gN1L.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{N as e,O as t,R as n,a as r}from"./supervisor-Blfqgw-f.js";var i=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),a=e(`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`}]]);function o(){let e=String(window.location.hostname||``).toLowerCase();return e===`localhost`||e===`[::1]`||e===`::1`||/^127\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(e)}function s(e){try{return window.open(e,`_blank`,`noopener,noreferrer`)?{ok:!0,confirmed:!0,handedOff:!1,url:e,message:`已在新标签打开`,evidence:{via:`window`}}:{ok:!1,url:e,error:`浏览器拦截了新窗口,请允许弹窗或复制下方地址打开`}}catch(t){return{ok:!1,url:e,error:String(t)}}}async function c(e){return e?o()?r.envOpenUrl(e):s(e):{ok:!1,error:`没有可打开的地址`}}function l(e){if(!e||typeof e!=`object`)return null;let t=typeof e.bin==`string`?e.bin.split(/[\\/]/).pop():null,n=[];t?n.push(t):e.via===`none`&&n.push(`未定出启动对象`),e.via&&n.push(e.via),e.engine&&n.push(`引擎 `+e.engine),e.ownsWindow===!1&&n.push(`退出码不作证据`),e.watch===!0&&n.push(`关掉该窗口即取消本次登录`),e.exitCode!==void 0&&e.exitCode!==null?n.push(`exit `+String(e.exitCode)):e.exitSignal?n.push(`signal `+e.exitSignal):e.error&&n.push(String(e.error));let r=e.diagnostics;if(r&&typeof r==`object`){n.push(`默认项来源 `+(r.default&&r.default.source||`未读出`)),r.pick===`user-preference`?n.push(`按你在环境检测里选的浏览器`):r.pick===`candidate-rank`?n.push(`系统未报默认项,已按候选次序取首个(可在环境检测里改)`):r.pick===`only-installed`?n.push(`本机唯一候选`):r.pick===`none-found`&&n.push(`本机未探到可用浏览器`),r.preference&&r.preference.id&&r.preference.matched===!1&&n.push(`你选的浏览器已不在候选清单,请重选`);let e=Array.isArray(r.found)?r.found:[];n.push(`候选 `+String(e.length)+` 个`+(e.length?`:`+e.map(e=>(e.name||e.via||`?`)+(e.engine?`(`+e.engine+`)`:``)).join(`、`):``));let t=Array.isArray(r.probed)?r.probed:[];!e.length&&t.length&&n.push(`探测读数:`+t.map(e=>e.source+(e.detail?`=`+String(e.detail):``)).join(`、`))}e.via===`isolated`&&n.push(e.isolated===!1?`未隔离(并入既有窗口)`:`隔离窗口`),e.profile&&n.push(`隔离档案 `+e.profile);let i=e.egress;return i&&typeof i==`object`&&i.basis&&n.push(`出网判定 `+i.basis+`(`+(i.host||`未定主机`)+` 代理 `+(i.proxy||`未读出`)+`)`),n.length?n.join(` | `):null}function u(e){return!e||e.isolated!==!1?null:e.isolatedBasis===`cold-profile-blocked`?`本次登录没有用隔离窗口:`+(e.isolatedDetail||`本机直连授权域不通且没有在用代理`)+`。已在现有浏览器窗口打开,登录完成后请手动清理账号;在系统里配好代理即可回到隔离登录。`:e.isolatedBasis===`engine-not-isolatable`?`默认浏览器不支持隔离窗口:本次登录会带现有登录态,换账号请先在该浏览器退出`:`本次登录未使用隔离窗口`+(e.isolatedDetail?`:`+e.isolatedDetail:`,换账号请先在浏览器里退出`)}function d(e){let t=typeof e?.url==`string`&&e.url?e.url:typeof e?.authUrl==`string`?e.authUrl:``;return t.startsWith(`https://`)?t:``}function f(e){let t=typeof e?.url==`string`&&e?.url?e.url:null,n=l(e?.evidence),r=e?.evidence,i=!!r&&(r.via===`isolated`||!!r.egress),a=[typeof e?.message==`string`&&e.message?e.message:null,n].filter(Boolean).join(` | `)||null;return!e||e.ok!==!0?{tier:`failed`,url:t,detail:a,title:e&&e.error||`无法调起系统浏览器,请手动打开下方地址`,reveal:!0}:e.confirmed===!0?{tier:`confirmed`,url:t,detail:n,title:e.message||`已在系统浏览器打开`,reveal:i}:{tier:`handed-off`,url:t,detail:a,reveal:!0,title:`已把地址交给系统,但没拿到窗口出现的证据`+(t?`:没看到浏览器就点下方地址`:``)}}var p=n();function m({url:e}){async function n(){await _(()=>c(e))}function r(){let n=()=>t.error(`复制失败,请手动选中地址`);navigator.clipboard?.writeText?navigator.clipboard.writeText(e).then(()=>t.success(`地址已复制`),n):n()}return(0,p.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,p.jsx)(`code`,{className:`min-w-0 flex-1 truncate rounded bg-muted px-1.5 py-0.5 font-mono text-[11px] text-muted-foreground`,children:e}),(0,p.jsx)(`button`,{type:`button`,onClick:()=>void n(),title:`在系统浏览器中打开该地址`,className:`shrink-0 text-muted-foreground transition-colors hover:text-foreground`,children:(0,p.jsx)(a,{className:`size-3.5`})}),(0,p.jsx)(`button`,{type:`button`,onClick:r,title:`复制地址`,className:`shrink-0 text-muted-foreground transition-colors hover:text-foreground`,children:(0,p.jsx)(i,{className:`size-3.5`})})]})}function h({url:e,detail:t}){return(0,p.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-1`,children:[e?(0,p.jsx)(m,{url:e}):null,t?(0,p.jsx)(`div`,{className:`break-all font-mono text-[10px] text-muted-foreground`,children:t}):null]})}function g(e){let{tier:n,url:r,title:i,detail:a,reveal:o}=f(e),s=o?a:null,c={description:r||s?(0,p.jsx)(h,{url:r,detail:s}):void 0,duration:n===`confirmed`?o?12e3:3e3:2e4};n===`confirmed`?t.success(i,c):n===`handed-off`?t.warning(i,c):t.error(i,c)}async function _(e){try{let t=await e();return g(t),t??null}catch(e){let t=e.body,n=t&&typeof t==`object`?t:{ok:!1,error:e instanceof Error?e.message:String(e)};return g(n),n}}export{d as a,u as i,_ as n,a as o,c as r,i as s,m as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{N as e}from"./supervisor-Blfqgw-f.js";var t=e(`shield-check`,[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]);export{t};
|