Fixed typing of app data in status widget

This commit is contained in:
Alexander Skvortsov 2020-04-29 17:55:13 -04:00 committed by David Sevilla Martín
parent 28f2341430
commit 532e866760
2 changed files with 10 additions and 1 deletions

View File

@ -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();

View File

@ -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';