From 7451599727d5ca4594eae5beb11f7fbcc6297b56 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Tue, 13 Oct 2026 15:03:26 +0900 Subject: [PATCH 01/11] =?UTF-8?q?feat:=20=EC=95=B1=EC=9D=B8=ED=86=A0?= =?UTF-8?q?=EC=8A=A4=20=ED=86=A0=EC=8A=A4=ED=8C=90=20=EB=B9=8C=EB=93=9C(?= =?UTF-8?q?=EB=B3=B4=EA=B8=B0=20=EC=A0=84=EC=9A=A9,=20=EC=9C=84=EC=B9=98?= =?UTF-8?q?=C2=B7=EA=B3=B5=EC=9C=A0=20SDK=20=EB=B6=84=EA=B8=B0,=20appName?= =?UTF-8?q?=20nalssigak)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 9 + docs/QA_체크리스트.md | 2 +- docs/앱인토스_진행계획.md | 99 +++ frontend/.dockerignore | 3 + frontend/.gitignore | 3 + frontend/apps-in-toss.config.ts | 10 + frontend/package-lock.json | 1455 ++++++++++++++++++++++++++++++- frontend/package.json | 4 +- frontend/src/b/BLayout.tsx | 5 +- frontend/src/b/Post.tsx | 29 +- frontend/src/b/Sheets.tsx | 28 +- frontend/src/b/region.tsx | 48 +- frontend/src/b/ui.tsx | 3 + frontend/src/lib/platform.ts | 44 + frontend/tsconfig.node.json | 2 +- frontend/vite.config.ts | 18 +- 16 files changed, 1704 insertions(+), 58 deletions(-) create mode 100644 docs/앱인토스_진행계획.md create mode 100644 frontend/apps-in-toss.config.ts create mode 100644 frontend/src/lib/platform.ts diff --git a/TODO.md b/TODO.md index b407209..db12527 100644 --- a/TODO.md +++ b/TODO.md @@ -139,3 +139,12 @@ | [x] | 좋아요·댓글이 전국 공통 — 포스트가 (날짜, 자리) 하나로 전국에 하나뿐이라, 구마다 내용이 다른 카드(오늘 날씨·각 1~3위·노을·미세먼지·행사)도 댓글·좋아요를 전국이 같이 씀. 예: 강남의 "1위 산책각"과 부산의 "1위 빨래각"이 같은 댓글창. 안: 지역 데이터 카드만 시도(17) 단위로 나누고 계절·상식·명언은 전국 공통 유지 | 사용자 질문 (10/8) | `backend/postgres-init/init.sql` (`uq_post_feed`), `backend/services/feed_service.py` (`build_day`, `_gak`) | | [ ] | **[결정 필요]** 포스트 시도 단위가 17이 아니라 16 — `region.code` 앞 2자리에서 광주·전남이 둘 다 `12`(전남광주통합특별시)라 같은 댓글창을 씀. 그대로 둘지, 이름 앞머리로 광주·전남을 나눌지 | 포스트 시도 나누기 (10/8) | `backend/services/feed_service.py` (`sido_of`), `backend/seed/region.csv` | | [ ] | 광주·전남 구는 행사가 안 잡힐 수 있음 — 구 코드 시도는 `12`인데 행사 수집·`event.sido_code`는 `29`(광주)·`46`(전남). 좌표 없는 행사는 `is_nearby`·`nearby_sidos`에서 빠짐 | 포스트 시도 나누기 중 발견 (10/8) | `backend/services/week_service.py:125,144`, `backend/services/external/culture_api.py:28` | +| [ ] | **[결정 필요]** 앱인토스 입점 여부 — 검토안은 "웹 출시 후 보기 전용 토스판으로 시험, 첫 달 포인트·알림 20~30만 원, 5주차에 포인트 없는 주의 7일 재방문율 20%를 기준으로 계속/중단" (https://claude.ai/artifact/QgA7iq3CCesTRYcFyZck71) | 앱인토스 검토 | | +| [ ] | **[결정 필요]** 토스판 광고 — 앱인토스 수익은 토스 광고·인앱결제뿐인데 웹은 '광고 없음'으로 정함. 안 붙이면 토스판은 비용만 드는 홍보 채널 | 앱인토스 검토 | | +| [ ] | 앱인토스 사전 확인 — 시간대별 밤 배경이 '라이트 모드' 규칙에 걸리는지, 네이버 지도 링크가 '단순 정보 확인' 예외인지 채널톡 문의 | 앱인토스 검토 | `frontend/src/b/BLayout.tsx`, `frontend/src/b/ui.tsx` | +| [ ] | **[결정 필요]** 각 34개 정리 — 계절 밖 각(10월 물놀이·냉면) 노출 막기(각별 '보여 줄 달'), 나쁜 일 예고 각(택시대란·배달폭주·김서림·화장붕괴)을 순위에서 빼고 '조심' 카드로, 날씨 관계 약한 재미 각(공부·넷플릭스·짬뽕·막걸리·뜨아·군밤·집콕) 축소 또는 '재미' 표시 (https://claude.ai/artifact/4WgpUjdNqdSNnMN4ASB4BB) | 토스판 전략 검토 | `backend/seed/index_definition.json`, `backend/services/index_service.py` | +| [ ] | 글 재고 부족 — 25편(한 문장 8·시 3·상식 4·계절 9)이라 매일 보면 1~2주 안에 반복, 계절 글은 10월분뿐. 기획의 'AI 주 1회 생성'이 스케줄러에 없음. 8주치 재고 또는 생성·검토 파이프라인 | 토스판 전략 검토 | `backend/seed/article.json`, `backend/scheduler/jobs.py` | +| [ ] | **[결정 필요]** 노을 알림 재검토 — 10/2에 제외했지만 토스 알림은 정보성만 허용돼 "오늘 노을 좋음"이 가장 맞는 알림. 토스판 핵심 후보 | 토스판 전략 검토 | | +| [ ] | **[결정 필요]** 히어로 숫자 5개(기온·체감·불쾌지수·날씨 점수·1위 각 점수) — 불쾌지수 여름만, 날씨 점수 유지 여부 | 토스판 전략 검토 | `frontend/src/b/TodayPage.tsx` | +| [x] | 토스판 방식 — WebView로 결정(10/12). 별도 프로젝트 없이 `frontend/`에 토스 빌드 모드 추가, RN은 독립 앱만 | 토스판 전략 검토 | `frontend/` | +| [ ] | 앱인토스 appName 정식 이름으로 교체 — 지금은 콘솔 테스트 앱 `weather-gak-test`. 정식 앱 등록 후 두 곳을 같이 바꾸고 `npm run build:toss` 다시 실행 | 콘솔 테스트 앱으로 먼저 등록 | `frontend/apps-in-toss.config.ts`, `frontend/src/lib/platform.ts` | diff --git a/docs/QA_체크리스트.md b/docs/QA_체크리스트.md index f9926db..8115f94 100644 --- a/docs/QA_체크리스트.md +++ b/docs/QA_체크리스트.md @@ -1,6 +1,6 @@ # 기능 QA 체크리스트 (휴대폰) -아이폰 Safari와 안드로이드 Chrome에서 http://172.30.1.36:30040 에 들어가 위에서부터 따라 하며 체크합니다. 기대 결과는 `frontend/src/b/` 코드 기준이고, 확실하지 않은 동작은 "(확인)"을 붙였습니다. +아이폰 Safari와 안드로이드 Chrome에서 http://<킹서버>:30040 에 들어가 위에서부터 따라 하며 체크합니다. 기대 결과는 `frontend/src/b/` 코드 기준이고, 확실하지 않은 동작은 "(확인)"을 붙였습니다. ## 0. 처음 들어가기 diff --git a/docs/앱인토스_진행계획.md b/docs/앱인토스_진행계획.md new file mode 100644 index 0000000..894fa70 --- /dev/null +++ b/docs/앱인토스_진행계획.md @@ -0,0 +1,99 @@ +# 앱인토스 진행 계획 + +기준: 2026-10-12. 근거 문서는 [입점 검토](https://claude.ai/artifact/QgA7iq3CCesTRYcFyZck71), [토스판 전략](https://claude.ai/artifact/4WgpUjdNqdSNnMN4ASB4BB). + +## 정한 것 + +- 토스판은 **WebView**로 만든다. React Native(Granite)는 쓰지 않는다. RN은 토스와 무관한 독립 앱으로만 진행한다. +- 프로젝트를 따로 만들지 않는다. 지금 `frontend/` 하나에서 **웹 빌드**와 **토스 빌드** 두 가지를 낸다. +- 웹을 먼저 출시하고, 토스판은 그 뒤에 낸다. +- 토스판 1차는 **보기 전용**이다. 로그인·좋아요·댓글은 끈다. + +## 구조 + +``` +frontend/ + apps-in-toss.config.ts 토스 앱 설정 (appName, brand, permissions, navigationBar, webBundleDir=dist-toss) + .env.toss 로컬 전용, 커밋 안 함. VITE_API_BASE_URL·VITE_SITE_URL=https://weather.o2o.kr + src/lib/platform.ts 웹/토스 차이를 모으는 유일한 곳 +``` + +- 빌드: 웹은 `npm run build`, 토스는 `npm run build:toss`. 토스 빌드는 `vite build --mode toss --outDir dist-toss`를 돌린 뒤 `ait build`로 `weather-gak-test.ait`를 만든다. 지금 appName은 테스트용 `weather-gak-test`다. 정식 앱으로 바꿀 때는 `apps-in-toss.config.ts`와 `src/lib/platform.ts`(`intoss://` 주소) 두 곳을 같이 고친다. +- SDK 3.x는 설정 파일이 `apps-in-toss.config.ts`다. 문서에 나오는 `granite.config.ts`는 2.x 방식이다. +- 토스 빌드에서 `.env.toss`에 HTTPS 주소가 없으면 `vite.config.ts`가 빌드를 멈춘다. +- `platform.ts`는 `import.meta.env.MODE === 'toss'`로 갈린다. SDK는 토스 모드에서만 동적으로 import하므로 웹 번들에는 들어가지 않는다. 웹 빌드 결과에 SDK 조각이 없는 것을 확인했다. +- 화면 코드는 `platform.ts`의 함수만 부른다. 화면 곳곳에 `if (토스)`를 두지 않는다. +- 백엔드는 고치지 않는다. CORS는 이미 전부 허용(`backend/router/router.py:34`)이고, API 주소는 `VITE_API_BASE_URL`로 받는다(`frontend/src/api/setup.ts:4`). + +## 웹과 토스가 다른 점 + +| 기능 | 웹 | 토스 | 파일 | +|---|---|---|---| +| 공유 | `navigator.share` (이미지 카드 + 링크) | 이미지는 기기에 저장(`File.saveBase64`), 링크는 `Share.createLink` + `Share.sendMessage`. SDK 공유는 글만 보낼 수 있다 | `frontend/src/b/Sheets.tsx` | +| 위치 | `navigator.geolocation` | `Device.getLocation`. 처음 들어올 때는 권한 창을 띄우지 않고, 이미 허용한 사람만 위치로 맞춘다. '내 위치' 버튼을 누를 때 권한 창을 띄운다 | `frontend/src/b/region.tsx` | +| 로그인·좋아요·댓글 | 있음 | 숨김 (상단 로그인, 카드의 하트·댓글·좋아요 수, 두 번 눌러 좋아요, 지역 창 아래 로그인 줄) | `frontend/src/b/Post.tsx`, `frontend/src/b/Sheets.tsx`, `frontend/src/b/BLayout.tsx` | +| 네이버 지도 링크 | 있음 | 장소 이름만 표시. Q4 답이 '예외 해당'이면 되돌린다 | `frontend/src/b/ui.tsx` (`MapLink`) | +| 밤 배경 | 어두운 남색 | Q3 답 보고 결정 | `frontend/src/b/BLayout.tsx` | +| GA4 | `index.html`에 태그 | Q2 답 보고 결정 | `frontend/index.html`, `frontend/src/lib/analytics.ts` | +| 라우터 | `BrowserRouter` | Q1 답 보고 결정 (안 되면 `HashRouter`) | `frontend/src/App.tsx` | +| AI 글 표시 | 없음 | 계절 소식 등에 표시 (문구는 검토받은 뒤) | 글 시트 | + +## 토스에 물어볼 것 (채널톡 · 개발자 커뮤니티) + +| # | 질문 | 답 | +|---|---|---| +| Q1 | WebView에서 `BrowserRouter`(주소 경로)로 화면을 나눠도 되는가 | | +| Q2 | 미니앱 안에서 GA4(`gtag.js`)를 써도 되는가 | | +| Q3 | 시간대에 따라 밤에 어두운 배경을 쓰면 '라이트 모드' 규칙에 걸리는가 | | +| Q4 | 장소 이름을 누르면 네이버 지도로 가는 링크가 '단순 정보 확인' 예외에 해당하는가 | | +| Q5 | 공유창으로 이미지 파일(공유 카드)을 보낼 수 있는가 | SDK 기준 불가(`Share.sendMessage`는 글만). 지금은 이미지를 저장하고 링크를 보낸다 | +| Q6 | TDS는 '강력 권장'인데 React 19 프로젝트도 TDS 없이 검수를 통과하는가 (TDS는 React 18 필요) | | +| Q7 | 카테고리 목록. '나들이·여가' 같은 분류가 있는가 | | + +## 단계 + +각 단계가 끝나면 확인을 받고 다음 단계로 간다. 작업 브랜치는 `feat/apps-in-toss`. + +### 0. 사전 준비 — 사람이 할 일 + +- [ ] 앱인토스 콘솔 가입, 앱 등록 → `appName` 확정 (https://apps-in-toss.toss.im) +- [ ] 사업자 정보 등록 (영업일 기준 약 1일) +- [ ] 위 Q1~Q7 문의 +- [ ] 샌드박스 앱을 테스트 폰에 설치 + +### 1. 토스 빌드 뼈대 + +- [x] `@apps-in-toss/web-framework@3.8.0` 설치 (버전 고정) +- [x] `apps-in-toss.config.ts`, `.env.toss`(로컬), `package.json`에 `build:toss` 추가 → `weather-gak-test.ait` 생성 확인 +- [ ] 샌드박스 앱에서 피드가 뜨는지 확인 — 콘솔 앱 등록·샌드박스 설치 뒤 + +완료 기준: 웹 빌드 결과가 바뀌지 않고, 샌드박스에서 피드가 열린다. + +### 2. 플랫폼 분기 + +- [x] `src/lib/platform.ts`: `IS_TOSS`, `SOCIAL`, `tossShare`, `tossLocation` +- [x] 공유·위치·로그인·좋아요·댓글·지도 링크를 토스에서 분기 +- [ ] Q1~Q3 답에 따라 라우터·GA4·밤 배경을 처리한다 (지금은 웹과 같음) + +완료 기준: 웹은 지금과 똑같이 동작한다. 토스에서는 로그인 관련 화면이 하나도 보이지 않는다. + +### 3. 토스판 피드 줄이기 — 결정 대기 + +TODO.md의 '각 34개 정리', '히어로 숫자 5개'가 결정되면 진행한다. 목표는 피드 8~10칸, 첫 화면에 한 줄 판정이다. 문구는 목록으로 검토받은 뒤 반영한다. + +### 4. 검증 + +- [x] `npm run lint`, `npm run build`, `npm run build:toss` 모두 통과 (10/12) +- [ ] 샌드박스 실기기 확인: 첫 화면 뒤로가기를 누르면 앱이 닫힌다, 진입하자마자 바텀시트가 뜨지 않는다, 상단 바 버튼이 1개다, 위치 권한을 거부해도 지역 선택으로 쓸 수 있다 +- [ ] [비게임 검수 체크리스트](https://developers-apps-in-toss.toss.im/checklist/app-nongame.md)와 항목별로 대조 +- [ ] 토스 공식 `project-validator` 스킬로 점검 (https://github.com/toss/apps-in-toss-skills) + +### 5. 출시 + +- [ ] 웹 출시가 끝났는지 확인 +- [ ] `.ait` 번들을 콘솔에 올리고 검수 요청 (3~5영업일, 반려 시 다시 3~5일) + +### 6. 출시 후 — 별도 결정 + +- 스마트 발송(알림): 금요일 주말 판정, 노을 좋은 날. 노을 알림은 TODO.md에서 결정 대기 중이다. +- 포인트: 출시 후 2주만 쓰고 끊는다. 포인트를 끊은 주의 재방문율로 계속할지 판단한다. diff --git a/frontend/.dockerignore b/frontend/.dockerignore index 8d0d500..4be4c83 100644 --- a/frontend/.dockerignore +++ b/frontend/.dockerignore @@ -5,3 +5,6 @@ dist .DS_Store Dockerfile .dockerignore +dist-toss +*.ait +.env.toss diff --git a/frontend/.gitignore b/frontend/.gitignore index a547bf3..e2319c9 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +dist-toss +*.ait diff --git a/frontend/apps-in-toss.config.ts b/frontend/apps-in-toss.config.ts new file mode 100644 index 0000000..a1c2070 --- /dev/null +++ b/frontend/apps-in-toss.config.ts @@ -0,0 +1,10 @@ +import { defineConfig } from '@apps-in-toss/web-framework/config' + +// appName 은 앱인토스 콘솔에 등록한 이름과 같아야 한다 +export default defineConfig({ + appName: 'nalssigak', + brand: { primaryColor: '#ff7a45' }, + permissions: [{ name: 'geolocation', access: 'access' }], + navigationBar: { withBackButton: true, withHomeButton: true }, + webBundleDir: 'dist-toss', +}) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index afaa20f..4a051ce 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -8,6 +8,7 @@ "name": "frontend", "version": "0.0.0", "dependencies": { + "@apps-in-toss/web-framework": "3.8.0", "@tailwindcss/vite": "^4.3.3", "@tanstack/react-query": "^5.104.0", "embla-carousel-react": "^8.6.0", @@ -28,6 +29,662 @@ "vite": "^8.3.0" } }, + "node_modules/@apps-in-toss/ait-format": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@apps-in-toss/ait-format/-/ait-format-1.0.0.tgz", + "integrity": "sha512-1no0CXOhPEeSCrGduT37KMmCqA6irhowXa0S7AaPHb4RQSHGioR3wvvD7HHBCaUriMYs0EvtqRJfOgYd0ycKlQ==", + "dependencies": { + "@apps-in-toss/ait-format-proto": "^1.0.0", + "fflate": "^0.8.2" + }, + "engines": { + "node": ">=24" + } + }, + "node_modules/@apps-in-toss/ait-format-proto": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/@apps-in-toss/ait-format-proto/-/ait-format-proto-1.0.0.tgz", + "integrity": "sha512-4255jhwHd2NGqckUd7jTbaYE+lajs2v2HbgWqOk7/XRUmxu3HmagEu6qPgbdkW1z04xdcgno8P/h6Gc0+L9o0A==", + "dependencies": { + "long": "^5.3.2", + "protobufjs": "^7.5.4" + } + }, + "node_modules/@apps-in-toss/cli": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/@apps-in-toss/cli/-/cli-3.8.0.tgz", + "integrity": "sha512-Rb1s7qLT9RU0G1YvtLwlij0xeoDzQWGeV1IXZhPl45vARh/KzJQGgk7L2c2/bvqtdw94wHweqlt67acoJl6D8Q==", + "license": "Apache-2.0", + "dependencies": { + "@apps-in-toss/ait-format": "1.0.0", + "@clack/prompts": "^1.3.0", + "c12": "3.3.4", + "clipanion": "^4.0.0-rc.4", + "jscodeshift": "^17.1.2", + "picocolors": "^1.1.1", + "uuidv7": "^1.2.1" + }, + "bin": { + "ait": "dist/index.js" + } + }, + "node_modules/@apps-in-toss/web-framework": { + "version": "3.8.0", + "resolved": "https://registry.npmjs.org/@apps-in-toss/web-framework/-/web-framework-3.8.0.tgz", + "integrity": "sha512-Jo7R0uQh2avJH09eMRA0M6tbaAHC93A7yUNZ4MfMv7axiSvFbnN3Js3r1le+4R7QPYL9WWzl2vyuw72Ep4IRLA==", + "license": "Apache-2.0", + "dependencies": { + "@apps-in-toss/cli": "3.8.0", + "@webview-bridge/web": "1.7.10", + "semver": "^7.8.5", + "valibot": "^1.4.2" + }, + "bin": { + "ait": "bin/ait.js" + } + }, + "node_modules/@apps-in-toss/web-framework/node_modules/semver": { + "version": "7.8.5", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.8.5.tgz", + "integrity": "sha512-Y7/KDsb8LjooZpwaqGyulO6DQlksgCncchHGk+sZIY4SBvUocMBEFH5Ur1fI4dV+Jvl0w6cjvucaIi40puRioA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@babel/code-frame": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.7.tgz", + "integrity": "sha512-Aup7aUOfpbAUg2ROOJN6Iw5f9DMBlzu0mIkm/malLQFN/YQgO48wCj0Kxa3sEHJvPVFg7siR+qRInwXd2qhQKw==", + "license": "MIT", + "dependencies": { + "@babel/helper-validator-identifier": "^7.29.7", + "js-tokens": "^4.0.0", + "picocolors": "^1.1.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/compat-data": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.7.tgz", + "integrity": "sha512-locTkQyKvwIEgBzVrn8693ebc97F2U8ZHjbXwDXJ5Fn2TCpNwTlKcaKLkdHop5c/icOFE7qt7Q9JC5hnKNa6Gg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/core": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.7.tgz", + "integrity": "sha512-RgHBCvtjbOK2gXSNBNIkNoEc9qoVEtau3hj8gEqKQuL3HZAibKarWFEI3Lfm6EYKkLalOh8eSrj9b+ch9H/VBA==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.7", + "@babel/helper-compilation-targets": "^7.29.7", + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helpers": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/template": "^7.29.7", + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7", + "@jridgewell/remapping": "^2.3.5", + "convert-source-map": "^2.0.0", + "debug": "^4.1.0", + "gensync": "^1.0.0-beta.2", + "json5": "^2.2.3", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/babel" + } + }, + "node_modules/@babel/core/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/generator": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.8.tgz", + "integrity": "sha512-gZbepsdh3WDtgZKWL+vTPh71LSBrm/Y4/QDZBVCcYfmeTEEuoOYwlSy+G1StfJg+/Zy550u/3TATbm7qDbbMtg==", + "license": "MIT", + "dependencies": { + "@babel/parser": "^7.29.8", + "@babel/types": "^7.29.8", + "@jridgewell/gen-mapping": "^0.3.12", + "@jridgewell/trace-mapping": "^0.3.28", + "jsesc": "^3.0.2" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-annotate-as-pure": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.29.7.tgz", + "integrity": "sha512-OoK6239jHPuSQOoS0kfTVKn0b/rVTk0seKq4Gd2UMLtmOVLjDC0ki3e+c90Trqv2gMfvJFqkiljrr568+qddiw==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.29.7.tgz", + "integrity": "sha512-wem6WaBj4NaVYVdNhLPPVacES6ZJ+KBBfSkTMD3YZxbP3rm3Di85tJU5ljaUNhaOynt+Aj0xruhYuzQBt8n71g==", + "license": "MIT", + "dependencies": { + "@babel/compat-data": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "browserslist": "^4.24.0", + "lru-cache": "^5.1.1", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-compilation-targets/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-create-class-features-plugin": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.29.7.tgz", + "integrity": "sha512-IY3ZD9Tmooqr3TUhc3DUWxiuo8xx1DWLhd5M7hQ+ZWJamqM2BbalrBJb2MisSLoYorOj75U03qULCxQTY9r3hg==", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/helper-replace-supers": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/traverse": "^7.29.7", + "semver": "^6.3.1" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-create-class-features-plugin/node_modules/semver": { + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", + "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "license": "ISC", + "bin": { + "semver": "bin/semver.js" + } + }, + "node_modules/@babel/helper-globals": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.29.7.tgz", + "integrity": "sha512-3nQVUAtvkKH9zahfWgw96Jc/uFOmjACE1kQz82E2lqWmHBgjzbNlsC22nuQTfahmWeQtTq5nQ/4Nnd2A1wj4zA==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-member-expression-to-functions": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.29.7.tgz", + "integrity": "sha512-j+7JYmk1JYDtACIGj0QJqqWZjoUpMoEikQGADMaHgCMCSDqd2+P32rfcibUNrGOMWrlzK1WJBdxrB3JJQZwWtg==", + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-imports": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.29.7.tgz", + "integrity": "sha512-ejHwrQQYcm9xnTivShn2IDOlIzInN34AXskvq9QicvCtEzq1Vzclu/tKF8Jq1Cg8JG2GL6/EmjgsCT7lXepE3g==", + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-module-transforms": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.29.7.tgz", + "integrity": "sha512-UPUVSyXbOh627KiCIGQSgwWzGeBKLkaJ9PJEdrngIwMSzxLR4jS4+f1f1jb7VzBbg8nFLaYotvVPFCTqdrmTAg==", + "license": "MIT", + "dependencies": { + "@babel/helper-module-imports": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-optimise-call-expression": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.29.7.tgz", + "integrity": "sha512-+kmGVjcT9RGYzoDwdwEqEvGgKe3BYq+O1iGzjFubaNgZHwYHP6lsF2Yghf4kEuv9BV7tYDZ913aBW9am6YKong==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-plugin-utils": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.29.7.tgz", + "integrity": "sha512-G7sHYigPY17oO5SYWnfD/0MTBwVR781S/JI643e/JhUYgVgWE/61SoW3NH9KWUKyKq5LVh3npif99Wkt6j86Jw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-replace-supers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.29.7.tgz", + "integrity": "sha512-atfGXWSeCiF4DnKZIfmJfQRkSw9b9gNNXR1kqKjbhG4pGYCOnkp8OcTB8E3NXjBu8NpheSnOeNKz8KT7UNFTmQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-member-expression-to-functions": "^7.29.7", + "@babel/helper-optimise-call-expression": "^7.29.7", + "@babel/traverse": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0" + } + }, + "node_modules/@babel/helper-skip-transparent-expression-wrappers": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.29.7.tgz", + "integrity": "sha512-brcMGQaVzIeUb+6/bs1Av0f8YuNNjKY2JyvfRCsFuFsdKccEQ5Ges2y74D74NZ1Rz8lKJ9ksJkfqwQFJ/iNEyQ==", + "license": "MIT", + "dependencies": { + "@babel/traverse": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-string-parser": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.29.7.tgz", + "integrity": "sha512-Pb5ijPrZ89GDH8223L4UP8i6QApWxs04RbPQJTeWDV0/keR2E36MeKnyr6LYmUUvqRRI+Iv87SuF1W6ErINzYw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-identifier": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.29.7.tgz", + "integrity": "sha512-qehxGkRj55h/ff8EMaJ+cYhyaKlHIxqYDn682wQD7RNp9UujOQsHog2uS0r2vzr4pW+sXf90NeeayjcNaX3fFg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helper-validator-option": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.29.7.tgz", + "integrity": "sha512-N9ZErrD+yW5geCDtBqnOoxmR8+tNKiGuxKlDpuJxfsqpa2dFcexaziGAE/qoHLiDDreVNMupxGmSoNlyvsA3gw==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/helpers": { + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.29.10.tgz", + "integrity": "sha512-EMCx3AGZ3WfAl6ht7AyQoPm2Lh+BGYEMdc4Q6Hf7uSCDOZFuLq44qNwL+iaim8VlyYhRAo4X43+weadK8ZB4Yg==", + "license": "MIT", + "dependencies": { + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/parser": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.9.tgz", + "integrity": "sha512-CjXrNHTnvqBVqHgdBysY3vk2T8tpJHb5/RMeHJBTyVa9xgugCB0CJTx/3oO8RV2QRQP391RWpB7D6hLjm8V9uA==", + "license": "MIT", + "dependencies": { + "@babel/types": "^7.29.8" + }, + "bin": { + "parser": "bin/babel-parser.js" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@babel/plugin-syntax-flow": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-flow/-/plugin-syntax-flow-7.29.7.tgz", + "integrity": "sha512-ajMX6QPcyomotqwpzhkYGxcK2i/us0rs1Qo9QvUpa+Fca0FTmqrzKrctoIYLMxcOhGZldGT/BAVkRGTWBiR8gQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-jsx": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.29.7.tgz", + "integrity": "sha512-TSu8+mHCoEaaCDEZ0I3+6mvTBYR4PCxQwf2z9/r5Tbztv6NaLR3B9thGTTxX2WGuGHJqRiAbKPeGTJ5XWXVg6A==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-syntax-typescript": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.29.7.tgz", + "integrity": "sha512-ngr+82Sh0xMz25TPCZi+nC2iTzjfCdWS2ONXTp/PtSCHCgaCNBpdMqgvJ2ccdLlClVZ7sisIgB914j/JFe+RZA==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-class-properties": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.29.7.tgz", + "integrity": "sha512-GtcpjFvanPfzNQi3eTitsCqtRRmmqzpy/A+yhTR1HaZo1Ly3EA8ZXxlPyHdR8/IuRMYc3E4wdGBewB2QKQjAaA==", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-flow-strip-types": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-flow-strip-types/-/plugin-transform-flow-strip-types-7.29.7.tgz", + "integrity": "sha512-wRHeUjUjCZnMHmiO5bRgjFLcoEh7JyTdByOW11ahhwNa4V0bmeGEaIvt51yq0zQp2yWIpqfxXXPyUP6GFJZHOQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/plugin-syntax-flow": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-modules-commonjs": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.29.7.tgz", + "integrity": "sha512-j0vCldybPC5b5dwCQOJ21uKtHzt7hxLygJTg9eF1ScfaikEDNfzn94XoW5Fi+seBR0nCyL23xaBFFkq7dTM8XQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-module-transforms": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-nullish-coalescing-operator": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.29.7.tgz", + "integrity": "sha512-idmp1dFaekP9GbcMvG24Kvw2BfhFZjHnNJCkV4WuIY4PskJzwI3f1N5OdgYke38T7rftO6ERulFRn2cFeZwRkg==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-optional-chaining": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.29.7.tgz", + "integrity": "sha512-6GM1dhvK3gNODkXcEcMCOLEDCLSoZ/sBbro2Ax8HURyasQ4NshagQixkRFdh5niI6E4gmA/jYI/4aT7rRos3ZQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-private-methods": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.29.7.tgz", + "integrity": "sha512-/6Rz4DK1ETDEM/bWHsPHcaEe7ZaT1EqSXjtSP/L0DijOYuaUhiRiOKcwpZ8P7zR4xXEHc2ITdiCgBm9Tpyv9ug==", + "license": "MIT", + "dependencies": { + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/plugin-transform-typescript": { + "version": "7.29.9", + "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typescript/-/plugin-transform-typescript-7.29.9.tgz", + "integrity": "sha512-FFwIwzU+7SCOuxxV4YtJql6T9981ZVTm+FHO5GhVsRqCTdy0WwrEZh3l42ARpXruJUDGOptdduHW6Zr7pNPLNg==", + "license": "MIT", + "dependencies": { + "@babel/helper-annotate-as-pure": "^7.29.7", + "@babel/helper-create-class-features-plugin": "^7.29.7", + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-skip-transparent-expression-wrappers": "^7.29.7", + "@babel/plugin-syntax-typescript": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-flow": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/preset-flow/-/preset-flow-7.29.7.tgz", + "integrity": "sha512-KYIRV0BuaN68CDdsqFkAD7MU7yipUqQNuNElwATdxaIdpTjhvtY82QvkBJs7zV3Evxj2jFAAZ1iO8nyy0nhjqA==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "@babel/plugin-transform-flow-strip-types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/preset-typescript": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/preset-typescript/-/preset-typescript-7.29.7.tgz", + "integrity": "sha512-/Foi8vKY2EVbed/1eZx0gJEEwHAIxogrySI7rULcRIvhZzbvoE/b5qG5Ghc0WKAFKOHA9SD1x7RsFlOYdutIiQ==", + "license": "MIT", + "dependencies": { + "@babel/helper-plugin-utils": "^7.29.7", + "@babel/helper-validator-option": "^7.29.7", + "@babel/plugin-syntax-jsx": "^7.29.7", + "@babel/plugin-transform-modules-commonjs": "^7.29.7", + "@babel/plugin-transform-typescript": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/register": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/register/-/register-7.29.7.tgz", + "integrity": "sha512-AMGJoWuES861riy6pcB0fphE1YXybtQnBYQMuIyPv6mKLiosfa79BKTnAOyx215c/3RJPJpdQwoHZ3earVH7AA==", + "license": "MIT", + "dependencies": { + "clone-deep": "^4.0.1", + "find-cache-dir": "^2.0.0", + "make-dir": "^2.1.0", + "pirates": "^4.0.6", + "source-map-support": "^0.5.16" + }, + "engines": { + "node": ">=6.9.0" + }, + "peerDependencies": { + "@babel/core": "^7.0.0-0" + } + }, + "node_modules/@babel/template": { + "version": "7.29.7", + "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.29.7.tgz", + "integrity": "sha512-puq+Gf35oI24FeN11LkoUQFqv9uwNeWpxXZi/Ji3rRIoKAzKnxRaZ+Gkj0vKS9ZCiTESfng1N9LyOyXvo+m+Gg==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/parser": "^7.29.7", + "@babel/types": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/traverse": { + "version": "7.29.10", + "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.10.tgz", + "integrity": "sha512-B3lYAs2nkKskbgQ1nfy8Ma9ao9Q1rntTAQHrzzyDuj+TSO+X3le6PfWwqDvodsb+OumE10eMFfuMCTQSQ5iuIQ==", + "license": "MIT", + "dependencies": { + "@babel/code-frame": "^7.29.7", + "@babel/generator": "^7.29.8", + "@babel/helper-globals": "^7.29.7", + "@babel/parser": "^7.29.9", + "@babel/template": "^7.29.7", + "@babel/types": "^7.29.8", + "debug": "^4.3.1" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@babel/types": { + "version": "7.29.8", + "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.8.tgz", + "integrity": "sha512-Vj1jF3cPfxg7OAfoI7QnVKLoILlm2JF9pnVHrX8qx7AHMiYWT+NDAA7jChlNgRS4WTLc/fD1lXLmPixluj+3Gg==", + "license": "MIT", + "dependencies": { + "@babel/helper-string-parser": "^7.29.7", + "@babel/helper-validator-identifier": "^7.29.7" + }, + "engines": { + "node": ">=6.9.0" + } + }, + "node_modules/@clack/core": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/@clack/core/-/core-1.5.1.tgz", + "integrity": "sha512-iHTrHA8MtVuLl2TfZySmcKv1qO2PoyC9Z7pfSDozEuV5vtY3/wcOPKJXlqJ5Oq2Cx5DDGQGAMVx6HZfRRoVEbQ==", + "license": "MIT", + "dependencies": { + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 20.12.0" + } + }, + "node_modules/@clack/prompts": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/@clack/prompts/-/prompts-1.8.1.tgz", + "integrity": "sha512-dlT1m5e/0yUL0kRNcQn7yGLVThkgbB0Ga/1AmfDDC/8ik6AIiSf2QLQO2zPYvefsHP0aFgxO93cVLCCfDp7kzQ==", + "license": "MIT", + "dependencies": { + "@clack/core": "1.5.1", + "fast-string-width": "^3.0.2", + "fast-wrap-ansi": "^0.2.0", + "sisteransi": "^1.0.5" + }, + "engines": { + "node": ">= 20.12.0" + } + }, "node_modules/@hey-api/codegen-core": { "version": "0.9.1", "resolved": "https://registry.npmjs.org/@hey-api/codegen-core/-/codegen-core-0.9.1.tgz", @@ -557,6 +1214,63 @@ "node": "^20.19.0 || >=22.12.0" } }, + "node_modules/@protobufjs/aspromise": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz", + "integrity": "sha512-j+gKExEuLmKwvz3OgROXtrJ2UG2x8Ch2YZUxahh+s1F2HZ+wAceUNLkvy6zKCPVRkU++ZWQrdxsUeQXmcg4uoQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/base64": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/base64/-/base64-1.1.2.tgz", + "integrity": "sha512-AZkcAA5vnN/v4PDqKyMR5lx7hZttPDgClv83E//FMNhR2TMcLUhfRUBHCmSl0oi9zMgDDqRUJkSxO3wm85+XLg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/codegen": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/@protobufjs/codegen/-/codegen-2.0.5.tgz", + "integrity": "sha512-zgXFLzW3Ap33e6d0Wlj4MGIm6Ce8O89n/apUaGNB/jx+hw+ruWEp7EwGUshdLKVRCxZW12fp9r40E1mQrf/34g==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/eventemitter": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz", + "integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/fetch": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@protobufjs/fetch/-/fetch-1.1.1.tgz", + "integrity": "sha512-GpptLrs57adMSuHi3VNj0mAF8dwh36LMaYF6XyJ6JMWlVsc+t42tm1HSEDmOs3A8fC9yyeisgLhsTVQokOZ0zw==", + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.1" + } + }, + "node_modules/@protobufjs/float": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@protobufjs/float/-/float-1.0.2.tgz", + "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/path": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz", + "integrity": "sha512-6JOcJ5Tm08dOHAbdR3GrvP+yUUfkjG5ePsHYczMFLq3ZmMkAD98cDgcT2iA1lJ9NVwFd4tH/iSSoe44YWkltEA==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/pool": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/@protobufjs/pool/-/pool-1.1.0.tgz", + "integrity": "sha512-0kELaGSIDBKvcgS4zkjz1PeddatrjYcmMWOlAuAPwAeccUrPHdUqo/J6LiymHHEiJT5NrF1UVwxY14f+fy4WQw==", + "license": "BSD-3-Clause" + }, + "node_modules/@protobufjs/utf8": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@protobufjs/utf8/-/utf8-1.1.2.tgz", + "integrity": "sha512-b1UQwcEZ4yCnMCD8DAL1VlbvBJE9/IX4FTIp7BG1xYpf29SLazLSrqUkj4w7Y5y7cCVP6E5tcqqcI0xemPkHug==", + "license": "BSD-3-Clause" + }, "node_modules/@remix-run/route-pattern": { "version": "0.22.1", "resolved": "https://registry.npmjs.org/@remix-run/route-pattern/-/route-pattern-0.22.1.tgz", @@ -1394,7 +2108,6 @@ "version": "24.19.0", "resolved": "https://registry.npmjs.org/@types/node/-/node-24.19.0.tgz", "integrity": "sha512-zY+5tKxXdhGh1PYI0ac+7juvEu4OI6vWtVVoj5i2m42jxAY1U+zHGt6QCyOFwykdP62sM3MJ9stoYYUw5aCWew==", - "devOptional": true, "license": "MIT", "dependencies": { "undici-types": ">=7.24.0 <7.24.7" @@ -1450,6 +2163,28 @@ } } }, + "node_modules/@webview-bridge/types": { + "version": "1.7.10", + "resolved": "https://registry.npmjs.org/@webview-bridge/types/-/types-1.7.10.tgz", + "integrity": "sha512-s5JfIzkKo6SIMErw1u/UVHM8/rh4kRAuaQPeSk3iXH2momsv4GFY9U3NKUr+Wq2V4Nalrzx0dNxqFad6UcvX/Q==", + "license": "MIT" + }, + "node_modules/@webview-bridge/utils": { + "version": "1.7.10", + "resolved": "https://registry.npmjs.org/@webview-bridge/utils/-/utils-1.7.10.tgz", + "integrity": "sha512-otH5LE6P7F3nVZUqgxVcmNVsMioZBx6l+Djyl1cNwIBL3607b4Y5V1mt8lTSu6byCly2ADx6kxM2oldxBvgZzw==", + "license": "MIT" + }, + "node_modules/@webview-bridge/web": { + "version": "1.7.10", + "resolved": "https://registry.npmjs.org/@webview-bridge/web/-/web-1.7.10.tgz", + "integrity": "sha512-E38r69W13RwizgtbQwMh7qf6Fk3VW0YzeasYpx7+RhNSufegCrIAtwEaGHLNJsnu2X0Od38gNOI4iWtTOSpFdg==", + "license": "MIT", + "dependencies": { + "@webview-bridge/types": "1.7.10", + "@webview-bridge/utils": "1.7.10" + } + }, "node_modules/ansi-colors": { "version": "4.1.3", "resolved": "https://registry.npmjs.org/ansi-colors/-/ansi-colors-4.1.3.tgz", @@ -1467,6 +2202,69 @@ "dev": true, "license": "Python-2.0" }, + "node_modules/ast-types": { + "version": "0.16.3", + "resolved": "https://registry.npmjs.org/ast-types/-/ast-types-0.16.3.tgz", + "integrity": "sha512-FvWoWYfSCM6kRxCSH+MGLHIKKGRL6A6AW7Zek2O32REPQRdg131428uRTKMBYAeRd3XXAaHDS60Wpri7CdKDrA==", + "license": "MIT", + "dependencies": { + "tslib": "^2.0.1" + }, + "engines": { + "node": ">=4" + } + }, + "node_modules/baseline-browser-mapping": { + "version": "2.11.28", + "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.11.28.tgz", + "integrity": "sha512-br0LOmjJqr6Rt4AEkadbcNf67Zpo7EPwKsWbjnRrJIa1QYFHQBqM4C7F2WTbV8ahTEcg1Eo+Y0aWjjORInYFyA==", + "license": "Apache-2.0", + "bin": { + "baseline-browser-mapping": "dist/cli.cjs" + }, + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/browserslist": { + "version": "4.29.3", + "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.29.3.tgz", + "integrity": "sha512-1R4kiYKXGViqEN0CnoDrXc1StD9niAwu+j2dukWzrD4bJgsD4lDmEp0CRbc6E/vYJIfTHwPmwyaKtVSudICdPA==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "baseline-browser-mapping": "^2.11.26", + "caniuse-lite": "^1.0.30001813", + "electron-to-chromium": "^1.5.439", + "node-releases": "^2.0.57", + "update-browserslist-db": "^1.3.3" + }, + "bin": { + "browserslist": "cli.js" + }, + "engines": { + "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7" + } + }, + "node_modules/buffer-from": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", + "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", + "license": "MIT" + }, "node_modules/bundle-name": { "version": "4.1.1", "resolved": "https://registry.npmjs.org/bundle-name/-/bundle-name-4.1.1.tgz", @@ -1487,7 +2285,6 @@ "version": "3.3.4", "resolved": "https://registry.npmjs.org/c12/-/c12-3.3.4.tgz", "integrity": "sha512-cM0ApFQSBXuourJejzwv/AuPRvAxordTyParRVcHjjtXirtkzM0uK2L9TTn9s0cXZbG7E55jCivRQzoxYmRAlA==", - "dev": true, "license": "MIT", "dependencies": { "chokidar": "^5.0.0", @@ -1512,11 +2309,30 @@ } } }, + "node_modules/caniuse-lite": { + "version": "1.0.30001815", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001815.tgz", + "integrity": "sha512-uDybUEyfgbyJJ93J1vikTylBX31AkdVYeVPeffMQpf8XN7hSfr0oZOn4VFOIMNvtU5+rHvC5Udg2TgtJKHm23Q==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/caniuse-lite" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "CC-BY-4.0" + }, "node_modules/chokidar": { "version": "5.0.0", "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-5.0.0.tgz", "integrity": "sha512-TQMmc3w+5AxjpL8iIiwebF73dRDF4fBIieAqGn9RGCWaEVwQ6Fb2cGe31Yns0RRIzii5goJ1Y7xbMwo1TxMplw==", - "dev": true, "license": "MIT", "dependencies": { "readdirp": "^5.0.0" @@ -1528,6 +2344,35 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/clipanion": { + "version": "4.0.0-rc.4", + "resolved": "https://registry.npmjs.org/clipanion/-/clipanion-4.0.0-rc.4.tgz", + "integrity": "sha512-CXkMQxU6s9GklO/1f714dkKBMu1lopS1WFF0B8o4AxPykR1hpozxSiUZ5ZUeBjfPgCWqbcNOtZVFhB8Lkfp1+Q==", + "license": "MIT", + "workspaces": [ + "website" + ], + "dependencies": { + "typanion": "^3.8.0" + }, + "peerDependencies": { + "typanion": "*" + } + }, + "node_modules/clone-deep": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/clone-deep/-/clone-deep-4.0.1.tgz", + "integrity": "sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ==", + "license": "MIT", + "dependencies": { + "is-plain-object": "^2.0.4", + "kind-of": "^6.0.2", + "shallow-clone": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/color-support": { "version": "1.1.3", "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", @@ -1548,11 +2393,22 @@ "node": ">=22.12.0" } }, + "node_modules/commondir": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/commondir/-/commondir-1.0.1.tgz", + "integrity": "sha512-W9pAhw0ja1Edb5GVdIF1mjZw/ASI0AlShXM83UUGe2DVr5TdAPEA1OA8m/g8zWp9x6On7gqufY+FatDbC3MDQg==", + "license": "MIT" + }, "node_modules/confbox": { "version": "0.2.4", "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.2.4.tgz", "integrity": "sha512-ysOGlgTFbN2/Y6Cg3Iye8YKulHw+R2fNXHrgSmXISQdMnomY6eNDprVdW9R5xBguEqI954+S6709UyiO7B+6OQ==", - "dev": true, + "license": "MIT" + }, + "node_modules/convert-source-map": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", + "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "license": "MIT" }, "node_modules/cookie-es": { @@ -1583,6 +2439,23 @@ "dev": true, "license": "MIT" }, + "node_modules/debug": { + "version": "4.4.3", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz", + "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==", + "license": "MIT", + "dependencies": { + "ms": "^2.1.3" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, "node_modules/default-browser": { "version": "5.5.1", "resolved": "https://registry.npmjs.org/default-browser/-/default-browser-5.5.1.tgz", @@ -1630,14 +2503,12 @@ "version": "6.1.7", "resolved": "https://registry.npmjs.org/defu/-/defu-6.1.7.tgz", "integrity": "sha512-7z22QmUWiQ/2d0KkdYmANbRUVABpZ9SNYyH5vx6PZ+nE5bcC0l7uFvEfHlyld/HcGBFTL536ClDt3DEcSlEJAQ==", - "dev": true, "license": "MIT" }, "node_modules/destr": { "version": "2.0.5", "resolved": "https://registry.npmjs.org/destr/-/destr-2.0.5.tgz", "integrity": "sha512-ugFTXCtDZunbzasqBxrK93Ik/DRYsO6S/fedkWEMKqt04xZ4csmnmwGDBAb07QWNaGMAmnTIemsYZCksjATwsA==", - "dev": true, "license": "MIT" }, "node_modules/detect-libc": { @@ -1653,7 +2524,6 @@ "version": "17.4.2", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-17.4.2.tgz", "integrity": "sha512-nI4U3TottKAcAD9LLud4Cb7b2QztQMUEfHbvhTH09bqXTxnSie8WnjPALV/WMCrJZ6UV/qHJ6L03OqO3LcdYZw==", - "dev": true, "license": "BSD-2-Clause", "engines": { "node": ">=12" @@ -1662,6 +2532,12 @@ "url": "https://dotenvx.com" } }, + "node_modules/electron-to-chromium": { + "version": "1.5.452", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.452.tgz", + "integrity": "sha512-cVvk1YBSj6571VmV6hdJTqj94Y79xSu8cj6Y9t6ae4Y4431z8/7EJFvu3rVp90xhfuv9BpPKUmaLfTo4+FOGBg==", + "license": "ISC" + }, "node_modules/embla-carousel": { "version": "8.6.0", "resolved": "https://registry.npmjs.org/embla-carousel/-/embla-carousel-8.6.0.tgz", @@ -1703,13 +2579,58 @@ "node": ">=10.13.0" } }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/esprima": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", + "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", + "license": "BSD-2-Clause", + "bin": { + "esparse": "bin/esparse.js", + "esvalidate": "bin/esvalidate.js" + }, + "engines": { + "node": ">=4" + } + }, "node_modules/exsolve": { "version": "1.1.1", "resolved": "https://registry.npmjs.org/exsolve/-/exsolve-1.1.1.tgz", "integrity": "sha512-9U/jZUgjnSGyntRr6y5Muu1MJcwFl6kPu7k8qLF0IMNfLqvw0NZ4nnVDq0RVoZ0RvCyumib4Ez3KYrVfilrw+g==", - "dev": true, "license": "MIT" }, + "node_modules/fast-string-truncated-width": { + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/fast-string-truncated-width/-/fast-string-truncated-width-3.0.3.tgz", + "integrity": "sha512-0jjjIEL6+0jag3l2XWWizO64/aZVtpiGE3t0Zgqxv0DPuxiMjvB3M24fCyhZUO4KomJQPj3LTSUnDP3GpdwC0g==", + "license": "MIT" + }, + "node_modules/fast-string-width": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/fast-string-width/-/fast-string-width-3.0.2.tgz", + "integrity": "sha512-gX8LrtNEI5hq8DVUfRQMbr5lpaS4nMIWV+7XEbXk2b8kiQIizgnlr12B4dA3ZEx3308ze0O4Q1R+cHts8kyUJg==", + "license": "MIT", + "dependencies": { + "fast-string-truncated-width": "^3.0.2" + } + }, + "node_modules/fast-wrap-ansi": { + "version": "0.2.2", + "resolved": "https://registry.npmjs.org/fast-wrap-ansi/-/fast-wrap-ansi-0.2.2.tgz", + "integrity": "sha512-7F2Fl+TjRSenLqlU3UjSH0iyqopqoZIu7eZVpEirP2g1GtWa2G/ecEmBdgz31+Mxr+ELclgg6sokpSFIQiZ02Q==", + "license": "MIT", + "dependencies": { + "fast-string-width": "^3.0.2" + } + }, "node_modules/fdir": { "version": "6.5.0", "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", @@ -1727,6 +2648,59 @@ } } }, + "node_modules/fflate": { + "version": "0.8.3", + "resolved": "https://registry.npmjs.org/fflate/-/fflate-0.8.3.tgz", + "integrity": "sha512-tbZNuJrLwGUp3zshBtdy4W+ORxZuIh8a5ilyIEQDC5rY1f3U20JMry0Ll3WBzU58EZKsEuJFXhb5gwv8CsPvgA==", + "license": "MIT" + }, + "node_modules/find-cache-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/find-cache-dir/-/find-cache-dir-2.1.0.tgz", + "integrity": "sha512-Tq6PixE0w/VMFfCgbONnkiQIVol/JJL7nRMi20fqzA4NRs9AfeqMGeRdPi3wIhYkxjeBaWh2rxwapn5Tu3IqOQ==", + "license": "MIT", + "dependencies": { + "commondir": "^1.0.1", + "make-dir": "^2.0.0", + "pkg-dir": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/find-up": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", + "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", + "license": "MIT", + "dependencies": { + "locate-path": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/flow-estree": { + "version": "0.335.0", + "resolved": "https://registry.npmjs.org/flow-estree/-/flow-estree-0.335.0.tgz", + "integrity": "sha512-sfJYlOSnrbBI4ruZ7UG5OJLz16E1hs+Kkt/De8F7vm6UafLfvZIWjkoBmZtKoN6EIOa3zgGkVczt0xpmmQixGA==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, + "node_modules/flow-parser": { + "version": "0.335.0", + "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.335.0.tgz", + "integrity": "sha512-TpG7cWiAAh5EoOjaGuzggks8HOM6DJhey1RmMmnzGUd+AYmsl77S5EXvb6gxAEGX40FyfkXEwsvQcuI6Knkm7g==", + "license": "MIT", + "dependencies": { + "flow-estree": "0.335.0" + }, + "engines": { + "node": ">=0.4.0" + } + }, "node_modules/fsevents": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", @@ -1741,6 +2715,15 @@ "node": "^8.16.0 || ^10.6.0 || >=11.0.0" } }, + "node_modules/gensync": { + "version": "1.0.0-beta.2", + "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz", + "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==", + "license": "MIT", + "engines": { + "node": ">=6.9.0" + } + }, "node_modules/get-tsconfig": { "version": "4.14.0", "resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.14.0.tgz", @@ -1758,7 +2741,6 @@ "version": "3.3.1", "resolved": "https://registry.npmjs.org/giget/-/giget-3.3.1.tgz", "integrity": "sha512-r+mvuDjrjMpsdw46Kmeydb8bdHm7wOKw8wNBtTndkjbPjgAp5oUJUxRE76wZFknxIPokfWvep2qSXK37aXE6zg==", - "dev": true, "license": "MIT", "bin": { "giget": "dist/cli.mjs" @@ -1770,6 +2752,15 @@ "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", "license": "ISC" }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "license": "MIT", + "engines": { + "node": ">=0.8.19" + } + }, "node_modules/is-docker": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-docker/-/is-docker-3.0.0.tgz", @@ -1818,6 +2809,18 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/is-plain-object": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz", + "integrity": "sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==", + "license": "MIT", + "dependencies": { + "isobject": "^3.0.1" + }, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/is-wsl": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-3.1.1.tgz", @@ -1841,6 +2844,15 @@ "dev": true, "license": "ISC" }, + "node_modules/isobject": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/isobject/-/isobject-3.0.1.tgz", + "integrity": "sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/jiti": { "version": "2.7.0", "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", @@ -1850,6 +2862,12 @@ "jiti": "lib/jiti-cli.mjs" } }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", + "license": "MIT" + }, "node_modules/js-yaml": { "version": "4.2.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.2.0.tgz", @@ -1873,6 +2891,79 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/jscodeshift": { + "version": "17.4.0", + "resolved": "https://registry.npmjs.org/jscodeshift/-/jscodeshift-17.4.0.tgz", + "integrity": "sha512-i3ESKiiTsGynxzTg5BhsZViD0ai72/6SsI1efDZxG6/5KCoElsmquxtyhXK5lpEgoO7MTNpYkjFEdEL97SkBNg==", + "license": "MIT", + "dependencies": { + "@babel/core": "^7.24.7", + "@babel/parser": "^7.24.7", + "@babel/plugin-transform-class-properties": "^7.24.7", + "@babel/plugin-transform-modules-commonjs": "^7.24.7", + "@babel/plugin-transform-nullish-coalescing-operator": "^7.24.7", + "@babel/plugin-transform-optional-chaining": "^7.24.7", + "@babel/plugin-transform-private-methods": "^7.24.7", + "@babel/preset-flow": "^7.24.7", + "@babel/preset-typescript": "^7.24.7", + "@babel/register": "^7.24.6", + "flow-parser": "0.*", + "graceful-fs": "^4.2.4", + "neo-async": "^2.5.0", + "picocolors": "^1.0.1", + "picomatch": "^4.0.2", + "recast": "^0.23.11", + "tmp": "^0.2.3", + "write-file-atomic": "^5.0.1" + }, + "bin": { + "jscodeshift": "bin/jscodeshift.js" + }, + "engines": { + "node": ">=16" + }, + "peerDependencies": { + "@babel/preset-env": "^7.1.6" + }, + "peerDependenciesMeta": { + "@babel/preset-env": { + "optional": true + } + } + }, + "node_modules/jsesc": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz", + "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==", + "license": "MIT", + "bin": { + "jsesc": "bin/jsesc" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/json5": { + "version": "2.2.3", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz", + "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==", + "license": "MIT", + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/kind-of": { + "version": "6.0.3", + "resolved": "https://registry.npmjs.org/kind-of/-/kind-of-6.0.3.tgz", + "integrity": "sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw==", + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/lightningcss": { "version": "1.33.0", "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.33.0.tgz", @@ -2134,6 +3225,34 @@ "url": "https://opencollective.com/parcel" } }, + "node_modules/locate-path": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", + "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", + "license": "MIT", + "dependencies": { + "p-locate": "^3.0.0", + "path-exists": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/long": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/long/-/long-5.3.2.tgz", + "integrity": "sha512-mNAgZ1GmyNhD7AuqnTG3/VQ26o760+ZYBPKjPvugO8+nLbYfX6TVpJPseBvopbdY+qpZ/lKUnmEc1LeZYS3QAA==", + "license": "Apache-2.0" + }, + "node_modules/lru-cache": { + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==", + "license": "ISC", + "dependencies": { + "yallist": "^3.0.2" + } + }, "node_modules/magic-string": { "version": "0.30.21", "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", @@ -2143,12 +3262,40 @@ "@jridgewell/sourcemap-codec": "^1.5.5" } }, + "node_modules/make-dir": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-2.1.0.tgz", + "integrity": "sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA==", + "license": "MIT", + "dependencies": { + "pify": "^4.0.1", + "semver": "^5.6.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/make-dir/node_modules/semver": { + "version": "5.7.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.2.tgz", + "integrity": "sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==", + "license": "ISC", + "bin": { + "semver": "bin/semver" + } + }, "node_modules/modern-screenshot": { "version": "4.7.0", "resolved": "https://registry.npmjs.org/modern-screenshot/-/modern-screenshot-4.7.0.tgz", "integrity": "sha512-9YxN+ddPSMMlhylOv25VHzXrl9u67QRxoh7+SEewGtgUw7t6hHTrjptSDJUSne9oG4Xk/h2cwG15nIt4Hc9ujg==", "license": "MIT" }, + "node_modules/ms": { + "version": "2.1.3", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", + "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", + "license": "MIT" + }, "node_modules/nanoid": { "version": "3.3.19", "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.19.tgz", @@ -2167,11 +3314,25 @@ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" } }, + "node_modules/neo-async": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz", + "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", + "license": "MIT" + }, + "node_modules/node-releases": { + "version": "2.0.58", + "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.58.tgz", + "integrity": "sha512-BdiKAgbfRlvfMq/XzO/AF9NPmaA8a+YpLAyAFTVFBj3gARrAIfWvNq7Q7NE4se3KgFu0KkrvQMxTS0XVnsGzHg==", + "license": "MIT", + "engines": { + "node": ">=18" + } + }, "node_modules/ohash": { "version": "2.0.12", "resolved": "https://registry.npmjs.org/ohash/-/ohash-2.0.12.tgz", "integrity": "sha512-65S/5gk9YSsaRjcyf7Nfa6h/d3E8/1gslpXfI4W7Dxn/oap8IKRuNT5VXkLQ1YFKIEg4apRY4Pj6aiwFzrDdmw==", - "dev": true, "license": "MIT" }, "node_modules/open": { @@ -2244,6 +3405,51 @@ } } }, + "node_modules/p-limit": { + "version": "2.3.0", + "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", + "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", + "license": "MIT", + "dependencies": { + "p-try": "^2.0.0" + }, + "engines": { + "node": ">=6" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/p-locate": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", + "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", + "license": "MIT", + "dependencies": { + "p-limit": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/p-try": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", + "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/path-exists": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", + "integrity": "sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ==", + "license": "MIT", + "engines": { + "node": ">=4" + } + }, "node_modules/path-key": { "version": "3.1.1", "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz", @@ -2258,14 +3464,12 @@ "version": "2.0.3", "resolved": "https://registry.npmjs.org/pathe/-/pathe-2.0.3.tgz", "integrity": "sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==", - "dev": true, "license": "MIT" }, "node_modules/perfect-debounce": { "version": "2.1.0", "resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-2.1.0.tgz", "integrity": "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g==", - "dev": true, "license": "MIT" }, "node_modules/picocolors": { @@ -2286,11 +3490,40 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, + "node_modules/pify": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", + "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/pirates": { + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz", + "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==", + "license": "MIT", + "engines": { + "node": ">= 6" + } + }, + "node_modules/pkg-dir": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-3.0.0.tgz", + "integrity": "sha512-/E57AYkoeQ25qkxMj5PBOVgF8Kiu/h7cYS30Z5+R7WaiCCBfLq58ZI/dSeaEKb9WVJV5n/03QwrN3IeWIFllvw==", + "license": "MIT", + "dependencies": { + "find-up": "^3.0.0" + }, + "engines": { + "node": ">=6" + } + }, "node_modules/pkg-types": { "version": "2.3.3", "resolved": "https://registry.npmjs.org/pkg-types/-/pkg-types-2.3.3.tgz", "integrity": "sha512-j/lCFdcppV0JxWpCEITdbDltBxPP6cHT+yNJ6Go2OgoSA9518X847X9z0p6LtA4Nc16+eQzCZjRrWanTGvHJ5w==", - "dev": true, "license": "MIT", "dependencies": { "confbox": "^0.3.1", @@ -2302,7 +3535,6 @@ "version": "0.3.1", "resolved": "https://registry.npmjs.org/confbox/-/confbox-0.3.1.tgz", "integrity": "sha512-cKUSoKa8YxFZZSmraVi7onONx3amu77ngK3kGpsYHDH7drPwCRkQE1RYMPlLRrMtnciRj274XNRxcHxnKmDSnA==", - "dev": true, "license": "MIT" }, "node_modules/postcss": { @@ -2346,11 +3578,33 @@ "url": "https://github.com/sponsors/sindresorhus" } }, + "node_modules/protobufjs": { + "version": "7.6.6", + "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.6.tgz", + "integrity": "sha512-dYDWdjSl5RNb7SgPxGQcRU+GtvP7s2fpkrY0r432PcOIaZ0/rBcxEZnQN67iJhFuQiVw754JDoPruPCNdGsbjg==", + "hasInstallScript": true, + "license": "BSD-3-Clause", + "dependencies": { + "@protobufjs/aspromise": "^1.1.2", + "@protobufjs/base64": "^1.1.2", + "@protobufjs/codegen": "^2.0.5", + "@protobufjs/eventemitter": "^1.1.1", + "@protobufjs/fetch": "^1.1.1", + "@protobufjs/float": "^1.0.2", + "@protobufjs/path": "^1.1.2", + "@protobufjs/pool": "^1.1.0", + "@protobufjs/utf8": "^1.1.1", + "@types/node": ">=13.7.0", + "long": "^5.3.2" + }, + "engines": { + "node": ">=12.0.0" + } + }, "node_modules/rc9": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/rc9/-/rc9-3.1.0.tgz", "integrity": "sha512-ufjkNVzbRHKcCOmTahZkmVsyc3W+MSk3jY03m+a7tGHkIsdVMG9l10/3HvFbWkkKzY5VFp3pkRsIo/UYgmFL7Q==", - "dev": true, "license": "MIT", "dependencies": { "defu": "^6.1.7", @@ -2404,7 +3658,6 @@ "version": "5.1.1", "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-5.1.1.tgz", "integrity": "sha512-Kko+Y5XQ6fM+Ce3dq3m9YGxnacYZYl9cA1wZjaF3Vbry2L3i1qVg8+CAgNPsXRArPMUMCaOR7oa9Nqntc43JKA==", - "dev": true, "license": "MIT", "engines": { "node": ">= 20.19.0" @@ -2414,6 +3667,22 @@ "url": "https://paulmillr.com/funding/" } }, + "node_modules/recast": { + "version": "0.23.21", + "resolved": "https://registry.npmjs.org/recast/-/recast-0.23.21.tgz", + "integrity": "sha512-mFAyJq9vUbSTARLZUvAEf1z3YxlvAwswbmxMx2mPA/MSm4KmpwvwvhsH/NIrZhyOuwD60Lzyw2qh83uCbgTPYw==", + "license": "MIT", + "dependencies": { + "ast-types": "^0.16.1", + "esprima": "~4.0.0", + "source-map": "~0.6.1", + "tiny-invariant": "^1.3.3", + "tslib": "^2.0.1" + }, + "engines": { + "node": ">= 4" + } + }, "node_modules/resolve-pkg-maps": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz", @@ -2489,6 +3758,18 @@ "node": ">=10" } }, + "node_modules/shallow-clone": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/shallow-clone/-/shallow-clone-3.0.1.tgz", + "integrity": "sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA==", + "license": "MIT", + "dependencies": { + "kind-of": "^6.0.2" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/shebang-command": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz", @@ -2512,6 +3793,33 @@ "node": ">=8" } }, + "node_modules/signal-exit": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz", + "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==", + "license": "ISC", + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/sisteransi": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz", + "integrity": "sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==", + "license": "MIT" + }, + "node_modules/source-map": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", + "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/source-map-js": { "version": "1.2.1", "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", @@ -2521,6 +3829,16 @@ "node": ">=0.10.0" } }, + "node_modules/source-map-support": { + "version": "0.5.21", + "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.21.tgz", + "integrity": "sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w==", + "license": "MIT", + "dependencies": { + "buffer-from": "^1.0.0", + "source-map": "^0.6.0" + } + }, "node_modules/tailwindcss": { "version": "4.3.3", "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.3.tgz", @@ -2540,6 +3858,12 @@ "url": "https://opencollective.com/webpack" } }, + "node_modules/tiny-invariant": { + "version": "1.3.3", + "resolved": "https://registry.npmjs.org/tiny-invariant/-/tiny-invariant-1.3.3.tgz", + "integrity": "sha512-+FbBPE1o9QAYvviau/qC5SE3caw21q3xkvWKBtja5vgqOWIHHJ3ioaq1VPfn/Szqctz2bU/oYeKd9/z5BL+PVg==", + "license": "MIT" + }, "node_modules/tinyglobby": { "version": "0.2.17", "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.17.tgz", @@ -2556,11 +3880,35 @@ "url": "https://github.com/sponsors/SuperchupuDev" } }, + "node_modules/tmp": { + "version": "0.2.7", + "resolved": "https://registry.npmjs.org/tmp/-/tmp-0.2.7.tgz", + "integrity": "sha512-e0votIpp4Uo2AJYSzVHV6xCcawuiez3DzqDAbrTc3YxBkplN6e+dM13ZeIcZnDg/QpSuU2zfZ3rzwY8ukEnaXw==", + "license": "MIT", + "engines": { + "node": ">=14.14" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "license": "0BSD" + }, + "node_modules/typanion": { + "version": "3.14.0", + "resolved": "https://registry.npmjs.org/typanion/-/typanion-3.14.0.tgz", + "integrity": "sha512-ZW/lVMRabETuYCd9O9ZvMhAh8GslSqaUjxmK/JLPCh6l73CvLBiuXswj/+7LdnWOgYsQ130FqLzFz5aGT4I3Ug==", + "license": "MIT", + "workspaces": [ + "website" + ] + }, "node_modules/typescript": { "version": "6.0.3", "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.3.tgz", "integrity": "sha512-y2TvuxSZPDyQakkFRPZHKFm+KKVqIisdg9/CZwm9ftvKXLP8NRWj38/ODjNbr43SsoXqNuAisEf1GdCxqWcdBw==", - "dev": true, + "devOptional": true, "license": "Apache-2.0", "bin": { "tsc": "bin/tsc", @@ -2574,9 +3922,61 @@ "version": "7.24.6", "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz", "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==", - "devOptional": true, "license": "MIT" }, + "node_modules/update-browserslist-db": { + "version": "1.3.4", + "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.3.4.tgz", + "integrity": "sha512-t8wonIOdQyOjtPd2VktlBu6QjTVTks6v8bSi7kd0r2Vll8TK1JYDZtRRdbmCHOAMphkZgrzK+L+vXK4pyZ8t4A==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/browserslist" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/browserslist" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "escalade": "^3.2.0", + "picocolors": "^1.1.1" + }, + "bin": { + "update-browserslist-db": "cli.js" + }, + "peerDependencies": { + "browserslist": ">= 4.21.0" + } + }, + "node_modules/uuidv7": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/uuidv7/-/uuidv7-1.2.1.tgz", + "integrity": "sha512-4kPkK3/XTQW9Hbm4CaqfICn+kY9LJtDVEOfgsRRra/+n2Ofg4NqzRFceAkxvQ/Ud/6BpHOPzj8cirqM7TzTN5Q==", + "license": "Apache-2.0", + "bin": { + "uuidv7": "cli.js" + } + }, + "node_modules/valibot": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/valibot/-/valibot-1.5.0.tgz", + "integrity": "sha512-nil6AkP2TChWL43Z5uJ6GTxX01CUA+g8LWUM+N/rB9NBbkUMaUsi9PUNzlUPgoKASgmx9f7eGOYpJ04/fSa6FQ==", + "license": "MIT", + "peerDependencies": { + "typescript": ">=5" + }, + "peerDependenciesMeta": { + "typescript": { + "optional": true + } + } + }, "node_modules/vite": { "version": "8.3.1", "resolved": "https://registry.npmjs.org/vite/-/vite-8.3.1.tgz", @@ -2670,6 +4070,19 @@ "node": ">= 8" } }, + "node_modules/write-file-atomic": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz", + "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==", + "license": "ISC", + "dependencies": { + "imurmurhash": "^0.1.4", + "signal-exit": "^4.0.1" + }, + "engines": { + "node": "^14.17.0 || ^16.13.0 || >=18.0.0" + } + }, "node_modules/wsl-utils": { "version": "0.3.1", "resolved": "https://registry.npmjs.org/wsl-utils/-/wsl-utils-0.3.1.tgz", @@ -2686,6 +4099,12 @@ "funding": { "url": "https://github.com/sponsors/sindresorhus" } + }, + "node_modules/yallist": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz", + "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==", + "license": "ISC" } } } diff --git a/frontend/package.json b/frontend/package.json index a4c2a89..5783a28 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -8,9 +8,11 @@ "build": "tsc -b && vite build", "lint": "oxlint", "preview": "vite preview", - "api": "openapi-ts" + "api": "openapi-ts", + "build:toss": "tsc -b && vite build --mode toss --outDir dist-toss && ait build" }, "dependencies": { + "@apps-in-toss/web-framework": "3.8.0", "@tailwindcss/vite": "^4.3.3", "@tanstack/react-query": "^5.104.0", "embla-carousel-react": "^8.6.0", diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index 56af3b6..b7fe706 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -1,5 +1,6 @@ import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react' import { NavLink, Outlet, useLocation } from 'react-router' +import { SOCIAL } from '../lib/platform' import { cx } from '../lib/utils' import { kindOfHour, kst, type TimeKind } from './lib' import './b.css' @@ -41,7 +42,7 @@ function TopBar() { {locateStatus === 'locating' ? : region.name} - {mePending ? ( + {SOCIAL && (mePending ? ( ) : me ? ( - )} + ))} ) } diff --git a/frontend/src/b/Post.tsx b/frontend/src/b/Post.tsx index a30a5ef..53daf3f 100644 --- a/frontend/src/b/Post.tsx +++ b/frontend/src/b/Post.tsx @@ -1,6 +1,7 @@ import { useEffect, useRef, useState, type CSSProperties, type MouseEvent, type ReactNode } from 'react' import { createPortal } from 'react-dom' import { PostType, SlotTone, type GakSlide, type HoursSlide, type PlanSlide, type PostData, type ResFeed, type RowsSlide, type SunsetSlide, type WeekSlide } from '../api/client/types.gen' +import { SOCIAL } from '../lib/platform' import { cx } from '../lib/utils' import { cardBg, clockShort, fall } from './lib' import type { SlideBg } from './types' @@ -348,7 +349,7 @@ function FullCard({ post }: PostProps) { } const onTap = (e: MouseEvent) => { - if ((e.target as HTMLElement).closest('button')) return + if (!SOCIAL || (e.target as HTMLElement).closest('button')) return const now = Date.now() if (now - lastTap.current < 320) { if (liked && loggedIn) setPop((p) => p + 1) @@ -423,24 +424,30 @@ function FullCard({ post }: PostProps) { )}
- - + {SOCIAL && ( + <> + + + + )}
-

좋아요 {likeCount.toLocaleString()}개

+ {SOCIAL &&

좋아요 {likeCount.toLocaleString()}개

}

날씨각 {post.caption}

- + {SOCIAL && ( + + )}

오늘

) diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx index 0ae9759..673720b 100644 --- a/frontend/src/b/Sheets.tsx +++ b/frontend/src/b/Sheets.tsx @@ -21,6 +21,7 @@ import { } from '../api/client/@tanstack/react-query.gen' import type { CommentData, Factor, ResAuth, ResCommentList, ResIndexDetail } from '../api/client/types.gen' import { track } from '../lib/analytics' +import { IS_TOSS, SOCIAL, tossShare } from '../lib/platform' import { cx } from '../lib/utils' import { useAuth } from './authContext' import { ago, ARTICLE_CAT, articleMeta, AVATAR_COLORS, cardBg, CHARACTERS, dateRange, loadOf, MOODS, shortDay } from './lib' @@ -530,6 +531,19 @@ function ShareSheet({ share }: { share: SharePayload }) { const send = () => { if (!image) return const file = new File([image.blob], `nalssigak-${SHARE_SIZES[size].ratio.replace(':', 'x')}.png`, { type: 'image/png' }) + if (IS_TOSS) { + tossShare(image.blob, file.name, share.title).then( + (r) => { + setToast(r === 'saved' ? '이미지를 저장하고 링크를 보냈어요' : '링크를 보냈어요') + track('share', { content_type: 'image', item_id: share.title, method: 'share_sheet', ratio: SHARE_SIZES[size].ratio }) + }, + (e: unknown) => { + console.error('[share] toss', e) + setToast('보내지 못했어요. 한 번 더 눌러 주세요') + }, + ) + return + } if (navigator.canShare?.({ files: [file], text })) { navigator.share({ files: [file], title: share.title, text }).then( () => { @@ -1014,12 +1028,14 @@ function RegionSheet({ onDone }: { onDone: () => void }) { ))} -

- {me ? `${me.nickname}(으)로 로그인했어요` : '로그인하면 좋아요·댓글을 쓸 수 있어요'} - -

+ {SOCIAL && ( +

+ {me ? `${me.nickname}(으)로 로그인했어요` : '로그인하면 좋아요·댓글을 쓸 수 있어요'} + +

+ )} ) } diff --git a/frontend/src/b/region.tsx b/frontend/src/b/region.tsx index 0a49f13..609eeed 100644 --- a/frontend/src/b/region.tsx +++ b/frontend/src/b/region.tsx @@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react import { nearestRegion } from '../api/client/sdk.gen' import type { RegionData } from '../api/client/types.gen' import { track } from '../lib/analytics' +import { IS_TOSS, tossLocation } from '../lib/platform' import { DEFAULT_REGION, RegionContext, type LocateStatus } from './regionContext' const KEY = 'nalssigak.b.region' @@ -28,7 +29,7 @@ function writeStored(r: RegionData) { export function RegionProvider({ children }: { children: ReactNode }) { const [stored] = useState(readStored) const [region, setRegionState] = useState(stored ?? DEFAULT_REGION) - const canLocate = typeof navigator !== 'undefined' && 'geolocation' in navigator + const canLocate = IS_TOSS || (typeof navigator !== 'undefined' && 'geolocation' in navigator) const [locateStatus, setLocateStatus] = useState(!stored && canLocate ? 'locating' : 'idle') const setRegion = useCallback((r: RegionData) => { @@ -36,23 +37,40 @@ export function RegionProvider({ children }: { children: ReactNode }) { writeStored(r) }, []) - const findNearest = useCallback((onFound?: () => void) => { + const fromCoords = useCallback((lat: number, lon: number, onFound?: () => void) => { + nearestRegion({ query: { lat, lon } }) + .then(({ data: res }) => { + if (!res.region) throw new Error('가까운 구를 찾지 못함') + setRegion(res.region) + setLocateStatus('idle') + track('region_change', { region_name: res.region.name, method: 'location' }) + onFound?.() + }) + .catch(() => setLocateStatus('error')) + }, [setRegion]) + + // ask=false 는 처음 들어왔을 때: 토스에서는 권한 창을 띄우지 않고, 이미 허용한 사람만 위치로 맞춘다 + const findNearest = useCallback((onFound?: () => void, ask = true) => { + if (IS_TOSS) { + tossLocation(ask).then( + (loc) => { + if (loc === null) setLocateStatus('idle') + else if (loc === 'denied') setLocateStatus('denied') + else fromCoords(loc.lat, loc.lon, onFound) + }, + (e: unknown) => { + console.error('[region] toss location', e) + setLocateStatus('error') + }, + ) + return + } navigator.geolocation.getCurrentPosition( - (pos) => { - nearestRegion({ query: { lat: pos.coords.latitude, lon: pos.coords.longitude } }) - .then(({ data: res }) => { - if (!res.region) throw new Error('가까운 구를 찾지 못함') - setRegion(res.region) - setLocateStatus('idle') - track('region_change', { region_name: res.region.name, method: 'location' }) - onFound?.() - }) - .catch(() => setLocateStatus('error')) - }, + (pos) => fromCoords(pos.coords.latitude, pos.coords.longitude, onFound), (err) => setLocateStatus(err.code === err.PERMISSION_DENIED ? 'denied' : 'error'), { timeout: 10000, maximumAge: 600000 }, ) - }, [setRegion]) + }, [fromCoords]) const locate = useCallback((onFound?: () => void) => { if (!canLocate) { @@ -65,7 +83,7 @@ export function RegionProvider({ children }: { children: ReactNode }) { // 처음 온 사람만 위치 권한을 물어 가장 가까운 구로 맞춘다 useEffect(() => { - if (!stored && canLocate) findNearest() + if (!stored && canLocate) findNearest(undefined, false) }, [stored, canLocate, findNearest]) const api = useMemo(() => ({ region, setRegion, locate, locateStatus }), [region, setRegion, locate, locateStatus]) diff --git a/frontend/src/b/ui.tsx b/frontend/src/b/ui.tsx index efc1088..415218d 100644 --- a/frontend/src/b/ui.tsx +++ b/frontend/src/b/ui.tsx @@ -1,5 +1,6 @@ import { useState, type CSSProperties, type ReactNode } from 'react' import { Link } from 'react-router' +import { IS_TOSS } from '../lib/platform' import { cx } from '../lib/utils' import { useCarousel, type Carousel } from './carousel' import { AVATAR_COLORS, iconSrc, moodEmoji, naverMap, type Load } from './lib' @@ -199,6 +200,8 @@ export function StateBox({ load, onRetry, empty, className, hold }: StateProps) /** 줄 목록 (라벨 · 값) */ /** 위치가 정해진 장소 이름. 누르면 네이버 지도가 새 탭으로 열린다 */ export function MapLink({ place, children, className }: { place: string; children: ReactNode; className?: string }) { + // 앱인토스는 외부 이동을 막는다 + if (IS_TOSS) return {children} return ( {children} diff --git a/frontend/src/lib/platform.ts b/frontend/src/lib/platform.ts new file mode 100644 index 0000000..2f1caeb --- /dev/null +++ b/frontend/src/lib/platform.ts @@ -0,0 +1,44 @@ +/** 웹/앱인토스 차이를 모으는 곳. 토스 SDK 는 토스 빌드(`vite build --mode toss`)에서만 불러온다 */ +export const IS_TOSS = import.meta.env.MODE === 'toss' + +/** 로그인·좋아요·댓글. 토스판 1차는 보기 전용이라 끈다 */ +export const SOCIAL = !IS_TOSS + +const TOSS_APP = 'intoss://nalssigak' + +// 웹 빌드에서는 이 분기가 지워져 SDK 가 번들에 들어가지 않는다 +const sdk = () => (import.meta.env.MODE === 'toss' ? import('@apps-in-toss/web-framework') : Promise.reject(new Error('토스 앱 밖에서는 쓸 수 없어요'))) + +function toBase64(blob: Blob): Promise { + return new Promise((resolve, reject) => { + const reader = new FileReader() + reader.onload = () => resolve(String(reader.result).split(',')[1] ?? '') + reader.onerror = () => reject(reader.error) + reader.readAsDataURL(blob) + }) +} + +/** 토스: 이미지를 기기에 저장하고 토스 앱 링크를 공유창으로 보낸다 */ +export async function tossShare(image: Blob, fileName: string, title: string): Promise<'saved' | 'link-only'> { + const { File, Share } = await sdk() + let saved = false + if (File.saveBase64.isSupported()) { + await File.saveBase64({ data: await toBase64(image), fileName, mimeType: image.type }) + saved = true + } + const link = await Share.createLink({ path: TOSS_APP }) + await Share.sendMessage({ message: `${title} · 날씨각 ${link}` }) + return saved ? 'saved' : 'link-only' +} + +export type TossLocation = { lat: number; lon: number } | 'denied' + +/** 토스: 권한이 이미 있을 때만 위치를 읽는다. ask 면 권한 창을 띄운다 (앱에 들어오자마자 띄우지 않으려고) */ +export async function tossLocation(ask: boolean): Promise { + const { Accuracy, Device } = await sdk() + let status = await Device.getLocation.getPermission() + if (status !== 'allowed' && ask) status = await Device.getLocation.openPermissionDialog() + if (status !== 'allowed') return ask ? 'denied' : null + const { coords } = await Device.getLocation({ accuracy: Accuracy.Balanced }) + return { lat: coords.latitude, lon: coords.longitude } +} diff --git a/frontend/tsconfig.node.json b/frontend/tsconfig.node.json index 8455dcb..4bccb31 100644 --- a/frontend/tsconfig.node.json +++ b/frontend/tsconfig.node.json @@ -19,5 +19,5 @@ "erasableSyntaxOnly": true, "noFallthroughCasesInSwitch": true }, - "include": ["vite.config.ts"] + "include": ["vite.config.ts", "apps-in-toss.config.ts"] } diff --git a/frontend/vite.config.ts b/frontend/vite.config.ts index 9f9b446..595323b 100644 --- a/frontend/vite.config.ts +++ b/frontend/vite.config.ts @@ -1,8 +1,20 @@ import tailwindcss from '@tailwindcss/vite' import react from '@vitejs/plugin-react' -import { defineConfig } from 'vite' +import { defineConfig, loadEnv } from 'vite' + +// 토스 빌드는 토스 도메인에서 열리므로 API·사이트 주소를 HTTPS 절대 주소로 받아야 한다 +function checkTossEnv(mode: string) { + if (mode !== 'toss') return + const env = loadEnv(mode, process.cwd()) + for (const key of ['VITE_API_BASE_URL', 'VITE_SITE_URL']) { + if (!env[key]?.startsWith('https://')) throw new Error(`토스 빌드: ${key} 에 https:// 주소가 필요해요 (frontend/.env.toss)`) + } +} // https://vite.dev/config/ -export default defineConfig({ - plugins: [react(), tailwindcss()], +export default defineConfig(({ mode }) => { + checkTossEnv(mode) + return { + plugins: [react(), tailwindcss()], + } }) From 7dcb40df78a7f470f6989e0aad9675e8ea02a5a5 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Tue, 13 Oct 2026 16:52:06 +0900 Subject: [PATCH 02/11] =?UTF-8?q?fix:=20=ED=86=A0=EC=8A=A4=ED=8C=90?= =?UTF-8?q?=EB=8F=84=20=EC=B2=98=EC=9D=8C=20=EB=93=A4=EC=96=B4=EC=98=A4?= =?UTF-8?q?=EB=A9=B4=20=EC=9C=84=EC=B9=98=20=EA=B6=8C=ED=95=9C=EC=9D=84=20?= =?UTF-8?q?=EB=AC=BC=EC=96=B4=20=EB=82=B4=20=EB=8F=99=EB=84=A4=EB=A1=9C=20?= =?UTF-8?q?=EB=A7=9E=EC=B6=A4=20(=EA=B8=B0=EB=B3=B8=EA=B0=92=20=EB=A7=88?= =?UTF-8?q?=ED=8F=AC=EA=B5=AC=EC=97=90=20=EB=A8=B8=EB=AC=BC=EB=8D=98=20?= =?UTF-8?q?=EA=B2=83)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/region.tsx | 7 +++---- frontend/src/lib/platform.ts | 2 +- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/frontend/src/b/region.tsx b/frontend/src/b/region.tsx index 609eeed..b829793 100644 --- a/frontend/src/b/region.tsx +++ b/frontend/src/b/region.tsx @@ -49,10 +49,9 @@ export function RegionProvider({ children }: { children: ReactNode }) { .catch(() => setLocateStatus('error')) }, [setRegion]) - // ask=false 는 처음 들어왔을 때: 토스에서는 권한 창을 띄우지 않고, 이미 허용한 사람만 위치로 맞춘다 - const findNearest = useCallback((onFound?: () => void, ask = true) => { + const findNearest = useCallback((onFound?: () => void) => { if (IS_TOSS) { - tossLocation(ask).then( + tossLocation(true).then( (loc) => { if (loc === null) setLocateStatus('idle') else if (loc === 'denied') setLocateStatus('denied') @@ -83,7 +82,7 @@ export function RegionProvider({ children }: { children: ReactNode }) { // 처음 온 사람만 위치 권한을 물어 가장 가까운 구로 맞춘다 useEffect(() => { - if (!stored && canLocate) findNearest(undefined, false) + if (!stored && canLocate) findNearest() }, [stored, canLocate, findNearest]) const api = useMemo(() => ({ region, setRegion, locate, locateStatus }), [region, setRegion, locate, locateStatus]) diff --git a/frontend/src/lib/platform.ts b/frontend/src/lib/platform.ts index 2f1caeb..4f859ce 100644 --- a/frontend/src/lib/platform.ts +++ b/frontend/src/lib/platform.ts @@ -33,7 +33,7 @@ export async function tossShare(image: Blob, fileName: string, title: string): P export type TossLocation = { lat: number; lon: number } | 'denied' -/** 토스: 권한이 이미 있을 때만 위치를 읽는다. ask 면 권한 창을 띄운다 (앱에 들어오자마자 띄우지 않으려고) */ +/** 토스: 위치를 읽는다. 권한이 없으면 ask 일 때만 권한 창을 띄운다 */ export async function tossLocation(ask: boolean): Promise { const { Accuracy, Device } = await sdk() let status = await Device.getLocation.getPermission() From e180d9651c61bc68a45ea146f9aee7903f13bbff Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Tue, 13 Oct 2026 17:07:29 +0900 Subject: [PATCH 03/11] =?UTF-8?q?fix:=20=ED=86=A0=EC=8A=A4=ED=8C=90?= =?UTF-8?q?=EC=9D=80=20=EC=A7=80=EC=97=AD=EC=9D=84=20=EA=B3=A0=EB=A5=B8=20?= =?UTF-8?q?=EC=A0=81=20=EC=9E=88=EC=96=B4=EB=8F=84=20=EC=9C=84=EC=B9=98=20?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=EC=9D=B4=20=EC=9E=88=EC=9C=BC=EB=A9=B4=20?= =?UTF-8?q?=EB=93=A4=EC=96=B4=EC=98=AC=20=EB=95=8C=EB=A7=88=EB=8B=A4=20?= =?UTF-8?q?=EC=A7=80=EA=B8=88=20=EC=9C=84=EC=B9=98=EB=A1=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/region.tsx | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/frontend/src/b/region.tsx b/frontend/src/b/region.tsx index b829793..8e4a9fd 100644 --- a/frontend/src/b/region.tsx +++ b/frontend/src/b/region.tsx @@ -30,7 +30,7 @@ export function RegionProvider({ children }: { children: ReactNode }) { const [stored] = useState(readStored) const [region, setRegionState] = useState(stored ?? DEFAULT_REGION) const canLocate = IS_TOSS || (typeof navigator !== 'undefined' && 'geolocation' in navigator) - const [locateStatus, setLocateStatus] = useState(!stored && canLocate ? 'locating' : 'idle') + const [locateStatus, setLocateStatus] = useState((!stored || IS_TOSS) && canLocate ? 'locating' : 'idle') const setRegion = useCallback((r: RegionData) => { setRegionState(r) @@ -49,9 +49,10 @@ export function RegionProvider({ children }: { children: ReactNode }) { .catch(() => setLocateStatus('error')) }, [setRegion]) - const findNearest = useCallback((onFound?: () => void) => { + // ask=false 면 토스에서 권한 창 없이, 이미 허용한 사람만 위치로 맞춘다 + const findNearest = useCallback((onFound?: () => void, ask = true) => { if (IS_TOSS) { - tossLocation(true).then( + tossLocation(ask).then( (loc) => { if (loc === null) setLocateStatus('idle') else if (loc === 'denied') setLocateStatus('denied') @@ -80,9 +81,11 @@ export function RegionProvider({ children }: { children: ReactNode }) { findNearest(onFound) }, [canLocate, findNearest]) - // 처음 온 사람만 위치 권한을 물어 가장 가까운 구로 맞춘다 + // 처음 온 사람은 위치 권한을 물어 가장 가까운 구로 맞춘다. 토스판은 지역을 고른 적 있어도 권한이 있으면 들어올 때마다 지금 위치로 useEffect(() => { - if (!stored && canLocate) findNearest() + if (!canLocate) return + if (!stored) findNearest() + else if (IS_TOSS) findNearest(undefined, false) }, [stored, canLocate, findNearest]) const api = useMemo(() => ({ region, setRegion, locate, locateStatus }), [region, setRegion, locate, locateStatus]) From ea5376820cb9d62af4f23babef834f32776ee13f Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 14 Oct 2026 15:36:36 +0900 Subject: [PATCH 04/11] =?UTF-8?q?feat:=20=ED=86=A0=EC=8A=A4=ED=8C=90=20?= =?UTF-8?q?=ED=86=A0=EC=8A=A4=20=EB=A1=9C=EA=B7=B8=EC=9D=B8(mTLS=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=20=EA=B5=90=ED=99=98=C2=B7=EC=97=B0=EA=B2=B0?= =?UTF-8?q?=20=EB=81=8A=EA=B8=B0=20=EC=BD=9C=EB=B0=B1)=EA=B3=BC=20?= =?UTF-8?q?=EC=A2=8B=EC=95=84=EC=9A=94=C2=B7=EB=8C=93=EA=B8=80=20=EB=8B=A4?= =?UTF-8?q?=EC=8B=9C=20=EC=97=B4=EA=B8=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.example | 7 ++ .gitignore | 7 +- TODO.md | 4 + backend/common/enums.py | 1 + backend/config/settings.py | 7 ++ backend/crud/user_crud.py | 9 ++ backend/postgres-init/init.sql | 9 +- backend/router/v1/auth/account.py | 37 +++++- backend/router/v1/auth/protocol.py | 15 +++ backend/services/auth_service.py | 38 +++++- backend/services/external/toss_login.py | 52 ++++++++ backend/tests/test_auth_toss.py | 87 +++++++++++++ compose.yaml | 2 + docs/앱인토스_진행계획.md | 12 +- .../api/client/@tanstack/react-query.gen.ts | 38 +++++- frontend/src/api/client/index.ts | 4 +- frontend/src/api/client/sdk.gen.ts | 26 +++- frontend/src/api/client/types.gen.ts | 114 +++++++++++++++++- frontend/src/b/BLayout.tsx | 5 +- frontend/src/b/Post.tsx | 29 ++--- frontend/src/b/Sheets.tsx | 72 +++++++++-- frontend/src/lib/analytics.ts | 2 +- frontend/src/lib/platform.ts | 9 +- 23 files changed, 530 insertions(+), 56 deletions(-) create mode 100644 backend/services/external/toss_login.py create mode 100644 backend/tests/test_auth_toss.py diff --git a/.env.example b/.env.example index 78144b6..425aa54 100644 --- a/.env.example +++ b/.env.example @@ -23,6 +23,13 @@ PORT=9810 JWT_ACCESS_SECRET= JWT_REFRESH_SECRET= +# ── 백엔드: 앱인토스 토스 로그인. 인증서·키는 저장소 최상위 secrets/toss/ 에 두고(커밋 안 함) 컨테이너 안 경로를 적는다 +# compose 는 secrets/toss 를 backend 의 /run/secrets/toss 에 읽기 전용으로 붙인다 +TOSS_MTLS_CERT=/run/secrets/toss/nalssigak_public.crt +TOSS_MTLS_KEY=/run/secrets/toss/nalssigak_private.key +# 연결 끊기 콜백 Basic Auth "아이디:비밀번호" — 콘솔에 넣은 값과 같게. 비우면 콜백을 모두 거절한다 +TOSS_UNLINK_AUTH= + # ── 배포(compose): 비우면 로컬 기본값. 킹서버 예: FRONT_PORT=30040, API_BIND=127.0.0.1:9810, PG_BIND=127.0.0.1:5440, REDIS_BIND=127.0.0.1:6390 FRONT_PORT= API_BIND= diff --git a/.gitignore b/.gitignore index 7f38461..d98028b 100644 --- a/.gitignore +++ b/.gitignore @@ -22,4 +22,9 @@ backend/openapi.json # 디자인 도구(impeccable) 캐시 .impeccable/ -/zzz \ No newline at end of file +/zzz +# 인증서·키: 서버와 각자 PC 에만 둔다 (토스 mTLS 등) +secrets/ +*.pem +*.key +*.crt diff --git a/TODO.md b/TODO.md index f213860..ed4ff31 100644 --- a/TODO.md +++ b/TODO.md @@ -167,3 +167,7 @@ | [ ] | **[결정 필요]** 각 순위가 점수 순이 아니라 보임 — 순위가 점수 × 중요도라 환기각 92점(하)이 5위, 골프각 89점이 3위, 빨래각 83점이 2위. 각 탭 받침대·스토리에서 높은 점수가 뒤에 있어 어색함. 점수를 순위대로 보여줄지, 중요도 가중을 줄일지 | 화면 직접 확인 중 발견 (10/12) | `backend/services/calc/index_calc.py` (`PRIORITY_WEIGHT`), `frontend/src/b/GakPage.tsx` | | [x] | 노을 점수 29점(잿빛)인데 결론 '나가 볼 만해요' — 결론이 구름 분포만 보고 공기 보정(가시거리·습도)을 안 봤음 → 공기 보정 0.7배 미만이면 결론 한 단계 낮추고 이유에 공기 표시, '해 질 무렵(N시) 예보 기준' 표시. 운영 DB에 `sky_score.air` 칸 추가 필요(배포 때 `init.sql`의 ALTER) | 사용자 지적 (10/12, 분당구) | `backend/services/sky_service.py` (`day_verdict`, `build_plan`), `backend/services/calc/sky_score.py` (`air_note`) | | [x] | 노을 탭 다시 짜기 → 시안 A(사용자 선택): 히어로 '오늘은 애매해요 / 18:10쯤 가장 붉어요 / 쉬운 이유', 내일 안내 바로 아래, 숫자는 '자세히', 시간표에 가장 붉을 때 — 처음 보면 '그래서 가?'에서 멈춤: 히어로 18:00이 무슨 시각인지 없음, 결론 카드가 좋은 말·나쁜 말을 섞음, 구름 %·예보 모델 수 같은 전문 용어, '가장 붉을 때'가 시간표에 없음, '내일이 더 나아요'가 맨 아래. 시안 먼저 보고 결정 | 사용자 지적 (10/12) | `frontend/src/b/SkyPage.tsx`, `backend/services/calc/sky_score.py` (`reason`) | +| [ ] | 토스 로그인 운영 설정 — 서버 `secrets/toss/`에 인증서·키 복사, 서버 `.env`에 `TOSS_MTLS_CERT`·`TOSS_MTLS_KEY`·`TOSS_UNLINK_AUTH`(값은 `.env.example` 참고). compose 마운트는 넣어 둠. 로컬에서 토스 API 호출 시 `4050 인증서버에 등록된 미니앱이 아닙니다` → 콘솔 토스 로그인 설정 후 다시 확인 | 토스 로그인 구현(10/14) | `compose.yaml`, `.env.example`, `backend/config/settings.py` | +| [ ] | **[결정 필요]** 토스 연결 끊기 처리 — 지금은 UNLINK·탈퇴 모두 토큰만 무효로 함. 토스 탈퇴(`WITHDRAWAL_TOSS`·`WITHDRAWAL_TERMS`) 때 계정·댓글을 지울지 | 토스 로그인 구현(10/14) | `backend/services/auth_service.py` | +| [ ] | 토스 로그인 문구 검토 — '토스로 로그인', '토스로 로그인했어요', '토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.', 기본 닉네임 '토스1234'(userKey 끝 4자리) | 토스 로그인 구현(10/14) | `frontend/src/b/Sheets.tsx`, `backend/services/auth_service.py` | +| [ ] | 댓글 신고·차단 — 앱인토스 필수 아님(신고·차단 필수는 채팅·만남·중고거래만, 서비스 오픈 정책·서비스별 주의사항). 만들지 않기로 함(10/14). 검수에서 요청이 오면 만든다 | 토스 로그인 구현(10/14) | | diff --git a/backend/common/enums.py b/backend/common/enums.py index 19d43ec..fac6bae 100644 --- a/backend/common/enums.py +++ b/backend/common/enums.py @@ -159,3 +159,4 @@ class RefType(CodeEnum): class AuthProvider(CodeEnum): LOCAL = 1 GOOGLE = 2 + TOSS = 3 diff --git a/backend/config/settings.py b/backend/config/settings.py index 1c26d87..ca974c8 100644 --- a/backend/config/settings.py +++ b/backend/config/settings.py @@ -36,6 +36,13 @@ class Settings(BaseSettings): jwt_access_minutes: int = 60 jwt_refresh_days: int = 30 + # 앱인토스 토스 로그인. 인증서·키는 저장소 밖(secrets/toss)에 두고 경로만 받는다 + toss_api_base: str = "https://apps-in-toss-api.toss.im" + toss_mtls_cert: str = "" + toss_mtls_key: str = "" + # 연결 끊기 콜백의 Basic Auth 값 "아이디:비밀번호". 콘솔에 넣은 값과 같아야 한다 + toss_unlink_auth: str = "" + @field_validator("data_go_kr_service_key") @classmethod def _decode_service_key(cls, v: str) -> str: diff --git a/backend/crud/user_crud.py b/backend/crud/user_crud.py index 6cd95fa..28c68c3 100644 --- a/backend/crud/user_crud.py +++ b/backend/crud/user_crud.py @@ -12,6 +12,9 @@ class UserCRUD: async def by_login_id(self, s: AsyncSession, login_id: str) -> Optional[User]: return await s.scalar(select(User).where(User.login_id == login_id, User.deleted.is_(False))) + async def by_provider_uid(self, s: AsyncSession, provider: int, provider_uid: str) -> Optional[User]: + return await s.scalar(select(User).where(User.provider == provider, User.provider_uid == provider_uid, User.deleted.is_(False))) + async def get(self, s: AsyncSession, user_id: uuid.UUID) -> Optional[User]: user = await s.get(User, user_id) return user if user is not None and not user.deleted else None @@ -22,6 +25,12 @@ class UserCRUD: await s.flush() return user + async def create_social(self, s: AsyncSession, provider: int, provider_uid: str, login_id: str, nickname: str) -> User: + user = User(login_id=login_id, password=None, provider_uid=provider_uid, nickname=nickname, provider=provider) + s.add(user) + await s.flush() + return user + async def update(self, s: AsyncSession, user_id: uuid.UUID, values: dict) -> Optional[User]: user = await self.get(s, user_id) if user is None: diff --git a/backend/postgres-init/init.sql b/backend/postgres-init/init.sql index 14452c1..2b2dfba 100644 --- a/backend/postgres-init/init.sql +++ b/backend/postgres-init/init.sql @@ -184,13 +184,13 @@ CREATE UNIQUE INDEX IF NOT EXISTS uq_post_feed_scope ON public.post (feed_date, -- 사람·반응 (좋아요·저장·댓글은 로그인 필요, 보내기는 누구나) --- 사용자. 일반(아이디·비밀번호) 또는 구글 로그인. 이름·전화번호는 받지 않는다. +-- 사용자. 일반(아이디·비밀번호), 구글, 토스(앱인토스) 로그인. 이름·전화번호는 받지 않는다. CREATE TABLE IF NOT EXISTS public.users ( user_id UUID PRIMARY KEY DEFAULT gen_random_uuid(), - provider SMALLINT NOT NULL DEFAULT 1, -- AuthProvider: 1=일반 2=구글 - login_id VARCHAR(64) NOT NULL, -- 일반은 아이디, 구글은 google_ + provider SMALLINT NOT NULL DEFAULT 1, -- AuthProvider: 1=일반 2=구글 3=토스 + login_id VARCHAR(64) NOT NULL, -- 일반은 아이디, 구글은 google_, 토스는 toss_ password VARCHAR(255) NULL, -- bcrypt 해시. 구글 계정은 NULL - provider_uid VARCHAR(255) NULL, -- 구글 sub. 일반 계정은 NULL + provider_uid VARCHAR(255) NULL, -- 구글 sub 또는 토스 userKey. 일반 계정은 NULL nickname VARCHAR(30) NOT NULL, -- 댓글에 보이는 이름 character VARCHAR(20) NOT NULL DEFAULT 'rabbit', -- 프로필 캐릭터: rabbit·bear·dog·sun·moon·cloud color VARCHAR(20) NOT NULL DEFAULT 'orange', -- 프로필 배경색: orange·blue·green·purple·pink·brown @@ -203,6 +203,7 @@ CREATE TABLE IF NOT EXISTS public.users ( ); CREATE UNIQUE INDEX IF NOT EXISTS uq_users_login_id ON public.users (login_id) WHERE deleted = FALSE; CREATE UNIQUE INDEX IF NOT EXISTS uq_users_google ON public.users (provider_uid) WHERE provider = 2 AND deleted = FALSE; +CREATE UNIQUE INDEX IF NOT EXISTS uq_users_toss ON public.users (provider_uid) WHERE provider = 3 AND deleted = FALSE; CREATE TABLE IF NOT EXISTS public.post_like ( post_id BIGINT NOT NULL, diff --git a/backend/router/v1/auth/account.py b/backend/router/v1/auth/account.py index c99dd7a..2ee0c07 100644 --- a/backend/router/v1/auth/account.py +++ b/backend/router/v1/auth/account.py @@ -1,10 +1,17 @@ -from fastapi import APIRouter, Depends +import base64 +import binascii +import secrets +from typing import Optional + +from fastapi import APIRouter, Depends, Header, HTTPException from common.auth import current_user from common.database.model.models import User from common.enums import AuthProvider, ErrorType +from common.logger import LOG from common.models.errors import error_info -from router.v1.auth.protocol import Me, Req_Login, Req_Refresh, Req_Signup, Req_UpdateMe, Res_Auth, Res_Logout, Res_Me +from config.settings import settings +from router.v1.auth.protocol import Me, Req_Login, Req_Refresh, Req_Signup, Req_TossLogin, Req_TossUnlink, Req_UpdateMe, Res_Auth, Res_Logout, Res_Me, Res_TossUnlink from services.auth_service import AuthService router = APIRouter(prefix="/v1/auth", tags=["auth"]) @@ -33,6 +40,32 @@ async def login(req: Req_Login, service: AuthService = Depends()) -> Res_Auth: return _auth(err, user, service) +@router.post("/toss", response_model=Res_Auth, response_model_exclude_none=True, summary="토스 로그인 (앱인토스 TossAuth.login 의 authorizationCode·referrer)") +async def toss(req: Req_TossLogin, service: AuthService = Depends()) -> Res_Auth: + err, user = await service.toss_login(req.authorization_code, req.referrer) + return _auth(err, user, service) + + +def _check_toss_basic(authorization: Optional[str]) -> None: + """콘솔에 넣은 "아이디:비밀번호" 와 같은지 본다. 값이 비어 있으면 모두 거절한다.""" + given = "" + if authorization and authorization.startswith("Basic "): + try: + given = base64.b64decode(authorization.removeprefix("Basic "), validate=True).decode() + except (binascii.Error, UnicodeDecodeError): + given = "" + if not settings.toss_unlink_auth or not secrets.compare_digest(given.encode(), settings.toss_unlink_auth.encode()): + raise HTTPException(status_code=401, detail=ErrorType.AUTH_FAILED.name) + + +@router.post("/toss/unlink", response_model=Res_TossUnlink, response_model_exclude_none=True, summary="토스 연결 끊기 콜백 (토스 서버가 Basic Auth 로 부름)") +async def toss_unlink(req: Req_TossUnlink, authorization: Optional[str] = Header(None), service: AuthService = Depends()) -> Res_TossUnlink: + _check_toss_basic(authorization) + LOG.info(f"[auth] toss unlink: {req.referrer}") + err = await service.toss_unlink(str(req.userKey)) + return Res_TossUnlink() if err is ErrorType.SUCCESS else Res_TossUnlink(result=error_info(err)) + + @router.post("/refresh", response_model=Res_Auth, response_model_exclude_none=True, summary="토큰 재발급") async def refresh(req: Req_Refresh, service: AuthService = Depends()) -> Res_Auth: err, user = await service.refresh(req.refresh_token) diff --git a/backend/router/v1/auth/protocol.py b/backend/router/v1/auth/protocol.py index f8bb6bc..f80ffcd 100644 --- a/backend/router/v1/auth/protocol.py +++ b/backend/router/v1/auth/protocol.py @@ -15,6 +15,17 @@ class Req_Login(Req_WebPacketProtocol): password: str +class Req_TossLogin(Req_WebPacketProtocol): + authorization_code: str + referrer: str + + +class Req_TossUnlink(Req_WebPacketProtocol): + """토스가 보내는 모양 그대로 (camelCase)""" + userKey: int + referrer: str + + class Req_Refresh(Req_WebPacketProtocol): refresh_token: str @@ -41,6 +52,10 @@ class Res_Auth(Res_WebPacketProtocol): me: Optional[Me] = None +class Res_TossUnlink(Res_WebPacketProtocol): + pass + + class Res_Logout(Res_WebPacketProtocol): pass diff --git a/backend/services/auth_service.py b/backend/services/auth_service.py index 92b3423..3642f15 100644 --- a/backend/services/auth_service.py +++ b/backend/services/auth_service.py @@ -7,9 +7,11 @@ from fastapi import Depends from common.auth import PASSWORD_MAX_BYTES, decode, hash_password, issue_tokens, verify_password from common.database.db_session_manager import DB_SESSION_MNG from common.database.model.models import User -from common.enums import ErrorType +from common.enums import AuthProvider, ErrorType +from common.logger import LOG from config.settings import settings from crud.user_crud import UserCRUD +from services.external import toss_login LOGIN_ID = re.compile(r"^[a-z0-9_]{4,20}$") PASSWORD_MIN = 8 @@ -17,6 +19,7 @@ NICKNAME = re.compile(r"^\S.{0,10}\S$") CHARACTERS = ("rabbit", "bear", "dog", "sun", "moon", "cloud") COLORS = ("orange", "blue", "green", "purple", "pink", "brown") MOODS = ("clear", "partly", "cloudy", "rain", "thunder", "snow", "fog", "rainbow") +TOSS_REFERRERS = ("DEFAULT", "SANDBOX") class AuthService: @@ -47,6 +50,39 @@ class AuthService: return ErrorType.AUTH_FAILED, None return ErrorType.SUCCESS, user + async def toss_login(self, authorization_code: str, referrer: str) -> tuple[ErrorType, Optional[User]]: + """토스 userKey 로 계정을 찾고, 없으면 만든다. 이름·전화번호 같은 개인정보는 받지 않는다.""" + if not authorization_code or referrer not in TOSS_REFERRERS: + return ErrorType.INVALID_INPUT, None + try: + key = str(await toss_login.user_key(authorization_code, referrer)) + except toss_login.TossLoginError as e: + LOG.error(f"[auth] toss login: {e}") + return ErrorType.AUTH_FAILED, None + provider = AuthProvider.TOSS.value + err, user = await DB_SESSION_MNG.execute_lambda(lambda s: self.crud.by_provider_uid(s, provider, key)) + if err is not ErrorType.SUCCESS: + return err, None + if user is None: + err, user = await DB_SESSION_MNG.execute_lambda_write( + lambda s: self.crud.create_social(s, provider, key, f"toss_{key}", f"토스{key[-4:]}") + ) + if err is not ErrorType.SUCCESS: + # 같은 사람이 동시에 두 번 들어온 경우 먼저 만든 계정을 쓴다 + err, user = await DB_SESSION_MNG.execute_lambda(lambda s: self.crud.by_provider_uid(s, provider, key)) + if err is not ErrorType.SUCCESS or user is None: + return err if err is not ErrorType.SUCCESS else ErrorType.DB_ERROR, None + if user.status != 1: + return ErrorType.AUTH_FAILED, None + return ErrorType.SUCCESS, user + + async def toss_unlink(self, user_key: str) -> ErrorType: + """토스에서 연결을 끊으면 그 계정의 모든 토큰을 무효로 만든다. 계정이 없어도 성공으로 본다.""" + err, user = await DB_SESSION_MNG.execute_lambda(lambda s: self.crud.by_provider_uid(s, AuthProvider.TOSS.value, user_key)) + if err is not ErrorType.SUCCESS or user is None: + return err + return await self.logout(user) + async def refresh(self, refresh_token: str) -> tuple[ErrorType, Optional[User]]: claims = decode(refresh_token, settings.jwt_refresh_secret, "refresh") if claims is None: diff --git a/backend/services/external/toss_login.py b/backend/services/external/toss_login.py new file mode 100644 index 0000000..f39c902 --- /dev/null +++ b/backend/services/external/toss_login.py @@ -0,0 +1,52 @@ +import ssl +from functools import lru_cache + +import httpx + +from common.logger import LOG +from config.settings import settings + +TIMEOUT_SEC = 10.0 +_PATH = "/api-partner/v1/apps-in-toss/user/oauth2" + + +class TossLoginError(Exception): + pass + + +@lru_cache(maxsize=1) +def _mtls() -> ssl.SSLContext: + if not settings.toss_mtls_cert or not settings.toss_mtls_key: + raise TossLoginError("TOSS_MTLS_CERT / TOSS_MTLS_KEY is empty") + ctx = ssl.create_default_context() + ctx.load_cert_chain(settings.toss_mtls_cert, settings.toss_mtls_key) + return ctx + + +def _success(res: httpx.Response, step: str) -> dict: + """토스는 업무 오류도 HTTP 200 + resultType=FAIL 로 준다. 로그에 토큰·개인정보를 남기지 않는다.""" + res.raise_for_status() + body = res.json() + if body.get("resultType") != "SUCCESS": + err = body.get("error") + code = err.get("errorCode") if isinstance(err, dict) else err + raise TossLoginError(f"{step} failed: {code}") + return body["success"] + + +async def user_key(authorization_code: str, referrer: str) -> int: + """앱에서 받은 인가 코드로 토스 토큰을 받고, 그 토큰으로 이 앱 전용 사용자 키(userKey)만 읽는다.""" + try: + async with httpx.AsyncClient(base_url=settings.toss_api_base, verify=_mtls(), timeout=TIMEOUT_SEC, follow_redirects=False) as client: + token = _success( + await client.post(f"{_PATH}/generate-token", json={"authorizationCode": authorization_code, "referrer": referrer}), + "generate-token", + ) + me = _success( + await client.get(f"{_PATH}/login-me", headers={"Authorization": f"Bearer {token['accessToken']}"}), + "login-me", + ) + return int(me["userKey"]) + except (httpx.HTTPError, ssl.SSLError, OSError, KeyError, ValueError) as e: + LOG.error(f"[toss] login failed: {type(e).__name__}") + raise TossLoginError(type(e).__name__) from None diff --git a/backend/tests/test_auth_toss.py b/backend/tests/test_auth_toss.py new file mode 100644 index 0000000..78587b8 --- /dev/null +++ b/backend/tests/test_auth_toss.py @@ -0,0 +1,87 @@ +import base64 + +import httpx +import pytest +from httpx import ASGITransport, AsyncClient + +from config.settings import settings +from router.router import app +from services.external import toss_login + + +def client(): + return AsyncClient(transport=ASGITransport(app=app), base_url="http://test") + + +@pytest.fixture +def toss(monkeypatch): + """토스 서버 대신 코드별로 정해 둔 userKey 를 돌려준다.""" + keys = {"code-a": 1234567, "code-b": 7654321} + + async def fake_user_key(code: str, referrer: str) -> int: + if code not in keys: + raise toss_login.TossLoginError("generate-token failed: invalid_grant") + return keys[code] + + monkeypatch.setattr(toss_login, "user_key", fake_user_key) + monkeypatch.setattr(settings, "toss_unlink_auth", "toss:unlink-secret") + + +def _basic(value: str) -> dict: + return {"Authorization": "Basic " + base64.b64encode(value.encode()).decode()} + + +@pytest.mark.anyio +async def test_toss_login_creates_once_and_reuses(toss): + async with client() as c: + first = (await c.post("/v1/auth/toss", json={"authorization_code": "code-a", "referrer": "SANDBOX"})).json() + again = (await c.post("/v1/auth/toss", json={"authorization_code": "code-a", "referrer": "DEFAULT"})).json() + other = (await c.post("/v1/auth/toss", json={"authorization_code": "code-b", "referrer": "DEFAULT"})).json() + me = (await c.get("/v1/auth/me", headers={"Authorization": f"Bearer {first['access_token']}"})).json() + assert first["result"]["success"] is True and first["me"]["provider"] == 3 + assert first["me"]["login_id"] == again["me"]["login_id"] == "toss_1234567" + assert other["me"]["login_id"] == "toss_7654321" + assert me["me"]["login_id"] == "toss_1234567" + + +@pytest.mark.anyio +async def test_toss_login_rejects_bad_code_and_referrer(toss): + async with client() as c: + bad_code = (await c.post("/v1/auth/toss", json={"authorization_code": "nope", "referrer": "DEFAULT"})).json() + bad_ref = (await c.post("/v1/auth/toss", json={"authorization_code": "code-a", "referrer": "WEB"})).json() + assert bad_code["result"]["desc"] == "AUTH_FAILED" + assert bad_ref["result"]["desc"] == "INVALID_INPUT" + + +@pytest.mark.anyio +async def test_toss_unlink_needs_basic_auth_and_kills_tokens(toss): + async with client() as c: + login = (await c.post("/v1/auth/toss", json={"authorization_code": "code-a", "referrer": "DEFAULT"})).json() + body = {"userKey": 1234567, "referrer": "UNLINK"} + assert (await c.post("/v1/auth/toss/unlink", json=body)).status_code == 401 + assert (await c.post("/v1/auth/toss/unlink", json=body, headers=_basic("toss:wrong"))).status_code == 401 + ok = await c.post("/v1/auth/toss/unlink", json=body, headers=_basic("toss:unlink-secret")) + unknown = await c.post("/v1/auth/toss/unlink", json={"userKey": 1, "referrer": "WITHDRAWAL_TOSS"}, headers=_basic("toss:unlink-secret")) + me = await c.get("/v1/auth/me", headers={"Authorization": f"Bearer {login['access_token']}"}) + assert ok.status_code == 200 and ok.json()["result"]["success"] is True + assert unknown.status_code == 200 + assert me.status_code == 401 + + +@pytest.mark.anyio +async def test_toss_unlink_rejects_all_when_not_configured(toss, monkeypatch): + monkeypatch.setattr(settings, "toss_unlink_auth", "") + async with client() as c: + r = await c.post("/v1/auth/toss/unlink", json={"userKey": 1, "referrer": "UNLINK"}, headers=_basic(":")) + assert r.status_code == 401 + + +def test_success_reads_toss_wrapper(): + ok = httpx.Response(200, json={"resultType": "SUCCESS", "success": {"userKey": 1}}, request=httpx.Request("GET", "https://x")) + fail = httpx.Response(200, json={"resultType": "FAIL", "error": {"errorCode": "4050", "reason": "x"}}, request=httpx.Request("GET", "https://x")) + grant = httpx.Response(200, json={"error": "invalid_grant"}, request=httpx.Request("GET", "https://x")) + assert toss_login._success(ok, "login-me") == {"userKey": 1} + with pytest.raises(toss_login.TossLoginError, match="4050"): + toss_login._success(fail, "login-me") + with pytest.raises(toss_login.TossLoginError, match="invalid_grant"): + toss_login._success(grant, "generate-token") diff --git a/compose.yaml b/compose.yaml index 67d2d47..263130c 100644 --- a/compose.yaml +++ b/compose.yaml @@ -43,6 +43,8 @@ services: REDIS_PORT: "6379" ports: - "${API_BIND:-9810}:9800" + volumes: + - ./secrets/toss:/run/secrets/toss:ro depends_on: postgres: condition: service_healthy diff --git a/docs/앱인토스_진행계획.md b/docs/앱인토스_진행계획.md index 894fa70..4de61dc 100644 --- a/docs/앱인토스_진행계획.md +++ b/docs/앱인토스_진행계획.md @@ -7,7 +7,7 @@ - 토스판은 **WebView**로 만든다. React Native(Granite)는 쓰지 않는다. RN은 토스와 무관한 독립 앱으로만 진행한다. - 프로젝트를 따로 만들지 않는다. 지금 `frontend/` 하나에서 **웹 빌드**와 **토스 빌드** 두 가지를 낸다. - 웹을 먼저 출시하고, 토스판은 그 뒤에 낸다. -- 토스판 1차는 **보기 전용**이다. 로그인·좋아요·댓글은 끈다. +- 토스판 1차부터 **토스 로그인**을 넣는다(10/14 결정). 좋아요·댓글도 웹과 같이 켠다. 아이디 로그인은 토스판에서 쓰지 않는다. ## 구조 @@ -31,7 +31,8 @@ frontend/ |---|---|---|---| | 공유 | `navigator.share` (이미지 카드 + 링크) | 이미지는 기기에 저장(`File.saveBase64`), 링크는 `Share.createLink` + `Share.sendMessage`. SDK 공유는 글만 보낼 수 있다 | `frontend/src/b/Sheets.tsx` | | 위치 | `navigator.geolocation` | `Device.getLocation`. 처음 들어올 때는 권한 창을 띄우지 않고, 이미 허용한 사람만 위치로 맞춘다. '내 위치' 버튼을 누를 때 권한 창을 띄운다 | `frontend/src/b/region.tsx` | -| 로그인·좋아요·댓글 | 있음 | 숨김 (상단 로그인, 카드의 하트·댓글·좋아요 수, 두 번 눌러 좋아요, 지역 창 아래 로그인 줄) | `frontend/src/b/Post.tsx`, `frontend/src/b/Sheets.tsx`, `frontend/src/b/BLayout.tsx` | +| 로그인 | 아이디·비밀번호 | 토스 로그인(`TossAuth.login` → `POST /v1/auth/toss`). 토스가 주는 개인정보는 받지 않고 `userKey`만 저장한다 | `frontend/src/b/Sheets.tsx` (`TossLoginSheet`), `backend/services/external/toss_login.py` | +| 좋아요·댓글 | 있음 | 있음. 신고·차단은 필수가 아니라 만들지 않는다(검수에서 요청하면 만든다) | `frontend/src/b/Post.tsx`, `frontend/src/b/Sheets.tsx` | | 네이버 지도 링크 | 있음 | 장소 이름만 표시. Q4 답이 '예외 해당'이면 되돌린다 | `frontend/src/b/ui.tsx` (`MapLink`) | | 밤 배경 | 어두운 남색 | Q3 답 보고 결정 | `frontend/src/b/BLayout.tsx` | | GA4 | `index.html`에 태그 | Q2 답 보고 결정 | `frontend/index.html`, `frontend/src/lib/analytics.ts` | @@ -72,10 +73,13 @@ frontend/ ### 2. 플랫폼 분기 - [x] `src/lib/platform.ts`: `IS_TOSS`, `SOCIAL`, `tossShare`, `tossLocation` -- [x] 공유·위치·로그인·좋아요·댓글·지도 링크를 토스에서 분기 +- [x] 공유·위치·지도 링크를 토스에서 분기 +- [x] 토스 로그인: 백엔드 `POST /v1/auth/toss`, 연결 끊기 콜백 `POST /v1/auth/toss/unlink`, 프론트 `TossLoginSheet` (10/14) +- [ ] 운영 서버에 mTLS 인증서 두기, `.env`에 `TOSS_MTLS_CERT`·`TOSS_MTLS_KEY`·`TOSS_UNLINK_AUTH`, compose 마운트 +- [ ] 콘솔: 토스 로그인 약관 동의·동의 항목·연결 끊기 콜백 등록 - [ ] Q1~Q3 답에 따라 라우터·GA4·밤 배경을 처리한다 (지금은 웹과 같음) -완료 기준: 웹은 지금과 똑같이 동작한다. 토스에서는 로그인 관련 화면이 하나도 보이지 않는다. +완료 기준: 웹은 지금과 똑같이 동작한다. 토스에서는 토스 로그인으로만 로그인한다. ### 3. 토스판 피드 줄이기 — 결정 대기 diff --git a/frontend/src/api/client/@tanstack/react-query.gen.ts b/frontend/src/api/client/@tanstack/react-query.gen.ts index 1cb695b..dab67ad 100644 --- a/frontend/src/api/client/@tanstack/react-query.gen.ts +++ b/frontend/src/api/client/@tanstack/react-query.gen.ts @@ -3,8 +3,8 @@ import { type DefaultError, type InfiniteData, infiniteQueryOptions, queryOptions, type UseMutationOptions } from '@tanstack/react-query'; import { client } from '../client.gen'; -import { addComment, deleteComment, getArticle, getFeed, getImage, getIndex, getPost, getSeasonWeek, getSky, getSkyRanking, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, healthzHealthzGet, likeComment, likePost, listArticles, listComments, listEvents, listIndices, listPlaces, listRegions, listSaved, login, logout, me, nearestRegion, type Options, refresh, savePost, signup, unlikeComment, unlikePost, unsavePost, updateMe } from '../sdk.gen'; -import type { AddCommentData, AddCommentError, AddCommentResponse, DeleteCommentData, DeleteCommentError, DeleteCommentResponse, GetArticleData, GetArticleError, GetArticleResponse, GetFeedData, GetFeedError, GetFeedResponse, GetImageData, GetImageError, GetIndexData, GetIndexError, GetIndexResponse, GetPostData, GetPostError, GetPostResponse, GetSeasonWeekData, GetSeasonWeekResponse, GetSkyData, GetSkyError, GetSkyRankingData, GetSkyRankingResponse, GetSkyResponse, GetWatchSummaryData, GetWatchSummaryError, GetWatchSummaryResponse, GetWeatherNowData, GetWeatherNowError, GetWeatherNowResponse, GetWeatherTodayData, GetWeatherTodayError, GetWeatherTodayResponse, GetWeekData, GetWeekError, GetWeekRankingData, GetWeekRankingResponse, GetWeekResponse, HealthzHealthzGetData, HealthzHealthzGetResponse, LikeCommentData, LikeCommentError, LikeCommentResponse, LikePostData, LikePostError, LikePostResponse, ListArticlesData, ListArticlesError, ListArticlesResponse, ListCommentsData, ListCommentsError, ListCommentsResponse, ListEventsData, ListEventsError, ListEventsResponse, ListIndicesData, ListIndicesError, ListIndicesResponse, ListPlacesData, ListPlacesError, ListPlacesResponse, ListRegionsData, ListRegionsError, ListRegionsResponse, ListSavedData, ListSavedError, ListSavedResponse, LoginData, LoginError, LoginResponse, LogoutData, LogoutError, LogoutResponse, MeData, MeError, MeResponse, NearestRegionData, NearestRegionError, NearestRegionResponse, RefreshData, RefreshError, RefreshResponse, SavePostData, SavePostError, SavePostResponse, SignupData, SignupError, SignupResponse, UnlikeCommentData, UnlikeCommentError, UnlikeCommentResponse, UnlikePostData, UnlikePostError, UnlikePostResponse, UnsavePostData, UnsavePostError, UnsavePostResponse, UpdateMeData, UpdateMeError, UpdateMeResponse } from '../types.gen'; +import { addComment, deleteComment, getArticle, getFeed, getImage, getIndex, getPost, getSeasonWeek, getSky, getSkyRanking, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, healthzHealthzGet, likeComment, likePost, listArticles, listComments, listEvents, listIndices, listPlaces, listRegions, listSaved, login, logout, me, nearestRegion, type Options, refresh, savePost, signup, toss, tossUnlink, unlikeComment, unlikePost, unsavePost, updateMe } from '../sdk.gen'; +import type { AddCommentData, AddCommentError, AddCommentResponse, DeleteCommentData, DeleteCommentError, DeleteCommentResponse, GetArticleData, GetArticleError, GetArticleResponse, GetFeedData, GetFeedError, GetFeedResponse, GetImageData, GetImageError, GetIndexData, GetIndexError, GetIndexResponse, GetPostData, GetPostError, GetPostResponse, GetSeasonWeekData, GetSeasonWeekResponse, GetSkyData, GetSkyError, GetSkyRankingData, GetSkyRankingResponse, GetSkyResponse, GetWatchSummaryData, GetWatchSummaryError, GetWatchSummaryResponse, GetWeatherNowData, GetWeatherNowError, GetWeatherNowResponse, GetWeatherTodayData, GetWeatherTodayError, GetWeatherTodayResponse, GetWeekData, GetWeekError, GetWeekRankingData, GetWeekRankingResponse, GetWeekResponse, HealthzHealthzGetData, HealthzHealthzGetResponse, LikeCommentData, LikeCommentError, LikeCommentResponse, LikePostData, LikePostError, LikePostResponse, ListArticlesData, ListArticlesError, ListArticlesResponse, ListCommentsData, ListCommentsError, ListCommentsResponse, ListEventsData, ListEventsError, ListEventsResponse, ListIndicesData, ListIndicesError, ListIndicesResponse, ListPlacesData, ListPlacesError, ListPlacesResponse, ListRegionsData, ListRegionsError, ListRegionsResponse, ListSavedData, ListSavedError, ListSavedResponse, LoginData, LoginError, LoginResponse, LogoutData, LogoutError, LogoutResponse, MeData, MeError, MeResponse, NearestRegionData, NearestRegionError, NearestRegionResponse, RefreshData, RefreshError, RefreshResponse, SavePostData, SavePostError, SavePostResponse, SignupData, SignupError, SignupResponse, TossData, TossError, TossResponse, TossUnlinkData, TossUnlinkError, TossUnlinkResponse, UnlikeCommentData, UnlikeCommentError, UnlikeCommentResponse, UnlikePostData, UnlikePostError, UnlikePostResponse, UnsavePostData, UnsavePostError, UnsavePostResponse, UpdateMeData, UpdateMeError, UpdateMeResponse } from '../types.gen'; export type QueryKey = [ Pick & { @@ -379,6 +379,40 @@ export const loginMutation = (options?: Partial>): UseMutatio return mutationOptions; }; +/** + * 토스 로그인 (앱인토스 TossAuth.login 의 authorizationCode·referrer) + */ +export const tossMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await toss({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + +/** + * 토스 연결 끊기 콜백 (토스 서버가 Basic Auth 로 부름) + */ +export const tossUnlinkMutation = (options?: Partial>): UseMutationOptions> => { + const mutationOptions: UseMutationOptions> = { + mutationFn: async (fnOptions) => { + const { data } = await tossUnlink({ + ...options, + ...fnOptions, + throwOnError: true + }); + return data; + } + }; + return mutationOptions; +}; + /** * 토큰 재발급 */ diff --git a/frontend/src/api/client/index.ts b/frontend/src/api/client/index.ts index bb70c7a..7656463 100644 --- a/frontend/src/api/client/index.ts +++ b/frontend/src/api/client/index.ts @@ -1,4 +1,4 @@ // This file is auto-generated by @hey-api/openapi-ts -export { addComment, deleteComment, getArticle, getFeed, getImage, getIndex, getPost, getSeasonWeek, getSky, getSkyRanking, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, healthzHealthzGet, likeComment, likePost, listArticles, listComments, listEvents, listIndices, listPlaces, listRegions, listSaved, login, logout, me, nearestRegion, type Options, refresh, savePost, signup, unlikeComment, unlikePost, unsavePost, updateMe } from './sdk.gen'; -export { type AddCommentData, type AddCommentError, type AddCommentErrors, type AddCommentResponse, type AddCommentResponses, type AirData, AirGrade, ArticleCategory, type ArticleSummary, AuthProvider, type BandArticle, type BandEvent, type Bands, type BestTime, type ClientOptions, type CommentData, type CommuteData, Confidence, type Cut, type DayData, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type ErrorInfo, type EventData, type Factor, type GakSlide, type GetArticleData, type GetArticleError, type GetArticleErrors, type GetArticleResponse, type GetArticleResponses, type GetFeedData, type GetFeedError, type GetFeedErrors, type GetFeedResponse, type GetFeedResponses, type GetImageData, type GetImageError, type GetImageErrors, type GetImageResponses, type GetIndexData, type GetIndexError, type GetIndexErrors, type GetIndexResponse, type GetIndexResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetSeasonWeekData, type GetSeasonWeekResponse, type GetSeasonWeekResponses, type GetSkyData, type GetSkyError, type GetSkyErrors, type GetSkyRankingData, type GetSkyRankingResponse, type GetSkyRankingResponses, type GetSkyResponse, type GetSkyResponses, type GetWatchSummaryData, type GetWatchSummaryError, type GetWatchSummaryErrors, type GetWatchSummaryResponse, type GetWatchSummaryResponses, type GetWeatherNowData, type GetWeatherNowError, type GetWeatherNowErrors, type GetWeatherNowResponse, type GetWeatherNowResponses, type GetWeatherTodayData, type GetWeatherTodayError, type GetWeatherTodayErrors, type GetWeatherTodayResponse, type GetWeatherTodayResponses, type GetWeekData, type GetWeekError, type GetWeekErrors, type GetWeekRankingData, type GetWeekRankingResponse, type GetWeekRankingResponses, type GetWeekResponse, type GetWeekResponses, type HealthzHealthzGetData, type HealthzHealthzGetResponse, type HealthzHealthzGetResponses, type Hero, type HeroStat, type HourCell, type HoursSlide, type HttpValidationError, IndexCategory, type IndexSummary, type LikeCommentData, type LikeCommentError, type LikeCommentErrors, type LikeCommentResponse, type LikeCommentResponses, type LikePostData, type LikePostError, type LikePostErrors, type LikePostResponse, type LikePostResponses, type ListArticlesData, type ListArticlesError, type ListArticlesErrors, type ListArticlesResponse, type ListArticlesResponses, type ListCommentsData, type ListCommentsError, type ListCommentsErrors, type ListCommentsResponse, type ListCommentsResponses, type ListEventsData, type ListEventsError, type ListEventsErrors, type ListEventsResponse, type ListEventsResponses, type ListIndicesData, type ListIndicesError, type ListIndicesErrors, type ListIndicesResponse, type ListIndicesResponses, type ListPlacesData, type ListPlacesError, type ListPlacesErrors, type ListPlacesResponse, type ListPlacesResponses, type ListRegionsData, type ListRegionsError, type ListRegionsErrors, type ListRegionsResponse, type ListRegionsResponses, type ListSavedData, type ListSavedError, type ListSavedErrors, type ListSavedResponse, type ListSavedResponses, type LoginData, type LoginError, type LoginErrors, type LoginResponse, type LoginResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutResponse, type LogoutResponses, type Me, type MeData, type MeError, type MeErrors, type MeResponse, type MeResponses, type NearestRegionData, type NearestRegionError, type NearestRegionErrors, type NearestRegionResponse, type NearestRegionResponses, type PlaceData, type PlanSlide, type PlanSpot, type PlanStep, type PostData, PostType, type Rain2h, type RainHourData, RainType, type RankData, type RefreshData, type RefreshError, type RefreshErrors, type RefreshResponse, type RefreshResponses, type RegionData, type ReqComment, type ReqLogin, type ReqRefresh, type ReqSignup, type ReqUpdateMe, type ResArticle, type ResArticleList, type ResAuth, type ResComment, type ResCommentLike, type ResCommentList, type ResEventList, type ResFeed, type ResHealth, type ResIndexDetail, type ResIndexList, type ResLogout, type ResMe, type ResPlaceList, type ResPost, type ResPostLike, type ResPostSave, type ResRegion, type ResRegionList, type ResSavedList, type ResSeasonWeek, type ResSky, type ResSkyRanking, type ResWatchSummary, type ResWeatherNow, type ResWeatherToday, type ResWebPacketProtocol, type ResWeek, type ResWeekRanking, type Row, type RowsSlide, type SavedPost, type SavePostData, type SavePostError, type SavePostErrors, type SavePostResponse, type SavePostResponses, type ScoreBand, type SignupData, type SignupError, type SignupErrors, type SignupResponse, type SignupResponses, Sky, SkyGrade, type SkyPlanData, type SkyScoreData, SkySituation, SkyType, type SlotPoint, SlotTone, type SpotData, type SunsetSlide, type TermData, type Tomorrow, type TopIndex, type TrendPoint, type UnlikeCommentData, type UnlikeCommentError, type UnlikeCommentErrors, type UnlikeCommentResponse, type UnlikeCommentResponses, type UnlikePostData, type UnlikePostError, type UnlikePostErrors, type UnlikePostResponse, type UnlikePostResponses, type UnsavePostData, type UnsavePostError, type UnsavePostErrors, type UnsavePostResponse, type UnsavePostResponses, type UpdateMeData, type UpdateMeError, type UpdateMeErrors, type UpdateMeResponse, type UpdateMeResponses, type ValidationError, type WarningData, WarningLevel, WarningType, type WatchEvent, type WatchNow, type WatchSlot, type WatchSunset, type WatchTimeline, type WeatherSlot, type WeekDay, type WeekGak, type WeekRankDay, type WeekRankItem, type WeekSlide } from './types.gen'; +export { addComment, deleteComment, getArticle, getFeed, getImage, getIndex, getPost, getSeasonWeek, getSky, getSkyRanking, getWatchSummary, getWeatherNow, getWeatherToday, getWeek, getWeekRanking, healthzHealthzGet, likeComment, likePost, listArticles, listComments, listEvents, listIndices, listPlaces, listRegions, listSaved, login, logout, me, nearestRegion, type Options, refresh, savePost, signup, toss, tossUnlink, unlikeComment, unlikePost, unsavePost, updateMe } from './sdk.gen'; +export { type AddCommentData, type AddCommentError, type AddCommentErrors, type AddCommentResponse, type AddCommentResponses, type AirData, AirGrade, ArticleCategory, type ArticleSummary, AuthProvider, type BandArticle, type BandEvent, type Bands, type BestTime, type ClientOptions, type CommentData, type CommuteData, Confidence, type Cut, type DayData, type DeleteCommentData, type DeleteCommentError, type DeleteCommentErrors, type DeleteCommentResponse, type DeleteCommentResponses, type ErrorInfo, type EventData, type Factor, type GakSlide, type GetArticleData, type GetArticleError, type GetArticleErrors, type GetArticleResponse, type GetArticleResponses, type GetFeedData, type GetFeedError, type GetFeedErrors, type GetFeedResponse, type GetFeedResponses, type GetImageData, type GetImageError, type GetImageErrors, type GetImageResponses, type GetIndexData, type GetIndexError, type GetIndexErrors, type GetIndexResponse, type GetIndexResponses, type GetPostData, type GetPostError, type GetPostErrors, type GetPostResponse, type GetPostResponses, type GetSeasonWeekData, type GetSeasonWeekResponse, type GetSeasonWeekResponses, type GetSkyData, type GetSkyError, type GetSkyErrors, type GetSkyRankingData, type GetSkyRankingResponse, type GetSkyRankingResponses, type GetSkyResponse, type GetSkyResponses, type GetWatchSummaryData, type GetWatchSummaryError, type GetWatchSummaryErrors, type GetWatchSummaryResponse, type GetWatchSummaryResponses, type GetWeatherNowData, type GetWeatherNowError, type GetWeatherNowErrors, type GetWeatherNowResponse, type GetWeatherNowResponses, type GetWeatherTodayData, type GetWeatherTodayError, type GetWeatherTodayErrors, type GetWeatherTodayResponse, type GetWeatherTodayResponses, type GetWeekData, type GetWeekError, type GetWeekErrors, type GetWeekRankingData, type GetWeekRankingResponse, type GetWeekRankingResponses, type GetWeekResponse, type GetWeekResponses, type HealthzHealthzGetData, type HealthzHealthzGetResponse, type HealthzHealthzGetResponses, type Hero, type HeroStat, type HourCell, type HoursSlide, type HttpValidationError, IndexCategory, type IndexSummary, type LikeCommentData, type LikeCommentError, type LikeCommentErrors, type LikeCommentResponse, type LikeCommentResponses, type LikePostData, type LikePostError, type LikePostErrors, type LikePostResponse, type LikePostResponses, type ListArticlesData, type ListArticlesError, type ListArticlesErrors, type ListArticlesResponse, type ListArticlesResponses, type ListCommentsData, type ListCommentsError, type ListCommentsErrors, type ListCommentsResponse, type ListCommentsResponses, type ListEventsData, type ListEventsError, type ListEventsErrors, type ListEventsResponse, type ListEventsResponses, type ListIndicesData, type ListIndicesError, type ListIndicesErrors, type ListIndicesResponse, type ListIndicesResponses, type ListPlacesData, type ListPlacesError, type ListPlacesErrors, type ListPlacesResponse, type ListPlacesResponses, type ListRegionsData, type ListRegionsError, type ListRegionsErrors, type ListRegionsResponse, type ListRegionsResponses, type ListSavedData, type ListSavedError, type ListSavedErrors, type ListSavedResponse, type ListSavedResponses, type LoginData, type LoginError, type LoginErrors, type LoginResponse, type LoginResponses, type LogoutData, type LogoutError, type LogoutErrors, type LogoutResponse, type LogoutResponses, type Me, type MeData, type MeError, type MeErrors, type MeResponse, type MeResponses, type NearestRegionData, type NearestRegionError, type NearestRegionErrors, type NearestRegionResponse, type NearestRegionResponses, type PlaceData, type PlanSlide, type PlanSpot, type PlanStep, type PostData, PostType, type Rain2h, type RainHourData, RainType, type RankData, type RefreshData, type RefreshError, type RefreshErrors, type RefreshResponse, type RefreshResponses, type RegionData, type ReqComment, type ReqLogin, type ReqRefresh, type ReqSignup, type ReqTossLogin, type ReqTossUnlink, type ReqUpdateMe, type ResArticle, type ResArticleList, type ResAuth, type ResComment, type ResCommentLike, type ResCommentList, type ResEventList, type ResFeed, type ResHealth, type ResIndexDetail, type ResIndexList, type ResLogout, type ResMe, type ResPlaceList, type ResPost, type ResPostLike, type ResPostSave, type ResRegion, type ResRegionList, type ResSavedList, type ResSeasonWeek, type ResSky, type ResSkyRanking, type ResTossUnlink, type ResWatchSummary, type ResWeatherNow, type ResWeatherToday, type ResWebPacketProtocol, type ResWeek, type ResWeekRanking, type Row, type RowsSlide, type SavedPost, type SavePostData, type SavePostError, type SavePostErrors, type SavePostResponse, type SavePostResponses, type ScoreBand, type SignupData, type SignupError, type SignupErrors, type SignupResponse, type SignupResponses, Sky, SkyGrade, type SkyPlanData, type SkyScoreData, SkySituation, SkyType, type SlotPoint, SlotTone, type SpotData, type SunsetSlide, type TermData, type Tomorrow, type TopIndex, type TossData, type TossError, type TossErrors, type TossResponse, type TossResponses, type TossUnlinkData, type TossUnlinkError, type TossUnlinkErrors, type TossUnlinkResponse, type TossUnlinkResponses, type TrendPoint, type UnlikeCommentData, type UnlikeCommentError, type UnlikeCommentErrors, type UnlikeCommentResponse, type UnlikeCommentResponses, type UnlikePostData, type UnlikePostError, type UnlikePostErrors, type UnlikePostResponse, type UnlikePostResponses, type UnsavePostData, type UnsavePostError, type UnsavePostErrors, type UnsavePostResponse, type UnsavePostResponses, type UpdateMeData, type UpdateMeError, type UpdateMeErrors, type UpdateMeResponse, type UpdateMeResponses, type ValidationError, type WarningData, WarningLevel, WarningType, type WatchEvent, type WatchNow, type WatchSlot, type WatchSunset, type WatchTimeline, type WeatherSlot, type WeekDay, type WeekGak, type WeekRankDay, type WeekRankItem, type WeekSlide } from './types.gen'; diff --git a/frontend/src/api/client/sdk.gen.ts b/frontend/src/api/client/sdk.gen.ts index 3e6ebe7..fcdecd0 100644 --- a/frontend/src/api/client/sdk.gen.ts +++ b/frontend/src/api/client/sdk.gen.ts @@ -2,7 +2,7 @@ import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client'; import { client } from './client.gen'; -import type { AddCommentData, AddCommentErrors, AddCommentResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, GetArticleData, GetArticleErrors, GetArticleResponses, GetFeedData, GetFeedErrors, GetFeedResponses, GetImageData, GetImageErrors, GetImageResponses, GetIndexData, GetIndexErrors, GetIndexResponses, GetPostData, GetPostErrors, GetPostResponses, GetSeasonWeekData, GetSeasonWeekResponses, GetSkyData, GetSkyErrors, GetSkyRankingData, GetSkyRankingResponses, GetSkyResponses, GetWatchSummaryData, GetWatchSummaryErrors, GetWatchSummaryResponses, GetWeatherNowData, GetWeatherNowErrors, GetWeatherNowResponses, GetWeatherTodayData, GetWeatherTodayErrors, GetWeatherTodayResponses, GetWeekData, GetWeekErrors, GetWeekRankingData, GetWeekRankingResponses, GetWeekResponses, HealthzHealthzGetData, HealthzHealthzGetResponses, LikeCommentData, LikeCommentErrors, LikeCommentResponses, LikePostData, LikePostErrors, LikePostResponses, ListArticlesData, ListArticlesErrors, ListArticlesResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListIndicesData, ListIndicesErrors, ListIndicesResponses, ListPlacesData, ListPlacesErrors, ListPlacesResponses, ListRegionsData, ListRegionsErrors, ListRegionsResponses, ListSavedData, ListSavedErrors, ListSavedResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MeData, MeErrors, MeResponses, NearestRegionData, NearestRegionErrors, NearestRegionResponses, RefreshData, RefreshErrors, RefreshResponses, SavePostData, SavePostErrors, SavePostResponses, SignupData, SignupErrors, SignupResponses, UnlikeCommentData, UnlikeCommentErrors, UnlikeCommentResponses, UnlikePostData, UnlikePostErrors, UnlikePostResponses, UnsavePostData, UnsavePostErrors, UnsavePostResponses, UpdateMeData, UpdateMeErrors, UpdateMeResponses } from './types.gen'; +import type { AddCommentData, AddCommentErrors, AddCommentResponses, DeleteCommentData, DeleteCommentErrors, DeleteCommentResponses, GetArticleData, GetArticleErrors, GetArticleResponses, GetFeedData, GetFeedErrors, GetFeedResponses, GetImageData, GetImageErrors, GetImageResponses, GetIndexData, GetIndexErrors, GetIndexResponses, GetPostData, GetPostErrors, GetPostResponses, GetSeasonWeekData, GetSeasonWeekResponses, GetSkyData, GetSkyErrors, GetSkyRankingData, GetSkyRankingResponses, GetSkyResponses, GetWatchSummaryData, GetWatchSummaryErrors, GetWatchSummaryResponses, GetWeatherNowData, GetWeatherNowErrors, GetWeatherNowResponses, GetWeatherTodayData, GetWeatherTodayErrors, GetWeatherTodayResponses, GetWeekData, GetWeekErrors, GetWeekRankingData, GetWeekRankingResponses, GetWeekResponses, HealthzHealthzGetData, HealthzHealthzGetResponses, LikeCommentData, LikeCommentErrors, LikeCommentResponses, LikePostData, LikePostErrors, LikePostResponses, ListArticlesData, ListArticlesErrors, ListArticlesResponses, ListCommentsData, ListCommentsErrors, ListCommentsResponses, ListEventsData, ListEventsErrors, ListEventsResponses, ListIndicesData, ListIndicesErrors, ListIndicesResponses, ListPlacesData, ListPlacesErrors, ListPlacesResponses, ListRegionsData, ListRegionsErrors, ListRegionsResponses, ListSavedData, ListSavedErrors, ListSavedResponses, LoginData, LoginErrors, LoginResponses, LogoutData, LogoutErrors, LogoutResponses, MeData, MeErrors, MeResponses, NearestRegionData, NearestRegionErrors, NearestRegionResponses, RefreshData, RefreshErrors, RefreshResponses, SavePostData, SavePostErrors, SavePostResponses, SignupData, SignupErrors, SignupResponses, TossData, TossErrors, TossResponses, TossUnlinkData, TossUnlinkErrors, TossUnlinkResponses, UnlikeCommentData, UnlikeCommentErrors, UnlikeCommentResponses, UnlikePostData, UnlikePostErrors, UnlikePostResponses, UnsavePostData, UnsavePostErrors, UnsavePostResponses, UpdateMeData, UpdateMeErrors, UpdateMeResponses } from './types.gen'; export type Options = Options2 & { /** @@ -127,6 +127,30 @@ export const login = (options: Options(options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/auth/toss', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + +/** + * 토스 연결 끊기 콜백 (토스 서버가 Basic Auth 로 부름) + */ +export const tossUnlink = (options: Options): RequestResult => (options.client ?? client).post({ + url: '/v1/auth/toss/unlink', + ...options, + headers: { + 'Content-Type': 'application/json', + ...options.headers + } +}); + /** * 토큰 재발급 */ diff --git a/frontend/src/api/client/types.gen.ts b/frontend/src/api/client/types.gen.ts index 17f3389..35a49f8 100644 --- a/frontend/src/api/client/types.gen.ts +++ b/frontend/src/api/client/types.gen.ts @@ -123,13 +123,20 @@ export type ArticleSummary = { /** * AuthProvider */ -export const AuthProvider = { /** +export const AuthProvider = { + /** * LOCAL */ - LOCAL: 1, /** + LOCAL: 1, + /** * GOOGLE */ - GOOGLE: 2 } as const; + GOOGLE: 2, + /** + * TOSS + */ + TOSS: 3 +} as const; /** * AuthProvider @@ -1247,6 +1254,36 @@ export type ReqSignup = { nickname: string; }; +/** + * Req_TossLogin + */ +export type ReqTossLogin = { + /** + * Authorization Code + */ + authorization_code: string; + /** + * Referrer + */ + referrer: string; +}; + +/** + * Req_TossUnlink + * + * 토스가 보내는 모양 그대로 (camelCase) + */ +export type ReqTossUnlink = { + /** + * Userkey + */ + userKey: number; + /** + * Referrer + */ + referrer: string; +}; + /** * Req_UpdateMe */ @@ -1760,6 +1797,17 @@ export type ResSkyRanking = { items?: Array; }; +/** + * Res_TossUnlink + */ +export type ResTossUnlink = { + result?: ErrorInfo; + /** + * Msg + */ + msg?: string | null; +}; + /** * Res_WatchSummary */ @@ -2635,6 +2683,10 @@ export type WatchNow = { * Rain 2H */ rain_2h?: boolean | null; + /** + * Thunder + */ + thunder?: boolean | null; /** * Text */ @@ -3472,6 +3524,62 @@ export type LoginResponses = { export type LoginResponse = LoginResponses[keyof LoginResponses]; +export type TossData = { + body: ReqTossLogin; + path?: never; + query?: never; + url: '/v1/auth/toss'; +}; + +export type TossErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type TossError = TossErrors[keyof TossErrors]; + +export type TossResponses = { + /** + * Successful Response + */ + 200: ResAuth; +}; + +export type TossResponse = TossResponses[keyof TossResponses]; + +export type TossUnlinkData = { + body: ReqTossUnlink; + headers?: { + /** + * Authorization + */ + authorization?: string | null; + }; + path?: never; + query?: never; + url: '/v1/auth/toss/unlink'; +}; + +export type TossUnlinkErrors = { + /** + * Validation Error + */ + 422: HttpValidationError; +}; + +export type TossUnlinkError = TossUnlinkErrors[keyof TossUnlinkErrors]; + +export type TossUnlinkResponses = { + /** + * Successful Response + */ + 200: ResTossUnlink; +}; + +export type TossUnlinkResponse = TossUnlinkResponses[keyof TossUnlinkResponses]; + export type RefreshData = { body: ReqRefresh; path?: never; diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index 9b52c03..fca9a25 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -2,7 +2,6 @@ import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react import { NavLink, Outlet, useLocation } from 'react-router' import { useIsFetching, useQuery } from '@tanstack/react-query' import { getSeasonWeekOptions } from '../api/client/@tanstack/react-query.gen' -import { SOCIAL } from '../lib/platform' import { cx } from '../lib/utils' import { kindOfHour, kst, seasonOf, type TimeKind } from './lib' import './b.css' @@ -61,7 +60,7 @@ function TopBar() { {locateStatus === 'locating' ? : region.name} - {SOCIAL && (mePending ? ( + {mePending ? ( ) : me ? ( - ))} + )} ) } diff --git a/frontend/src/b/Post.tsx b/frontend/src/b/Post.tsx index b65fd72..06f77fc 100644 --- a/frontend/src/b/Post.tsx +++ b/frontend/src/b/Post.tsx @@ -1,7 +1,6 @@ import { useEffect, useRef, useState, type CSSProperties, type MouseEvent, type ReactNode } from 'react' import { createPortal } from 'react-dom' import { PostType, SlotTone, type GakSlide, type HoursSlide, type PlanSlide, type PostData, type ResFeed, type RowsSlide, type SunsetSlide, type WeekSlide } from '../api/client/types.gen' -import { SOCIAL } from '../lib/platform' import { cx } from '../lib/utils' import { cardBg, clockShort, fall } from './lib' import type { SlideBg } from './types' @@ -361,7 +360,7 @@ function FullCard({ post }: PostProps) { } const onTap = (e: MouseEvent) => { - if (!SOCIAL || (e.target as HTMLElement).closest('button')) return + if ((e.target as HTMLElement).closest('button')) return const now = Date.now() if (now - lastTap.current < 320) { if (liked && loggedIn) setPop((p) => p + 1) @@ -436,30 +435,24 @@ function FullCard({ post }: PostProps) { )}
- {SOCIAL && ( - <> - - - - )} + +
- {SOCIAL &&

좋아요 {likeCount.toLocaleString()}개

} +

좋아요 {likeCount.toLocaleString()}개

날씨각 {post.caption}

- {SOCIAL && ( - - )} +

오늘

) diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx index 840f950..1546a83 100644 --- a/frontend/src/b/Sheets.tsx +++ b/frontend/src/b/Sheets.tsx @@ -16,12 +16,13 @@ import { loginMutation, meQueryKey, signupMutation, + tossMutation, unlikeCommentMutation, updateMeMutation, } from '../api/client/@tanstack/react-query.gen' -import type { CommentData, Factor, ResAuth, ResCommentList, ResIndexDetail } from '../api/client/types.gen' +import { AuthProvider, type CommentData, type Factor, type ResAuth, type ResCommentList, type ResIndexDetail } from '../api/client/types.gen' import { track } from '../lib/analytics' -import { IS_TOSS, SOCIAL, tossShare } from '../lib/platform' +import { IS_TOSS, tossLogin, tossShare } from '../lib/platform' import { cx } from '../lib/utils' import { useAuth } from './authContext' import { ago, ARTICLE_CAT, articleMeta, AVATAR_COLORS, cardBg, CHARACTERS, dateRange, loadOf, MOODS, shortDay } from './lib' @@ -840,6 +841,7 @@ function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: () } if (me) return + if (IS_TOSS) return const field = 'w-full rounded-[14px] border border-[#dfe5ee] bg-[#f7f9fc] px-3.5 py-3' return ( @@ -875,6 +877,56 @@ function LoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: () ) } +/** 앱인토스는 토스 로그인만 쓸 수 있다 */ +function TossLoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn: () => void }) { + const [error, setError] = useState('') + const [opening, setOpening] = useState(false) + const toss = useMutation(tossMutation()) + const pending = opening || toss.isPending + + const start = async () => { + setError('') + setOpening(true) + let code: Awaited> + try { + code = await tossLogin() + } catch (e) { + console.error('[login] toss', e) + setError('토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.') + return + } finally { + setOpening(false) + } + toss.mutate( + { body: { authorization_code: code.authorizationCode, referrer: code.referrer } }, + { + onSuccess: (res) => { + if (!res.result?.success || !res.access_token) return setError('토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.') + setTokens(res.access_token, res.refresh_token ?? null) + track('login', { method: 'toss' }) + onLoggedIn() + }, + onError: () => setError('서버에 닿지 못했어요. 잠시 뒤에 다시 해 주세요.'), + }, + ) + } + + return ( + +

좋아요·댓글은 로그인한 뒤에 할 수 있어요.

+

+ {error} +

+ + + + ) +} + /* ---------- 내 정보: 캐릭터·닉네임·로그아웃 ---------- */ function MeSheet({ onDone }: { onDone: () => void }) { const { me, logout } = useAuth() @@ -910,7 +962,7 @@ function MeSheet({ onDone }: { onDone: () => void }) {
-

{me.login_id}(으)로 로그인했어요

+

{me.provider === AuthProvider.TOSS ? '토스로 로그인했어요' : `${me.login_id}(으)로 로그인했어요`}

내 캐릭터

@@ -1048,14 +1100,12 @@ function RegionSheet({ onDone }: { onDone: () => void }) { ))} - {SOCIAL && ( -

- {me ? `${me.nickname}(으)로 로그인했어요` : '로그인하면 좋아요·댓글을 쓸 수 있어요'} - -

- )} +

+ {me ? `${me.nickname}(으)로 로그인했어요` : '로그인하면 좋아요·댓글을 쓸 수 있어요'} + +

) } diff --git a/frontend/src/lib/analytics.ts b/frontend/src/lib/analytics.ts index b8d2cf9..69065c1 100644 --- a/frontend/src/lib/analytics.ts +++ b/frontend/src/lib/analytics.ts @@ -3,7 +3,7 @@ type Events = { view_gak: { index_id: number; gak_name: string; score: number; rank: number } select_content: { content_type: 'article'; item_id: number; category: string } share: { content_type: 'image'; item_id: string; method: 'share_sheet' | 'download'; ratio: string } - login: { method: 'id' } + login: { method: 'id' | 'toss' } sign_up: { method: 'id' } region_change: { region_name: string; method: 'list' | 'location' } } diff --git a/frontend/src/lib/platform.ts b/frontend/src/lib/platform.ts index 4f859ce..5b8ce52 100644 --- a/frontend/src/lib/platform.ts +++ b/frontend/src/lib/platform.ts @@ -1,9 +1,6 @@ /** 웹/앱인토스 차이를 모으는 곳. 토스 SDK 는 토스 빌드(`vite build --mode toss`)에서만 불러온다 */ export const IS_TOSS = import.meta.env.MODE === 'toss' -/** 로그인·좋아요·댓글. 토스판 1차는 보기 전용이라 끈다 */ -export const SOCIAL = !IS_TOSS - const TOSS_APP = 'intoss://nalssigak' // 웹 빌드에서는 이 분기가 지워져 SDK 가 번들에 들어가지 않는다 @@ -31,6 +28,12 @@ export async function tossShare(image: Blob, fileName: string, title: string): P return saved ? 'saved' : 'link-only' } +/** 토스: 토스 로그인 창을 띄우고 서버로 보낼 인가 코드를 받는다 */ +export async function tossLogin() { + const { TossAuth } = await sdk() + return TossAuth.login() +} + export type TossLocation = { lat: number; lon: number } | 'denied' /** 토스: 위치를 읽는다. 권한이 없으면 ask 일 때만 권한 창을 띄운다 */ From 7f2cbc13c93b3180ca8ba4b576d0913036631996 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 14 Oct 2026 15:36:36 +0900 Subject: [PATCH 05/11] =?UTF-8?q?docs:=20=EC=9D=B4=EC=9A=A9=EC=95=BD?= =?UTF-8?q?=EA=B4=80=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=B6=94=EA=B0=80,?= =?UTF-8?q?=20=EA=B0=9C=EC=9D=B8=EC=A0=95=EB=B3=B4=EC=B2=98=EB=A6=AC?= =?UTF-8?q?=EB=B0=A9=EC=B9=A8=EC=97=90=20=ED=86=A0=EC=8A=A4=20=EB=AF=B8?= =?UTF-8?q?=EB=8B=88=EC=95=B1=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=B0=98?= =?UTF-8?q?=EC=98=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/public/privacy.html | 9 ++-- frontend/public/terms.html | 92 ++++++++++++++++++++++++++++++++++++ 2 files changed, 97 insertions(+), 4 deletions(-) create mode 100644 frontend/public/terms.html diff --git a/frontend/public/privacy.html b/frontend/public/privacy.html index b411cb8..5bc5253 100644 --- a/frontend/public/privacy.html +++ b/frontend/public/privacy.html @@ -19,15 +19,16 @@

