add achats import and hardware analyse

This commit is contained in:
2026-01-22 06:33:28 +01:00
parent 2b659920c2
commit b1f611d8ee
16 changed files with 1071 additions and 22 deletions

View File

@@ -0,0 +1,28 @@
<template>
<div class="card" style="display: flex; gap: 8px; align-items: center;">
<label>{{ t('theme.label') }}</label>
<select v-model="current" @change="applyTheme">
<option value="light">light</option>
<option value="dark">dark</option>
<option value="monokai">monokai</option>
<option value="gruvbox-dark">gruvbox-dark</option>
</select>
</div>
</template>
<script setup lang="ts">
const { t } = useI18n()
const current = ref('gruvbox-dark')
const applyTheme = () => {
document.documentElement.setAttribute('data-theme', current.value)
localStorage.setItem('theme', current.value)
}
onMounted(() => {
const saved = localStorage.getItem('theme') || 'gruvbox-dark'
current.value = saved
applyTheme()
})
</script>