mirror of
https://github.com/PhotonVision/photonvision
synced 2026-07-05 03:21:40 +00:00
As a precursor to #2394, add a bunch of linting rules to try and catch more mistakes/potential code errors/unnecessary code. Add a bunch of rules from https://eslint.vuejs.org/rules/ in the "uncategorized" section that seem useful to have.
28 lines
810 B
Vue
28 lines
810 B
Vue
<script setup lang="ts">
|
|
import { useStateStore } from "@/stores/StateStore";
|
|
</script>
|
|
|
|
<template>
|
|
<v-snackbar
|
|
v-model="useStateStore().snackbarData.show"
|
|
location="top"
|
|
variant="elevated"
|
|
:color="useStateStore().snackbarData.color"
|
|
:timeout="useStateStore().snackbarData.timeout"
|
|
>
|
|
<p style="padding: 0; margin: 0; text-align: center">
|
|
{{ useStateStore().snackbarData.message }}
|
|
</p>
|
|
<v-progress-linear
|
|
v-if="useStateStore().snackbarData.progressBar !== -1"
|
|
v-model="useStateStore().snackbarData.progressBar"
|
|
height="15"
|
|
:color="useStateStore().snackbarData.progressBarColor"
|
|
>
|
|
<template #default="{ value }">
|
|
<strong> {{ Math.ceil(value) }}% </strong>
|
|
</template>
|
|
</v-progress-linear>
|
|
</v-snackbar>
|
|
</template>
|