diff --git a/frontend/components/Account/ApiKeyModal.vue b/frontend/components/Account/ApiKeyModal.vue index a39f44fcfc..6304b6ef95 100644 --- a/frontend/components/Account/ApiKeyModal.vue +++ b/frontend/components/Account/ApiKeyModal.vue @@ -74,6 +74,7 @@ import {useVuelidateOnForm} from "~/functions/useVuelidateOnForm"; import {useAxios} from "~/vendor/axios"; import Modal from "~/components/Common/Modal.vue"; import {ModalTemplateRef, useHasModal} from "~/functions/useHasModal.ts"; +import {ComponentExposed} from "vue-component-type-helpers"; const props = defineProps<{ createUrl: string, @@ -107,7 +108,7 @@ const create = () => { show(); }; -const $field = ref | null>(null); +const $field = ref | null>(null); const onShown = () => { nextTick(() => { diff --git a/frontend/components/Admin/Stations/StationForm.vue b/frontend/components/Admin/Stations/StationForm.vue index 1f6c748319..eca6cafdf2 100644 --- a/frontend/components/Admin/Stations/StationForm.vue +++ b/frontend/components/Admin/Stations/StationForm.vue @@ -116,8 +116,6 @@ const props = withDefaults( isRsasInstalled: false, isShoutcastInstalled: false, isStereoToolInstalled: false, - createUrl: null, - editUrl: null, isModal: false } ); diff --git a/frontend/components/Common/AudioPlayer.vue b/frontend/components/Common/AudioPlayer.vue index 944ff76ce8..44b035694d 100644 --- a/frontend/components/Common/AudioPlayer.vue +++ b/frontend/components/Common/AudioPlayer.vue @@ -20,7 +20,6 @@ const props = withDefaults( isMuted?: boolean }>(), { - title: null, volume: 55, isMuted: false } diff --git a/frontend/components/Common/Avatar.vue b/frontend/components/Common/Avatar.vue index 66cb757afc..0e7341ec7a 100644 --- a/frontend/components/Common/Avatar.vue +++ b/frontend/components/Common/Avatar.vue @@ -27,8 +27,6 @@ const props = withDefaults( width?: number }>(), { - service: null, - serviceUrl: null, width: 64 } ); diff --git a/frontend/components/Common/BitrateOptions.vue b/frontend/components/Common/BitrateOptions.vue index 1847fdc077..5948816942 100644 --- a/frontend/components/Common/BitrateOptions.vue +++ b/frontend/components/Common/BitrateOptions.vue @@ -70,8 +70,8 @@ - diff --git a/frontend/components/Common/GridLayout.vue b/frontend/components/Common/GridLayout.vue index fcf3d1eb23..db94f8e035 100644 --- a/frontend/components/Common/GridLayout.vue +++ b/frontend/components/Common/GridLayout.vue @@ -77,8 +77,6 @@ export interface GridLayoutProps { } const props = withDefaults(defineProps(), { - id: null, - apiUrl: null, paginated: false, loading: false, hideOnLoading: true, diff --git a/frontend/components/Common/Modal.vue b/frontend/components/Common/Modal.vue index fc39b6f38c..cb30868bfc 100644 --- a/frontend/components/Common/Modal.vue +++ b/frontend/components/Common/Modal.vue @@ -67,8 +67,7 @@ const props = withDefaults( { active: false, busy: false, - size: 'md', - title: null + size: 'md' } ); diff --git a/frontend/components/Common/ModalForm.vue b/frontend/components/Common/ModalForm.vue index 93315b7f08..1a8d15d8c4 100644 --- a/frontend/components/Common/ModalForm.vue +++ b/frontend/components/Common/ModalForm.vue @@ -89,8 +89,7 @@ const props = withDefaults( id: 'edit-modal', loading: false, disableSaveButton: false, - noEnforceFocus: false, - error: null + noEnforceFocus: false } ); diff --git a/frontend/components/Common/PaginationItem.vue b/frontend/components/Common/PaginationItem.vue index 4221e2ee6b..bcd4c43aab 100644 --- a/frontend/components/Common/PaginationItem.vue +++ b/frontend/components/Common/PaginationItem.vue @@ -33,7 +33,6 @@ const props = withDefaults( }>(), { page: 1, - label: null, active: false, disabled: false, } diff --git a/frontend/components/Common/PlayButton.vue b/frontend/components/Common/PlayButton.vue index 065f977f45..42f71ad7dc 100644 --- a/frontend/components/Common/PlayButton.vue +++ b/frontend/components/Common/PlayButton.vue @@ -26,12 +26,11 @@ const props = withDefaults( url: string, isStream?: boolean, isHls?: boolean, - iconClass?: stringm + iconClass?: string }>(), { isStream: false, - isHls: false, - iconClass: null + isHls: false } ); diff --git a/frontend/components/Common/Tab.vue b/frontend/components/Common/Tab.vue index 7147b52df3..ebff756a02 100644 --- a/frontend/components/Common/Tab.vue +++ b/frontend/components/Common/Tab.vue @@ -11,13 +11,7 @@ diff --git a/frontend/components/Common/Tabs.vue b/frontend/components/Common/Tabs.vue index 747f1d1715..83c3e3dfc4 100644 --- a/frontend/components/Common/Tabs.vue +++ b/frontend/components/Common/Tabs.vue @@ -42,7 +42,6 @@ import {TabParentProps, useTabParent} from "~/functions/tabs.ts"; const props = withDefaults( defineProps(), { - modelValue: null, navTabsClass: 'nav-tabs', contentClass: 'mt-3', destroyOnHide: false, diff --git a/frontend/components/Common/TimeCode.vue b/frontend/components/Common/TimeCode.vue index b82f7c7277..9033021b92 100644 --- a/frontend/components/Common/TimeCode.vue +++ b/frontend/components/Common/TimeCode.vue @@ -15,7 +15,7 @@ import {isEmpty, padStart} from 'lodash'; const props = withDefaults( defineProps<{ - modelValue?: string + modelValue?: string | number | null }>(), { modelValue: null, @@ -23,19 +23,19 @@ const props = withDefaults( ); const emit = defineEmits<{ - (e: 'update:modelValue', value: string | null): void + (e: 'update:modelValue', value: number | null): void }>(); -const parseTimeCode = (timeCode) => { +const parseTimeCode = (timeCode: string | number | null) => { if (timeCode !== '' && timeCode !== null) { - timeCode = padStart(timeCode, 4, '0'); + timeCode = padStart(String(timeCode), 4, '0'); return timeCode.substring(0, 2) + ':' + timeCode.substring(2); } return null; } -const convertToTimeCode = (time) => { +const convertToTimeCode = (time: string): number | null => { if (isEmpty(time)) { return null; } diff --git a/frontend/components/Common/Toast.vue b/frontend/components/Common/Toast.vue index 4f3ead6aab..e892a24eea 100644 --- a/frontend/components/Common/Toast.vue +++ b/frontend/components/Common/Toast.vue @@ -53,7 +53,6 @@ const props = withDefaults( variant?: string, }>(), { - title: null, variant: 'info', } ); diff --git a/frontend/components/Common/Waveform.vue b/frontend/components/Common/Waveform.vue index fdfdb7433d..99b108e7ba 100644 --- a/frontend/components/Common/Waveform.vue +++ b/frontend/components/Common/Waveform.vue @@ -66,16 +66,11 @@ import usePlayerVolume from "~/functions/usePlayerVolume"; import useShowVolume from "~/functions/useShowVolume.ts"; import MuteButton from "~/components/Common/MuteButton.vue"; -const props = withDefaults( - defineProps<{ - audioUrl: string, - waveformUrl: string, - waveformCacheUrl?: string, - }>(), - { - waveformCacheUrl: null - } -); +const props = defineProps<{ + audioUrl: string, + waveformUrl: string, + waveformCacheUrl?: string, +}>(); const emit = defineEmits(['ready']); diff --git a/frontend/components/Form/FormGroupCheckbox.vue b/frontend/components/Form/FormGroupCheckbox.vue index e210fe4fdc..743f466b32 100644 --- a/frontend/components/Form/FormGroupCheckbox.vue +++ b/frontend/components/Form/FormGroupCheckbox.vue @@ -51,15 +51,15 @@ - diff --git a/frontend/components/Form/FormGroupField.vue b/frontend/components/Form/FormGroupField.vue index e4fc25245f..e221ca972a 100644 --- a/frontend/components/Form/FormGroupField.vue +++ b/frontend/components/Form/FormGroupField.vue @@ -5,17 +5,14 @@ >