tangled
alpha
login
or
join now
orta.io
/
keytrace.dev
4
fork
atom
A replica of Keytrace
4
fork
atom
overview
issues
pulls
pipelines
Strip @s from the login
orta
2 weeks ago
ae9ef01c
0ff64395
+3
-2
1 changed file
expand all
collapse all
unified
split
apps
keytrace.dev
components
ui
LoginModal.vue
+3
-2
apps/keytrace.dev/components/ui/LoginModal.vue
reviewed
···
29
29
<form @submit.prevent="handleLogin">
30
30
<input
31
31
ref="handleInput"
32
32
-
v-model="handle"
32
32
+
:value="handle"
33
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
119
-
login(handle.value);
120
120
+
login(handle.value.replace(/^@/, ""));
120
121
close();
121
122
}
122
123
}