mirror of
https://github.com/flarum/framework.git
synced 2024-11-29 12:43:52 +08:00
Fixed typing of app data in status widget
This commit is contained in:
parent
28f2341430
commit
532e866760
|
@ -1,10 +1,15 @@
|
||||||
import HeaderPrimary from './components/HeaderPrimary';
|
import HeaderPrimary from './components/HeaderPrimary';
|
||||||
import HeaderSecondary from './components/HeaderSecondary';
|
import HeaderSecondary from './components/HeaderSecondary';
|
||||||
import routes from './routes';
|
import routes from './routes';
|
||||||
import Application from '../common/Application';
|
import Application, {ApplicationData} from '../common/Application';
|
||||||
import Navigation from '../common/components/Navigation';
|
import Navigation from '../common/components/Navigation';
|
||||||
import AdminNav from './components/AdminNav';
|
import AdminNav from './components/AdminNav';
|
||||||
|
|
||||||
|
export type AdminData = ApplicationData & {
|
||||||
|
phpVersion: string;
|
||||||
|
mysqlVersion: string;
|
||||||
|
};
|
||||||
|
|
||||||
export default class Admin extends Application {
|
export default class Admin extends Application {
|
||||||
extensionSettings = {};
|
extensionSettings = {};
|
||||||
|
|
||||||
|
@ -17,6 +22,8 @@ export default class Admin extends Application {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
data!: AdminData;
|
||||||
|
|
||||||
constructor() {
|
constructor() {
|
||||||
super();
|
super();
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
import app from '../app';
|
||||||
|
|
||||||
import DashboardWidget from './DashboardWidget';
|
import DashboardWidget from './DashboardWidget';
|
||||||
import listItems from '../../common/helpers/listItems';
|
import listItems from '../../common/helpers/listItems';
|
||||||
import ItemList from '../../common/utils/ItemList';
|
import ItemList from '../../common/utils/ItemList';
|
||||||
|
|
Loading…
Reference in New Issue
Block a user