Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Sharkey
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Dima Krasner
Sharkey
Commits
0513ff8b
Commit
0513ff8b
authored
1 year ago
by
syuilo
Browse files
Options
Downloads
Patches
Plain Diff
refactor
parent
62fe3bfb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
packages/frontend/src/components/MkForgotPassword.vue
+20
-35
20 additions, 35 deletions
packages/frontend/src/components/MkForgotPassword.vue
with
20 additions
and
35 deletions
packages/frontend/src/components/MkForgotPassword.vue
+
20
−
35
View file @
0513ff8b
...
...
@@ -8,27 +8,28 @@
>
<template
#header
>
{{
i18n
.
ts
.
forgotPassword
}}
</
template
>
<form
v-if=
"instance.enableEmail"
class=
"bafeceda"
@
submit.prevent=
"onSubmit"
>
<div
class=
"main _gaps_m"
>
<MkInput
v-model=
"username"
type=
"text"
pattern=
"^[a-zA-Z0-9_]+$"
:spellcheck=
"false"
autofocus
required
>
<
template
#label
>
{{
i18n
.
ts
.
username
}}
</
template
>
<
template
#prefix
>
@
</
template
>
</MkInput>
<MkSpacer
:marginMin=
"20"
:marginMax=
"28"
>
<form
v-if=
"instance.enableEmail"
@
submit.prevent=
"onSubmit"
>
<div
class=
"_gaps_m"
>
<MkInput
v-model=
"username"
type=
"text"
pattern=
"^[a-zA-Z0-9_]+$"
:spellcheck=
"false"
autofocus
required
>
<
template
#label
>
{{
i18n
.
ts
.
username
}}
</
template
>
<
template
#prefix
>
@
</
template
>
</MkInput>
<MkInput
v-model=
"email"
type=
"email"
:spellcheck=
"false"
required
>
<
template
#label
>
{{
i18n
.
ts
.
emailAddress
}}
</
template
>
<
template
#caption
>
{{
i18n
.
ts
.
_forgotPassword
.
enterEmail
}}
</
template
>
</MkInput>
<MkInput
v-model=
"email"
type=
"email"
:spellcheck=
"false"
required
>
<
template
#label
>
{{
i18n
.
ts
.
emailAddress
}}
</
template
>
<
template
#caption
>
{{
i18n
.
ts
.
_forgotPassword
.
enterEmail
}}
</
template
>
</MkInput>
<MkButton
type=
"submit"
:disabled=
"processing"
primary
style=
"margin: 0 auto;"
>
{{ i18n.ts.send }}
</MkButton>
</div>
<div
class=
"sub"
>
<MkA
to=
"/about"
class=
"_link"
>
{{ i18n.ts._forgotPassword.ifNoEmail }}
</MkA>
<MkButton
type=
"submit"
rounded
:disabled=
"processing"
primary
style=
"margin: 0 auto;"
>
{{ i18n.ts.send }}
</MkButton>
<MkInfo>
{{ i18n.ts._forgotPassword.ifNoEmail }}
</MkInfo>
</div>
</form>
<div
v-else
>
{{ i18n.ts._forgotPassword.contactAdmin }}
</div>
</form>
<div
v-else
class=
"bafecedb"
>
{{ i18n.ts._forgotPassword.contactAdmin }}
</div>
</MkSpacer>
</MkModalWindow>
</template>
...
...
@@ -37,6 +38,7 @@ import { } from 'vue';
import
MkModalWindow
from
'
@/components/MkModalWindow.vue
'
;
import
MkButton
from
'
@/components/MkButton.vue
'
;
import
MkInput
from
'
@/components/MkInput.vue
'
;
import
MkInfo
from
'
@/components/MkInfo.vue
'
;
import
*
as
os
from
'
@/os
'
;
import
{
instance
}
from
'
@/instance
'
;
import
{
i18n
}
from
'
@/i18n
'
;
...
...
@@ -62,20 +64,3 @@ async function onSubmit() {
dialog
.
close
();
}
</
script
>
<
style
lang=
"scss"
scoped
>
.bafeceda
{
>
.main
{
padding
:
24px
;
}
>
.sub
{
border-top
:
solid
0
.5px
var
(
--
divider
);
padding
:
24px
;
}
}
.bafecedb
{
padding
:
24px
;
}
</
style
>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment