Remove duplicate helpers and unused exports in shared/ and the hub
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 70/100
- issue の種類
- リファクタリング
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript, vite
調査の方向性
Start with the listed duplicate definitions in src/hub/main.ts, src/hub/trophies-panel.ts, shared/ui.ts, shared/palette.ts, shared/storage.ts, shared/chrome.ts, src/hub/navigation.ts, shared/controls.ts, shared/phaser-config.ts, and scripts/new-game.mjs. Check each usage before consolidating helpers, removing exports, or correcting the drawGrid comment. Run npm run typecheck and npm run build; done when both pass and behavior is unchanged.
索引モデルが issue の本文から書いたものです。
説明
Summary
A checklist of small duplicates and dead surface, each verified by searching the repo.
Where
-
escapeHtmlis defined identically insrc/hub/main.ts:106-108andsrc/hub/trophies-panel.ts:8-10 -
hex()inshared/ui.ts:20-22andcssColor()inshared/palette.ts:15-17have the same body - The
gh-arcade:storage prefix is a private constant inshared/storage.ts:2and a retyped literal inshared/chrome.ts:68 - The
/GH-Arcade/base path is a constant invite.config.ts:7and a literal inscripts/new-game.mjs:44 - Gamepad button indices and the stick threshold are repeated in
src/hub/navigation.ts:76-87andshared/controls.ts -
createArcadeGame(shared/phaser-config.ts:33) andDEFAULT_BINDINGS(shared/controls.ts:28) are exported but used only in their own file -
drawGrid(shared/ui.ts:61-62) is documented as used by every game but is called by one menu and the template
Suggested fix
Keep one copy of each helper, export the storage prefix, drop the unused exports and correct the comment.
Acceptance criteria
-
npm run typecheckpasses and behaviour is unchanged
Getting started
- Relevant files:
shared/ui.ts,shared/palette.ts,shared/storage.ts,shared/chrome.ts,src/hub/main.ts,src/hub/trophies-panel.ts - Run locally:
npm install, thennpm run dev - Checks:
npm run typecheckandnpm run build(there is no test suite yet) - Related docs:
README.md
Filed by repo-audit/full-audit at b001f5d. Severity: low. Effort: S. audit-key: tech-debt|shared/ui.ts|hex
- 主要言語
- TypeScript
- スター
- 3
- フォーク
- 3
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TMHSDigital/GH-Arcade のほかの issue
-
enhancement good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
TMHSDigital/GH-Arcade#50 ·
-
enhancement good first issue severity: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
TMHSDigital/GH-Arcade#47 ·
-
documentation good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TMHSDigital/GH-Arcade#34 ·
-
documentation good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
TMHSDigital/GH-Arcade#33 ·
-
dependencies good first issue severity: low
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
TMHSDigital/GH-Arcade#27 ·
TMHSDigital/GH-Arcade の issue をすべて見る
似ている issue
-
automated-triage type/bug type/ci
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
📦 expo-router Android contributor: external needs review sdk-58 severity: medium
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
Translate the READMEオープンdocumentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
asasemahmed/openboard#68 ·
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
Document PowerShell shell semantics and read-only Bash deduplication in Built-in Tools referenceオープンdocumentation
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100