Use shared auth and server-side HA calls
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
# Custom Launcher
|
||||
|
||||
사이트 본문에 작은 iOS 스타일 배너로 삽입되는 런처입니다.
|
||||
|
||||
```html
|
||||
<meta charset="UTF-8">
|
||||
<link href="/custom/launcher/css/style.css" rel="stylesheet" />
|
||||
<div id="findMyShortcut" class="find-container"></div>
|
||||
<script src="/custom/launcher/js/main.js"></script>
|
||||
```
|
||||
|
||||
## 기능
|
||||
|
||||
- 나의 찾기 이동
|
||||
- PC 켜기
|
||||
- 콕 찌르기
|
||||
- 차량 모니터 이동
|
||||
- 공통 암호 로그인
|
||||
- 공통 암호 변경
|
||||
|
||||
## 구조
|
||||
|
||||
- `api.php`: 로그인, 로그아웃, 암호 변경, 콕 찌르기 카운트/웹훅 처리
|
||||
- `js/main.js`: 4개 아이콘 렌더링, 인증 흐름, 암호 변경 UI
|
||||
- `css/style.css`: iOS 테마 배너 스타일
|
||||
- `img/`: 런처 아이콘 이미지
|
||||
|
||||
## 공통 모듈 연동
|
||||
|
||||
인증, 암호 hash 저장, Home Assistant 호출은 `/custom/common` 모듈을 사용합니다. 런처는 더 이상 Home Assistant 토큰이나 웹훅을 브라우저로 직접 노출하지 않습니다.
|
||||
|
||||
## 운영 메모
|
||||
|
||||
메인 버튼은 기존 4개를 유지합니다. 암호 변경은 배너 우하단의 작은 `관리` 링크에서 처리합니다.
|
||||
Reference in New Issue
Block a user