-
Notifications
You must be signed in to change notification settings - Fork 0
feat(UI):Add login,signup and forget forms #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
❌ Deploy Preview for cfp-portal failed.
|
pages/forgot-password/index.vue
Outdated
| const email = ref('') | ||
| const error = ref('') | ||
| const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can se there is validation for email in each file can you move all the validation to util
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have moved the validation to util
pages/forgot-password/index.vue
Outdated
| <input v-model="email" type="text" placeholder="Enter your email" > | ||
| <span>{{ error }}</span> | ||
|
|
||
| <button type="submit">Send Reset Link</button> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you use pf elements across all the three files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have used pf elements and pushed in latest commit
pages/forgot-password/index.vue
Outdated
|
|
||
| <button type="submit">Send Reset Link</button> | ||
|
|
||
| <router-link to="/login" class="back-link">Back to Login</router-link> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why are you using in Nuxt ? I guess is available.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have replaced this with NuxtLink
| <div> | ||
| <h1>Deafult Header</h1> | ||
|
|
||
| <slot /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
layout is use for common skeleton if you are just using slot I think there is no need of layout can render pages directly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still I can see there are no changes in this files
pages/forgot-password/index.vue
Outdated
| } | ||
| error.value = '' | ||
| alert('Reset link sent to your email!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use any pf-element
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i have used pf elements and pushed in latest commit
pages/login/index.vue
Outdated
|
|
||
| <button type="submit">Login</button> | ||
|
|
||
| <a href="/forgot-password" class="forgot-link">Forgot password?</a> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
try to use nuxtlink
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have replaced this with NuxtLink and pushed in latest commit
pages/login/index.vue
Outdated
| errors.value = newErrors | ||
| if (Object.keys(newErrors).length === 0) { | ||
| alert('Login successful!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use any pf-element
pages/signup/index.vue
Outdated
| // } catch (err) { | ||
| // alert(err?.data?.message || 'Registration failed.') | ||
| // } | ||
| alert('Registration successful!') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use any pf-element
|
Please rebase |
pages/forgot-password/index.vue
Outdated
| const PUBLIC_KEY = 'pAWKcYpKic8yzixYp' | ||
| function handleSubmit() { | ||
| if (!email.value.trim()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we can create the email validation function in the util itself and use wherever required i can see its repeating in each file
pages/forgot-password/index.vue
Outdated
| const SERVICE_ID = 'service_r6tk9ii' | ||
| const TEMPLATE_ID = 'template_2dmls66' | ||
| const PUBLIC_KEY = 'pAWKcYpKic8yzixYp' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
better to move this thing in the env
pages/forgot-password/index.vue
Outdated
| <pf-card class="form-card"> | ||
| <h1>Reset your Password</h1> | ||
| <form @submit.prevent="handleSubmit"> | ||
| <input v-model="email" type="text" placeholder="Enter your email"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can look the replace this too with pf elements
5fdaa49 to
6d46baf
Compare
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
No description provided.