()
| 29 | } |
| 30 | |
| 31 | private initDataStore(): void { |
| 32 | const settingAdapter = new FileSync(path.join(this.appDir, 'config/setting.json')) |
| 33 | const setting = low(settingAdapter) |
| 34 | this.$setting = setting |
| 35 | |
| 36 | const postsAdapter = new FileSync(path.join(this.appDir, 'config/posts.json')) |
| 37 | const posts = low(postsAdapter) |
| 38 | this.$posts = posts |
| 39 | |
| 40 | const themeAdapter = new FileSync(path.join(this.appDir, 'config/theme.json')) |
| 41 | const theme = low(themeAdapter) |
| 42 | this.$theme = theme |
| 43 | } |
| 44 | } |