framework/js
David Wheatley 0a2b28ebe0
Rewrite 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 c900cb3f6d.

* Restore TSDoc on HTMLInputTypes type

* Fix typo

Co-authored-by: Sami Mazouz <sychocouldy@gmail.com>
2021-08-23 01:59:50 +01:00
..
dist Bundled output for commit 66aaa862fd 2021-08-22 22:48:43 +00:00
dist-typings Bundled output for commit 3cf19dd2ea 2021-08-22 19:40:36 +00:00
src Rewrite AdminPage abstract component into Typescript (#2996) 2021-08-23 01:59:50 +01:00
.bundlewatch.config.json Add bundlewatch to track bundle size changes in PRs (#2695) 2021-03-17 14:54:42 +00:00
admin.js Drop JS copyright blocks 2021-05-15 20:11:38 -04:00
forum.js Drop JS copyright blocks 2021-05-15 20:11:38 -04:00
package-lock.json Rewrite AdminPage abstract component into Typescript (#2996) 2021-08-23 01:59:50 +01:00
package.json Rewrite AdminPage abstract component into Typescript (#2996) 2021-08-23 01:59:50 +01:00
tsconfig.json Update core to use new Webpack config, flarum-tsconfig, and build action (#2856) 2021-05-13 00:28:17 +01:00
webpack.config.js Update core to use new Webpack config, flarum-tsconfig, and build action (#2856) 2021-05-13 00:28:17 +01:00