From f5e34f3a97c3cb12b53f34510391805539f199fc Mon Sep 17 00:00:00 2001 From: Oscar Date: Mon, 8 Jun 2026 14:17:45 +0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(src/stores/auth.store.ts):=20?= =?UTF-8?q?=D0=BE=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D1=8F=D0=B5=D1=82=20=D0=BB?= =?UTF-8?q?=D0=BE=D0=B3=D0=B8=D0=BA=D1=83=20=D0=BF=D0=BE=D0=BB=D1=83=D1=87?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE?= =?UTF-8?q?=D0=B2=D0=B0=D1=82=D0=B5=D0=BB=D1=8F=20=D0=BF=D0=BE=D1=81=D0=BB?= =?UTF-8?q?=D0=B5=20=D0=B2=D1=85=D0=BE=D0=B4=D0=B0=20=D0=B8=20=D1=80=D0=B5?= =?UTF-8?q?=D0=B3=D0=B8=D1=81=D1=82=D1=80=D0=B0=D1=86=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ✨ feat(src/components/layout/TauriTitlebar.vue): изменяет название приложения с "Daiting" на "Dating" ✨ feat(src/components/layout/SideNav.vue): изменяет название приложения с "Daiting" на "Dating" ✨ fix(README.md): исправляет название приложения с "Daiting" на "Dating" ✨ fix(src/api/client.ts): обновляет базовый URL API с 'localhost:3000' на 'localhost:1337' ✨ fix(src/views/auth/LoginView.vue): изменяет название приложения с "Daiting" на "Dating" ✨ fix(src/views/auth/RegisterView.vue): изменяет название приложения с "Daiting" на "Dating" ✨ fix(src-tauri/Cargo.toml): исправляет описание приложения с "Daiting" на "Dating" ✨ fix(src-tauri/tauri.conf.json): изменяет имя продукта с "Daiting" на "Dating" ✨ fix(vite.config.ts): обновляет порт разработки с 1420 на 3000 ✨ fix(index.html): изменяет заголовок страницы с "Daiting" на "Dating" ✨ fix(dating-app-frontend-prompt.md): исправляет название приложения с "Daiting" на "Dating" ✨ fix(PRODUCT.md): изменяет название приложения с "Daiting" на "Dating" --- PRODUCT.md | 2 +- README.md | 6 +++--- dating-app-frontend-prompt.md | 2 +- index.html | 2 +- src-tauri/Cargo.toml | 2 +- src-tauri/tauri.conf.json | 8 ++++---- src/api/client.ts | 13 +++++++++---- src/components/layout/SideNav.vue | 2 +- src/components/layout/TauriTitlebar.vue | 2 +- src/stores/auth.store.ts | 11 +++-------- src/views/auth/LoginView.vue | 2 +- src/views/auth/RegisterView.vue | 2 +- vite.config.ts | 2 +- 13 files changed, 28 insertions(+), 28 deletions(-) diff --git a/PRODUCT.md b/PRODUCT.md index 32202e1..939a272 100644 --- a/PRODUCT.md +++ b/PRODUCT.md @@ -10,7 +10,7 @@ Young adults (18–35) in Russian-speaking markets looking for genuine human con ## Product Purpose -Daiting is a dating app for meaningful connections. It replaces the swipe-factory aesthetic with an editorial, intentional experience. Success = users move from match to real-world date, and the app gets out of the way once that happens. +Dating is a dating app for meaningful connections. It replaces the swipe-factory aesthetic with an editorial, intentional experience. Success = users move from match to real-world date, and the app gets out of the way once that happens. ## Brand Personality diff --git a/README.md b/README.md index 79d7f9c..e6c35a7 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Daiting — Frontend +# Dating — Frontend Vue 3 + Vite + Tauri v2. Работает как PWA в браузере и как нативное десктопное приложение (Windows / macOS / Linux). @@ -39,7 +39,7 @@ cd dating-app-frontend # Установить зависимости pnpm install -# Запустить в браузере (порт 1420) +# Запустить в браузере (порт 3000) (old 1420) pnpm dev # Запустить с Tauri (нативное окно) @@ -272,7 +272,7 @@ const feed = await apiClient.api.feedControllerGetFeed({ ## Скрипты ```bash -pnpm dev # Vite dev server, порт 1420 +pnpm dev # Vite dev server, порт 3000 pnpm build # vue-tsc + vite build → dist/ pnpm preview # Превью prod-сборки pnpm tauri dev # Tauri dev window (запускает pnpm dev внутри) diff --git a/dating-app-frontend-prompt.md b/dating-app-frontend-prompt.md index 0c786d2..1be5f32 100644 --- a/dating-app-frontend-prompt.md +++ b/dating-app-frontend-prompt.md @@ -2,7 +2,7 @@ ## Context & Orientation -You are building the complete frontend for a dating application called **Daiting**. The backend is already implemented. The generated API client lives at `src/api/api.ts` — use it as the source of truth for all endpoint shapes, DTOs, and types. Do not re-declare types that already exist in the API client; import them. +You are building the complete frontend for a dating application called **Dating**. The backend is already implemented. The generated API client lives at `src/api/api.ts` — use it as the source of truth for all endpoint shapes, DTOs, and types. Do not re-declare types that already exist in the API client; import them. Project root: `C:\MyApps\dating-app-frontend` Package manager: **pnpm** diff --git a/index.html b/index.html index 35d7ad8..23cb104 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,7 @@ - Daiting + Dating response, + (response) => { + if (response.data !== null && typeof response.data === 'object' && 'data' in response.data) { + response.data = response.data.data; + } + return response; + }, async (error) => { const originalRequest = error.config as InternalAxiosRequestConfig & { _retry?: boolean }; @@ -62,11 +67,11 @@ axiosInstance.interceptors.response.use( } try { - const res = await axios.post<{ accessToken: string; refreshToken: string }>( + const res = await axios.post<{ data: { accessToken: string; refreshToken: string } }>( `${BASE_URL}/api/v1/auth/refresh`, { refreshToken }, ); - const { accessToken, refreshToken: newRefresh } = res.data; + const { accessToken, refreshToken: newRefresh } = res.data.data; _setAccessToken(accessToken); localStorage.setItem('refreshToken', newRefresh); _processQueue(null, accessToken); diff --git a/src/components/layout/SideNav.vue b/src/components/layout/SideNav.vue index b4fcc08..218546f 100644 --- a/src/components/layout/SideNav.vue +++ b/src/components/layout/SideNav.vue @@ -50,7 +50,7 @@ function toggle() {
- Daiting + Dating
diff --git a/src/components/layout/TauriTitlebar.vue b/src/components/layout/TauriTitlebar.vue index 9402751..7d43321 100644 --- a/src/components/layout/TauriTitlebar.vue +++ b/src/components/layout/TauriTitlebar.vue @@ -31,7 +31,7 @@ async function closeWindow() { class="titlebar" data-tauri-drag-region > - Daiting + Dating