@evandu/super-pi 0.1.121 → 0.1.122

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 (29) hide show
  1. package/dist/client/.super-pi-client-sources.json +6 -5
  2. package/dist/client/assets/CodeMirrorEditor-B2AXs2YB.js +2 -0
  3. package/dist/client/assets/{dist-Dn6WngJz.js → dist--hp7cqEH.js} +1 -1
  4. package/dist/client/assets/{dist-CD8L4hro.js → dist-4hqZVn6B.js} +1 -1
  5. package/dist/client/assets/{dist-CnUavZd5.js → dist-B0G3TOfE.js} +1 -1
  6. package/dist/client/assets/{dist-BFXoW3Ke.js → dist-BqlvAjyT.js} +1 -1
  7. package/dist/client/assets/{dist-BKvJ-rsp.js → dist-CAFUK38E.js} +1 -1
  8. package/dist/client/assets/{dist-Cv5Y8SP6.js → dist-CRpnXCSn.js} +1 -1
  9. package/dist/client/assets/{dist--Bw2GG7i.js → dist-CWcEOVNV.js} +1 -1
  10. package/dist/client/assets/{dist-DgPfRDCs.js → dist-CcAEnfzB.js} +1 -1
  11. package/dist/client/assets/{dist-DpNHtvH0.js → dist-CjyJqaHj.js} +1 -1
  12. package/dist/client/assets/{dist-C8O-T-OF.js → dist-CoqrRbfm.js} +1 -1
  13. package/dist/client/assets/{dist-CShpchYZ.js → dist-CrYrGCRr.js} +1 -1
  14. package/dist/client/assets/{dist-D-QE2Y-y.js → dist-CvUxw4HU.js} +1 -1
  15. package/dist/client/assets/{dist-ZPVu0boM.js → dist-Cxo9Qf8Y.js} +1 -1
  16. package/dist/client/assets/{dist-BTUvz_ZM.js → dist-D11ifrNu.js} +1 -1
  17. package/dist/client/assets/{dist-9Ht9N0vP.js → dist-D899ixlt.js} +1 -1
  18. package/dist/client/assets/{dist-DmiZlP9T.js → dist-DC4KdKrw.js} +1 -1
  19. package/dist/client/assets/{dist-C-l6HNgT.js → dist-DOQGcum7.js} +1 -1
  20. package/dist/client/assets/{dist-Cv7v4h39.js → dist-DOuFuHYr.js} +1 -1
  21. package/dist/client/assets/{dist-CmDQiinf.js → dist-Dp9eqvWE.js} +1 -1
  22. package/dist/client/assets/{dist-DU_Q4BkH.js → dist-GQ99vtKx.js} +1 -1
  23. package/dist/client/assets/{dist-DgqbFoFh.js → dist-Ip0mRDF1.js} +1 -1
  24. package/dist/client/assets/{dist-BW8VIugX.js → dist-Wq0CGa1P.js} +1 -1
  25. package/dist/client/assets/{index-xbmxsBxy.js → index-B0TMoUBp.js} +25 -25
  26. package/dist/client/assets/{index-CQ-atg9c.css → index-CCnIvjP6.css} +1 -1
  27. package/dist/client/index.html +2 -2
  28. package/package.json +1 -1
  29. package/dist/client/assets/CodeMirrorEditor-DaZfHzYU.js +0 -2
@@ -8,8 +8,8 @@
8
8
  <link rel="alternate icon" href="/favicon.ico" />
9
9
  <link rel="apple-touch-icon" href="/favicon.svg" />
10
10
  <title>Super Pi</title>
11
- <script type="module" crossorigin src="/assets/index-xbmxsBxy.js"></script>
12
- <link rel="stylesheet" crossorigin href="/assets/index-CQ-atg9c.css">
11
+ <script type="module" crossorigin src="/assets/index-B0TMoUBp.js"></script>
12
+ <link rel="stylesheet" crossorigin href="/assets/index-CCnIvjP6.css">
13
13
  </head>
14
14
  <body>
15
15
  <div id="root"></div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evandu/super-pi",
