photoprism/frontend/src/routes.js
2019-05-28 02:48:02 +02:00

33 lines
1.9 KiB
JavaScript

import PhotosPage from "pages/photos.vue";
import PlacesPage from "pages/places.vue";
import PhotosEdit from "pages/photosEdit.vue";
import Albums from "pages/albums.vue";
import Albums2 from "pages/albums2.vue";
import Import2 from "pages/import2.vue";
import Import3 from "pages/import3.vue";
import Import from "pages/import.vue";
import Export from "pages/export.vue";
import Settings from "pages/settings.vue";
import Tags from "pages/tags.vue";
import Todo from "pages/todo.vue";
import Calendar from "pages/calendar.vue";
export default [
{ name: "Home", path: "/", redirect: "/photos" },
{ name: "Photos", path: "/photos", component: PhotosPage, meta: {area: "Photos"} },
{ name: "Places", path: "/places", component: PlacesPage, meta: {area: "Places"} },
{ name: "PhotosEdit", path: "/photosEdit", component: PhotosEdit, meta: {area: "Photos"} },
{ name: "Filters", path: "/filters", component: Todo, meta: {area: "Filters"} },
{ name: "Calendar", path: "/calendar", component: Calendar, meta: {area: "Calendar"} },
{ name: "Tags", path: "/tags", component: Tags, meta: {area: "Labels"} },
{ name: "Bookmarks", path: "/bookmarks", component: Todo, meta: {area: "Bookmarks"} },
{ name: "Favorites", path: "/favorites", component: Todo, meta: {area: "Favorites"} },
{ name: "Albums", path: "/albums", component: Albums, meta: {area: "Albums"} },
{ name: "Albums2", path: "/albums2", component: Albums2, meta: {area: "Albums"} },
{ name: "Import", path: "/import", component: Import, meta: {area: "Import"} },
{ name: "Import2", path: "/import2", component: Import2, meta: {area: "Import"} },
{ name: "Import3", path: "/import3", component: Import3, meta: {area: "Import"} },
{ name: "Export", path: "/export", component: Export, meta: {area: "Export"} },
{ name: "Settings", path: "/settings", component: Settings, meta: {area: "Settings"} },
{ path: "*", redirect: "/photos" },
];