routes.js 1010 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /* eslint-env node */
  2. import HomePage from "../pages/home.vue";
  3. import RadioPage from "../pages/Radio.vue";
  4. import RadioLivePage from "../pages/RadioLive.vue";
  5. import RadioShowsPage from "../pages/RadioShows.vue";
  6. import ShowPage from "../pages/Show.vue";
  7. import NotFoundPage from "../pages/404.vue";
  8. var routes = [
  9. {
  10. path: process.env.NODE_ENV === "development" ? "/" : "/plaid/",
  11. master: true,
  12. component: HomePage,
  13. detailRoutes: [
  14. {
  15. name: "Radio",
  16. path: "/radio/:radioName",
  17. component: RadioPage,
  18. },
  19. {
  20. name: "RadioLive",
  21. path: "/radio/:radioName/live",
  22. component: RadioLivePage,
  23. },
  24. {
  25. name: "RadioShows",
  26. path: "/radio/:radioName/shows",
  27. component: RadioShowsPage,
  28. },
  29. {
  30. name: "ShowPage",
  31. path: "/radio/:radioId/shows/:showId",
  32. component: ShowPage,
  33. },
  34. ],
  35. },
  36. {
  37. path: "(.*)",
  38. component: NotFoundPage,
  39. },
  40. ];
  41. export default routes;