ci: remove prettier and use eslint for formatting

This commit is contained in:
2024-02-02 14:46:42 +01:00
parent 6ff8688760
commit b1e04077f9
20 changed files with 222 additions and 383 deletions
+40 -36
View File
@@ -1,36 +1,40 @@
<template>
<div :key='isAuthenticated'>
<v-container :key='range' fluid grid-list-md class='app-fade-in'>
<v-row v-if='!isAuthenticated' wrap>
<v-col xs='12'>
<div :key="isAuthenticated">
<v-container :key="range" fluid grid-list-md class="app-fade-in">
<v-row v-if="!isAuthenticated" wrap>
<v-col xs="12">
<p><b v-text="$t('events.login')" /></p>
</v-col>
</v-row>
<v-row wrap>
<v-col xs='12'>
<v-col xs="12">
<v-text-field
v-model='origin'
v-model="origin"
:label="$t('origins.origin')"
:placeholder="$t('origins.geolocation')"
>
<template #append-outer>
<v-tooltip top>
<template #activator='{ on }'>
<v-icon v-on='on' @click='fetchAddress()'
>mdi-crosshairs-gps
<template #activator="{ on }">
<v-icon
v-on="on"
@click="fetchAddress()"
>
mdi-crosshairs-gps
</v-icon>
</template>
<span v-text="$t('origins.fetchAddress')" />
</v-tooltip>
</template>
<template #prepend>
<v-tooltip v-if='isAuthenticated' top>
<template #activator='{ on }'>
<v-tooltip v-if="isAuthenticated" top>
<template #activator="{ on }">
<v-icon
:disabled='!origin'
v-on='on'
@click='saveOrigin(origin)'
>mdi-bookmark-plus-outline
:disabled="!origin"
v-on="on"
@click="saveOrigin(origin)"
>
mdi-bookmark-plus-outline
</v-icon>
</template>
<span v-text="$t('origins.save')" />
@@ -42,47 +46,47 @@
<v-row wrap>
<v-col>
<v-btn-toggle
v-if='$vuetify.breakpoint.smAndUp'
v-model='state.range'
v-if="$vuetify.breakpoint.smAndUp"
v-model="state.range"
mandatory
>
<v-btn v-for='r in ranges' :key='r.value' text :value='r.value'>
<span v-text='$t(`events.range.${r.value}`)'
/></v-btn>
<v-btn v-for="r in ranges" :key="r.value" text :value="r.value">
<span v-text="$t(`events.range.${r.value}`)" />
</v-btn>
</v-btn-toggle>
<v-select
v-else
v-model='state.range'
v-model="state.range"
outline
:items='ranges'
item-text='name'
item-value='value'
:items="ranges"
item-text="name"
item-value="value"
/>
</v-col>
</v-row>
<v-row wrap>
<v-col cols='12' sm='8'>
<v-col cols="12" sm="8">
<v-text-field
v-model='state.search'
append-outer-icon='mdi-magnify'
v-model="state.search"
append-outer-icon="mdi-magnify"
:label="$t('events.filter')"
:placeholder="$t('events.filter')"
/>
</v-col>
<v-col cols='12' sm='4'>
<v-checkbox v-model='state.includeHidden' :label='$t("events.includeHidden")' />
<v-col cols="12" sm="4">
<v-checkbox v-model="state.includeHidden" :label="$t(&quot;events.includeHidden&quot;)" />
</v-col>
</v-row>
<list
:events='events'
:has-user='isAuthenticated'
:toggle-ignore='toggleIgnore'
:events="events"
:has-user="isAuthenticated"
:toggle-ignore="toggleIgnore"
/>
</v-container>
<v-snackbar
v-model='snackbar.active'
:color='snackbar.color'
:timeout='5000'
v-model="snackbar.active"
:color="snackbar.color"
:timeout="5000"
>
{{ snackbar.text }}
</v-snackbar>
@@ -113,7 +117,7 @@ export default defineComponent({
components: {
List
},
setup() {
setup () {
const state = useState()
const { t } = useTranslation()
state.setTitle(t('app.links.events'))