UnisKB/ui/src/stores/index.ts

27 lines
825 B
TypeScript
Raw Normal View History

2023-10-19 10:18:45 +00:00
import { createPinia } from 'pinia'
const store = createPinia()
export { store }
2023-11-24 11:02:52 +00:00
import useCommonStore from './modules/common'
2023-10-19 10:18:45 +00:00
import useUserStore from './modules/user'
2023-11-02 01:56:14 +00:00
import useDatasetStore from './modules/dataset'
2023-11-14 10:12:55 +00:00
import useParagraphStore from './modules/paragraph'
2023-11-23 06:30:28 +00:00
import useModelStore from './modules/model'
2023-11-24 11:02:52 +00:00
import useApplicationStore from './modules/application'
2023-12-07 11:28:38 +00:00
import useDocumentStore from './modules/document'
import useProblemStore from './modules/problem'
import useLogStore from './modules/log'
2023-09-15 09:40:35 +00:00
2023-10-19 10:18:45 +00:00
const useStore = () => ({
2023-11-24 11:02:52 +00:00
common: useCommonStore(),
2023-11-02 01:56:14 +00:00
user: useUserStore(),
2023-11-14 10:12:55 +00:00
dataset: useDatasetStore(),
2023-11-24 11:02:52 +00:00
paragraph: useParagraphStore(),
model: useModelStore(),
2023-12-07 11:28:38 +00:00
application: useApplicationStore(),
document: useDocumentStore(),
problem: useProblemStore(),
log: useLogStore()
2023-10-19 10:18:45 +00:00
})
2023-09-15 09:40:35 +00:00
2023-10-19 10:18:45 +00:00
export default useStore