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

FilePicker: add an option to specify also the file name

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

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

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

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
55/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
typescript
領域
frontend

調査の方向性

FilePicker Vueコンポーネントとそのbuttonsコールバックを特定し、allowPickDirectoryが現在どのようにFolder項目を渡しているかを確認します。fileNameオプションが指定されていない場合の既存の動作を確認し、そのコールバックを壊さずに新しいファイル名の値を公開する方法を決定します。オプションの編集可能なファイル名入力とコールバックの動作が仕様として定義され、コンポーネントの既存のテストでカバーされれば完了です。

索引モデルが issue の本文から書いたものです。

説明

FilePicker misses an option to replicate a "Save As" functionality, in which the user can specify not only a path but also a (new) file name.

Probably this can be done with a new prop for the Vue component, fileName. If it is false (the default), just do nothing more than now. If it is a string, display a new editable text input field inited with the specified string.

It is debatable now to pass this new information to the buttons callback. Existing implementations with allowPickDirectory = true expect just a Folder item, and of course this cannot be broken; perhaps the callback can be called as callback(nodes, filename) (using the value of the new text input) when fileName != false.

主要言語
TypeScript
スター
19
フォーク
8
平均マージ
1日 5時間
マージ済み PR(30日)
70

環境構築

はじめの一歩

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

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

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

似ている issue

TypeScript の issue をもっと見る

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

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