mirror of
https://github.com/FoggedLens/deflock.git
synced 2026-07-15 08:17:20 +02:00
New Maps (#110)
* use new df map * close button top-right, link to same position in new map, use localStorage for modal dismissal * update map image, iframe detection ignores new map modal * update embed instructions * pretty banner * privacy policy update - routing * launch the map language * header stuff * change donate link * remove new map notice bc 301 on cf * use user agent for alpr_counts * news -> footnote4a * remove blog scraper
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import { createRouter, createWebHistory } from 'vue-router'
|
||||
import Landing from '../views/Landing.vue'
|
||||
import Map from '../views/Map.vue'
|
||||
import { useHead } from '@unhead/vue'
|
||||
|
||||
const router = createRouter({
|
||||
@@ -25,11 +24,11 @@ const router = createRouter({
|
||||
}
|
||||
},
|
||||
{
|
||||
path: '/map',
|
||||
path: '/legacy-map',
|
||||
name: 'map',
|
||||
component: Map,
|
||||
component: () => import('../views/Map.vue'),
|
||||
meta: {
|
||||
title: 'ALPR Map | DeFlock'
|
||||
title: 'ALPR Map (Legacy) | DeFlock'
|
||||
}
|
||||
},
|
||||
{
|
||||
@@ -204,7 +203,7 @@ router.beforeEach((to, from, next) => {
|
||||
}
|
||||
|
||||
if (to.path === '/' && to.hash) {
|
||||
next({ path: '/map', hash: to.hash })
|
||||
next({ path: '/legacy-map', hash: to.hash })
|
||||
} else {
|
||||
next()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user