mirror of
https://github.com/misenhower/splatoon3.ink.git
synced 2026-03-21 17:54:13 -05:00
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>
28 lines
654 B
Vue
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>
|