[chore] solution,admin,ontology: 코드 주석을 한 줄로 — 히스토리 주석 삭제
여러 줄 주석이 설명보다 경위(예전·실측·지적)를 적고 있어 읽는 사람이 결론을 찾기 어려웠다. - ts·tsx·js·mjs·css·py 478개: 여러 줄 주석은 첫 문장 한 줄로, 과거형·날짜 문장은 삭제 - 주석 위치는 TypeScript 파서·파이썬 tokenize/ast 로 찾는다 — 문자열 안의 # · /* 는 건드리지 않는다 - eslint·ts·noqa·type: ignore 같은 지시 주석은 그대로 둔다 파이썬 275개 정리 전후 AST 동일, TS 298개 주석 뺀 토큰 동일(빈 JSX 주석 10곳만 차이). site·frontend·admin tsc, site vitest 105 passed Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
1 parent
c6908629f3
commit
11d30bb3d1
479 files changed
+3337
-13091
No files matched your search
@@ -1,17 +1,6 @@
|
||||
import {defineConfig} from 'orval';
|
||||
|
||||
/**
|
||||
* Orval config
|
||||
*
|
||||
* Backend: FastAPI (o2o-web4ai API) — OpenAPI 스키마를 `${BACKEND_URL}/openapi.json` 에 자동 노출한다.
|
||||
* 포트 9800 (negosium 9300 / negodata 9400 / agent 9500 / lps 9600 / anchoring 9700 다음 번호).
|
||||
*
|
||||
* 네이티브 `fetch` 기반 React Query 클라이언트를 만든다(axios 불필요).
|
||||
* 실행: `npm run orval`
|
||||
*
|
||||
* 서버를 안 띄우고 생성하려면 백엔드가 뽑아둔 파일을 지정한다:
|
||||
* ORVAL_INPUT=../backend/openapi.json npm run orval
|
||||
*/
|
||||
/** Orval config */
|
||||
export default defineConfig({
|
||||
web4ai: {
|
||||
input: {
|
||||
@@ -22,14 +11,11 @@ export default defineConfig({
|
||||
target: './src/api/generated',
|
||||
schemas: './src/api/generated/model',
|
||||
client: 'react-query',
|
||||
// httpClient: 'fetch' 를 쓰면 오퍼레이션마다 Response200/404/Success/Error/Response
|
||||
// 상태코드별 유니온 타입이 강제로 쏟아진다. 우리 mutator 는 본문(data)만 반환하므로
|
||||
// 기본 mutator 방식(config-object)으로 두어 함수가 본문 타입을 바로 반환하게 한다.
|
||||
// httpClient: 'fetch' 를 쓰면 오퍼레이션마다 Response200/404/Success/Error/Response 상태코드별 유니온 타입이 강제로 쏟아진다.
|
||||
clean: true,
|
||||
prettier: true,
|
||||
override: {
|
||||
// FastAPI 기본 operationId("list_places_v1_place_list_get")에서 "_v1_" 앞부분만 취해
|
||||
// camelCase 로 정리 → listPlaces/useListPlaces 등으로 복원(백엔드 무수정).
|
||||
// FastAPI 기본 operationId("list_places_v1_place_list_get")에서 "_v1_" 앞부분만 취해 camelCase 로 정리 → listPlaces/useListPlaces 등으로 복원(백엔드 무수정).
|
||||
operationName: (operation) => {
|
||||
const id = operation.operationId ?? '';
|
||||
const base = id.split('_v1_')[0] || id;
|
||||
|
||||
Reference in new issue
Block a user