개인정보처리방침

-

시행일: 2026년 10월 13일

+

시행일: 2026년 10월 14일

-

AIO2O(이하 "회사")는 날씨각 웹 서비스(이하 "웹")와 날씨각 Wear OS 앱(이하 "워치 앱")을 운영하며, 「개인정보 보호법」에 따라 이용자의 개인정보를 다음과 같이 처리합니다.

+

AIO2O(이하 "회사")는 날씨각 웹 서비스(이하 "웹"), 토스 앱 안의 날씨각 미니앱(이하 "토스 미니앱"), 날씨각 Wear OS 앱(이하 "워치 앱")을 운영하며, 「개인정보 보호법」에 따라 이용자의 개인정보를 다음과 같이 처리합니다.

1. 수집하는 개인정보와 목적

- + +
구분항목목적
웹 회원가입·로그인아이디, 비밀번호(암호화 저장), 닉네임 / Google 로그인 시 Google 계정 고유 식별자회원 식별, 좋아요·저장·댓글 기능 제공
웹·워치 앱 위치대략적인 위치(위도·경도)가장 가까운 지역(구)의 날씨와 주변 축제를 보여주기 위해 사용합니다. 위치 좌표는 지역을 찾는 데만 쓰고 서버에 저장하지 않습니다.
토스 미니앱 로그인토스 로그인 시 토스가 주는 이용자 식별값(이 서비스에서만 쓰는 값), 닉네임회원 식별, 좋아요·저장·댓글 기능 제공. 토스에서 동의받은 이름 등 다른 정보는 받아 저장하지 않습니다.
웹·토스 미니앱·워치 앱 위치대략적인 위치(위도·경도)가장 가까운 지역(구)의 날씨와 주변 축제를 보여주기 위해 사용합니다. 위치 좌표는 지역을 찾는 데만 쓰고 서버에 저장하지 않습니다.
서비스 이용접속 기록(IP 주소, 접속 시각, 브라우저 정보), 선택한 지역서비스 운영, 오류 확인, 이용 통계

