index.ts 671 B

123456789101112131415161718192021222324252627282930
  1. import { ref } from 'vue'
  2. import { initialModels } from './model'
  3. import { initialTaggings } from './tagging'
  4. import { initialTaggingStyles } from './tagging-style'
  5. import { initialGuides } from './guide'
  6. export const loaded = ref(false)
  7. export const error = ref(false)
  8. export const initialStore = async () => {
  9. await Promise.all([
  10. initialModels(),
  11. initialTaggingStyles(),
  12. initialTaggings(),
  13. initialGuides()
  14. ])
  15. try {
  16. loaded.value = true
  17. } catch {
  18. error.value = true
  19. }
  20. }
  21. export * from './sys'
  22. export * from './model'
  23. export * from './tagging'
  24. export * from './tagging-style'
  25. export * from './guide'
  26. export * from './tagging-positions'