2016-07-16 05:29:42 +08:00
|
|
|
import ko from 'ko';
|
2021-03-10 18:44:48 +08:00
|
|
|
import { Settings } from 'Common/Globals';
|
2021-10-21 21:28:56 +08:00
|
|
|
import Remote from 'Remote/Admin/Fetch';
|
2016-06-30 08:02:45 +08:00
|
|
|
|
2021-09-23 02:17:44 +08:00
|
|
|
export class AboutAdminSettings /*extends AbstractViewSettings*/ {
|
2016-07-16 05:29:42 +08:00
|
|
|
constructor() {
|
2021-03-10 18:44:48 +08:00
|
|
|
this.version = ko.observable(Settings.app('version'));
|
2021-10-21 21:28:56 +08:00
|
|
|
this.phpextensions = ko.observableArray();
|
2016-06-30 08:02:45 +08:00
|
|
|
}
|
2021-10-21 21:28:56 +08:00
|
|
|
|
|
|
|
onBuild() {
|
2021-12-03 06:15:24 +08:00
|
|
|
Remote.request('AdminPHPExtensions', (iError, data) => iError || this.phpextensions(data.Result));
|
2021-10-21 21:28:56 +08:00
|
|
|
}
|
|
|
|
|
2016-07-16 05:29:42 +08:00
|
|
|
}
|