`showLoading` and `showUndo` "ignore" `isHTML = true`
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 55/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- typescript
- 领域
- frontend
调研方向
从 lib/toast.ts 的第 213-223 行附近开始,检查 showLoading 和 showUndo 如何处理 text 和 isHTML。查看 styles/toast.scss 的第 23-28 行附近,然后验证 HTML 文本是否按预期渲染,同时不会破坏 toast 布局。
由索引模型根据 Issue 内容生成。
描述
The showLoading and showUndo functions somewhat "ignore" isHTML = true, because they don't simply pass the text argument to showMessage, which itself just forwards it to Toastify, but they create a new element and set its innerText property to the value of text and then pass the whole element to showMessage.
I think it would be fine to do
const loaderContent = document.createElement('div')
loaderContent[options.isHTML ? 'innerHTML' : 'innerText'] = text
The containers are flex containers, so I think it won't be a problem
If you don't want to change this, I think it would be a good idea to at least remove isHTML from the options
export function showLoading(text: string, options?: Omit<ToastOptions, 'isHTML'>): Toast { }
- 主要语言
- TypeScript
- 星标
- 19
- 派生
- 9
- 平均合并
- 1 天 5 小时
- 30 天内合并 PR
- 70
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
nextcloud-libraries/nextcloud-dialogs 的其他 Issue
-
1. to develop
难度 2/5 1-3 小时 新手友好度 65/100
nextcloud-libraries/nextcloud-dialogs#2669 · 1 条评论 ·
维护者通常 1 天内回复
-
1. to develop
难度 4/5 3-5 天 新手友好度 48/100
nextcloud-libraries/nextcloud-dialogs#2510 · 2 条评论 ·
维护者通常 1 天内回复
-
1. to develop
难度 4/5 3-5 天 新手友好度 55/100
nextcloud-libraries/nextcloud-dialogs#2491 · 3 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
-
1. to develop good first issue
难度 2/5 1-3 小时 新手友好度 55/100
nextcloud-libraries/nextcloud-dialogs#2299 ·
维护者通常 1 天内回复
-
Positioning of toast notifications可能重新可做 @skjnldsv 于 225 天前认领,目前没有进行中的 PR。 未关闭1. to develop accessibility design & UX enhancement
nextcloud-libraries/nextcloud-dialogs#2071 · 23 条评论 · 2 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
查看 nextcloud-libraries/nextcloud-dialogs 的全部 Issue
相似的 Issue
-
难度 2/5 1 小时以内 新手友好度 86/100
WilliamSmithEdward/xlide_vscode#1564 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
a2ui-project/a2ui#3809 ·
维护者通常 2 天内回复
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 62/100
esphome/device-builder-frontend#2064 ·
维护者通常 1 天内回复
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
难度 1/5 1 小时以内 新手友好度 61/100
lingdojo/kana-dojo#33465 · 1 条评论 · 5 个 reaction ·
维护者通常 1 天内回复