photoprism/frontend/src/routes.js

126 lines
2.8 KiB
JavaScript
Raw Normal View History

import Photos from "pages/photos.vue";
2019-06-17 21:45:06 +02:00
import Albums from "pages/albums.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 Login from "pages/login.vue";
import Todo from "pages/todo.vue";
export default [
{
name: "home",
path: "/",
redirect: "/photos",
},
{
name: "login",
path: "/login",
component: Login,
meta: {area: "Login"},
},
{
name: "photos",
path: "/photos",
component: Photos,
meta: {area: "Photos"},
},
2019-06-17 21:45:06 +02:00
{
name: "albums",
2019-06-17 21:45:06 +02:00
path: "/albums",
component: Albums,
meta: {area: "Albums"},
},
{
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: "library",
path: "/library",
component: Library,
meta: {area: "Library", auth: true},
props: {tab: 0},
},
{
name: "library_upload",
path: "/library/upload",
component: Library,
meta: {area: "Library", auth: true},
props: {tab: 0},
},
{
name: "library_import",
path: "/library/import",
component: Library,
meta: {area: "Library", auth: true},
props: {tab: 1},
},
{
name: "library_index",
path: "/library/index",
component: Library,
meta: {area: "Library", auth: true},
props: {tab: 2},
},
{
name: "share",
path: "/share",
component: Share,
meta: {area: "Share", auth: true},
},
{
name: "settings",
path: "/settings",
component: Settings,
meta: {area: "Settings", auth: true},
props: {tab: 0},
},
{
name: "settings_logs",
path: "/settings/logs",
component: Settings,
meta: {area: "Settings", auth: true},
props: {tab: 1},
},
{
path: "*", redirect: "/photos",
},
];