2015-11-19 01:32:29 +08:00
|
|
|
import ko from 'ko';
|
2015-01-27 05:06:00 +08:00
|
|
|
|
2020-10-13 01:46:41 +08:00
|
|
|
class AppAdminStore {
|
2016-07-16 05:29:42 +08:00
|
|
|
constructor() {
|
2015-01-27 05:06:00 +08:00
|
|
|
this.weakPassword = ko.observable(false);
|
2017-10-02 01:54:50 +08:00
|
|
|
|
|
|
|
this.dataFolderAccess = ko.observable(false);
|
2015-01-27 05:06:00 +08:00
|
|
|
}
|
|
|
|
|
2015-11-19 01:32:29 +08:00
|
|
|
populate() {
|
2020-10-13 01:46:41 +08:00
|
|
|
this.weakPassword(!!rl.settings.get('WeakPassword'));
|
2020-07-22 20:54:21 +08:00
|
|
|
/*
|
2017-10-02 01:54:50 +08:00
|
|
|
if (settingsGet('Auth')) {
|
2020-08-12 06:25:36 +08:00
|
|
|
fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
|
2017-10-02 01:54:50 +08:00
|
|
|
}
|
2020-07-22 20:54:21 +08:00
|
|
|
*/
|
2017-10-02 01:54:50 +08:00
|
|
|
}
|
2015-11-19 01:32:29 +08:00
|
|
|
}
|
2015-01-27 05:06:00 +08:00
|
|
|
|
2016-09-13 04:50:21 +08:00
|
|
|
export default new AppAdminStore();
|