This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="th"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>ลงทะเบียนผู้ใช้งาน</title> | |
| <script src="https://static.line-scdn.net/liff/edge/2/sdk.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script> | |
| <style> | |
| * { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="th"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>LIFF Profile Form</title> | |
| <script src="https://static.line-scdn.net/liff/sdk/v2/liff.js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // line-webhook/index.ts | |
| import { serve } from "https://deno.land/std@0.177.0/http/server.ts"; | |
| import crypto from "https://deno.land/std@0.177.0/node/crypto.ts"; | |
| import { createClient } from "https://esm.sh/@supabase/supabase-js@2"; | |
| // ====== Secrets ====== | |
| const CHANNEL_ACCESS_TOKEN = Deno.env.get("CHANNEL_ACCESS_TOKEN"); | |
| const CHANNEL_SECRET = Deno.env.get("CHANNEL_SECRET"); | |
| const TELEGRAM_TOKEN = Deno.env.get("TELEGRAM_TOKEN"); | |
| const TELEGRAM_CHAT_ID = Deno.env.get("TELEGRAM_CHAT_ID"); | |
| // Richmenu |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!doctype html> | |
| <html lang="th"> | |
| <head> | |
| <meta charset="utf-8" /> | |
| <meta name="viewport" content="width=device-width,initial-scale=1" /> | |
| <title>Admin Dashboard - Profiles (Realtime)</title> | |
| <script src="https://cdn.jsdelivr.net/npm/@supabase/supabase-js@2"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script> | |
| <script src="https://cdn.jsdelivr.net/npm/xlsx/dist/xlsx.full.min.js"></script> |