mirror of
				https://github.com/mmahdium/TorrentMax.git
				synced 2025-11-04 02:58:13 +01:00 
			
		
		
		
	Improve Accessibility
This commit is contained in:
		@@ -60,6 +60,7 @@ function handleSubmit() {
 | 
				
			|||||||
      <!-- Right circular button -->
 | 
					      <!-- Right circular button -->
 | 
				
			||||||
      <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"
 | 
					        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"
 | 
					        @click="handleSubmit"
 | 
				
			||||||
      >
 | 
					      >
 | 
				
			||||||
        <svg
 | 
					        <svg
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,6 +14,7 @@ function handleFileChange(e: Event) {
 | 
				
			|||||||
    <fieldset class="fieldset w-full max-w-2/3">
 | 
					    <fieldset class="fieldset w-full max-w-2/3">
 | 
				
			||||||
      <legend class="fieldset-legend">Pick a file</legend>
 | 
					      <legend class="fieldset-legend">Pick a file</legend>
 | 
				
			||||||
      <input
 | 
					      <input
 | 
				
			||||||
 | 
					        id="torrent-file"
 | 
				
			||||||
        type="file"
 | 
					        type="file"
 | 
				
			||||||
        class="file-input file-input-bordered w-full border-primary bg-base-100 file-input-md"
 | 
					        class="file-input file-input-bordered w-full border-primary bg-base-100 file-input-md"
 | 
				
			||||||
        accept=".torrent,application/x-bittorrent"
 | 
					        accept=".torrent,application/x-bittorrent"
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -23,7 +23,7 @@ export default defineEventHandler(async (event) => {
 | 
				
			|||||||
      id: maxedMagnet.xt.slice(9),
 | 
					      id: maxedMagnet.xt.slice(9),
 | 
				
			||||||
      maxedMagnet: getMagnetUrl(maxedMagnet),
 | 
					      maxedMagnet: getMagnetUrl(maxedMagnet),
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
 | 
					    // eslint-disable-next-line @typescript-eslint/no-explicit-any
 | 
				
			||||||
  } catch (error: any) {
 | 
					  } catch (error: any) {
 | 
				
			||||||
    throw createError({
 | 
					    throw createError({
 | 
				
			||||||
      statusCode: 400,
 | 
					      statusCode: 400,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user