Commit Graph

5 Commits

Author SHA1 Message Date
Oscar
b98387ea58 eslint --fix 2026-06-08 15:09:53 +03:00
Oscar
10d696f4ca refactor(composables): migrate stores →
composables, align with updated API

  - Replace deleted Pinia stores with
  module-level singleton composables
    (useAuth, useChat, useFeed, useUi) — all
  return reactive({...}) so
    Refs auto-unwrap in both templates and
  script code

  - Align entire codebase with new
  swagger-generated api.ts types:
    · TagDto.value  (was .name) — FeedCard,
  FeedFilters, ProfileEditor,
      ProfileSetupView, MyProfileView,
  ProfileDetailView, useUi
    · MediaItemDto[] / .path  (was mediaUrls[],
  avatarUrl) — FeedCard,
      FeedView, MyProfileView,
  ProfileDetailView
    · ChatDto.status 'active'|'closed'  (was
  isActive: boolean) —
      ChatRoomView, ChatsListView
    · MessageDto.profileId  (was senderId) —
  ChatRoomView, ChatBubble
    · MeResponseDto → fetchMe now calls /me +
  /profiles/my in parallel
    · Token refresh: res.data.data.accessToken
  (nested wrapper) —
      router/index.ts aligned with client.ts
  interceptor

  - Fix FeedCard, ChatBubble imports pointing
  to deleted store files
  - Fix ProfileSetupView form type to avoid
  string|undefined on v-model
  - Fix history.back() → window.history.back()
  via goBack() helper
  - Fix chat.unreadCount possibly-undefined
  guard in ChatsListView
  - Fix MapPicker Leaflet icon cast (as unknown
  as Record<string, unknown>)
2026-06-08 15:01:54 +03:00
Oscar
f5e34f3a97 feat(src/stores/auth.store.ts): обновляет логику получения пользователя после входа и регистрации
 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"
2026-06-08 14:17:45 +03:00
Oscar
4534f54eb6 feat(package.json): добавляет команду для генерации API с помощью swagger-typescript-api 2026-06-08 13:24:30 +03:00
Oscar
637dddf656 init 2026-06-08 13:23:20 +03:00