File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import type ElectronStore from 'electron-store'
2- import type { Settings as EditorSettings } from '../../../renderer/composables/types/editor'
32
43export interface AppStore {
54 bounds : object
@@ -18,6 +17,18 @@ export interface AppStore {
1817 isAutoMigratedFromJson : boolean
1918}
2019
20+ export interface EditorSettings {
21+ fontSize : number
22+ fontFamily : string
23+ wrap : boolean
24+ tabSize : number
25+ trailingComma : 'all' | 'none' | 'es5'
26+ semi : boolean
27+ singleQuote : boolean
28+ highlightLine : boolean
29+ matchBrackets : boolean
30+ }
31+
2132export interface PreferencesStore {
2233 storagePath : string
2334 backupPath : string
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- import type { Settings } from './types/editor '
1+ import type { EditorSettings } from '~/main/store/types '
22import { store } from '@/electron'
33
44const cursorPosition = reactive ( {
55 row : 0 ,
66 column : 0 ,
77} )
88
9- const settings = reactive < Settings > ( store . preferences . get ( 'editor' ) )
9+ const settings = reactive < EditorSettings > ( store . preferences . get ( 'editor' ) )
1010
1111watch (
1212 settings ,
Original file line number Diff line number Diff line change 11{
22 "compilerOptions" : {
33 "target" : " ES2023" ,
4+ "rootDir" : " src/main" ,
45 "module" : " CommonJS" ,
56 "strict" : true ,
67 "inlineSources" : true ,
You can’t perform that action at this time.
0 commit comments