A self-hosted media server and file management system
Vue ffmpegfile-serverjellyfinlaravelmediamedia-playermedia-servermediabrowsermediaservermusicmusic-librarymusic-playermusicplayerself-hostedvuejs
chore: remove manual tab index values
aminnausina0c7e5481b39
diff --git a/resources/js/components/forms/EditFolder.vue b/resources/js/components/forms/EditFolder.vueindex 1e419720..89638619 100644--- a/resources/js/components/forms/EditFolder.vue+++ b/resources/js/components/forms/EditFolder.vue@@ -133,10 +133,10 @@ const handleSubmit = async () => {<div v-for="(field, index) in fields" :key="index" class="w-full" :class="field.class"><FormInputLabel :field="field" />- <FormTextArea v-if="field.type === 'textArea'" v-model="form.fields[field.name]" :field="field" :tabindex="index + 1" />- <DatePicker v-else-if="field.type === 'date'" v-model="form.fields[field.name]" :field="field" :tabindex="index + 1" />- <FormInputNumber v-else-if="field.type === 'number'" v-model="form.fields[field.name]" :field="field" :tabindex="index + 1" />- <FormInput v-else v-model="form.fields[field.name]" :field="field" :tabindex="index + 1" />+ <FormTextArea v-if="field.type === 'textArea'" v-model="form.fields[field.name]" :field="field" />+ <DatePicker v-else-if="field.type === 'date'" v-model="form.fields[field.name]" :field="field" />+ <FormInputNumber v-else-if="field.type === 'number'" v-model="form.fields[field.name]" :field="field" />+ <FormInput v-else v-model="form.fields[field.name]" :field="field" /><ul class="text-sm text-rose-600 dark:text-rose-400"><li v-for="(item, index) in form.errors[field.name]" :key="index">{{ item }}</li></ul>diff --git a/resources/js/components/forms/EditVideo.vue b/resources/js/components/forms/EditVideo.vueindex d606a735..05f84960 100755--- a/resources/js/components/forms/EditVideo.vue+++ b/resources/js/components/forms/EditVideo.vue@@ -169,7 +169,6 @@ watch(tagsQuery, () => {<button@click="$emit('handleFinish')"type="button"- tabindex="97"class="inline-flex items-center justify-center h-10 px-4 py-2 text-sm font-medium transition-colors border dark:border-neutral-600 rounded-md focus:outline-none":class="'focus:ring-1 focus:ring-neutral-100 dark:focus:ring-neutral-400 focus:ring-offset-1 hover:bg-neutral-100 dark:hover:bg-neutral-900'":disabled="form.processing"@@ -179,7 +178,6 @@ watch(tagsQuery, () => {<button@click="handleSubmit"type="button"- tabindex="98"class="inline-flex items-center justify-center h-10 px-4 py-2 text-sm font-medium text-white transition-colors border border-transparent rounded-md focus:outline-none":class="'focus:ring-1 focus:ring-violet-900 focus:ring-offset-1 bg-neutral-950 hover:bg-neutral-800 dark:hover:bg-neutral-900 '":disabled="form.processing"diff --git a/resources/js/components/inputs/FormInputNumber.vue b/resources/js/components/inputs/FormInputNumber.vueindex de8b64c2..ad8e16d9 100644--- a/resources/js/components/inputs/FormInputNumber.vue+++ b/resources/js/components/inputs/FormInputNumber.vue@@ -39,13 +39,11 @@ const decrementNumber = () => {:aria-autocomplete="field.autocomplete ? 'list' : 'none'":min="field.min ?? ''":max="field.max ?? ''"- :tabindex="tabindex ?? 0"v-model="model"/><span class="absolute top-0 right-0 h-full flex flex-col w-12"><button@click.prevent.stop="incrementNumber"- :tabindex="tabindex ?? 0"class="h-1/2 items-center justify-center flex hover:bg-neutral-200/50 hover:dark:bg-neutral-600 rounded-tr-md ring-inset focus:outline-none focus:ring-[0.125rem] focus:ring-indigo-400 dark:focus:ring-indigo-500":title="'Increment ' + field.name">@@ -53,7 +51,6 @@ const decrementNumber = () => {</button><button@click.prevent.stop="decrementNumber"- :tabindex="tabindex ?? 0"class="h-1/2 items-center justify-center flex hover:bg-neutral-200/50 hover:dark:bg-neutral-600 rounded-br-md ring-inset focus:outline-none focus:ring-[0.125rem] focus:ring-indigo-400 dark:focus:ring-indigo-500":title="'Decrement ' + field.name">diff --git a/resources/js/components/inputs/FormTextArea.vue b/resources/js/components/inputs/FormTextArea.vueindex de9fb03a..49f80f63 100755--- a/resources/js/components/inputs/FormTextArea.vue+++ b/resources/js/components/inputs/FormTextArea.vue@@ -27,7 +27,6 @@ const resize = () => {:title="field.name":required="field.required":placeholder="field.placeholder ?? 'Type your message here. I will resize based on the height content.'"- :tabindex="tabindex ?? 0"v-model="model"></textarea>diff --git a/resources/js/components/pinesUI/ButtonClipboard.vue b/resources/js/components/pinesUI/ButtonClipboard.vueindex 18897d98..f143c95b 100755--- a/resources/js/components/pinesUI/ButtonClipboard.vue+++ b/resources/js/components/pinesUI/ButtonClipboard.vue@@ -56,7 +56,6 @@ const copyToClipboard = async () => {</Transition><ButtonIcon@click="copyToClipboard()"- :tabindex="props.tabindex ?? 1"class="flex items-center justify-center h-8 w-9 text-xs group text-neutral-500 hover:text-neutral-600 dark:text-gray-300 dark:hover:text-gray-400 hover:bg-neutral-100 focus:!ring-green-600/50"><template #icon>diff --git a/resources/js/components/pinesUI/DatePicker.vue b/resources/js/components/pinesUI/DatePicker.vueindex 88ac4cd3..59565b9b 100644--- a/resources/js/components/pinesUI/DatePicker.vue+++ b/resources/js/components/pinesUI/DatePicker.vue@@ -47,7 +47,6 @@ watch(:required="field?.required":placeholder="field?.placeholder ?? 'Select Date'":aria-autocomplete="field?.autocomplete ? 'list' : 'none'"- :tabindex="tabindex ?? 0"v-model="model"readonly/>diff --git a/resources/js/components/video/VideoInfoPanel.vue b/resources/js/components/video/VideoInfoPanel.vueindex ba6bda36..7c1344f8 100755--- a/resources/js/components/video/VideoInfoPanel.vue+++ b/resources/js/components/video/VideoInfoPanel.vue@@ -236,7 +236,7 @@ watch(<div class="py-3">Copy link to clipboard to share it.</div></template><template #controls>- <ButtonClipboard :text="videoURL" tabindex="1" />+ <ButtonClipboard :text="videoURL" /></template></ModalBase></template>diff --git a/resources/js/components/video/VideoPartyPanel.vue b/resources/js/components/video/VideoPartyPanel.vueindex fa6bc115..0cadaaad 100644--- a/resources/js/components/video/VideoPartyPanel.vue+++ b/resources/js/components/video/VideoPartyPanel.vue@@ -64,8 +64,8 @@ const handleKickUser = (id: number) => {<section class="flex justify-between"><h3>Party ({{ 1 + partyUsers.length }}/8)</h3><span class="flex gap-1 justify-end">- <VideoButton :icon="ProiconsAdd" title="Invite to Party" tabindex="1" @click="toast('Would open friends list.', { type: 'info' })" />- <VideoButton :icon="LucideLogOut" title="Leave Party" tabindex="2" @click="toast('Would leave party.', { type: 'info' })" />+ <VideoButton :icon="ProiconsAdd" title="Invite to Party" @click="toast('Would open friends list.', { type: 'info' })" />+ <VideoButton :icon="LucideLogOut" title="Leave Party" @click="toast('Would leave party.', { type: 'info' })" /></span></section><VideoPartyItem v-for="user in [userData, ...partyUsers]" :user="user" :key="user.id" :leader-id="1" @kick-user="handleKickUser" />diff --git a/resources/js/views/VideoView.vue b/resources/js/views/VideoView.vueindex 3c550c5a..4aec169e 100755--- a/resources/js/views/VideoView.vue+++ b/resources/js/views/VideoView.vue@@ -191,7 +191,7 @@ watch(() => selectedSideBar.value, cycleSideBar, { immediate: false });<div class="py-3">Copy link to clipboard to share it.</div></template><template #controls>- <ButtonClipboard :text="cachedVideoUrl" tabindex="1" />+ <ButtonClipboard :text="cachedVideoUrl" /></template></ModalBase></section>