feat: 시안 B 화면을 기본 화면으로, Hey API로 백엔드 연결
- 예전 화면(/, /a)과 목업 데이터를 지우고 시안 B 를 / 로 - @hey-api/openapi-ts 로 타입·TanStack Query 함수 생성, 토큰·401 갱신 처리 - 공유는 기본 공유창, 없으면 링크 복사 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
e134295ce5
commit
f8b47f064a
147 files changed
+12350
No files matched your search
@@ -0,0 +1,22 @@
|
||||
import { defineConfig } from '@hey-api/openapi-ts'
|
||||
|
||||
export default defineConfig({
|
||||
input: process.env.OPENAPI_INPUT ?? 'http://localhost:9810/openapi.json',
|
||||
output: 'src/api/client',
|
||||
parser: {
|
||||
patch: {
|
||||
// FastAPI operationId("get_feed_v1_feed_get")에서 "_v1_" 앞만 camelCase로 → getFeed / getFeedOptions / addCommentMutation
|
||||
operations: (_method, _path, operation) => {
|
||||
const id = operation.operationId ?? ''
|
||||
const base = id.split('_v1_')[0] || id
|
||||
operation.operationId = base.replace(/_([a-z])/g, (_m, c: string) => c.toUpperCase())
|
||||
},
|
||||
},
|
||||
},
|
||||
plugins: [
|
||||
{ name: '@hey-api/client-fetch', throwOnError: true },
|
||||
{ name: '@hey-api/typescript', enums: 'javascript' },
|
||||
'@hey-api/sdk',
|
||||
'@tanstack/react-query',
|
||||
],
|
||||
})
|
||||
Reference in new issue
Block a user