photoprism/frontend/src/routes.js

88 lines
1.9 KiB
JavaScript
Raw Normal View History

import Photos from "pages/photos.vue";
import Places from "pages/places.vue";
2019-05-28 03:49:44 +02:00
import Labels from "pages/labels.vue";
import Events from "pages/events.vue";
import People from "pages/people.vue";
import Library from "pages/library.vue";
import Share from "pages/share.vue";
import Settings from "pages/settings.vue";
import Todo from "pages/todo.vue";
export default [
{
name: "Home",
path: "/",
redirect: "/photos",
},
{
name: "Photos",
path: "/photos",
component: Photos,
meta: {area: "Photos"},
},
{
name: "Favorites",
path: "/favorites",
component: Photos,
meta: {area: "Favorites"},
props: {staticFilter: {favorites: true}},
},
{
name: "Places",
path: "/places",
component: Places,
meta: {area: "Places"},
},
{
name: "Labels",
path: "/labels",
component: Labels,
meta: {area: "Labels"},
},
{
name: "Events",
path: "/events",
component: Events,
meta: {area: "Events"},
},
{
name: "People",
path: "/people",
component: People,
meta: {area: "People"},
},
{
name: "Filters",
path: "/filters",
component: Todo,
meta: {area: "Filters"},
},
{
name: "Albums",
path: "/albums",
component: Todo,
meta: {area: "Albums"},
},
{
name: "Library",
path: "/library",
component: Library,
meta: {area: "Library"},
},
{
name: "Share",
path: "/share",
component: Share,
meta: {area: "Share"},
},
{
name: "Settings",
path: "/settings",
component: Settings,
meta: {area: "Settings"},
},
{
path: "*", redirect: "/photos",
},
];