@evandu/super-pi 0.1.295 → 0.1.298
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/dist/.super-pi-check-inputs.json +2 -2
- package/dist/client/.super-pi-client-sources.json +22 -14
- package/dist/client/assets/CodeMirrorEditor-C-L7B565.css +1 -0
- package/dist/client/assets/CodeMirrorEditor-Ct1N_Uh-.js +2 -0
- package/dist/client/assets/GitDiffEditor-DaRhNt7O.js +29 -0
- package/dist/client/assets/{dist-Dc1MBGAG.js → dist-699T9mBC.js} +1 -1
- package/dist/client/assets/{dist-Dvb0SqcK.js → dist-B2l9cUU9.js} +2 -2
- package/dist/client/assets/dist-BJHpSQV1.js +1 -0
- package/dist/client/assets/{dist-Cx00EZKR.js → dist-BUY8ZNeZ.js} +9 -9
- package/dist/client/assets/{dist-D71y2EI1.js → dist-BX5MJasK.js} +1 -1
- package/dist/client/assets/{dist-QzbOCAU6.js → dist-BXqtlD7O.js} +1 -1
- package/dist/client/assets/{dist-AW5lyI3I.js → dist-BqSTJyq9.js} +1 -1
- package/dist/client/assets/{dist-DuvGReu-.js → dist-CAlPBcem.js} +1 -1
- package/dist/client/assets/{dist-BGxkyh6e.js → dist-CVPY8uK1.js} +1 -1
- package/dist/client/assets/{dist-CKF2Jksy.js → dist-DLNOWOmk.js} +1 -1
- package/dist/client/assets/dist-DP4hrTBF.js +3 -0
- package/dist/client/assets/{dist-B3-a6uF0.js → dist-DTIPfQj7.js} +5 -5
- package/dist/client/assets/{dist-Dds-qLxY.js → dist-Dfhu-vbV.js} +4 -4
- package/dist/client/assets/{dist-BV64A9Ji.js → dist-Jg3fJuzH.js} +1 -1
- package/dist/client/assets/{dist-scBkrwv-.js → dist-Qjm1p8SR.js} +2 -2
- package/dist/client/assets/{dist-CX_Hm4GS.js → dist-S5ntGzJB.js} +1 -1
- package/dist/client/assets/{dist-BRVQKlcp.js → dist-X4BHLQqs.js} +1 -1
- package/dist/client/assets/{dist-DeD9copn.js → dist-dybF9Ag8.js} +1 -1
- package/dist/client/assets/{dist-BJxfd7yb.js → dist-gDvn1xVj.js} +5 -5
- package/dist/client/assets/{index-DPQPznQh.js → index-CKsNRehl.js} +69 -69
- package/dist/client/assets/index-Dcs7gmUf.css +1 -0
- package/dist/client/index.html +2 -2
- package/package.json +2 -1
- package/dist/client/assets/CodeMirrorEditor--5LzaKEZ.css +0 -1
- package/dist/client/assets/CodeMirrorEditor-pPQNmfzu.js +0 -2
- package/dist/client/assets/GitDiffEditor-DIHJ24IL.js +0 -29
- package/dist/client/assets/dist-J6XWqRpB.js +0 -3
- package/dist/client/assets/dist-moiMRpw_.js +0 -1
- package/dist/client/assets/index-Ccibh1zo.css +0 -1
package/dist/client/index.html
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
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-
|
|
11
|
+
<script type="module" crossorigin src="/assets/index-CKsNRehl.js"></script>
|
|
12
12
|
<link rel="modulepreload" crossorigin href="/assets/rolldown-runtime-XKyaHtl9.js">
|
|
13
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
13
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Dcs7gmUf.css">
|
|
14
14
|
</head>
|
|
15
15
|
<body>
|
|
16
16
|
<div id="root"></div>
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"superPi": {
|
|
4
4
|
"managedDirectListener": true
|
|
5
5
|
},
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.298",
|
|
7
7
|
"description": "Web control plane and companion for Pi",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"type": "module",
|
|
@@ -482,6 +482,7 @@
|
|
|
482
482
|
"scripts/session-row-escalation-browser.test.mjs"
|
|
483
483
|
],
|
|
484
484
|
"dependencies": {
|
|
485
|
+
"@codemirror/autocomplete": "6.20.4",
|
|
485
486
|
"@codemirror/commands": "^6.11.1",
|
|
486
487
|
"@codemirror/lang-cpp": "^6.0.3",
|
|
487
488
|
"@codemirror/lang-css": "^6.3.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.workbench-shell .cm-editor .cm-workbench-selectedText,.workbench-shell .cm-editor .cm-workbench-selectedText *{background:var(--selected)!important;color:var(--bg-app)!important}.workbench-shell .cm-editor .cm-panels{background:var(--bg-panel);color:var(--text-primary)}.workbench-shell .cm-editor .cm-panels-top{border-bottom:1px solid var(--border-default)}.workbench-shell .cm-editor{position:relative}.workbench-shell .cm-editor .cm-panels-top{z-index:10;border:1px solid var(--border-default);width:min(420px,100% - 24px);box-shadow:0 4px 12px var(--shadow-faint);border-radius:5px;position:absolute;top:8px;left:auto;right:12px}.workbench-shell .cm-editor .cm-search:not([data-editor-search-expanded=true]) :is(label,br,input[name=replace],button[name=replace],button[name=replaceAll],button[name=select]){display:none}.workbench-shell .cm-editor .cm-search:not([data-editor-search-expanded=true]) .cm-textfield{flex-basis:120px;width:160px;min-width:80px}.workbench-shell .cm-editor .cm-panel.cm-search{min-width:0;font-family:Manrope,system-ui,sans-serif;font-size:var(--type-control);line-height:var(--type-control-line);background:var(--bg-panel);color:var(--text-primary);flex-wrap:wrap;align-items:center;gap:6px 8px;padding:10px 46px 10px 12px;display:flex;position:relative}.workbench-shell .cm-editor .cm-search :is(input,button,label){font:inherit;margin:0}.workbench-shell .cm-editor .cm-search .cm-textfield{border:1px solid var(--border-default);width:220px;min-width:100px;max-width:340px;height:32px;color:var(--text-primary);background:var(--bg-input);box-shadow:none;border-radius:4px;flex:180px;padding:5px 8px}.workbench-shell .cm-editor .cm-search .cm-textfield::placeholder{color:var(--text-muted)}.workbench-shell .cm-editor .cm-search button{border:1px solid var(--border-default);min-height:32px;color:var(--text-primary);background:var(--bg-raised);box-shadow:none;cursor:pointer;background-image:none;border-radius:4px;flex:none;justify-content:center;align-items:center;padding:4px 8px;display:inline-flex}.workbench-shell .cm-editor .cm-search button:hover{background:var(--bg-hover)}.workbench-shell .cm-editor .cm-search label{white-space:nowrap;min-height:32px;color:var(--text-secondary);align-items:center;gap:5px;display:inline-flex}.workbench-shell .cm-editor .cm-search input[type=checkbox]{width:16px;height:16px;accent-color:var(--accent);cursor:pointer;margin:0}.workbench-shell .cm-editor .cm-search br{flex-basis:100%;height:0}.workbench-shell .cm-editor .cm-search button[name=close]{background:0 0;border-color:#0000;width:30px;height:32px;min-height:32px;padding:0;font-size:20px;line-height:1;position:absolute;top:10px;right:8px}.workbench-shell .cm-editor .cm-search button[name=close]:hover{background:var(--bg-hover)}.workbench-shell .cm-editor .cm-search :is(input,button):focus-visible{outline:2px solid var(--focus-ring);outline-offset:1px}.workbench-shell .cm-editor .cm-searchMatch{color:var(--editor-find-fg);background-color:var(--editor-find-bg);box-shadow:inset 0 0 0 1px var(--editor-find-border)}.workbench-shell .cm-editor .cm-selectionMatch{background-color:var(--editor-find-bg);color:var(--editor-find-fg);box-shadow:inset 0 0 0 1px var(--editor-find-border)}.workbench-shell .cm-editor .cm-selectionMatch span{color:inherit;background-color:#0000}.workbench-shell .cm-editor .cm-searchMatch-selected{color:var(--editor-find-current-fg);background-color:var(--editor-find-current-bg);outline:1px solid var(--editor-find-current-border);box-shadow:inset 0 0 0 1px var(--editor-find-current-border)}.workbench-shell .cm-editor .cm-searchMatch span{color:inherit;background-color:#0000}@media (width<=700px){.workbench-shell .cm-editor .cm-panel.cm-search{padding-right:60px}.workbench-shell .cm-editor .cm-search :is(button,label){min-height:44px}.workbench-shell .cm-editor .cm-search .cm-textfield{height:44px}.workbench-shell .cm-editor .cm-search button[name=close]{width:44px;height:44px}}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/dist-D978o95T.js","assets/rolldown-runtime-XKyaHtl9.js","assets/dist-B3-a6uF0.js","assets/dist-CX_Hm4GS.js","assets/dist-Cus6_oaF.js","assets/dist-J6XWqRpB.js","assets/dist-scBkrwv-.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
import{r as e}from"./rolldown-runtime-XKyaHtl9.js";import{d as t,f as n,i as r,l as i,p as a,r as o,u as s}from"./index-DPQPznQh.js";var c=e(a(),1);function l(e,t,n){return[n.EditorView.decorations.compute([`selection`,`doc`],e=>n.Decoration.set(e.selection.ranges.filter(e=>!e.empty).map(e=>n.Decoration.mark({class:`cm-workbench-selectedText`}).range(e.from,e.to)),!0)),n.ViewPlugin.define(e=>{let t=()=>{let t=e.dom.querySelector(`.cm-panel.cm-search`);if(!t||t.querySelector(`[data-editor-search-options]`))return;let n=document.createElement(`button`);n.type=`button`,n.dataset.editorSearchOptions=``,n.textContent=`选项`,n.setAttribute(`aria-label`,`展开查找选项`),n.setAttribute(`aria-expanded`,`false`),n.onclick=()=>{let e=t.dataset.editorSearchExpanded!==`true`;t.dataset.editorSearchExpanded=String(e),n.setAttribute(`aria-expanded`,String(e)),n.setAttribute(`aria-label`,e?`收起查找选项`:`展开查找选项`)},t.append(n)},n=new MutationObserver(t);return n.observe(e.dom,{childList:!0,subtree:!0}),t(),{destroy(){n.disconnect()}}}),e.Prec.highest(n.keymap.of([{key:`Mod-h`,run:e=>(t.openSearchPanel(e),requestAnimationFrame(()=>{e.dom.querySelector(`[data-editor-search-options][aria-expanded="false"]`)?.click()}),!0)},...[`c`,`w`,`r`].map(e=>({key:`Alt-${e}`,run:n=>{t.openSearchPanel(n);let r=t.getSearchQuery(n.state);return n.dispatch({effects:t.setSearchQuery.of(new t.SearchQuery({...r,...e===`c`?{caseSensitive:!r.caseSensitive}:e===`w`?{wholeWord:!r.wholeWord}:{regexp:!r.regexp}}))}),!0}}))])),t.highlightSelectionMatches({wholeWords:!0,minSelectionLength:1,maxMatches:1e3}),t.search({top:!0}),e.EditorState.phrases.of({Find:`查找`,Replace:`替换为`,next:`下一处`,previous:`上一处`,all:`全部选中`,"match case":`区分大小写`,regexp:`正则表达式`,"by word":`全词匹配`,replace:`替换`,"replace all":`全部替换`,close:`关闭查找`,"current match":`当前匹配`,"on line":`所在行`})]}var u=n(),d=262144,f=131072;function p(e){return e.split(`.`).pop()?.toLowerCase()??``}function m(e,t,n=!1){let r=e=>n?`var(--git-diff-${e.slice(5)}, var(${e}))`:`var(${e})`;return e.HighlightStyle.define([{tag:t.tags.keyword,color:r(`--cm-keyword`)},{tag:t.tags.string,color:r(`--cm-string`)},{tag:t.tags.number,color:r(`--cm-number`)},{tag:t.tags.comment,color:r(`--cm-comment`),fontStyle:`italic`},{tag:t.tags.function(t.tags.variableName),color:r(`--cm-function`)},{tag:t.tags.typeName,color:r(`--cm-type`)},{tag:t.tags.className,color:r(`--cm-type`)},{tag:t.tags.propertyName,color:r(`--cm-property`)},{tag:t.tags.operator,color:r(`--cm-operator`)},{tag:t.tags.variableName,color:r(`--cm-variable`)}])}function h({path:e,value:n,onChange:a,jumpToLine:h,onSave:g,workspaceId:_,blame:v,onPosition:y,readOnly:b=!1,languageOverride:x}){let S=(0,c.useRef)(null),C=(0,c.useRef)(null),w=(0,c.useRef)(null),T=(0,c.useRef)(void 0),E=(0,c.useRef)(null),D=(0,c.useRef)(null),O=(0,c.useRef)(null),k=(0,c.useRef)(null),A=(0,c.useRef)(null),j=(0,c.useRef)(null),M=(0,c.useRef)(a),N=(0,c.useRef)(g),P=(0,c.useRef)(!1);M.current=a,N.current=g;let[F,I]=(0,c.useState)(!1),[L,R]=(0,c.useState)(!1),[z,B]=(0,c.useState)(`0,0`),[V,H]=(0,c.useState)(0);(0,c.useEffect)(()=>{let i=!1,a,o,c,u,f;return(async()=>{try{let h=x??p(e),g=s(h),[v,y,F,L,z,V,U,W]=await Promise.all([t(()=>import(`./dist-D978o95T.js`).then(e=>e.S),__vite__mapDeps([0,1])),t(()=>import(`./dist-B3-a6uF0.js`).then(e=>e.s),__vite__mapDeps([2,1,0])),t(()=>import(`./dist-CX_Hm4GS.js`),__vite__mapDeps([3,0,1,2,4,5])),t(()=>import(`./dist-scBkrwv-.js`),__vite__mapDeps([6,0,1,2])),t(()=>import(`./dist-J6XWqRpB.js`).then(e=>e.d),__vite__mapDeps([5,1,0,2,4])),t(()=>import(`./dist-Cus6_oaF.js`).then(e=>e.n),__vite__mapDeps([4,1])),g?g().catch(e=>(console.warn(`[CodeMirror] Failed to load language for .${h}:`,e),null)):Promise.resolve(null),r().catch(e=>(console.warn(`[CodeMirror] Failed to build the blame extension:`,e),null))]);if(i||!S.current)return;w.current=y.EditorView,u=z,f=V,D.current=v.Annotation.define(),O.current=v.Transaction.addToHistory;let G=n.length<=d&&U!==null;o=new v.Compartment;let K=[y.lineNumbers(),y.highlightActiveLine(),y.drawSelection(),F.history(),y.keymap.of([F.indentWithTab,...F.defaultKeymap,...F.historyKeymap,...L.searchKeymap,{key:`Mod-s`,run:()=>(N.current(),!0)}]),y.EditorView.updateListener.of(e=>{e.docChanged&&!(D.current&&e.transactions.some(e=>e.annotation(D.current)===!0))&&M.current(e.state.doc.toString()),e.selectionSet&&B(`${e.state.selection.main.from},${e.state.selection.main.to}`)}),y.EditorView.domEventHandlers({mousedown:(e,t)=>(t.focus(),!1)})];if(K.push(y.EditorView.updateListener.of(e=>{e.docChanged?P.current=!1:e.selectionSet&&(P.current=e.transactions.some(e=>e.isUserEvent(`select.search`)||e.isUserEvent(`select.pointer`)))}),l(v,L,y)),b&&K.push(v.EditorState.readOnly.of(!0),y.EditorView.editable.of(!1),y.EditorView.contentAttributes.of({tabindex:`0`})),W&&!b&&(c=new v.Compartment,K.splice(1,0,c.of([])),K.push(W.base)),U)try{K.push(U)}catch(e){console.warn(`[CodeMirror] Failed to apply language extension for .${h}:`,e),G=!1}if(G&&o&&u&&f)try{K.push(o.of(u.syntaxHighlighting(m(u,f))))}catch(e){console.warn(`[CodeMirror] Failed to attach syntaxHighlighting for .${h}:`,e),G=!1}let q=T.current,J=q?.scope===JSON.stringify([_,e])&&q.state.doc.toString()===n,Y=J?q.state.update({effects:v.StateEffect.reconfigure.of(K)}).state:v.EditorState.create({doc:n,extensions:K});if(a=new y.EditorView({state:Y,parent:S.current}),J&&(a.scrollDOM.scrollTop=q.top,a.scrollDOM.scrollLeft=q.left),i){a.destroy();return}C.current=a,I(G),R(!0),k.current=W,A.current=c??null,j.current=null,H(e=>e+1);let X=new MutationObserver(()=>{let e=C.current;if(e&&G&&o&&u&&f)try{e.dispatch({effects:o.reconfigure(u.syntaxHighlighting(m(u,f)))})}catch{}});E.current=X,X.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]})}catch(e){console.error(`[CodeMirror] Fatal editor initialization error:`,e),i||R(!0)}})(),()=>{i=!0,E.current?.disconnect(),E.current=null,a&&(T.current={scope:JSON.stringify([_,e]),state:a.state,top:a.scrollDOM.scrollTop,left:a.scrollDOM.scrollLeft}),a?.destroy(),C.current=null,R(!1),S.current&&(S.current.textContent=``)}},[e,b,x]),(0,c.useEffect)(()=>{let e=C.current;if(!e)return;let t=e.state.doc.toString();t!==n&&e.dispatch({changes:{from:0,to:t.length,insert:n},annotations:D.current?D.current.of(!0):void 0})},[n]),(0,c.useEffect)(()=>{let e=C.current;if(!e||!h)return;let t=e.state.doc.line(Math.min(Math.max(1,h.line),e.state.doc.lines)),n=Math.min(t.to,t.from+(h.column??1)-1);e.dispatch({selection:{anchor:t.to,head:n},effects:w.current?.scrollIntoView(n,{y:`start`,yMargin:Math.round(e.scrollDOM.clientHeight/3)})}),e.focus()},[h,L]);let U=!!(v&&v.state===`ready`&&v.response&&v.path===e&&v.workspaceId===_);(0,c.useEffect)(()=>{let t=C.current,n=k.current,r=A.current;if(!t||!n||!r)return;let i=v&&v.state===`ready`&&v.response&&v.path===e&&v.workspaceId===_?v.response:null,a=i?o(i):null;j.current!==a&&(j.current=a,t.dispatch({effects:[n.setBlame.of(a),r.reconfigure(a?n.gutter:[])]}))},[v?.state,v?.response,v?.path,v?.workspaceId,e,_,V]);let W=C.current?.state.doc.toString()??n,G=W.length<=f?W:W.slice(0,f),K=x??p(e),q=i(K),J=C.current?.state,Y=J?.selection.main.head,X=Y===void 0?void 0:J?.doc.lineAt(Y),Z=X?.number,Q=Y!==void 0&&X?Y-X.from+1:void 0;return(0,c.useEffect)(()=>{L&&Z!==void 0&&Q!==void 0&&y?.({line:Z,column:Q,language:F&&q||`纯文本`,highlight:F?K:`plain`,navigation:P.current})},[L,Z,Q,F,q,K,y]),(0,c.useEffect)(()=>()=>y?.(),[y]),(0,u.jsxs)(`div`,{className:`file-cm-wrap`,"data-file-text":e,"data-file-content":G,"data-file-content-truncated":W.length>f?`1`:`0`,"data-file-selection":z,"data-file-editor-ready":L?`1`:`0`,"data-file-blame-gutter":U?`1`:void 0,onMouseDown:e=>{e.target.closest(`.cm-panels`)||C.current?.focus()},children:[(0,u.jsx)(`div`,{className:`file-cm`,ref:S,"aria-label":`${b?`查看`:`编辑`} ${e}`}),(!L||!y)&&(0,u.jsxs)(`div`,{className:`file-editor-status`,children:[!L&&(0,u.jsx)(`span`,{"data-file-editor-loading":`1`,children:`正在加载编辑器…`}),L&&Y!==void 0&&X&&(0,u.jsxs)(`span`,{children:[`第 `,X.number,` 行,第 `,Y-X.from+1,` 列`]}),L&&!F&&(0,u.jsx)(`span`,{"data-file-highlight-status":`plain`,children:`纯文本`}),L&&F&&q&&(0,u.jsx)(`span`,{"data-file-highlight-status":K,children:q})]})]})}export{h as CodeMirrorEditor,l as t,m as themeHighlightStyle};
|