From 7ae68f079ddfb74c9a1b17c4f30dfe4c258d4a9f Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 20 Dec 2019 17:47:04 +0100 Subject: Viewer project foundations --- viewer/src/main.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 viewer/src/main.ts (limited to 'viewer/src/main.ts') diff --git a/viewer/src/main.ts b/viewer/src/main.ts new file mode 100644 index 0000000..352b565 --- /dev/null +++ b/viewer/src/main.ts @@ -0,0 +1,15 @@ +import Vue from "vue"; +import "@/assets/scss/global.scss"; +import "@/plugins/fontawesome"; +import "@/plugins/buefy"; +import i18n from "@/plugins/i18n"; +import router from "@/router"; +import LdGallery from "@/views/LdGallery.vue"; + +Vue.config.productionTip = false; + +new Vue({ + router, + i18n, + render: h => h(LdGallery), +}).$mount("#ldgallery"); -- cgit v1.2.3 From 62005141132da1e9761598fa3e4b35b4dab38a89 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 02:06:02 +0100 Subject: Implemented VueX and a basic UIStore with the fullscreen mutation Some renaming --- viewer/src/main.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'viewer/src/main.ts') diff --git a/viewer/src/main.ts b/viewer/src/main.ts index 352b565..3a3593c 100644 --- a/viewer/src/main.ts +++ b/viewer/src/main.ts @@ -2,6 +2,7 @@ import Vue from "vue"; import "@/assets/scss/global.scss"; import "@/plugins/fontawesome"; import "@/plugins/buefy"; +import store from '@/plugins/vuex' import i18n from "@/plugins/i18n"; import router from "@/router"; import LdGallery from "@/views/LdGallery.vue"; @@ -11,5 +12,6 @@ Vue.config.productionTip = false; new Vue({ router, i18n, - render: h => h(LdGallery), + store, + render: h => h(LdGallery) }).$mount("#ldgallery"); -- cgit v1.2.3 From 6e7ee4d38fb3630a13d31592f0f6ae9bbe8e1bd6 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 03:32:20 +0100 Subject: Implemented global components registration Moved the fullscreen button as a global component (as demonstration) Improved the layout CSS --- viewer/src/main.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'viewer/src/main.ts') diff --git a/viewer/src/main.ts b/viewer/src/main.ts index 3a3593c..ca439bc 100644 --- a/viewer/src/main.ts +++ b/viewer/src/main.ts @@ -1,5 +1,6 @@ import Vue from "vue"; import "@/assets/scss/global.scss"; +import "@/components" import "@/plugins/fontawesome"; import "@/plugins/buefy"; import store from '@/plugins/vuex' -- cgit v1.2.3 From 9e4fdd6f38853d8a4a959901ab7902569de75484 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 08:08:54 +0100 Subject: viewer: Implemented the "example" project in devServer Display loader and error messages (not translated yet) Created a "GalleryStore" to fetch the JSon data from the gallery (currently from example) --- viewer/src/main.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'viewer/src/main.ts') diff --git a/viewer/src/main.ts b/viewer/src/main.ts index ca439bc..06fe8f8 100644 --- a/viewer/src/main.ts +++ b/viewer/src/main.ts @@ -3,7 +3,7 @@ import "@/assets/scss/global.scss"; import "@/components" import "@/plugins/fontawesome"; import "@/plugins/buefy"; -import store from '@/plugins/vuex' +import store from '@/store' import i18n from "@/plugins/i18n"; import router from "@/router"; import LdGallery from "@/views/LdGallery.vue"; -- cgit v1.2.3 From 3f21d10338afe8eab699aaaea060556579e4b3c3 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Sat, 21 Dec 2019 10:33:21 +0100 Subject: viewer: Some renaming for better clarity Implemented a basic display of filenames with basic navigation --- viewer/src/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'viewer/src/main.ts') diff --git a/viewer/src/main.ts b/viewer/src/main.ts index 06fe8f8..736e6c7 100644 --- a/viewer/src/main.ts +++ b/viewer/src/main.ts @@ -6,7 +6,7 @@ import "@/plugins/buefy"; import store from '@/store' import i18n from "@/plugins/i18n"; import router from "@/router"; -import LdGallery from "@/views/LdGallery.vue"; +import MainLayout from "@/views/MainLayout.vue"; Vue.config.productionTip = false; @@ -14,5 +14,5 @@ new Vue({ router, i18n, store, - render: h => h(LdGallery) + render: h => h(MainLayout) }).$mount("#ldgallery"); -- cgit v1.2.3 From 27b51018525dbb7a6edb3073819d82245387ddd3 Mon Sep 17 00:00:00 2001 From: Zero~Informatique Date: Fri, 10 Jan 2020 22:22:22 +0100 Subject: viewer: license headers --- viewer/src/main.ts | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'viewer/src/main.ts') diff --git a/viewer/src/main.ts b/viewer/src/main.ts index 736e6c7..a5faa51 100644 --- a/viewer/src/main.ts +++ b/viewer/src/main.ts @@ -1,3 +1,22 @@ +/* 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 "@/assets/scss/global.scss"; import "@/components" -- cgit v1.2.3