snappymail/dev/Stores/Admin/Core.js

21 lines
680 B
JavaScript
Raw Normal View History

import ko from 'ko';
2019-07-05 03:19:24 +08:00
class CoreAdminStore {
constructor() {
this.coreReal = ko.observable(true);
this.coreChannel = ko.observable('stable');
this.coreType = ko.observable('stable');
this.coreUpdatable = ko.observable(true);
this.coreAccess = ko.observable(true);
this.coreWarning = ko.observable(false);
2019-07-05 03:19:24 +08:00
this.coreChecking = ko.observable(false).extend({ throttle: 100 });
this.coreUpdating = ko.observable(false).extend({ throttle: 100 });
this.coreVersion = ko.observable('');
this.coreRemoteVersion = ko.observable('');
this.coreRemoteRelease = ko.observable('');
this.coreVersionCompare = ko.observable(-2);
}
2016-06-30 08:02:45 +08:00
}
export default new CoreAdminStore();