v4.0.0: 회원·덱 API, 인증 UI, 프로필 및 레이아웃 통일
Express/SQLite API와 Docker 구성을 추가하고 로그인·덱 저장·공개 덱·관리자·프로필 화면을 구현했다. 결과 화면 저장 UX, 헤더 프로필, 애드센스용 app-shell 레이아웃(1280px) 및 문서를 반영했다. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
28
integrations/README.md
Normal file
28
integrations/README.md
Normal file
@@ -0,0 +1,28 @@
|
||||
# 연동 예제
|
||||
|
||||
`integrations/example.html`을 브라우저에서 열거나, 배포 후 아래 URL로 테스트할 수 있습니다.
|
||||
|
||||
## 옆 프로젝트에 복사할 파일
|
||||
|
||||
```
|
||||
integrations/uadeck-deck-client.js
|
||||
```
|
||||
|
||||
## 최소 연동 코드
|
||||
|
||||
```javascript
|
||||
const client = new UaDeckDeckClient({
|
||||
baseUrl: 'https://uniare.sori.studio/api/v1',
|
||||
imageBase: 'https://uniare.sori.studio',
|
||||
});
|
||||
|
||||
// UADECK 공유 링크에서 덱 로드
|
||||
const deck = await client.fetchFromUrl('https://uniare.sori.studio/d/SHARE_CODE');
|
||||
|
||||
// 카드 사용
|
||||
for (const card of deck.cards) {
|
||||
console.log(card.number, 'x', card.count, card.imageUrl);
|
||||
}
|
||||
```
|
||||
|
||||
자세한 내용은 `docs/api-integration.md`를 참고하세요.
|
||||
Reference in New Issue
Block a user