위치 권한은 선택 사항입니다. 허용하지 않아도 지역을 직접 골라 이용할 수 있습니다. 워치 앱은 회원가입이나 로그인 없이 이용할 수 있습니다.

@@ -42,7 +43,7 @@

보유 기간이 끝나거나 목적이 달성된 개인정보는 지체 없이 복구할 수 없는 방법으로 삭제합니다.

5. 이용자의 권리

-

이용자는 언제든지 자신의 개인정보 열람, 정정, 삭제, 처리 정지와 회원 탈퇴를 요청할 수 있습니다. 아래 연락처로 요청하시면 지체 없이 처리합니다. 워치 앱의 위치 권한은 기기 설정에서 언제든지 끌 수 있습니다.

+

이용자는 언제든지 자신의 개인정보 열람, 정정, 삭제, 처리 정지와 회원 탈퇴를 요청할 수 있습니다. 아래 연락처로 요청하시면 지체 없이 처리합니다. 워치 앱의 위치 권한은 기기 설정에서 언제든지 끌 수 있습니다. 토스 미니앱 회원은 토스 앱에서 날씨각과의 연결을 끊을 수 있으며, 연결을 끊으면 로그인이 풀립니다.

6. 안전성 확보 조치

비밀번호는 암호화하여 저장하고, 개인정보에 접근할 수 있는 인원을 최소한으로 제한합니다.

