From 9b4eccff5c327a77748776d1d36153deabeea010 Mon Sep 17 00:00:00 2001 From: Joep Date: Mon, 11 Sep 2023 23:48:51 +0200 Subject: [PATCH] Fixed eslint errors --- frontend/src/api/pub.ts | 1 - frontend/src/i18n/index.ts | 2 +- frontend/src/types/settings.d.ts | 2 +- frontend/src/types/toast.d.ts | 5 +---- frontend/src/views/settings/Global.vue | 4 ++-- frontend/src/views/settings/Profile.vue | 6 +++++- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/frontend/src/api/pub.ts b/frontend/src/api/pub.ts index 5765b7f7..507f3ac1 100644 --- a/frontend/src/api/pub.ts +++ b/frontend/src/api/pub.ts @@ -74,4 +74,3 @@ export function getDownloadURL(share: IFile, inline = false) { return createURL("api/public/dl/" + share.hash + share.path, params, false); } - \ No newline at end of file diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 8acf7d4d..4cd72d40 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -135,4 +135,4 @@ export const i18n = createI18n({ legacy: true, }); -export default i18n; \ No newline at end of file +export default i18n; diff --git a/frontend/src/types/settings.d.ts b/frontend/src/types/settings.d.ts index 8cc09d2f..54ab06b3 100644 --- a/frontend/src/types/settings.d.ts +++ b/frontend/src/types/settings.d.ts @@ -1,4 +1,4 @@ - interface ISettings { +interface ISettings { signup: boolean; createUserDir: boolean; userHomeBasePath: string; diff --git a/frontend/src/types/toast.d.ts b/frontend/src/types/toast.d.ts index 07917620..5a691ed4 100644 --- a/frontend/src/types/toast.d.ts +++ b/frontend/src/types/toast.d.ts @@ -1,5 +1,2 @@ type IToastSuccess = (message: string) => void; -type IToastError = ( - error: Error | string, - displayReport?: boolean -) => void; +type IToastError = (error: Error | string, displayReport?: boolean) => void; diff --git a/frontend/src/views/settings/Global.vue b/frontend/src/views/settings/Global.vue index 4fa56379..8e52386c 100644 --- a/frontend/src/views/settings/Global.vue +++ b/frontend/src/views/settings/Global.vue @@ -247,7 +247,7 @@ const settings = ref(null); const debounceTimeout = ref(null); const commandObject = ref<{ - [key in keyof SettingsCommand]: string[] | string; + [key: string]: string[] | string; }>({}); const shellValue = ref(""); @@ -396,4 +396,4 @@ onBeforeUnmount(() => { clearTimeout(debounceTimeout.value); } }); - \ No newline at end of file + diff --git a/frontend/src/views/settings/Profile.vue b/frontend/src/views/settings/Profile.vue index d899ff10..ec397d5d 100644 --- a/frontend/src/views/settings/Profile.vue +++ b/frontend/src/views/settings/Profile.vue @@ -138,7 +138,11 @@ const updatePassword = async (event: Event) => { } try { - const data = {...authStore.user, id: authStore.user.id, password: password.value }; + const data = { + ...authStore.user, + id: authStore.user.id, + password: password.value, + }; await api.update(data, ["password"]); authStore.updateUser(data); $showSuccess(t("settings.passwordUpdated"));