feat: Add initial frontend setup including authentication, instructor, and admin course management modules.

This commit is contained in:
Missez 2026-01-28 13:38:54 +07:00
parent 9fd217e1db
commit 19844f343b
16 changed files with 2065 additions and 293 deletions

View file

@ -25,6 +25,8 @@
val => !!val || 'กรุณากรอก username',
val => val.length >= 4 || 'อย่างน้อย 4 ตัวอักษร'
]"
hide-bottom-space
lazy-rules="ondemand"
>
<template v-slot:prepend>
<q-icon name="person" />
@ -40,6 +42,8 @@
val => !!val || 'กรุณากรอกอีเมล',
val => /.+@.+\..+/.test(val) || ''
]"
hide-bottom-space
lazy-rules="ondemand"
>
<template v-slot:prepend>
<q-icon name="email" />
@ -58,6 +62,8 @@
val => !!val || 'กรุณากรอกรหัสผ่าน',
val => val.length >= 8 || 'อย่างน้อย 8 ตัวอักษร'
]"
hide-bottom-space
lazy-rules="ondemand"
>
<template v-slot:prepend>
<q-icon name="lock" />
@ -80,6 +86,8 @@
val => !!val || 'กรุณายืนยันรหัสผ่าน',
val => val === form.password || 'รหัสผ่านไม่ตรงกัน'
]"
hide-bottom-space
lazy-rules="ondemand"
>
<template v-slot:prepend>
<q-icon name="lock" />
@ -97,6 +105,8 @@
emit-value
map-options
:rules="[val => !!val.th || 'กรุณาเลือกคำนำหน้า']"
hide-bottom-space
lazy-rules="ondemand"
/>
<q-input
@ -104,6 +114,8 @@
label="ชื่อจริง *"
outlined
:rules="[val => !!val || 'กรุณากรอกชื่อ']"
hide-bottom-space
lazy-rules="ondemand"
/>
<q-input
@ -111,6 +123,8 @@
label="นามสกุล *"
outlined
:rules="[val => !!val || 'กรุณากรอกนามสกุล']"
hide-bottom-space
lazy-rules="ondemand"
/>
</div>
@ -122,6 +136,8 @@
outlined
mask="###-###-####"
:rules="[val => !!val || 'กรุณากรอกเบอร์โทร']"
hide-bottom-space
lazy-rules="ondemand"
>
<template v-slot:prepend>
<q-icon name="phone" />