diff --git a/frontend/public/terms.html b/frontend/public/terms.html new file mode 100644 index 0000000..d18fa61 --- /dev/null +++ b/frontend/public/terms.html @@ -0,0 +1,92 @@ + + + + + +이용약관 - 날씨각 + + + + +
+

이용약관

+

시행일: 2026년 10월 14일

+ +

이 약관은 AIO2O(이하 "회사")가 제공하는 날씨각 서비스의 이용 조건과 절차, 회사와 이용자의 권리·의무를 정합니다.

+ +

1. 용어

+
    +
  • 서비스: 회사가 웹(weather.o2o.kr), 토스 앱 안의 미니앱(이하 "토스 미니앱"), Wear OS 워치 앱으로 제공하는 날씨각과 그에 딸린 날씨·각 점수·노을·주말·행사·계절 정보, 좋아요·댓글·저장 기능
  • +
  • 이용자: 서비스를 이용하는 모든 사람
  • +
  • 회원: 웹에서 아이디·비밀번호로 가입했거나, 토스 미니앱에서 토스 로그인으로 로그인한 이용자
  • +
  • 게시물: 회원이 서비스에 올린 댓글
  • +
+ +

2. 약관의 효력과 변경

+

이 약관은 서비스 화면에 게시해 효력이 생깁니다. 회사는 관련 법령을 어기지 않는 범위에서 약관을 바꿀 수 있으며, 바꿀 때는 시행 7일 전(이용자에게 불리한 변경은 30일 전)부터 서비스 안에서 알립니다.

