splatoon3.ink/src/App.vue
Matt Isenhower 647d62dbd2 Remove dead code in GearCard and App components
Remove permanently disabled v-if="false" Order button block and
its unused SquidTape import from GearCard. Remove unnecessary
try-catch around mobile browser detection in App.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-31 20:04:14 -08:00

28 lines
654 B
Vue

<template>
<RouterView />
</template>
<script setup>
import { onMounted, onUnmounted } from 'vue';
import { RouterView } from 'vue-router';
import { useDataStore } from './stores/data';
import { useTimeStore } from './stores/time.mjs';
const time = useTimeStore();
onMounted(() => time.startUpdatingNow());
onUnmounted(() => time.stopUpdatingNow());
const data = useDataStore();
onMounted(() => data.startUpdating());
onUnmounted(() => data.stopUpdating());
// Detect mobile browsers
if (navigator.userAgent.match(/iPhone|iPad|Android/i)) {
document.body.classList.add('is-mobile');
}
</script>
<style>
@import '@/assets/css/base.css';
</style>