Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove home view #2

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions src/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ export default defineComponent({
data() {
return {
menuItems: [
{
href: '/',
icon: 'mdi-home',
name: 'home',
},
{
href: '/projects',
icon: 'mdi-link',
Expand Down Expand Up @@ -49,7 +44,7 @@ export default defineComponent({
@click.stop="drawer = !drawer"
></v-app-bar-nav-icon>
<v-app-bar-title>
<router-link to="/">
<router-link :to="i18nRoute({ name: 'projects' })">
<v-img height="50" position="left center" :src="logoSrc" :alt="logoAlt" />
</router-link>
</v-app-bar-title>
Expand Down
6 changes: 0 additions & 6 deletions src/i18n/locales/de.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@
"signUp": "Registrieren",
"signUpFailed": "Registrierung gescheitert"
},
"homeView": {
"title": "Willkommen bei der MapSwipe Web App!",
"text": "Als Teil des Missing Maps-Projekts ist {mapswipeLink} eine mobile App, die entwickelt wurde, um Kartendaten von einem Netzwerk globaler Freiwilliger zu sammeln. Es geht darum wichtige Infrastrukturen wie Gebäude und Straßen auf Satellitendaten und Luftbildern zu finden, Schäden zu kartieren oder Veränderungen zu erkennen. Neben der {mobileAppLink} steht nun auch eine Webanwendung (Beta-Version) zur Verfügung. Diese kann über einen Webbrowser auf dem Laptop, PC, Tablet oder Smartphone genutzen werden.{newline}{newline}Wenn Sie weitere Informationen benötigen oder Fragen zur MapSwipe Web-App haben, kontaktieren Sie gern das Team des {heigitLink}.",
"betaText": "Die Beta-Version der MapSwipe-Web-App dient dazu, Feedback von Nutzer*innen zu bekommen und Probleme zu medlen. Derzeit werden die gesammelten Kartierungsdaten nicht zur Unterstützung humanitärer Maßnahmen verwendet.",
"mobileApp": "mobilen App"
},
"languageSwitcher": {
"switchLanguage": "Sprache wählen"
},
Expand Down
6 changes: 0 additions & 6 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,6 @@
"signUp": "Sign up",
"signUpFailed": "Sign-up failed"
},
"homeView": {
"title": "Welcome to the MapSwipe web app!",
"text": "As part of the Missing Map project, {mapswipeLink} was created to crowdsource map data from a network of global volunteers - just one swipe at a time. Individuals, volunteers from communities all over the world, can find crucial infrastructure such as buildings and roads, identify changes in areas. In addition to the {mobileAppLink}, volunteers can use the MapSwipe web app (beta) and start contributing right away through a web browser on multiple platforms like laptops, desktops, or mobiles.{newline}{newline}If you need more information or if you have requests related to the MapSwipe web app get in contact with the team at the {heigitLink}.",
"betaText": "The beta version of the MapSwipe web app is for submitting bugs, feature requests and other feedback. Currently, the collected mapping data won’t be used for supporting humanitarian response.",
"mobileApp": "mobile app"
},
"languageSwitcher": {
"switchLanguage": "Switch Language"
},
Expand Down
9 changes: 2 additions & 7 deletions src/router/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { createRouter, createWebHashHistory, RouterView } from 'vue-router'
import HomeView from '../views/HomeView.vue'
import { getCurrentUser } from 'vuefire'
import { default as Tr, i18nRoute } from '@/i18n/translation'

Expand All @@ -10,7 +9,7 @@ const denyUnauthorized = async (to, from, next) => {
if (currentUser?.emailVerified) {
next()
} else if (currentUser) {
next(i18nRoute({ name: 'home', params: { authTab: 'recover-account' } }))
next(i18nRoute({ name: 'authentication', params: { authTab: 'recover-account' } }))
} else {
next(i18nRoute({ name: 'authentication', params: { authTab: 'sign-in' } }))
}
Expand All @@ -25,14 +24,10 @@ const router = createRouter({
beforeEnter: Tr.routeMiddleware,
meta: { title: appName },
children: [
{
path: '',
name: 'home',
component: HomeView,
},
{
path: 'projects',
name: 'projects',
alias: '',
// lazy-load component when the route is visited
component: () => import('../views/ProjectsView.vue'),
beforeEnter: denyUnauthorized,
Expand Down
31 changes: 0 additions & 31 deletions src/views/HomeView.vue

This file was deleted.