Refactor code structure in `app.js`
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 35/100
- issue の種類
- リファクタリング
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- javascript
- 領域
- frontend
調査の方向性
Start by reading app/static/js/app.js and map its high-level sections, function definitions, and repeated getElementById lookups. Compare the existing web-component pattern using this._elements, then propose a clearer structure and file split while preserving current behavior. Done means the refactoring scope is agreed and app.js is easier to navigate without changing functionality.
索引モデルが issue の本文から書いたものです。
説明
Our app.js file has grown quite a bit over time, and I think the internal code structure has become continuously harder to work with. For example:
- The high-level structure could be clearer and more expressive: in which order do we do things? Can we e.g. group things better, so that it’s clear what belongs together and what doesn’t?
- We have some redundancies, especially around looking up elements by id (
getElementById). For our web components, we usually do this look up once, and then share it via athis._elementsfield. - There are some function definitions in the first half of the file. Would we be able to split them out into one or more separate files, to make the file more concise overall?
- 主要言語
- Python
- スター
- 3.5k
- フォーク
- 291
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tiny-pilot/tinypilot のほかの issue
-
bug medium
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
tiny-pilot/tinypilot#1419 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1929 · コメント 3 件 ·
-
bug
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1899 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1896 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
tiny-pilot/tinypilot#1882 ·
tiny-pilot/tinypilot の issue をすべて見る
似ている issue
-
agent-ready documentation needs-triage
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
-
documentation
難易度 1/5 1時間未満 初心者へのやさしさ 91/100
-
workflow-status page template still says reusable workflows are "triggered only by workflow_call:" オープン
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
-
instance instance add
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
searxng/searx-instances#939 · コメント 1 件 ·
-
area-deployment area-integrations triage:bot-seen
難易度 2/5 半日 初心者へのやさしさ 86/100