Split dailyShare.js and document the shared exported functions with JSDoc
dailyShare.js held fillTemplate and formatCountdown, used across the whole TCG, under a Daily Card name. They now live in textFormat.js at the root, and the Daily Card helpers in daily/dailyFormat.js. 173 exported functions that other files call now explain what they return and how they treat missing values: the server game rules, the toolbox storage chain, the shared hooks and utilities, and the TCG display helpers. website/AGENTS.md asks the same of new shared functions. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
166790245f
commit
aa8bb1ebaa
71 changed files with 339 additions and 57 deletions
|
|
@ -32,8 +32,8 @@ quête de la Guilde et le rendu des cartes ont leur sous-dossier.
|
|||
| racine : `CardsPage`, `cardsApi.js`, `cardCache.js`, `cardsReserve.js`, `useCardsConfig.js`, `CardsDashboard` | Page, appels au serveur, cache, configuration, cadre des tableaux de bord |
|
||||
| racine : `CardsHomePanel`, `DailyTip`, `PackPanel`, `OpeningReserve`, `CollectionPanel`, `CardDetailModal`, `ShopPanel`, `TransfersPanel`, `TransferComposer`, `HistoryPanel`, `AccountPanel`, `PrivacyNotice` | Sections du joueur hors Guilde (`DailyTip` est l'« Astuce du jour » de l'accueil, pas la Carte du jour) |
|
||||
| racine : `GuildPanel`, `guildQuests.js` | Hall de la Guilde et liste des quêtes |
|
||||
| racine : `dailyShare.js`, `stardustFormat.js`, `rarityWords.js`, `rewardText.js`, `collectionState.js`, `dropRates.js`, `Currency.jsx` | Règles d'affichage partagées. `dailyShare.js` contient `fillTemplate` et `formatCountdown`, utilisés partout malgré son nom |
|
||||
| `daily/` | Carte du jour |
|
||||
| racine : `textFormat.js`, `stardustFormat.js`, `rarityWords.js`, `rewardText.js`, `collectionState.js`, `dropRates.js`, `Currency.jsx` | Règles d'affichage partagées. `textFormat.js` contient `fillTemplate` (remplissage des textes de `site.json`) et `formatCountdown` |
|
||||
| `daily/` | Carte du jour (`dailyFormat.js` : recherche par nom, verdict d'un essai, texte à partager) |
|
||||
| `expeditions/` | Expéditions, amélioration des cartes (`CardPlan`, `AwakeningPicker`), `expeditionFormat.js` |
|
||||
| `team/` | Équipe du jour et Course des courants (`Race*`, `raceRun.js`) |
|
||||
| `mirror/` | Miroir brisé |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue