2019-06-09 05:20:23 +02:00
|
|
|
import Photos from "pages/photos.vue";
|
2019-06-17 21:45:06 +02:00
|
|
|
import Albums from "pages/albums.vue";
|
2019-12-05 03:58:54 +01:00
|
|
|
import AlbumPhotos from "pages/album/photos.vue";
|
2019-06-09 05:20:23 +02:00
|
|
|
import Places from "pages/places.vue";
|
2019-05-28 03:49:44 +02:00
|
|
|
import Labels from "pages/labels.vue";
|
2019-06-09 04:37:02 +02:00
|
|
|
import Events from "pages/events.vue";
|
|
|
|
import People from "pages/people.vue";
|
2019-06-14 21:16:59 +02:00
|
|
|
import Library from "pages/library.vue";
|
2019-06-09 05:20:23 +02:00
|
|
|
import Share from "pages/share.vue";
|
|
|
|
import Settings from "pages/settings.vue";
|
2019-11-07 18:06:50 +01:00
|
|
|
import Login from "pages/login.vue";
|
2019-06-09 05:20:23 +02:00
|
|
|
import Todo from "pages/todo.vue";
|
2018-07-27 17:31:39 +02:00
|
|
|
|
2019-12-12 10:07:08 +01:00
|
|
|
const c = window.clientConfig;
|
|
|
|
|
2018-07-27 17:31:39 +02:00
|
|
|
export default [
|
2019-05-29 01:51:53 +02:00
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "home",
|
2019-05-29 01:51:53 +02:00
|
|
|
path: "/",
|
|
|
|
redirect: "/photos",
|
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "login",
|
|
|
|
path: "/login",
|
|
|
|
component: Login,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: `${c.name} Login`},
|
2019-11-07 18:06:50 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "photos",
|
2019-05-29 01:51:53 +02:00
|
|
|
path: "/photos",
|
2019-06-09 05:20:23 +02:00
|
|
|
component: Photos,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: c.subtitle},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
2019-06-17 21:45:06 +02:00
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "albums",
|
2019-06-17 21:45:06 +02:00
|
|
|
path: "/albums",
|
|
|
|
component: Albums,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: "Photo Albums"},
|
2019-06-17 21:45:06 +02:00
|
|
|
},
|
2019-12-03 23:17:55 +01:00
|
|
|
{
|
2019-12-05 03:58:54 +01:00
|
|
|
name: "album",
|
2019-12-04 15:14:04 +01:00
|
|
|
path: "/albums/:uuid/:slug",
|
2019-12-05 03:58:54 +01:00
|
|
|
component: AlbumPhotos,
|
2019-12-05 14:11:45 +01:00
|
|
|
meta: {title: ""},
|
2019-12-03 23:17:55 +01:00
|
|
|
},
|
2019-05-29 01:51:53 +02:00
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "favorites",
|
2019-05-29 01:51:53 +02:00
|
|
|
path: "/favorites",
|
2019-06-09 05:20:23 +02:00
|
|
|
component: Photos,
|
2019-12-05 14:11:45 +01:00
|
|
|
meta: {title: "Favorites"},
|
2019-05-29 01:51:53 +02:00
|
|
|
props: {staticFilter: {favorites: true}},
|
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "places",
|
2019-05-29 01:51:53 +02:00
|
|
|
path: "/places",
|
2019-06-09 05:20:23 +02:00
|
|
|
component: Places,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: "Where you've been"},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "labels",
|
2019-06-09 04:37:02 +02:00
|
|
|
path: "/labels",
|
|
|
|
component: Labels,
|
2019-12-05 14:11:45 +01:00
|
|
|
meta: {title: "Labels"},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "events",
|
2019-06-09 04:37:02 +02:00
|
|
|
path: "/events",
|
|
|
|
component: Events,
|
2019-12-05 14:11:45 +01:00
|
|
|
meta: {title: "Events"},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "people",
|
2019-06-09 04:37:02 +02:00
|
|
|
path: "/people",
|
|
|
|
component: People,
|
2019-12-05 14:11:45 +01:00
|
|
|
meta: {title: "People"},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "filters",
|
2019-06-09 04:37:02 +02:00
|
|
|
path: "/filters",
|
2019-05-29 01:51:53 +02:00
|
|
|
component: Todo,
|
2019-12-05 14:11:45 +01:00
|
|
|
meta: {title: "Filters"},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
2019-12-12 10:07:08 +01:00
|
|
|
{
|
|
|
|
name: "library_logs",
|
|
|
|
path: "/library/logs",
|
|
|
|
component: Library,
|
|
|
|
meta: {title: `${c.name} Server`, auth: true},
|
|
|
|
props: {tab: 3},
|
|
|
|
},
|
2019-12-02 02:43:41 +01:00
|
|
|
{
|
|
|
|
name: "library_upload",
|
|
|
|
path: "/library/upload",
|
|
|
|
component: Library,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: "Photo Upload", auth: true},
|
2019-12-09 18:10:20 +01:00
|
|
|
props: {tab: 2},
|
2019-12-02 02:43:41 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
name: "library_import",
|
|
|
|
path: "/library/import",
|
|
|
|
component: Library,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: "Import Photos", auth: true},
|
2019-12-02 02:43:41 +01:00
|
|
|
props: {tab: 1},
|
|
|
|
},
|
|
|
|
{
|
2019-12-09 18:10:20 +01:00
|
|
|
name: "library",
|
|
|
|
path: "/library",
|
2019-12-02 02:43:41 +01:00
|
|
|
component: Library,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: "Photo Library", auth: true},
|
2019-12-09 18:10:20 +01:00
|
|
|
props: {tab: 0},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "share",
|
2019-06-09 05:20:23 +02:00
|
|
|
path: "/share",
|
|
|
|
component: Share,
|
2019-12-05 14:11:45 +01:00
|
|
|
meta: {title: "Share", auth: true},
|
2019-05-29 01:51:53 +02:00
|
|
|
},
|
|
|
|
{
|
2019-11-07 18:06:50 +01:00
|
|
|
name: "settings",
|
2019-05-29 01:51:53 +02:00
|
|
|
path: "/settings",
|
2019-06-09 05:20:23 +02:00
|
|
|
component: Settings,
|
2019-12-12 10:07:08 +01:00
|
|
|
meta: {title: "Application Settings", auth: true},
|
2019-12-02 02:43:41 +01:00
|
|
|
props: {tab: 0},
|
|
|
|
},
|
2019-05-29 01:51:53 +02:00
|
|
|
{
|
|
|
|
path: "*", redirect: "/photos",
|
|
|
|
},
|
2018-07-27 17:31:39 +02:00
|
|
|
];
|