+

바뀐 약관에 동의하지 않으면 이용을 그만두고 탈퇴할 수 있습니다. 알린 시행일 뒤에도 계속 이용하면 바뀐 약관에 동의한 것으로 봅니다.

+ +

3. 회원가입과 로그인

+

웹에서는 아이디, 비밀번호, 닉네임을 입력하고 가입합니다. 토스 미니앱에서는 토스 로그인에 동의하면 회원이 됩니다. 가입하거나 토스 로그인을 하면 이 약관과 개인정보처리방침에 동의한 것으로 봅니다.

+

만 14세 미만은 회원이 될 수 없습니다. 다른 사람의 정보를 쓰거나 다른 사람을 사칭하는 닉네임을 쓸 수 없습니다.

+ +

4. 서비스 이용

+

날씨와 각 점수, 노을, 주말·행사, 계절 정보는 로그인 없이 무료로 볼 수 있습니다. 좋아요, 댓글, 저장은 로그인한 뒤에 쓸 수 있습니다.

+

회사는 운영상·기술상 필요에 따라 서비스의 내용을 바꾸거나 일부 또는 전부를 중단할 수 있으며, 중요한 변경이나 중단은 미리 알립니다. 다만 미리 알릴 수 없는 사정이 있으면 나중에 알릴 수 있습니다.

