diff --git a/app.js b/app.js index 62ffe8c..c934294 100644 --- a/app.js +++ b/app.js @@ -219,6 +219,30 @@ function anvilApp() { } }, + // 미니앱 전용 초기화 (/app 페이지용) + initMiniApp() { + if (window.Telegram?.WebApp) { + const tg = window.Telegram.WebApp; + tg.ready(); + tg.expand(); + + this.telegram.isAvailable = true; + this.telegram.user = tg.initDataUnsafe.user || null; + this.telegram.initData = tg.initData; + + console.log('[MiniApp] Initialized', { + user: this.telegram.user, + platform: tg.platform + }); + + // 미니앱은 무조건 대시보드 로드 + this.loadDashboard(); + } else { + console.log('[MiniApp] Not in Telegram environment'); + this.telegram.isAvailable = false; + } + }, + // 대시보드 초기 로드 async loadDashboard() { console.log('[Dashboard] Loading dashboard data...'); diff --git a/app/index.html b/app/index.html new file mode 100644 index 0000000..aa91a12 --- /dev/null +++ b/app/index.html @@ -0,0 +1,388 @@ + + + + + + Anvil Hosting - Dashboard + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +
+

새 서버 생성

+ +
+ + +
+ + +
+

리전을 선택하세요

+ +
+ + +
+

플랜을 선택하세요

+ +
+ + +
+

OS를 선택하세요

+ +
+ + +
+

설정을 확인하세요

+
+
+ 리전 + +
+
+ 플랜 + +
+
+ OS + +
+
+ +
+ + +
+
+
+

서버를 생성하고 있습니다...

+
+
+ +
+
+ +
+ + +
+ +
+
+ +
+
+ + + diff --git a/index.html b/index.html index 2be00c1..1e7a5d4 100644 --- a/index.html +++ b/index.html @@ -106,10 +106,6 @@
- - - - - - - -