Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

`showLoading` and `showUndo` "ignore" `isHTML = true`

オープン
#2,203 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
typescript
領域
frontend

調査の方向性

lib/toast.ts の 213~223 行付近から始めて、showLoading と showUndo が text と isHTML をどのように処理しているかを確認します。次に styles/toast.scss の 23~28 行付近を確認し、HTML テキストがトーストのレイアウトを崩さず意図したとおりにレンダリングされることを検証します。

索引モデルが 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.

https://github.com/nextcloud-libraries/nextcloud-dialogs/blob/c32717e1a0593f043a52a6b5bf9c42d427503d50/lib/toast.ts#L213-L223

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

https://github.com/nextcloud-libraries/nextcloud-dialogs/blob/c32717e1a0593f043a52a6b5bf9c42d427503d50/styles/toast.scss#L23-L28

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
フォーク
8
平均マージ
1日 21時間
マージ済み PR(30日)
46

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud-libraries/nextcloud-dialogs のほかの issue

nextcloud-libraries/nextcloud-dialogs の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。