ryugi-artifacts 1.31.4 → 1.31.5
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{a as r}from"./useSandboxFrame-DiOdLOg3.js";import{t as i}from"./index.js";import a from"./CloudDocument-DI8rTqBL.js";import{DocumentView as o,t as s}from"./DocumentPage-B5t36jZf.js";var c=e(t(),1),l=`1.31.
|
|
1
|
+
import{i as e}from"./rolldown-runtime-COiEfhsA.js";import{n as t,t as n}from"./jsx-runtime-CldxteV5.js";import{a as r}from"./useSandboxFrame-DiOdLOg3.js";import{t as i}from"./index.js";import a from"./CloudDocument-DI8rTqBL.js";import{DocumentView as o,t as s}from"./DocumentPage-B5t36jZf.js";var c=e(t(),1),l=`1.31.5`,u=e=>/^(\d+)\.(\d+)\./.exec(e??``)?.slice(1,3).join(`.`)??null;function d(e,t){let n=u(e);return n!==null&&n===u(t)}var f=(e,t)=>`电脑上的 ryugi 是 ${t??`未知版本`},网页是 ${e},版本对上之前只能评论`,p=n();function m({id:e,state:t,contentBase:n,liveContentBase:u,comments:m}){let{transport:h,presence:g}=s(e,u??n??``),_=g?.online??!1;r(e,{online:g?.online??null});let[v,y]=(0,c.useState)(!1);(0,c.useEffect)(()=>{_&&y(!0)},[_]);let b=t&&n?(0,p.jsx)(a,{id:e,state:t,contentBase:n,comments:m,offline:g!==null&&!_}):null;if(!h||!(v||_))return b??(0,p.jsx)(i,{children:g===null?`正在连接…`:`还没发布。电脑在线时,这里会实时显示。`});let x=_&&d(l,g?.version??null),S=_&&!x?f(l,g?.version??null):null;return(0,p.jsx)(o,{id:e,transport:h,live:_,cloud:{online:_,canEdit:x,reason:S},fallback:b})}export{m as default};
|