index.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* eslint-disable import/no-cycle */
  2. import { createStore } from "vuex";
  3. import websockets from "./modules/websockets";
  4. import user from "./modules/user";
  5. import settings from "./modules/settings";
  6. import modalVisibility from "./modules/modalVisibility";
  7. import station from "./modules/station";
  8. import admin from "./modules/admin";
  9. import longJobs from "./modules/longJobs";
  10. const emptyModule = {
  11. namespaced: true
  12. };
  13. export default createStore({
  14. modules: {
  15. websockets,
  16. user,
  17. settings,
  18. station,
  19. admin,
  20. modalVisibility,
  21. modals: {
  22. namespaced: true,
  23. modules: {
  24. editSong: emptyModule,
  25. editSongs: emptyModule,
  26. importAlbum: emptyModule,
  27. editPlaylist: emptyModule,
  28. manageStation: emptyModule,
  29. editUser: emptyModule,
  30. whatIsNew: emptyModule,
  31. createStation: emptyModule,
  32. editNews: emptyModule,
  33. viewApiRequest: emptyModule,
  34. viewPunishment: emptyModule,
  35. report: emptyModule,
  36. viewReport: emptyModule,
  37. confirm: emptyModule,
  38. bulkActions: emptyModule,
  39. viewYoutubeVideo: emptyModule
  40. }
  41. },
  42. longJobs
  43. },
  44. strict: false
  45. });