From f1e1c55633d15ec1db454fd90999f1a22aa5687a Mon Sep 17 00:00:00 2001 From: Alexandros SIDIRAS Date: Fri, 7 Jun 2024 09:41:40 +0200 Subject: [PATCH] moved public folder --- components/navigation/modeModal.vue | 2 +- components/navigation/navbar.vue | 2 +- components/navigation/pictalk-navbar.vue | 4 +- components/pictos/pictoBar.vue | 6 +- pages/index.vue | 2 +- pages/public/index.vue | 194 +++++++++++++++-------- pages/public/pictalk/index.vue | 161 ------------------- 7 files changed, 135 insertions(+), 236 deletions(-) delete mode 100644 pages/public/pictalk/index.vue diff --git a/components/navigation/modeModal.vue b/components/navigation/modeModal.vue index a3465862..486022f5 100644 --- a/components/navigation/modeModal.vue +++ b/components/navigation/modeModal.vue @@ -45,7 +45,7 @@ export default { }, goToPublic() { this.$router.push({ - path: "/public/pictalk", + path: "/public", }); this.$parent.close(); } diff --git a/components/navigation/navbar.vue b/components/navigation/navbar.vue index 84dc54b0..ba21ff0c 100644 --- a/components/navigation/navbar.vue +++ b/components/navigation/navbar.vue @@ -34,7 +34,7 @@ outlined>{{ $t("SignUp") }} {{ + to="/public?fatherCollectionId=346" type="is-primary" icon-right="arrow-right-box">{{ $t("TryPictalk") }} diff --git a/components/navigation/pictalk-navbar.vue b/components/navigation/pictalk-navbar.vue index 3bf4e7ee..53c5ccc3 100644 --- a/components/navigation/pictalk-navbar.vue +++ b/components/navigation/pictalk-navbar.vue @@ -364,7 +364,7 @@ export default { if (this.publicMode) { this.$router.push( { - path: "/public/pictalk", + path: "/public", query: { ...this.$route.query, fatherCollectionId: 346 }, }); } else { @@ -383,7 +383,7 @@ export default { } else { console.log("navigating to", navigation[navigation.length - 2]) this.$router.push({ - path: this.publicMode ? "/public/pictalk" : "/pictalk", + path: this.publicMode ? "/public" : "/pictalk", query: { ...this.$route.query, fatherCollectionId: navigation[navigation.length - 2] }, }); } diff --git a/components/pictos/pictoBar.vue b/components/pictos/pictoBar.vue index 08fbaf0f..4e82287a 100644 --- a/components/pictos/pictoBar.vue +++ b/components/pictos/pictoBar.vue @@ -225,7 +225,7 @@ export default { if (pictalkSpeech.length <= 1) { this.$store.commit("resetNavigation"); if (this.publicMode) { - this.$router.push("/public/pictalk?fatherCollectionId=346"); + this.$router.push("/public?fatherCollectionId=346"); } else { if (this.$store.getters.getRootId) { this.$router.push({ @@ -240,7 +240,7 @@ export default { } else { this.$router.push({ path: - (this.publicMode ? "/public/pictalk" : "/pictalk/"), + (this.publicMode ? "/public" : "/pictalk/"), query: { ...this.$route.query, fatherCollectionId: pictalkSpeech[pictalkSpeech.length - 2]?.id }, }); } @@ -256,7 +256,7 @@ export default { eraseSpeech() { this.$store.commit("resetNavigation"); if (this.publicMode) { - this.$router.push("/public/pictalk?fatherCollectionId=346"); + this.$router.push("/public?fatherCollectionId=346"); this.$store.commit("eraseSpeech"); } else { this.$store.commit("eraseSpeech"); diff --git a/pages/index.vue b/pages/index.vue index f0aa48f5..4540c4a3 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -226,7 +226,7 @@ export default { }); } else { this.$router.push({ - path: "/public/pictalk?fatherCollectionId=346" + path: "/public?fatherCollectionId=346" }); } } diff --git a/pages/public/index.vue b/pages/public/index.vue index 58e56ab9..60d1bedc 100644 --- a/pages/public/index.vue +++ b/pages/public/index.vue @@ -1,24 +1,35 @@ diff --git a/pages/public/pictalk/index.vue b/pages/public/pictalk/index.vue deleted file mode 100644 index 7035f46f..00000000 --- a/pages/public/pictalk/index.vue +++ /dev/null @@ -1,161 +0,0 @@ - - -