cleanup: delete orphaned xmodule/js/src/html/display.js and imageModal.js
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 82/100
- Issue 类型
- 重构
- 描述清晰度
- 描述清楚
- 活跃度
- 冷清
- 技术栈
- javascript, webpack
- 领域
- build-system, frontend
调研方向
等待 PR #38746 和 #38748 合并后,再检查 xmodule/js/src/html/display.js、xmodule/js/src/html/imageModal.js 和 webpack.common.config.js。确认没有 webpack entry 引用了这些文件或 xmodule/js/common_static/js/vendor/draggabilly.js,删除这两个孤立文件;如果未使用,则移除 draggabilly.js 的 imports-loader rule。
由索引模型根据 Issue 内容生成。
描述
Context
As part of the Slash-n-Burn Built-In XBlocks epic:
- PR #38746 removes the Annotatable block, which deletes the webpack entry
AnnotatableBlockDisplay— the entry that previously includedxmodule/js/src/html/display.jsalongside the annotatable display JS. - PR #38748 removes the HTML block, which deletes the webpack entry
HtmlBlockDisplay— the other entry that includedxmodule/js/src/html/display.jsandxmodule/js/src/html/imageModal.js.
After both PRs merge, neither of these files is referenced by any webpack entry:
xmodule/js/src/html/display.jsxmodule/js/src/html/imageModal.js
They cannot be deleted in PR #38748 before PR #38746 merges (they are still referenced by AnnotatableBlockDisplay in webpack.builtinblocks.config.js on master), so this follow-up issue tracks the cleanup.
Work to do
Once both PR #38746 and PR #38748 are merged into master:
- Delete
xmodule/js/src/html/display.js - Delete
xmodule/js/src/html/imageModal.js - Remove the
draggabilly.jsimports-loader rule fromwebpack.common.config.js(line ~317) if no other entry referencesxmodule/js/common_static/js/vendor/draggabilly.js
This is a small standalone PR — should take ~5 minutes.
- 主要语言
- Python
- 星标
- 8.2k
- 派生
- 4.4k
- 平均合并
- 2 天 10 小时
- 30 天内合并 PR
- 40
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
openedx/openedx-platform 的其他 Issue
-
Discussion API: missing thread returns 500 (ForumV2RequestError not mapped to ThreadNotFoundError)可能重新可做 @mbhavu2007-lang 于 16 天前认领,目前没有进行中的 PR。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
openedx/openedx-platform#39225 · 1 条评论 ·
维护者通常 1 天内回复
-
v3 notification preferences: PUT with email_cadence but no notification_channel raises KeyError (500)可能重新可做 关联的 PR 已关闭且未合并。 未关闭bug
难度 2/5 1-3 小时 新手友好度 66/100
openedx/openedx-platform#39221 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 86/100
openedx/openedx-platform#39169 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
openedx/openedx-platform#39084 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
openedx/openedx-platform#38544 ·
维护者通常 1 天内回复
查看 openedx/openedx-platform 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
can4hou6joeng4/boss-agent-cli#1487 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
-
难度 2/5 1-3 小时 新手友好度 76/100
btclib-org/btclib-wallet#1045 ·
维护者通常 1 天内回复
-
area-templates triage:bot-seen triage:needs-human
难度 2/5 1-3 小时 新手友好度 75/100
microsoft/aspire#22356 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100