A replica of Keytrace

Strip @s from the login

orta ae9ef01c 0ff64395

+3 -2
+3 -2
apps/keytrace.dev/components/ui/LoginModal.vue
··· 29 29 <form @submit.prevent="handleLogin"> 30 30 <input 31 31 ref="handleInput" 32 - v-model="handle" 32 + :value="handle" 33 + @input="handle = ($event.target as HTMLInputElement).value.replace(/^@/, '')" 33 34 type="text" 34 35 placeholder="you.bsky.social" 35 36 class="w-full px-4 py-2.5 rounded-lg bg-kt-inset border border-zinc-800 text-sm text-zinc-200 font-mono placeholder:text-zinc-600 focus:outline-none focus:border-violet-500 focus:ring-1 focus:ring-violet-500 transition-all" ··· 116 117 117 118 function handleLogin() { 118 119 if (handle.value) { 119 - login(handle.value); 120 + login(handle.value.replace(/^@/, "")); 120 121 close(); 121 122 } 122 123 }