mirror of
https://github.com/mmahdium/TorrentMax.git
synced 2025-12-20 04:33:53 +01:00
Improve Accessibility
This commit is contained in:
@@ -60,6 +60,7 @@ function handleSubmit() {
|
||||
<!-- Right circular button -->
|
||||
<button
|
||||
class="ml-3 w-10 h-10 flex items-center justify-center rounded-full bg-primary text-accent hover:scale-110 transition-transform duration-300 shadow-md"
|
||||
aria-label="Submit magnet link"
|
||||
@click="handleSubmit"
|
||||
>
|
||||
<svg
|
||||
|
||||
@@ -14,6 +14,7 @@ function handleFileChange(e: Event) {
|
||||
<fieldset class="fieldset w-full max-w-2/3">
|
||||
<legend class="fieldset-legend">Pick a file</legend>
|
||||
<input
|
||||
id="torrent-file"
|
||||
type="file"
|
||||
class="file-input file-input-bordered w-full border-primary bg-base-100 file-input-md"
|
||||
accept=".torrent,application/x-bittorrent"
|
||||
|
||||
@@ -23,7 +23,7 @@ export default defineEventHandler(async (event) => {
|
||||
id: maxedMagnet.xt.slice(9),
|
||||
maxedMagnet: getMagnetUrl(maxedMagnet),
|
||||
};
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
} catch (error: any) {
|
||||
throw createError({
|
||||
statusCode: 400,
|
||||
|
||||
Reference in New Issue
Block a user