From 42105af46681d81959a5d5a9a16ec9e98463a92e Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 30 Jan 2020 21:24:15 +0100 Subject: viewer: new breadcrumb. navigation buttons. and styling improvements --- viewer/src/plugins/fontawesome.ts | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'viewer/src/plugins') diff --git a/viewer/src/plugins/fontawesome.ts b/viewer/src/plugins/fontawesome.ts index bb77c01..c17d4a1 100644 --- a/viewer/src/plugins/fontawesome.ts +++ b/viewer/src/plugins/fontawesome.ts @@ -28,6 +28,10 @@ import { faPlus, faMinus, faImage, + faHome, + faArrowLeft, + faFilter, + faAngleRight, } from "@fortawesome/free-solid-svg-icons"; library.add( @@ -37,6 +41,10 @@ library.add( faPlus, faMinus, faImage, + faHome, + faArrowLeft, + faFilter, + faAngleRight, ); Vue.component("fa-icon", FontAwesomeIcon); -- cgit v1.2.3 From 17b1598c5a5a375e6eaa0763767368c05ba0f56e Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Thu, 30 Jan 2020 22:58:27 +0100 Subject: viewer: Improved the proposition layout --- viewer/src/plugins/fontawesome.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/plugins') diff --git a/viewer/src/plugins/fontawesome.ts b/viewer/src/plugins/fontawesome.ts index c17d4a1..bf2ff5f 100644 --- a/viewer/src/plugins/fontawesome.ts +++ b/viewer/src/plugins/fontawesome.ts @@ -30,7 +30,7 @@ import { faImage, faHome, faArrowLeft, - faFilter, + faTags, faAngleRight, } from "@fortawesome/free-solid-svg-icons"; @@ -43,7 +43,7 @@ library.add( faImage, faHome, faArrowLeft, - faFilter, + faTags, faAngleRight, ); -- cgit v1.2.3 From 293c2803794a5cc4f9a045d48ff28ae99beaa030 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 31 Jan 2020 00:37:55 +0100 Subject: viewer: moved router.ts to the plugins directory for simplicity --- viewer/src/plugins/router.ts | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 viewer/src/plugins/router.ts (limited to 'viewer/src/plugins') diff --git a/viewer/src/plugins/router.ts b/viewer/src/plugins/router.ts new file mode 100644 index 0000000..0f3d2c7 --- /dev/null +++ b/viewer/src/plugins/router.ts @@ -0,0 +1,41 @@ +/* ldgallery - A static generator which turns a collection of tagged +-- pictures into a searchable web gallery. +-- +-- Copyright (C) 2019-2020 Guillaume FOUET +-- +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU Affero General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU Affero General Public License for more details. +-- +-- You should have received a copy of the GNU Affero General Public License +-- along with this program. If not, see . +*/ + +import Vue from "vue"; +import VueRouter from "vue-router"; +import Gallery from "@/views/MainGallery.vue"; + +Vue.use(VueRouter); + +// async way : component: () => import(/* webpackChunkName: "Gallery" */ "@/views/Gallery.vue"), + +const routes = [ + { + path: "*", + name: "Gallery", + component: Gallery, + props: true + }, +]; + +const router = new VueRouter({ + routes, +}); + +export default router; -- cgit v1.2.3