ci: remove prettier and use eslint for formatting
This commit is contained in:
@@ -1,18 +1,21 @@
|
||||
<template>
|
||||
<div :key='isAuthenticated'>
|
||||
<v-container fluid grid-list-md class='app-fade-in'>
|
||||
<div :key="isAuthenticated">
|
||||
<v-container fluid grid-list-md class="app-fade-in">
|
||||
<v-layout row wrap>
|
||||
<v-flex xs12>
|
||||
<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')" />
|
||||
@@ -20,12 +23,13 @@
|
||||
</template>
|
||||
<template #prepend>
|
||||
<v-tooltip top>
|
||||
<template #activator='{ on }'>
|
||||
<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')" />
|
||||
@@ -34,12 +38,15 @@
|
||||
</v-text-field>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout v-for='o in origins' :key='o' row wrap>
|
||||
<v-layout v-for="o in origins" :key="o" row wrap>
|
||||
<v-flex xs12>
|
||||
<v-tooltip top>
|
||||
<template #activator='{ on }'>
|
||||
<v-icon v-on='on' @click='removeOrigin(o)'
|
||||
>mdi-delete-outline
|
||||
<template #activator="{ on }">
|
||||
<v-icon
|
||||
v-on="on"
|
||||
@click="removeOrigin(o)"
|
||||
>
|
||||
mdi-delete-outline
|
||||
</v-icon>
|
||||
</template>
|
||||
<span v-text="$t('origins.remove')" />
|
||||
@@ -49,9 +56,9 @@
|
||||
</v-layout>
|
||||
</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>
|
||||
@@ -72,7 +79,7 @@ import { useState } from '~/store'
|
||||
|
||||
export default defineComponent({
|
||||
name: 'OriginsPage',
|
||||
setup() {
|
||||
setup () {
|
||||
const state = useState()
|
||||
const { t } = useTranslation()
|
||||
state.setTitle(t('app.links.origins'))
|
||||
|
||||
Reference in New Issue
Block a user