mirror of
https://github.com/robonen/metr.git
synced 2026-03-20 10:54:41 +00:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f8758a9b56 | |||
| 4e39df490a | |||
| 9e1b0b5da1 | |||
|
|
2496867d21 | ||
|
|
c887a05c0b |
@@ -1,18 +1,13 @@
|
||||
# Metr
|
||||
|
||||
<p align="center">
|
||||
<a href="https://forma-web.ru">
|
||||
<img alt="Logo" src="metr/logo.svg" width="300" title="Logo">
|
||||
</a>
|
||||
<img alt="Logo" src="metr/logo.svg" width="300" title="Logo">
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<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">
|
||||
</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">
|
||||
<img src="https://img.shields.io/github/v/release/robonen/metr-frontend?display_name=tag&label=Last%20Version&color=brightgreen" title="Last version">
|
||||
</a>
|
||||
|
||||
@@ -144,13 +144,17 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
if (this.$store.getters.userAuthenticated) {
|
||||
this.$router.push('/profile');
|
||||
return;
|
||||
}
|
||||
await this.addSearchParam(this.$route.query);
|
||||
},
|
||||
watch: {
|
||||
'$route.query'(value) {
|
||||
this.addSearchParam(value);
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
|
||||
@@ -150,6 +150,11 @@ export default {
|
||||
}
|
||||
},
|
||||
async mounted() {
|
||||
if (this.$store.getters.userAuthenticated) {
|
||||
this.$router.push('/profile');
|
||||
return;
|
||||
}
|
||||
|
||||
const id = this.$route.params.id;
|
||||
|
||||
if (id === undefined)
|
||||
|
||||
@@ -81,6 +81,12 @@ export default {
|
||||
});
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
if (this.$store.getters.userAuthenticated) {
|
||||
this.$router.push('/profile');
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
</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