Lint fixes

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-11 14:04:03 +02:00
parent 3928c2fb2a
commit e94a537f30
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
4 changed files with 3 additions and 11 deletions

View File

@ -116,7 +116,6 @@ import {
IAddress, IAddress,
addressFullName, addressFullName,
addressToPoiInfos, addressToPoiInfos,
IPoiInfo,
} from "../../types/address.model"; } from "../../types/address.model";
import AddressInfo from "../../components/Address/AddressInfo.vue"; import AddressInfo from "../../components/Address/AddressInfo.vue";
import { computed, ref, watch, defineAsyncComponent } from "vue"; import { computed, ref, watch, defineAsyncComponent } from "vue";

View File

@ -94,7 +94,6 @@ const distance = computed<number>(() => (suggestGeoloc.value ? 150 : 25));
const now = computed(() => roundToNearestMinute(new Date())); const now = computed(() => roundToNearestMinute(new Date()));
const searchEnabled = computed(() => geoHash.value != undefined); const searchEnabled = computed(() => geoHash.value != undefined);
const enabled = ref(false);
const { const {
result: eventsResult, result: eventsResult,

View File

@ -112,11 +112,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import ngeohash from "ngeohash"; import ngeohash from "ngeohash";
import { import { USER_SETTINGS, SET_USER_SETTINGS } from "../../graphql/user";
USER_SETTINGS,
SET_USER_SETTINGS,
UPDATE_USER_LOCALE,
} from "../../graphql/user";
import langs from "../../i18n/langs.json"; import langs from "../../i18n/langs.json";
import RouteName from "../../router/name"; import RouteName from "../../router/name";
import { AddressSearchType } from "@/types/enums"; import { AddressSearchType } from "@/types/enums";
@ -136,7 +132,7 @@ const { timezones: serverTimezones, loading: loadingTimezones } =
useTimezones(); useTimezones();
const { loggedUser, loading: loadingUserSettings } = useUserSettings(); const { loggedUser, loading: loadingUserSettings } = useUserSettings();
const { t, locale } = useI18n({ useScope: "global" }); const { t } = useI18n({ useScope: "global" });
useHead({ useHead({
title: computed(() => t("Preferences")), title: computed(() => t("Preferences")),
@ -162,8 +158,6 @@ const selectedTimezone = computed({
}, },
}); });
const { mutate: updateUserLocale } = useMutation(UPDATE_USER_LOCALE);
const sanitize = (timezone: string): string => { const sanitize = (timezone: string): string => {
return timezone return timezone
.split("_") .split("_")

View File

@ -73,7 +73,7 @@ module.exports = {
"mbz-info": "#36bcd4", "mbz-info": "#36bcd4",
"mbz-danger": "#cd2026", "mbz-danger": "#cd2026",
"mbz-success": "#0d8758", "mbz-success": "#0d8758",
"mbz-warning": '#ffe08a', "mbz-warning": "#ffe08a",
// primary: "#272633", // primary: "#272633",
// secondary: "#ED8D07", // secondary: "#ED8D07",
}, },