2022-11-07 10:13:02 +00:00
|
|
|
import { systemClient } from '../services/System';
|
|
|
|
import BaseSettings from './Settings.model';
|
2022-10-22 14:32:33 +00:00
|
|
|
|
2022-11-07 10:13:02 +00:00
|
|
|
class Settings extends BaseSettings {
|
|
|
|
constructor() {
|
|
|
|
super();
|
2022-11-09 22:10:32 +00:00
|
|
|
const fontSizeCookie = systemClient.getItem('settings_fontsize_pro');
|
2022-11-07 10:13:02 +00:00
|
|
|
this.fontSize = fontSizeCookie !== '' ? Number(fontSizeCookie) : 12;
|
|
|
|
}
|
2022-11-21 12:56:29 +00:00
|
|
|
|
2022-11-07 10:13:02 +00:00
|
|
|
public frontend: 'basic' | 'pro' = 'pro';
|
|
|
|
}
|
2022-10-22 14:32:33 +00:00
|
|
|
|
2022-11-07 10:13:02 +00:00
|
|
|
export default Settings;
|