pi-web-ui 0.77.0 → 0.79.0
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/CHANGELOG.md +45 -3
- package/dist/server/index.js +82 -1
- package/package.json +4 -1
- package/themes/mist.css +179 -0
- package/themes/paper.css +179 -0
- package/themes/sakura.css +179 -0
- package/web/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/web/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/web/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/web/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/web/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/web/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/web/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/web/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/web/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/web/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/web/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/web/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/web/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/web/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/web/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/web/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/web/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/web/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/web/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/web/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/web/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/web/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/web/dist/assets/{TerminalPanel-CDsBHVQ5.js → TerminalPanel-BYigWYyx.js} +1 -1
- package/web/dist/assets/index-D7BpHJ59.js +347 -0
- package/web/dist/assets/index-GKv6Qo91.css +10 -0
- package/web/dist/assets/markdown-D3PKeHAZ.js +311 -0
- package/web/dist/assets/{react-CtudoG1_.js → react-w24rH0km.js} +1 -1
- package/web/dist/index.html +4 -4
- package/web/dist/assets/index-BsATrxLx.js +0 -346
- package/web/dist/assets/index-DeuPu917.css +0 -10
- package/web/dist/assets/markdown-Cpo0pNcR.js +0 -51
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
/* theme-name: 樱粉 */
|
|
2
|
+
/* theme-name-en: Sakura Pink */
|
|
3
|
+
:root {
|
|
4
|
+
color-scheme: light;
|
|
5
|
+
--bg: #fdf2f5;
|
|
6
|
+
--bg-elev: #fffbfc;
|
|
7
|
+
--bg-elev2: #f8e2e8;
|
|
8
|
+
--border: #eccdd6;
|
|
9
|
+
--border-soft: #f4dde3;
|
|
10
|
+
--text: #4a2b35;
|
|
11
|
+
--text-dim: #7d5561;
|
|
12
|
+
--text-faint: #b08e98;
|
|
13
|
+
--accent: #db2777;
|
|
14
|
+
--accent-soft: rgba(219, 39, 119, 0.12);
|
|
15
|
+
--green: #059669;
|
|
16
|
+
--green-soft: rgba(5, 150, 105, 0.12);
|
|
17
|
+
--red: #e11d48;
|
|
18
|
+
--red-soft: rgba(225, 29, 72, 0.1);
|
|
19
|
+
--amber: #d97706;
|
|
20
|
+
--term-bg: #fffbfc;
|
|
21
|
+
--term-fg: #4a2b35;
|
|
22
|
+
--term-cursor: #db2777;
|
|
23
|
+
--term-cursor-accent: #ffffff;
|
|
24
|
+
--term-selection: rgba(219, 39, 119, 0.28);
|
|
25
|
+
--term-black: #eed3dc;
|
|
26
|
+
--term-red: #e11d48;
|
|
27
|
+
--term-green: #059669;
|
|
28
|
+
--term-yellow: #d97706;
|
|
29
|
+
--term-blue: #2563eb;
|
|
30
|
+
--term-magenta: #c026d3;
|
|
31
|
+
--term-cyan: #0e7490;
|
|
32
|
+
--term-white: #4a2b35;
|
|
33
|
+
--term-bright-black: #b08e98;
|
|
34
|
+
--term-bright-red: #e11d48;
|
|
35
|
+
--term-bright-green: #059669;
|
|
36
|
+
--term-bright-yellow: #d97706;
|
|
37
|
+
--term-bright-blue: #2563eb;
|
|
38
|
+
--term-bright-magenta: #c026d3;
|
|
39
|
+
--term-bright-cyan: #0e7490;
|
|
40
|
+
--term-bright-white: #2a1219;
|
|
41
|
+
--mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
|
|
42
|
+
--mermaid-font-size: 12px;
|
|
43
|
+
--tooltip-bg: #fffbfc;
|
|
44
|
+
--code-bg: #f8e2e8;
|
|
45
|
+
--code-text: #4a2b35;
|
|
46
|
+
--code-border: var(--border-soft);
|
|
47
|
+
--code-pad: 8px 10px;
|
|
48
|
+
--card-body-pad: 4px 14px 12px;
|
|
49
|
+
--err-text: #e11d48;
|
|
50
|
+
--red-text: #e11d48;
|
|
51
|
+
--amber-text: #b45309;
|
|
52
|
+
--info-blue: #2563eb;
|
|
53
|
+
--link: #be185d;
|
|
54
|
+
--link-hover: #9d174d;
|
|
55
|
+
--link-soft: #be185d;
|
|
56
|
+
--md-strong: #3a1c25;
|
|
57
|
+
--skill-blue: #db2777;
|
|
58
|
+
--plugin-purple: #b58cff;
|
|
59
|
+
--auth-green: #059669;
|
|
60
|
+
--scroll-thumb: #dfb9c4;
|
|
61
|
+
--scroll-thumb-hover: #c795a3;
|
|
62
|
+
--notice-err-bg: #f9dfe4;
|
|
63
|
+
--notice-warn-bg: #f3e7cf;
|
|
64
|
+
--notice-info-bg: #eadff0;
|
|
65
|
+
--notice-err-border: #e11d48;
|
|
66
|
+
--notice-warn-border: #b45309;
|
|
67
|
+
--notice-info-border: #a855f7;
|
|
68
|
+
--send-blue: #db2777;
|
|
69
|
+
--send-blue-hover: #be185d;
|
|
70
|
+
--brand-grad-a: #f472b6;
|
|
71
|
+
--brand-grad-b: #db2777;
|
|
72
|
+
--on-amber: #1a1a1a;
|
|
73
|
+
--search-active-fg: #1a1d26;
|
|
74
|
+
--switch-knob: #ffffff;
|
|
75
|
+
--bg-elev3: rgba(150, 50, 90, 0.05);
|
|
76
|
+
--glow-015: rgba(150, 50, 90, 0.02);
|
|
77
|
+
--glow-025: rgba(150, 50, 90, 0.02);
|
|
78
|
+
--glow-03: rgba(150, 50, 90, 0.02);
|
|
79
|
+
--glow-04: rgba(150, 50, 90, 0.03);
|
|
80
|
+
--glow-05: rgba(150, 50, 90, 0.03);
|
|
81
|
+
--glow-12: rgba(150, 50, 90, 0.08);
|
|
82
|
+
--glow-18: rgba(150, 50, 90, 0.12);
|
|
83
|
+
--glow-22: rgba(150, 50, 90, 0.15);
|
|
84
|
+
--glow-38: rgba(150, 50, 90, 0.25);
|
|
85
|
+
--control-fg: #7d5561;
|
|
86
|
+
--control-bg: #f8e2e8;
|
|
87
|
+
--control-border: #eccdd6;
|
|
88
|
+
--bg-image: none;
|
|
89
|
+
--bg-image-dim: 0.78;
|
|
90
|
+
--bg-image-blur: 0px;
|
|
91
|
+
--wallpaper-panel-alpha: 62%;
|
|
92
|
+
--topbar-bg: color-mix(in srgb, var(--bg-elev) var(--wallpaper-panel-alpha, 62%), transparent);
|
|
93
|
+
--statusbar-bg: color-mix(in srgb, var(--bg-elev) var(--wallpaper-panel-alpha, 62%), transparent);
|
|
94
|
+
--panel-bg: color-mix(in srgb, var(--bg-elev) var(--wallpaper-panel-alpha, 62%), transparent);
|
|
95
|
+
--card-bg: color-mix(in srgb, var(--bg-elev) var(--wallpaper-panel-alpha, 62%), transparent);
|
|
96
|
+
--chip-bg: color-mix(in srgb, var(--bg-elev2) var(--wallpaper-panel-alpha, 62%), transparent);
|
|
97
|
+
--msgs-bg: color-mix(in srgb, var(--bg-elev) var(--wallpaper-panel-alpha, 62%), transparent);
|
|
98
|
+
--inputbox-bg: color-mix(in srgb, var(--bg-elev2) var(--wallpaper-panel-alpha, 62%), transparent);
|
|
99
|
+
--menu-bg: var(--bg-elev2);
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/* ---- syntax highlighting (overrides static github-dark import) ---- */
|
|
103
|
+
.hljs {
|
|
104
|
+
color: #4a2b35;
|
|
105
|
+
background: #f8e2e8;
|
|
106
|
+
}
|
|
107
|
+
.hljs-doctag,
|
|
108
|
+
.hljs-keyword,
|
|
109
|
+
.hljs-meta .hljs-keyword,
|
|
110
|
+
.hljs-template-tag,
|
|
111
|
+
.hljs-template-variable,
|
|
112
|
+
.hljs-type,
|
|
113
|
+
.hljs-variable.language_ {
|
|
114
|
+
color: #cf222e;
|
|
115
|
+
}
|
|
116
|
+
.hljs-title,
|
|
117
|
+
.hljs-title.class_,
|
|
118
|
+
.hljs-title.class_.inherited__,
|
|
119
|
+
.hljs-title.function_ {
|
|
120
|
+
color: #8250df;
|
|
121
|
+
}
|
|
122
|
+
.hljs-attr,
|
|
123
|
+
.hljs-attribute,
|
|
124
|
+
.hljs-literal,
|
|
125
|
+
.hljs-meta,
|
|
126
|
+
.hljs-number,
|
|
127
|
+
.hljs-operator,
|
|
128
|
+
.hljs-variable,
|
|
129
|
+
.hljs-selector-attr,
|
|
130
|
+
.hljs-selector-class,
|
|
131
|
+
.hljs-selector-id {
|
|
132
|
+
color: #0550ae;
|
|
133
|
+
}
|
|
134
|
+
.hljs-regexp,
|
|
135
|
+
.hljs-string,
|
|
136
|
+
.hljs-meta .hljs-string {
|
|
137
|
+
color: #0a3069;
|
|
138
|
+
}
|
|
139
|
+
.hljs-built_in,
|
|
140
|
+
.hljs-symbol {
|
|
141
|
+
color: #953800;
|
|
142
|
+
}
|
|
143
|
+
.hljs-comment,
|
|
144
|
+
.hljs-code,
|
|
145
|
+
.hljs-formula {
|
|
146
|
+
color: #a78b93;
|
|
147
|
+
}
|
|
148
|
+
.hljs-name,
|
|
149
|
+
.hljs-quote,
|
|
150
|
+
.hljs-selector-tag,
|
|
151
|
+
.hljs-selector-pseudo {
|
|
152
|
+
color: #116329;
|
|
153
|
+
}
|
|
154
|
+
.hljs-subst {
|
|
155
|
+
color: #4a2b35;
|
|
156
|
+
}
|
|
157
|
+
.hljs-section {
|
|
158
|
+
color: #0550ae;
|
|
159
|
+
font-weight: 700;
|
|
160
|
+
}
|
|
161
|
+
.hljs-bullet {
|
|
162
|
+
color: #0550ae;
|
|
163
|
+
}
|
|
164
|
+
.hljs-emphasis {
|
|
165
|
+
color: #4a2b35;
|
|
166
|
+
font-style: italic;
|
|
167
|
+
}
|
|
168
|
+
.hljs-strong {
|
|
169
|
+
color: #4a2b35;
|
|
170
|
+
font-weight: 700;
|
|
171
|
+
}
|
|
172
|
+
.hljs-addition {
|
|
173
|
+
color: #116329;
|
|
174
|
+
background: #ddefdc;
|
|
175
|
+
}
|
|
176
|
+
.hljs-deletion {
|
|
177
|
+
color: #82071e;
|
|
178
|
+
background: #f4cdd6;
|
|
179
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as l,j as n}from"./markdown-
|
|
1
|
+
import{a as l,j as n}from"./markdown-D3PKeHAZ.js";import{u as P,b as O,T as M,a as p,c as W,F as Y,d as z,e as Z,f as H,g as ee,h as ne,i as te,j as se,r as ae}from"./index-D7BpHJ59.js";import{D as re,o as ie}from"./xterm-B96xOxS9.js";import"./react-w24rH0km.js";function le(t){let c=null;return{clean:t.replace(/\r?\n?\[pi-term-exit:(-?\d+)\]\r?\n?/g,(h,u)=>(c=Number(u),`\r
|
|
2
2
|
`)).replace(/\r?\n?\x1b\[90m\[(?:进程已退出,退出码 |Process exited with code )-?\d+\]\x1b\[0m\r?\n?/g,`\r
|
|
3
3
|
`),exitCode:c}}function ce({conversationId:t,terminalId:c,command:s,cwd:h,title:u,active:w,running:f,exitCode:k,register:g}){const C=l.useRef(null),j=l.useRef(null),{locale:o}=P(),y=l.useRef(o);y.current=o;const E=s?JSON.stringify(s):"";l.useEffect(()=>{const m=C.current;if(!m)return;const r=new re({theme:O(),fontFamily:'"SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace',fontSize:13,cursorBlink:!0,scrollback:8e3}),v=new ie;r.loadAddon(v),r.open(m),j.current={term:r,fit:v},w&&r.focus();const b=()=>{r.options.theme=O()};window.addEventListener(M,b),r.attachCustomKeyEventHandler(d=>{if(d.type!=="keydown")return!0;const S=d.key?.toLowerCase();if((d.ctrlKey||d.metaKey)&&S==="v")return!1;if(d.ctrlKey&&!d.shiftKey&&!d.altKey&&S==="c"&&r.hasSelection()){const D=r.textarea;return D&&(D.value=r.getSelection(),D.select()),!1}return!0});const _=g(t,c,{write:d=>r.write(le(d).clean),dispose:()=>r.dispose()}),$=()=>{try{v.fit(),p({type:"terminal_resize",terminalId:c,conversationId:t,cols:r.cols,rows:r.rows})}catch{}},B=requestAnimationFrame(()=>{try{v.fit()}catch{}s?p({type:"run_command",terminalId:c,conversationId:t,command:s,cols:r.cols,rows:r.rows}):p({type:"terminal_create",terminalId:c,title:u,locale:y.current,conversationId:t,cwd:h,cols:r.cols,rows:r.rows})}),R=r.onData(d=>{p({type:"terminal_input",terminalId:c,conversationId:t,data:d})});let T=null;return typeof ResizeObserver<"u"&&(T=new ResizeObserver(()=>{m.offsetWidth>0&&m.offsetHeight>0&&$()}),T.observe(m)),()=>{cancelAnimationFrame(B),R.dispose(),window.removeEventListener(M,b),T?.disconnect(),_(),r.dispose(),j.current=null}},[t,c,E,g]),l.useEffect(()=>{if(!w)return;const m=requestAnimationFrame(()=>{const r=j.current;if(r){try{r.fit.fit(),p({type:"terminal_resize",terminalId:c,conversationId:t,cols:r.term.cols,rows:r.term.rows})}catch{}r.term.focus()}});return()=>cancelAnimationFrame(m)},[w]);const{t:F}=P(),x=l.useRef(void 0);return l.useEffect(()=>{if(f===x.current||(x.current=f,f!==!1))return;const m=j.current;m&&m.term.write(`\r
|
|
4
4
|
\x1B[90m${F("exitBanner",{code:k??""})}\x1B[0m\r
|