-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: 优化 repl #347
Merged
docs: 优化 repl #347
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,8 +64,8 @@ | |
"@types/jest": "^27.4.1", | ||
"@vitejs/plugin-vue-jsx": "^1.3.0", | ||
"@vue/babel-plugin-jsx": "^1.1.1", | ||
"@vue/compiler-sfc": "^3.2.45", | ||
"@vue/repl": "^1.0.0", | ||
"@vue/compiler-sfc": "^3.3.4", | ||
"@vue/repl": "^2.5.5", | ||
"@vue/test-utils": "2.0.0-rc.17", | ||
"@vue/vue3-jest": "27.0.0-alpha.4", | ||
"@webank/eslint-config-ts": "^1.1.2", | ||
|
@@ -110,7 +110,7 @@ | |
"ts-morph": "^13.0.2", | ||
"typescript": "^4.9.5", | ||
"vitepress": "0.21.4", | ||
"vue": "^3.2.45" | ||
"vue": "^3.3.4" | ||
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.16.3", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 这个代码补丁主要是更新了一些依赖版本。下面是我对这个补丁的代码审查:
改动看起来比较小,主要是更新了一些依赖的版本。根据这个补丁代码,没有明显的错误风险。但是请确保你的项目中其他部分与这些更新的依赖兼容,并且测试覆盖率足够,以确保这些更新不会引入新的问题。 |
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这段代码主要是一个Vue项目中的补丁,对
Repl
组件和相关变量进行了一些修改和调整。以下是我对代码的简要审查:v-if
条件判断,只有在props.codeName
存在时才会渲染该组件。CodeMirror
组件,并将其作为Repl
组件的属性传递。mainFile
和demoFile
),添加了"src/"前缀,以与实际目录结构匹配。defaultFiles
对象,用于设置默认的文件内容和导入映射信息。resolveSFCExample
函数,将特定的示例文件内容更新到defaultFiles
对象中。可能的问题和改进建议:
Repl
、store
以及其他自定义组件和方法的信息,以便进行更准确和全面的代码审查。请记住,这仅是对代码的初步审查,具体的问题和改进取决于实际运行环境和所需功能。如有需要,请提供更多信息以便更详细地分析代码。