3
- "version": "0.1.121",
3
+ "version": "0.1.122",
4
4
  "description": "Web control plane and companion for Pi",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -1,2 +0,0 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-D-QE2Y-y.js","assets/dist-9Ht9N0vP.js","assets/index-xbmxsBxy.js","assets/index-CQ-atg9c.css","assets/dist-CnUavZd5.js","assets/dist-DgqbFoFh.js","assets/dist-DpNHtvH0.js","assets/dist-DmiZlP9T.js","assets/dist-BFXoW3Ke.js","assets/dist-ZPVu0boM.js","assets/dist-Dn6WngJz.js","assets/dist-C8O-T-OF.js","assets/dist-Cv7v4h39.js","assets/dist-DgPfRDCs.js","assets/dist-BW8VIugX.js","assets/dist-CD8L4hro.js","assets/dist-BKvJ-rsp.js","assets/dist-C-l6HNgT.js","assets/dist-DU_Q4BkH.js","assets/dist-CShpchYZ.js","assets/dist-Cv5Y8SP6.js","assets/dist--Bw2GG7i.js","assets/dist-CmDQiinf.js","assets/dist-BTUvz_ZM.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,r as n,t as r}from"./index-xbmxsBxy.js";var i=e(n(),1);async function a(e,t){let[{StreamLanguage:n},i]=await Promise.all([r(()=>import(`./dist-D-QE2Y-y.js`),__vite__mapDeps([0,1,2,3,4,5])),e()]),a=i[t]??i.default??i;return n.define(a)}var o={cpp:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),cc:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),cxx:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),hpp:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),hh:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),hxx:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),c:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),h:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),cu:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),cuh:()=>r(()=>import(`./dist-DpNHtvH0.js`).then(e=>e.cpp()),__vite__mapDeps([6,5,2,3,0,1,4,7])),js:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript()),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),jsx:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript({jsx:!0})),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),mjs:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript()),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),cjs:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript()),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),ts:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),tsx:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript({typescript:!0,jsx:!0})),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),mts:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),cts:()=>r(()=>import(`./dist-BFXoW3Ke.js`).then(e=>e.t).then(e=>e.javascript({typescript:!0})),__vite__mapDeps([8,2,3,1,4,5,0,7,9])),py:()=>r(()=>import(`./dist-Dn6WngJz.js`).then(e=>e.python()),__vite__mapDeps([10,5,2,3,0,1,4,7,9])),pyi:()=>r(()=>import(`./dist-Dn6WngJz.js`).then(e=>e.python()),__vite__mapDeps([10,5,2,3,0,1,4,7,9])),java:()=>r(()=>import(`./dist-C8O-T-OF.js`).then(e=>e.java()),__vite__mapDeps([11,5,2,3,0,1,4,7])),php:()=>r(()=>import(`./dist-Cv7v4h39.js`).then(e=>e.php()),__vite__mapDeps([12,5,2,3,0,1,4,7,13,14,8,9])),sql:()=>r(()=>import(`./dist-CD8L4hro.js`).then(e=>e.sql()),__vite__mapDeps([15,5,2,3,0,1,4,7,9])),yaml:()=>r(()=>import(`./dist-BKvJ-rsp.js`).then(e=>e.yaml()),__vite__mapDeps([16,5,2,3,0,1,4,7])),yml:()=>r(()=>import(`./dist-BKvJ-rsp.js`).then(e=>e.yaml()),__vite__mapDeps([16,5,2,3,0,1,4,7])),xml:()=>r(()=>import(`./dist-C-l6HNgT.js`).then(e=>e.xml()),__vite__mapDeps([17,1,2,3,4,5,0,7])),json:()=>r(()=>import(`./dist-DU_Q4BkH.js`).then(e=>e.json()),__vite__mapDeps([18,5,2,3,0,1,4,7])),jsonc:()=>r(()=>import(`./dist-DU_Q4BkH.js`).then(e=>e.json()),__vite__mapDeps([18,5,2,3,0,1,4,7])),json5:()=>r(()=>import(`./dist-DU_Q4BkH.js`).then(e=>e.json()),__vite__mapDeps([18,5,2,3,0,1,4,7])),html:()=>r(()=>import(`./dist-DgPfRDCs.js`).then(e=>e.html()),__vite__mapDeps([13,1,2,3,4,5,0,7,14,8,9])),htm:()=>r(()=>import(`./dist-DgPfRDCs.js`).then(e=>e.html()),__vite__mapDeps([13,1,2,3,4,5,0,7,14,8,9])),vue:()=>r(()=>import(`./dist-DgPfRDCs.js`).then(e=>e.html()),__vite__mapDeps([13,1,2,3,4,5,0,7,14,8,9])),svelte:()=>r(()=>import(`./dist-DgPfRDCs.js`).then(e=>e.html()),__vite__mapDeps([13,1,2,3,4,5,0,7,14,8,9])),css:()=>r(()=>import(`./dist-BW8VIugX.js`).then(e=>e.r).then(e=>e.css()),__vite__mapDeps([14,2,3,5,0,1,4,7])),md:()=>r(()=>import(`./dist-CShpchYZ.js`).then(e=>e.markdown()),__vite__mapDeps([19,1,2,3,4,5,0,9,13,7,14,8])),markdown:()=>r(()=>import(`./dist-CShpchYZ.js`).then(e=>e.markdown()),__vite__mapDeps([19,1,2,3,4,5,0,9,13,7,14,8])),mdx:()=>r(()=>import(`./dist-CShpchYZ.js`).then(e=>e.markdown()),__vite__mapDeps([19,1,2,3,4,5,0,9,13,7,14,8])),rs:()=>r(()=>import(`./dist-Cv5Y8SP6.js`).then(e=>e.rust()),__vite__mapDeps([20,5,2,3,0,1,4,7])),go:()=>r(()=>import(`./dist--Bw2GG7i.js`).then(e=>e.go()),__vite__mapDeps([21,5,2,3,0,1,4,7,9])),sh:()=>a(()=>r(()=>import(`./shell-DwuoZtxw.js`),[]),`shell`),bash:()=>a(()=>r(()=>import(`./shell-DwuoZtxw.js`),[]),`shell`),zsh:()=>a(()=>r(()=>import(`./shell-DwuoZtxw.js`),[]),`shell`),fish:()=>a(()=>r(()=>import(`./shell-DwuoZtxw.js`),[]),`shell`),ps1:()=>a(()=>r(()=>import(`./powershell-D8WpQPaX.js`),[]),`powershell`),psm1:()=>a(()=>r(()=>import(`./powershell-D8WpQPaX.js`),[]),`powershell`),rb:()=>a(()=>r(()=>import(`./ruby-ChfNwlCY.js`),[]),`ruby`),swift:()=>a(()=>r(()=>import(`./swift-DKB6_1j6.js`),[]),`swift`),toml:()=>a(()=>r(()=>import(`./toml-BPTmHmyx.js`),[]),`toml`),ini:()=>a(()=>r(()=>import(`./properties-C357ku5U.js`),[]),`properties`),cfg:()=>a(()=>r(()=>import(`./properties-C357ku5U.js`),[]),`properties`),conf:()=>a(()=>r(()=>import(`./properties-C357ku5U.js`),[]),`properties`),properties:()=>a(()=>r(()=>import(`./properties-C357ku5U.js`),[]),`properties`),dockerfile:()=>a(()=>r(()=>import(`./dockerfile-BDePf5PZ.js`),[]),`dockerfile`),diff:()=>a(()=>r(()=>import(`./diff-ChtP43wD.js`),[]),`diff`),patch:()=>a(()=>r(()=>import(`./diff-ChtP43wD.js`),[]),`diff`)},s={cpp:`C++`,cc:`C++`,cxx:`C++`,hpp:`C++`,hh:`C++`,hxx:`C++`,cu:`CUDA C++`,cuh:`CUDA C++`,c:`C`,h:`C/C++ Header`,js:`JavaScript`,jsx:`JSX`,mjs:`JavaScript`,cjs:`JavaScript`,ts:`TypeScript`,tsx:`TSX`,mts:`TypeScript`,cts:`TypeScript`,py:`Python`,pyi:`Python Stub`,java:`Java`,php:`PHP`,sql:`SQL`,yaml:`YAML`,yml:`YAML`,xml:`XML`,json:`JSON`,jsonc:`JSON with Comments`,json5:`JSON5`,css:`CSS`,md:`Markdown`,markdown:`Markdown`,mdx:`MDX`,rs:`Rust`,go:`Go`,html:`HTML`,htm:`HTML`,vue:`Vue`,svelte:`Svelte`,sh:`Shell`,bash:`Bash`,zsh:`Zsh`,fish:`Fish`,ps1:`PowerShell`,psm1:`PowerShell`,rb:`Ruby`,swift:`Swift`,toml:`TOML`,ini:`INI`,cfg:`Config`,conf:`Config`,properties:`Properties`,dockerfile:`Dockerfile`,diff:`Diff`,patch:`Patch`};function c(e){return o[e.toLowerCase()]}function l(e){return s[e.toLowerCase()]}var u=t(),d=262144,f=131072;function p(e){return e.split(`.`).pop()?.toLowerCase()??``}function m(e){return getComputedStyle(document.documentElement).getPropertyValue(e).trim()}function h(e,t){return e.HighlightStyle.define([{tag:t.tags.keyword,color:m(`--cm-keyword`)},{tag:t.tags.string,color:m(`--cm-string`)},{tag:t.tags.number,color:m(`--cm-number`)},{tag:t.tags.comment,color:m(`--cm-comment`),fontStyle:`italic`},{tag:t.tags.function(t.tags.variableName),color:m(`--cm-function`)},{tag:t.tags.typeName,color:m(`--cm-type`)},{tag:t.tags.className,color:m(`--cm-type`)},{tag:t.tags.propertyName,color:m(`--cm-property`)},{tag:t.tags.operator,color:m(`--cm-operator`)},{tag:t.tags.variableName,color:m(`--cm-variable`)}])}function g({path:e,value:t,onChange:n,jumpToLine:a,onSave:o}){let s=(0,i.useRef)(null),m=(0,i.useRef)(null),g=(0,i.useRef)(null),_=(0,i.useRef)(null),v=(0,i.useRef)(null),y=(0,i.useRef)(n),b=(0,i.useRef)(o);y.current=n,b.current=o;let[x,S]=(0,i.useState)(!1),[C,w]=(0,i.useState)(!1),[T,E]=(0,i.useState)(`0,0`);(0,i.useEffect)(()=>{let n=!1,i,a,o,l;return(async()=>{let u=c(p(e)),[f,x,C,T,D,O,k]=await Promise.all([r(()=>import(`./dist-9Ht9N0vP.js`).then(e=>e.x),__vite__mapDeps([1,2,3])),r(()=>import(`./dist-CnUavZd5.js`).then(e=>e.s),__vite__mapDeps([4,2,3,1])),r(()=>import(`./dist-CmDQiinf.js`),__vite__mapDeps([22,1,2,3,4,5,0])),r(()=>import(`./dist-BTUvz_ZM.js`),__vite__mapDeps([23,1,2,3,4])),r(()=>import(`./dist-D-QE2Y-y.js`),__vite__mapDeps([0,1,2,3,4,5])),r(()=>import(`./dist-DgqbFoFh.js`).then(e=>e.n),__vite__mapDeps([5,2,3])),u?u().catch(()=>null):Promise.resolve(null)]);if(n||!s.current)return;o=D,l=O,_.current=f.Annotation.define(),v.current=f.Transaction.addToHistory;let A=t.length<=d&&k!==null;a=new f.Compartment;let j=[x.lineNumbers(),x.highlightActiveLine(),x.drawSelection(),C.history(),x.keymap.of([C.indentWithTab,...C.defaultKeymap,...C.historyKeymap,...T.searchKeymap,{key:`Mod-s`,run:()=>(b.current(),!0)}]),x.EditorView.updateListener.of(e=>{e.docChanged&&!(_.current&&e.transactions.some(e=>e.annotation(_.current)===!0))&&y.current(e.state.doc.toString()),e.selectionSet&&E(`${e.state.selection.main.from},${e.state.selection.main.to}`)}),x.EditorView.domEventHandlers({mousedown:(e,t)=>(t.focus(),!1)})];if(k&&j.push(k),A&&a&&o&&l&&j.push(a.of(o.syntaxHighlighting(h(o,l)))),i=new x.EditorView({state:f.EditorState.create({doc:t,extensions:j}),parent:s.current}),n){i.destroy();return}m.current=i,S(A),w(!0);let M=new MutationObserver(()=>{let e=m.current;e&&A&&a&&o&&l&&e.dispatch({effects:a.reconfigure(o.syntaxHighlighting(h(o,l)))})});g.current=M,M.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]})})(),()=>{n=!0,g.current?.disconnect(),g.current=null,i?.destroy(),m.current=null,w(!1),s.current&&(s.current.textContent=``)}},[e]),(0,i.useEffect)(()=>{let e=m.current;if(!e)return;let n=e.state.doc.toString();n!==t&&e.dispatch({changes:{from:0,to:n.length,insert:t},annotations:_.current?_.current.of(!0):void 0})},[t]),(0,i.useEffect)(()=>{let e=m.current;if(!e||!a)return;let t=e.state.doc.line(Math.min(Math.max(1,a.line),e.state.doc.lines));e.dispatch({selection:{anchor:t.from,head:t.to},scrollIntoView:!0}),e.focus()},[a,C]);let D=m.current?.state.doc.toString()??t,O=D.length<=f?D:D.slice(0,f),k=p(e),A=l(k);return(0,u.jsxs)(`div`,{className:`file-cm-wrap`,"data-file-text":e,"data-file-content":O,"data-file-content-truncated":D.length>f?`1`:`0`,"data-file-selection":T,"data-file-editor-ready":C?`1`:`0`,onMouseDown:()=>m.current?.focus(),children:[(0,u.jsx)(`div`,{className:`file-cm`,ref:s,"aria-label":`编辑 ${e}`}),!C&&(0,u.jsx)(`span`,{className:`file-cm-status`,"data-file-editor-loading":`1`,children:`⌛ 正在加载编辑器…`}),C&&!x&&(0,u.jsx)(`span`,{className:`file-cm-status`,"data-file-highlight-status":`plain`,children:`纯文本`}),C&&x&&A&&(0,u.jsx)(`span`,{className:`file-cm-status file-cm-status-lang`,"data-file-highlight-status":k,children:A})]})}export{g as CodeMirrorEditor};