mirror of
https://github.com/flarum/framework.git
synced 2025-02-21 11:45:57 +08:00

AdminPage
abstract component into Typescript (#2996)
* Rewrite AdminPage.js into Typescript * Export more interfaces and types * Use Stream type * Update js/src/admin/components/AdminPage.tsx Co-authored-by: Sami Mazouz <sychocouldy@gmail.com> * Move `HTMLInputTypes` type to global declarations * Add missing app import * Export options interface * Remove unused method * Add random element ID generator * Add attrs for Page component Full rewrite needed later * Provide correct attrs * Add missing a11y attributes for help text and labels * Update TSDoc comment * Allow Children to be passed for label/help text * Extract setting types to arrays * Make Page class abstract; fix incorrect Component generic call * Mark AdminPage as abstract * Mark `content` as abstract * Revert "Move `HTMLInputTypes` type to global declarations" This reverts commit c900cb3f6d50c7e315aeb9a97ec966c5fe2134d1. * Restore TSDoc on HTMLInputTypes type * Fix typo Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
Description
Simple forum software for building great communities.
199 MiB
Languages
PHP
60.7%
TypeScript
26%
JavaScript
7.9%
Less
4.4%
Blade
0.8%
Other
0.2%