mirror of
https://github.com/the-djmaze/snappymail.git
synced 2024-11-11 01:23:43 +08:00
20 lines
680 B
JavaScript
20 lines
680 B
JavaScript
import ko from 'ko';
|
|
|
|
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);
|
|
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);
|
|
}
|
|
}
|
|
|
|
export default new CoreAdminStore();
|