diff --git a/serv_nginx/bbvue/src/main.js b/serv_nginx/bbvue/src/main.js
index b56d04c..355cb3e 100644
--- a/serv_nginx/bbvue/src/main.js
+++ b/serv_nginx/bbvue/src/main.js
@@ -9,90 +9,6 @@ import WriteLogo from './components/writeLogo.vue'
const app = createApp(App)
-// Функция для загрузки Яндекс.Метрики
-function loadYandexMetrika() {
- return new Promise((resolve) => {
- if (window.ym) {
- resolve();
- return;
- }
-
- // Создаем скрипт Яндекс.Метрики
- const script = document.createElement('script');
- script.type = 'text/javascript';
- script.innerHTML = `
- (function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
- m[i].l=1*new Date();
- k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
- (window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
-
- ym(104775055, "init", {
- clickmap:true,
- trackLinks:true,
- accurateTrackBounce:true,
- webvisor:true
- });
- `;
- document.head.appendChild(script);
-
- // Даем время на загрузку
- setTimeout(resolve, 500);
- });
-}
-
-
-// Функция для загрузки Google Analytics
-function loadGoogleAnalytics() {
- return new Promise((resolve) => {
- if (window.gtag) {
- resolve();
- return;
- }
-
- // Первый скрипт GA
- const script1 = document.createElement('script');
- script1.async = true;
- script1.src = 'https://www.googletagmanager.com/gtag/js?id=G-r4bMCbf4zEwF7CJQu2XDn_9_G86ZL248xgWHavTY8iY';
- document.head.appendChild(script1);
-
- // Второй скрипт GA
- const script2 = document.createElement('script');
- script2.innerHTML = `
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', 'G-r4bMCbf4zEwF7CJQu2XDn_9_G86ZL248xgWHavTY8iY');
- `;
- document.head.appendChild(script2);
-
- setTimeout(resolve, 500);
- });
-}
-// Загружаем метрики и монтируем приложение
-Promise.all([loadYandexMetrika(), loadGoogleAnalytics()]).then(() => {
- // Отслеживание переходов по маршрутам
- router.afterEach((to) => {
- // Яндекс.Метрика
- if (window.ym && typeof window.ym === 'function') {
- setTimeout(() => {
- window.ym(104775055, 'hit', to.fullPath);
- }, 100);
- }
-
- // Google Analytics
- if (window.gtag && typeof window.gtag === 'function') {
- setTimeout(() => {
- window.gtag('config', 'G-r4bMCbf4zEwF7CJQu2XDn_9_G86ZL248xgWHavTY8iY', {
- page_path: to.fullPath
- });
- }, 100);
- }
- });
-
- app.use(router);
- app.mount('#app');
-});
-
// Регистрируем компоненты глобально
app.component('WriteLogo', WriteLogo)
diff --git a/serv_nginx/bbvue/src/router/index.js b/serv_nginx/bbvue/src/router/index.js
index b07e0ed..b87eafa 100644
--- a/serv_nginx/bbvue/src/router/index.js
+++ b/serv_nginx/bbvue/src/router/index.js
@@ -5,6 +5,24 @@ import { useAuthStore } from '../stores/auth'
const router = createRouter({
history: createWebHistory(import.meta.env.BASE_URL),
routes: [
+ {
+ path: '/verify-email',
+ name: 'VerifyEmail',
+ component: () => import('../views/VerifayEmail.vue'),
+ meta: { guestOnly: true } // Только для неавторизованных
+ },
+ {
+ path: '/reset-password',
+ name: 'ResetPassword',
+ component: () => import('../views/PasswordReset.vue'),
+ meta: { guestOnly: true } // Только для неавторизованных
+ },
+ {
+ path: '/forgot-password',
+ name: 'ForgotPassword',
+ component: () => import('../views/ForgotPassword.vue'),
+ meta: { guestOnly: true }
+ },
{
path: '/',
name: 'Home',
diff --git a/serv_nginx/bbvue/src/views/ForgotPassword.vue b/serv_nginx/bbvue/src/views/ForgotPassword.vue
new file mode 100644
index 0000000..e2b6636
--- /dev/null
+++ b/serv_nginx/bbvue/src/views/ForgotPassword.vue
@@ -0,0 +1,60 @@
+
+ 🔐 Забыли пароль?
+
+
+
+
+
+
Нет аккаунта?
Ваш email не подтвержден
+ +