Easy-to-manage touch screens
Free, open-source touch screens. Guided USB setup, a drag-and-drop editor and local control. Made for Home Assistant.
จองที่นั่งรถตู้และสร้างทริปของคุณเอง
Translation pending
AI summary · website content
LifestyleHTML · JavaScriptGitHub @phitsanu-trOnlineOwner unconfirmed
Have you tried it? One tap is enough. No sign-in needed.
No updates detected yet. GitHub releases will appear here.
Owners of public repositories under a personal GitHub account can sign in to verify ownership and manage the introduction themselves. No administrator approval is needed.
Sign in, generate a verification file, and commit it to this repository’s default branch within 30 minutes. Files on other branches or forks do not count. Then check the file below to manage the project without administrator approval. Keep the file to retain your access.
If needed, you will go to sign-in. After signing in, return here and press your chosen verification button again.
Run /nomorevibe verify in your project folder to verify ownership and manage the introduction yourself.
Verify in one minuteAsk about other verification options
The maker's introduction consists of the line above. Read the repository README for more details. Repository README ↗
Loading the full README.
Read the full README ↗เว็บจองที่นั่งรถตู้ 10 ที่นั่ง แตะที่นั่งในผัง ใส่ชื่อ แล้วกด OK ทุกคนที่เปิดลิงก์เห็นรายชื่อชุดเดียวกัน ไม่ต้องล็อกอิน ใช้เปิดผ่านไลน์ได้
index.html หน้าแรก / (แนะนำ เลือกทางผู้จัด/ผู้จอง ช่องใส่รหัสทริป)book.html หน้าจองที่นั่ง (ไฟล์เดียว ไม่ต้อง build)trips.html หน้าสร้าง/แก้ไขทริป (ชื่อทริป เพจ วันที่ เวลารถออก นัดพบ จำนวนรถ)api/seats.js จองและยกเลิกที่นั่ง, api/trip.js สร้าง/แก้ทริป, api/_lib.js ตัวช่วยร่วม (เก็บข้อมูลลง Upstash Redis)/trips/new กรอกรายละเอียด เลือกจำนวนรถ แล้วกดสร้าง จะได้ 2 ลิงก์
/รหัสทริป (8 ตัว) ส่งเข้ากลุ่ม/trips = "ทริปของฉัน" แสดงรายการทริปที่สร้างจากเบราว์เซอร์นี้ (เก็บใน localStorage) พร้อมปุ่มสร้างทริปใหม่ (/a?new=1)/trips#รหัสทริป-รหัสลับ (รหัสลับ 16 ตัว) เก็บไว้เองคนเดียว (ไม่มีล็อกอิน ใครมีลิงก์นี้แก้ทริปได้) ส่วนหลัง # เบราว์เซอร์ไม่ส่งไปเซิร์ฟเวอร์ จึงไม่ติด log และบอตสแกนลิงก์ไม่เห็นQUOTA_ENABLED = false ใน api/trip.js) เปิดกลับได้โดยตั้งเป็น true: 5 ทริป/เดือน/เบราว์เซอร์ และเพดาน 15 ทริป/เดือน/IPdefault คัน A) แต่ / ที่ไม่มี ?t= ตอนนี้เป็นหน้าแรก ลิงก์เดิมเปิดได้ที่ /?t=defaultKV_REST_API_URL และ KV_REST_API_TOKEN ให้เอง (ถ้ากำหนด prefix ไว้ เช่น VAN_SEAT_BOOKING_ ก็อ่านได้)ทริป: trip:<รหัส> (JSON). ชื่อผู้จองและเวลาจอง: hash seats:<ทริป>:<คัน> (ทริปเดิมคัน A ยังใช้ van:seats)
เดิมเก็บใน Redis hash van:seats สองคนกดที่นั่งเดียวกันพร้อมกัน ระบบรับคนแรกคนเดียว (HSETNX)
node dev.js
เปิด http://localhost:8765 ใช้กติกา rewrite เดียวกับ vercel.json (/, /trips, /<รหัสทริป>) และรัน api/*.js จริงกับฐานข้อมูลจำลองในหน่วยความจำ (ข้อมูลหายเมื่อปิดเซิร์ฟเวอร์) ไม่ต้องมีบัญชี Upstash ต้องมี Node 18 ขึ้นไป อย่าใช้ python3 -m http.server เพราะไม่รู้จัก /a จะขึ้น 404
/owner ดูทุกทริปและลบทริปได้ ต้องตั้ง environment variable OWNER_KEY (อย่างน้อย 16 ตัวอักษร) ใน Vercel แล้ว redeploy ถ้าไม่ตั้ง หน้านี้ใช้ไม่ได้ (API ตอบ 404)/owner#คีย์ (คีย์ไม่ถูกส่งไปกับ URL ฝั่งเซิร์ฟเวอร์ และถูกลบออกจากแถบ URL ทันที) หรือพิมพ์ในช่องที่หน้าเว็บOWNER_KEY=คีย์ยาว16ตัวขึ้นไป node dev.jsRETENTION_DAYS ใน api/_lib.js/owner กดปุ่ม "ตั้งวันลบอัตโนมัติให้ทุกทริป" ครั้งเดียว (ทริปที่เลยกำหนดไปแล้วจะได้เวลาอีก 7 วันก่อนถูกลบ)