@hep-code-runner/react 3.3.6 → 3.3.7
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 +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,7 @@ function App() {
|
|
|
33
33
|
| 属性 | 类型 | 默认值 | 说明 |
|
|
34
34
|
|------|------|--------|------|
|
|
35
35
|
| pistonUrl | string | '/api/piston' | Piston API 地址 |
|
|
36
|
+
| token | string | - | 认证 Token(会作为 Authorization 和 id-token Header) |
|
|
36
37
|
| language | string | 'javascript' | 当前语言 |
|
|
37
38
|
| code | string | '' | 当前代码 |
|
|
38
39
|
| theme | 'light' \| 'dark' | 'light' | 主题 |
|
|
@@ -147,6 +148,7 @@ function App() {
|
|
|
147
148
|
| onClose | () => void | - | 关闭回调 |
|
|
148
149
|
| footer | ReactNode | - | 底部自定义内容 |
|
|
149
150
|
| pistonUrl | string | '/api/piston' | Piston API 地址 |
|
|
151
|
+
| token | string | - | 认证 Token(会作为 Authorization 和 id-token Header) |
|
|
150
152
|
| language | string | 'javascript' | 当前语言 |
|
|
151
153
|
| code | string | '' | 当前代码 |
|
|
152
154
|
| theme | 'light' \| 'dark' | 'light' | 主题 |
|