+ +

5. 날씨 정보와 면책

+

서비스의 날씨, 미세먼지, 각 점수, 노을 판정, 주말 순위, 행사 정보는 공공 데이터와 외부 예보를 바탕으로 회사가 계산하거나 정리한 참고 정보입니다. 예보는 실제 날씨와 다를 수 있고, 외부 제공처의 사정으로 늦거나 빠질 수 있습니다.

+

회사는 이 정보의 정확성이나 이 정보를 근거로 한 결정의 결과를 보증하지 않습니다. 야외 활동, 여행, 행사 참석 같은 결정은 이용자 스스로 판단하며, 기상특보나 행사 일정은 기상청과 각 주최 측의 공식 안내를 함께 확인해 주세요.

+

회사의 고의나 중대한 과실로 생긴 손해는 이 면책에서 제외합니다.

+ +

6. 게시물(댓글)

+

게시물에 대한 책임은 그 게시물을 쓴 회원에게 있습니다. 다음 게시물은 쓸 수 없습니다.

+
    +
  • 욕설, 비방, 혐오, 음란한 내용
  • +
  • 다른 사람의 개인정보(이름, 연락처, 주소 등)를 드러내는 내용
  • +
  • 광고, 홍보, 같은 내용을 되풀이하는 도배
  • +
  • 다른 사람의 저작권 등 권리를 침해하거나 법령을 어기는 내용
  • +
