Removing 'search' unused query selector
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 85/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, jekyll
調査の方向性
assets/js/current-projects.jsで、issueに記載されている2つの#searchセレクターを見つけ、セレクターリストから削除します。その後、ProjectsページとProjects-Checkページのデスクトップ表示とモバイル表示で検索をテストします。必要であれば、モバイル表示にはChrome DevToolsのデバイスモードを使用してください。両方のページの両方の表示で検索が引き続き機能すれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Prerequisite
- Be a member of Hack for LA. (There are no fees to join.) If you have not joined yet, please follow the steps on our Getting Started page and attend an onboarding session.
- Before you claim or start working on an issue, please make sure you have read our How to Contribute to Hack for LA Guide.
Overview
We need to remove query selectors for 'search' since there is no existing id for 'search' in '_includes/current-projects.html'
Action Items
-
Locate the 2 instances of 'document.querySelector('#search')' in 'assets/js/current-projects.js'
-
Make the following revisions to 'assets/js/current-projects.js'
Before:const allInputEl = Array.from(document.querySelectorAll('#search-desktop, #search-mobile, #search'));After removing
#search:const allInputEl = Array.from(document.querySelectorAll('#search-desktop, #search-mobile'));Before:
function searchCloseEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile') || document.querySelector('#search'); if (input) input.value=""; }After removing
document.querySelector('#search'):function searchCloseEventHandler(e){ e.preventDefault(); const input = document.querySelector('#search-desktop') || document.querySelector('#search-mobile'); if (input) input.value=""; } -
Test and verify that the changes still work by performing a search in both mobile and desktop views on the Projects and Projects-Check pages
Resources/Instructions
-
Tutorial on Chrome's Dev Tools to test for mobile views: https://developer.chrome.com/docs/devtools/device-mode
-
Hack for LA Projects Page: https://www.hackforla.org/projects/
-
Hack for LA Projects Check Page: https://www.hackforla.org/projects-check/
- 主要言語
- JavaScript
- スター
- 364
- フォーク
- 871
- 平均マージ
- 4日 7時間
- マージ済み PR(30日)
- 13
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
hackforla/website のほかの issue
-
good first issue P-Feature: Project Info and Page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt time sensitive
難易度 1/5 1〜3時間 初心者へのやさしさ 90/100
メンテナーはふだん 1 日以内に返信
-
Feature: Code Alerts good first issue P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
hackforla/website#8825 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Feature: Code Alerts good first issue P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
Feature: Code Alerts good first issue P-Feature: Project Info and Page role: back end/devOps role: front end size: 0.25pt
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
good first issue P-Feature: Project Info and Page P-Feature: Projects page Ready for Prioritization role: back end/devOps role: front end size: 0.25pt time sensitive
難易度 1/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
hackforla/website の issue をすべて見る
似ている issue
-
Engineering
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
techmatters/terraso-web-client#3095 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
-
Service process inherits the caller's cwd at first use, holding that folder open on Windows (EBUSY)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nextcloud/viewer#3424 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信