2015-11-19 01:32:29 +08:00
|
|
|
import ko from 'ko';
|
2015-01-27 05:06:00 +08:00
|
|
|
|
2021-02-17 21:40:21 +08:00
|
|
|
export const AppAdminStore = {
|
|
|
|
weakPassword: ko.observable(false),
|
|
|
|
dataFolderAccess: ko.observable(false),
|
2017-10-02 01:54:50 +08:00
|
|
|
|
2021-02-17 21:40:21 +08:00
|
|
|
populate: function() {
|
2020-10-13 01:46:41 +08:00
|
|
|
this.weakPassword(!!rl.settings.get('WeakPassword'));
|
2020-07-22 20:54:21 +08:00
|
|
|
/*
|
2021-02-17 21:40:21 +08:00
|
|
|
rl.settings.get('WeakPassword')
|
|
|
|
&& fetch('./data/VERSION?' + Math.random()).then(() => this.dataFolderAccess(true));
|
2020-07-22 20:54:21 +08:00
|
|
|
*/
|
2017-10-02 01:54:50 +08:00
|
|
|
}
|
2021-02-17 21:40:21 +08:00
|
|
|
};
|