+

회사는 위에 해당하거나 권리자의 요청이 있는 게시물을 미리 알리지 않고 지우거나 보이지 않게 할 수 있습니다. 문제가 있는 게시물은 o2odev@o2o.kr로 알려 주세요. 회원은 자신의 댓글을 언제든 직접 지울 수 있습니다.

+

게시물의 저작권은 쓴 회원에게 있습니다. 회원은 회사가 서비스 안에 그 게시물을 보여 주는 데 필요한 범위에서 이용하도록 허락합니다.

+ +

7. 회원의 의무와 이용 제한

+

회원은 자신의 계정을 스스로 관리해야 하며, 다른 사람에게 빌려주거나 넘길 수 없습니다.

+

자동화된 수단으로 정보를 대량으로 가져가거나, 서비스 운영을 방해하거나, 이 약관을 어기면 회사는 해당 게시물을 지우고 서비스 이용을 제한할 수 있습니다.

+ +

8. 회원 탈퇴

+

회원은 언제든 o2odev@o2o.kr로 탈퇴를 요청할 수 있고, 회사는 지체 없이 처리합니다. 토스 미니앱 회원은 토스 앱에서 날씨각과의 연결을 끊을 수도 있습니다. 탈퇴하면 회원 정보, 댓글, 좋아요, 저장한 포스트를 개인정보처리방침에 따라 파기하며 되살릴 수 없습니다.

+ +

9. 책임의 한계

+

회사는 천재지변, 정전, 외부 데이터 제공처의 장애처럼 회사가 통제할 수 없는 사유나 이용자의 잘못으로 생긴 서비스 장애에 대해서는 책임지지 않습니다. 회원끼리 또는 회원과 제3자 사이에 게시물로 생긴 분쟁에 대해서도 같습니다.

+ +

10. 분쟁 해결

+

이 약관과 서비스 이용에는 대한민국 법을 적용합니다. 서비스 이용과 관련해 분쟁이 생기면 회사와 이용자는 먼저 성실히 협의하고, 소송이 필요하면 민사소송법에 따른 관할 법원에 제기합니다.

+ +

11. 데이터 출처

+

서비스는 다음 기관과 제공처의 데이터를 사용합니다. 공공 데이터는 공공데이터포털(data.go.kr)을 통해 받으며 각 기관의 이용 조건을 따릅니다.

+
    +
  • 기상청: 단기·초단기·중기 예보, 기상특보
  • +
  • 한국환경공단 에어코리아: 대기오염 실시간 측정 정보
  • +
  • 한국천문연구원: 공휴일·24절기, 해 뜨고 지는 시각
  • +
  • 한국관광공사: 축제·행사, 명소 정보와 사진 (ⓒ한국관광공사)
  • +
  • 한국문화정보원: 공연·전시 정보와 사진 (ⓒ한국문화정보원)
  • +
  • Open-Meteo: 구름 등 기상 예보 (CC BY 4.0)
  • +
  • 팝가: 팝업스토어 정보
  • +
+ +

12. 운영자 정보

+

상호: AIO2O
문의: o2odev@o2o.kr

+ +

부칙

+

이 약관은 2026년 10월 14일부터 시행합니다.

