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