change to vite and enabled typescript
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import IHistory from '@/scripts/history';
|
||||
import { Wordset } from '@/scripts/wordsets';
|
||||
import { defineStore} from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useMainStore = defineStore('main', () => {
|
||||
const sets = ref({});
|
||||
const history = ref(new IHistory())
|
||||
const wordsets = ref(new Wordset())
|
||||
const isDarkMode = ref(false)
|
||||
function setDarkMode(value: boolean) {
|
||||
isDarkMode.value = value;
|
||||
}
|
||||
return {
|
||||
sets,history,wordsets,setDarkMode,isDarkMode
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user