diff --git a/webapp/src/App.vue b/webapp/src/App.vue index 0b35159..eb139fb 100644 --- a/webapp/src/App.vue +++ b/webapp/src/App.vue @@ -3,12 +3,13 @@ import { RouterView, useRouter } from 'vue-router' import { computed, ref, watch, onMounted } from 'vue' import { useTheme } from 'vuetify'; import DiscordWarningDialog from '@/components/DiscordWarningDialog.vue'; +import OfficialSocials from '@/components/layout/OfficialSocials.vue'; import { useDiscordIntercept } from '@/composables/useDiscordIntercept'; const theme = useTheme(); const router = useRouter(); -const isDark = computed(() => theme.name.value === 'dark'); const isInIframe = computed(() => window.self !== window.top); + const { showDialog, discordUrl, interceptDiscordLinks } = useDiscordIntercept(); function toggleTheme() { @@ -37,24 +38,27 @@ const items = [ { title: 'Home', icon: 'mdi-home', to: '/' }, { title: 'Map', icon: 'mdi-map', href: 'https://maps.deflock.org' }, { title: 'Learn', icon: 'mdi-school', to: '/what-is-an-alpr' }, - { title: 'Store', icon: 'mdi-shopping', to: '/store' }, + { title: 'Donate', icon: 'mdi-cash-multiple', to: '/donate' }, + ] -const contributeItems = [ - { title: 'Submit Cameras', icon: 'mdi-map-marker-plus', to: '/report' }, +const resourceItems = [ + { title: 'Store', icon: 'mdi-shopping', to: '/store', isNew: true }, + { title: 'FAQ', icon: 'mdi-help-circle', to: '/what-is-an-alpr' }, { title: 'Public Records', icon: 'mdi-file-document', to: '/foia' }, { title: 'City Council', icon: 'mdi-account-voice', to: '/council' }, - { title: 'Support Us', icon: 'mdi-cash-multiple', to: '/donate' }, ] -const metaItems = [ - { title: 'Discord', customIcon: '/icon-discord.svg', customIconDark: '/icon-discord-white.svg', customIconGrey: '/icon-discord-grey.svg', href: 'https://discord.gg/aV7v4R3sKT'}, +const getInvolvedItems = [ + { title: 'Submit Cameras', icon: 'mdi-map-marker-plus', to: '/report' }, { title: 'Local Groups', icon: 'mdi-account-group', to: '/groups' }, { title: 'Contact', icon: 'mdi-email-outline', to: '/contact' }, { title: 'GitHub', icon: 'mdi-github', href: 'https://github.com/frillweeman/deflock'}, ]; + const drawer = ref(false) + watch(() => theme.global.name.value, (newTheme) => { const root = document.documentElement; if (newTheme === 'dark') { @@ -105,12 +109,22 @@ watch(() => theme.global.name.value, (newTheme) => { :prepend-icon="item.icon" > {{ item.title }} + + New! + + - +
theme.global.name.value, (newTheme) => { - {{ item.title }} + + {{ item.title }} + + New! + + + theme.global.name.value, (newTheme) => { link > {{ item.title }} + + + + + +
+ @@ -203,15 +237,25 @@ watch(() => theme.global.name.value, (newTheme) => { > {{ item.icon }} {{ item.title }} + + New! + +