mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 00:23:13 +08:00
0a2b28ebe0
* 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>
48 lines
1.5 KiB
JSON
48 lines
1.5 KiB
JSON
{
|
|
"private": true,
|
|
"name": "@flarum/core",
|
|
"prettier": "@flarum/prettier-config",
|
|
"dependencies": {
|
|
"@askvortsov/rich-icu-message-formatter": "^0.1.0",
|
|
"@ultraq/icu-message-formatter": "^0.10.1",
|
|
"bootstrap": "^3.4.1",
|
|
"clsx": "^1.1.1",
|
|
"color-thief-browser": "^2.0.2",
|
|
"dayjs": "^1.10.4",
|
|
"expose-loader": "^1.0.3",
|
|
"jquery": "^3.6.0",
|
|
"jquery.hotkeys": "^0.1.0",
|
|
"mithril": "^2.0.4",
|
|
"nanoid": "^3.1.25",
|
|
"punycode": "^2.1.1",
|
|
"textarea-caret": "^3.1.0",
|
|
"throttle-debounce": "^3.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/preset-typescript": "^7.13.0",
|
|
"@flarum/prettier-config": "^1.0.0",
|
|
"@types/jquery": "^3.5.5",
|
|
"@types/mithril": "^2.0.7",
|
|
"@types/punycode": "^2.1.0",
|
|
"@types/textarea-caret": "^3.0.0",
|
|
"bundlewatch": "^0.3.2",
|
|
"cross-env": "^7.0.3",
|
|
"flarum-tsconfig": "^0.1.0-beta.16",
|
|
"flarum-webpack-config": "0.1.0-beta.16.2",
|
|
"prettier": "^2.3.0",
|
|
"typescript": "^4.2.4",
|
|
"webpack": "^4.46.0",
|
|
"webpack-cli": "^3.3.12",
|
|
"webpack-merge": "^4.2.2"
|
|
},
|
|
"scripts": {
|
|
"dev": "webpack --mode development --watch",
|
|
"build": "webpack --mode production",
|
|
"analyze": "cross-env ANALYZER=true npm run build",
|
|
"format": "prettier --write src",
|
|
"format-check": "prettier --check src",
|
|
"clean-typings": "npx rimraf dist-typings && mkdir dist-typings",
|
|
"build-typings": "npm run clean-typings && cp -r src/@types dist-typings/@types && tsc"
|
|
}
|
|
}
|