mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-19 06:30:10 +08:00
* feat: code tools, editor, executor CodeEditor & Preview - CodeEditor: CodeMirror 6 - Switch to CodeEditor in the settings - Support edit&save with a accurate diff&lookup strategy - Use CodeEditor for editing MCP json configuration - CodePreview: Original Shiki syntax highlighting - Implemented using a custom Shiki stream tokenizer - Remov code caching as it is incompatible with the current streaming code highlighting - Add a webworker for shiki - Other preview components - Merge MermaidPopup and Mermaid to MermaidPreview, use local mermaidjs - Show mermaid syntax error message on demand - Rename PlantUML to PlantUmlPreview - Rename SyntaxHighlighterProvider to CodeStyleProvider for clarity - Both light and dark themes are preserved for convenience CodeToolbar - Top sticky toolbar provides quick tools (left) and core tools (right) - Quick tools are hidden under the `More` button to avoid clutter, while core tools are always visible - View&edit mode - Allow switching between preview and edit modes - Add a split view Code execution - Pyodide for executing Python scripts - Add a webworker for Pyodide * fix: migrate version and lint error * refactor: use constants for defining tool specs * refactor: add user-select, fix tool specs * refactor: simplify some state changing * fix: make sure editor tools registered after the editor is ready --------- Co-authored-by: 自由的世界人 <3196812536@qq.com>
21 lines
487 B
JSON
21 lines
487 B
JSON
{
|
|
"extends": "@electron-toolkit/tsconfig/tsconfig.web.json",
|
|
"include": [
|
|
"src/renderer/src/**/*",
|
|
"src/preload/*.d.ts",
|
|
"local/src/renderer/**/*",
|
|
"packages/shared/**/*"
|
|
],
|
|
"compilerOptions": {
|
|
"composite": true,
|
|
"jsx": "react-jsx",
|
|
"baseUrl": ".",
|
|
"moduleResolution": "bundler",
|
|
"paths": {
|
|
"@renderer/*": ["src/renderer/src/*"],
|
|
"@shared/*": ["packages/shared/*"],
|
|
"@types": ["src/renderer/src/types/index.ts"]
|
|
}
|
|
}
|
|
}
|