Improve Script Editor resource browsing and previews (UI/UX improvement) - #1758
Merged
CodFrm merged 2 commits intoSep 28, 2026
Merged
Conversation
Collaborator
Author
Member
|
看起来还可以 代码/文本/json可以用monaco,体验好点 |
Collaborator
Author
主要想简单点 你要复杂点也可以。你再调整吧 |
Member
只读,不然搜索起来还是挺麻烦的,纯文本阅读也不友好 |
按 MIME 类型(不够具体时按扩展名)选择语法高亮语言;构建未打包 CSS/HTML worker, 在 registerEditor 中关闭这两类语言服务,避免 editor.worker 加载外部模块失败抛错,保留 Monarch 高亮。
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.




Checklist / 检查清单
N/A — No issue was supplied for this change.
Description / 描述
@resourcekeeps its declared name;@requireand@require-cssshow a basename derived from the source URL, with the full URL visible and searchable.Screenshots / 截图
Validation
pnpm run typecheck,pnpm run check:i18n, andpnpm run lintpassed.pnpm run buildcompleted with the existing bundle-size and Monaco dynamic-require warnings.pnpm run test:e2ewas not run as explicitly requested.