mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 19:04:43 +00:00
Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 4e39df490a | |||
| 9e1b0b5da1 | |||
|
|
2496867d21 | ||
|
|
c887a05c0b |
@@ -10,9 +10,6 @@
|
|||||||
<a href="https://github.com/robonen/metr-frontend/actions">
|
<a href="https://github.com/robonen/metr-frontend/actions">
|
||||||
<img src="https://github.com/robonen/metr-frontend/actions/workflows/release.yml/badge.svg" title="Release status">
|
<img src="https://github.com/robonen/metr-frontend/actions/workflows/release.yml/badge.svg" title="Release status">
|
||||||
</a>
|
</a>
|
||||||
<a href="https://github.com/robonen/metr-frontend/actions">
|
|
||||||
<img src="https://github.com/robonen/metr-frontend/actions/workflows/test.yml/badge.svg" title="Lint status">
|
|
||||||
</a>
|
|
||||||
<a href="https://github.com/robonen/metr-frontend/releases">
|
<a href="https://github.com/robonen/metr-frontend/releases">
|
||||||
<img src="https://img.shields.io/github/v/release/robonen/metr-frontend?display_name=tag&label=Last%20Version&color=brightgreen" title="Last version">
|
<img src="https://img.shields.io/github/v/release/robonen/metr-frontend?display_name=tag&label=Last%20Version&color=brightgreen" title="Last version">
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@@ -144,13 +144,17 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
if (this.$store.getters.userAuthenticated) {
|
||||||
|
this.$router.push('/profile');
|
||||||
|
return;
|
||||||
|
}
|
||||||
await this.addSearchParam(this.$route.query);
|
await this.addSearchParam(this.$route.query);
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'$route.query'(value) {
|
'$route.query'(value) {
|
||||||
this.addSearchParam(value);
|
this.addSearchParam(value);
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -150,6 +150,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
async mounted() {
|
async mounted() {
|
||||||
|
if (this.$store.getters.userAuthenticated) {
|
||||||
|
this.$router.push('/profile');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
const id = this.$route.params.id;
|
const id = this.$route.params.id;
|
||||||
|
|
||||||
if (id === undefined)
|
if (id === undefined)
|
||||||
|
|||||||
@@ -81,6 +81,12 @@ export default {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
mounted() {
|
||||||
|
if (this.$store.getters.userAuthenticated) {
|
||||||
|
this.$router.push('/profile');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>>
|
</script>>
|
||||||
|
|
||||||
|
|||||||
30
frontend/src/views/RecoveryNewPassword.vue
Normal file
30
frontend/src/views/RecoveryNewPassword.vue
Normal file
@@ -0,0 +1,30 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container">
|
||||||
|
<div class="logo">
|
||||||
|
<div class="logoMetr">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="title">
|
||||||
|
<h2>Восстановление пароля</h2>
|
||||||
|
</div>
|
||||||
|
<form action="" method="get" class="form__example">
|
||||||
|
<div class="form__example">
|
||||||
|
<label for="name"></label>
|
||||||
|
<input class="login" type="text" name="name" id="name" placeholder="Новый пароль" required>
|
||||||
|
</div>
|
||||||
|
<div class="form__example">
|
||||||
|
<label for="email"></label>
|
||||||
|
<input class="login" type="email" name="email" id="email" placeholder="Подтвердите пароль" required>
|
||||||
|
</div>
|
||||||
|
<div class="form__example">
|
||||||
|
<input class="form__input" type="submit" value="Сохранить пароль">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
26
frontend/src/views/RecoveryPasswordAccept.vue
Normal file
26
frontend/src/views/RecoveryPasswordAccept.vue
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
<template>
|
||||||
|
<div class="container">
|
||||||
|
<div class="logo">
|
||||||
|
<div class="logoMetr">
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="title">
|
||||||
|
<h2>Восстановление пароля</h2>
|
||||||
|
</div>
|
||||||
|
<form action="" method="get" class="form__example">
|
||||||
|
<div class="form__example">
|
||||||
|
<label for="name"></label>
|
||||||
|
<input class="login" type="text" name="name" id="name" placeholder="Введите код подтверждения" required>
|
||||||
|
</div>
|
||||||
|
<div class="form__example">
|
||||||
|
<input class="form__input" type="submit" value="Принять">
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
</style>
|
||||||
Reference in New Issue
Block a user