option to disable clustering

This commit is contained in:
Will Freeman
2025-10-06 18:33:22 -06:00
parent cc3a0e3176
commit 052cd99f6b
2 changed files with 133 additions and 27 deletions
-26
View File
@@ -7,7 +7,6 @@ import { useDiscordIntercept } from '@/composables/useDiscordIntercept';
const theme = useTheme();
const router = useRouter();
const snackbar = ref({ show: false, text: '' });
const isDark = computed(() => theme.name.value === 'dark');
const isFullscreen = computed(() => router.currentRoute.value?.query.fullscreen === 'true');
const { showDialog, discordUrl, interceptDiscordLinks } = useDiscordIntercept();
@@ -16,13 +15,6 @@ function toggleTheme() {
const newTheme = theme.global.name.value === 'dark' ? 'light' : 'dark';
theme.global.name.value = newTheme;
localStorage.setItem('theme', newTheme);
if (newTheme === 'dark' && router.currentRoute.value.path === '/map') {
snackbar.value = {
show: true,
text: "Dark maps aren't available yet :("
};
}
}
function handleDiscordProceed(url: string) {
@@ -237,24 +229,6 @@ watch(() => theme.global.name.value, (newTheme) => {
<RouterView />
</v-main>
<v-snackbar
close-delay="2000"
v-model="snackbar.show"
color="grey-darken-3"
>
<v-icon start>mdi-theme-light-dark</v-icon>
{{ snackbar.text }}
<template v-slot:actions>
<v-btn
color="blue"
variant="text"
@click="snackbar.show = false"
>
<v-icon>mdi-close</v-icon>
</v-btn>
</template>
</v-snackbar>
<DiscordWarningDialog
v-model="showDialog"
:discordUrl="discordUrl"