+
+ + From a646d1b26a338ba912d4e8d973d93c6a57a2a3db Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 14 Oct 2026 15:36:37 +0900 Subject: [PATCH 06/11] =?UTF-8?q?feat:=20GA=20=EC=9D=B4=EB=B2=A4=ED=8A=B8?= =?UTF-8?q?=EC=97=90=20platform(web/toss)=20=EB=B6=99=EC=97=AC=20=ED=86=A0?= =?UTF-8?q?=EC=8A=A4=ED=8C=90=20=EC=A7=80=ED=91=9C=20=EA=B5=AC=EB=B6=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/이벤트_추적.md | 3 ++- frontend/index.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/이벤트_추적.md b/docs/이벤트_추적.md index c91d413..0ba753e 100644 --- a/docs/이벤트_추적.md +++ b/docs/이벤트_추적.md @@ -12,6 +12,7 @@ GA4 태그(`gtag.js`, 측정 ID `G-D378J4X373`)를 `index.html`에 심고, 화 ``` - 왜 GTM이 아니라 GA4 직접인가: 이벤트를 코드(`analytics.ts`)에서 정하므로, GTM을 쓰면 이벤트마다 트리거·태그를 한 번 더 만들어야 한다. 광고 픽셀도, 마케터가 직접 손볼 일도 아직 없다. +- 모든 이벤트에 `platform: 'web' | 'toss'`가 붙는다. `index.html`의 `gtag('config')`에서 빌드 모드(`%MODE%`)로 정한다. GA4에서 보려면 맞춤 측정기준(이벤트 범위, `platform`)을 한 번 등록한다. - 개발 서버(`npm run dev`)에서는 `track()`이 이벤트를 보내지 않는다. 단 `index.html`의 페이지 조회(`page_view`)는 개발 서버에서도 나가므로 GA4에서 `localhost`를 걸러 본다. - 이벤트 이름은 영어 snake_case. GA4 추천 이벤트(`share`, `login`, `sign_up`, `select_content`)는 이름을 그대로 써야 GA4 기본 보고서에 잡힌다. - 값은 사람이 읽을 수 있게 한글 그대로 둔다 (예: `gak_name: '야장각'`). @@ -25,7 +26,7 @@ GA4 태그(`gtag.js`, 측정 ID `G-D378J4X373`)를 `index.html`에 심고, 화 | `view_gak` | 각 상세 시트가 열려 데이터가 뜸 (같은 각은 한 번만) | `index_id`, `gak_name`, `score`, `rank` | `Sheets.tsx` `GakSheet` | | `select_content` | 글 시트가 열려 데이터가 뜸 (같은 글은 한 번만) | `content_type: 'article'`, `item_id`(글 번호), `category`(분류 이름) | `Sheets.tsx` `ArticleSheet` | | `share` | 공유창으로 보내기 성공, 또는 이미지 내려받기 | `content_type: 'image'`, `item_id`(공유 제목), `method: 'share_sheet' \| 'download'`, `ratio`(이미지 비율) | `Sheets.tsx` `ShareSheet` `send` | -| `login` | 로그인 성공 | `method: 'id'` | `Sheets.tsx` `LoginSheet` `done` | +| `login` | 로그인 성공 | `method: 'id'` 또는 `'toss'`(앱인토스) | `Sheets.tsx` `LoginSheet` `done`, `TossLoginSheet` | | `sign_up` | 가입 성공 | `method: 'id'` | `Sheets.tsx` `LoginSheet` `done` | | `region_change` | 지역 목록에서 고름, 또는 위치로 가까운 구를 찾음 | `region_name`, `method: 'list' \| 'location'` | `Sheets.tsx` `RegionSheet`, `region.tsx` `findNearest` | diff --git a/frontend/index.html b/frontend/index.html index 07663b6..1825a81 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -8,7 +8,7 @@ function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); - gtag('config', 'G-D378J4X373'); + gtag('config', 'G-D378J4X373', { platform: '%MODE%' === 'toss' ? 'toss' : 'web' }); From fdf8498a56037f293576aa538b611f53fb089300 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Wed, 14 Oct 2026 15:37:15 +0900 Subject: [PATCH 07/11] =?UTF-8?q?docs:=20=ED=86=A0=EC=8A=A4=20=EB=B2=88?= =?UTF-8?q?=EB=93=A4=20=EC=9E=AC=EB=B9=8C=EB=93=9C=EB=8A=94=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=20=ED=95=B4=EA=B2=B0=20=EB=92=A4=EB=A1=9C=20?= =?UTF-8?q?=EB=AF=B8=EB=A3=B8=20(TODO)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index ed4ff31..78986d4 100644 --- a/TODO.md +++ b/TODO.md @@ -167,7 +167,8 @@ | [ ] | **[결정 필요]** 각 순위가 점수 순이 아니라 보임 — 순위가 점수 × 중요도라 환기각 92점(하)이 5위, 골프각 89점이 3위, 빨래각 83점이 2위. 각 탭 받침대·스토리에서 높은 점수가 뒤에 있어 어색함. 점수를 순위대로 보여줄지, 중요도 가중을 줄일지 | 화면 직접 확인 중 발견 (10/12) | `backend/services/calc/index_calc.py` (`PRIORITY_WEIGHT`), `frontend/src/b/GakPage.tsx` | | [x] | 노을 점수 29점(잿빛)인데 결론 '나가 볼 만해요' — 결론이 구름 분포만 보고 공기 보정(가시거리·습도)을 안 봤음 → 공기 보정 0.7배 미만이면 결론 한 단계 낮추고 이유에 공기 표시, '해 질 무렵(N시) 예보 기준' 표시. 운영 DB에 `sky_score.air` 칸 추가 필요(배포 때 `init.sql`의 ALTER) | 사용자 지적 (10/12, 분당구) | `backend/services/sky_service.py` (`day_verdict`, `build_plan`), `backend/services/calc/sky_score.py` (`air_note`) | | [x] | 노을 탭 다시 짜기 → 시안 A(사용자 선택): 히어로 '오늘은 애매해요 / 18:10쯤 가장 붉어요 / 쉬운 이유', 내일 안내 바로 아래, 숫자는 '자세히', 시간표에 가장 붉을 때 — 처음 보면 '그래서 가?'에서 멈춤: 히어로 18:00이 무슨 시각인지 없음, 결론 카드가 좋은 말·나쁜 말을 섞음, 구름 %·예보 모델 수 같은 전문 용어, '가장 붉을 때'가 시간표에 없음, '내일이 더 나아요'가 맨 아래. 시안 먼저 보고 결정 | 사용자 지적 (10/12) | `frontend/src/b/SkyPage.tsx`, `backend/services/calc/sky_score.py` (`reason`) | -| [ ] | 토스 로그인 운영 설정 — 서버 `secrets/toss/`에 인증서·키 복사, 서버 `.env`에 `TOSS_MTLS_CERT`·`TOSS_MTLS_KEY`·`TOSS_UNLINK_AUTH`(값은 `.env.example` 참고). compose 마운트는 넣어 둠. 로컬에서 토스 API 호출 시 `4050 인증서버에 등록된 미니앱이 아닙니다` → 콘솔 토스 로그인 설정 후 다시 확인 | 토스 로그인 구현(10/14) | `compose.yaml`, `.env.example`, `backend/config/settings.py` | +| [ ] | 토스 로그인 운영 설정 — 서버 `secrets/toss/` 인증서·키, `.env` `TOSS_*` 세 줄은 넣음(10/14). 남은 것: 정산정보 등록(대표님), 배포, 콘솔 약관 링크·콜백, `4050 인증서버에 등록된 미니앱이 아닙니다` 재확인 | 토스 로그인 구현(10/14) | `compose.yaml`, `.env.example`, `backend/config/settings.py` | +| [ ] | 토스 번들 다시 만들기 — 로그인(4050) 풀린 뒤 `npm run build:toss`로 한 번에. 지금 콘솔 번들엔 로그인·GA `platform` 값이 없음. 로그인 실패 상태로 검수 올리면 반려 위험 | 로그인 미완성이라 미룸(10/14) | `frontend/` | | [ ] | **[결정 필요]** 토스 연결 끊기 처리 — 지금은 UNLINK·탈퇴 모두 토큰만 무효로 함. 토스 탈퇴(`WITHDRAWAL_TOSS`·`WITHDRAWAL_TERMS`) 때 계정·댓글을 지울지 | 토스 로그인 구현(10/14) | `backend/services/auth_service.py` | | [ ] | 토스 로그인 문구 검토 — '토스로 로그인', '토스로 로그인했어요', '토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.', 기본 닉네임 '토스1234'(userKey 끝 4자리) | 토스 로그인 구현(10/14) | `frontend/src/b/Sheets.tsx`, `backend/services/auth_service.py` | | [ ] | 댓글 신고·차단 — 앱인토스 필수 아님(신고·차단 필수는 채팅·만남·중고거래만, 서비스 오픈 정책·서비스별 주의사항). 만들지 않기로 함(10/14). 검수에서 요청이 오면 만든다 | 토스 로그인 구현(10/14) | | From 2400957657e2f1ffbe6bd661d383ed3ddb1e3279 Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Sat, 24 Oct 2026 18:22:47 +0900 Subject: [PATCH 08/11] =?UTF-8?q?fix:=20=ED=94=BC=EB=93=9C=EC=97=90=20?= =?UTF-8?q?=EB=AA=A8=EB=A5=B4=EB=8A=94=20=EA=B8=80=20=EC=A2=85=EB=A5=98?= =?UTF-8?q?=EA=B0=80=20=EC=98=A4=EB=A9=B4=20=EA=B7=B8=20=EC=B9=B4=EB=93=9C?= =?UTF-8?q?=EB=A7=8C=20=EA=B1=B4=EB=84=88=EB=9C=80=20(=EC=98=88=EC=A0=84?= =?UTF-8?q?=20=ED=86=A0=EC=8A=A4=20=EB=B2=88=EB=93=A4=EC=9D=B4=20=EC=B9=B4?= =?UTF-8?q?=EB=93=9C=EB=89=B4=EC=8A=A4=20=EC=A2=85=EB=A5=98=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=9D=B0=20=ED=99=94=EB=A9=B4)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/Post.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frontend/src/b/Post.tsx b/frontend/src/b/Post.tsx index c346428..ab16fe1 100644 --- a/frontend/src/b/Post.tsx +++ b/frontend/src/b/Post.tsx @@ -302,8 +302,9 @@ function LineCard({ post }: PostProps) { ) } -/** 인스타식 게시물: 옆으로 넘기는 슬라이드, 두 번 눌러 좋아요 */ +/** 인스타식 게시물: 옆으로 넘기는 슬라이드, 두 번 눌러 좋아요. 모르는 종류(서버에 새로 생긴 것)는 건너뛴다 */ export function PostCard({ post }: PostProps) { + if (!(post.post_type in ACCOUNTS)) return null return post.size === 'line' ? : } From 91837ff8e9aca150a42666872b91fc188ba7a97d Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Sat, 24 Oct 2026 18:24:58 +0900 Subject: [PATCH 09/11] =?UTF-8?q?feat:=20=ED=86=A0=EC=8A=A4=ED=8C=90=20?= =?UTF-8?q?=EC=B2=AB=20=EC=8B=A4=ED=96=89=20=EC=9D=B8=ED=8A=B8=EB=A1=9C(?= =?UTF-8?q?=EC=84=9C=EB=B9=84=EC=8A=A4=20=EC=86=8C=EA=B0=9C=20=ED=9B=84=20?= =?UTF-8?q?=EC=8B=9C=EC=9E=91=ED=95=98=EA=B8=B0),=20=ED=86=A0=EC=8A=A4=20?= =?UTF-8?q?=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=B0=BD=EC=97=90=20=EB=A1=9C?= =?UTF-8?q?=EA=B7=B8=EC=9D=B8=ED=95=98=EB=A9=B4=20=ED=95=A0=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8A=94=20=EA=B2=83=20=EC=95=88=EB=82=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/BLayout.tsx | 2 ++ frontend/src/b/Sheets.tsx | 3 +- frontend/src/b/tossIntro.tsx | 57 ++++++++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 frontend/src/b/tossIntro.tsx diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index a48b43d..aebc850 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -12,6 +12,7 @@ import { useRegion } from './regionContext' import { useSheet } from './sheetContext' import { SheetProvider } from './Sheets' import { SkyContext, useSky } from './skyContext' +import { TossIntro } from './tossIntro' import { PinIcon, TabIcon } from './svg' import { Avatar, Ic, Skel } from './ui' @@ -305,6 +306,7 @@ export function BLayout() { + diff --git a/frontend/src/b/Sheets.tsx b/frontend/src/b/Sheets.tsx index a08a081..44c8938 100644 --- a/frontend/src/b/Sheets.tsx +++ b/frontend/src/b/Sheets.tsx @@ -895,7 +895,8 @@ function TossLoginSheet({ onDone, onLoggedIn }: { onDone: () => void; onLoggedIn return ( -

좋아요·댓글은 로그인한 뒤에 할 수 있어요.

+

날씨각 로그인

+

로그인하면 동네 이야기를 쓰고 내 각을 저장할 수 있어요

{error}

diff --git a/frontend/src/b/tossIntro.tsx b/frontend/src/b/tossIntro.tsx new file mode 100644 index 0000000..474b56c --- /dev/null +++ b/frontend/src/b/tossIntro.tsx @@ -0,0 +1,57 @@ +import { useState } from 'react' +import { IS_TOSS } from '../lib/platform' +import { Ic } from './ui' + +const KEY = 'nalssigak.b.tossIntroSeen' + +const POINTS = [ + ['sun', '세차·빨래·러닝 각 점수'], + ['sunset', '오늘 노을이 예쁜 시간'], + ['fireworks', '이번 주말 가까운 행사'], +] as const + +function seen() { + try { + return localStorage.getItem(KEY) === '1' + } catch { + return false + } +} + +/** 토스판을 처음 열면 서비스 소개를 먼저 보여 준다 (앱인토스 검수: 로그인 전에 서비스 설명) */ +export function TossIntro() { + const [open, setOpen] = useState(() => IS_TOSS && !seen()) + if (!open) return null + + const start = () => { + try { + localStorage.setItem(KEY, '1') + } catch (e) { + console.warn('[intro] 본 기록을 저장하지 못함', e) + } + setOpen(false) + } + + return ( +
+ +
+

+ 날씨각 +

+

오늘 날씨에 맞는 일을 점수로 알려 줘요

+
+
    + {POINTS.map(([icon, label]) => ( +
  • + + {label} +
  • + ))} +
+ +
+ ) +} From 9b1e32d6203e97ce7f88261f36c29dcdf929406a Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Sat, 24 Oct 2026 18:25:07 +0900 Subject: [PATCH 10/11] =?UTF-8?q?docs:=20=ED=86=A0=EC=8A=A4=20=EC=9D=B8?= =?UTF-8?q?=ED=8A=B8=EB=A1=9C=C2=B7=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=AC=B8?= =?UTF-8?q?=EA=B5=AC=20=EA=B2=80=ED=86=A0,=20=EC=9C=84=EC=B9=98=20?= =?UTF-8?q?=EA=B6=8C=ED=95=9C=20=EA=B2=B9=EC=B9=A8,=20=EB=A9=94=EB=89=B4?= =?UTF-8?q?=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=AC=B8=EA=B5=AC=20(TODO)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TODO.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/TODO.md b/TODO.md index db56ada..92bdf98 100644 --- a/TODO.md +++ b/TODO.md @@ -230,7 +230,9 @@ | [ ] | 토스 로그인 운영 설정 — 서버 `secrets/toss/` 인증서·키, `.env` `TOSS_*` 세 줄은 넣음(10/14). 남은 것: 정산정보 등록(대표님), 배포, 콘솔 약관 링크·콜백, `4050 인증서버에 등록된 미니앱이 아닙니다` 재확인 | 토스 로그인 구현(10/14) | `compose.yaml`, `.env.example`, `backend/config/settings.py` | | [ ] | 토스 번들 다시 만들기 — 로그인(4050) 풀린 뒤 `npm run build:toss`로 한 번에. 지금 콘솔 번들엔 로그인·GA `platform` 값이 없음. 로그인 실패 상태로 검수 올리면 반려 위험 | 로그인 미완성이라 미룸(10/14) | `frontend/` | | [ ] | **[결정 필요]** 토스 연결 끊기 처리 — 지금은 UNLINK·탈퇴 모두 토큰만 무효로 함. 토스 탈퇴(`WITHDRAWAL_TOSS`·`WITHDRAWAL_TERMS`) 때 계정·댓글을 지울지 | 토스 로그인 구현(10/14) | `backend/services/auth_service.py` | -| [ ] | 토스 로그인 문구 검토 — '토스로 로그인', '토스로 로그인했어요', '토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.', 기본 닉네임 '토스1234'(userKey 끝 4자리) | 토스 로그인 구현(10/14) | `frontend/src/b/Sheets.tsx`, `backend/services/auth_service.py` | +| [ ] | 토스 로그인 문구 검토 — '토스로 로그인', '토스로 로그인했어요', '토스 로그인을 마치지 못했어요. 한 번 더 눌러 주세요.', 기본 닉네임 '토스1234'(userKey 끝 4자리), 로그인 창 '날씨각 로그인'·'로그인하면 동네 이야기를 쓰고 내 각을 저장할 수 있어요', 인트로 '오늘 날씨에 맞는 일을 점수로 알려 줘요'·'세차·빨래·러닝 각 점수'·'오늘 노을이 예쁜 시간'·'이번 주말 가까운 행사'·'시작하기'(10/24) | 토스 로그인 구현(10/14) | `frontend/src/b/Sheets.tsx`, `backend/services/auth_service.py` | +| [ ] | 토스판 첫 실행에 인트로와 위치 권한 창이 같이 뜸 — 위치 권한은 앱이 뜨자마자 물어서 인트로 위에 겹칠 수 있음. '시작하기' 뒤로 미룰지 토스 앱에서 확인 | 인트로 추가 (10/24) | `frontend/src/b/region.tsx`, `frontend/src/b/tossIntro.tsx` | +| [ ] | 메뉴의 '로그인하면 좋아요·댓글을 쓸 수 있어요' — 좋아요·댓글은 로그인 없이 됨(10/21 결정)이라 문구가 틀림 | 인트로 추가 중 발견 (10/24) | `frontend/src/b/Sheets.tsx:1117` | | [ ] | 댓글 신고·차단 — 앱인토스 필수 아님(신고·차단 필수는 채팅·만남·중고거래만, 서비스 오픈 정책·서비스별 주의사항). 만들지 않기로 함(10/14). 검수에서 요청이 오면 만든다 | 토스 로그인 구현(10/14) | | | [x] | 각 늘리기 53→68 — 리서치로 고른 8개(한강·놀이공원·데이트·곱슬머리·보일러·선크림·모기·테니스) + 감성 7개(효도·감사·선물·파티·게임·셀카·센치), 아이콘 15개(Codex) | 사용자 요청 (10/20, 리서치 https://claude.ai/artifact/3ZQbtGKRLVZViRRC5voBzY) | `backend/seed/index_definition.json`, `frontend/public/icons/`, `frontend/src/b/lib.ts` | | [ ] | **[결정 필요]** 한강각·놀이공원각이 강·놀이공원 없는 동네에도 나옴 — 각을 지역별로 가려 보여 주는 기능이 없음(한강밤바람각도 같음). 서울·한강 인접 구만 보일지 | 새 각 추가 중 발견 (10/20) | `backend/seed/index_definition.json`, `backend/services/index_service.py` | From 0144a64b426a8027a8c369f7e67a2880b58a263a Mon Sep 17 00:00:00 2001 From: Mina Choi Date: Sat, 24 Oct 2026 18:28:21 +0900 Subject: [PATCH 11/11] =?UTF-8?q?feat:=20=ED=86=A0=EC=8A=A4=ED=8C=90?= =?UTF-8?q?=EC=9D=80=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EC=97=86=EC=9D=B4=20?= =?UTF-8?q?=E2=80=94=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=B2=84=ED=8A=BC?= =?UTF-8?q?=C2=B7=EA=B8=80=EC=93=B0=EA=B8=B0=20=EC=B9=B8=C2=B7=EA=B8=80=20?= =?UTF-8?q?=EB=8D=94=EB=B3=B4=EA=B8=B0(=EC=8B=A0=EA=B3=A0=C2=B7=EC=B0=A8?= =?UTF-8?q?=EB=8B=A8)=20=EC=88=A8=EA=B9=80,=20=EB=91=90=20=EB=B2=88?= =?UTF-8?q?=EC=A7=B8=20=EB=82=B4=20=EA=B0=81=EC=9D=80=20=EC=95=88=EB=82=B4?= =?UTF-8?q?=EB=A7=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/b/BLayout.tsx | 3 +- frontend/src/b/Sheets.tsx | 58 ++++++-------------------------------- frontend/src/b/talk.tsx | 18 ++++++++---- 3 files changed, 24 insertions(+), 55 deletions(-) diff --git a/frontend/src/b/BLayout.tsx b/frontend/src/b/BLayout.tsx index aebc850..f173ea7 100644 --- a/frontend/src/b/BLayout.tsx +++ b/frontend/src/b/BLayout.tsx @@ -2,6 +2,7 @@ import { useCallback, useEffect, useMemo, useState, type ReactNode } from 'react import { NavLink, Outlet, useLocation, useNavigationType } from 'react-router' import { useIsFetching, useQuery } from '@tanstack/react-query' import { getSeasonWeekOptions } from '../api/client/@tanstack/react-query.gen' +import { IS_TOSS } from '../lib/platform' import { cx } from '../lib/utils' import { kindOfHour, kst, seasonOf, type TimeKind } from './lib' import './b.css' @@ -61,7 +62,7 @@ function TopBar() { {locateStatus === 'locating' ? : {region.name}{region.name.split(' ').at(-1)}} - {mePending ? ( + {IS_TOSS ? null : mePending ? ( ) : me ? ( - ) @@ -1113,12 +1073,12 @@ function RegionSheet({ onDone }: { onDone: () => void }) { ))} -

+ {!IS_TOSS &&

{me ? `${me.nickname}(으)로 로그인했어요` : '로그인하면 좋아요·댓글을 쓸 수 있어요'} -

+

} ) } diff --git a/frontend/src/b/talk.tsx b/frontend/src/b/talk.tsx index e4be301..bc0b7ce 100644 --- a/frontend/src/b/talk.tsx +++ b/frontend/src/b/talk.tsx @@ -12,6 +12,7 @@ import { import { uploadTalkImage } from '../api/client/sdk.gen' import { TalkReport, TalkTopic, type TalkData } from '../api/client/types.gen' import { API_BASE_URL } from '../api/setup' +import { IS_TOSS } from '../lib/platform' import { cx } from '../lib/utils' import { useAuth } from './authContext' import { ago, kst } from './lib' @@ -251,10 +252,15 @@ function TalkRow({ t, onGone, compact }: { t: TalkData; onGone?: () => void; com )} {t.image && !compact && } - {ago(t.created_at)} · 좋아요 {count}개 ·{' '} - + {ago(t.created_at)} · 좋아요 {count}개 + {!IS_TOSS && ( + <> + {' · '} + + + )} {menu !== 'closed' && (
@@ -298,6 +304,7 @@ function TalkRow({ t, onGone, compact }: { t: TalkData; onGone?: () => void; com /** 이야기 탭: 쓰기 칸과 전국 최신 글 (아래로 더 받기) */ /** 피드 위 쓰는 칸. 늘 펼쳐 두고, 방금 올린 글은 바로 아래에 보인다 (피드 사이 글은 새로 받을 때 섞인다) */ export function FeedComposer({ onPosted }: { onPosted: (t: TalkData) => void }) { + if (IS_TOSS) return null return (
@@ -367,7 +374,8 @@ export function FirstTalkCard() { /** '동네 사람들' 자리: 글이 GROUP_MIN 개 이상이면 묶음, 아니면 첫 글 쓰기 */ export function NearTalks({ talks, loaded }: { talks: TalkData[]; loaded: boolean }) { if (!loaded) return null - return talks.length >= GROUP_MIN ? : + if (talks.length >= GROUP_MIN) return + return IS_TOSS ? null : } /** 내 정보 창의 내가 쓴 글 */