+
@@ -200,6 +201,7 @@
// import WikimapsWarperLayer from '@/openlayersplugin/WikimapsWarperLayer'
import TopicSearchBox from "@/components/TopicSearchBox";
import MainToolBar from "@/components/menu/MainToolbar";
+import LoginButton from "@/components/authentication/Login";
export default {
name: "LandingPage",
@@ -226,7 +228,8 @@ export default {
components: {
TopicSearchBox,
// WikimapsWarperLayer,
- MainToolBar
+ MainToolBar,
+ LoginButton
},
mounted: function() {
this.$store.commit("resetState");
diff --git a/src/router/index.js b/src/router/index.js
index da76f8b9..5aa1dfba 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -13,6 +13,7 @@ import 'ol/ol.css'
import MainPage from '@/components/MainPage'
import LandingPage from '@/components/landing_page/LandingPage'
import devpage from '@/components/landing_page/Developer'
+import LoginSuccess from '@/components/authentication/LoginSuccess'
Vue.use(Router)
Vue.use(VueMasonryPlugin)
@@ -37,6 +38,11 @@ export default new Router({
name: 'LandingPage',
component: LandingPage
},
+ {
+ path: '/logged-in',
+ name: 'LoginSuccess',
+ component: LoginSuccess
+ },
{
path: '/wikipedia/:language/:topic',
component: MainPage
From ca13b364ca35a10e40e14ff96467fce5fc168139 Mon Sep 17 00:00:00 2001
From: zexigong <108034351+zexigong@users.noreply.github.com>
Date: Tue, 30 May 2023 21:31:47 -0700
Subject: [PATCH 02/29] basic login
---
src/components/authentication/Login.vue | 21 --------
.../authentication/LoginSuccess.vue | 54 ++++++++++++++++---
2 files changed, 48 insertions(+), 27 deletions(-)
diff --git a/src/components/authentication/Login.vue b/src/components/authentication/Login.vue
index 5c446f18..3290cc8a 100644
--- a/src/components/authentication/Login.vue
+++ b/src/components/authentication/Login.vue
@@ -3,12 +3,10 @@
diff --git a/src/components/authentication/LoginSuccess.vue b/src/components/authentication/LoginSuccess.vue
index 40210797..6ffd3102 100644
--- a/src/components/authentication/LoginSuccess.vue
+++ b/src/components/authentication/LoginSuccess.vue
@@ -1,11 +1,53 @@
- Login Success
+
+
-
-
\ No newline at end of file
+ },
+ mounted: async function() {
+ await this.getAccessToken();
+ await this.getUserProfile();
+ }
+};
+
From 2c6a5263e72078bac444ac5be62a4ddd019fb4b2 Mon Sep 17 00:00:00 2001
From: zexigong <108034351+zexigong@users.noreply.github.com>
Date: Wed, 31 May 2023 19:57:51 -0700
Subject: [PATCH 03/29] Show username
---
src/components/authentication/Login.vue | 4 +++-
src/components/authentication/UserProfile.vue | 21 +++++++++++++++++++
src/components/landing_page/LandingPage.vue | 6 ++++--
src/components/menu/MainToolbar.vue | 5 ++++-
4 files changed, 32 insertions(+), 4 deletions(-)
create mode 100644 src/components/authentication/UserProfile.vue
diff --git a/src/components/authentication/Login.vue b/src/components/authentication/Login.vue
index 3290cc8a..e903c3db 100644
--- a/src/components/authentication/Login.vue
+++ b/src/components/authentication/Login.vue
@@ -1,5 +1,8 @@
+
\ No newline at end of file
diff --git a/src/components/landing_page/LandingPage.vue b/src/components/landing_page/LandingPage.vue
index 789dd9c1..e2b44ceb 100644
--- a/src/components/landing_page/LandingPage.vue
+++ b/src/components/landing_page/LandingPage.vue
@@ -2,6 +2,7 @@
+
@@ -203,6 +204,7 @@ import TopicSearchBox from "@/components/TopicSearchBox";
import MainToolBar from "@/components/menu/MainToolbar";
import LoginButton from "@/components/authentication/Login";
+
export default {
name: "LandingPage",
props: {},
@@ -229,8 +231,8 @@ export default {
TopicSearchBox,
// WikimapsWarperLayer,
MainToolBar,
- LoginButton
- },
+ LoginButton,
+},
mounted: function() {
this.$store.commit("resetState");
// this.$store.commit('setSelectedBasemap', this.mapOfTheDay);
diff --git a/src/components/menu/MainToolbar.vue b/src/components/menu/MainToolbar.vue
index 192d713b..552b6799 100644
--- a/src/components/menu/MainToolbar.vue
+++ b/src/components/menu/MainToolbar.vue
@@ -12,6 +12,7 @@
{{ landingPageName }}
+
@@ -19,6 +20,7 @@
\ No newline at end of file
diff --git a/src/components/landing_page/LandingPage.vue b/src/components/landing_page/LandingPage.vue
index e2b44ceb..28a6d749 100644
--- a/src/components/landing_page/LandingPage.vue
+++ b/src/components/landing_page/LandingPage.vue
@@ -1,7 +1,6 @@
-
@@ -202,7 +201,6 @@
// import WikimapsWarperLayer from '@/openlayersplugin/WikimapsWarperLayer'
import TopicSearchBox from "@/components/TopicSearchBox";
import MainToolBar from "@/components/menu/MainToolbar";
-import LoginButton from "@/components/authentication/Login";
export default {
@@ -231,7 +229,6 @@ export default {
TopicSearchBox,
// WikimapsWarperLayer,
MainToolBar,
- LoginButton,
},
mounted: function() {
this.$store.commit("resetState");
diff --git a/src/components/menu/MainToolbar.vue b/src/components/menu/MainToolbar.vue
index 552b6799..0ed7731f 100644
--- a/src/components/menu/MainToolbar.vue
+++ b/src/components/menu/MainToolbar.vue
@@ -12,7 +12,8 @@
{{ landingPageName }}
-
+
+
@@ -20,6 +21,7 @@
+
+
+
+
diff --git a/src/components/authentication/UserProfile.vue b/src/components/authentication/UserProfile.vue
index 04c0b7c8..999cec1e 100644
--- a/src/components/authentication/UserProfile.vue
+++ b/src/components/authentication/UserProfile.vue
@@ -2,7 +2,7 @@
Date: Tue, 20 Jun 2023 15:51:27 -0700
Subject: [PATCH 07/29] enable image action menu; add popup
---
src/components/ImageGrid.vue | 14 +++---
src/components/image_viewer/ImageViewer.vue | 22 +++++++++-
src/components/upload/Popup.vue | 48 +++++++++++++++++++++
src/store/translation/en.json | 3 +-
4 files changed, 77 insertions(+), 10 deletions(-)
create mode 100644 src/components/upload/Popup.vue
diff --git a/src/components/ImageGrid.vue b/src/components/ImageGrid.vue
index 93bfde5d..41d83367 100644
--- a/src/components/ImageGrid.vue
+++ b/src/components/ImageGrid.vue
@@ -20,7 +20,7 @@
@@ -48,8 +48,8 @@
+
\ No newline at end of file
diff --git a/src/store/translation/en.json b/src/store/translation/en.json
index 02b687b9..4341bb60 100644
--- a/src/store/translation/en.json
+++ b/src/store/translation/en.json
@@ -274,7 +274,8 @@
"menuTooltip": "Actions",
"doGeolocatingText": "Set the location...",
"showImageText": "Show image",
- "selectFeatured": "Choose as a header image"
+ "selectFeatured": "Choose as a header image",
+ "upload" : "upload"
},
"imagesRemoveMenu": {
"menuTitle": "Remove the image because...",
From e79679d8d10ae33c42b807ef37f256f0e1276eb8 Mon Sep 17 00:00:00 2001
From: zexigong <108034351+zexigong@users.noreply.github.com>
Date: Tue, 20 Jun 2023 15:58:51 -0700
Subject: [PATCH 08/29] disable image remove menu; clean code
---
src/components/ImageGrid.vue | 6 +++---
src/components/image_viewer/ImageViewer.vue | 2 --
2 files changed, 3 insertions(+), 5 deletions(-)
diff --git a/src/components/ImageGrid.vue b/src/components/ImageGrid.vue
index 41d83367..6a13bb10 100644
--- a/src/components/ImageGrid.vue
+++ b/src/components/ImageGrid.vue
@@ -36,7 +36,7 @@
-